OpenCores
URL https://opencores.org/ocsvn/scarts/scarts/trunk

Subversion Repositories scarts

[/] [scarts/] [trunk/] [toolchain/] [scarts-gcc/] [gcc-4.1.1/] [libjava/] [libltdl/] [configure] - Blame information for rev 14

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 14 jlechner
#! /bin/sh
2
# Guess values for system-dependent variables and create Makefiles.
3
# Generated by GNU Autoconf 2.59 for libltdl 1.2.
4
#
5
# Report bugs to .
6
#
7
# Copyright (C) 2003 Free Software Foundation, Inc.
8
# This configure script is free software; the Free Software Foundation
9
# gives unlimited permission to copy, distribute and modify it.
10
## --------------------- ##
11
## M4sh Initialization.  ##
12
## --------------------- ##
13
 
14
# Be Bourne compatible
15
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16
  emulate sh
17
  NULLCMD=:
18
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19
  # is contrary to our usage.  Disable this feature.
20
  alias -g '${1+"$@"}'='"$@"'
21
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22
  set -o posix
23
fi
24
DUALCASE=1; export DUALCASE # for MKS sh
25
 
26
# Support unset when possible.
27
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
28
  as_unset=unset
29
else
30
  as_unset=false
31
fi
32
 
33
 
34
# Work around bugs in pre-3.0 UWIN ksh.
35
$as_unset ENV MAIL MAILPATH
36
PS1='$ '
37
PS2='> '
38
PS4='+ '
39
 
40
# NLS nuisances.
41
for as_var in \
42
  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43
  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44
  LC_TELEPHONE LC_TIME
45
do
46
  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
47
    eval $as_var=C; export $as_var
48
  else
49
    $as_unset $as_var
50
  fi
51
done
52
 
53
# Required to use basename.
54
if expr a : '\(a\)' >/dev/null 2>&1; then
55
  as_expr=expr
56
else
57
  as_expr=false
58
fi
59
 
60
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
61
  as_basename=basename
62
else
63
  as_basename=false
64
fi
65
 
66
 
67
# Name of the executable.
68
as_me=`$as_basename "$0" ||
69
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70
         X"$0" : 'X\(//\)$' \| \
71
         X"$0" : 'X\(/\)$' \| \
72
         .     : '\(.\)' 2>/dev/null ||
73
echo X/"$0" |
74
    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75
          /^X\/\(\/\/\)$/{ s//\1/; q; }
76
          /^X\/\(\/\).*/{ s//\1/; q; }
77
          s/.*/./; q'`
78
 
79
 
80
# PATH needs CR, and LINENO needs CR and PATH.
81
# Avoid depending upon Character Ranges.
82
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
83
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
84
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
85
as_cr_digits='0123456789'
86
as_cr_alnum=$as_cr_Letters$as_cr_digits
87
 
88
# The user is always right.
89
if test "${PATH_SEPARATOR+set}" != set; then
90
  echo "#! /bin/sh" >conf$$.sh
91
  echo  "exit 0"   >>conf$$.sh
92
  chmod +x conf$$.sh
93
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
94
    PATH_SEPARATOR=';'
95
  else
96
    PATH_SEPARATOR=:
97
  fi
98
  rm -f conf$$.sh
99
fi
100
 
101
 
102
  as_lineno_1=$LINENO
103
  as_lineno_2=$LINENO
104
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
105
  test "x$as_lineno_1" != "x$as_lineno_2" &&
106
  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
107
  # Find who we are.  Look in the path if we contain no path at all
108
  # relative or not.
109
  case $0 in
110
    *[\\/]* ) as_myself=$0 ;;
111
    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
112
for as_dir in $PATH
113
do
114
  IFS=$as_save_IFS
115
  test -z "$as_dir" && as_dir=.
116
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
117
done
118
 
119
       ;;
120
  esac
121
  # We did not find ourselves, most probably we were run as `sh COMMAND'
122
  # in which case we are not to be found in the path.
123
  if test "x$as_myself" = x; then
124
    as_myself=$0
125
  fi
126
  if test ! -f "$as_myself"; then
127
    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
128
   { (exit 1); exit 1; }; }
129
  fi
130
  case $CONFIG_SHELL in
131
  '')
132
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
133
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134
do
135
  IFS=$as_save_IFS
136
  test -z "$as_dir" && as_dir=.
137
  for as_base in sh bash ksh sh5; do
138
         case $as_dir in
139
         /*)
140
           if ("$as_dir/$as_base" -c '
141
  as_lineno_1=$LINENO
142
  as_lineno_2=$LINENO
143
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
144
  test "x$as_lineno_1" != "x$as_lineno_2" &&
145
  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
146
             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
147
             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
148
             CONFIG_SHELL=$as_dir/$as_base
149
             export CONFIG_SHELL
150
             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
151
           fi;;
152
         esac
153
       done
154
done
155
;;
156
  esac
157
 
158
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
159
  # uniformly replaced by the line number.  The first 'sed' inserts a
160
  # line-number line before each line; the second 'sed' does the real
161
  # work.  The second script uses 'N' to pair each line-number line
162
  # with the numbered line, and appends trailing '-' during
163
  # substitution so that $LINENO is not a special case at line end.
164
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
165
  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
166
  sed '=' <$as_myself |
167
    sed '
168
      N
169
      s,$,-,
170
      : loop
171
      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172
      t loop
173
      s,-$,,
174
      s,^['$as_cr_digits']*\n,,
175
    ' >$as_me.lineno &&
176
  chmod +x $as_me.lineno ||
177
    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
178
   { (exit 1); exit 1; }; }
179
 
180
  # Don't try to exec as it changes $[0], causing all sort of problems
181
  # (the dirname of $[0] is not the place where we might find the
182
  # original and so on.  Autoconf is especially sensible to this).
183
  . ./$as_me.lineno
184
  # Exit status is that of the last command.
185
  exit
186
}
187
 
188
 
189
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
190
  *c*,-n*) ECHO_N= ECHO_C='
191
' ECHO_T='      ' ;;
192
  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
193
  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
194
esac
195
 
196
if expr a : '\(a\)' >/dev/null 2>&1; then
197
  as_expr=expr
198
else
199
  as_expr=false
200
fi
201
 
202
rm -f conf$$ conf$$.exe conf$$.file
203
echo >conf$$.file
204
if ln -s conf$$.file conf$$ 2>/dev/null; then
205
  # We could just check for DJGPP; but this test a) works b) is more generic
206
  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
207
  if test -f conf$$.exe; then
208
    # Don't use ln at all; we don't have any links
209
    as_ln_s='cp -p'
210
  else
211
    as_ln_s='ln -s'
212
  fi
213
elif ln conf$$.file conf$$ 2>/dev/null; then
214
  as_ln_s=ln
215
else
216
  as_ln_s='cp -p'
217
fi
218
rm -f conf$$ conf$$.exe conf$$.file
219
 
220
if mkdir -p . 2>/dev/null; then
221
  as_mkdir_p=:
222
else
223
  test -d ./-p && rmdir ./-p
224
  as_mkdir_p=false
225
fi
226
 
227
as_executable_p="test -f"
228
 
229
# Sed expression to map a string onto a valid CPP name.
230
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
231
 
232
# Sed expression to map a string onto a valid variable name.
233
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
234
 
235
 
236
# IFS
237
# We need space, tab and new line, in precisely that order.
238
as_nl='
239
'
240
IFS="   $as_nl"
241
 
242
# CDPATH.
243
$as_unset CDPATH
244
 
245
 
246
 
247
# Check that we are running under the correct shell.
248
SHELL=${CONFIG_SHELL-/bin/sh}
249
 
250
case X$ECHO in
251
X*--fallback-echo)
252
  # Remove one level of quotation (which was required for Make).
253
  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
254
  ;;
255
esac
256
 
257
echo=${ECHO-echo}
258
if test "X$1" = X--no-reexec; then
259
  # Discard the --no-reexec flag, and continue.
260
  shift
261
elif test "X$1" = X--fallback-echo; then
262
  # Avoid inline document here, it may be left over
263
  :
264
elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
265
  # Yippee, $echo works!
266
  :
267
else
268
  # Restart under the correct shell.
269
  exec $SHELL "$0" --no-reexec ${1+"$@"}
270
fi
271
 
272
if test "X$1" = X--fallback-echo; then
273
  # used as fallback echo
274
  shift
275
  cat <
276
$*
277
EOF
278
  exit 0
279
fi
280
 
281
# The HP-UX ksh and POSIX shell print the target directory to stdout
282
# if CDPATH is set.
283
if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
284
 
285
if test -z "$ECHO"; then
286
if test "X${echo_test_string+set}" != Xset; then
287
# find a string as large as possible, as long as the shell can cope with it
288
  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
289
    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
290
    if (echo_test_string="`eval $cmd`") 2>/dev/null &&
291
       echo_test_string="`eval $cmd`" &&
292
       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
293
    then
294
      break
295
    fi
296
  done
297
fi
298
 
299
if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
300
   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
301
   test "X$echo_testing_string" = "X$echo_test_string"; then
302
  :
303
else
304
  # The Solaris, AIX, and Digital Unix default echo programs unquote
305
  # backslashes.  This makes it impossible to quote backslashes using
306
  #   echo "$something" | sed 's/\\/\\\\/g'
307
  #
308
  # So, first we look for a working echo in the user's PATH.
309
 
310
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
311
  for dir in $PATH /usr/ucb; do
312
    IFS="$lt_save_ifs"
313
    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
314
       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
315
       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
316
       test "X$echo_testing_string" = "X$echo_test_string"; then
317
      echo="$dir/echo"
318
      break
319
    fi
320
  done
321
  IFS="$lt_save_ifs"
322
 
323
  if test "X$echo" = Xecho; then
324
    # We didn't find a better echo, so look for alternatives.
325
    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
326
       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
327
       test "X$echo_testing_string" = "X$echo_test_string"; then
328
      # This shell has a builtin print -r that does the trick.
329
      echo='print -r'
330
    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
331
         test "X$CONFIG_SHELL" != X/bin/ksh; then
332
      # If we have ksh, try running configure again with it.
333
      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
334
      export ORIGINAL_CONFIG_SHELL
335
      CONFIG_SHELL=/bin/ksh
336
      export CONFIG_SHELL
337
      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
338
    else
339
      # Try using printf.
340
      echo='printf %s\n'
341
      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
342
         echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
343
         test "X$echo_testing_string" = "X$echo_test_string"; then
344
        # Cool, printf works
345
        :
346
      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
347
           test "X$echo_testing_string" = 'X\t' &&
348
           echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
349
           test "X$echo_testing_string" = "X$echo_test_string"; then
350
        CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
351
        export CONFIG_SHELL
352
        SHELL="$CONFIG_SHELL"
353
        export SHELL
354
        echo="$CONFIG_SHELL $0 --fallback-echo"
355
      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
356
           test "X$echo_testing_string" = 'X\t' &&
357
           echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
358
           test "X$echo_testing_string" = "X$echo_test_string"; then
359
        echo="$CONFIG_SHELL $0 --fallback-echo"
360
      else
361
        # maybe with a smaller string...
362
        prev=:
363
 
364
        for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
365
          if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
366
          then
367
            break
368
          fi
369
          prev="$cmd"
370
        done
371
 
372
        if test "$prev" != 'sed 50q "$0"'; then
373
          echo_test_string=`eval $prev`
374
          export echo_test_string
375
          exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
376
        else
377
          # Oops.  We lost completely, so just stick with echo.
378
          echo=echo
379
        fi
380
      fi
381
    fi
382
  fi
383
fi
384
fi
385
 
386
# Copy echo and quote the copy suitably for passing to libtool from
387
# the Makefile, instead of quoting the original, which is used later.
388
ECHO=$echo
389
if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
390
   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
391
fi
392
 
393
 
394
 
395
 
396
tagnames=`echo "$tagnames,CXX" | sed 's/^,//'`
397
 
398
tagnames=`echo "$tagnames,F77" | sed 's/^,//'`
399
 
400
# Name of the host.
401
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
402
# so uname gets run too.
403
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
404
 
405
exec 6>&1
406
 
407
#
408
# Initializations.
409
#
410
ac_default_prefix=/usr/local
411
ac_config_libobj_dir=.
412
cross_compiling=no
413
subdirs=
414
MFLAGS=
415
MAKEFLAGS=
416
SHELL=${CONFIG_SHELL-/bin/sh}
417
 
418
# Maximum number of lines to put in a shell here document.
419
# This variable seems obsolete.  It should probably be removed, and
420
# only ac_max_sed_lines should be used.
421
: ${ac_max_here_lines=38}
422
 
423
# Identity of this package.
424
PACKAGE_NAME='libltdl'
425
PACKAGE_TARNAME='libltdl'
426
PACKAGE_VERSION='1.2'
427
PACKAGE_STRING='libltdl 1.2'
428
PACKAGE_BUGREPORT='bug-libtool@gnu.org'
429
 
430
ac_unique_file="ltdl.c"
431
# Factoring default headers for most tests.
432
ac_includes_default="\
433
#include 
434
#if HAVE_SYS_TYPES_H
435
# include 
436
#endif
437
#if HAVE_SYS_STAT_H
438
# include 
439
#endif
440
#if STDC_HEADERS
441
# include 
442
# include 
443
#else
444
# if HAVE_STDLIB_H
445
#  include 
446
# endif
447
#endif
448
#if HAVE_STRING_H
449
# if !STDC_HEADERS && HAVE_MEMORY_H
450
#  include 
451
# endif
452
# include 
453
#endif
454
#if HAVE_STRINGS_H
455
# include 
456
#endif
457
#if HAVE_INTTYPES_H
458
# include 
459
#else
460
# if HAVE_STDINT_H
461
#  include 
462
# endif
463
#endif
464
#if HAVE_UNISTD_H
465
# include 
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 install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT 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 build build_cpu build_vendor build_os host host_cpu host_vendor host_os EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB DLLTOOL ac_ct_DLLTOOL AS ac_ct_AS OBJDUMP ac_ct_OBJDUMP CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL LIBTOOL_DEPS INSTALL_LTDL_TRUE INSTALL_LTDL_FALSE CONVENIENCE_LTDL_TRUE CONVENIENCE_LTDL_FALSE LIBADD_DL LIBOBJS LTLIBOBJS'
469
ac_subst_files=''
470
 
471
# Initialize some variables set by options.
472
ac_init_help=
473
ac_init_version=false
474
# The variables have the same names as the options, with
475
# dashes changed to underlines.
476
cache_file=/dev/null
477
exec_prefix=NONE
478
no_create=
479
no_recursion=
480
prefix=NONE
481
program_prefix=NONE
482
program_suffix=NONE
483
program_transform_name=s,x,x,
484
silent=
485
site=
486
srcdir=
487
verbose=
488
x_includes=NONE
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.
496
bindir='${exec_prefix}/bin'
497
sbindir='${exec_prefix}/sbin'
498
libexecdir='${exec_prefix}/libexec'
499
datadir='${prefix}/share'
500
sysconfdir='${prefix}/etc'
501
sharedstatedir='${prefix}/com'
502
localstatedir='${prefix}/var'
503
libdir='${exec_prefix}/lib'
504
includedir='${prefix}/include'
505
oldincludedir='/usr/include'
506
infodir='${prefix}/info'
507
mandir='${prefix}/man'
508
 
509
ac_prev=
510
for ac_option
511
do
512
  # If the previous option needs an argument, assign it.
513
  if test -n "$ac_prev"; then
514
    eval "$ac_prev=\$ac_option"
515
    ac_prev=
516
    continue
517
  fi
518
 
519
  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
520
 
521
  # Accept the important Cygnus configure options, so we can diagnose typos.
522
 
523
  case $ac_option in
524
 
525
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
526
    ac_prev=bindir ;;
527
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
528
    bindir=$ac_optarg ;;
529
 
530
  -build | --build | --buil | --bui | --bu)
531
    ac_prev=build_alias ;;
532
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
533
    build_alias=$ac_optarg ;;
534
 
535
  -cache-file | --cache-file | --cache-fil | --cache-fi \
536
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
537
    ac_prev=cache_file ;;
538
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
539
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
540
    cache_file=$ac_optarg ;;
541
 
542
  --config-cache | -C)
543
    cache_file=config.cache ;;
544
 
545
  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
546
    ac_prev=datadir ;;
547
  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
548
  | --da=*)
549
    datadir=$ac_optarg ;;
550
 
551
  -disable-* | --disable-*)
552
    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
553
    # Reject names that are not valid shell variable names.
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" ;;
559
 
560
  -enable-* | --enable-*)
561
    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
562
    # Reject names that are not valid shell variable names.
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"`;;
569
      *) ac_optarg=yes ;;
570
    esac
571
    eval "enable_$ac_feature='$ac_optarg'" ;;
572
 
573
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
574
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
575
  | --exec | --exe | --ex)
576
    ac_prev=exec_prefix ;;
577
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
578
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
579
  | --exec=* | --exe=* | --ex=*)
580
    exec_prefix=$ac_optarg ;;
581
 
582
  -gas | --gas | --ga | --g)
583
    # Obsolete; use --with-gas.
584
    with_gas=yes ;;
585
 
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 ;;
592
 
593
  -host | --host | --hos | --ho)
594
    ac_prev=host_alias ;;
595
  -host=* | --host=* | --hos=* | --ho=*)
596
    host_alias=$ac_optarg ;;
597
 
598
  -includedir | --includedir | --includedi | --included | --include \
599
  | --includ | --inclu | --incl | --inc)
600
    ac_prev=includedir ;;
601
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
602
  | --includ=* | --inclu=* | --incl=* | --inc=*)
603
    includedir=$ac_optarg ;;
604
 
605
  -infodir | --infodir | --infodi | --infod | --info | --inf)
606
    ac_prev=infodir ;;
607
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
608
    infodir=$ac_optarg ;;
609
 
610
  -libdir | --libdir | --libdi | --libd)
611
    ac_prev=libdir ;;
612
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
613
    libdir=$ac_optarg ;;
614
 
615
  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
616
  | --libexe | --libex | --libe)
617
    ac_prev=libexecdir ;;
618
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
619
  | --libexe=* | --libex=* | --libe=*)
620
    libexecdir=$ac_optarg ;;
621
 
622
  -localstatedir | --localstatedir | --localstatedi | --localstated \
623
  | --localstate | --localstat | --localsta | --localst \
624
  | --locals | --local | --loca | --loc | --lo)
625
    ac_prev=localstatedir ;;
626
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
627
  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
628
  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
629
    localstatedir=$ac_optarg ;;
630
 
631
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
632
    ac_prev=mandir ;;
633
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
634
    mandir=$ac_optarg ;;
635
 
636
  -nfp | --nfp | --nf)
637
    # Obsolete; use --without-fp.
638
    with_fp=no ;;
639
 
640
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
641
  | --no-cr | --no-c | -n)
642
    no_create=yes ;;
643
 
644
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
645
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
646
    no_recursion=yes ;;
647
 
648
  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
649
  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
650
  | --oldin | --oldi | --old | --ol | --o)
651
    ac_prev=oldincludedir ;;
652
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
653
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
654
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
655
    oldincludedir=$ac_optarg ;;
656
 
657
  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
658
    ac_prev=prefix ;;
659
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
660
    prefix=$ac_optarg ;;
661
 
662
  -program-prefix | --program-prefix | --program-prefi | --program-pref \
663
  | --program-pre | --program-pr | --program-p)
664
    ac_prev=program_prefix ;;
665
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
666
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
667
    program_prefix=$ac_optarg ;;
668
 
669
  -program-suffix | --program-suffix | --program-suffi | --program-suff \
670
  | --program-suf | --program-su | --program-s)
671
    ac_prev=program_suffix ;;
672
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
673
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
674
    program_suffix=$ac_optarg ;;
675
 
676
  -program-transform-name | --program-transform-name \
677
  | --program-transform-nam | --program-transform-na \
678
  | --program-transform-n | --program-transform- \
679
  | --program-transform | --program-transfor \
680
  | --program-transfo | --program-transf \
681
  | --program-trans | --program-tran \
682
  | --progr-tra | --program-tr | --program-t)
683
    ac_prev=program_transform_name ;;
684
  -program-transform-name=* | --program-transform-name=* \
685
  | --program-transform-nam=* | --program-transform-na=* \
686
  | --program-transform-n=* | --program-transform-=* \
687
  | --program-transform=* | --program-transfor=* \
688
  | --program-transfo=* | --program-transf=* \
689
  | --program-trans=* | --program-tran=* \
690
  | --progr-tra=* | --program-tr=* | --program-t=*)
691
    program_transform_name=$ac_optarg ;;
692
 
693
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
694
  | -silent | --silent | --silen | --sile | --sil)
695
    silent=yes ;;
696
 
697
  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
698
    ac_prev=sbindir ;;
699
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
700
  | --sbi=* | --sb=*)
701
    sbindir=$ac_optarg ;;
702
 
703
  -sharedstatedir | --sharedstatedir | --sharedstatedi \
704
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
705
  | --sharedst | --shareds | --shared | --share | --shar \
706
  | --sha | --sh)
707
    ac_prev=sharedstatedir ;;
708
  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
709
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
710
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
711
  | --sha=* | --sh=*)
712
    sharedstatedir=$ac_optarg ;;
713
 
714
  -site | --site | --sit)
715
    ac_prev=site ;;
716
  -site=* | --site=* | --sit=*)
717
    site=$ac_optarg ;;
718
 
719
  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
720
    ac_prev=srcdir ;;
721
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
722
    srcdir=$ac_optarg ;;
723
 
724
  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
725
  | --syscon | --sysco | --sysc | --sys | --sy)
726
    ac_prev=sysconfdir ;;
727
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
728
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
729
    sysconfdir=$ac_optarg ;;
730
 
731
  -target | --target | --targe | --targ | --tar | --ta | --t)
732
    ac_prev=target_alias ;;
733
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
734
    target_alias=$ac_optarg ;;
735
 
736
  -v | -verbose | --verbose | --verbos | --verbo | --verb)
737
    verbose=yes ;;
738
 
739
  -version | --version | --versio | --versi | --vers | -V)
740
    ac_init_version=: ;;
741
 
742
  -with-* | --with-*)
743
    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
744
    # Reject names that are not valid shell variable names.
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; }; }
748
    ac_package=`echo $ac_package| sed 's/-/_/g'`
749
    case $ac_option in
750
      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
751
      *) ac_optarg=yes ;;
752
    esac
753
    eval "with_$ac_package='$ac_optarg'" ;;
754
 
755
  -without-* | --without-*)
756
    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
757
    # Reject names that are not valid shell variable names.
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" ;;
763
 
764
  --x)
765
    # Obsolete; use --with-x.
766
    with_x=yes ;;
767
 
768
  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
769
  | --x-incl | --x-inc | --x-in | --x-i)
770
    ac_prev=x_includes ;;
771
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
772
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
773
    x_includes=$ac_optarg ;;
774
 
775
  -x-libraries | --x-libraries | --x-librarie | --x-librari \
776
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
777
    ac_prev=x_libraries ;;
778
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
779
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
780
    x_libraries=$ac_optarg ;;
781
 
782
  -*) { echo "$as_me: error: unrecognized option: $ac_option
783
Try \`$0 --help' for more information." >&2
784
   { (exit 1); exit 1; }; }
785
    ;;
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
 
797
  *)
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}
803
    ;;
804
 
805
  esac
806
done
807
 
808
if test -n "$ac_prev"; then
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
 
860
 
861
# Find the source files, if location was not specified.
862
if test -z "$srcdir"; then
863
  ac_srcdir_defaulted=yes
864
  # Try the directory containing this script, then its parent.
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'`
877
  srcdir=$ac_confdir
878
  if test ! -r $srcdir/$ac_unique_file; then
879
    srcdir=..
880
  fi
881
else
882
  ac_srcdir_defaulted=no
883
fi
884
if test ! -r $srcdir/$ac_unique_file; then
885
  if test "$ac_srcdir_defaulted" = yes; then
886
    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
887
   { (exit 1); exit 1; }; }
888
  else
889
    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
890
   { (exit 1); exit 1; }; }
891
  fi
892
fi
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 libltdl 1.2 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
  case $ac_init_help in
1023
     short | recursive ) echo "Configuration of libltdl 1.2:";;
1024
   esac
1025
  cat <<\_ACEOF
1026
 
1027
Optional Features:
1028
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1029
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1030
  --enable-maintainer-mode  enable make rules and dependencies not useful
1031
                          (and sometimes confusing) to the casual installer
1032
  --disable-dependency-tracking  speeds up one-time build
1033
  --enable-dependency-tracking   do not reject slow dependency extractors
1034
  --enable-shared[=PKGS]
1035
                          build shared libraries [default=yes]
1036
  --enable-static[=PKGS]
1037
                          build static libraries [default=yes]
1038
  --enable-fast-install[=PKGS]
1039
                          optimize for fast installation [default=yes]
1040
  --disable-libtool-lock  avoid locking (might break parallel builds)
1041
  --enable-ltdl-install   install libltdl
1042
 
1043
Optional Packages:
1044
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1045
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1046
  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1047
  --with-pic              try to use only PIC/non-PIC objects [default=use
1048
                          both]
1049
  --with-tags[=TAGS]
1050
                          include additional configurations [automatic]
1051
 
1052
Some influential environment variables:
1053
  CC          C compiler command
1054
  CFLAGS      C compiler flags
1055
  LDFLAGS     linker flags, e.g. -L if you have libraries in a
1056
              nonstandard directory 
1057
  CPPFLAGS    C/C++ preprocessor flags, e.g. -I if you have
1058
              headers in a nonstandard directory 
1059
  CPP         C preprocessor
1060
  CXX         C++ compiler command
1061
  CXXFLAGS    C++ compiler flags
1062
  CXXCPP      C++ preprocessor
1063
  F77         Fortran 77 compiler command
1064
  FFLAGS      Fortran 77 compiler flags
1065
 
1066
Use these variables to override the choices made by `configure' or to help
1067
it to find libraries and programs with nonstandard names/locations.
1068
 
1069
Report bugs to .
1070
_ACEOF
1071
fi
1072
 
1073
if test "$ac_init_help" = "recursive"; then
1074
  # If there are subdirs, report their specific --help.
1075
  ac_popdir=`pwd`
1076
  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1077
    test -d $ac_dir || continue
1078
    ac_builddir=.
1079
 
1080
if test "$ac_dir" != .; then
1081
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1082
  # A "../" for each directory in $ac_dir_suffix.
1083
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1084
else
1085
  ac_dir_suffix= ac_top_builddir=
1086
fi
1087
 
1088
case $srcdir in
1089
  .)  # No --srcdir option.  We are building in place.
1090
    ac_srcdir=.
1091
    if test -z "$ac_top_builddir"; then
1092
       ac_top_srcdir=.
1093
    else
1094
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1095
    fi ;;
1096
  [\\/]* | ?:[\\/]* )  # Absolute path.
1097
    ac_srcdir=$srcdir$ac_dir_suffix;
1098
    ac_top_srcdir=$srcdir ;;
1099
  *) # Relative path.
1100
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1101
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
1102
esac
1103
 
1104
# Do not use `cd foo && pwd` to compute absolute paths, because
1105
# the directories may not exist.
1106
case `pwd` in
1107
.) ac_abs_builddir="$ac_dir";;
1108
*)
1109
  case "$ac_dir" in
1110
  .) ac_abs_builddir=`pwd`;;
1111
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1112
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
1113
  esac;;
1114
esac
1115
case $ac_abs_builddir in
1116
.) ac_abs_top_builddir=${ac_top_builddir}.;;
1117
*)
1118
  case ${ac_top_builddir}. in
1119
  .) ac_abs_top_builddir=$ac_abs_builddir;;
1120
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1121
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1122
  esac;;
1123
esac
1124
case $ac_abs_builddir in
1125
.) ac_abs_srcdir=$ac_srcdir;;
1126
*)
1127
  case $ac_srcdir in
1128
  .) ac_abs_srcdir=$ac_abs_builddir;;
1129
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1130
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1131
  esac;;
1132
esac
1133
case $ac_abs_builddir in
1134
.) ac_abs_top_srcdir=$ac_top_srcdir;;
1135
*)
1136
  case $ac_top_srcdir in
1137
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
1138
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1139
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1140
  esac;;
1141
esac
1142
 
1143
    cd $ac_dir
1144
    # Check for guested configure; otherwise get Cygnus style configure.
1145
    if test -f $ac_srcdir/configure.gnu; then
1146
      echo
1147
      $SHELL $ac_srcdir/configure.gnu  --help=recursive
1148
    elif test -f $ac_srcdir/configure; then
1149
      echo
1150
      $SHELL $ac_srcdir/configure  --help=recursive
1151
    elif test -f $ac_srcdir/configure.ac ||
1152
           test -f $ac_srcdir/configure.in; then
1153
      echo
1154
      $ac_configure --help
1155
    else
1156
      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1157
    fi
1158
    cd $ac_popdir
1159
  done
1160
fi
1161
 
1162
test -n "$ac_init_help" && exit 0
1163
if $ac_init_version; then
1164
  cat <<\_ACEOF
1165
libltdl configure 1.2
1166
generated by GNU Autoconf 2.59
1167
 
1168
Copyright (C) 2003 Free Software Foundation, Inc.
1169
This configure script is free software; the Free Software Foundation
1170
gives unlimited permission to copy, distribute and modify it.
1171
_ACEOF
1172
  exit 0
1173
fi
1174
exec 5>config.log
1175
cat >&5 <<_ACEOF
1176
This file contains any messages produced by compilers while
1177
running configure, to aid debugging if configure makes a mistake.
1178
 
1179
It was created by libltdl $as_me 1.2, which was
1180
generated by GNU Autoconf 2.59.  Invocation command line was
1181
 
1182
  $ $0 $@
1183
 
1184
_ACEOF
1185
{
1186
cat <<_ASUNAME
1187
## --------- ##
1188
## Platform. ##
1189
## --------- ##
1190
 
1191
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1192
uname -m = `(uname -m) 2>/dev/null || echo unknown`
1193
uname -r = `(uname -r) 2>/dev/null || echo unknown`
1194
uname -s = `(uname -s) 2>/dev/null || echo unknown`
1195
uname -v = `(uname -v) 2>/dev/null || echo unknown`
1196
 
1197
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1198
/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1199
 
1200
/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1201
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1202
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1203
hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1204
/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1205
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1206
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1207
 
1208
_ASUNAME
1209
 
1210
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1211
for as_dir in $PATH
1212
do
1213
  IFS=$as_save_IFS
1214
  test -z "$as_dir" && as_dir=.
1215
  echo "PATH: $as_dir"
1216
done
1217
 
1218
} >&5
1219
 
1220
cat >&5 <<_ACEOF
1221
 
1222
 
1223
## ----------- ##
1224
## Core tests. ##
1225
## ----------- ##
1226
 
1227
_ACEOF
1228
 
1229
 
1230
# Keep a trace of the command line.
1231
# Strip out --no-create and --no-recursion so they do not pile up.
1232
# Strip out --silent because we don't want to record it for future runs.
1233
# Also quote any args containing shell meta-characters.
1234
# Make two passes to allow for proper duplicate-argument suppression.
1235
ac_configure_args=
1236
ac_configure_args0=
1237
ac_configure_args1=
1238
ac_sep=
1239
ac_must_keep_next=false
1240
for ac_pass in 1 2
1241
do
1242
  for ac_arg
1243
  do
1244
    case $ac_arg in
1245
    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1246
    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1247
    | -silent | --silent | --silen | --sile | --sil)
1248
      continue ;;
1249
    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1250
      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1251
    esac
1252
    case $ac_pass in
1253
    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1254
    2)
1255
      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1256
      if test $ac_must_keep_next = true; then
1257
        ac_must_keep_next=false # Got value, back to normal.
1258
      else
1259
        case $ac_arg in
1260
          *=* | --config-cache | -C | -disable-* | --disable-* \
1261
          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1262
          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1263
          | -with-* | --with-* | -without-* | --without-* | --x)
1264
            case "$ac_configure_args0 " in
1265
              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1266
            esac
1267
            ;;
1268
          -* ) ac_must_keep_next=true ;;
1269
        esac
1270
      fi
1271
      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1272
      # Get rid of the leading space.
1273
      ac_sep=" "
1274
      ;;
1275
    esac
1276
  done
1277
done
1278
$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1279
$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1280
 
1281
# When interrupted or exit'd, cleanup temporary files, and complete
1282
# config.log.  We remove comments because anyway the quotes in there
1283
# would cause problems or look ugly.
1284
# WARNING: Be sure not to use single quotes in there, as some shells,
1285
# such as our DU 5.0 friend, will then `close' the trap.
1286
trap 'exit_status=$?
1287
  # Save into config.log some information that might help in debugging.
1288
  {
1289
    echo
1290
 
1291
    cat <<\_ASBOX
1292
## ---------------- ##
1293
## Cache variables. ##
1294
## ---------------- ##
1295
_ASBOX
1296
    echo
1297
    # The following way of writing the cache mishandles newlines in values,
1298
{
1299
  (set) 2>&1 |
1300
    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1301
    *ac_space=\ *)
1302
      sed -n \
1303
        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1304
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1305
      ;;
1306
    *)
1307
      sed -n \
1308
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1309
      ;;
1310
    esac;
1311
}
1312
    echo
1313
 
1314
    cat <<\_ASBOX
1315
## ----------------- ##
1316
## Output variables. ##
1317
## ----------------- ##
1318
_ASBOX
1319
    echo
1320
    for ac_var in $ac_subst_vars
1321
    do
1322
      eval ac_val=$`echo $ac_var`
1323
      echo "$ac_var='"'"'$ac_val'"'"'"
1324
    done | sort
1325
    echo
1326
 
1327
    if test -n "$ac_subst_files"; then
1328
      cat <<\_ASBOX
1329
## ------------- ##
1330
## Output files. ##
1331
## ------------- ##
1332
_ASBOX
1333
      echo
1334
      for ac_var in $ac_subst_files
1335
      do
1336
        eval ac_val=$`echo $ac_var`
1337
        echo "$ac_var='"'"'$ac_val'"'"'"
1338
      done | sort
1339
      echo
1340
    fi
1341
 
1342
    if test -s confdefs.h; then
1343
      cat <<\_ASBOX
1344
## ----------- ##
1345
## confdefs.h. ##
1346
## ----------- ##
1347
_ASBOX
1348
      echo
1349
      sed "/^$/d" confdefs.h | sort
1350
      echo
1351
    fi
1352
    test "$ac_signal" != 0 &&
1353
      echo "$as_me: caught signal $ac_signal"
1354
    echo "$as_me: exit $exit_status"
1355
  } >&5
1356
  rm -f core *.core &&
1357
  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1358
    exit $exit_status
1359
     ' 0
1360
for ac_signal in 1 2 13 15; do
1361
  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1362
done
1363
ac_signal=0
1364
 
1365
# confdefs.h avoids OS command line length limits that DEFS can exceed.
1366
rm -rf conftest* confdefs.h
1367
# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1368
echo >confdefs.h
1369
 
1370
# Predefined preprocessor variables.
1371
 
1372
cat >>confdefs.h <<_ACEOF
1373
#define PACKAGE_NAME "$PACKAGE_NAME"
1374
_ACEOF
1375
 
1376
 
1377
cat >>confdefs.h <<_ACEOF
1378
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1379
_ACEOF
1380
 
1381
 
1382
cat >>confdefs.h <<_ACEOF
1383
#define PACKAGE_VERSION "$PACKAGE_VERSION"
1384
_ACEOF
1385
 
1386
 
1387
cat >>confdefs.h <<_ACEOF
1388
#define PACKAGE_STRING "$PACKAGE_STRING"
1389
_ACEOF
1390
 
1391
 
1392
cat >>confdefs.h <<_ACEOF
1393
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1394
_ACEOF
1395
 
1396
 
1397
# Let the site file select an alternate cache file if it wants to.
1398
# Prefer explicitly selected file to automatically selected ones.
1399
if test -z "$CONFIG_SITE"; then
1400
  if test "x$prefix" != xNONE; then
1401
    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1402
  else
1403
    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1404
  fi
1405
fi
1406
for ac_site_file in $CONFIG_SITE; do
1407
  if test -r "$ac_site_file"; then
1408
    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1409
echo "$as_me: loading site script $ac_site_file" >&6;}
1410
    sed 's/^/| /' "$ac_site_file" >&5
1411
    . "$ac_site_file"
1412
  fi
1413
done
1414
 
1415
if test -r "$cache_file"; then
1416
  # Some versions of bash will fail to source /dev/null (special
1417
  # files actually), so we avoid doing that.
1418
  if test -f "$cache_file"; then
1419
    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1420
echo "$as_me: loading cache $cache_file" >&6;}
1421
    case $cache_file in
1422
      [\\/]* | ?:[\\/]* ) . $cache_file;;
1423
      *)                      . ./$cache_file;;
1424
    esac
1425
  fi
1426
else
1427
  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1428
echo "$as_me: creating cache $cache_file" >&6;}
1429
  >$cache_file
1430
fi
1431
 
1432
# Check that the precious variables saved in the cache have kept the same
1433
# value.
1434
ac_cache_corrupted=false
1435
for ac_var in `(set) 2>&1 |
1436
               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1437
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1438
  eval ac_new_set=\$ac_env_${ac_var}_set
1439
  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1440
  eval ac_new_val="\$ac_env_${ac_var}_value"
1441
  case $ac_old_set,$ac_new_set in
1442
    set,)
1443
      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1444
echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1445
      ac_cache_corrupted=: ;;
1446
    ,set)
1447
      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1448
echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1449
      ac_cache_corrupted=: ;;
1450
    ,);;
1451
    *)
1452
      if test "x$ac_old_val" != "x$ac_new_val"; then
1453
        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1454
echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1455
        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1456
echo "$as_me:   former value:  $ac_old_val" >&2;}
1457
        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1458
echo "$as_me:   current value: $ac_new_val" >&2;}
1459
        ac_cache_corrupted=:
1460
      fi;;
1461
  esac
1462
  # Pass precious variables to config.status.
1463
  if test "$ac_new_set" = set; then
1464
    case $ac_new_val in
1465
    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1466
      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1467
    *) ac_arg=$ac_var=$ac_new_val ;;
1468
    esac
1469
    case " $ac_configure_args " in
1470
      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1471
      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1472
    esac
1473
  fi
1474
done
1475
if $ac_cache_corrupted; then
1476
  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1477
echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1478
  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1479
echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1480
   { (exit 1); exit 1; }; }
1481
fi
1482
 
1483
ac_ext=c
1484
ac_cpp='$CPP $CPPFLAGS'
1485
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1486
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1487
ac_compiler_gnu=$ac_cv_c_compiler_gnu
1488
 
1489
 
1490
 
1491
 
1492
 
1493
 
1494
 
1495
 
1496
 
1497
 
1498
 
1499
 
1500
 
1501
 
1502
 
1503
 
1504
 
1505
 
1506
 
1507
 
1508
 
1509
 
1510
 
1511
 
1512
 
1513
 
1514
 
1515
 
1516
          ac_config_files="$ac_config_files config.h:config-h.in"
1517
 
1518
 
1519
 
1520
## ------------------------------- ##
1521
## Libltdl specific configuration. ##
1522
## ------------------------------- ##
1523
 
1524
ac_aux_dir=
1525
for ac_dir in . $srcdir/.; do
1526
  if test -f $ac_dir/install-sh; then
1527
    ac_aux_dir=$ac_dir
1528
    ac_install_sh="$ac_aux_dir/install-sh -c"
1529
    break
1530
  elif test -f $ac_dir/install.sh; then
1531
    ac_aux_dir=$ac_dir
1532
    ac_install_sh="$ac_aux_dir/install.sh -c"
1533
    break
1534
  elif test -f $ac_dir/shtool; then
1535
    ac_aux_dir=$ac_dir
1536
    ac_install_sh="$ac_aux_dir/shtool install -c"
1537
    break
1538
  fi
1539
done
1540
if test -z "$ac_aux_dir"; then
1541
  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in . $srcdir/." >&5
1542
echo "$as_me: error: cannot find install-sh or install.sh in . $srcdir/." >&2;}
1543
   { (exit 1); exit 1; }; }
1544
fi
1545
ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1546
ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1547
ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1548
 
1549
 
1550
if test -z "$enable_ltdl_install$enable_ltdl_convenience"; then
1551
  if test -f ${srcdir}/ltmain.sh; then
1552
    # if libltdl is libtoolized, it is assumed to be stand-alone and
1553
    # installed unless the command line overrides it (tested above)
1554
    enable_ltdl_install=yes
1555
  else
1556
    { echo "$as_me:$LINENO: WARNING: *** The top-level configure must select either" >&5
1557
echo "$as_me: WARNING: *** The top-level configure must select either" >&2;}
1558
    { echo "$as_me:$LINENO: WARNING: *** A\"\"C_LIBLTDL_INSTALLABLE or A\"\"C_LIBLTDL_CONVENIENCE." >&5
1559
echo "$as_me: WARNING: *** A\"\"C_LIBLTDL_INSTALLABLE or A\"\"C_LIBLTDL_CONVENIENCE." >&2;}
1560
    { { echo "$as_me:$LINENO: error: *** Maybe you want to --enable-ltdl-install?" >&5
1561
echo "$as_me: error: *** Maybe you want to --enable-ltdl-install?" >&2;}
1562
   { (exit 1); exit 1; }; }
1563
  fi
1564
fi
1565
 
1566
 
1567
## ------------------------ ##
1568
## Automake Initialisation. ##
1569
## ------------------------ ##
1570
am__api_version="1.9"
1571
# Find a good install program.  We prefer a C program (faster),
1572
# so one script is as good as another.  But avoid the broken or
1573
# incompatible versions:
1574
# SysV /etc/install, /usr/sbin/install
1575
# SunOS /usr/etc/install
1576
# IRIX /sbin/install
1577
# AIX /bin/install
1578
# AmigaOS /C/install, which installs bootblocks on floppy discs
1579
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1580
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1581
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1582
# OS/2's system install, which has a completely different semantic
1583
# ./install, which can be erroneously created by make from ./install.sh.
1584
echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1585
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1586
if test -z "$INSTALL"; then
1587
if test "${ac_cv_path_install+set}" = set; then
1588
  echo $ECHO_N "(cached) $ECHO_C" >&6
1589
else
1590
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1591
for as_dir in $PATH
1592
do
1593
  IFS=$as_save_IFS
1594
  test -z "$as_dir" && as_dir=.
1595
  # Account for people who put trailing slashes in PATH elements.
1596
case $as_dir/ in
1597
  ./ | .// | /cC/* | \
1598
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1599
  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1600
  /usr/ucb/* ) ;;
1601
  *)
1602
    # OSF1 and SCO ODT 3.0 have their own names for install.
1603
    # Don't use installbsd from OSF since it installs stuff as root
1604
    # by default.
1605
    for ac_prog in ginstall scoinst install; do
1606
      for ac_exec_ext in '' $ac_executable_extensions; do
1607
        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1608
          if test $ac_prog = install &&
1609
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1610
            # AIX install.  It has an incompatible calling convention.
1611
            :
1612
          elif test $ac_prog = install &&
1613
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1614
            # program-specific install script used by HP pwplus--don't use.
1615
            :
1616
          else
1617
            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1618
            break 3
1619
          fi
1620
        fi
1621
      done
1622
    done
1623
    ;;
1624
esac
1625
done
1626
 
1627
 
1628
fi
1629
  if test "${ac_cv_path_install+set}" = set; then
1630
    INSTALL=$ac_cv_path_install
1631
  else
1632
    # As a last resort, use the slow shell script.  We don't cache a
1633
    # path for INSTALL within a source directory, because that will
1634
    # break other packages using the cache if that directory is
1635
    # removed, or if the path is relative.
1636
    INSTALL=$ac_install_sh
1637
  fi
1638
fi
1639
echo "$as_me:$LINENO: result: $INSTALL" >&5
1640
echo "${ECHO_T}$INSTALL" >&6
1641
 
1642
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1643
# It thinks the first close brace ends the variable substitution.
1644
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1645
 
1646
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1647
 
1648
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1649
 
1650
echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1651
echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1652
# Just in case
1653
sleep 1
1654
echo timestamp > conftest.file
1655
# Do `set' in a subshell so we don't clobber the current shell's
1656
# arguments.  Must try -L first in case configure is actually a
1657
# symlink; some systems play weird games with the mod time of symlinks
1658
# (eg FreeBSD returns the mod time of the symlink's containing
1659
# directory).
1660
if (
1661
   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1662
   if test "$*" = "X"; then
1663
      # -L didn't work.
1664
      set X `ls -t $srcdir/configure conftest.file`
1665
   fi
1666
   rm -f conftest.file
1667
   if test "$*" != "X $srcdir/configure conftest.file" \
1668
      && test "$*" != "X conftest.file $srcdir/configure"; then
1669
 
1670
      # If neither matched, then we have a broken ls.  This can happen
1671
      # if, for instance, CONFIG_SHELL is bash and it inherits a
1672
      # broken ls alias from the environment.  This has actually
1673
      # happened.  Such a system could not be considered "sane".
1674
      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1675
alias in your environment" >&5
1676
echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1677
alias in your environment" >&2;}
1678
   { (exit 1); exit 1; }; }
1679
   fi
1680
 
1681
   test "$2" = conftest.file
1682
   )
1683
then
1684
   # Ok.
1685
   :
1686
else
1687
   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1688
Check your system clock" >&5
1689
echo "$as_me: error: newly created file is older than distributed files!
1690
Check your system clock" >&2;}
1691
   { (exit 1); exit 1; }; }
1692
fi
1693
echo "$as_me:$LINENO: result: yes" >&5
1694
echo "${ECHO_T}yes" >&6
1695
test "$program_prefix" != NONE &&
1696
  program_transform_name="s,^,$program_prefix,;$program_transform_name"
1697
# Use a double $ so make ignores it.
1698
test "$program_suffix" != NONE &&
1699
  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1700
# Double any \ or $.  echo might interpret backslashes.
1701
# By default was `s,x,x', remove it if useless.
1702
cat <<\_ACEOF >conftest.sed
1703
s/[\\$]/&&/g;s/;s,x,x,$//
1704
_ACEOF
1705
program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1706
rm conftest.sed
1707
 
1708
# expand $ac_aux_dir to an absolute path
1709
am_aux_dir=`cd $ac_aux_dir && pwd`
1710
 
1711
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1712
# Use eval to expand $SHELL
1713
if eval "$MISSING --run true"; then
1714
  am_missing_run="$MISSING --run "
1715
else
1716
  am_missing_run=
1717
  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1718
echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1719
fi
1720
 
1721
if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1722
  # We used to keeping the `.' as first argument, in order to
1723
  # allow $(mkdir_p) to be used without argument.  As in
1724
  #   $(mkdir_p) $(somedir)
1725
  # where $(somedir) is conditionally defined.  However this is wrong
1726
  # for two reasons:
1727
  #  1. if the package is installed by a user who cannot write `.'
1728
  #     make install will fail,
1729
  #  2. the above comment should most certainly read
1730
  #     $(mkdir_p) $(DESTDIR)$(somedir)
1731
  #     so it does not work when $(somedir) is undefined and
1732
  #     $(DESTDIR) is not.
1733
  #  To support the latter case, we have to write
1734
  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1735
  #  so the `.' trick is pointless.
1736
  mkdir_p='mkdir -p --'
1737
else
1738
  # On NextStep and OpenStep, the `mkdir' command does not
1739
  # recognize any option.  It will interpret all options as
1740
  # directories to create, and then abort because `.' already
1741
  # exists.
1742
  for d in ./-p ./--version;
1743
  do
1744
    test -d $d && rmdir $d
1745
  done
1746
  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1747
  if test -f "$ac_aux_dir/mkinstalldirs"; then
1748
    mkdir_p='$(mkinstalldirs)'
1749
  else
1750
    mkdir_p='$(install_sh) -d'
1751
  fi
1752
fi
1753
 
1754
for ac_prog in gawk mawk nawk awk
1755
do
1756
  # Extract the first word of "$ac_prog", so it can be a program name with args.
1757
set dummy $ac_prog; ac_word=$2
1758
echo "$as_me:$LINENO: checking for $ac_word" >&5
1759
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1760
if test "${ac_cv_prog_AWK+set}" = set; then
1761
  echo $ECHO_N "(cached) $ECHO_C" >&6
1762
else
1763
  if test -n "$AWK"; then
1764
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
1765
else
1766
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1767
for as_dir in $PATH
1768
do
1769
  IFS=$as_save_IFS
1770
  test -z "$as_dir" && as_dir=.
1771
  for ac_exec_ext in '' $ac_executable_extensions; do
1772
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1773
    ac_cv_prog_AWK="$ac_prog"
1774
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1775
    break 2
1776
  fi
1777
done
1778
done
1779
 
1780
fi
1781
fi
1782
AWK=$ac_cv_prog_AWK
1783
if test -n "$AWK"; then
1784
  echo "$as_me:$LINENO: result: $AWK" >&5
1785
echo "${ECHO_T}$AWK" >&6
1786
else
1787
  echo "$as_me:$LINENO: result: no" >&5
1788
echo "${ECHO_T}no" >&6
1789
fi
1790
 
1791
  test -n "$AWK" && break
1792
done
1793
 
1794
echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1795
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1796
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1797
if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1798
  echo $ECHO_N "(cached) $ECHO_C" >&6
1799
else
1800
  cat >conftest.make <<\_ACEOF
1801
all:
1802
        @echo 'ac_maketemp="$(MAKE)"'
1803
_ACEOF
1804
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1805
eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1806
if test -n "$ac_maketemp"; then
1807
  eval ac_cv_prog_make_${ac_make}_set=yes
1808
else
1809
  eval ac_cv_prog_make_${ac_make}_set=no
1810
fi
1811
rm -f conftest.make
1812
fi
1813
if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1814
  echo "$as_me:$LINENO: result: yes" >&5
1815
echo "${ECHO_T}yes" >&6
1816
  SET_MAKE=
1817
else
1818
  echo "$as_me:$LINENO: result: no" >&5
1819
echo "${ECHO_T}no" >&6
1820
  SET_MAKE="MAKE=${MAKE-make}"
1821
fi
1822
 
1823
rm -rf .tst 2>/dev/null
1824
mkdir .tst 2>/dev/null
1825
if test -d .tst; then
1826
  am__leading_dot=.
1827
else
1828
  am__leading_dot=_
1829
fi
1830
rmdir .tst 2>/dev/null
1831
 
1832
# test to see if srcdir already configured
1833
if test "`cd $srcdir && pwd`" != "`pwd`" &&
1834
   test -f $srcdir/config.status; then
1835
  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1836
echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1837
   { (exit 1); exit 1; }; }
1838
fi
1839
 
1840
# test whether we have cygpath
1841
if test -z "$CYGPATH_W"; then
1842
  if (cygpath --version) >/dev/null 2>/dev/null; then
1843
    CYGPATH_W='cygpath -w'
1844
  else
1845
    CYGPATH_W=echo
1846
  fi
1847
fi
1848
 
1849
 
1850
# Define the identity of the package.
1851
 PACKAGE='libltdl'
1852
 VERSION='1.2'
1853
 
1854
 
1855
cat >>confdefs.h <<_ACEOF
1856
#define PACKAGE "$PACKAGE"
1857
_ACEOF
1858
 
1859
 
1860
cat >>confdefs.h <<_ACEOF
1861
#define VERSION "$VERSION"
1862
_ACEOF
1863
 
1864
# Some tools Automake needs.
1865
 
1866
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1867
 
1868
 
1869
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1870
 
1871
 
1872
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1873
 
1874
 
1875
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1876
 
1877
 
1878
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1879
 
1880
install_sh=${install_sh-"$am_aux_dir/install-sh"}
1881
 
1882
# Installed binaries are usually stripped using `strip' when the user
1883
# run `make install-strip'.  However `strip' might not be the right
1884
# tool to use in cross-compilation environments, therefore Automake
1885
# will honor the `STRIP' environment variable to overrule this program.
1886
if test "$cross_compiling" != no; then
1887
  if test -n "$ac_tool_prefix"; then
1888
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1889
set dummy ${ac_tool_prefix}strip; ac_word=$2
1890
echo "$as_me:$LINENO: checking for $ac_word" >&5
1891
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1892
if test "${ac_cv_prog_STRIP+set}" = set; then
1893
  echo $ECHO_N "(cached) $ECHO_C" >&6
1894
else
1895
  if test -n "$STRIP"; then
1896
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1897
else
1898
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1899
for as_dir in $PATH
1900
do
1901
  IFS=$as_save_IFS
1902
  test -z "$as_dir" && as_dir=.
1903
  for ac_exec_ext in '' $ac_executable_extensions; do
1904
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1905
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1906
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1907
    break 2
1908
  fi
1909
done
1910
done
1911
 
1912
fi
1913
fi
1914
STRIP=$ac_cv_prog_STRIP
1915
if test -n "$STRIP"; then
1916
  echo "$as_me:$LINENO: result: $STRIP" >&5
1917
echo "${ECHO_T}$STRIP" >&6
1918
else
1919
  echo "$as_me:$LINENO: result: no" >&5
1920
echo "${ECHO_T}no" >&6
1921
fi
1922
 
1923
fi
1924
if test -z "$ac_cv_prog_STRIP"; then
1925
  ac_ct_STRIP=$STRIP
1926
  # Extract the first word of "strip", so it can be a program name with args.
1927
set dummy strip; ac_word=$2
1928
echo "$as_me:$LINENO: checking for $ac_word" >&5
1929
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1930
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1931
  echo $ECHO_N "(cached) $ECHO_C" >&6
1932
else
1933
  if test -n "$ac_ct_STRIP"; then
1934
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1935
else
1936
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1937
for as_dir in $PATH
1938
do
1939
  IFS=$as_save_IFS
1940
  test -z "$as_dir" && as_dir=.
1941
  for ac_exec_ext in '' $ac_executable_extensions; do
1942
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1943
    ac_cv_prog_ac_ct_STRIP="strip"
1944
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1945
    break 2
1946
  fi
1947
done
1948
done
1949
 
1950
  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1951
fi
1952
fi
1953
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1954
if test -n "$ac_ct_STRIP"; then
1955
  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1956
echo "${ECHO_T}$ac_ct_STRIP" >&6
1957
else
1958
  echo "$as_me:$LINENO: result: no" >&5
1959
echo "${ECHO_T}no" >&6
1960
fi
1961
 
1962
  STRIP=$ac_ct_STRIP
1963
else
1964
  STRIP="$ac_cv_prog_STRIP"
1965
fi
1966
 
1967
fi
1968
INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1969
 
1970
# We need awk for the "check" target.  The system "awk" is bad on
1971
# some platforms.
1972
# Always define AMTAR for backward compatibility.
1973
 
1974
AMTAR=${AMTAR-"${am_missing_run}tar"}
1975
 
1976
am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
1977
 
1978
 
1979
 
1980
 
1981
 
1982
echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1983
echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1984
    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1985
if test "${enable_maintainer_mode+set}" = set; then
1986
  enableval="$enable_maintainer_mode"
1987
  USE_MAINTAINER_MODE=$enableval
1988
else
1989
  USE_MAINTAINER_MODE=no
1990
fi;
1991
  echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1992
echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
1993
 
1994
 
1995
if test $USE_MAINTAINER_MODE = yes; then
1996
  MAINTAINER_MODE_TRUE=
1997
  MAINTAINER_MODE_FALSE='#'
1998
else
1999
  MAINTAINER_MODE_TRUE='#'
2000
  MAINTAINER_MODE_FALSE=
2001
fi
2002
 
2003
  MAINT=$MAINTAINER_MODE_TRUE
2004
 
2005
 
2006
 
2007
 
2008
## ------------------ ##
2009
## C compiler checks. ##
2010
## ------------------ ##
2011
ac_ext=c
2012
ac_cpp='$CPP $CPPFLAGS'
2013
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2014
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2015
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2016
if test -n "$ac_tool_prefix"; then
2017
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2018
set dummy ${ac_tool_prefix}gcc; ac_word=$2
2019
echo "$as_me:$LINENO: checking for $ac_word" >&5
2020
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2021
if test "${ac_cv_prog_CC+set}" = set; then
2022
  echo $ECHO_N "(cached) $ECHO_C" >&6
2023
else
2024
  if test -n "$CC"; then
2025
  ac_cv_prog_CC="$CC" # Let the user override the test.
2026
else
2027
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2028
for as_dir in $PATH
2029
do
2030
  IFS=$as_save_IFS
2031
  test -z "$as_dir" && as_dir=.
2032
  for ac_exec_ext in '' $ac_executable_extensions; do
2033
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2034
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2035
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2036
    break 2
2037
  fi
2038
done
2039
done
2040
 
2041
fi
2042
fi
2043
CC=$ac_cv_prog_CC
2044
if test -n "$CC"; then
2045
  echo "$as_me:$LINENO: result: $CC" >&5
2046
echo "${ECHO_T}$CC" >&6
2047
else
2048
  echo "$as_me:$LINENO: result: no" >&5
2049
echo "${ECHO_T}no" >&6
2050
fi
2051
 
2052
fi
2053
if test -z "$ac_cv_prog_CC"; then
2054
  ac_ct_CC=$CC
2055
  # Extract the first word of "gcc", so it can be a program name with args.
2056
set dummy gcc; ac_word=$2
2057
echo "$as_me:$LINENO: checking for $ac_word" >&5
2058
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2059
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2060
  echo $ECHO_N "(cached) $ECHO_C" >&6
2061
else
2062
  if test -n "$ac_ct_CC"; then
2063
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2064
else
2065
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2066
for as_dir in $PATH
2067
do
2068
  IFS=$as_save_IFS
2069
  test -z "$as_dir" && as_dir=.
2070
  for ac_exec_ext in '' $ac_executable_extensions; do
2071
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2072
    ac_cv_prog_ac_ct_CC="gcc"
2073
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2074
    break 2
2075
  fi
2076
done
2077
done
2078
 
2079
fi
2080
fi
2081
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2082
if test -n "$ac_ct_CC"; then
2083
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2084
echo "${ECHO_T}$ac_ct_CC" >&6
2085
else
2086
  echo "$as_me:$LINENO: result: no" >&5
2087
echo "${ECHO_T}no" >&6
2088
fi
2089
 
2090
  CC=$ac_ct_CC
2091
else
2092
  CC="$ac_cv_prog_CC"
2093
fi
2094
 
2095
if test -z "$CC"; then
2096
  if test -n "$ac_tool_prefix"; then
2097
  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2098
set dummy ${ac_tool_prefix}cc; ac_word=$2
2099
echo "$as_me:$LINENO: checking for $ac_word" >&5
2100
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2101
if test "${ac_cv_prog_CC+set}" = set; then
2102
  echo $ECHO_N "(cached) $ECHO_C" >&6
2103
else
2104
  if test -n "$CC"; then
2105
  ac_cv_prog_CC="$CC" # Let the user override the test.
2106
else
2107
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2108
for as_dir in $PATH
2109
do
2110
  IFS=$as_save_IFS
2111
  test -z "$as_dir" && as_dir=.
2112
  for ac_exec_ext in '' $ac_executable_extensions; do
2113
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2114
    ac_cv_prog_CC="${ac_tool_prefix}cc"
2115
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2116
    break 2
2117
  fi
2118
done
2119
done
2120
 
2121
fi
2122
fi
2123
CC=$ac_cv_prog_CC
2124
if test -n "$CC"; then
2125
  echo "$as_me:$LINENO: result: $CC" >&5
2126
echo "${ECHO_T}$CC" >&6
2127
else
2128
  echo "$as_me:$LINENO: result: no" >&5
2129
echo "${ECHO_T}no" >&6
2130
fi
2131
 
2132
fi
2133
if test -z "$ac_cv_prog_CC"; then
2134
  ac_ct_CC=$CC
2135
  # Extract the first word of "cc", so it can be a program name with args.
2136
set dummy cc; ac_word=$2
2137
echo "$as_me:$LINENO: checking for $ac_word" >&5
2138
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2139
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2140
  echo $ECHO_N "(cached) $ECHO_C" >&6
2141
else
2142
  if test -n "$ac_ct_CC"; then
2143
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2144
else
2145
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2146
for as_dir in $PATH
2147
do
2148
  IFS=$as_save_IFS
2149
  test -z "$as_dir" && as_dir=.
2150
  for ac_exec_ext in '' $ac_executable_extensions; do
2151
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2152
    ac_cv_prog_ac_ct_CC="cc"
2153
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2154
    break 2
2155
  fi
2156
done
2157
done
2158
 
2159
fi
2160
fi
2161
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2162
if test -n "$ac_ct_CC"; then
2163
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2164
echo "${ECHO_T}$ac_ct_CC" >&6
2165
else
2166
  echo "$as_me:$LINENO: result: no" >&5
2167
echo "${ECHO_T}no" >&6
2168
fi
2169
 
2170
  CC=$ac_ct_CC
2171
else
2172
  CC="$ac_cv_prog_CC"
2173
fi
2174
 
2175
fi
2176
if test -z "$CC"; then
2177
  # Extract the first word of "cc", so it can be a program name with args.
2178
set dummy cc; ac_word=$2
2179
echo "$as_me:$LINENO: checking for $ac_word" >&5
2180
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2181
if test "${ac_cv_prog_CC+set}" = set; then
2182
  echo $ECHO_N "(cached) $ECHO_C" >&6
2183
else
2184
  if test -n "$CC"; then
2185
  ac_cv_prog_CC="$CC" # Let the user override the test.
2186
else
2187
  ac_prog_rejected=no
2188
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2189
for as_dir in $PATH
2190
do
2191
  IFS=$as_save_IFS
2192
  test -z "$as_dir" && as_dir=.
2193
  for ac_exec_ext in '' $ac_executable_extensions; do
2194
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2195
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2196
       ac_prog_rejected=yes
2197
       continue
2198
     fi
2199
    ac_cv_prog_CC="cc"
2200
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2201
    break 2
2202
  fi
2203
done
2204
done
2205
 
2206
if test $ac_prog_rejected = yes; then
2207
  # We found a bogon in the path, so make sure we never use it.
2208
  set dummy $ac_cv_prog_CC
2209
  shift
2210
  if test $# != 0; then
2211
    # We chose a different compiler from the bogus one.
2212
    # However, it has the same basename, so the bogon will be chosen
2213
    # first if we set CC to just the basename; use the full file name.
2214
    shift
2215
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2216
  fi
2217
fi
2218
fi
2219
fi
2220
CC=$ac_cv_prog_CC
2221
if test -n "$CC"; then
2222
  echo "$as_me:$LINENO: result: $CC" >&5
2223
echo "${ECHO_T}$CC" >&6
2224
else
2225
  echo "$as_me:$LINENO: result: no" >&5
2226
echo "${ECHO_T}no" >&6
2227
fi
2228
 
2229
fi
2230
if test -z "$CC"; then
2231
  if test -n "$ac_tool_prefix"; then
2232
  for ac_prog in cl
2233
  do
2234
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2235
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2236
echo "$as_me:$LINENO: checking for $ac_word" >&5
2237
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2238
if test "${ac_cv_prog_CC+set}" = set; then
2239
  echo $ECHO_N "(cached) $ECHO_C" >&6
2240
else
2241
  if test -n "$CC"; then
2242
  ac_cv_prog_CC="$CC" # Let the user override the test.
2243
else
2244
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2245
for as_dir in $PATH
2246
do
2247
  IFS=$as_save_IFS
2248
  test -z "$as_dir" && as_dir=.
2249
  for ac_exec_ext in '' $ac_executable_extensions; do
2250
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2251
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2252
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2253
    break 2
2254
  fi
2255
done
2256
done
2257
 
2258
fi
2259
fi
2260
CC=$ac_cv_prog_CC
2261
if test -n "$CC"; then
2262
  echo "$as_me:$LINENO: result: $CC" >&5
2263
echo "${ECHO_T}$CC" >&6
2264
else
2265
  echo "$as_me:$LINENO: result: no" >&5
2266
echo "${ECHO_T}no" >&6
2267
fi
2268
 
2269
    test -n "$CC" && break
2270
  done
2271
fi
2272
if test -z "$CC"; then
2273
  ac_ct_CC=$CC
2274
  for ac_prog in cl
2275
do
2276
  # Extract the first word of "$ac_prog", so it can be a program name with args.
2277
set dummy $ac_prog; ac_word=$2
2278
echo "$as_me:$LINENO: checking for $ac_word" >&5
2279
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2280
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2281
  echo $ECHO_N "(cached) $ECHO_C" >&6
2282
else
2283
  if test -n "$ac_ct_CC"; then
2284
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2285
else
2286
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2287
for as_dir in $PATH
2288
do
2289
  IFS=$as_save_IFS
2290
  test -z "$as_dir" && as_dir=.
2291
  for ac_exec_ext in '' $ac_executable_extensions; do
2292
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2293
    ac_cv_prog_ac_ct_CC="$ac_prog"
2294
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2295
    break 2
2296
  fi
2297
done
2298
done
2299
 
2300
fi
2301
fi
2302
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2303
if test -n "$ac_ct_CC"; then
2304
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2305
echo "${ECHO_T}$ac_ct_CC" >&6
2306
else
2307
  echo "$as_me:$LINENO: result: no" >&5
2308
echo "${ECHO_T}no" >&6
2309
fi
2310
 
2311
  test -n "$ac_ct_CC" && break
2312
done
2313
 
2314
  CC=$ac_ct_CC
2315
fi
2316
 
2317
fi
2318
 
2319
 
2320
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2321
See \`config.log' for more details." >&5
2322
echo "$as_me: error: no acceptable C compiler found in \$PATH
2323
See \`config.log' for more details." >&2;}
2324
   { (exit 1); exit 1; }; }
2325
 
2326
# Provide some information about the compiler.
2327
echo "$as_me:$LINENO:" \
2328
     "checking for C compiler version" >&5
2329
ac_compiler=`set X $ac_compile; echo $2`
2330
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version &5\"") >&5
2331
  (eval $ac_compiler --version &5) 2>&5
2332
  ac_status=$?
2333
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2334
  (exit $ac_status); }
2335
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v &5\"") >&5
2336
  (eval $ac_compiler -v &5) 2>&5
2337
  ac_status=$?
2338
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2339
  (exit $ac_status); }
2340
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V &5\"") >&5
2341
  (eval $ac_compiler -V &5) 2>&5
2342
  ac_status=$?
2343
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2344
  (exit $ac_status); }
2345
 
2346
cat >conftest.$ac_ext <<_ACEOF
2347
/* confdefs.h.  */
2348
_ACEOF
2349
cat confdefs.h >>conftest.$ac_ext
2350
cat >>conftest.$ac_ext <<_ACEOF
2351
/* end confdefs.h.  */
2352
 
2353
int
2354
main ()
2355
{
2356
 
2357
  ;
2358
  return 0;
2359
}
2360
_ACEOF
2361
ac_clean_files_save=$ac_clean_files
2362
ac_clean_files="$ac_clean_files a.out a.exe b.out"
2363
# Try to create an executable without -o first, disregard a.out.
2364
# It will help us diagnose broken compilers, and finding out an intuition
2365
# of exeext.
2366
echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2367
echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2368
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2369
if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2370
  (eval $ac_link_default) 2>&5
2371
  ac_status=$?
2372
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2373
  (exit $ac_status); }; then
2374
  # Find the output, starting from the most likely.  This scheme is
2375
# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2376
# resort.
2377
 
2378
# Be careful to initialize this variable, since it used to be cached.
2379
# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2380
ac_cv_exeext=
2381
# b.out is created by i960 compilers.
2382
for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2383
do
2384
  test -f "$ac_file" || continue
2385
  case $ac_file in
2386
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2387
        ;;
2388
    conftest.$ac_ext )
2389
        # This is the source file.
2390
        ;;
2391
    [ab].out )
2392
        # We found the default executable, but exeext='' is most
2393
        # certainly right.
2394
        break;;
2395
    *.* )
2396
        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2397
        # FIXME: I believe we export ac_cv_exeext for Libtool,
2398
        # but it would be cool to find out if it's true.  Does anybody
2399
        # maintain Libtool? --akim.
2400
        export ac_cv_exeext
2401
        break;;
2402
    * )
2403
        break;;
2404
  esac
2405
done
2406
else
2407
  echo "$as_me: failed program was:" >&5
2408
sed 's/^/| /' conftest.$ac_ext >&5
2409
 
2410
{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2411
See \`config.log' for more details." >&5
2412
echo "$as_me: error: C compiler cannot create executables
2413
See \`config.log' for more details." >&2;}
2414
   { (exit 77); exit 77; }; }
2415
fi
2416
 
2417
ac_exeext=$ac_cv_exeext
2418
echo "$as_me:$LINENO: result: $ac_file" >&5
2419
echo "${ECHO_T}$ac_file" >&6
2420
 
2421
# Check the compiler produces executables we can run.  If not, either
2422
# the compiler is broken, or we cross compile.
2423
echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2424
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2425
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2426
# If not cross compiling, check that we can run a simple program.
2427
if test "$cross_compiling" != yes; then
2428
  if { ac_try='./$ac_file'
2429
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2430
  (eval $ac_try) 2>&5
2431
  ac_status=$?
2432
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2433
  (exit $ac_status); }; }; then
2434
    cross_compiling=no
2435
  else
2436
    if test "$cross_compiling" = maybe; then
2437
        cross_compiling=yes
2438
    else
2439
        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2440
If you meant to cross compile, use \`--host'.
2441
See \`config.log' for more details." >&5
2442
echo "$as_me: error: cannot run C compiled programs.
2443
If you meant to cross compile, use \`--host'.
2444
See \`config.log' for more details." >&2;}
2445
   { (exit 1); exit 1; }; }
2446
    fi
2447
  fi
2448
fi
2449
echo "$as_me:$LINENO: result: yes" >&5
2450
echo "${ECHO_T}yes" >&6
2451
 
2452
rm -f a.out a.exe conftest$ac_cv_exeext b.out
2453
ac_clean_files=$ac_clean_files_save
2454
# Check the compiler produces executables we can run.  If not, either
2455
# the compiler is broken, or we cross compile.
2456
echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2457
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2458
echo "$as_me:$LINENO: result: $cross_compiling" >&5
2459
echo "${ECHO_T}$cross_compiling" >&6
2460
 
2461
echo "$as_me:$LINENO: checking for suffix of executables" >&5
2462
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2463
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2464
  (eval $ac_link) 2>&5
2465
  ac_status=$?
2466
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2467
  (exit $ac_status); }; then
2468
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2469
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2470
# work properly (i.e., refer to `conftest.exe'), while it won't with
2471
# `rm'.
2472
for ac_file in conftest.exe conftest conftest.*; do
2473
  test -f "$ac_file" || continue
2474
  case $ac_file in
2475
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2476
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2477
          export ac_cv_exeext
2478
          break;;
2479
    * ) break;;
2480
  esac
2481
done
2482
else
2483
  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2484
See \`config.log' for more details." >&5
2485
echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2486
See \`config.log' for more details." >&2;}
2487
   { (exit 1); exit 1; }; }
2488
fi
2489
 
2490
rm -f conftest$ac_cv_exeext
2491
echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2492
echo "${ECHO_T}$ac_cv_exeext" >&6
2493
 
2494
rm -f conftest.$ac_ext
2495
EXEEXT=$ac_cv_exeext
2496
ac_exeext=$EXEEXT
2497
echo "$as_me:$LINENO: checking for suffix of object files" >&5
2498
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2499
if test "${ac_cv_objext+set}" = set; then
2500
  echo $ECHO_N "(cached) $ECHO_C" >&6
2501
else
2502
  cat >conftest.$ac_ext <<_ACEOF
2503
/* confdefs.h.  */
2504
_ACEOF
2505
cat confdefs.h >>conftest.$ac_ext
2506
cat >>conftest.$ac_ext <<_ACEOF
2507
/* end confdefs.h.  */
2508
 
2509
int
2510
main ()
2511
{
2512
 
2513
  ;
2514
  return 0;
2515
}
2516
_ACEOF
2517
rm -f conftest.o conftest.obj
2518
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2519
  (eval $ac_compile) 2>&5
2520
  ac_status=$?
2521
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2522
  (exit $ac_status); }; then
2523
  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2524
  case $ac_file in
2525
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2526
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2527
       break;;
2528
  esac
2529
done
2530
else
2531
  echo "$as_me: failed program was:" >&5
2532
sed 's/^/| /' conftest.$ac_ext >&5
2533
 
2534
{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2535
See \`config.log' for more details." >&5
2536
echo "$as_me: error: cannot compute suffix of object files: cannot compile
2537
See \`config.log' for more details." >&2;}
2538
   { (exit 1); exit 1; }; }
2539
fi
2540
 
2541
rm -f conftest.$ac_cv_objext conftest.$ac_ext
2542
fi
2543
echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2544
echo "${ECHO_T}$ac_cv_objext" >&6
2545
OBJEXT=$ac_cv_objext
2546
ac_objext=$OBJEXT
2547
echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2548
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2549
if test "${ac_cv_c_compiler_gnu+set}" = set; then
2550
  echo $ECHO_N "(cached) $ECHO_C" >&6
2551
else
2552
  cat >conftest.$ac_ext <<_ACEOF
2553
/* confdefs.h.  */
2554
_ACEOF
2555
cat confdefs.h >>conftest.$ac_ext
2556
cat >>conftest.$ac_ext <<_ACEOF
2557
/* end confdefs.h.  */
2558
 
2559
int
2560
main ()
2561
{
2562
#ifndef __GNUC__
2563
       choke me
2564
#endif
2565
 
2566
  ;
2567
  return 0;
2568
}
2569
_ACEOF
2570
rm -f conftest.$ac_objext
2571
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2572
  (eval $ac_compile) 2>conftest.er1
2573
  ac_status=$?
2574
  grep -v '^ *+' conftest.er1 >conftest.err
2575
  rm -f conftest.er1
2576
  cat conftest.err >&5
2577
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2578
  (exit $ac_status); } &&
2579
         { ac_try='test -z "$ac_c_werror_flag"
2580
                         || test ! -s conftest.err'
2581
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2582
  (eval $ac_try) 2>&5
2583
  ac_status=$?
2584
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2585
  (exit $ac_status); }; } &&
2586
         { ac_try='test -s conftest.$ac_objext'
2587
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2588
  (eval $ac_try) 2>&5
2589
  ac_status=$?
2590
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2591
  (exit $ac_status); }; }; then
2592
  ac_compiler_gnu=yes
2593
else
2594
  echo "$as_me: failed program was:" >&5
2595
sed 's/^/| /' conftest.$ac_ext >&5
2596
 
2597
ac_compiler_gnu=no
2598
fi
2599
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2600
ac_cv_c_compiler_gnu=$ac_compiler_gnu
2601
 
2602
fi
2603
echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2604
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2605
GCC=`test $ac_compiler_gnu = yes && echo yes`
2606
ac_test_CFLAGS=${CFLAGS+set}
2607
ac_save_CFLAGS=$CFLAGS
2608
CFLAGS="-g"
2609
echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2610
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2611
if test "${ac_cv_prog_cc_g+set}" = set; then
2612
  echo $ECHO_N "(cached) $ECHO_C" >&6
2613
else
2614
  cat >conftest.$ac_ext <<_ACEOF
2615
/* confdefs.h.  */
2616
_ACEOF
2617
cat confdefs.h >>conftest.$ac_ext
2618
cat >>conftest.$ac_ext <<_ACEOF
2619
/* end confdefs.h.  */
2620
 
2621
int
2622
main ()
2623
{
2624
 
2625
  ;
2626
  return 0;
2627
}
2628
_ACEOF
2629
rm -f conftest.$ac_objext
2630
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2631
  (eval $ac_compile) 2>conftest.er1
2632
  ac_status=$?
2633
  grep -v '^ *+' conftest.er1 >conftest.err
2634
  rm -f conftest.er1
2635
  cat conftest.err >&5
2636
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2637
  (exit $ac_status); } &&
2638
         { ac_try='test -z "$ac_c_werror_flag"
2639
                         || test ! -s conftest.err'
2640
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2641
  (eval $ac_try) 2>&5
2642
  ac_status=$?
2643
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2644
  (exit $ac_status); }; } &&
2645
         { ac_try='test -s conftest.$ac_objext'
2646
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2647
  (eval $ac_try) 2>&5
2648
  ac_status=$?
2649
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2650
  (exit $ac_status); }; }; then
2651
  ac_cv_prog_cc_g=yes
2652
else
2653
  echo "$as_me: failed program was:" >&5
2654
sed 's/^/| /' conftest.$ac_ext >&5
2655
 
2656
ac_cv_prog_cc_g=no
2657
fi
2658
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2659
fi
2660
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2661
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2662
if test "$ac_test_CFLAGS" = set; then
2663
  CFLAGS=$ac_save_CFLAGS
2664
elif test $ac_cv_prog_cc_g = yes; then
2665
  if test "$GCC" = yes; then
2666
    CFLAGS="-g -O2"
2667
  else
2668
    CFLAGS="-g"
2669
  fi
2670
else
2671
  if test "$GCC" = yes; then
2672
    CFLAGS="-O2"
2673
  else
2674
    CFLAGS=
2675
  fi
2676
fi
2677
echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2678
echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2679
if test "${ac_cv_prog_cc_stdc+set}" = set; then
2680
  echo $ECHO_N "(cached) $ECHO_C" >&6
2681
else
2682
  ac_cv_prog_cc_stdc=no
2683
ac_save_CC=$CC
2684
cat >conftest.$ac_ext <<_ACEOF
2685
/* confdefs.h.  */
2686
_ACEOF
2687
cat confdefs.h >>conftest.$ac_ext
2688
cat >>conftest.$ac_ext <<_ACEOF
2689
/* end confdefs.h.  */
2690
#include 
2691
#include 
2692
#include 
2693
#include 
2694
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2695
struct buf { int x; };
2696
FILE * (*rcsopen) (struct buf *, struct stat *, int);
2697
static char *e (p, i)
2698
     char **p;
2699
     int i;
2700
{
2701
  return p[i];
2702
}
2703
static char *f (char * (*g) (char **, int), char **p, ...)
2704
{
2705
  char *s;
2706
  va_list v;
2707
  va_start (v,p);
2708
  s = g (p, va_arg (v,int));
2709
  va_end (v);
2710
  return s;
2711
}
2712
 
2713
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2714
   function prototypes and stuff, but not '\xHH' hex character constants.
2715
   These don't provoke an error unfortunately, instead are silently treated
2716
   as 'x'.  The following induces an error, until -std1 is added to get
2717
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2718
   array size at least.  It's necessary to write '\x00'==0 to get something
2719
   that's true only with -std1.  */
2720
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2721
 
2722
int test (int i, double x);
2723
struct s1 {int (*f) (int a);};
2724
struct s2 {int (*f) (double a);};
2725
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2726
int argc;
2727
char **argv;
2728
int
2729
main ()
2730
{
2731
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2732
  ;
2733
  return 0;
2734
}
2735
_ACEOF
2736
# Don't try gcc -ansi; that turns off useful extensions and
2737
# breaks some systems' header files.
2738
# AIX                   -qlanglvl=ansi
2739
# Ultrix and OSF/1      -std1
2740
# HP-UX 10.20 and later -Ae
2741
# HP-UX older versions  -Aa -D_HPUX_SOURCE
2742
# SVR4                  -Xc -D__EXTENSIONS__
2743
for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2744
do
2745
  CC="$ac_save_CC $ac_arg"
2746
  rm -f conftest.$ac_objext
2747
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2748
  (eval $ac_compile) 2>conftest.er1
2749
  ac_status=$?
2750
  grep -v '^ *+' conftest.er1 >conftest.err
2751
  rm -f conftest.er1
2752
  cat conftest.err >&5
2753
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2754
  (exit $ac_status); } &&
2755
         { ac_try='test -z "$ac_c_werror_flag"
2756
                         || test ! -s conftest.err'
2757
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2758
  (eval $ac_try) 2>&5
2759
  ac_status=$?
2760
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2761
  (exit $ac_status); }; } &&
2762
         { ac_try='test -s conftest.$ac_objext'
2763
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2764
  (eval $ac_try) 2>&5
2765
  ac_status=$?
2766
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2767
  (exit $ac_status); }; }; then
2768
  ac_cv_prog_cc_stdc=$ac_arg
2769
break
2770
else
2771
  echo "$as_me: failed program was:" >&5
2772
sed 's/^/| /' conftest.$ac_ext >&5
2773
 
2774
fi
2775
rm -f conftest.err conftest.$ac_objext
2776
done
2777
rm -f conftest.$ac_ext conftest.$ac_objext
2778
CC=$ac_save_CC
2779
 
2780
fi
2781
 
2782
case "x$ac_cv_prog_cc_stdc" in
2783
  x|xno)
2784
    echo "$as_me:$LINENO: result: none needed" >&5
2785
echo "${ECHO_T}none needed" >&6 ;;
2786
  *)
2787
    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2788
echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2789
    CC="$CC $ac_cv_prog_cc_stdc" ;;
2790
esac
2791
 
2792
# Some people use a C++ compiler to compile C.  Since we use `exit',
2793
# in C++ we need to declare it.  In case someone uses the same compiler
2794
# for both compiling C and C++ we need to have the C++ compiler decide
2795
# the declaration of exit, since it's the most demanding environment.
2796
cat >conftest.$ac_ext <<_ACEOF
2797
#ifndef __cplusplus
2798
  choke me
2799
#endif
2800
_ACEOF
2801
rm -f conftest.$ac_objext
2802
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2803
  (eval $ac_compile) 2>conftest.er1
2804
  ac_status=$?
2805
  grep -v '^ *+' conftest.er1 >conftest.err
2806
  rm -f conftest.er1
2807
  cat conftest.err >&5
2808
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2809
  (exit $ac_status); } &&
2810
         { ac_try='test -z "$ac_c_werror_flag"
2811
                         || test ! -s conftest.err'
2812
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2813
  (eval $ac_try) 2>&5
2814
  ac_status=$?
2815
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2816
  (exit $ac_status); }; } &&
2817
         { ac_try='test -s conftest.$ac_objext'
2818
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2819
  (eval $ac_try) 2>&5
2820
  ac_status=$?
2821
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2822
  (exit $ac_status); }; }; then
2823
  for ac_declaration in \
2824
   '' \
2825
   'extern "C" void std::exit (int) throw (); using std::exit;' \
2826
   'extern "C" void std::exit (int); using std::exit;' \
2827
   'extern "C" void exit (int) throw ();' \
2828
   'extern "C" void exit (int);' \
2829
   'void exit (int);'
2830
do
2831
  cat >conftest.$ac_ext <<_ACEOF
2832
/* confdefs.h.  */
2833
_ACEOF
2834
cat confdefs.h >>conftest.$ac_ext
2835
cat >>conftest.$ac_ext <<_ACEOF
2836
/* end confdefs.h.  */
2837
$ac_declaration
2838
#include 
2839
int
2840
main ()
2841
{
2842
exit (42);
2843
  ;
2844
  return 0;
2845
}
2846
_ACEOF
2847
rm -f conftest.$ac_objext
2848
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2849
  (eval $ac_compile) 2>conftest.er1
2850
  ac_status=$?
2851
  grep -v '^ *+' conftest.er1 >conftest.err
2852
  rm -f conftest.er1
2853
  cat conftest.err >&5
2854
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2855
  (exit $ac_status); } &&
2856
         { ac_try='test -z "$ac_c_werror_flag"
2857
                         || test ! -s conftest.err'
2858
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2859
  (eval $ac_try) 2>&5
2860
  ac_status=$?
2861
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2862
  (exit $ac_status); }; } &&
2863
         { ac_try='test -s conftest.$ac_objext'
2864
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2865
  (eval $ac_try) 2>&5
2866
  ac_status=$?
2867
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2868
  (exit $ac_status); }; }; then
2869
  :
2870
else
2871
  echo "$as_me: failed program was:" >&5
2872
sed 's/^/| /' conftest.$ac_ext >&5
2873
 
2874
continue
2875
fi
2876
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2877
  cat >conftest.$ac_ext <<_ACEOF
2878
/* confdefs.h.  */
2879
_ACEOF
2880
cat confdefs.h >>conftest.$ac_ext
2881
cat >>conftest.$ac_ext <<_ACEOF
2882
/* end confdefs.h.  */
2883
$ac_declaration
2884
int
2885
main ()
2886
{
2887
exit (42);
2888
  ;
2889
  return 0;
2890
}
2891
_ACEOF
2892
rm -f conftest.$ac_objext
2893
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2894
  (eval $ac_compile) 2>conftest.er1
2895
  ac_status=$?
2896
  grep -v '^ *+' conftest.er1 >conftest.err
2897
  rm -f conftest.er1
2898
  cat conftest.err >&5
2899
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2900
  (exit $ac_status); } &&
2901
         { ac_try='test -z "$ac_c_werror_flag"
2902
                         || test ! -s conftest.err'
2903
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2904
  (eval $ac_try) 2>&5
2905
  ac_status=$?
2906
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2907
  (exit $ac_status); }; } &&
2908
         { ac_try='test -s conftest.$ac_objext'
2909
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2910
  (eval $ac_try) 2>&5
2911
  ac_status=$?
2912
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2913
  (exit $ac_status); }; }; then
2914
  break
2915
else
2916
  echo "$as_me: failed program was:" >&5
2917
sed 's/^/| /' conftest.$ac_ext >&5
2918
 
2919
fi
2920
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2921
done
2922
rm -f conftest*
2923
if test -n "$ac_declaration"; then
2924
  echo '#ifdef __cplusplus' >>confdefs.h
2925
  echo $ac_declaration      >>confdefs.h
2926
  echo '#endif'             >>confdefs.h
2927
fi
2928
 
2929
else
2930
  echo "$as_me: failed program was:" >&5
2931
sed 's/^/| /' conftest.$ac_ext >&5
2932
 
2933
fi
2934
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2935
ac_ext=c
2936
ac_cpp='$CPP $CPPFLAGS'
2937
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2938
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2939
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2940
DEPDIR="${am__leading_dot}deps"
2941
 
2942
          ac_config_commands="$ac_config_commands depfiles"
2943
 
2944
 
2945
am_make=${MAKE-make}
2946
cat > confinc << 'END'
2947
am__doit:
2948
        @echo done
2949
.PHONY: am__doit
2950
END
2951
# If we don't find an include directive, just comment out the code.
2952
echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2953
echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2954
am__include="#"
2955
am__quote=
2956
_am_result=none
2957
# First try GNU make style include.
2958
echo "include confinc" > confmf
2959
# We grep out `Entering directory' and `Leaving directory'
2960
# messages which can occur if `w' ends up in MAKEFLAGS.
2961
# In particular we don't look at `^make:' because GNU make might
2962
# be invoked under some other name (usually "gmake"), in which
2963
# case it prints its new name instead of `make'.
2964
if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2965
   am__include=include
2966
   am__quote=
2967
   _am_result=GNU
2968
fi
2969
# Now try BSD make style include.
2970
if test "$am__include" = "#"; then
2971
   echo '.include "confinc"' > confmf
2972
   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2973
      am__include=.include
2974
      am__quote="\""
2975
      _am_result=BSD
2976
   fi
2977
fi
2978
 
2979
 
2980
echo "$as_me:$LINENO: result: $_am_result" >&5
2981
echo "${ECHO_T}$_am_result" >&6
2982
rm -f confinc confmf
2983
 
2984
# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2985
if test "${enable_dependency_tracking+set}" = set; then
2986
  enableval="$enable_dependency_tracking"
2987
 
2988
fi;
2989
if test "x$enable_dependency_tracking" != xno; then
2990
  am_depcomp="$ac_aux_dir/depcomp"
2991
  AMDEPBACKSLASH='\'
2992
fi
2993
 
2994
 
2995
if test "x$enable_dependency_tracking" != xno; then
2996
  AMDEP_TRUE=
2997
  AMDEP_FALSE='#'
2998
else
2999
  AMDEP_TRUE='#'
3000
  AMDEP_FALSE=
3001
fi
3002
 
3003
 
3004
 
3005
 
3006
depcc="$CC"   am_compiler_list=
3007
 
3008
echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3009
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3010
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3011
  echo $ECHO_N "(cached) $ECHO_C" >&6
3012
else
3013
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3014
  # We make a subdir and do the tests there.  Otherwise we can end up
3015
  # making bogus files that we don't know about and never remove.  For
3016
  # instance it was reported that on HP-UX the gcc test will end up
3017
  # making a dummy file named `D' -- because `-MD' means `put the output
3018
  # in D'.
3019
  mkdir conftest.dir
3020
  # Copy depcomp to subdir because otherwise we won't find it if we're
3021
  # using a relative directory.
3022
  cp "$am_depcomp" conftest.dir
3023
  cd conftest.dir
3024
  # We will build objects and dependencies in a subdirectory because
3025
  # it helps to detect inapplicable dependency modes.  For instance
3026
  # both Tru64's cc and ICC support -MD to output dependencies as a
3027
  # side effect of compilation, but ICC will put the dependencies in
3028
  # the current directory while Tru64 will put them in the object
3029
  # directory.
3030
  mkdir sub
3031
 
3032
  am_cv_CC_dependencies_compiler_type=none
3033
  if test "$am_compiler_list" = ""; then
3034
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3035
  fi
3036
  for depmode in $am_compiler_list; do
3037
    # Setup a source with many dependencies, because some compilers
3038
    # like to wrap large dependency lists on column 80 (with \), and
3039
    # we should not choose a depcomp mode which is confused by this.
3040
    #
3041
    # We need to recreate these files for each test, as the compiler may
3042
    # overwrite some of them when testing with obscure command lines.
3043
    # This happens at least with the AIX C compiler.
3044
    : > sub/conftest.c
3045
    for i in 1 2 3 4 5 6; do
3046
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3047
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3048
      # Solaris 8's {/usr,}/bin/sh.
3049
      touch sub/conftst$i.h
3050
    done
3051
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3052
 
3053
    case $depmode in
3054
    nosideeffect)
3055
      # after this tag, mechanisms are not by side-effect, so they'll
3056
      # only be used when explicitly requested
3057
      if test "x$enable_dependency_tracking" = xyes; then
3058
        continue
3059
      else
3060
        break
3061
      fi
3062
      ;;
3063
    none) break ;;
3064
    esac
3065
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3066
    # mode.  It turns out that the SunPro C++ compiler does not properly
3067
    # handle `-M -o', and we need to detect this.
3068
    if depmode=$depmode \
3069
       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3070
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3071
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3072
         >/dev/null 2>conftest.err &&
3073
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3074
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3075
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3076
      # icc doesn't choke on unknown options, it will just issue warnings
3077
      # or remarks (even with -Werror).  So we grep stderr for any message
3078
      # that says an option was ignored or not supported.
3079
      # When given -MP, icc 7.0 and 7.1 complain thusly:
3080
      #   icc: Command line warning: ignoring option '-M'; no argument required
3081
      # The diagnosis changed in icc 8.0:
3082
      #   icc: Command line remark: option '-MP' not supported
3083
      if (grep 'ignoring option' conftest.err ||
3084
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3085
        am_cv_CC_dependencies_compiler_type=$depmode
3086
        break
3087
      fi
3088
    fi
3089
  done
3090
 
3091
  cd ..
3092
  rm -rf conftest.dir
3093
else
3094
  am_cv_CC_dependencies_compiler_type=none
3095
fi
3096
 
3097
fi
3098
echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3099
echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3100
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3101
 
3102
 
3103
 
3104
if
3105
  test "x$enable_dependency_tracking" != xno \
3106
  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3107
  am__fastdepCC_TRUE=
3108
  am__fastdepCC_FALSE='#'
3109
else
3110
  am__fastdepCC_TRUE='#'
3111
  am__fastdepCC_FALSE=
3112
fi
3113
 
3114
 
3115
 
3116
echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
3117
echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
3118
if test "${ac_cv_c_const+set}" = set; then
3119
  echo $ECHO_N "(cached) $ECHO_C" >&6
3120
else
3121
  cat >conftest.$ac_ext <<_ACEOF
3122
/* confdefs.h.  */
3123
_ACEOF
3124
cat confdefs.h >>conftest.$ac_ext
3125
cat >>conftest.$ac_ext <<_ACEOF
3126
/* end confdefs.h.  */
3127
 
3128
int
3129
main ()
3130
{
3131
/* FIXME: Include the comments suggested by Paul. */
3132
#ifndef __cplusplus
3133
  /* Ultrix mips cc rejects this.  */
3134
  typedef int charset[2];
3135
  const charset x;
3136
  /* SunOS 4.1.1 cc rejects this.  */
3137
  char const *const *ccp;
3138
  char **p;
3139
  /* NEC SVR4.0.2 mips cc rejects this.  */
3140
  struct point {int x, y;};
3141
  static struct point const zero = {0,0};
3142
  /* AIX XL C 1.02.0.0 rejects this.
3143
     It does not let you subtract one const X* pointer from another in
3144
     an arm of an if-expression whose if-part is not a constant
3145
     expression */
3146
  const char *g = "string";
3147
  ccp = &g + (g ? g-g : 0);
3148
  /* HPUX 7.0 cc rejects these. */
3149
  ++ccp;
3150
  p = (char**) ccp;
3151
  ccp = (char const *const *) p;
3152
  { /* SCO 3.2v4 cc rejects this.  */
3153
    char *t;
3154
    char const *s = 0 ? (char *) 0 : (char const *) 0;
3155
 
3156
    *t++ = 0;
3157
  }
3158
  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
3159
    int x[] = {25, 17};
3160
    const int *foo = &x[0];
3161
    ++foo;
3162
  }
3163
  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3164
    typedef const int *iptr;
3165
    iptr p = 0;
3166
    ++p;
3167
  }
3168
  { /* AIX XL C 1.02.0.0 rejects this saying
3169
       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3170
    struct s { int j; const int *ap[3]; };
3171
    struct s *b; b->j = 5;
3172
  }
3173
  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3174
    const int foo = 10;
3175
  }
3176
#endif
3177
 
3178
  ;
3179
  return 0;
3180
}
3181
_ACEOF
3182
rm -f conftest.$ac_objext
3183
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3184
  (eval $ac_compile) 2>conftest.er1
3185
  ac_status=$?
3186
  grep -v '^ *+' conftest.er1 >conftest.err
3187
  rm -f conftest.er1
3188
  cat conftest.err >&5
3189
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3190
  (exit $ac_status); } &&
3191
         { ac_try='test -z "$ac_c_werror_flag"
3192
                         || test ! -s conftest.err'
3193
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3194
  (eval $ac_try) 2>&5
3195
  ac_status=$?
3196
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3197
  (exit $ac_status); }; } &&
3198
         { ac_try='test -s conftest.$ac_objext'
3199
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3200
  (eval $ac_try) 2>&5
3201
  ac_status=$?
3202
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3203
  (exit $ac_status); }; }; then
3204
  ac_cv_c_const=yes
3205
else
3206
  echo "$as_me: failed program was:" >&5
3207
sed 's/^/| /' conftest.$ac_ext >&5
3208
 
3209
ac_cv_c_const=no
3210
fi
3211
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3212
fi
3213
echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
3214
echo "${ECHO_T}$ac_cv_c_const" >&6
3215
if test $ac_cv_c_const = no; then
3216
 
3217
cat >>confdefs.h <<\_ACEOF
3218
#define const
3219
_ACEOF
3220
 
3221
fi
3222
 
3223
echo "$as_me:$LINENO: checking for inline" >&5
3224
echo $ECHO_N "checking for inline... $ECHO_C" >&6
3225
if test "${ac_cv_c_inline+set}" = set; then
3226
  echo $ECHO_N "(cached) $ECHO_C" >&6
3227
else
3228
  ac_cv_c_inline=no
3229
for ac_kw in inline __inline__ __inline; do
3230
  cat >conftest.$ac_ext <<_ACEOF
3231
/* confdefs.h.  */
3232
_ACEOF
3233
cat confdefs.h >>conftest.$ac_ext
3234
cat >>conftest.$ac_ext <<_ACEOF
3235
/* end confdefs.h.  */
3236
#ifndef __cplusplus
3237
typedef int foo_t;
3238
static $ac_kw foo_t static_foo () {return 0; }
3239
$ac_kw foo_t foo () {return 0; }
3240
#endif
3241
 
3242
_ACEOF
3243
rm -f conftest.$ac_objext
3244
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3245
  (eval $ac_compile) 2>conftest.er1
3246
  ac_status=$?
3247
  grep -v '^ *+' conftest.er1 >conftest.err
3248
  rm -f conftest.er1
3249
  cat conftest.err >&5
3250
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3251
  (exit $ac_status); } &&
3252
         { ac_try='test -z "$ac_c_werror_flag"
3253
                         || test ! -s conftest.err'
3254
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3255
  (eval $ac_try) 2>&5
3256
  ac_status=$?
3257
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3258
  (exit $ac_status); }; } &&
3259
         { ac_try='test -s conftest.$ac_objext'
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_inline=$ac_kw; break
3266
else
3267
  echo "$as_me: failed program was:" >&5
3268
sed 's/^/| /' conftest.$ac_ext >&5
3269
 
3270
fi
3271
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3272
done
3273
 
3274
fi
3275
echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3276
echo "${ECHO_T}$ac_cv_c_inline" >&6
3277
 
3278
 
3279
case $ac_cv_c_inline in
3280
  inline | yes) ;;
3281
  *)
3282
    case $ac_cv_c_inline in
3283
      no) ac_val=;;
3284
      *) ac_val=$ac_cv_c_inline;;
3285
    esac
3286
    cat >>confdefs.h <<_ACEOF
3287
#ifndef __cplusplus
3288
#define inline $ac_val
3289
#endif
3290
_ACEOF
3291
    ;;
3292
esac
3293
 
3294
 
3295
 
3296
## ----------------------- ##
3297
## Libtool initialisation. ##
3298
## ----------------------- ##
3299
 
3300
 
3301
# Check whether --enable-shared or --disable-shared was given.
3302
if test "${enable_shared+set}" = set; then
3303
  enableval="$enable_shared"
3304
  p=${PACKAGE-default}
3305
    case $enableval in
3306
    yes) enable_shared=yes ;;
3307
    no) enable_shared=no ;;
3308
    *)
3309
      enable_shared=no
3310
      # Look at the argument we got.  We use all the common list separators.
3311
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3312
      for pkg in $enableval; do
3313
        IFS="$lt_save_ifs"
3314
        if test "X$pkg" = "X$p"; then
3315
          enable_shared=yes
3316
        fi
3317
      done
3318
      IFS="$lt_save_ifs"
3319
      ;;
3320
    esac
3321
else
3322
  enable_shared=yes
3323
fi;
3324
 
3325
# Check whether --enable-static or --disable-static was given.
3326
if test "${enable_static+set}" = set; then
3327
  enableval="$enable_static"
3328
  p=${PACKAGE-default}
3329
    case $enableval in
3330
    yes) enable_static=yes ;;
3331
    no) enable_static=no ;;
3332
    *)
3333
     enable_static=no
3334
      # Look at the argument we got.  We use all the common list separators.
3335
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3336
      for pkg in $enableval; do
3337
        IFS="$lt_save_ifs"
3338
        if test "X$pkg" = "X$p"; then
3339
          enable_static=yes
3340
        fi
3341
      done
3342
      IFS="$lt_save_ifs"
3343
      ;;
3344
    esac
3345
else
3346
  enable_static=yes
3347
fi;
3348
 
3349
# Check whether --enable-fast-install or --disable-fast-install was given.
3350
if test "${enable_fast_install+set}" = set; then
3351
  enableval="$enable_fast_install"
3352
  p=${PACKAGE-default}
3353
    case $enableval in
3354
    yes) enable_fast_install=yes ;;
3355
    no) enable_fast_install=no ;;
3356
    *)
3357
      enable_fast_install=no
3358
      # Look at the argument we got.  We use all the common list separators.
3359
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3360
      for pkg in $enableval; do
3361
        IFS="$lt_save_ifs"
3362
        if test "X$pkg" = "X$p"; then
3363
          enable_fast_install=yes
3364
        fi
3365
      done
3366
      IFS="$lt_save_ifs"
3367
      ;;
3368
    esac
3369
else
3370
  enable_fast_install=yes
3371
fi;
3372
 
3373
# Make sure we can run config.sub.
3374
$ac_config_sub sun4 >/dev/null 2>&1 ||
3375
  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3376
echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3377
   { (exit 1); exit 1; }; }
3378
 
3379
echo "$as_me:$LINENO: checking build system type" >&5
3380
echo $ECHO_N "checking build system type... $ECHO_C" >&6
3381
if test "${ac_cv_build+set}" = set; then
3382
  echo $ECHO_N "(cached) $ECHO_C" >&6
3383
else
3384
  ac_cv_build_alias=$build_alias
3385
test -z "$ac_cv_build_alias" &&
3386
  ac_cv_build_alias=`$ac_config_guess`
3387
test -z "$ac_cv_build_alias" &&
3388
  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3389
echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3390
   { (exit 1); exit 1; }; }
3391
ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
3392
  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3393
echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3394
   { (exit 1); exit 1; }; }
3395
 
3396
fi
3397
echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3398
echo "${ECHO_T}$ac_cv_build" >&6
3399
build=$ac_cv_build
3400
build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3401
build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3402
build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3403
 
3404
 
3405
echo "$as_me:$LINENO: checking host system type" >&5
3406
echo $ECHO_N "checking host system type... $ECHO_C" >&6
3407
if test "${ac_cv_host+set}" = set; then
3408
  echo $ECHO_N "(cached) $ECHO_C" >&6
3409
else
3410
  ac_cv_host_alias=$host_alias
3411
test -z "$ac_cv_host_alias" &&
3412
  ac_cv_host_alias=$ac_cv_build_alias
3413
ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
3414
  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3415
echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3416
   { (exit 1); exit 1; }; }
3417
 
3418
fi
3419
echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3420
echo "${ECHO_T}$ac_cv_host" >&6
3421
host=$ac_cv_host
3422
host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3423
host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3424
host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3425
 
3426
 
3427
echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3428
echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3429
if test "${lt_cv_path_SED+set}" = set; then
3430
  echo $ECHO_N "(cached) $ECHO_C" >&6
3431
else
3432
  # Loop through the user's path and test for sed and gsed.
3433
# Then use that list of sed's as ones to test for truncation.
3434
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3435
for as_dir in $PATH
3436
do
3437
  IFS=$as_save_IFS
3438
  test -z "$as_dir" && as_dir=.
3439
  for lt_ac_prog in sed gsed; do
3440
    for ac_exec_ext in '' $ac_executable_extensions; do
3441
      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3442
        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3443
      fi
3444
    done
3445
  done
3446
done
3447
lt_ac_max=0
3448
lt_ac_count=0
3449
# Add /usr/xpg4/bin/sed as it is typically found on Solaris
3450
# along with /bin/sed that truncates output.
3451
for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3452
  test ! -f $lt_ac_sed && break
3453
  cat /dev/null > conftest.in
3454
  lt_ac_count=0
3455
  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3456
  # Check for GNU sed and select it if it is found.
3457
  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3458
    lt_cv_path_SED=$lt_ac_sed
3459
    break
3460
  fi
3461
  while true; do
3462
    cat conftest.in conftest.in >conftest.tmp
3463
    mv conftest.tmp conftest.in
3464
    cp conftest.in conftest.nl
3465
    echo >>conftest.nl
3466
    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3467
    cmp -s conftest.out conftest.nl || break
3468
    # 10000 chars as input seems more than enough
3469
    test $lt_ac_count -gt 10 && break
3470
    lt_ac_count=`expr $lt_ac_count + 1`
3471
    if test $lt_ac_count -gt $lt_ac_max; then
3472
      lt_ac_max=$lt_ac_count
3473
      lt_cv_path_SED=$lt_ac_sed
3474
    fi
3475
  done
3476
done
3477
SED=$lt_cv_path_SED
3478
 
3479
fi
3480
 
3481
echo "$as_me:$LINENO: result: $SED" >&5
3482
echo "${ECHO_T}$SED" >&6
3483
 
3484
echo "$as_me:$LINENO: checking for egrep" >&5
3485
echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3486
if test "${ac_cv_prog_egrep+set}" = set; then
3487
  echo $ECHO_N "(cached) $ECHO_C" >&6
3488
else
3489
  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3490
    then ac_cv_prog_egrep='grep -E'
3491
    else ac_cv_prog_egrep='egrep'
3492
    fi
3493
fi
3494
echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3495
echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3496
 EGREP=$ac_cv_prog_egrep
3497
 
3498
 
3499
 
3500
# Check whether --with-gnu-ld or --without-gnu-ld was given.
3501
if test "${with_gnu_ld+set}" = set; then
3502
  withval="$with_gnu_ld"
3503
  test "$withval" = no || with_gnu_ld=yes
3504
else
3505
  with_gnu_ld=no
3506
fi;
3507
ac_prog=ld
3508
if test "$GCC" = yes; then
3509
  # Check if gcc -print-prog-name=ld gives a path.
3510
  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3511
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3512
  case $host in
3513
  *-*-mingw*)
3514
    # gcc leaves a trailing carriage return which upsets mingw
3515
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3516
  *)
3517
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3518
  esac
3519
  case $ac_prog in
3520
    # Accept absolute paths.
3521
    [\\/]* | ?:[\\/]*)
3522
      re_direlt='/[^/][^/]*/\.\./'
3523
      # Canonicalize the path of ld
3524
      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3525
      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3526
        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3527
      done
3528
      test -z "$LD" && LD="$ac_prog"
3529
      ;;
3530
  "")
3531
    # If it fails, then pretend we aren't using GCC.
3532
    ac_prog=ld
3533
    ;;
3534
  *)
3535
    # If it is relative, then search for the first ld in PATH.
3536
    with_gnu_ld=unknown
3537
    ;;
3538
  esac
3539
elif test "$with_gnu_ld" = yes; then
3540
  echo "$as_me:$LINENO: checking for GNU ld" >&5
3541
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3542
else
3543
  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3544
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3545
fi
3546
if test "${lt_cv_path_LD+set}" = set; then
3547
  echo $ECHO_N "(cached) $ECHO_C" >&6
3548
else
3549
  if test -z "$LD"; then
3550
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3551
  for ac_dir in $PATH; do
3552
    IFS="$lt_save_ifs"
3553
    test -z "$ac_dir" && ac_dir=.
3554
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3555
      lt_cv_path_LD="$ac_dir/$ac_prog"
3556
      # Check to see if the program is GNU ld.  I'd rather use --version,
3557
      # but apparently some GNU ld's only accept -v.
3558
      # Break only if it was the GNU/non-GNU ld that we prefer.
3559
      case `"$lt_cv_path_LD" -v 2>&1 
3560
      *GNU* | *'with BFD'*)
3561
        test "$with_gnu_ld" != no && break
3562
        ;;
3563
      *)
3564
        test "$with_gnu_ld" != yes && break
3565
        ;;
3566
      esac
3567
    fi
3568
  done
3569
  IFS="$lt_save_ifs"
3570
else
3571
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
3572
fi
3573
fi
3574
 
3575
LD="$lt_cv_path_LD"
3576
if test -n "$LD"; then
3577
  echo "$as_me:$LINENO: result: $LD" >&5
3578
echo "${ECHO_T}$LD" >&6
3579
else
3580
  echo "$as_me:$LINENO: result: no" >&5
3581
echo "${ECHO_T}no" >&6
3582
fi
3583
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3584
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3585
   { (exit 1); exit 1; }; }
3586
echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3587
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3588
if test "${lt_cv_prog_gnu_ld+set}" = set; then
3589
  echo $ECHO_N "(cached) $ECHO_C" >&6
3590
else
3591
  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3592
case `"$LD" -v 2>&1 
3593
*GNU* | *'with BFD'*)
3594
  lt_cv_prog_gnu_ld=yes
3595
  ;;
3596
*)
3597
  lt_cv_prog_gnu_ld=no
3598
  ;;
3599
esac
3600
fi
3601
echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3602
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3603
with_gnu_ld=$lt_cv_prog_gnu_ld
3604
 
3605
 
3606
echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3607
echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3608
if test "${lt_cv_ld_reload_flag+set}" = set; then
3609
  echo $ECHO_N "(cached) $ECHO_C" >&6
3610
else
3611
  lt_cv_ld_reload_flag='-r'
3612
fi
3613
echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3614
echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3615
reload_flag=$lt_cv_ld_reload_flag
3616
case $reload_flag in
3617
"" | " "*) ;;
3618
*) reload_flag=" $reload_flag" ;;
3619
esac
3620
reload_cmds='$LD$reload_flag -o $output$reload_objs'
3621
 
3622
echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3623
echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3624
if test "${lt_cv_path_NM+set}" = set; then
3625
  echo $ECHO_N "(cached) $ECHO_C" >&6
3626
else
3627
  if test -n "$NM"; then
3628
  # Let the user override the test.
3629
  lt_cv_path_NM="$NM"
3630
else
3631
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3632
  for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3633
    IFS="$lt_save_ifs"
3634
    test -z "$ac_dir" && ac_dir=.
3635
    tmp_nm="$ac_dir/${ac_tool_prefix}nm"
3636
    if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3637
      # Check to see if the nm accepts a BSD-compat flag.
3638
      # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3639
      #   nm: unknown option "B" ignored
3640
      # Tru64's nm complains that /dev/null is an invalid object file
3641
      case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3642
      */dev/null* | *'Invalid file or object type'*)
3643
        lt_cv_path_NM="$tmp_nm -B"
3644
        break
3645
        ;;
3646
      *)
3647
        case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3648
        */dev/null*)
3649
          lt_cv_path_NM="$tmp_nm -p"
3650
          break
3651
          ;;
3652
        *)
3653
          lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3654
          continue # so that we can try to find one that supports BSD flags
3655
          ;;
3656
        esac
3657
      esac
3658
    fi
3659
  done
3660
  IFS="$lt_save_ifs"
3661
  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3662
fi
3663
fi
3664
echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3665
echo "${ECHO_T}$lt_cv_path_NM" >&6
3666
NM="$lt_cv_path_NM"
3667
 
3668
echo "$as_me:$LINENO: checking whether ln -s works" >&5
3669
echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3670
LN_S=$as_ln_s
3671
if test "$LN_S" = "ln -s"; then
3672
  echo "$as_me:$LINENO: result: yes" >&5
3673
echo "${ECHO_T}yes" >&6
3674
else
3675
  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3676
echo "${ECHO_T}no, using $LN_S" >&6
3677
fi
3678
 
3679
echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3680
echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3681
if test "${lt_cv_deplibs_check_method+set}" = set; then
3682
  echo $ECHO_N "(cached) $ECHO_C" >&6
3683
else
3684
  lt_cv_file_magic_cmd='$MAGIC_CMD'
3685
lt_cv_file_magic_test_file=
3686
lt_cv_deplibs_check_method='unknown'
3687
# Need to set the preceding variable on all platforms that support
3688
# interlibrary dependencies.
3689
# 'none' -- dependencies not supported.
3690
# `unknown' -- same as none, but documents that we really don't know.
3691
# 'pass_all' -- all dependencies passed with no checks.
3692
# 'test_compile' -- check by making test program.
3693
# 'file_magic [[regex]]' -- check by looking for files in library path
3694
# which responds to the $file_magic_cmd with a given extended regex.
3695
# If you have `file' or equivalent on your system and you're not sure
3696
# whether `pass_all' will *always* work, you probably want this one.
3697
 
3698
case $host_os in
3699
aix4* | aix5*)
3700
  lt_cv_deplibs_check_method=pass_all
3701
  ;;
3702
 
3703
beos*)
3704
  lt_cv_deplibs_check_method=pass_all
3705
  ;;
3706
 
3707
bsdi4*)
3708
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3709
  lt_cv_file_magic_cmd='/usr/bin/file -L'
3710
  lt_cv_file_magic_test_file=/shlib/libc.so
3711
  ;;
3712
 
3713
cygwin* | mingw* | pw32*)
3714
  # win32_libid is a shell function defined in ltmain.sh
3715
  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3716
  lt_cv_file_magic_cmd='win32_libid'
3717
  ;;
3718
 
3719
darwin* | rhapsody*)
3720
  # this will be overwritten by pass_all, but leave it in just in case
3721
  lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3722
  lt_cv_file_magic_cmd='/usr/bin/file -L'
3723
  case "$host_os" in
3724
  rhapsody* | darwin1.[012])
3725
    lt_cv_file_magic_test_file=`/System/Library/Frameworks/System.framework/System`
3726
    ;;
3727
  *) # Darwin 1.3 on
3728
    lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3729
    ;;
3730
  esac
3731
  lt_cv_deplibs_check_method=pass_all
3732
  ;;
3733
 
3734
freebsd*)
3735
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3736
    case $host_cpu in
3737
    i*86 )
3738
      # Not sure whether the presence of OpenBSD here was a mistake.
3739
      # Let's accept both of them until this is cleared up.
3740
      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3741
      lt_cv_file_magic_cmd=/usr/bin/file
3742
      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3743
      ;;
3744
    esac
3745
  else
3746
    lt_cv_deplibs_check_method=pass_all
3747
  fi
3748
  ;;
3749
 
3750
gnu*)
3751
  lt_cv_deplibs_check_method=pass_all
3752
  ;;
3753
 
3754
hpux10.20* | hpux11*)
3755
  lt_cv_file_magic_cmd=/usr/bin/file
3756
  case "$host_cpu" in
3757
  ia64*)
3758
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3759
    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3760
    ;;
3761
  hppa*64*)
3762
    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]'
3763
    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3764
    ;;
3765
  *)
3766
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3767
    lt_cv_file_magic_test_file=/usr/lib/libc.sl
3768
    ;;
3769
  esac
3770
  ;;
3771
 
3772
irix5* | irix6* | nonstopux*)
3773
  case $host_os in
3774
  irix5* | nonstopux*)
3775
    # this will be overridden with pass_all, but let us keep it just in case
3776
    lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3777
    ;;
3778
  *)
3779
    case $LD in
3780
    *-32|*"-32 ") libmagic=32-bit;;
3781
    *-n32|*"-n32 ") libmagic=N32;;
3782
    *-64|*"-64 ") libmagic=64-bit;;
3783
    *) libmagic=never-match;;
3784
    esac
3785
    # this will be overridden with pass_all, but let us keep it just in case
3786
    lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3787
    ;;
3788
  esac
3789
  lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3790
  lt_cv_deplibs_check_method=pass_all
3791
  ;;
3792
 
3793
# This must be Linux ELF.
3794
linux*)
3795
  case $host_cpu in
3796
  alpha* | hppa* | i*86 | ia64* | m68* | mips | mipsel | powerpc* | sparc* | s390* | sh*)
3797
    lt_cv_deplibs_check_method=pass_all ;;
3798
  *)
3799
    # glibc up to 2.1.1 does not perform some relocations on ARM
3800
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3801
  esac
3802
  lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3803
  ;;
3804
 
3805
netbsd*)
3806
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3807
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3808
  else
3809
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
3810
  fi
3811
  ;;
3812
 
3813
newos6*)
3814
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3815
  lt_cv_file_magic_cmd=/usr/bin/file
3816
  lt_cv_file_magic_test_file=/usr/lib/libnls.so
3817
  ;;
3818
 
3819
nto-qnx)
3820
  lt_cv_deplibs_check_method=unknown
3821
  ;;
3822
 
3823
openbsd*)
3824
  lt_cv_file_magic_cmd=/usr/bin/file
3825
  lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3826
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3827
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
3828
  else
3829
    lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
3830
  fi
3831
  ;;
3832
 
3833
osf3* | osf4* | osf5*)
3834
  # this will be overridden with pass_all, but let us keep it just in case
3835
  lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3836
  lt_cv_file_magic_test_file=/shlib/libc.so
3837
  lt_cv_deplibs_check_method=pass_all
3838
  ;;
3839
 
3840
sco3.2v5*)
3841
  lt_cv_deplibs_check_method=pass_all
3842
  ;;
3843
 
3844
solaris*)
3845
  lt_cv_deplibs_check_method=pass_all
3846
  lt_cv_file_magic_test_file=/lib/libc.so
3847
  ;;
3848
 
3849
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3850
  case $host_vendor in
3851
  motorola)
3852
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
3853
    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3854
    ;;
3855
  ncr)
3856
    lt_cv_deplibs_check_method=pass_all
3857
    ;;
3858
  sequent)
3859
    lt_cv_file_magic_cmd='/bin/file'
3860
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3861
    ;;
3862
  sni)
3863
    lt_cv_file_magic_cmd='/bin/file'
3864
    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3865
    lt_cv_file_magic_test_file=/lib/libc.so
3866
    ;;
3867
  siemens)
3868
    lt_cv_deplibs_check_method=pass_all
3869
    ;;
3870
  esac
3871
  ;;
3872
 
3873
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
3874
  lt_cv_deplibs_check_method=pass_all
3875
  ;;
3876
esac
3877
 
3878
fi
3879
echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3880
echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3881
file_magic_cmd=$lt_cv_file_magic_cmd
3882
deplibs_check_method=$lt_cv_deplibs_check_method
3883
test -z "$deplibs_check_method" && deplibs_check_method=unknown
3884
 
3885
 
3886
 
3887
 
3888
# If no C compiler was specified, use CC.
3889
LTCC=${LTCC-"$CC"}
3890
 
3891
# Allow CC to be a program name with arguments.
3892
compiler=$CC
3893
 
3894
# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3895
if test "${enable_libtool_lock+set}" = set; then
3896
  enableval="$enable_libtool_lock"
3897
 
3898
fi;
3899
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
3900
 
3901
# Some flags need to be propagated to the compiler or linker for good
3902
# libtool support.
3903
case $host in
3904
ia64-*-hpux*)
3905
  # Find out which ABI we are using.
3906
  echo 'int i;' > conftest.$ac_ext
3907
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3908
  (eval $ac_compile) 2>&5
3909
  ac_status=$?
3910
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3911
  (exit $ac_status); }; then
3912
    case `/usr/bin/file conftest.$ac_objext` in
3913
    *ELF-32*)
3914
      HPUX_IA64_MODE="32"
3915
      ;;
3916
    *ELF-64*)
3917
      HPUX_IA64_MODE="64"
3918
      ;;
3919
    esac
3920
  fi
3921
  rm -rf conftest*
3922
  ;;
3923
*-*-irix6*)
3924
  # Find out which ABI we are using.
3925
  echo '#line 3925 "configure"' > conftest.$ac_ext
3926
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3927
  (eval $ac_compile) 2>&5
3928
  ac_status=$?
3929
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3930
  (exit $ac_status); }; then
3931
   if test "$lt_cv_prog_gnu_ld" = yes; then
3932
    case `/usr/bin/file conftest.$ac_objext` in
3933
    *32-bit*)
3934
      LD="${LD-ld} -melf32bsmip"
3935
      ;;
3936
    *N32*)
3937
      LD="${LD-ld} -melf32bmipn32"
3938
      ;;
3939
    *64-bit*)
3940
      LD="${LD-ld} -melf64bmip"
3941
      ;;
3942
    esac
3943
   else
3944
    case `/usr/bin/file conftest.$ac_objext` in
3945
    *32-bit*)
3946
      LD="${LD-ld} -32"
3947
      ;;
3948
    *N32*)
3949
      LD="${LD-ld} -n32"
3950
      ;;
3951
    *64-bit*)
3952
      LD="${LD-ld} -64"
3953
      ;;
3954
    esac
3955
   fi
3956
  fi
3957
  rm -rf conftest*
3958
  ;;
3959
 
3960
x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
3961
  # Find out which ABI we are using.
3962
  echo 'int i;' > conftest.$ac_ext
3963
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3964
  (eval $ac_compile) 2>&5
3965
  ac_status=$?
3966
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3967
  (exit $ac_status); }; then
3968
    case "`/usr/bin/file conftest.o`" in
3969
    *32-bit*)
3970
      case $host in
3971
        x86_64-*linux*)
3972
          LD="${LD-ld} -m elf_i386"
3973
          ;;
3974
        ppc64-*linux*)
3975
          LD="${LD-ld} -m elf32ppclinux"
3976
          ;;
3977
        s390x-*linux*)
3978
          LD="${LD-ld} -m elf_s390"
3979
          ;;
3980
        sparc64-*linux*)
3981
          LD="${LD-ld} -m elf32_sparc"
3982
          ;;
3983
      esac
3984
      ;;
3985
    *64-bit*)
3986
      case $host in
3987
        x86_64-*linux*)
3988
          LD="${LD-ld} -m elf_x86_64"
3989
          ;;
3990
        ppc*-*linux*|powerpc*-*linux*)
3991
          LD="${LD-ld} -m elf64ppc"
3992
          ;;
3993
        s390*-*linux*)
3994
          LD="${LD-ld} -m elf64_s390"
3995
          ;;
3996
        sparc*-*linux*)
3997
          LD="${LD-ld} -m elf64_sparc"
3998
          ;;
3999
      esac
4000
      ;;
4001
    esac
4002
  fi
4003
  rm -rf conftest*
4004
  ;;
4005
 
4006
*-*-sco3.2v5*)
4007
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4008
  SAVE_CFLAGS="$CFLAGS"
4009
  CFLAGS="$CFLAGS -belf"
4010
  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4011
echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4012
if test "${lt_cv_cc_needs_belf+set}" = set; then
4013
  echo $ECHO_N "(cached) $ECHO_C" >&6
4014
else
4015
  ac_ext=c
4016
ac_cpp='$CPP $CPPFLAGS'
4017
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4018
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4019
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4020
 
4021
     cat >conftest.$ac_ext <<_ACEOF
4022
/* confdefs.h.  */
4023
_ACEOF
4024
cat confdefs.h >>conftest.$ac_ext
4025
cat >>conftest.$ac_ext <<_ACEOF
4026
/* end confdefs.h.  */
4027
 
4028
int
4029
main ()
4030
{
4031
 
4032
  ;
4033
  return 0;
4034
}
4035
_ACEOF
4036
rm -f conftest.$ac_objext conftest$ac_exeext
4037
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4038
  (eval $ac_link) 2>conftest.er1
4039
  ac_status=$?
4040
  grep -v '^ *+' conftest.er1 >conftest.err
4041
  rm -f conftest.er1
4042
  cat conftest.err >&5
4043
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4044
  (exit $ac_status); } &&
4045
         { ac_try='test -z "$ac_c_werror_flag"
4046
                         || test ! -s conftest.err'
4047
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4048
  (eval $ac_try) 2>&5
4049
  ac_status=$?
4050
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4051
  (exit $ac_status); }; } &&
4052
         { ac_try='test -s conftest$ac_exeext'
4053
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4054
  (eval $ac_try) 2>&5
4055
  ac_status=$?
4056
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4057
  (exit $ac_status); }; }; then
4058
  lt_cv_cc_needs_belf=yes
4059
else
4060
  echo "$as_me: failed program was:" >&5
4061
sed 's/^/| /' conftest.$ac_ext >&5
4062
 
4063
lt_cv_cc_needs_belf=no
4064
fi
4065
rm -f conftest.err conftest.$ac_objext \
4066
      conftest$ac_exeext conftest.$ac_ext
4067
     ac_ext=c
4068
ac_cpp='$CPP $CPPFLAGS'
4069
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4070
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4071
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4072
 
4073
fi
4074
echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4075
echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4076
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4077
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4078
    CFLAGS="$SAVE_CFLAGS"
4079
  fi
4080
  ;;
4081
*-*-cygwin* | *-*-mingw* | *-*-pw32*)
4082
  if test -n "$ac_tool_prefix"; then
4083
  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
4084
set dummy ${ac_tool_prefix}dlltool; ac_word=$2
4085
echo "$as_me:$LINENO: checking for $ac_word" >&5
4086
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4087
if test "${ac_cv_prog_DLLTOOL+set}" = set; then
4088
  echo $ECHO_N "(cached) $ECHO_C" >&6
4089
else
4090
  if test -n "$DLLTOOL"; then
4091
  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4092
else
4093
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4094
for as_dir in $PATH
4095
do
4096
  IFS=$as_save_IFS
4097
  test -z "$as_dir" && as_dir=.
4098
  for ac_exec_ext in '' $ac_executable_extensions; do
4099
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4100
    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
4101
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4102
    break 2
4103
  fi
4104
done
4105
done
4106
 
4107
fi
4108
fi
4109
DLLTOOL=$ac_cv_prog_DLLTOOL
4110
if test -n "$DLLTOOL"; then
4111
  echo "$as_me:$LINENO: result: $DLLTOOL" >&5
4112
echo "${ECHO_T}$DLLTOOL" >&6
4113
else
4114
  echo "$as_me:$LINENO: result: no" >&5
4115
echo "${ECHO_T}no" >&6
4116
fi
4117
 
4118
fi
4119
if test -z "$ac_cv_prog_DLLTOOL"; then
4120
  ac_ct_DLLTOOL=$DLLTOOL
4121
  # Extract the first word of "dlltool", so it can be a program name with args.
4122
set dummy dlltool; ac_word=$2
4123
echo "$as_me:$LINENO: checking for $ac_word" >&5
4124
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4125
if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
4126
  echo $ECHO_N "(cached) $ECHO_C" >&6
4127
else
4128
  if test -n "$ac_ct_DLLTOOL"; then
4129
  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
4130
else
4131
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4132
for as_dir in $PATH
4133
do
4134
  IFS=$as_save_IFS
4135
  test -z "$as_dir" && as_dir=.
4136
  for ac_exec_ext in '' $ac_executable_extensions; do
4137
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4138
    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
4139
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4140
    break 2
4141
  fi
4142
done
4143
done
4144
 
4145
  test -z "$ac_cv_prog_ac_ct_DLLTOOL" && ac_cv_prog_ac_ct_DLLTOOL="false"
4146
fi
4147
fi
4148
ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
4149
if test -n "$ac_ct_DLLTOOL"; then
4150
  echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
4151
echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
4152
else
4153
  echo "$as_me:$LINENO: result: no" >&5
4154
echo "${ECHO_T}no" >&6
4155
fi
4156
 
4157
  DLLTOOL=$ac_ct_DLLTOOL
4158
else
4159
  DLLTOOL="$ac_cv_prog_DLLTOOL"
4160
fi
4161
 
4162
  if test -n "$ac_tool_prefix"; then
4163
  # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
4164
set dummy ${ac_tool_prefix}as; ac_word=$2
4165
echo "$as_me:$LINENO: checking for $ac_word" >&5
4166
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4167
if test "${ac_cv_prog_AS+set}" = set; then
4168
  echo $ECHO_N "(cached) $ECHO_C" >&6
4169
else
4170
  if test -n "$AS"; then
4171
  ac_cv_prog_AS="$AS" # Let the user override the test.
4172
else
4173
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4174
for as_dir in $PATH
4175
do
4176
  IFS=$as_save_IFS
4177
  test -z "$as_dir" && as_dir=.
4178
  for ac_exec_ext in '' $ac_executable_extensions; do
4179
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4180
    ac_cv_prog_AS="${ac_tool_prefix}as"
4181
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4182
    break 2
4183
  fi
4184
done
4185
done
4186
 
4187
fi
4188
fi
4189
AS=$ac_cv_prog_AS
4190
if test -n "$AS"; then
4191
  echo "$as_me:$LINENO: result: $AS" >&5
4192
echo "${ECHO_T}$AS" >&6
4193
else
4194
  echo "$as_me:$LINENO: result: no" >&5
4195
echo "${ECHO_T}no" >&6
4196
fi
4197
 
4198
fi
4199
if test -z "$ac_cv_prog_AS"; then
4200
  ac_ct_AS=$AS
4201
  # Extract the first word of "as", so it can be a program name with args.
4202
set dummy as; ac_word=$2
4203
echo "$as_me:$LINENO: checking for $ac_word" >&5
4204
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4205
if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
4206
  echo $ECHO_N "(cached) $ECHO_C" >&6
4207
else
4208
  if test -n "$ac_ct_AS"; then
4209
  ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
4210
else
4211
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4212
for as_dir in $PATH
4213
do
4214
  IFS=$as_save_IFS
4215
  test -z "$as_dir" && as_dir=.
4216
  for ac_exec_ext in '' $ac_executable_extensions; do
4217
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4218
    ac_cv_prog_ac_ct_AS="as"
4219
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4220
    break 2
4221
  fi
4222
done
4223
done
4224
 
4225
  test -z "$ac_cv_prog_ac_ct_AS" && ac_cv_prog_ac_ct_AS="false"
4226
fi
4227
fi
4228
ac_ct_AS=$ac_cv_prog_ac_ct_AS
4229
if test -n "$ac_ct_AS"; then
4230
  echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
4231
echo "${ECHO_T}$ac_ct_AS" >&6
4232
else
4233
  echo "$as_me:$LINENO: result: no" >&5
4234
echo "${ECHO_T}no" >&6
4235
fi
4236
 
4237
  AS=$ac_ct_AS
4238
else
4239
  AS="$ac_cv_prog_AS"
4240
fi
4241
 
4242
  if test -n "$ac_tool_prefix"; then
4243
  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4244
set dummy ${ac_tool_prefix}objdump; ac_word=$2
4245
echo "$as_me:$LINENO: checking for $ac_word" >&5
4246
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4247
if test "${ac_cv_prog_OBJDUMP+set}" = set; then
4248
  echo $ECHO_N "(cached) $ECHO_C" >&6
4249
else
4250
  if test -n "$OBJDUMP"; then
4251
  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4252
else
4253
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4254
for as_dir in $PATH
4255
do
4256
  IFS=$as_save_IFS
4257
  test -z "$as_dir" && as_dir=.
4258
  for ac_exec_ext in '' $ac_executable_extensions; do
4259
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4260
    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4261
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4262
    break 2
4263
  fi
4264
done
4265
done
4266
 
4267
fi
4268
fi
4269
OBJDUMP=$ac_cv_prog_OBJDUMP
4270
if test -n "$OBJDUMP"; then
4271
  echo "$as_me:$LINENO: result: $OBJDUMP" >&5
4272
echo "${ECHO_T}$OBJDUMP" >&6
4273
else
4274
  echo "$as_me:$LINENO: result: no" >&5
4275
echo "${ECHO_T}no" >&6
4276
fi
4277
 
4278
fi
4279
if test -z "$ac_cv_prog_OBJDUMP"; then
4280
  ac_ct_OBJDUMP=$OBJDUMP
4281
  # Extract the first word of "objdump", so it can be a program name with args.
4282
set dummy objdump; ac_word=$2
4283
echo "$as_me:$LINENO: checking for $ac_word" >&5
4284
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4285
if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
4286
  echo $ECHO_N "(cached) $ECHO_C" >&6
4287
else
4288
  if test -n "$ac_ct_OBJDUMP"; then
4289
  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4290
else
4291
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4292
for as_dir in $PATH
4293
do
4294
  IFS=$as_save_IFS
4295
  test -z "$as_dir" && as_dir=.
4296
  for ac_exec_ext in '' $ac_executable_extensions; do
4297
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4298
    ac_cv_prog_ac_ct_OBJDUMP="objdump"
4299
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4300
    break 2
4301
  fi
4302
done
4303
done
4304
 
4305
  test -z "$ac_cv_prog_ac_ct_OBJDUMP" && ac_cv_prog_ac_ct_OBJDUMP="false"
4306
fi
4307
fi
4308
ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4309
if test -n "$ac_ct_OBJDUMP"; then
4310
  echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
4311
echo "${ECHO_T}$ac_ct_OBJDUMP" >&6
4312
else
4313
  echo "$as_me:$LINENO: result: no" >&5
4314
echo "${ECHO_T}no" >&6
4315
fi
4316
 
4317
  OBJDUMP=$ac_ct_OBJDUMP
4318
else
4319
  OBJDUMP="$ac_cv_prog_OBJDUMP"
4320
fi
4321
 
4322
  ;;
4323
 
4324
esac
4325
 
4326
need_locks="$enable_libtool_lock"
4327
 
4328
 
4329
ac_ext=c
4330
ac_cpp='$CPP $CPPFLAGS'
4331
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4332
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4333
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4334
echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4335
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4336
# On Suns, sometimes $CPP names a directory.
4337
if test -n "$CPP" && test -d "$CPP"; then
4338
  CPP=
4339
fi
4340
if test -z "$CPP"; then
4341
  if test "${ac_cv_prog_CPP+set}" = set; then
4342
  echo $ECHO_N "(cached) $ECHO_C" >&6
4343
else
4344
      # Double quotes because CPP needs to be expanded
4345
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4346
    do
4347
      ac_preproc_ok=false
4348
for ac_c_preproc_warn_flag in '' yes
4349
do
4350
  # Use a header file that comes with gcc, so configuring glibc
4351
  # with a fresh cross-compiler works.
4352
  # Prefer  to  if __STDC__ is defined, since
4353
  #  exists even on freestanding compilers.
4354
  # On the NeXT, cc -E runs the code through the compiler's parser,
4355
  # not just through cpp. "Syntax error" is here to catch this case.
4356
  cat >conftest.$ac_ext <<_ACEOF
4357
/* confdefs.h.  */
4358
_ACEOF
4359
cat confdefs.h >>conftest.$ac_ext
4360
cat >>conftest.$ac_ext <<_ACEOF
4361
/* end confdefs.h.  */
4362
#ifdef __STDC__
4363
# include 
4364
#else
4365
# include 
4366
#endif
4367
                     Syntax error
4368
_ACEOF
4369
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4370
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4371
  ac_status=$?
4372
  grep -v '^ *+' conftest.er1 >conftest.err
4373
  rm -f conftest.er1
4374
  cat conftest.err >&5
4375
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4376
  (exit $ac_status); } >/dev/null; then
4377
  if test -s conftest.err; then
4378
    ac_cpp_err=$ac_c_preproc_warn_flag
4379
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4380
  else
4381
    ac_cpp_err=
4382
  fi
4383
else
4384
  ac_cpp_err=yes
4385
fi
4386
if test -z "$ac_cpp_err"; then
4387
  :
4388
else
4389
  echo "$as_me: failed program was:" >&5
4390
sed 's/^/| /' conftest.$ac_ext >&5
4391
 
4392
  # Broken: fails on valid input.
4393
continue
4394
fi
4395
rm -f conftest.err conftest.$ac_ext
4396
 
4397
  # OK, works on sane cases.  Now check whether non-existent headers
4398
  # can be detected and how.
4399
  cat >conftest.$ac_ext <<_ACEOF
4400
/* confdefs.h.  */
4401
_ACEOF
4402
cat confdefs.h >>conftest.$ac_ext
4403
cat >>conftest.$ac_ext <<_ACEOF
4404
/* end confdefs.h.  */
4405
#include 
4406
_ACEOF
4407
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4408
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4409
  ac_status=$?
4410
  grep -v '^ *+' conftest.er1 >conftest.err
4411
  rm -f conftest.er1
4412
  cat conftest.err >&5
4413
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4414
  (exit $ac_status); } >/dev/null; then
4415
  if test -s conftest.err; then
4416
    ac_cpp_err=$ac_c_preproc_warn_flag
4417
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4418
  else
4419
    ac_cpp_err=
4420
  fi
4421
else
4422
  ac_cpp_err=yes
4423
fi
4424
if test -z "$ac_cpp_err"; then
4425
  # Broken: success on invalid input.
4426
continue
4427
else
4428
  echo "$as_me: failed program was:" >&5
4429
sed 's/^/| /' conftest.$ac_ext >&5
4430
 
4431
  # Passes both tests.
4432
ac_preproc_ok=:
4433
break
4434
fi
4435
rm -f conftest.err conftest.$ac_ext
4436
 
4437
done
4438
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4439
rm -f conftest.err conftest.$ac_ext
4440
if $ac_preproc_ok; then
4441
  break
4442
fi
4443
 
4444
    done
4445
    ac_cv_prog_CPP=$CPP
4446
 
4447
fi
4448
  CPP=$ac_cv_prog_CPP
4449
else
4450
  ac_cv_prog_CPP=$CPP
4451
fi
4452
echo "$as_me:$LINENO: result: $CPP" >&5
4453
echo "${ECHO_T}$CPP" >&6
4454
ac_preproc_ok=false
4455
for ac_c_preproc_warn_flag in '' yes
4456
do
4457
  # Use a header file that comes with gcc, so configuring glibc
4458
  # with a fresh cross-compiler works.
4459
  # Prefer  to  if __STDC__ is defined, since
4460
  #  exists even on freestanding compilers.
4461
  # On the NeXT, cc -E runs the code through the compiler's parser,
4462
  # not just through cpp. "Syntax error" is here to catch this case.
4463
  cat >conftest.$ac_ext <<_ACEOF
4464
/* confdefs.h.  */
4465
_ACEOF
4466
cat confdefs.h >>conftest.$ac_ext
4467
cat >>conftest.$ac_ext <<_ACEOF
4468
/* end confdefs.h.  */
4469
#ifdef __STDC__
4470
# include 
4471
#else
4472
# include 
4473
#endif
4474
                     Syntax error
4475
_ACEOF
4476
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4477
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4478
  ac_status=$?
4479
  grep -v '^ *+' conftest.er1 >conftest.err
4480
  rm -f conftest.er1
4481
  cat conftest.err >&5
4482
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4483
  (exit $ac_status); } >/dev/null; then
4484
  if test -s conftest.err; then
4485
    ac_cpp_err=$ac_c_preproc_warn_flag
4486
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4487
  else
4488
    ac_cpp_err=
4489
  fi
4490
else
4491
  ac_cpp_err=yes
4492
fi
4493
if test -z "$ac_cpp_err"; then
4494
  :
4495
else
4496
  echo "$as_me: failed program was:" >&5
4497
sed 's/^/| /' conftest.$ac_ext >&5
4498
 
4499
  # Broken: fails on valid input.
4500
continue
4501
fi
4502
rm -f conftest.err conftest.$ac_ext
4503
 
4504
  # OK, works on sane cases.  Now check whether non-existent headers
4505
  # can be detected and how.
4506
  cat >conftest.$ac_ext <<_ACEOF
4507
/* confdefs.h.  */
4508
_ACEOF
4509
cat confdefs.h >>conftest.$ac_ext
4510
cat >>conftest.$ac_ext <<_ACEOF
4511
/* end confdefs.h.  */
4512
#include 
4513
_ACEOF
4514
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4515
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4516
  ac_status=$?
4517
  grep -v '^ *+' conftest.er1 >conftest.err
4518
  rm -f conftest.er1
4519
  cat conftest.err >&5
4520
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4521
  (exit $ac_status); } >/dev/null; then
4522
  if test -s conftest.err; then
4523
    ac_cpp_err=$ac_c_preproc_warn_flag
4524
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4525
  else
4526
    ac_cpp_err=
4527
  fi
4528
else
4529
  ac_cpp_err=yes
4530
fi
4531
if test -z "$ac_cpp_err"; then
4532
  # Broken: success on invalid input.
4533
continue
4534
else
4535
  echo "$as_me: failed program was:" >&5
4536
sed 's/^/| /' conftest.$ac_ext >&5
4537
 
4538
  # Passes both tests.
4539
ac_preproc_ok=:
4540
break
4541
fi
4542
rm -f conftest.err conftest.$ac_ext
4543
 
4544
done
4545
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4546
rm -f conftest.err conftest.$ac_ext
4547
if $ac_preproc_ok; then
4548
  :
4549
else
4550
  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4551
See \`config.log' for more details." >&5
4552
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4553
See \`config.log' for more details." >&2;}
4554
   { (exit 1); exit 1; }; }
4555
fi
4556
 
4557
ac_ext=c
4558
ac_cpp='$CPP $CPPFLAGS'
4559
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4560
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4561
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4562
 
4563
 
4564
echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4565
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4566
if test "${ac_cv_header_stdc+set}" = set; then
4567
  echo $ECHO_N "(cached) $ECHO_C" >&6
4568
else
4569
  cat >conftest.$ac_ext <<_ACEOF
4570
/* confdefs.h.  */
4571
_ACEOF
4572
cat confdefs.h >>conftest.$ac_ext
4573
cat >>conftest.$ac_ext <<_ACEOF
4574
/* end confdefs.h.  */
4575
#include 
4576
#include 
4577
#include 
4578
#include 
4579
 
4580
int
4581
main ()
4582
{
4583
 
4584
  ;
4585
  return 0;
4586
}
4587
_ACEOF
4588
rm -f conftest.$ac_objext
4589
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4590
  (eval $ac_compile) 2>conftest.er1
4591
  ac_status=$?
4592
  grep -v '^ *+' conftest.er1 >conftest.err
4593
  rm -f conftest.er1
4594
  cat conftest.err >&5
4595
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4596
  (exit $ac_status); } &&
4597
         { ac_try='test -z "$ac_c_werror_flag"
4598
                         || test ! -s conftest.err'
4599
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4600
  (eval $ac_try) 2>&5
4601
  ac_status=$?
4602
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4603
  (exit $ac_status); }; } &&
4604
         { ac_try='test -s conftest.$ac_objext'
4605
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4606
  (eval $ac_try) 2>&5
4607
  ac_status=$?
4608
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4609
  (exit $ac_status); }; }; then
4610
  ac_cv_header_stdc=yes
4611
else
4612
  echo "$as_me: failed program was:" >&5
4613
sed 's/^/| /' conftest.$ac_ext >&5
4614
 
4615
ac_cv_header_stdc=no
4616
fi
4617
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4618
 
4619
if test $ac_cv_header_stdc = yes; then
4620
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4621
  cat >conftest.$ac_ext <<_ACEOF
4622
/* confdefs.h.  */
4623
_ACEOF
4624
cat confdefs.h >>conftest.$ac_ext
4625
cat >>conftest.$ac_ext <<_ACEOF
4626
/* end confdefs.h.  */
4627
#include 
4628
 
4629
_ACEOF
4630
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4631
  $EGREP "memchr" >/dev/null 2>&1; then
4632
  :
4633
else
4634
  ac_cv_header_stdc=no
4635
fi
4636
rm -f conftest*
4637
 
4638
fi
4639
 
4640
if test $ac_cv_header_stdc = yes; then
4641
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4642
  cat >conftest.$ac_ext <<_ACEOF
4643
/* confdefs.h.  */
4644
_ACEOF
4645
cat confdefs.h >>conftest.$ac_ext
4646
cat >>conftest.$ac_ext <<_ACEOF
4647
/* end confdefs.h.  */
4648
#include 
4649
 
4650
_ACEOF
4651
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4652
  $EGREP "free" >/dev/null 2>&1; then
4653
  :
4654
else
4655
  ac_cv_header_stdc=no
4656
fi
4657
rm -f conftest*
4658
 
4659
fi
4660
 
4661
if test $ac_cv_header_stdc = yes; then
4662
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4663
  if test "$cross_compiling" = yes; then
4664
  :
4665
else
4666
  cat >conftest.$ac_ext <<_ACEOF
4667
/* confdefs.h.  */
4668
_ACEOF
4669
cat confdefs.h >>conftest.$ac_ext
4670
cat >>conftest.$ac_ext <<_ACEOF
4671
/* end confdefs.h.  */
4672
#include 
4673
#if ((' ' & 0x0FF) == 0x020)
4674
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4675
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4676
#else
4677
# define ISLOWER(c) \
4678
                   (('a' <= (c) && (c) <= 'i') \
4679
                     || ('j' <= (c) && (c) <= 'r') \
4680
                     || ('s' <= (c) && (c) <= 'z'))
4681
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4682
#endif
4683
 
4684
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4685
int
4686
main ()
4687
{
4688
  int i;
4689
  for (i = 0; i < 256; i++)
4690
    if (XOR (islower (i), ISLOWER (i))
4691
        || toupper (i) != TOUPPER (i))
4692
      exit(2);
4693
  exit (0);
4694
}
4695
_ACEOF
4696
rm -f conftest$ac_exeext
4697
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4698
  (eval $ac_link) 2>&5
4699
  ac_status=$?
4700
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4701
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4702
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4703
  (eval $ac_try) 2>&5
4704
  ac_status=$?
4705
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4706
  (exit $ac_status); }; }; then
4707
  :
4708
else
4709
  echo "$as_me: program exited with status $ac_status" >&5
4710
echo "$as_me: failed program was:" >&5
4711
sed 's/^/| /' conftest.$ac_ext >&5
4712
 
4713
( exit $ac_status )
4714
ac_cv_header_stdc=no
4715
fi
4716
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4717
fi
4718
fi
4719
fi
4720
echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4721
echo "${ECHO_T}$ac_cv_header_stdc" >&6
4722
if test $ac_cv_header_stdc = yes; then
4723
 
4724
cat >>confdefs.h <<\_ACEOF
4725
#define STDC_HEADERS 1
4726
_ACEOF
4727
 
4728
fi
4729
 
4730
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4731
 
4732
 
4733
 
4734
 
4735
 
4736
 
4737
 
4738
 
4739
 
4740
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4741
                  inttypes.h stdint.h unistd.h
4742
do
4743
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4744
echo "$as_me:$LINENO: checking for $ac_header" >&5
4745
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4746
if eval "test \"\${$as_ac_Header+set}\" = set"; then
4747
  echo $ECHO_N "(cached) $ECHO_C" >&6
4748
else
4749
  cat >conftest.$ac_ext <<_ACEOF
4750
/* confdefs.h.  */
4751
_ACEOF
4752
cat confdefs.h >>conftest.$ac_ext
4753
cat >>conftest.$ac_ext <<_ACEOF
4754
/* end confdefs.h.  */
4755
$ac_includes_default
4756
 
4757
#include <$ac_header>
4758
_ACEOF
4759
rm -f conftest.$ac_objext
4760
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4761
  (eval $ac_compile) 2>conftest.er1
4762
  ac_status=$?
4763
  grep -v '^ *+' conftest.er1 >conftest.err
4764
  rm -f conftest.er1
4765
  cat conftest.err >&5
4766
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4767
  (exit $ac_status); } &&
4768
         { ac_try='test -z "$ac_c_werror_flag"
4769
                         || test ! -s conftest.err'
4770
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4771
  (eval $ac_try) 2>&5
4772
  ac_status=$?
4773
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4774
  (exit $ac_status); }; } &&
4775
         { ac_try='test -s conftest.$ac_objext'
4776
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4777
  (eval $ac_try) 2>&5
4778
  ac_status=$?
4779
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4780
  (exit $ac_status); }; }; then
4781
  eval "$as_ac_Header=yes"
4782
else
4783
  echo "$as_me: failed program was:" >&5
4784
sed 's/^/| /' conftest.$ac_ext >&5
4785
 
4786
eval "$as_ac_Header=no"
4787
fi
4788
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4789
fi
4790
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4791
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4792
if test `eval echo '${'$as_ac_Header'}'` = yes; then
4793
  cat >>confdefs.h <<_ACEOF
4794
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4795
_ACEOF
4796
 
4797
fi
4798
 
4799
done
4800
 
4801
 
4802
 
4803
for ac_header in dlfcn.h
4804
do
4805
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4806
if eval "test \"\${$as_ac_Header+set}\" = set"; then
4807
  echo "$as_me:$LINENO: checking for $ac_header" >&5
4808
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4809
if eval "test \"\${$as_ac_Header+set}\" = set"; then
4810
  echo $ECHO_N "(cached) $ECHO_C" >&6
4811
fi
4812
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4813
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4814
else
4815
  # Is the header compilable?
4816
echo "$as_me:$LINENO: checking $ac_header usability" >&5
4817
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4818
cat >conftest.$ac_ext <<_ACEOF
4819
/* confdefs.h.  */
4820
_ACEOF
4821
cat confdefs.h >>conftest.$ac_ext
4822
cat >>conftest.$ac_ext <<_ACEOF
4823
/* end confdefs.h.  */
4824
$ac_includes_default
4825
#include <$ac_header>
4826
_ACEOF
4827
rm -f conftest.$ac_objext
4828
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4829
  (eval $ac_compile) 2>conftest.er1
4830
  ac_status=$?
4831
  grep -v '^ *+' conftest.er1 >conftest.err
4832
  rm -f conftest.er1
4833
  cat conftest.err >&5
4834
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4835
  (exit $ac_status); } &&
4836
         { ac_try='test -z "$ac_c_werror_flag"
4837
                         || test ! -s conftest.err'
4838
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4839
  (eval $ac_try) 2>&5
4840
  ac_status=$?
4841
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4842
  (exit $ac_status); }; } &&
4843
         { ac_try='test -s conftest.$ac_objext'
4844
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4845
  (eval $ac_try) 2>&5
4846
  ac_status=$?
4847
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4848
  (exit $ac_status); }; }; then
4849
  ac_header_compiler=yes
4850
else
4851
  echo "$as_me: failed program was:" >&5
4852
sed 's/^/| /' conftest.$ac_ext >&5
4853
 
4854
ac_header_compiler=no
4855
fi
4856
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4857
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4858
echo "${ECHO_T}$ac_header_compiler" >&6
4859
 
4860
# Is the header present?
4861
echo "$as_me:$LINENO: checking $ac_header presence" >&5
4862
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4863
cat >conftest.$ac_ext <<_ACEOF
4864
/* confdefs.h.  */
4865
_ACEOF
4866
cat confdefs.h >>conftest.$ac_ext
4867
cat >>conftest.$ac_ext <<_ACEOF
4868
/* end confdefs.h.  */
4869
#include <$ac_header>
4870
_ACEOF
4871
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4872
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4873
  ac_status=$?
4874
  grep -v '^ *+' conftest.er1 >conftest.err
4875
  rm -f conftest.er1
4876
  cat conftest.err >&5
4877
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4878
  (exit $ac_status); } >/dev/null; then
4879
  if test -s conftest.err; then
4880
    ac_cpp_err=$ac_c_preproc_warn_flag
4881
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4882
  else
4883
    ac_cpp_err=
4884
  fi
4885
else
4886
  ac_cpp_err=yes
4887
fi
4888
if test -z "$ac_cpp_err"; then
4889
  ac_header_preproc=yes
4890
else
4891
  echo "$as_me: failed program was:" >&5
4892
sed 's/^/| /' conftest.$ac_ext >&5
4893
 
4894
  ac_header_preproc=no
4895
fi
4896
rm -f conftest.err conftest.$ac_ext
4897
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4898
echo "${ECHO_T}$ac_header_preproc" >&6
4899
 
4900
# So?  What about this header?
4901
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4902
  yes:no: )
4903
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4904
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4905
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4906
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4907
    ac_header_preproc=yes
4908
    ;;
4909
  no:yes:* )
4910
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4911
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4912
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4913
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4914
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4915
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4916
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4917
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4918
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4919
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4920
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4921
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4922
    (
4923
      cat <<\_ASBOX
4924
## ---------------------------------- ##
4925
## Report this to bug-libtool@gnu.org ##
4926
## ---------------------------------- ##
4927
_ASBOX
4928
    ) |
4929
      sed "s/^/$as_me: WARNING:     /" >&2
4930
    ;;
4931
esac
4932
echo "$as_me:$LINENO: checking for $ac_header" >&5
4933
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4934
if eval "test \"\${$as_ac_Header+set}\" = set"; then
4935
  echo $ECHO_N "(cached) $ECHO_C" >&6
4936
else
4937
  eval "$as_ac_Header=\$ac_header_preproc"
4938
fi
4939
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4940
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4941
 
4942
fi
4943
if test `eval echo '${'$as_ac_Header'}'` = yes; then
4944
  cat >>confdefs.h <<_ACEOF
4945
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4946
_ACEOF
4947
 
4948
fi
4949
 
4950
done
4951
 
4952
ac_ext=cc
4953
ac_cpp='$CXXCPP $CPPFLAGS'
4954
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4955
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4956
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4957
if test -n "$ac_tool_prefix"; then
4958
  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4959
  do
4960
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4961
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4962
echo "$as_me:$LINENO: checking for $ac_word" >&5
4963
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4964
if test "${ac_cv_prog_CXX+set}" = set; then
4965
  echo $ECHO_N "(cached) $ECHO_C" >&6
4966
else
4967
  if test -n "$CXX"; then
4968
  ac_cv_prog_CXX="$CXX" # Let the user override the test.
4969
else
4970
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4971
for as_dir in $PATH
4972
do
4973
  IFS=$as_save_IFS
4974
  test -z "$as_dir" && as_dir=.
4975
  for ac_exec_ext in '' $ac_executable_extensions; do
4976
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4977
    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4978
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4979
    break 2
4980
  fi
4981
done
4982
done
4983
 
4984
fi
4985
fi
4986
CXX=$ac_cv_prog_CXX
4987
if test -n "$CXX"; then
4988
  echo "$as_me:$LINENO: result: $CXX" >&5
4989
echo "${ECHO_T}$CXX" >&6
4990
else
4991
  echo "$as_me:$LINENO: result: no" >&5
4992
echo "${ECHO_T}no" >&6
4993
fi
4994
 
4995
    test -n "$CXX" && break
4996
  done
4997
fi
4998
if test -z "$CXX"; then
4999
  ac_ct_CXX=$CXX
5000
  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
5001
do
5002
  # Extract the first word of "$ac_prog", so it can be a program name with args.
5003
set dummy $ac_prog; ac_word=$2
5004
echo "$as_me:$LINENO: checking for $ac_word" >&5
5005
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5006
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5007
  echo $ECHO_N "(cached) $ECHO_C" >&6
5008
else
5009
  if test -n "$ac_ct_CXX"; then
5010
  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5011
else
5012
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5013
for as_dir in $PATH
5014
do
5015
  IFS=$as_save_IFS
5016
  test -z "$as_dir" && as_dir=.
5017
  for ac_exec_ext in '' $ac_executable_extensions; do
5018
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5019
    ac_cv_prog_ac_ct_CXX="$ac_prog"
5020
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5021
    break 2
5022
  fi
5023
done
5024
done
5025
 
5026
fi
5027
fi
5028
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5029
if test -n "$ac_ct_CXX"; then
5030
  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5031
echo "${ECHO_T}$ac_ct_CXX" >&6
5032
else
5033
  echo "$as_me:$LINENO: result: no" >&5
5034
echo "${ECHO_T}no" >&6
5035
fi
5036
 
5037
  test -n "$ac_ct_CXX" && break
5038
done
5039
test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
5040
 
5041
  CXX=$ac_ct_CXX
5042
fi
5043
 
5044
 
5045
# Provide some information about the compiler.
5046
echo "$as_me:$LINENO:" \
5047
     "checking for C++ compiler version" >&5
5048
ac_compiler=`set X $ac_compile; echo $2`
5049
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version &5\"") >&5
5050
  (eval $ac_compiler --version &5) 2>&5
5051
  ac_status=$?
5052
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5053
  (exit $ac_status); }
5054
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v &5\"") >&5
5055
  (eval $ac_compiler -v &5) 2>&5
5056
  ac_status=$?
5057
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5058
  (exit $ac_status); }
5059
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V &5\"") >&5
5060
  (eval $ac_compiler -V &5) 2>&5
5061
  ac_status=$?
5062
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5063
  (exit $ac_status); }
5064
 
5065
echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5066
echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
5067
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5068
  echo $ECHO_N "(cached) $ECHO_C" >&6
5069
else
5070
  cat >conftest.$ac_ext <<_ACEOF
5071
/* confdefs.h.  */
5072
_ACEOF
5073
cat confdefs.h >>conftest.$ac_ext
5074
cat >>conftest.$ac_ext <<_ACEOF
5075
/* end confdefs.h.  */
5076
 
5077
int
5078
main ()
5079
{
5080
#ifndef __GNUC__
5081
       choke me
5082
#endif
5083
 
5084
  ;
5085
  return 0;
5086
}
5087
_ACEOF
5088
rm -f conftest.$ac_objext
5089
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5090
  (eval $ac_compile) 2>conftest.er1
5091
  ac_status=$?
5092
  grep -v '^ *+' conftest.er1 >conftest.err
5093
  rm -f conftest.er1
5094
  cat conftest.err >&5
5095
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5096
  (exit $ac_status); } &&
5097
         { ac_try='test -z "$ac_cxx_werror_flag"
5098
                         || test ! -s conftest.err'
5099
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5100
  (eval $ac_try) 2>&5
5101
  ac_status=$?
5102
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5103
  (exit $ac_status); }; } &&
5104
         { ac_try='test -s conftest.$ac_objext'
5105
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5106
  (eval $ac_try) 2>&5
5107
  ac_status=$?
5108
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5109
  (exit $ac_status); }; }; then
5110
  ac_compiler_gnu=yes
5111
else
5112
  echo "$as_me: failed program was:" >&5
5113
sed 's/^/| /' conftest.$ac_ext >&5
5114
 
5115
ac_compiler_gnu=no
5116
fi
5117
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5118
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5119
 
5120
fi
5121
echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5122
echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
5123
GXX=`test $ac_compiler_gnu = yes && echo yes`
5124
ac_test_CXXFLAGS=${CXXFLAGS+set}
5125
ac_save_CXXFLAGS=$CXXFLAGS
5126
CXXFLAGS="-g"
5127
echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5128
echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
5129
if test "${ac_cv_prog_cxx_g+set}" = set; then
5130
  echo $ECHO_N "(cached) $ECHO_C" >&6
5131
else
5132
  cat >conftest.$ac_ext <<_ACEOF
5133
/* confdefs.h.  */
5134
_ACEOF
5135
cat confdefs.h >>conftest.$ac_ext
5136
cat >>conftest.$ac_ext <<_ACEOF
5137
/* end confdefs.h.  */
5138
 
5139
int
5140
main ()
5141
{
5142
 
5143
  ;
5144
  return 0;
5145
}
5146
_ACEOF
5147
rm -f conftest.$ac_objext
5148
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5149
  (eval $ac_compile) 2>conftest.er1
5150
  ac_status=$?
5151
  grep -v '^ *+' conftest.er1 >conftest.err
5152
  rm -f conftest.er1
5153
  cat conftest.err >&5
5154
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5155
  (exit $ac_status); } &&
5156
         { ac_try='test -z "$ac_cxx_werror_flag"
5157
                         || test ! -s conftest.err'
5158
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5159
  (eval $ac_try) 2>&5
5160
  ac_status=$?
5161
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5162
  (exit $ac_status); }; } &&
5163
         { ac_try='test -s conftest.$ac_objext'
5164
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5165
  (eval $ac_try) 2>&5
5166
  ac_status=$?
5167
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5168
  (exit $ac_status); }; }; then
5169
  ac_cv_prog_cxx_g=yes
5170
else
5171
  echo "$as_me: failed program was:" >&5
5172
sed 's/^/| /' conftest.$ac_ext >&5
5173
 
5174
ac_cv_prog_cxx_g=no
5175
fi
5176
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5177
fi
5178
echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5179
echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
5180
if test "$ac_test_CXXFLAGS" = set; then
5181
  CXXFLAGS=$ac_save_CXXFLAGS
5182
elif test $ac_cv_prog_cxx_g = yes; then
5183
  if test "$GXX" = yes; then
5184
    CXXFLAGS="-g -O2"
5185
  else
5186
    CXXFLAGS="-g"
5187
  fi
5188
else
5189
  if test "$GXX" = yes; then
5190
    CXXFLAGS="-O2"
5191
  else
5192
    CXXFLAGS=
5193
  fi
5194
fi
5195
for ac_declaration in \
5196
   '' \
5197
   'extern "C" void std::exit (int) throw (); using std::exit;' \
5198
   'extern "C" void std::exit (int); using std::exit;' \
5199
   'extern "C" void exit (int) throw ();' \
5200
   'extern "C" void exit (int);' \
5201
   'void exit (int);'
5202
do
5203
  cat >conftest.$ac_ext <<_ACEOF
5204
/* confdefs.h.  */
5205
_ACEOF
5206
cat confdefs.h >>conftest.$ac_ext
5207
cat >>conftest.$ac_ext <<_ACEOF
5208
/* end confdefs.h.  */
5209
$ac_declaration
5210
#include 
5211
int
5212
main ()
5213
{
5214
exit (42);
5215
  ;
5216
  return 0;
5217
}
5218
_ACEOF
5219
rm -f conftest.$ac_objext
5220
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5221
  (eval $ac_compile) 2>conftest.er1
5222
  ac_status=$?
5223
  grep -v '^ *+' conftest.er1 >conftest.err
5224
  rm -f conftest.er1
5225
  cat conftest.err >&5
5226
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5227
  (exit $ac_status); } &&
5228
         { ac_try='test -z "$ac_cxx_werror_flag"
5229
                         || test ! -s conftest.err'
5230
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5231
  (eval $ac_try) 2>&5
5232
  ac_status=$?
5233
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5234
  (exit $ac_status); }; } &&
5235
         { ac_try='test -s conftest.$ac_objext'
5236
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5237
  (eval $ac_try) 2>&5
5238
  ac_status=$?
5239
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5240
  (exit $ac_status); }; }; then
5241
  :
5242
else
5243
  echo "$as_me: failed program was:" >&5
5244
sed 's/^/| /' conftest.$ac_ext >&5
5245
 
5246
continue
5247
fi
5248
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5249
  cat >conftest.$ac_ext <<_ACEOF
5250
/* confdefs.h.  */
5251
_ACEOF
5252
cat confdefs.h >>conftest.$ac_ext
5253
cat >>conftest.$ac_ext <<_ACEOF
5254
/* end confdefs.h.  */
5255
$ac_declaration
5256
int
5257
main ()
5258
{
5259
exit (42);
5260
  ;
5261
  return 0;
5262
}
5263
_ACEOF
5264
rm -f conftest.$ac_objext
5265
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5266
  (eval $ac_compile) 2>conftest.er1
5267
  ac_status=$?
5268
  grep -v '^ *+' conftest.er1 >conftest.err
5269
  rm -f conftest.er1
5270
  cat conftest.err >&5
5271
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5272
  (exit $ac_status); } &&
5273
         { ac_try='test -z "$ac_cxx_werror_flag"
5274
                         || test ! -s conftest.err'
5275
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5276
  (eval $ac_try) 2>&5
5277
  ac_status=$?
5278
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5279
  (exit $ac_status); }; } &&
5280
         { ac_try='test -s conftest.$ac_objext'
5281
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5282
  (eval $ac_try) 2>&5
5283
  ac_status=$?
5284
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5285
  (exit $ac_status); }; }; then
5286
  break
5287
else
5288
  echo "$as_me: failed program was:" >&5
5289
sed 's/^/| /' conftest.$ac_ext >&5
5290
 
5291
fi
5292
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5293
done
5294
rm -f conftest*
5295
if test -n "$ac_declaration"; then
5296
  echo '#ifdef __cplusplus' >>confdefs.h
5297
  echo $ac_declaration      >>confdefs.h
5298
  echo '#endif'             >>confdefs.h
5299
fi
5300
 
5301
ac_ext=cc
5302
ac_cpp='$CXXCPP $CPPFLAGS'
5303
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5304
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5305
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5306
 
5307
depcc="$CXX"  am_compiler_list=
5308
 
5309
echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5310
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5311
if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5312
  echo $ECHO_N "(cached) $ECHO_C" >&6
5313
else
5314
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5315
  # We make a subdir and do the tests there.  Otherwise we can end up
5316
  # making bogus files that we don't know about and never remove.  For
5317
  # instance it was reported that on HP-UX the gcc test will end up
5318
  # making a dummy file named `D' -- because `-MD' means `put the output
5319
  # in D'.
5320
  mkdir conftest.dir
5321
  # Copy depcomp to subdir because otherwise we won't find it if we're
5322
  # using a relative directory.
5323
  cp "$am_depcomp" conftest.dir
5324
  cd conftest.dir
5325
  # We will build objects and dependencies in a subdirectory because
5326
  # it helps to detect inapplicable dependency modes.  For instance
5327
  # both Tru64's cc and ICC support -MD to output dependencies as a
5328
  # side effect of compilation, but ICC will put the dependencies in
5329
  # the current directory while Tru64 will put them in the object
5330
  # directory.
5331
  mkdir sub
5332
 
5333
  am_cv_CXX_dependencies_compiler_type=none
5334
  if test "$am_compiler_list" = ""; then
5335
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5336
  fi
5337
  for depmode in $am_compiler_list; do
5338
    # Setup a source with many dependencies, because some compilers
5339
    # like to wrap large dependency lists on column 80 (with \), and
5340
    # we should not choose a depcomp mode which is confused by this.
5341
    #
5342
    # We need to recreate these files for each test, as the compiler may
5343
    # overwrite some of them when testing with obscure command lines.
5344
    # This happens at least with the AIX C compiler.
5345
    : > sub/conftest.c
5346
    for i in 1 2 3 4 5 6; do
5347
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5348
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5349
      # Solaris 8's {/usr,}/bin/sh.
5350
      touch sub/conftst$i.h
5351
    done
5352
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5353
 
5354
    case $depmode in
5355
    nosideeffect)
5356
      # after this tag, mechanisms are not by side-effect, so they'll
5357
      # only be used when explicitly requested
5358
      if test "x$enable_dependency_tracking" = xyes; then
5359
        continue
5360
      else
5361
        break
5362
      fi
5363
      ;;
5364
    none) break ;;
5365
    esac
5366
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
5367
    # mode.  It turns out that the SunPro C++ compiler does not properly
5368
    # handle `-M -o', and we need to detect this.
5369
    if depmode=$depmode \
5370
       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5371
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5372
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5373
         >/dev/null 2>conftest.err &&
5374
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5375
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5376
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5377
      # icc doesn't choke on unknown options, it will just issue warnings
5378
      # or remarks (even with -Werror).  So we grep stderr for any message
5379
      # that says an option was ignored or not supported.
5380
      # When given -MP, icc 7.0 and 7.1 complain thusly:
5381
      #   icc: Command line warning: ignoring option '-M'; no argument required
5382
      # The diagnosis changed in icc 8.0:
5383
      #   icc: Command line remark: option '-MP' not supported
5384
      if (grep 'ignoring option' conftest.err ||
5385
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5386
        am_cv_CXX_dependencies_compiler_type=$depmode
5387
        break
5388
      fi
5389
    fi
5390
  done
5391
 
5392
  cd ..
5393
  rm -rf conftest.dir
5394
else
5395
  am_cv_CXX_dependencies_compiler_type=none
5396
fi
5397
 
5398
fi
5399
echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5400
echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
5401
CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5402
 
5403
 
5404
 
5405
if
5406
  test "x$enable_dependency_tracking" != xno \
5407
  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5408
  am__fastdepCXX_TRUE=
5409
  am__fastdepCXX_FALSE='#'
5410
else
5411
  am__fastdepCXX_TRUE='#'
5412
  am__fastdepCXX_FALSE=
5413
fi
5414
 
5415
 
5416
ac_ext=cc
5417
ac_cpp='$CXXCPP $CPPFLAGS'
5418
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5419
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5420
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5421
echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5422
echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
5423
if test -z "$CXXCPP"; then
5424
  if test "${ac_cv_prog_CXXCPP+set}" = set; then
5425
  echo $ECHO_N "(cached) $ECHO_C" >&6
5426
else
5427
      # Double quotes because CXXCPP needs to be expanded
5428
    for CXXCPP in "$CXX -E" "/lib/cpp"
5429
    do
5430
      ac_preproc_ok=false
5431
for ac_cxx_preproc_warn_flag in '' yes
5432
do
5433
  # Use a header file that comes with gcc, so configuring glibc
5434
  # with a fresh cross-compiler works.
5435
  # Prefer  to  if __STDC__ is defined, since
5436
  #  exists even on freestanding compilers.
5437
  # On the NeXT, cc -E runs the code through the compiler's parser,
5438
  # not just through cpp. "Syntax error" is here to catch this case.
5439
  cat >conftest.$ac_ext <<_ACEOF
5440
/* confdefs.h.  */
5441
_ACEOF
5442
cat confdefs.h >>conftest.$ac_ext
5443
cat >>conftest.$ac_ext <<_ACEOF
5444
/* end confdefs.h.  */
5445
#ifdef __STDC__
5446
# include 
5447
#else
5448
# include 
5449
#endif
5450
                     Syntax error
5451
_ACEOF
5452
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5453
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5454
  ac_status=$?
5455
  grep -v '^ *+' conftest.er1 >conftest.err
5456
  rm -f conftest.er1
5457
  cat conftest.err >&5
5458
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5459
  (exit $ac_status); } >/dev/null; then
5460
  if test -s conftest.err; then
5461
    ac_cpp_err=$ac_cxx_preproc_warn_flag
5462
    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5463
  else
5464
    ac_cpp_err=
5465
  fi
5466
else
5467
  ac_cpp_err=yes
5468
fi
5469
if test -z "$ac_cpp_err"; then
5470
  :
5471
else
5472
  echo "$as_me: failed program was:" >&5
5473
sed 's/^/| /' conftest.$ac_ext >&5
5474
 
5475
  # Broken: fails on valid input.
5476
continue
5477
fi
5478
rm -f conftest.err conftest.$ac_ext
5479
 
5480
  # OK, works on sane cases.  Now check whether non-existent headers
5481
  # can be detected and how.
5482
  cat >conftest.$ac_ext <<_ACEOF
5483
/* confdefs.h.  */
5484
_ACEOF
5485
cat confdefs.h >>conftest.$ac_ext
5486
cat >>conftest.$ac_ext <<_ACEOF
5487
/* end confdefs.h.  */
5488
#include 
5489
_ACEOF
5490
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5491
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5492
  ac_status=$?
5493
  grep -v '^ *+' conftest.er1 >conftest.err
5494
  rm -f conftest.er1
5495
  cat conftest.err >&5
5496
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5497
  (exit $ac_status); } >/dev/null; then
5498
  if test -s conftest.err; then
5499
    ac_cpp_err=$ac_cxx_preproc_warn_flag
5500
    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5501
  else
5502
    ac_cpp_err=
5503
  fi
5504
else
5505
  ac_cpp_err=yes
5506
fi
5507
if test -z "$ac_cpp_err"; then
5508
  # Broken: success on invalid input.
5509
continue
5510
else
5511
  echo "$as_me: failed program was:" >&5
5512
sed 's/^/| /' conftest.$ac_ext >&5
5513
 
5514
  # Passes both tests.
5515
ac_preproc_ok=:
5516
break
5517
fi
5518
rm -f conftest.err conftest.$ac_ext
5519
 
5520
done
5521
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5522
rm -f conftest.err conftest.$ac_ext
5523
if $ac_preproc_ok; then
5524
  break
5525
fi
5526
 
5527
    done
5528
    ac_cv_prog_CXXCPP=$CXXCPP
5529
 
5530
fi
5531
  CXXCPP=$ac_cv_prog_CXXCPP
5532
else
5533
  ac_cv_prog_CXXCPP=$CXXCPP
5534
fi
5535
echo "$as_me:$LINENO: result: $CXXCPP" >&5
5536
echo "${ECHO_T}$CXXCPP" >&6
5537
ac_preproc_ok=false
5538
for ac_cxx_preproc_warn_flag in '' yes
5539
do
5540
  # Use a header file that comes with gcc, so configuring glibc
5541
  # with a fresh cross-compiler works.
5542
  # Prefer  to  if __STDC__ is defined, since
5543
  #  exists even on freestanding compilers.
5544
  # On the NeXT, cc -E runs the code through the compiler's parser,
5545
  # not just through cpp. "Syntax error" is here to catch this case.
5546
  cat >conftest.$ac_ext <<_ACEOF
5547
/* confdefs.h.  */
5548
_ACEOF
5549
cat confdefs.h >>conftest.$ac_ext
5550
cat >>conftest.$ac_ext <<_ACEOF
5551
/* end confdefs.h.  */
5552
#ifdef __STDC__
5553
# include 
5554
#else
5555
# include 
5556
#endif
5557
                     Syntax error
5558
_ACEOF
5559
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5560
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5561
  ac_status=$?
5562
  grep -v '^ *+' conftest.er1 >conftest.err
5563
  rm -f conftest.er1
5564
  cat conftest.err >&5
5565
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5566
  (exit $ac_status); } >/dev/null; then
5567
  if test -s conftest.err; then
5568
    ac_cpp_err=$ac_cxx_preproc_warn_flag
5569
    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5570
  else
5571
    ac_cpp_err=
5572
  fi
5573
else
5574
  ac_cpp_err=yes
5575
fi
5576
if test -z "$ac_cpp_err"; then
5577
  :
5578
else
5579
  echo "$as_me: failed program was:" >&5
5580
sed 's/^/| /' conftest.$ac_ext >&5
5581
 
5582
  # Broken: fails on valid input.
5583
continue
5584
fi
5585
rm -f conftest.err conftest.$ac_ext
5586
 
5587
  # OK, works on sane cases.  Now check whether non-existent headers
5588
  # can be detected and how.
5589
  cat >conftest.$ac_ext <<_ACEOF
5590
/* confdefs.h.  */
5591
_ACEOF
5592
cat confdefs.h >>conftest.$ac_ext
5593
cat >>conftest.$ac_ext <<_ACEOF
5594
/* end confdefs.h.  */
5595
#include 
5596
_ACEOF
5597
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5598
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5599
  ac_status=$?
5600
  grep -v '^ *+' conftest.er1 >conftest.err
5601
  rm -f conftest.er1
5602
  cat conftest.err >&5
5603
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5604
  (exit $ac_status); } >/dev/null; then
5605
  if test -s conftest.err; then
5606
    ac_cpp_err=$ac_cxx_preproc_warn_flag
5607
    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5608
  else
5609
    ac_cpp_err=
5610
  fi
5611
else
5612
  ac_cpp_err=yes
5613
fi
5614
if test -z "$ac_cpp_err"; then
5615
  # Broken: success on invalid input.
5616
continue
5617
else
5618
  echo "$as_me: failed program was:" >&5
5619
sed 's/^/| /' conftest.$ac_ext >&5
5620
 
5621
  # Passes both tests.
5622
ac_preproc_ok=:
5623
break
5624
fi
5625
rm -f conftest.err conftest.$ac_ext
5626
 
5627
done
5628
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5629
rm -f conftest.err conftest.$ac_ext
5630
if $ac_preproc_ok; then
5631
  :
5632
else
5633
  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5634
See \`config.log' for more details." >&5
5635
echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5636
See \`config.log' for more details." >&2;}
5637
   { (exit 1); exit 1; }; }
5638
fi
5639
 
5640
ac_ext=cc
5641
ac_cpp='$CXXCPP $CPPFLAGS'
5642
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5643
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5644
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5645
 
5646
 
5647
ac_ext=f
5648
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5649
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5650
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5651
if test -n "$ac_tool_prefix"; then
5652
  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5653
  do
5654
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5655
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5656
echo "$as_me:$LINENO: checking for $ac_word" >&5
5657
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5658
if test "${ac_cv_prog_F77+set}" = set; then
5659
  echo $ECHO_N "(cached) $ECHO_C" >&6
5660
else
5661
  if test -n "$F77"; then
5662
  ac_cv_prog_F77="$F77" # Let the user override the test.
5663
else
5664
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5665
for as_dir in $PATH
5666
do
5667
  IFS=$as_save_IFS
5668
  test -z "$as_dir" && as_dir=.
5669
  for ac_exec_ext in '' $ac_executable_extensions; do
5670
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5671
    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5672
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5673
    break 2
5674
  fi
5675
done
5676
done
5677
 
5678
fi
5679
fi
5680
F77=$ac_cv_prog_F77
5681
if test -n "$F77"; then
5682
  echo "$as_me:$LINENO: result: $F77" >&5
5683
echo "${ECHO_T}$F77" >&6
5684
else
5685
  echo "$as_me:$LINENO: result: no" >&5
5686
echo "${ECHO_T}no" >&6
5687
fi
5688
 
5689
    test -n "$F77" && break
5690
  done
5691
fi
5692
if test -z "$F77"; then
5693
  ac_ct_F77=$F77
5694
  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5695
do
5696
  # Extract the first word of "$ac_prog", so it can be a program name with args.
5697
set dummy $ac_prog; ac_word=$2
5698
echo "$as_me:$LINENO: checking for $ac_word" >&5
5699
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5700
if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5701
  echo $ECHO_N "(cached) $ECHO_C" >&6
5702
else
5703
  if test -n "$ac_ct_F77"; then
5704
  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5705
else
5706
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5707
for as_dir in $PATH
5708
do
5709
  IFS=$as_save_IFS
5710
  test -z "$as_dir" && as_dir=.
5711
  for ac_exec_ext in '' $ac_executable_extensions; do
5712
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5713
    ac_cv_prog_ac_ct_F77="$ac_prog"
5714
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5715
    break 2
5716
  fi
5717
done
5718
done
5719
 
5720
fi
5721
fi
5722
ac_ct_F77=$ac_cv_prog_ac_ct_F77
5723
if test -n "$ac_ct_F77"; then
5724
  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5725
echo "${ECHO_T}$ac_ct_F77" >&6
5726
else
5727
  echo "$as_me:$LINENO: result: no" >&5
5728
echo "${ECHO_T}no" >&6
5729
fi
5730
 
5731
  test -n "$ac_ct_F77" && break
5732
done
5733
 
5734
  F77=$ac_ct_F77
5735
fi
5736
 
5737
 
5738
# Provide some information about the compiler.
5739
echo "$as_me:5739:" \
5740
     "checking for Fortran 77 compiler version" >&5
5741
ac_compiler=`set X $ac_compile; echo $2`
5742
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version &5\"") >&5
5743
  (eval $ac_compiler --version &5) 2>&5
5744
  ac_status=$?
5745
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5746
  (exit $ac_status); }
5747
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v &5\"") >&5
5748
  (eval $ac_compiler -v &5) 2>&5
5749
  ac_status=$?
5750
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5751
  (exit $ac_status); }
5752
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V &5\"") >&5
5753
  (eval $ac_compiler -V &5) 2>&5
5754
  ac_status=$?
5755
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5756
  (exit $ac_status); }
5757
rm -f a.out
5758
 
5759
# If we don't use `.F' as extension, the preprocessor is not run on the
5760
# input file.  (Note that this only needs to work for GNU compilers.)
5761
ac_save_ext=$ac_ext
5762
ac_ext=F
5763
echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5764
echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5765
if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5766
  echo $ECHO_N "(cached) $ECHO_C" >&6
5767
else
5768
  cat >conftest.$ac_ext <<_ACEOF
5769
      program main
5770
#ifndef __GNUC__
5771
       choke me
5772
#endif
5773
 
5774
      end
5775
_ACEOF
5776
rm -f conftest.$ac_objext
5777
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5778
  (eval $ac_compile) 2>conftest.er1
5779
  ac_status=$?
5780
  grep -v '^ *+' conftest.er1 >conftest.err
5781
  rm -f conftest.er1
5782
  cat conftest.err >&5
5783
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5784
  (exit $ac_status); } &&
5785
         { ac_try='test -z "$ac_f77_werror_flag"
5786
                         || test ! -s conftest.err'
5787
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5788
  (eval $ac_try) 2>&5
5789
  ac_status=$?
5790
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5791
  (exit $ac_status); }; } &&
5792
         { ac_try='test -s conftest.$ac_objext'
5793
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5794
  (eval $ac_try) 2>&5
5795
  ac_status=$?
5796
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5797
  (exit $ac_status); }; }; then
5798
  ac_compiler_gnu=yes
5799
else
5800
  echo "$as_me: failed program was:" >&5
5801
sed 's/^/| /' conftest.$ac_ext >&5
5802
 
5803
ac_compiler_gnu=no
5804
fi
5805
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5806
ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5807
 
5808
fi
5809
echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5810
echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5811
ac_ext=$ac_save_ext
5812
ac_test_FFLAGS=${FFLAGS+set}
5813
ac_save_FFLAGS=$FFLAGS
5814
FFLAGS=
5815
echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5816
echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5817
if test "${ac_cv_prog_f77_g+set}" = set; then
5818
  echo $ECHO_N "(cached) $ECHO_C" >&6
5819
else
5820
  FFLAGS=-g
5821
cat >conftest.$ac_ext <<_ACEOF
5822
      program main
5823
 
5824
      end
5825
_ACEOF
5826
rm -f conftest.$ac_objext
5827
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5828
  (eval $ac_compile) 2>conftest.er1
5829
  ac_status=$?
5830
  grep -v '^ *+' conftest.er1 >conftest.err
5831
  rm -f conftest.er1
5832
  cat conftest.err >&5
5833
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5834
  (exit $ac_status); } &&
5835
         { ac_try='test -z "$ac_f77_werror_flag"
5836
                         || test ! -s conftest.err'
5837
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5838
  (eval $ac_try) 2>&5
5839
  ac_status=$?
5840
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5841
  (exit $ac_status); }; } &&
5842
         { ac_try='test -s conftest.$ac_objext'
5843
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5844
  (eval $ac_try) 2>&5
5845
  ac_status=$?
5846
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5847
  (exit $ac_status); }; }; then
5848
  ac_cv_prog_f77_g=yes
5849
else
5850
  echo "$as_me: failed program was:" >&5
5851
sed 's/^/| /' conftest.$ac_ext >&5
5852
 
5853
ac_cv_prog_f77_g=no
5854
fi
5855
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5856
 
5857
fi
5858
echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5859
echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5860
if test "$ac_test_FFLAGS" = set; then
5861
  FFLAGS=$ac_save_FFLAGS
5862
elif test $ac_cv_prog_f77_g = yes; then
5863
  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5864
    FFLAGS="-g -O2"
5865
  else
5866
    FFLAGS="-g"
5867
  fi
5868
else
5869
  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5870
    FFLAGS="-O2"
5871
  else
5872
    FFLAGS=
5873
  fi
5874
fi
5875
 
5876
G77=`test $ac_compiler_gnu = yes && echo yes`
5877
ac_ext=c
5878
ac_cpp='$CPP $CPPFLAGS'
5879
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5880
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5881
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5882
 
5883
 
5884
 
5885
# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5886
 
5887
# find the maximum length of command line arguments
5888
echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5889
echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5890
if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5891
  echo $ECHO_N "(cached) $ECHO_C" >&6
5892
else
5893
    i=0
5894
  testring="ABCD"
5895
 
5896
  case $build_os in
5897
  msdosdjgpp*)
5898
    # On DJGPP, this test can blow up pretty badly due to problems in libc
5899
    # (any single argument exceeding 2000 bytes causes a buffer overrun
5900
    # during glob expansion).  Even if it were fixed, the result of this
5901
    # check would be larger than it should be.
5902
    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5903
    ;;
5904
 
5905
  gnu*)
5906
    # Under GNU Hurd, this test is not required because there is
5907
    # no limit to the length of command line arguments.
5908
    # Libtool will interpret -1 as no limit whatsoever
5909
    lt_cv_sys_max_cmd_len=-1;
5910
    ;;
5911
 
5912
  cygwin* | mingw*)
5913
    # On Win9x/ME, this test blows up -- it succeeds, but takes
5914
    # about 5 minutes as the teststring grows exponentially.
5915
    # Worse, since 9x/ME are not pre-emptively multitasking,
5916
    # you end up with a "frozen" computer, even though with patience
5917
    # the test eventually succeeds (with a max line length of 256k).
5918
    # Instead, let's just punt: use the minimum linelength reported by
5919
    # all of the supported platforms: 8192 (on NT/2K/XP).
5920
    lt_cv_sys_max_cmd_len=8192;
5921
    ;;
5922
 
5923
 *)
5924
    # If test is not a shell built-in, we'll probably end up computing a
5925
    # maximum length that is only half of the actual maximum length, but
5926
    # we can't tell.
5927
    while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \
5928
               = "XX$testring") >/dev/null 2>&1 &&
5929
            new_result=`expr "X$testring" : ".*" 2>&1` &&
5930
            lt_cv_sys_max_cmd_len=$new_result &&
5931
            test $i != 17 # 1/2 MB should be enough
5932
    do
5933
      i=`expr $i + 1`
5934
      testring=$testring$testring
5935
    done
5936
    testring=
5937
    # Add a significant safety factor because C++ compilers can tack on massive
5938
    # amounts of additional arguments before passing them to the linker.
5939
    # It appears as though 1/2 is a usable value.
5940
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5941
    ;;
5942
  esac
5943
 
5944
fi
5945
 
5946
if test -n $lt_cv_sys_max_cmd_len ; then
5947
  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5948
echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5949
else
5950
  echo "$as_me:$LINENO: result: none" >&5
5951
echo "${ECHO_T}none" >&6
5952
fi
5953
 
5954
 
5955
 
5956
 
5957
# Check for command to grab the raw symbol name followed by C symbol from nm.
5958
echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5959
echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5960
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5961
  echo $ECHO_N "(cached) $ECHO_C" >&6
5962
else
5963
 
5964
# These are sane defaults that work on at least a few old systems.
5965
# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5966
 
5967
# Character class describing NM global symbol codes.
5968
symcode='[BCDEGRST]'
5969
 
5970
# Regexp to match symbols that can be accessed directly from C.
5971
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5972
 
5973
# Transform the above into a raw symbol and a C symbol.
5974
symxfrm='\1 \2\3 \3'
5975
 
5976
# Transform an extracted symbol line into a proper C declaration
5977
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5978
 
5979
# Transform an extracted symbol line into symbol name and symbol address
5980
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'"
5981
 
5982
# Define system-specific variables.
5983
case $host_os in
5984
aix*)
5985
  symcode='[BCDT]'
5986
  ;;
5987
cygwin* | mingw* | pw32*)
5988
  symcode='[ABCDGISTW]'
5989
  ;;
5990
hpux*) # Its linker distinguishes data from code symbols
5991
  if test "$host_cpu" = ia64; then
5992
    symcode='[ABCDEGRST]'
5993
  fi
5994
  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5995
  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'"
5996
  ;;
5997
irix* | nonstopux*)
5998
  symcode='[BCDEGRST]'
5999
  ;;
6000
osf*)
6001
  symcode='[BCDEGQRST]'
6002
  ;;
6003
solaris* | sysv5*)
6004
  symcode='[BDT]'
6005
  ;;
6006
sysv4)
6007
  symcode='[DFNSTU]'
6008
  ;;
6009
esac
6010
 
6011
# Handle CRLF in mingw tool chain
6012
opt_cr=
6013
case $build_os in
6014
mingw*)
6015
  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6016
  ;;
6017
esac
6018
 
6019
# If we're using GNU nm, then use its standard symbol codes.
6020
case `$NM -V 2>&1` in
6021
*GNU* | *'with BFD'*)
6022
  symcode='[ABCDGISTW]' ;;
6023
esac
6024
 
6025
# Try without a prefix undercore, then with it.
6026
for ac_symprfx in "" "_"; do
6027
 
6028
  # Write the raw and C identifiers.
6029
  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
6030
 
6031
  # Check to see that the pipe works correctly.
6032
  pipe_works=no
6033
 
6034
  rm -f conftest*
6035
  cat > conftest.$ac_ext <
6036
#ifdef __cplusplus
6037
extern "C" {
6038
#endif
6039
char nm_test_var;
6040
void nm_test_func(){}
6041
#ifdef __cplusplus
6042
}
6043
#endif
6044
int main(){nm_test_var='a';nm_test_func();return(0);}
6045
EOF
6046
 
6047
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6048
  (eval $ac_compile) 2>&5
6049
  ac_status=$?
6050
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6051
  (exit $ac_status); }; then
6052
    # Now try to grab the symbols.
6053
    nlist=conftest.nm
6054
    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6055
  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6056
  ac_status=$?
6057
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6058
  (exit $ac_status); } && test -s "$nlist"; then
6059
      # Try sorting and uniquifying the output.
6060
      if sort "$nlist" | uniq > "$nlist"T; then
6061
        mv -f "$nlist"T "$nlist"
6062
      else
6063
        rm -f "$nlist"T
6064
      fi
6065
 
6066
      # Make sure that we snagged all the symbols we need.
6067
      if grep ' nm_test_var$' "$nlist" >/dev/null; then
6068
        if grep ' nm_test_func$' "$nlist" >/dev/null; then
6069
          cat < conftest.$ac_ext
6070
#ifdef __cplusplus
6071
extern "C" {
6072
#endif
6073
 
6074
EOF
6075
          # Now generate the symbol file.
6076
          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6077
 
6078
          cat <> conftest.$ac_ext
6079
#if defined (__STDC__) && __STDC__
6080
# define lt_ptr_t void *
6081
#else
6082
# define lt_ptr_t char *
6083
# define const
6084
#endif
6085
 
6086
/* The mapping between symbol names and symbols. */
6087
const struct {
6088
  const char *name;
6089
  lt_ptr_t address;
6090
}
6091
lt_preloaded_symbols[] =
6092
{
6093
EOF
6094
          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6095
          cat <<\EOF >> conftest.$ac_ext
6096
  {0, (lt_ptr_t) 0}
6097
};
6098
 
6099
#ifdef __cplusplus
6100
}
6101
#endif
6102
EOF
6103
          # Now try linking the two files.
6104
          mv conftest.$ac_objext conftstm.$ac_objext
6105
          lt_save_LIBS="$LIBS"
6106
          lt_save_CFLAGS="$CFLAGS"
6107
          LIBS="conftstm.$ac_objext"
6108
          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6109
          if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6110
  (eval $ac_link) 2>&5
6111
  ac_status=$?
6112
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6113
  (exit $ac_status); } && test -s conftest${ac_exeext}; then
6114
            pipe_works=yes
6115
          fi
6116
          LIBS="$lt_save_LIBS"
6117
          CFLAGS="$lt_save_CFLAGS"
6118
        else
6119
          echo "cannot find nm_test_func in $nlist" >&5
6120
        fi
6121
      else
6122
        echo "cannot find nm_test_var in $nlist" >&5
6123
      fi
6124
    else
6125
      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6126
    fi
6127
  else
6128
    echo "$progname: failed program was:" >&5
6129
    cat conftest.$ac_ext >&5
6130
  fi
6131
  rm -f conftest* conftst*
6132
 
6133
  # Do not use the global_symbol_pipe unless it works.
6134
  if test "$pipe_works" = yes; then
6135
    break
6136
  else
6137
    lt_cv_sys_global_symbol_pipe=
6138
  fi
6139
done
6140
 
6141
fi
6142
 
6143
if test -z "$lt_cv_sys_global_symbol_pipe"; then
6144
  lt_cv_sys_global_symbol_to_cdecl=
6145
fi
6146
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6147
  echo "$as_me:$LINENO: result: failed" >&5
6148
echo "${ECHO_T}failed" >&6
6149
else
6150
  echo "$as_me:$LINENO: result: ok" >&5
6151
echo "${ECHO_T}ok" >&6
6152
fi
6153
 
6154
echo "$as_me:$LINENO: checking for objdir" >&5
6155
echo $ECHO_N "checking for objdir... $ECHO_C" >&6
6156
if test "${lt_cv_objdir+set}" = set; then
6157
  echo $ECHO_N "(cached) $ECHO_C" >&6
6158
else
6159
  rm -f .libs 2>/dev/null
6160
mkdir .libs 2>/dev/null
6161
if test -d .libs; then
6162
  lt_cv_objdir=.libs
6163
else
6164
  # MS-DOS does not allow filenames that begin with a dot.
6165
  lt_cv_objdir=_libs
6166
fi
6167
rmdir .libs 2>/dev/null
6168
fi
6169
echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6170
echo "${ECHO_T}$lt_cv_objdir" >&6
6171
objdir=$lt_cv_objdir
6172
 
6173
 
6174
 
6175
 
6176
 
6177
case $host_os in
6178
aix3*)
6179
  # AIX sometimes has problems with the GCC collect2 program.  For some
6180
  # reason, if we set the COLLECT_NAMES environment variable, the problems
6181
  # vanish in a puff of smoke.
6182
  if test "X${COLLECT_NAMES+set}" != Xset; then
6183
    COLLECT_NAMES=
6184
    export COLLECT_NAMES
6185
  fi
6186
  ;;
6187
esac
6188
 
6189
# Sed substitution that helps us do robust quoting.  It backslashifies
6190
# metacharacters that are still active within double-quoted strings.
6191
Xsed='sed -e s/^X//'
6192
sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6193
 
6194
# Same as above, but do not quote variable references.
6195
double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6196
 
6197
# Sed substitution to delay expansion of an escaped shell variable in a
6198
# double_quote_subst'ed string.
6199
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6200
 
6201
# Sed substitution to avoid accidental globbing in evaled expressions
6202
no_glob_subst='s/\*/\\\*/g'
6203
 
6204
# Constants:
6205
rm="rm -f"
6206
 
6207
# Global variables:
6208
default_ofile=libtool
6209
can_build_shared=yes
6210
 
6211
# All known linkers require a `.a' archive for static linking (except M$VC,
6212
# which needs '.lib').
6213
libext=a
6214
ltmain="$ac_aux_dir/ltmain.sh"
6215
ofile="$default_ofile"
6216
with_gnu_ld="$lt_cv_prog_gnu_ld"
6217
 
6218
if test -n "$ac_tool_prefix"; then
6219
  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6220
set dummy ${ac_tool_prefix}ar; ac_word=$2
6221
echo "$as_me:$LINENO: checking for $ac_word" >&5
6222
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6223
if test "${ac_cv_prog_AR+set}" = set; then
6224
  echo $ECHO_N "(cached) $ECHO_C" >&6
6225
else
6226
  if test -n "$AR"; then
6227
  ac_cv_prog_AR="$AR" # Let the user override the test.
6228
else
6229
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6230
for as_dir in $PATH
6231
do
6232
  IFS=$as_save_IFS
6233
  test -z "$as_dir" && as_dir=.
6234
  for ac_exec_ext in '' $ac_executable_extensions; do
6235
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6236
    ac_cv_prog_AR="${ac_tool_prefix}ar"
6237
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6238
    break 2
6239
  fi
6240
done
6241
done
6242
 
6243
fi
6244
fi
6245
AR=$ac_cv_prog_AR
6246
if test -n "$AR"; then
6247
  echo "$as_me:$LINENO: result: $AR" >&5
6248
echo "${ECHO_T}$AR" >&6
6249
else
6250
  echo "$as_me:$LINENO: result: no" >&5
6251
echo "${ECHO_T}no" >&6
6252
fi
6253
 
6254
fi
6255
if test -z "$ac_cv_prog_AR"; then
6256
  ac_ct_AR=$AR
6257
  # Extract the first word of "ar", so it can be a program name with args.
6258
set dummy ar; ac_word=$2
6259
echo "$as_me:$LINENO: checking for $ac_word" >&5
6260
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6261
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6262
  echo $ECHO_N "(cached) $ECHO_C" >&6
6263
else
6264
  if test -n "$ac_ct_AR"; then
6265
  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6266
else
6267
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6268
for as_dir in $PATH
6269
do
6270
  IFS=$as_save_IFS
6271
  test -z "$as_dir" && as_dir=.
6272
  for ac_exec_ext in '' $ac_executable_extensions; do
6273
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6274
    ac_cv_prog_ac_ct_AR="ar"
6275
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6276
    break 2
6277
  fi
6278
done
6279
done
6280
 
6281
  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
6282
fi
6283
fi
6284
ac_ct_AR=$ac_cv_prog_ac_ct_AR
6285
if test -n "$ac_ct_AR"; then
6286
  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6287
echo "${ECHO_T}$ac_ct_AR" >&6
6288
else
6289
  echo "$as_me:$LINENO: result: no" >&5
6290
echo "${ECHO_T}no" >&6
6291
fi
6292
 
6293
  AR=$ac_ct_AR
6294
else
6295
  AR="$ac_cv_prog_AR"
6296
fi
6297
 
6298
if test -n "$ac_tool_prefix"; then
6299
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6300
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6301
echo "$as_me:$LINENO: checking for $ac_word" >&5
6302
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6303
if test "${ac_cv_prog_RANLIB+set}" = set; then
6304
  echo $ECHO_N "(cached) $ECHO_C" >&6
6305
else
6306
  if test -n "$RANLIB"; then
6307
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6308
else
6309
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6310
for as_dir in $PATH
6311
do
6312
  IFS=$as_save_IFS
6313
  test -z "$as_dir" && as_dir=.
6314
  for ac_exec_ext in '' $ac_executable_extensions; do
6315
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6316
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6317
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6318
    break 2
6319
  fi
6320
done
6321
done
6322
 
6323
fi
6324
fi
6325
RANLIB=$ac_cv_prog_RANLIB
6326
if test -n "$RANLIB"; then
6327
  echo "$as_me:$LINENO: result: $RANLIB" >&5
6328
echo "${ECHO_T}$RANLIB" >&6
6329
else
6330
  echo "$as_me:$LINENO: result: no" >&5
6331
echo "${ECHO_T}no" >&6
6332
fi
6333
 
6334
fi
6335
if test -z "$ac_cv_prog_RANLIB"; then
6336
  ac_ct_RANLIB=$RANLIB
6337
  # Extract the first word of "ranlib", so it can be a program name with args.
6338
set dummy ranlib; ac_word=$2
6339
echo "$as_me:$LINENO: checking for $ac_word" >&5
6340
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6341
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6342
  echo $ECHO_N "(cached) $ECHO_C" >&6
6343
else
6344
  if test -n "$ac_ct_RANLIB"; then
6345
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6346
else
6347
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6348
for as_dir in $PATH
6349
do
6350
  IFS=$as_save_IFS
6351
  test -z "$as_dir" && as_dir=.
6352
  for ac_exec_ext in '' $ac_executable_extensions; do
6353
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6354
    ac_cv_prog_ac_ct_RANLIB="ranlib"
6355
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6356
    break 2
6357
  fi
6358
done
6359
done
6360
 
6361
  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
6362
fi
6363
fi
6364
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6365
if test -n "$ac_ct_RANLIB"; then
6366
  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6367
echo "${ECHO_T}$ac_ct_RANLIB" >&6
6368
else
6369
  echo "$as_me:$LINENO: result: no" >&5
6370
echo "${ECHO_T}no" >&6
6371
fi
6372
 
6373
  RANLIB=$ac_ct_RANLIB
6374
else
6375
  RANLIB="$ac_cv_prog_RANLIB"
6376
fi
6377
 
6378
if test -n "$ac_tool_prefix"; then
6379
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6380
set dummy ${ac_tool_prefix}strip; ac_word=$2
6381
echo "$as_me:$LINENO: checking for $ac_word" >&5
6382
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6383
if test "${ac_cv_prog_STRIP+set}" = set; then
6384
  echo $ECHO_N "(cached) $ECHO_C" >&6
6385
else
6386
  if test -n "$STRIP"; then
6387
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6388
else
6389
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6390
for as_dir in $PATH
6391
do
6392
  IFS=$as_save_IFS
6393
  test -z "$as_dir" && as_dir=.
6394
  for ac_exec_ext in '' $ac_executable_extensions; do
6395
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6396
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6397
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6398
    break 2
6399
  fi
6400
done
6401
done
6402
 
6403
fi
6404
fi
6405
STRIP=$ac_cv_prog_STRIP
6406
if test -n "$STRIP"; then
6407
  echo "$as_me:$LINENO: result: $STRIP" >&5
6408
echo "${ECHO_T}$STRIP" >&6
6409
else
6410
  echo "$as_me:$LINENO: result: no" >&5
6411
echo "${ECHO_T}no" >&6
6412
fi
6413
 
6414
fi
6415
if test -z "$ac_cv_prog_STRIP"; then
6416
  ac_ct_STRIP=$STRIP
6417
  # Extract the first word of "strip", so it can be a program name with args.
6418
set dummy strip; ac_word=$2
6419
echo "$as_me:$LINENO: checking for $ac_word" >&5
6420
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6421
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6422
  echo $ECHO_N "(cached) $ECHO_C" >&6
6423
else
6424
  if test -n "$ac_ct_STRIP"; then
6425
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6426
else
6427
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6428
for as_dir in $PATH
6429
do
6430
  IFS=$as_save_IFS
6431
  test -z "$as_dir" && as_dir=.
6432
  for ac_exec_ext in '' $ac_executable_extensions; do
6433
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6434
    ac_cv_prog_ac_ct_STRIP="strip"
6435
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6436
    break 2
6437
  fi
6438
done
6439
done
6440
 
6441
  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6442
fi
6443
fi
6444
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6445
if test -n "$ac_ct_STRIP"; then
6446
  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6447
echo "${ECHO_T}$ac_ct_STRIP" >&6
6448
else
6449
  echo "$as_me:$LINENO: result: no" >&5
6450
echo "${ECHO_T}no" >&6
6451
fi
6452
 
6453
  STRIP=$ac_ct_STRIP
6454
else
6455
  STRIP="$ac_cv_prog_STRIP"
6456
fi
6457
 
6458
 
6459
old_CC="$CC"
6460
old_CFLAGS="$CFLAGS"
6461
 
6462
# Set sane defaults for various variables
6463
test -z "$AR" && AR=ar
6464
test -z "$AR_FLAGS" && AR_FLAGS=cru
6465
test -z "$AS" && AS=as
6466
test -z "$CC" && CC=cc
6467
test -z "$LTCC" && LTCC=$CC
6468
test -z "$DLLTOOL" && DLLTOOL=dlltool
6469
test -z "$LD" && LD=ld
6470
test -z "$LN_S" && LN_S="ln -s"
6471
test -z "$MAGIC_CMD" && MAGIC_CMD=file
6472
test -z "$NM" && NM=nm
6473
test -z "$SED" && SED=sed
6474
test -z "$OBJDUMP" && OBJDUMP=objdump
6475
test -z "$RANLIB" && RANLIB=:
6476
test -z "$STRIP" && STRIP=:
6477
test -z "$ac_objext" && ac_objext=o
6478
 
6479
# Determine commands to create old-style static archives.
6480
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6481
old_postinstall_cmds='chmod 644 $oldlib'
6482
old_postuninstall_cmds=
6483
 
6484
if test -n "$RANLIB"; then
6485
  case $host_os in
6486
  openbsd*)
6487
    old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
6488
    ;;
6489
  *)
6490
    old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
6491
    ;;
6492
  esac
6493
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6494
fi
6495
 
6496
# Only perform the check for file, if the check method requires it
6497
case $deplibs_check_method in
6498
file_magic*)
6499
  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6500
    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6501
echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6502
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6503
  echo $ECHO_N "(cached) $ECHO_C" >&6
6504
else
6505
  case $MAGIC_CMD in
6506
[\\/*] |  ?:[\\/]*)
6507
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6508
  ;;
6509
*)
6510
  lt_save_MAGIC_CMD="$MAGIC_CMD"
6511
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6512
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6513
  for ac_dir in $ac_dummy; do
6514
    IFS="$lt_save_ifs"
6515
    test -z "$ac_dir" && ac_dir=.
6516
    if test -f $ac_dir/${ac_tool_prefix}file; then
6517
      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6518
      if test -n "$file_magic_test_file"; then
6519
        case $deplibs_check_method in
6520
        "file_magic "*)
6521
          file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6522
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6523
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6524
            $EGREP "$file_magic_regex" > /dev/null; then
6525
            :
6526
          else
6527
            cat <&2
6528
 
6529
*** Warning: the command libtool uses to detect shared libraries,
6530
*** $file_magic_cmd, produces output that libtool cannot recognize.
6531
*** The result is that libtool may fail to recognize shared libraries
6532
*** as such.  This will affect the creation of libtool libraries that
6533
*** depend on shared libraries, but programs linked with such libtool
6534
*** libraries will work regardless of this problem.  Nevertheless, you
6535
*** may want to report the problem to your system manager and/or to
6536
*** bug-libtool@gnu.org
6537
 
6538
EOF
6539
          fi ;;
6540
        esac
6541
      fi
6542
      break
6543
    fi
6544
  done
6545
  IFS="$lt_save_ifs"
6546
  MAGIC_CMD="$lt_save_MAGIC_CMD"
6547
  ;;
6548
esac
6549
fi
6550
 
6551
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6552
if test -n "$MAGIC_CMD"; then
6553
  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6554
echo "${ECHO_T}$MAGIC_CMD" >&6
6555
else
6556
  echo "$as_me:$LINENO: result: no" >&5
6557
echo "${ECHO_T}no" >&6
6558
fi
6559
 
6560
if test -z "$lt_cv_path_MAGIC_CMD"; then
6561
  if test -n "$ac_tool_prefix"; then
6562
    echo "$as_me:$LINENO: checking for file" >&5
6563
echo $ECHO_N "checking for file... $ECHO_C" >&6
6564
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6565
  echo $ECHO_N "(cached) $ECHO_C" >&6
6566
else
6567
  case $MAGIC_CMD in
6568
[\\/*] |  ?:[\\/]*)
6569
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6570
  ;;
6571
*)
6572
  lt_save_MAGIC_CMD="$MAGIC_CMD"
6573
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6574
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6575
  for ac_dir in $ac_dummy; do
6576
    IFS="$lt_save_ifs"
6577
    test -z "$ac_dir" && ac_dir=.
6578
    if test -f $ac_dir/file; then
6579
      lt_cv_path_MAGIC_CMD="$ac_dir/file"
6580
      if test -n "$file_magic_test_file"; then
6581
        case $deplibs_check_method in
6582
        "file_magic "*)
6583
          file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6584
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6585
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6586
            $EGREP "$file_magic_regex" > /dev/null; then
6587
            :
6588
          else
6589
            cat <&2
6590
 
6591
*** Warning: the command libtool uses to detect shared libraries,
6592
*** $file_magic_cmd, produces output that libtool cannot recognize.
6593
*** The result is that libtool may fail to recognize shared libraries
6594
*** as such.  This will affect the creation of libtool libraries that
6595
*** depend on shared libraries, but programs linked with such libtool
6596
*** libraries will work regardless of this problem.  Nevertheless, you
6597
*** may want to report the problem to your system manager and/or to
6598
*** bug-libtool@gnu.org
6599
 
6600
EOF
6601
          fi ;;
6602
        esac
6603
      fi
6604
      break
6605
    fi
6606
  done
6607
  IFS="$lt_save_ifs"
6608
  MAGIC_CMD="$lt_save_MAGIC_CMD"
6609
  ;;
6610
esac
6611
fi
6612
 
6613
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6614
if test -n "$MAGIC_CMD"; then
6615
  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6616
echo "${ECHO_T}$MAGIC_CMD" >&6
6617
else
6618
  echo "$as_me:$LINENO: result: no" >&5
6619
echo "${ECHO_T}no" >&6
6620
fi
6621
 
6622
  else
6623
    MAGIC_CMD=:
6624
  fi
6625
fi
6626
 
6627
  fi
6628
  ;;
6629
esac
6630
 
6631
enable_dlopen=no
6632
enable_win32_dll=yes
6633
 
6634
# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6635
if test "${enable_libtool_lock+set}" = set; then
6636
  enableval="$enable_libtool_lock"
6637
 
6638
fi;
6639
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6640
 
6641
 
6642
# Check whether --with-pic or --without-pic was given.
6643
if test "${with_pic+set}" = set; then
6644
  withval="$with_pic"
6645
  pic_mode="$withval"
6646
else
6647
  pic_mode=default
6648
fi;
6649
test -z "$pic_mode" && pic_mode=default
6650
 
6651
# Use C for the default configuration in the libtool script
6652
tagname=
6653
lt_save_CC="$CC"
6654
ac_ext=c
6655
ac_cpp='$CPP $CPPFLAGS'
6656
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6657
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6658
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6659
 
6660
 
6661
# Source file extension for C test sources.
6662
ac_ext=c
6663
 
6664
# Object file extension for compiled C test sources.
6665
objext=o
6666
objext=$objext
6667
 
6668
# Code to be used in simple compile tests
6669
lt_simple_compile_test_code="int some_variable = 0;\n"
6670
 
6671
# Code to be used in simple link tests
6672
lt_simple_link_test_code='int main(){return(0);}\n'
6673
 
6674
 
6675
# If no C compiler was specified, use CC.
6676
LTCC=${LTCC-"$CC"}
6677
 
6678
# Allow CC to be a program name with arguments.
6679
compiler=$CC
6680
 
6681
 
6682
#
6683
# Check for any special shared library compilation flags.
6684
#
6685
lt_prog_cc_shlib=
6686
if test "$GCC" = no; then
6687
  case $host_os in
6688
  sco3.2v5*)
6689
    lt_prog_cc_shlib='-belf'
6690
    ;;
6691
  esac
6692
fi
6693
if test -n "$lt_prog_cc_shlib"; then
6694
  { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6695
echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6696
  if echo "$old_CC $old_CFLAGS " | grep "[      ]$lt_prog_cc_shlib[     ]" >/dev/null; then :
6697
  else
6698
    { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6699
echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6700
    lt_cv_prog_cc_can_build_shared=no
6701
  fi
6702
fi
6703
 
6704
 
6705
#
6706
# Check to make sure the static flag actually works.
6707
#
6708
echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
6709
echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
6710
if test "${lt_prog_compiler_static_works+set}" = set; then
6711
  echo $ECHO_N "(cached) $ECHO_C" >&6
6712
else
6713
  lt_prog_compiler_static_works=no
6714
   save_LDFLAGS="$LDFLAGS"
6715
   LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
6716
   printf "$lt_simple_link_test_code" > conftest.$ac_ext
6717
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6718
     # The compiler can only warn and ignore the option if not recognized
6719
     # So say no if there are warnings
6720
     if test -s conftest.err; then
6721
       # Append any errors to the config.log.
6722
       cat conftest.err 1>&5
6723
     else
6724
       lt_prog_compiler_static_works=yes
6725
     fi
6726
   fi
6727
   $rm conftest*
6728
   LDFLAGS="$save_LDFLAGS"
6729
 
6730
fi
6731
echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6732
echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6733
 
6734
if test x"$lt_prog_compiler_static_works" = xyes; then
6735
    :
6736
else
6737
    lt_prog_compiler_static=
6738
fi
6739
 
6740
 
6741
 
6742
## CAVEAT EMPTOR:
6743
## There is no encapsulation within the following macros, do not change
6744
## the running order or otherwise move them around unless you know exactly
6745
## what you are doing...
6746
 
6747
lt_prog_compiler_no_builtin_flag=
6748
 
6749
if test "$GCC" = yes; then
6750
  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6751
 
6752
  echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6753
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6754
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6755
  echo $ECHO_N "(cached) $ECHO_C" >&6
6756
else
6757
  lt_cv_prog_compiler_rtti_exceptions=no
6758
  ac_outfile=conftest.$ac_objext
6759
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6760
   lt_compiler_flag="-fno-rtti -fno-exceptions"
6761
   # Insert the option either (1) after the last *FLAGS variable, or
6762
   # (2) before a word containing "conftest.", or (3) at the end.
6763
   # Note that $ac_compile itself does not contain backslashes and begins
6764
   # with a dollar sign (not a hyphen), so the echo should work correctly.
6765
   # The option is referenced via a variable to avoid confusing sed.
6766
   lt_compile=`echo "$ac_compile" | $SED \
6767
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6768
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6769
   -e 's:$: $lt_compiler_flag:'`
6770
   (eval echo "\"\$as_me:6770: $lt_compile\"" >&5)
6771
   (eval "$lt_compile" 2>conftest.err)
6772
   ac_status=$?
6773
   cat conftest.err >&5
6774
   echo "$as_me:6774: \$? = $ac_status" >&5
6775
   if (exit $ac_status) && test -s "$ac_outfile"; then
6776
     # The compiler can only warn and ignore the option if not recognized
6777
     # So say no if there are warnings
6778
     if test ! -s conftest.err; then
6779
       lt_cv_prog_compiler_rtti_exceptions=yes
6780
     fi
6781
   fi
6782
   $rm conftest*
6783
 
6784
fi
6785
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6786
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6787
 
6788
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6789
    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6790
else
6791
    :
6792
fi
6793
 
6794
fi
6795
 
6796
lt_prog_compiler_wl=
6797
lt_prog_compiler_pic=
6798
lt_prog_compiler_static=
6799
 
6800
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6801
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6802
 
6803
  if test "$GCC" = yes; then
6804
    lt_prog_compiler_wl='-Wl,'
6805
    lt_prog_compiler_static='-static'
6806
 
6807
    case $host_os in
6808
      aix*)
6809
      # All AIX code is PIC.
6810
      if test "$host_cpu" = ia64; then
6811
        # AIX 5 now supports IA64 processor
6812
        lt_prog_compiler_static='-Bstatic'
6813
      fi
6814
      ;;
6815
 
6816
    amigaos*)
6817
      # FIXME: we need at least 68020 code to build shared libraries, but
6818
      # adding the `-m68020' flag to GCC prevents building anything better,
6819
      # like `-m68040'.
6820
      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6821
      ;;
6822
 
6823
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6824
      # PIC is the default for these OSes.
6825
      ;;
6826
 
6827
    mingw* | pw32* | os2*)
6828
      # This hack is so that the source file can tell whether it is being
6829
      # built for inclusion in a dll (and should export symbols for example).
6830
      lt_prog_compiler_pic='-DDLL_EXPORT'
6831
      ;;
6832
 
6833
    darwin* | rhapsody*)
6834
      # PIC is the default on this platform
6835
      # Common symbols not allowed in MH_DYLIB files
6836
      lt_prog_compiler_pic='-fno-common'
6837
      ;;
6838
 
6839
    msdosdjgpp*)
6840
      # Just because we use GCC doesn't mean we suddenly get shared libraries
6841
      # on systems that don't support them.
6842
      lt_prog_compiler_can_build_shared=no
6843
      enable_shared=no
6844
      ;;
6845
 
6846
    sysv4*MP*)
6847
      if test -d /usr/nec; then
6848
        lt_prog_compiler_pic=-Kconform_pic
6849
      fi
6850
      ;;
6851
 
6852
    hpux*)
6853
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6854
      # not for PA HP-UX.
6855
      case "$host_cpu" in
6856
      hppa*64*|ia64*)
6857
        # +Z the default
6858
        ;;
6859
      *)
6860
        lt_prog_compiler_pic='-fPIC'
6861
        ;;
6862
      esac
6863
      ;;
6864
 
6865
    *)
6866
      lt_prog_compiler_pic='-fPIC'
6867
      ;;
6868
    esac
6869
  else
6870
    # PORTME Check for flag to pass linker flags through the system compiler.
6871
    case $host_os in
6872
    aix*)
6873
      lt_prog_compiler_wl='-Wl,'
6874
      if test "$host_cpu" = ia64; then
6875
        # AIX 5 now supports IA64 processor
6876
        lt_prog_compiler_static='-Bstatic'
6877
      else
6878
        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6879
      fi
6880
      ;;
6881
 
6882
    mingw* | pw32* | os2*)
6883
      # This hack is so that the source file can tell whether it is being
6884
      # built for inclusion in a dll (and should export symbols for example).
6885
      lt_prog_compiler_pic='-DDLL_EXPORT'
6886
      ;;
6887
 
6888
    hpux9* | hpux10* | hpux11*)
6889
      lt_prog_compiler_wl='-Wl,'
6890
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6891
      # not for PA HP-UX.
6892
      case "$host_cpu" in
6893
      hppa*64*|ia64*)
6894
        # +Z the default
6895
        ;;
6896
      *)
6897
        lt_prog_compiler_pic='+Z'
6898
        ;;
6899
      esac
6900
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
6901
      lt_prog_compiler_static='${wl}-a ${wl}archive'
6902
      ;;
6903
 
6904
    irix5* | irix6* | nonstopux*)
6905
      lt_prog_compiler_wl='-Wl,'
6906
      # PIC (with -KPIC) is the default.
6907
      lt_prog_compiler_static='-non_shared'
6908
      ;;
6909
 
6910
    newsos6)
6911
      lt_prog_compiler_pic='-KPIC'
6912
      lt_prog_compiler_static='-Bstatic'
6913
      ;;
6914
 
6915
    linux*)
6916
      case $CC in
6917
      icc|ecc)
6918
        lt_prog_compiler_wl='-Wl,'
6919
        lt_prog_compiler_pic='-KPIC'
6920
        lt_prog_compiler_static='-static'
6921
        ;;
6922
      ccc)
6923
        lt_prog_compiler_wl='-Wl,'
6924
        # All Alpha code is PIC.
6925
        lt_prog_compiler_static='-non_shared'
6926
        ;;
6927
      esac
6928
      ;;
6929
 
6930
    osf3* | osf4* | osf5*)
6931
      lt_prog_compiler_wl='-Wl,'
6932
      # All OSF/1 code is PIC.
6933
      lt_prog_compiler_static='-non_shared'
6934
      ;;
6935
 
6936
    sco3.2v5*)
6937
      lt_prog_compiler_pic='-Kpic'
6938
      lt_prog_compiler_static='-dn'
6939
      ;;
6940
 
6941
    solaris*)
6942
      lt_prog_compiler_wl='-Wl,'
6943
      lt_prog_compiler_pic='-KPIC'
6944
      lt_prog_compiler_static='-Bstatic'
6945
      ;;
6946
 
6947
    sunos4*)
6948
      lt_prog_compiler_wl='-Qoption ld '
6949
      lt_prog_compiler_pic='-PIC'
6950
      lt_prog_compiler_static='-Bstatic'
6951
      ;;
6952
 
6953
    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6954
      lt_prog_compiler_wl='-Wl,'
6955
      lt_prog_compiler_pic='-KPIC'
6956
      lt_prog_compiler_static='-Bstatic'
6957
      ;;
6958
 
6959
    sysv4*MP*)
6960
      if test -d /usr/nec ;then
6961
        lt_prog_compiler_pic='-Kconform_pic'
6962
        lt_prog_compiler_static='-Bstatic'
6963
      fi
6964
      ;;
6965
 
6966
    uts4*)
6967
      lt_prog_compiler_pic='-pic'
6968
      lt_prog_compiler_static='-Bstatic'
6969
      ;;
6970
 
6971
    *)
6972
      lt_prog_compiler_can_build_shared=no
6973
      ;;
6974
    esac
6975
  fi
6976
 
6977
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6978
echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6979
 
6980
#
6981
# Check to make sure the PIC flag actually works.
6982
#
6983
if test -n "$lt_prog_compiler_pic"; then
6984
  echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6985
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6986
if test "${lt_prog_compiler_pic_works+set}" = set; then
6987
  echo $ECHO_N "(cached) $ECHO_C" >&6
6988
else
6989
  lt_prog_compiler_pic_works=no
6990
  ac_outfile=conftest.$ac_objext
6991
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6992
   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6993
   # Insert the option either (1) after the last *FLAGS variable, or
6994
   # (2) before a word containing "conftest.", or (3) at the end.
6995
   # Note that $ac_compile itself does not contain backslashes and begins
6996
   # with a dollar sign (not a hyphen), so the echo should work correctly.
6997
   # The option is referenced via a variable to avoid confusing sed.
6998
   lt_compile=`echo "$ac_compile" | $SED \
6999
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
7000
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7001
   -e 's:$: $lt_compiler_flag:'`
7002
   (eval echo "\"\$as_me:7002: $lt_compile\"" >&5)
7003
   (eval "$lt_compile" 2>conftest.err)
7004
   ac_status=$?
7005
   cat conftest.err >&5
7006
   echo "$as_me:7006: \$? = $ac_status" >&5
7007
   if (exit $ac_status) && test -s "$ac_outfile"; then
7008
     # The compiler can only warn and ignore the option if not recognized
7009
     # So say no if there are warnings
7010
     if test ! -s conftest.err; then
7011
       lt_prog_compiler_pic_works=yes
7012
     fi
7013
   fi
7014
   $rm conftest*
7015
 
7016
fi
7017
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7018
echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
7019
 
7020
if test x"$lt_prog_compiler_pic_works" = xyes; then
7021
    case $lt_prog_compiler_pic in
7022
     "" | " "*) ;;
7023
     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7024
     esac
7025
else
7026
    lt_prog_compiler_pic=
7027
     lt_prog_compiler_can_build_shared=no
7028
fi
7029
 
7030
fi
7031
case "$host_os" in
7032
  # For platforms which do not support PIC, -DPIC is meaningless:
7033
  *djgpp*)
7034
    lt_prog_compiler_pic=
7035
    ;;
7036
  *)
7037
    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7038
    ;;
7039
esac
7040
 
7041
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7042
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7043
if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7044
  echo $ECHO_N "(cached) $ECHO_C" >&6
7045
else
7046
  lt_cv_prog_compiler_c_o=no
7047
   $rm -r conftest 2>/dev/null
7048
   mkdir conftest
7049
   cd conftest
7050
   mkdir out
7051
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7052
 
7053
   # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
7054
   # that will create temporary files in the current directory regardless of
7055
   # the output directory.  Thus, making CWD read-only will cause this test
7056
   # to fail, enabling locking or at least warning the user not to do parallel
7057
   # builds.
7058
   chmod -w .
7059
 
7060
   lt_compiler_flag="-o out/conftest2.$ac_objext"
7061
   # Insert the option either (1) after the last *FLAGS variable, or
7062
   # (2) before a word containing "conftest.", or (3) at the end.
7063
   # Note that $ac_compile itself does not contain backslashes and begins
7064
   # with a dollar sign (not a hyphen), so the echo should work correctly.
7065
   lt_compile=`echo "$ac_compile" | $SED \
7066
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
7067
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7068
   -e 's:$: $lt_compiler_flag:'`
7069
   (eval echo "\"\$as_me:7069: $lt_compile\"" >&5)
7070
   (eval "$lt_compile" 2>out/conftest.err)
7071
   ac_status=$?
7072
   cat out/conftest.err >&5
7073
   echo "$as_me:7073: \$? = $ac_status" >&5
7074
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
7075
   then
7076
     # The compiler can only warn and ignore the option if not recognized
7077
     # So say no if there are warnings
7078
     if test ! -s out/conftest.err; then
7079
       lt_cv_prog_compiler_c_o=yes
7080
     fi
7081
   fi
7082
   chmod u+w .
7083
   $rm conftest* out/*
7084
   rmdir out
7085
   cd ..
7086
   rmdir conftest
7087
   $rm conftest*
7088
 
7089
fi
7090
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7091
echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
7092
 
7093
 
7094
hard_links="nottested"
7095
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7096
  # do not overwrite the value of need_locks provided by the user
7097
  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7098
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
7099
  hard_links=yes
7100
  $rm conftest*
7101
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7102
  touch conftest.a
7103
  ln conftest.a conftest.b 2>&5 || hard_links=no
7104
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7105
  echo "$as_me:$LINENO: result: $hard_links" >&5
7106
echo "${ECHO_T}$hard_links" >&6
7107
  if test "$hard_links" = no; then
7108
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7109
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7110
    need_locks=warn
7111
  fi
7112
else
7113
  need_locks=no
7114
fi
7115
 
7116
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7117
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
7118
 
7119
  runpath_var=
7120
  allow_undefined_flag=
7121
  enable_shared_with_static_runtimes=no
7122
  archive_cmds=
7123
  archive_expsym_cmds=
7124
  old_archive_From_new_cmds=
7125
  old_archive_from_expsyms_cmds=
7126
  export_dynamic_flag_spec=
7127
  whole_archive_flag_spec=
7128
  thread_safe_flag_spec=
7129
  hardcode_libdir_flag_spec=
7130
  hardcode_libdir_flag_spec_ld=
7131
  hardcode_libdir_separator=
7132
  hardcode_direct=no
7133
  hardcode_minus_L=no
7134
  hardcode_shlibpath_var=unsupported
7135
  link_all_deplibs=unknown
7136
  hardcode_automatic=no
7137
  module_cmds=
7138
  module_expsym_cmds=
7139
  always_export_symbols=no
7140
  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7141
  # include_expsyms should be a list of space-separated symbols to be *always*
7142
  # included in the symbol list
7143
  include_expsyms=
7144
  # exclude_expsyms can be an extended regexp of symbols to exclude
7145
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
7146
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7147
  # as well as any symbol that contains `d'.
7148
  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7149
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7150
  # platforms (ab)use it in PIC code, but their linkers get confused if
7151
  # the symbol is explicitly referenced.  Since portable code cannot
7152
  # rely on this symbol name, it's probably fine to never include it in
7153
  # preloaded symbol tables.
7154
  extract_expsyms_cmds=
7155
 
7156
  case $host_os in
7157
  cygwin* | mingw* | pw32*)
7158
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
7159
    # When not using gcc, we currently assume that we are using
7160
    # Microsoft Visual C++.
7161
    if test "$GCC" != yes; then
7162
      with_gnu_ld=no
7163
    fi
7164
    ;;
7165
  openbsd*)
7166
    with_gnu_ld=no
7167
    ;;
7168
  esac
7169
 
7170
  ld_shlibs=yes
7171
  if test "$with_gnu_ld" = yes; then
7172
    # If archive_cmds runs LD, not CC, wlarc should be empty
7173
    wlarc='${wl}'
7174
 
7175
    # See if GNU ld supports shared libraries.
7176
    case $host_os in
7177
    aix3* | aix4* | aix5*)
7178
      # On AIX/PPC, the GNU linker is very broken
7179
      if test "$host_cpu" != ia64; then
7180
        ld_shlibs=no
7181
        cat <&2
7182
 
7183
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
7184
*** to be unable to reliably create shared libraries on AIX.
7185
*** Therefore, libtool is disabling shared libraries support.  If you
7186
*** really care for shared libraries, you may want to modify your PATH
7187
*** so that a non-GNU linker is found, and then restart.
7188
 
7189
EOF
7190
      fi
7191
      ;;
7192
 
7193
    amigaos*)
7194
      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)'
7195
      hardcode_libdir_flag_spec='-L$libdir'
7196
      hardcode_minus_L=yes
7197
 
7198
      # Samuel A. Falvo II  reports
7199
      # that the semantics of dynamic libraries on AmigaOS, at least up
7200
      # to version 4, is to share data among multiple programs linked
7201
      # with the same dynamic library.  Since this doesn't match the
7202
      # behavior of shared libraries on other platforms, we can't use
7203
      # them.
7204
      ld_shlibs=no
7205
      ;;
7206
 
7207
    beos*)
7208
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7209
        allow_undefined_flag=unsupported
7210
        # Joseph Beckenbach  says some releases of gcc
7211
        # support --undefined.  This deserves some investigation.  FIXME
7212
        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7213
      else
7214
        ld_shlibs=no
7215
      fi
7216
      ;;
7217
 
7218
    cygwin* | mingw* | pw32*)
7219
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7220
      # as there is no search path for DLLs.
7221
      hardcode_libdir_flag_spec='-L$libdir'
7222
      allow_undefined_flag=unsupported
7223
      always_export_symbols=no
7224
      enable_shared_with_static_runtimes=yes
7225
      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7226
 
7227
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7228
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
7229
        # If the export-symbols file already is a .def file (1st line
7230
        # is EXPORTS), use it as is; otherwise, prepend...
7231
        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7232
          cp $export_symbols $output_objdir/$soname.def;
7233
        else
7234
          echo EXPORTS > $output_objdir/$soname.def;
7235
          cat $export_symbols >> $output_objdir/$soname.def;
7236
        fi~
7237
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
7238
      else
7239
        ld_shlibs=no
7240
      fi
7241
      ;;
7242
 
7243
    netbsd*)
7244
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7245
        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7246
        wlarc=
7247
      else
7248
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7249
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7250
      fi
7251
      ;;
7252
 
7253
    solaris* | sysv5*)
7254
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7255
        ld_shlibs=no
7256
        cat <&2
7257
 
7258
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
7259
*** create shared libraries on Solaris systems.  Therefore, libtool
7260
*** is disabling shared libraries support.  We urge you to upgrade GNU
7261
*** binutils to release 2.9.1 or newer.  Another option is to modify
7262
*** your PATH or compiler configuration so that the native linker is
7263
*** used, and then restart.
7264
 
7265
EOF
7266
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7267
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7268
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7269
      else
7270
        ld_shlibs=no
7271
      fi
7272
      ;;
7273
 
7274
    sunos4*)
7275
      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7276
      wlarc=
7277
      hardcode_direct=yes
7278
      hardcode_shlibpath_var=no
7279
      ;;
7280
 
7281
    *)
7282
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7283
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7284
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7285
      else
7286
        ld_shlibs=no
7287
      fi
7288
      ;;
7289
    esac
7290
 
7291
    if test "$ld_shlibs" = yes; then
7292
      runpath_var=LD_RUN_PATH
7293
      hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7294
      export_dynamic_flag_spec='${wl}--export-dynamic'
7295
      # ancient GNU ld didn't support --whole-archive et. al.
7296
      if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7297
        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7298
      else
7299
        whole_archive_flag_spec=
7300
      fi
7301
    fi
7302
  else
7303
    # PORTME fill in a description of your system's linker (not GNU ld)
7304
    case $host_os in
7305
    aix3*)
7306
      allow_undefined_flag=unsupported
7307
      always_export_symbols=yes
7308
      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'
7309
      # Note: this linker hardcodes the directories in LIBPATH if there
7310
      # are no directories specified by -L.
7311
      hardcode_minus_L=yes
7312
      if test "$GCC" = yes && test -z "$link_static_flag"; then
7313
        # Neither direct hardcoding nor static linking is supported with a
7314
        # broken collect2.
7315
        hardcode_direct=unsupported
7316
      fi
7317
      ;;
7318
 
7319
    aix4* | aix5*)
7320
      if test "$host_cpu" = ia64; then
7321
        # On IA64, the linker does run time linking by default, so we don't
7322
        # have to do anything special.
7323
        aix_use_runtimelinking=no
7324
        exp_sym_flag='-Bexport'
7325
        no_entry_flag=""
7326
      else
7327
        # If we're using GNU nm, then we don't want the "-C" option.
7328
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
7329
        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7330
          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'
7331
        else
7332
          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'
7333
        fi
7334
        aix_use_runtimelinking=no
7335
 
7336
        # Test if we are trying to use run time linking or normal
7337
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7338
        # need to do runtime linking.
7339
        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7340
          for ld_flag in $LDFLAGS; do
7341
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7342
            aix_use_runtimelinking=yes
7343
            break
7344
          fi
7345
          done
7346
        esac
7347
 
7348
        exp_sym_flag='-bexport'
7349
        no_entry_flag='-bnoentry'
7350
      fi
7351
 
7352
      # When large executables or shared objects are built, AIX ld can
7353
      # have problems creating the table of contents.  If linking a library
7354
      # or program results in "error TOC overflow" add -mminimal-toc to
7355
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
7356
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7357
 
7358
      archive_cmds=''
7359
      hardcode_direct=yes
7360
      hardcode_libdir_separator=':'
7361
      link_all_deplibs=yes
7362
 
7363
      if test "$GCC" = yes; then
7364
        case $host_os in aix4.012|aix4.012.*)
7365
        # We only want to do this on AIX 4.2 and lower, the check
7366
        # below for broken collect2 doesn't work under 4.3+
7367
          collect2name=`${CC} -print-prog-name=collect2`
7368
          if test -f "$collect2name" && \
7369
           strings "$collect2name" | grep resolve_lib_name >/dev/null
7370
          then
7371
          # We have reworked collect2
7372
          hardcode_direct=yes
7373
          else
7374
          # We have old collect2
7375
          hardcode_direct=unsupported
7376
          # It fails to find uninstalled libraries when the uninstalled
7377
          # path is not listed in the libpath.  Setting hardcode_minus_L
7378
          # to unsupported forces relinking
7379
          hardcode_minus_L=yes
7380
          hardcode_libdir_flag_spec='-L$libdir'
7381
          hardcode_libdir_separator=
7382
          fi
7383
        esac
7384
        shared_flag='-shared'
7385
      else
7386
        # not using gcc
7387
        if test "$host_cpu" = ia64; then
7388
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7389
        # chokes on -Wl,-G. The following line is correct:
7390
          shared_flag='-G'
7391
        else
7392
        if test "$aix_use_runtimelinking" = yes; then
7393
            shared_flag='${wl}-G'
7394
          else
7395
            shared_flag='${wl}-bM:SRE'
7396
        fi
7397
        fi
7398
      fi
7399
 
7400
      # It seems that -bexpall does not export symbols beginning with
7401
      # underscore (_), so it is better to generate a list of symbols to export.
7402
      always_export_symbols=yes
7403
      if test "$aix_use_runtimelinking" = yes; then
7404
        # Warning - without using the other runtime loading flags (-brtl),
7405
        # -berok will link without error, but may produce a broken library.
7406
        allow_undefined_flag='-berok'
7407
       # Determine the default libpath from the value encoded in an empty executable.
7408
       cat >conftest.$ac_ext <<_ACEOF
7409
/* confdefs.h.  */
7410
_ACEOF
7411
cat confdefs.h >>conftest.$ac_ext
7412
cat >>conftest.$ac_ext <<_ACEOF
7413
/* end confdefs.h.  */
7414
 
7415
int
7416
main ()
7417
{
7418
 
7419
  ;
7420
  return 0;
7421
}
7422
_ACEOF
7423
rm -f conftest.$ac_objext conftest$ac_exeext
7424
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7425
  (eval $ac_link) 2>conftest.er1
7426
  ac_status=$?
7427
  grep -v '^ *+' conftest.er1 >conftest.err
7428
  rm -f conftest.er1
7429
  cat conftest.err >&5
7430
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7431
  (exit $ac_status); } &&
7432
         { ac_try='test -z "$ac_c_werror_flag"
7433
                         || test ! -s conftest.err'
7434
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7435
  (eval $ac_try) 2>&5
7436
  ac_status=$?
7437
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7438
  (exit $ac_status); }; } &&
7439
         { ac_try='test -s conftest$ac_exeext'
7440
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7441
  (eval $ac_try) 2>&5
7442
  ac_status=$?
7443
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7444
  (exit $ac_status); }; }; then
7445
 
7446
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7447
}'`
7448
# Check for a 64-bit object if we didn't find anything.
7449
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; }
7450
}'`; fi
7451
else
7452
  echo "$as_me: failed program was:" >&5
7453
sed 's/^/| /' conftest.$ac_ext >&5
7454
 
7455
fi
7456
rm -f conftest.err conftest.$ac_objext \
7457
      conftest$ac_exeext conftest.$ac_ext
7458
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7459
 
7460
       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7461
        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"
7462
       else
7463
        if test "$host_cpu" = ia64; then
7464
          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7465
          allow_undefined_flag="-z nodefs"
7466
          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"
7467
        else
7468
         # Determine the default libpath from the value encoded in an empty executable.
7469
         cat >conftest.$ac_ext <<_ACEOF
7470
/* confdefs.h.  */
7471
_ACEOF
7472
cat confdefs.h >>conftest.$ac_ext
7473
cat >>conftest.$ac_ext <<_ACEOF
7474
/* end confdefs.h.  */
7475
 
7476
int
7477
main ()
7478
{
7479
 
7480
  ;
7481
  return 0;
7482
}
7483
_ACEOF
7484
rm -f conftest.$ac_objext conftest$ac_exeext
7485
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7486
  (eval $ac_link) 2>conftest.er1
7487
  ac_status=$?
7488
  grep -v '^ *+' conftest.er1 >conftest.err
7489
  rm -f conftest.er1
7490
  cat conftest.err >&5
7491
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7492
  (exit $ac_status); } &&
7493
         { ac_try='test -z "$ac_c_werror_flag"
7494
                         || test ! -s conftest.err'
7495
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7496
  (eval $ac_try) 2>&5
7497
  ac_status=$?
7498
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7499
  (exit $ac_status); }; } &&
7500
         { ac_try='test -s conftest$ac_exeext'
7501
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7502
  (eval $ac_try) 2>&5
7503
  ac_status=$?
7504
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7505
  (exit $ac_status); }; }; then
7506
 
7507
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7508
}'`
7509
# Check for a 64-bit object if we didn't find anything.
7510
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; }
7511
}'`; fi
7512
else
7513
  echo "$as_me: failed program was:" >&5
7514
sed 's/^/| /' conftest.$ac_ext >&5
7515
 
7516
fi
7517
rm -f conftest.err conftest.$ac_objext \
7518
      conftest$ac_exeext conftest.$ac_ext
7519
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7520
 
7521
         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7522
          # Warning - without using the other run time loading flags,
7523
          # -berok will link without error, but may produce a broken library.
7524
          no_undefined_flag=' ${wl}-bernotok'
7525
          allow_undefined_flag=' ${wl}-berok'
7526
          # -bexpall does not export symbols beginning with underscore (_)
7527
          always_export_symbols=yes
7528
          # Exported symbols can be pulled into shared objects from archives
7529
          whole_archive_flag_spec=' '
7530
          archive_cmds_need_lc=yes
7531
          # This is similar to how AIX traditionally builds it's shared libraries.
7532
          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'
7533
        fi
7534
      fi
7535
      ;;
7536
 
7537
    amigaos*)
7538
      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)'
7539
      hardcode_libdir_flag_spec='-L$libdir'
7540
      hardcode_minus_L=yes
7541
      # see comment about different semantics on the GNU ld section
7542
      ld_shlibs=no
7543
      ;;
7544
 
7545
    bsdi4*)
7546
      export_dynamic_flag_spec=-rdynamic
7547
      ;;
7548
 
7549
    cygwin* | mingw* | pw32*)
7550
      # When not using gcc, we currently assume that we are using
7551
      # Microsoft Visual C++.
7552
      # hardcode_libdir_flag_spec is actually meaningless, as there is
7553
      # no search path for DLLs.
7554
      hardcode_libdir_flag_spec=' '
7555
      allow_undefined_flag=unsupported
7556
      # Tell ltmain to make .lib files, not .a files.
7557
      libext=lib
7558
      # Tell ltmain to make .dll files, not .so files.
7559
      shrext=".dll"
7560
      # FIXME: Setting linknames here is a bad hack.
7561
      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7562
      # The linker will automatically build a .lib file if we build a DLL.
7563
      old_archive_From_new_cmds='true'
7564
      # FIXME: Should let the user specify the lib program.
7565
      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7566
      fix_srcfile_path='`cygpath -w "$srcfile"`'
7567
      enable_shared_with_static_runtimes=yes
7568
      ;;
7569
 
7570
    darwin* | rhapsody*)
7571
    if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
7572
      archive_cmds_need_lc=no
7573
      case "$host_os" in
7574
      rhapsody* | darwin1.[012])
7575
        allow_undefined_flag='-undefined suppress'
7576
        ;;
7577
      *) # Darwin 1.3 on
7578
        test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
7579
        ;;
7580
      esac
7581
      # FIXME: Relying on posixy $() will cause problems for
7582
      #        cross-compilation, but unfortunately the echo tests do not
7583
      #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
7584
      #        `"' quotes if we put them in here... so don't!
7585
        lt_int_apple_cc_single_mod=no
7586
        output_verbose_link_cmd='echo'
7587
        if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
7588
          lt_int_apple_cc_single_mod=yes
7589
        fi
7590
        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7591
          archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7592
        else
7593
        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'
7594
      fi
7595
      module_cmds='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
7596
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7597
        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7598
          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}'
7599
        else
7600
          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}'
7601
        fi
7602
          module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag  -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7603
      hardcode_direct=no
7604
      hardcode_automatic=yes
7605
      hardcode_shlibpath_var=unsupported
7606
      whole_archive_flag_spec='-all_load $convenience'
7607
      link_all_deplibs=yes
7608
    fi
7609
      ;;
7610
 
7611
    dgux*)
7612
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7613
      hardcode_libdir_flag_spec='-L$libdir'
7614
      hardcode_shlibpath_var=no
7615
      ;;
7616
 
7617
    freebsd1*)
7618
      ld_shlibs=no
7619
      ;;
7620
 
7621
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7622
    # support.  Future versions do this automatically, but an explicit c++rt0.o
7623
    # does not break anything, and helps significantly (at the cost of a little
7624
    # extra space).
7625
    freebsd2.2*)
7626
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7627
      hardcode_libdir_flag_spec='-R$libdir'
7628
      hardcode_direct=yes
7629
      hardcode_shlibpath_var=no
7630
      ;;
7631
 
7632
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7633
    freebsd2*)
7634
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7635
      hardcode_direct=yes
7636
      hardcode_minus_L=yes
7637
      hardcode_shlibpath_var=no
7638
      ;;
7639
 
7640
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7641
    freebsd*)
7642
      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7643
      hardcode_libdir_flag_spec='-R$libdir'
7644
      hardcode_direct=yes
7645
      hardcode_shlibpath_var=no
7646
      ;;
7647
 
7648
    hpux9*)
7649
      if test "$GCC" = yes; then
7650
        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'
7651
      else
7652
        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'
7653
      fi
7654
      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7655
      hardcode_libdir_separator=:
7656
      hardcode_direct=yes
7657
 
7658
      # hardcode_minus_L: Not really in the search PATH,
7659
      # but as the default location of the library.
7660
      hardcode_minus_L=yes
7661
      export_dynamic_flag_spec='${wl}-E'
7662
      ;;
7663
 
7664
    hpux10* | hpux11*)
7665
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7666
        case "$host_cpu" in
7667
        hppa*64*|ia64*)
7668
          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7669
          ;;
7670
        *)
7671
          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7672
          ;;
7673
        esac
7674
      else
7675
        case "$host_cpu" in
7676
        hppa*64*|ia64*)
7677
          archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
7678
          ;;
7679
        *)
7680
          archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7681
          ;;
7682
        esac
7683
      fi
7684
      if test "$with_gnu_ld" = no; then
7685
        case "$host_cpu" in
7686
        hppa*64*)
7687
          hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7688
          hardcode_libdir_flag_spec_ld='+b $libdir'
7689
          hardcode_libdir_separator=:
7690
          hardcode_direct=no
7691
          hardcode_shlibpath_var=no
7692
          ;;
7693
        ia64*)
7694
          hardcode_libdir_flag_spec='-L$libdir'
7695
          hardcode_direct=no
7696
          hardcode_shlibpath_var=no
7697
 
7698
          # hardcode_minus_L: Not really in the search PATH,
7699
          # but as the default location of the library.
7700
          hardcode_minus_L=yes
7701
          ;;
7702
        *)
7703
          hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7704
          hardcode_libdir_separator=:
7705
          hardcode_direct=yes
7706
          export_dynamic_flag_spec='${wl}-E'
7707
 
7708
          # hardcode_minus_L: Not really in the search PATH,
7709
          # but as the default location of the library.
7710
          hardcode_minus_L=yes
7711
          ;;
7712
        esac
7713
      fi
7714
      ;;
7715
 
7716
    irix5* | irix6* | nonstopux*)
7717
      if test "$GCC" = yes; then
7718
        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'
7719
      else
7720
        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'
7721
        hardcode_libdir_flag_spec_ld='-rpath $libdir'
7722
      fi
7723
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7724
      hardcode_libdir_separator=:
7725
      link_all_deplibs=yes
7726
      ;;
7727
 
7728
    netbsd*)
7729
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7730
        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
7731
      else
7732
        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
7733
      fi
7734
      hardcode_libdir_flag_spec='-R$libdir'
7735
      hardcode_direct=yes
7736
      hardcode_shlibpath_var=no
7737
      ;;
7738
 
7739
    newsos6)
7740
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7741
      hardcode_direct=yes
7742
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7743
      hardcode_libdir_separator=:
7744
      hardcode_shlibpath_var=no
7745
      ;;
7746
 
7747
    openbsd*)
7748
      hardcode_direct=yes
7749
      hardcode_shlibpath_var=no
7750
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7751
        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7752
        hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7753
        export_dynamic_flag_spec='${wl}-E'
7754
      else
7755
       case $host_os in
7756
         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7757
           archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7758
           hardcode_libdir_flag_spec='-R$libdir'
7759
           ;;
7760
         *)
7761
           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7762
           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7763
           ;;
7764
       esac
7765
      fi
7766
      ;;
7767
 
7768
    os2*)
7769
      hardcode_libdir_flag_spec='-L$libdir'
7770
      hardcode_minus_L=yes
7771
      allow_undefined_flag=unsupported
7772
      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'
7773
      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7774
      ;;
7775
 
7776
    osf3*)
7777
      if test "$GCC" = yes; then
7778
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7779
        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'
7780
      else
7781
        allow_undefined_flag=' -expect_unresolved \*'
7782
        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'
7783
      fi
7784
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7785
      hardcode_libdir_separator=:
7786
      ;;
7787
 
7788
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
7789
      if test "$GCC" = yes; then
7790
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7791
        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'
7792
        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7793
      else
7794
        allow_undefined_flag=' -expect_unresolved \*'
7795
        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'
7796
        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7797
        $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'
7798
 
7799
        # Both c and cxx compiler support -rpath directly
7800
        hardcode_libdir_flag_spec='-rpath $libdir'
7801
      fi
7802
      hardcode_libdir_separator=:
7803
      ;;
7804
 
7805
    sco3.2v5*)
7806
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7807
      hardcode_shlibpath_var=no
7808
      export_dynamic_flag_spec='${wl}-Bexport'
7809
      runpath_var=LD_RUN_PATH
7810
      hardcode_runpath_var=yes
7811
      ;;
7812
 
7813
    solaris*)
7814
      no_undefined_flag=' -z text'
7815
      if test "$GCC" = yes; then
7816
        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7817
        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7818
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7819
      else
7820
        archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7821
        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7822
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7823
      fi
7824
      hardcode_libdir_flag_spec='-R$libdir'
7825
      hardcode_shlibpath_var=no
7826
      case $host_os in
7827
      solaris2.[0-5] | solaris2.[0-5].*) ;;
7828
      *) # Supported since Solaris 2.6 (maybe 2.5.1?)
7829
        whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7830
      esac
7831
      link_all_deplibs=yes
7832
      ;;
7833
 
7834
    sunos4*)
7835
      if test "x$host_vendor" = xsequent; then
7836
        # Use $CC to link under sequent, because it throws in some extra .o
7837
        # files that make .init and .fini sections work.
7838
        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7839
      else
7840
        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7841
      fi
7842
      hardcode_libdir_flag_spec='-L$libdir'
7843
      hardcode_direct=yes
7844
      hardcode_minus_L=yes
7845
      hardcode_shlibpath_var=no
7846
      ;;
7847
 
7848
    sysv4)
7849
      case $host_vendor in
7850
        sni)
7851
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7852
          hardcode_direct=yes # is this really true???
7853
        ;;
7854
        siemens)
7855
          ## LD is ld it makes a PLAMLIB
7856
          ## CC just makes a GrossModule.
7857
          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7858
          reload_cmds='$CC -r -o $output$reload_objs'
7859
          hardcode_direct=no
7860
        ;;
7861
        motorola)
7862
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7863
          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7864
        ;;
7865
      esac
7866
      runpath_var='LD_RUN_PATH'
7867
      hardcode_shlibpath_var=no
7868
      ;;
7869
 
7870
    sysv4.3*)
7871
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7872
      hardcode_shlibpath_var=no
7873
      export_dynamic_flag_spec='-Bexport'
7874
      ;;
7875
 
7876
    sysv4*MP*)
7877
      if test -d /usr/nec; then
7878
        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7879
        hardcode_shlibpath_var=no
7880
        runpath_var=LD_RUN_PATH
7881
        hardcode_runpath_var=yes
7882
        ld_shlibs=yes
7883
      fi
7884
      ;;
7885
 
7886
    sysv4.2uw2*)
7887
      archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7888
      hardcode_direct=yes
7889
      hardcode_minus_L=no
7890
      hardcode_shlibpath_var=no
7891
      hardcode_runpath_var=yes
7892
      runpath_var=LD_RUN_PATH
7893
      ;;
7894
 
7895
   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
7896
      no_undefined_flag='${wl}-z ${wl}text'
7897
      if test "$GCC" = yes; then
7898
        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7899
      else
7900
        archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7901
      fi
7902
      runpath_var='LD_RUN_PATH'
7903
      hardcode_shlibpath_var=no
7904
      ;;
7905
 
7906
    sysv5*)
7907
      no_undefined_flag=' -z text'
7908
      # $CC -shared without GNU ld will not create a library from C++
7909
      # object files and a static libstdc++, better avoid it by now
7910
      archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7911
      archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7912
                $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7913
      hardcode_libdir_flag_spec=
7914
      hardcode_shlibpath_var=no
7915
      runpath_var='LD_RUN_PATH'
7916
      ;;
7917
 
7918
    uts4*)
7919
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7920
      hardcode_libdir_flag_spec='-L$libdir'
7921
      hardcode_shlibpath_var=no
7922
      ;;
7923
 
7924
    *)
7925
      ld_shlibs=no
7926
      ;;
7927
    esac
7928
  fi
7929
 
7930
echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7931
echo "${ECHO_T}$ld_shlibs" >&6
7932
test "$ld_shlibs" = no && can_build_shared=no
7933
 
7934
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7935
if test "$GCC" = yes; then
7936
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7937
fi
7938
 
7939
#
7940
# Do we need to explicitly link libc?
7941
#
7942
case "x$archive_cmds_need_lc" in
7943
x|xyes)
7944
  # Assume -lc should be added
7945
  archive_cmds_need_lc=yes
7946
 
7947
  if test "$enable_shared" = yes && test "$GCC" = yes; then
7948
    case $archive_cmds in
7949
    *'~'*)
7950
      # FIXME: we may have to deal with multi-command sequences.
7951
      ;;
7952
    '$CC '*)
7953
      # Test whether the compiler implicitly links with -lc since on some
7954
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
7955
      # to ld, don't add -lc before -lgcc.
7956
      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7957
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7958
      $rm conftest*
7959
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7960
 
7961
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7962
  (eval $ac_compile) 2>&5
7963
  ac_status=$?
7964
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7965
  (exit $ac_status); } 2>conftest.err; then
7966
        soname=conftest
7967
        lib=conftest
7968
        libobjs=conftest.$ac_objext
7969
        deplibs=
7970
        wl=$lt_prog_compiler_wl
7971
        compiler_flags=-v
7972
        linker_flags=-v
7973
        verstring=
7974
        output_objdir=.
7975
        libname=conftest
7976
        lt_save_allow_undefined_flag=$allow_undefined_flag
7977
        allow_undefined_flag=
7978
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7979
  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7980
  ac_status=$?
7981
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7982
  (exit $ac_status); }
7983
        then
7984
          archive_cmds_need_lc=no
7985
        else
7986
          archive_cmds_need_lc=yes
7987
        fi
7988
        allow_undefined_flag=$lt_save_allow_undefined_flag
7989
      else
7990
        cat conftest.err 1>&5
7991
      fi
7992
      $rm conftest*
7993
      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7994
echo "${ECHO_T}$archive_cmds_need_lc" >&6
7995
      ;;
7996
    esac
7997
  fi
7998
  ;;
7999
esac
8000
 
8001
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8002
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8003
hardcode_action=
8004
if test -n "$hardcode_libdir_flag_spec" || \
8005
   test -n "$runpath_var " || \
8006
   test "X$hardcode_automatic"="Xyes" ; then
8007
 
8008
  # We can hardcode non-existant directories.
8009
  if test "$hardcode_direct" != no &&
8010
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
8011
     # have to relink, otherwise we might link with an installed library
8012
     # when we should be linking with a yet-to-be-installed one
8013
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8014
     test "$hardcode_minus_L" != no; then
8015
    # Linking always hardcodes the temporary library directory.
8016
    hardcode_action=relink
8017
  else
8018
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
8019
    hardcode_action=immediate
8020
  fi
8021
else
8022
  # We cannot hardcode anything, or else we can only hardcode existing
8023
  # directories.
8024
  hardcode_action=unsupported
8025
fi
8026
echo "$as_me:$LINENO: result: $hardcode_action" >&5
8027
echo "${ECHO_T}$hardcode_action" >&6
8028
 
8029
if test "$hardcode_action" = relink; then
8030
  # Fast installation is not supported
8031
  enable_fast_install=no
8032
elif test "$shlibpath_overrides_runpath" = yes ||
8033
     test "$enable_shared" = no; then
8034
  # Fast installation is not necessary
8035
  enable_fast_install=needless
8036
fi
8037
 
8038
striplib=
8039
old_striplib=
8040
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8041
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
8042
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8043
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8044
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8045
  echo "$as_me:$LINENO: result: yes" >&5
8046
echo "${ECHO_T}yes" >&6
8047
else
8048
# FIXME - insert some real tests, host_os isn't really good enough
8049
  case $host_os in
8050
   darwin*)
8051
       if test -n "$STRIP" ; then
8052
         striplib="$STRIP -x"
8053
         echo "$as_me:$LINENO: result: yes" >&5
8054
echo "${ECHO_T}yes" >&6
8055
       else
8056
  echo "$as_me:$LINENO: result: no" >&5
8057
echo "${ECHO_T}no" >&6
8058
fi
8059
       ;;
8060
   *)
8061
  echo "$as_me:$LINENO: result: no" >&5
8062
echo "${ECHO_T}no" >&6
8063
    ;;
8064
  esac
8065
fi
8066
 
8067
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8068
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
8069
library_names_spec=
8070
libname_spec='lib$name'
8071
soname_spec=
8072
shrext=".so"
8073
postinstall_cmds=
8074
postuninstall_cmds=
8075
finish_cmds=
8076
finish_eval=
8077
shlibpath_var=
8078
shlibpath_overrides_runpath=unknown
8079
version_type=none
8080
dynamic_linker="$host_os ld.so"
8081
sys_lib_dlsearch_path_spec="/lib /usr/lib"
8082
if test "$GCC" = yes; then
8083
  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8084
  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8085
    # if the path contains ";" then we assume it to be the separator
8086
    # otherwise default to the standard path separator (i.e. ":") - it is
8087
    # assumed that no part of a normal pathname contains ";" but that should
8088
    # okay in the real world where ";" in dirpaths is itself problematic.
8089
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8090
  else
8091
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8092
  fi
8093
else
8094
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8095
fi
8096
need_lib_prefix=unknown
8097
hardcode_into_libs=no
8098
 
8099
# when you set need_version to no, make sure it does not cause -set_version
8100
# flags to be left without arguments
8101
need_version=unknown
8102
 
8103
case $host_os in
8104
aix3*)
8105
  version_type=linux
8106
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8107
  shlibpath_var=LIBPATH
8108
 
8109
  # AIX 3 has no versioning support, so we append a major version to the name.
8110
  soname_spec='${libname}${release}${shared_ext}$major'
8111
  ;;
8112
 
8113
aix4* | aix5*)
8114
  version_type=linux
8115
  need_lib_prefix=no
8116
  need_version=no
8117
  hardcode_into_libs=yes
8118
  if test "$host_cpu" = ia64; then
8119
    # AIX 5 supports IA64
8120
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8121
    shlibpath_var=LD_LIBRARY_PATH
8122
  else
8123
    # With GCC up to 2.95.x, collect2 would create an import file
8124
    # for dependence libraries.  The import file would start with
8125
    # the line `#! .'.  This would cause the generated library to
8126
    # depend on `.', always an invalid library.  This was fixed in
8127
    # development snapshots of GCC prior to 3.0.
8128
    case $host_os in
8129
      aix4 | aix4.[01] | aix4.[01].*)
8130
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8131
           echo ' yes '
8132
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8133
        :
8134
      else
8135
        can_build_shared=no
8136
      fi
8137
      ;;
8138
    esac
8139
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8140
    # soname into executable. Probably we can add versioning support to
8141
    # collect2, so additional links can be useful in future.
8142
    if test "$aix_use_runtimelinking" = yes; then
8143
      # If using run time linking (on AIX 4.2 or later) use lib.so
8144
      # instead of lib.a to let people know that these are not
8145
      # typical AIX shared libraries.
8146
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8147
    else
8148
      # We preserve .a as extension for shared libraries through AIX4.2
8149
      # and later when we are not doing run time linking.
8150
      library_names_spec='${libname}${release}.a $libname.a'
8151
      soname_spec='${libname}${release}${shared_ext}$major'
8152
    fi
8153
    shlibpath_var=LIBPATH
8154
  fi
8155
  ;;
8156
 
8157
amigaos*)
8158
  library_names_spec='$libname.ixlibrary $libname.a'
8159
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
8160
  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'
8161
  ;;
8162
 
8163
beos*)
8164
  library_names_spec='${libname}${shared_ext}'
8165
  dynamic_linker="$host_os ld.so"
8166
  shlibpath_var=LIBRARY_PATH
8167
  ;;
8168
 
8169
bsdi4*)
8170
  version_type=linux
8171
  need_version=no
8172
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8173
  soname_spec='${libname}${release}${shared_ext}$major'
8174
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8175
  shlibpath_var=LD_LIBRARY_PATH
8176
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8177
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8178
  # the default ld.so.conf also contains /usr/contrib/lib and
8179
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8180
  # libtool to hard-code these into programs
8181
  ;;
8182
 
8183
cygwin* | mingw* | pw32*)
8184
  version_type=windows
8185
  shrext=".dll"
8186
  need_version=no
8187
  need_lib_prefix=no
8188
 
8189
  case $GCC,$host_os in
8190
  yes,cygwin* | yes,mingw* | yes,pw32*)
8191
    library_names_spec='$libname.dll.a'
8192
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
8193
    postinstall_cmds='base_file=`basename \${file}`~
8194
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8195
      dldir=$destdir/`dirname \$dlpath`~
8196
      test -d \$dldir || mkdir -p \$dldir~
8197
      $install_prog $dir/$dlname \$dldir/$dlname'
8198
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8199
      dlpath=$dir/\$dldll~
8200
       $rm \$dlpath'
8201
    shlibpath_overrides_runpath=yes
8202
 
8203
    case $host_os in
8204
    cygwin*)
8205
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8206
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8207
      sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
8208
      ;;
8209
    mingw*)
8210
      # MinGW DLLs use traditional 'lib' prefix
8211
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8212
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8213
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8214
        # It is most probably a Windows format PATH printed by
8215
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
8216
        # path with ; separators, and with drive letters. We can handle the
8217
        # drive letters (cygwin fileutils understands them), so leave them,
8218
        # especially as we might pass files found there to a mingw objdump,
8219
        # which wouldn't understand a cygwinified path. Ahh.
8220
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8221
      else
8222
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8223
      fi
8224
      ;;
8225
    pw32*)
8226
      # pw32 DLLs use 'pw' prefix rather than 'lib'
8227
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
8228
      ;;
8229
    esac
8230
    ;;
8231
 
8232
  *)
8233
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8234
    ;;
8235
  esac
8236
  dynamic_linker='Win32 ld.exe'
8237
  # FIXME: first we should search . and the directory the executable is in
8238
  shlibpath_var=PATH
8239
  ;;
8240
 
8241
darwin* | rhapsody*)
8242
  dynamic_linker="$host_os dyld"
8243
  version_type=darwin
8244
  need_lib_prefix=no
8245
  need_version=no
8246
  # FIXME: Relying on posixy $() will cause problems for
8247
  #        cross-compilation, but unfortunately the echo tests do not
8248
  #        yet detect zsh echo's removal of \ escapes.
8249
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8250
  soname_spec='${libname}${release}${major}$shared_ext'
8251
  shlibpath_overrides_runpath=yes
8252
  shlibpath_var=DYLD_LIBRARY_PATH
8253
  shrext='$(test .$module = .yes && echo .so || echo .dylib)'
8254
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8255
  if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
8256
  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"`
8257
  fi
8258
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8259
  ;;
8260
 
8261
dgux*)
8262
  version_type=linux
8263
  need_lib_prefix=no
8264
  need_version=no
8265
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8266
  soname_spec='${libname}${release}${shared_ext}$major'
8267
  shlibpath_var=LD_LIBRARY_PATH
8268
  ;;
8269
 
8270
freebsd1*)
8271
  dynamic_linker=no
8272
  ;;
8273
 
8274
freebsd*)
8275
  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
8276
  version_type=freebsd-$objformat
8277
  case $version_type in
8278
    freebsd-elf*)
8279
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8280
      need_version=no
8281
      need_lib_prefix=no
8282
      ;;
8283
    freebsd-*)
8284
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8285
      need_version=yes
8286
      ;;
8287
  esac
8288
  shlibpath_var=LD_LIBRARY_PATH
8289
  case $host_os in
8290
  freebsd2*)
8291
    shlibpath_overrides_runpath=yes
8292
    ;;
8293
  freebsd3.01* | freebsdelf3.01*)
8294
    shlibpath_overrides_runpath=yes
8295
    hardcode_into_libs=yes
8296
    ;;
8297
  *) # from 3.2 on
8298
    shlibpath_overrides_runpath=no
8299
    hardcode_into_libs=yes
8300
    ;;
8301
  esac
8302
  ;;
8303
 
8304
gnu*)
8305
  version_type=linux
8306
  need_lib_prefix=no
8307
  need_version=no
8308
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8309
  soname_spec='${libname}${release}${shared_ext}$major'
8310
  shlibpath_var=LD_LIBRARY_PATH
8311
  hardcode_into_libs=yes
8312
  ;;
8313
 
8314
hpux9* | hpux10* | hpux11*)
8315
  # Give a soname corresponding to the major version so that dld.sl refuses to
8316
  # link against other versions.
8317
  version_type=sunos
8318
  need_lib_prefix=no
8319
  need_version=no
8320
  case "$host_cpu" in
8321
  ia64*)
8322
    shrext='.so'
8323
    hardcode_into_libs=yes
8324
    dynamic_linker="$host_os dld.so"
8325
    shlibpath_var=LD_LIBRARY_PATH
8326
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8327
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8328
    soname_spec='${libname}${release}${shared_ext}$major'
8329
    if test "X$HPUX_IA64_MODE" = X32; then
8330
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8331
    else
8332
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8333
    fi
8334
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8335
    ;;
8336
   hppa*64*)
8337
     shrext='.sl'
8338
     hardcode_into_libs=yes
8339
     dynamic_linker="$host_os dld.sl"
8340
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8341
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8342
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8343
     soname_spec='${libname}${release}${shared_ext}$major'
8344
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8345
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8346
     ;;
8347
   *)
8348
    shrext='.sl'
8349
    dynamic_linker="$host_os dld.sl"
8350
    shlibpath_var=SHLIB_PATH
8351
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8352
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8353
    soname_spec='${libname}${release}${shared_ext}$major'
8354
    ;;
8355
  esac
8356
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
8357
  postinstall_cmds='chmod 555 $lib'
8358
  ;;
8359
 
8360
irix5* | irix6* | nonstopux*)
8361
  case $host_os in
8362
    nonstopux*) version_type=nonstopux ;;
8363
    *)
8364
        if test "$lt_cv_prog_gnu_ld" = yes; then
8365
                version_type=linux
8366
        else
8367
                version_type=irix
8368
        fi ;;
8369
  esac
8370
  need_lib_prefix=no
8371
  need_version=no
8372
  soname_spec='${libname}${release}${shared_ext}$major'
8373
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8374
  case $host_os in
8375
  irix5* | nonstopux*)
8376
    libsuff= shlibsuff=
8377
    ;;
8378
  *)
8379
    case $LD in # libtool.m4 will add one of these switches to LD
8380
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8381
      libsuff= shlibsuff= libmagic=32-bit;;
8382
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8383
      libsuff=32 shlibsuff=N32 libmagic=N32;;
8384
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8385
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
8386
    *) libsuff= shlibsuff= libmagic=never-match;;
8387
    esac
8388
    ;;
8389
  esac
8390
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8391
  shlibpath_overrides_runpath=no
8392
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8393
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8394
  hardcode_into_libs=yes
8395
  ;;
8396
 
8397
# No shared lib support for Linux oldld, aout, or coff.
8398
linux*oldld* | linux*aout* | linux*coff*)
8399
  dynamic_linker=no
8400
  ;;
8401
 
8402
# This must be Linux ELF.
8403
linux*)
8404
  version_type=linux
8405
  need_lib_prefix=no
8406
  need_version=no
8407
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8408
  soname_spec='${libname}${release}${shared_ext}$major'
8409
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8410
  shlibpath_var=LD_LIBRARY_PATH
8411
  shlibpath_overrides_runpath=no
8412
  # This implies no fast_install, which is unacceptable.
8413
  # Some rework will be needed to allow for fast_install
8414
  # before this can be enabled.
8415
  hardcode_into_libs=yes
8416
 
8417
  # We used to test for /lib/ld.so.1 and disable shared libraries on
8418
  # powerpc, because MkLinux only supported shared libraries with the
8419
  # GNU dynamic linker.  Since this was broken with cross compilers,
8420
  # most powerpc-linux boxes support dynamic linking these days and
8421
  # people can always --disable-shared, the test was removed, and we
8422
  # assume the GNU/Linux dynamic linker is in use.
8423
  dynamic_linker='GNU/Linux ld.so'
8424
  ;;
8425
 
8426
netbsd*)
8427
  version_type=sunos
8428
  need_lib_prefix=no
8429
  need_version=no
8430
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8431
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8432
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8433
    dynamic_linker='NetBSD (a.out) ld.so'
8434
  else
8435
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
8436
    soname_spec='${libname}${release}${shared_ext}$major'
8437
    dynamic_linker='NetBSD ld.elf_so'
8438
  fi
8439
  shlibpath_var=LD_LIBRARY_PATH
8440
  shlibpath_overrides_runpath=yes
8441
  hardcode_into_libs=yes
8442
  ;;
8443
 
8444
newsos6)
8445
  version_type=linux
8446
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8447
  shlibpath_var=LD_LIBRARY_PATH
8448
  shlibpath_overrides_runpath=yes
8449
  ;;
8450
 
8451
nto-qnx)
8452
  version_type=linux
8453
  need_lib_prefix=no
8454
  need_version=no
8455
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8456
  soname_spec='${libname}${release}${shared_ext}$major'
8457
  shlibpath_var=LD_LIBRARY_PATH
8458
  shlibpath_overrides_runpath=yes
8459
  ;;
8460
 
8461
openbsd*)
8462
  version_type=sunos
8463
  need_lib_prefix=no
8464
  need_version=no
8465
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8466
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8467
  shlibpath_var=LD_LIBRARY_PATH
8468
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8469
    case $host_os in
8470
      openbsd2.[89] | openbsd2.[89].*)
8471
        shlibpath_overrides_runpath=no
8472
        ;;
8473
      *)
8474
        shlibpath_overrides_runpath=yes
8475
        ;;
8476
      esac
8477
  else
8478
    shlibpath_overrides_runpath=yes
8479
  fi
8480
  ;;
8481
 
8482
os2*)
8483
  libname_spec='$name'
8484
  shrext=".dll"
8485
  need_lib_prefix=no
8486
  library_names_spec='$libname${shared_ext} $libname.a'
8487
  dynamic_linker='OS/2 ld.exe'
8488
  shlibpath_var=LIBPATH
8489
  ;;
8490
 
8491
osf3* | osf4* | osf5*)
8492
  version_type=osf
8493
  need_lib_prefix=no
8494
  need_version=no
8495
  soname_spec='${libname}${release}${shared_ext}$major'
8496
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8497
  shlibpath_var=LD_LIBRARY_PATH
8498
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8499
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8500
  ;;
8501
 
8502
sco3.2v5*)
8503
  version_type=osf
8504
  soname_spec='${libname}${release}${shared_ext}$major'
8505
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8506
  shlibpath_var=LD_LIBRARY_PATH
8507
  ;;
8508
 
8509
solaris*)
8510
  version_type=linux
8511
  need_lib_prefix=no
8512
  need_version=no
8513
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8514
  soname_spec='${libname}${release}${shared_ext}$major'
8515
  shlibpath_var=LD_LIBRARY_PATH
8516
  shlibpath_overrides_runpath=yes
8517
  hardcode_into_libs=yes
8518
  # ldd complains unless libraries are executable
8519
  postinstall_cmds='chmod +x $lib'
8520
  ;;
8521
 
8522
sunos4*)
8523
  version_type=sunos
8524
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8525
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8526
  shlibpath_var=LD_LIBRARY_PATH
8527
  shlibpath_overrides_runpath=yes
8528
  if test "$with_gnu_ld" = yes; then
8529
    need_lib_prefix=no
8530
  fi
8531
  need_version=yes
8532
  ;;
8533
 
8534
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8535
  version_type=linux
8536
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8537
  soname_spec='${libname}${release}${shared_ext}$major'
8538
  shlibpath_var=LD_LIBRARY_PATH
8539
  case $host_vendor in
8540
    sni)
8541
      shlibpath_overrides_runpath=no
8542
      need_lib_prefix=no
8543
      export_dynamic_flag_spec='${wl}-Blargedynsym'
8544
      runpath_var=LD_RUN_PATH
8545
      ;;
8546
    siemens)
8547
      need_lib_prefix=no
8548
      ;;
8549
    motorola)
8550
      need_lib_prefix=no
8551
      need_version=no
8552
      shlibpath_overrides_runpath=no
8553
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8554
      ;;
8555
  esac
8556
  ;;
8557
 
8558
sysv4*MP*)
8559
  if test -d /usr/nec ;then
8560
    version_type=linux
8561
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8562
    soname_spec='$libname${shared_ext}.$major'
8563
    shlibpath_var=LD_LIBRARY_PATH
8564
  fi
8565
  ;;
8566
 
8567
uts4*)
8568
  version_type=linux
8569
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8570
  soname_spec='${libname}${release}${shared_ext}$major'
8571
  shlibpath_var=LD_LIBRARY_PATH
8572
  ;;
8573
 
8574
*)
8575
  dynamic_linker=no
8576
  ;;
8577
esac
8578
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8579
echo "${ECHO_T}$dynamic_linker" >&6
8580
test "$dynamic_linker" = no && can_build_shared=no
8581
 
8582
if test "x$enable_dlopen" != xyes; then
8583
  enable_dlopen=unknown
8584
  enable_dlopen_self=unknown
8585
  enable_dlopen_self_static=unknown
8586
else
8587
  lt_cv_dlopen=no
8588
  lt_cv_dlopen_libs=
8589
 
8590
  case $host_os in
8591
  beos*)
8592
    lt_cv_dlopen="load_add_on"
8593
    lt_cv_dlopen_libs=
8594
    lt_cv_dlopen_self=yes
8595
    ;;
8596
 
8597
  mingw* | pw32*)
8598
    lt_cv_dlopen="LoadLibrary"
8599
    lt_cv_dlopen_libs=
8600
   ;;
8601
 
8602
  cygwin*)
8603
    lt_cv_dlopen="dlopen"
8604
    lt_cv_dlopen_libs=
8605
   ;;
8606
 
8607
  darwin*)
8608
  # if libdl is installed we need to link against it
8609
    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8610
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8611
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8612
  echo $ECHO_N "(cached) $ECHO_C" >&6
8613
else
8614
  ac_check_lib_save_LIBS=$LIBS
8615
LIBS="-ldl  $LIBS"
8616
cat >conftest.$ac_ext <<_ACEOF
8617
/* confdefs.h.  */
8618
_ACEOF
8619
cat confdefs.h >>conftest.$ac_ext
8620
cat >>conftest.$ac_ext <<_ACEOF
8621
/* end confdefs.h.  */
8622
 
8623
/* Override any gcc2 internal prototype to avoid an error.  */
8624
#ifdef __cplusplus
8625
extern "C"
8626
#endif
8627
/* We use char because int might match the return type of a gcc2
8628
   builtin and then its argument prototype would still apply.  */
8629
char dlopen ();
8630
int
8631
main ()
8632
{
8633
dlopen ();
8634
  ;
8635
  return 0;
8636
}
8637
_ACEOF
8638
rm -f conftest.$ac_objext conftest$ac_exeext
8639
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8640
  (eval $ac_link) 2>conftest.er1
8641
  ac_status=$?
8642
  grep -v '^ *+' conftest.er1 >conftest.err
8643
  rm -f conftest.er1
8644
  cat conftest.err >&5
8645
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8646
  (exit $ac_status); } &&
8647
         { ac_try='test -z "$ac_c_werror_flag"
8648
                         || test ! -s conftest.err'
8649
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8650
  (eval $ac_try) 2>&5
8651
  ac_status=$?
8652
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8653
  (exit $ac_status); }; } &&
8654
         { ac_try='test -s conftest$ac_exeext'
8655
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8656
  (eval $ac_try) 2>&5
8657
  ac_status=$?
8658
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8659
  (exit $ac_status); }; }; then
8660
  ac_cv_lib_dl_dlopen=yes
8661
else
8662
  echo "$as_me: failed program was:" >&5
8663
sed 's/^/| /' conftest.$ac_ext >&5
8664
 
8665
ac_cv_lib_dl_dlopen=no
8666
fi
8667
rm -f conftest.err conftest.$ac_objext \
8668
      conftest$ac_exeext conftest.$ac_ext
8669
LIBS=$ac_check_lib_save_LIBS
8670
fi
8671
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8672
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8673
if test $ac_cv_lib_dl_dlopen = yes; then
8674
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8675
else
8676
 
8677
    lt_cv_dlopen="dyld"
8678
    lt_cv_dlopen_libs=
8679
    lt_cv_dlopen_self=yes
8680
 
8681
fi
8682
 
8683
   ;;
8684
 
8685
  *)
8686
    echo "$as_me:$LINENO: checking for shl_load" >&5
8687
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8688
if test "${ac_cv_func_shl_load+set}" = set; then
8689
  echo $ECHO_N "(cached) $ECHO_C" >&6
8690
else
8691
  cat >conftest.$ac_ext <<_ACEOF
8692
/* confdefs.h.  */
8693
_ACEOF
8694
cat confdefs.h >>conftest.$ac_ext
8695
cat >>conftest.$ac_ext <<_ACEOF
8696
/* end confdefs.h.  */
8697
/* Define shl_load to an innocuous variant, in case  declares shl_load.
8698
   For example, HP-UX 11i  declares gettimeofday.  */
8699
#define shl_load innocuous_shl_load
8700
 
8701
/* System header to define __stub macros and hopefully few prototypes,
8702
    which can conflict with char shl_load (); below.
8703
    Prefer  to  if __STDC__ is defined, since
8704
     exists even on freestanding compilers.  */
8705
 
8706
#ifdef __STDC__
8707
# include 
8708
#else
8709
# include 
8710
#endif
8711
 
8712
#undef shl_load
8713
 
8714
/* Override any gcc2 internal prototype to avoid an error.  */
8715
#ifdef __cplusplus
8716
extern "C"
8717
{
8718
#endif
8719
/* We use char because int might match the return type of a gcc2
8720
   builtin and then its argument prototype would still apply.  */
8721
char shl_load ();
8722
/* The GNU C library defines this for functions which it implements
8723
    to always fail with ENOSYS.  Some functions are actually named
8724
    something starting with __ and the normal name is an alias.  */
8725
#if defined (__stub_shl_load) || defined (__stub___shl_load)
8726
choke me
8727
#else
8728
char (*f) () = shl_load;
8729
#endif
8730
#ifdef __cplusplus
8731
}
8732
#endif
8733
 
8734
int
8735
main ()
8736
{
8737
return f != shl_load;
8738
  ;
8739
  return 0;
8740
}
8741
_ACEOF
8742
rm -f conftest.$ac_objext conftest$ac_exeext
8743
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8744
  (eval $ac_link) 2>conftest.er1
8745
  ac_status=$?
8746
  grep -v '^ *+' conftest.er1 >conftest.err
8747
  rm -f conftest.er1
8748
  cat conftest.err >&5
8749
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8750
  (exit $ac_status); } &&
8751
         { ac_try='test -z "$ac_c_werror_flag"
8752
                         || test ! -s conftest.err'
8753
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8754
  (eval $ac_try) 2>&5
8755
  ac_status=$?
8756
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8757
  (exit $ac_status); }; } &&
8758
         { ac_try='test -s conftest$ac_exeext'
8759
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8760
  (eval $ac_try) 2>&5
8761
  ac_status=$?
8762
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8763
  (exit $ac_status); }; }; then
8764
  ac_cv_func_shl_load=yes
8765
else
8766
  echo "$as_me: failed program was:" >&5
8767
sed 's/^/| /' conftest.$ac_ext >&5
8768
 
8769
ac_cv_func_shl_load=no
8770
fi
8771
rm -f conftest.err conftest.$ac_objext \
8772
      conftest$ac_exeext conftest.$ac_ext
8773
fi
8774
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8775
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8776
if test $ac_cv_func_shl_load = yes; then
8777
  lt_cv_dlopen="shl_load"
8778
else
8779
  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8780
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8781
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8782
  echo $ECHO_N "(cached) $ECHO_C" >&6
8783
else
8784
  ac_check_lib_save_LIBS=$LIBS
8785
LIBS="-ldld  $LIBS"
8786
cat >conftest.$ac_ext <<_ACEOF
8787
/* confdefs.h.  */
8788
_ACEOF
8789
cat confdefs.h >>conftest.$ac_ext
8790
cat >>conftest.$ac_ext <<_ACEOF
8791
/* end confdefs.h.  */
8792
 
8793
/* Override any gcc2 internal prototype to avoid an error.  */
8794
#ifdef __cplusplus
8795
extern "C"
8796
#endif
8797
/* We use char because int might match the return type of a gcc2
8798
   builtin and then its argument prototype would still apply.  */
8799
char shl_load ();
8800
int
8801
main ()
8802
{
8803
shl_load ();
8804
  ;
8805
  return 0;
8806
}
8807
_ACEOF
8808
rm -f conftest.$ac_objext conftest$ac_exeext
8809
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8810
  (eval $ac_link) 2>conftest.er1
8811
  ac_status=$?
8812
  grep -v '^ *+' conftest.er1 >conftest.err
8813
  rm -f conftest.er1
8814
  cat conftest.err >&5
8815
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8816
  (exit $ac_status); } &&
8817
         { ac_try='test -z "$ac_c_werror_flag"
8818
                         || test ! -s conftest.err'
8819
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8820
  (eval $ac_try) 2>&5
8821
  ac_status=$?
8822
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8823
  (exit $ac_status); }; } &&
8824
         { ac_try='test -s conftest$ac_exeext'
8825
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8826
  (eval $ac_try) 2>&5
8827
  ac_status=$?
8828
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8829
  (exit $ac_status); }; }; then
8830
  ac_cv_lib_dld_shl_load=yes
8831
else
8832
  echo "$as_me: failed program was:" >&5
8833
sed 's/^/| /' conftest.$ac_ext >&5
8834
 
8835
ac_cv_lib_dld_shl_load=no
8836
fi
8837
rm -f conftest.err conftest.$ac_objext \
8838
      conftest$ac_exeext conftest.$ac_ext
8839
LIBS=$ac_check_lib_save_LIBS
8840
fi
8841
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8842
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8843
if test $ac_cv_lib_dld_shl_load = yes; then
8844
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8845
else
8846
  echo "$as_me:$LINENO: checking for dlopen" >&5
8847
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8848
if test "${ac_cv_func_dlopen+set}" = set; then
8849
  echo $ECHO_N "(cached) $ECHO_C" >&6
8850
else
8851
  cat >conftest.$ac_ext <<_ACEOF
8852
/* confdefs.h.  */
8853
_ACEOF
8854
cat confdefs.h >>conftest.$ac_ext
8855
cat >>conftest.$ac_ext <<_ACEOF
8856
/* end confdefs.h.  */
8857
/* Define dlopen to an innocuous variant, in case  declares dlopen.
8858
   For example, HP-UX 11i  declares gettimeofday.  */
8859
#define dlopen innocuous_dlopen
8860
 
8861
/* System header to define __stub macros and hopefully few prototypes,
8862
    which can conflict with char dlopen (); below.
8863
    Prefer  to  if __STDC__ is defined, since
8864
     exists even on freestanding compilers.  */
8865
 
8866
#ifdef __STDC__
8867
# include 
8868
#else
8869
# include 
8870
#endif
8871
 
8872
#undef dlopen
8873
 
8874
/* Override any gcc2 internal prototype to avoid an error.  */
8875
#ifdef __cplusplus
8876
extern "C"
8877
{
8878
#endif
8879
/* We use char because int might match the return type of a gcc2
8880
   builtin and then its argument prototype would still apply.  */
8881
char dlopen ();
8882
/* The GNU C library defines this for functions which it implements
8883
    to always fail with ENOSYS.  Some functions are actually named
8884
    something starting with __ and the normal name is an alias.  */
8885
#if defined (__stub_dlopen) || defined (__stub___dlopen)
8886
choke me
8887
#else
8888
char (*f) () = dlopen;
8889
#endif
8890
#ifdef __cplusplus
8891
}
8892
#endif
8893
 
8894
int
8895
main ()
8896
{
8897
return f != dlopen;
8898
  ;
8899
  return 0;
8900
}
8901
_ACEOF
8902
rm -f conftest.$ac_objext conftest$ac_exeext
8903
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8904
  (eval $ac_link) 2>conftest.er1
8905
  ac_status=$?
8906
  grep -v '^ *+' conftest.er1 >conftest.err
8907
  rm -f conftest.er1
8908
  cat conftest.err >&5
8909
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8910
  (exit $ac_status); } &&
8911
         { ac_try='test -z "$ac_c_werror_flag"
8912
                         || test ! -s conftest.err'
8913
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8914
  (eval $ac_try) 2>&5
8915
  ac_status=$?
8916
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8917
  (exit $ac_status); }; } &&
8918
         { ac_try='test -s conftest$ac_exeext'
8919
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8920
  (eval $ac_try) 2>&5
8921
  ac_status=$?
8922
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8923
  (exit $ac_status); }; }; then
8924
  ac_cv_func_dlopen=yes
8925
else
8926
  echo "$as_me: failed program was:" >&5
8927
sed 's/^/| /' conftest.$ac_ext >&5
8928
 
8929
ac_cv_func_dlopen=no
8930
fi
8931
rm -f conftest.err conftest.$ac_objext \
8932
      conftest$ac_exeext conftest.$ac_ext
8933
fi
8934
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8935
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8936
if test $ac_cv_func_dlopen = yes; then
8937
  lt_cv_dlopen="dlopen"
8938
else
8939
  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8940
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8941
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8942
  echo $ECHO_N "(cached) $ECHO_C" >&6
8943
else
8944
  ac_check_lib_save_LIBS=$LIBS
8945
LIBS="-ldl  $LIBS"
8946
cat >conftest.$ac_ext <<_ACEOF
8947
/* confdefs.h.  */
8948
_ACEOF
8949
cat confdefs.h >>conftest.$ac_ext
8950
cat >>conftest.$ac_ext <<_ACEOF
8951
/* end confdefs.h.  */
8952
 
8953
/* Override any gcc2 internal prototype to avoid an error.  */
8954
#ifdef __cplusplus
8955
extern "C"
8956
#endif
8957
/* We use char because int might match the return type of a gcc2
8958
   builtin and then its argument prototype would still apply.  */
8959
char dlopen ();
8960
int
8961
main ()
8962
{
8963
dlopen ();
8964
  ;
8965
  return 0;
8966
}
8967
_ACEOF
8968
rm -f conftest.$ac_objext conftest$ac_exeext
8969
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8970
  (eval $ac_link) 2>conftest.er1
8971
  ac_status=$?
8972
  grep -v '^ *+' conftest.er1 >conftest.err
8973
  rm -f conftest.er1
8974
  cat conftest.err >&5
8975
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8976
  (exit $ac_status); } &&
8977
         { ac_try='test -z "$ac_c_werror_flag"
8978
                         || test ! -s conftest.err'
8979
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8980
  (eval $ac_try) 2>&5
8981
  ac_status=$?
8982
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8983
  (exit $ac_status); }; } &&
8984
         { ac_try='test -s conftest$ac_exeext'
8985
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8986
  (eval $ac_try) 2>&5
8987
  ac_status=$?
8988
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8989
  (exit $ac_status); }; }; then
8990
  ac_cv_lib_dl_dlopen=yes
8991
else
8992
  echo "$as_me: failed program was:" >&5
8993
sed 's/^/| /' conftest.$ac_ext >&5
8994
 
8995
ac_cv_lib_dl_dlopen=no
8996
fi
8997
rm -f conftest.err conftest.$ac_objext \
8998
      conftest$ac_exeext conftest.$ac_ext
8999
LIBS=$ac_check_lib_save_LIBS
9000
fi
9001
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9002
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9003
if test $ac_cv_lib_dl_dlopen = yes; then
9004
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9005
else
9006
  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9007
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
9008
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9009
  echo $ECHO_N "(cached) $ECHO_C" >&6
9010
else
9011
  ac_check_lib_save_LIBS=$LIBS
9012
LIBS="-lsvld  $LIBS"
9013
cat >conftest.$ac_ext <<_ACEOF
9014
/* confdefs.h.  */
9015
_ACEOF
9016
cat confdefs.h >>conftest.$ac_ext
9017
cat >>conftest.$ac_ext <<_ACEOF
9018
/* end confdefs.h.  */
9019
 
9020
/* Override any gcc2 internal prototype to avoid an error.  */
9021
#ifdef __cplusplus
9022
extern "C"
9023
#endif
9024
/* We use char because int might match the return type of a gcc2
9025
   builtin and then its argument prototype would still apply.  */
9026
char dlopen ();
9027
int
9028
main ()
9029
{
9030
dlopen ();
9031
  ;
9032
  return 0;
9033
}
9034
_ACEOF
9035
rm -f conftest.$ac_objext conftest$ac_exeext
9036
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9037
  (eval $ac_link) 2>conftest.er1
9038
  ac_status=$?
9039
  grep -v '^ *+' conftest.er1 >conftest.err
9040
  rm -f conftest.er1
9041
  cat conftest.err >&5
9042
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9043
  (exit $ac_status); } &&
9044
         { ac_try='test -z "$ac_c_werror_flag"
9045
                         || test ! -s conftest.err'
9046
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9047
  (eval $ac_try) 2>&5
9048
  ac_status=$?
9049
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9050
  (exit $ac_status); }; } &&
9051
         { ac_try='test -s conftest$ac_exeext'
9052
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9053
  (eval $ac_try) 2>&5
9054
  ac_status=$?
9055
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9056
  (exit $ac_status); }; }; then
9057
  ac_cv_lib_svld_dlopen=yes
9058
else
9059
  echo "$as_me: failed program was:" >&5
9060
sed 's/^/| /' conftest.$ac_ext >&5
9061
 
9062
ac_cv_lib_svld_dlopen=no
9063
fi
9064
rm -f conftest.err conftest.$ac_objext \
9065
      conftest$ac_exeext conftest.$ac_ext
9066
LIBS=$ac_check_lib_save_LIBS
9067
fi
9068
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9069
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
9070
if test $ac_cv_lib_svld_dlopen = yes; then
9071
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9072
else
9073
  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9074
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
9075
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9076
  echo $ECHO_N "(cached) $ECHO_C" >&6
9077
else
9078
  ac_check_lib_save_LIBS=$LIBS
9079
LIBS="-ldld  $LIBS"
9080
cat >conftest.$ac_ext <<_ACEOF
9081
/* confdefs.h.  */
9082
_ACEOF
9083
cat confdefs.h >>conftest.$ac_ext
9084
cat >>conftest.$ac_ext <<_ACEOF
9085
/* end confdefs.h.  */
9086
 
9087
/* Override any gcc2 internal prototype to avoid an error.  */
9088
#ifdef __cplusplus
9089
extern "C"
9090
#endif
9091
/* We use char because int might match the return type of a gcc2
9092
   builtin and then its argument prototype would still apply.  */
9093
char dld_link ();
9094
int
9095
main ()
9096
{
9097
dld_link ();
9098
  ;
9099
  return 0;
9100
}
9101
_ACEOF
9102
rm -f conftest.$ac_objext conftest$ac_exeext
9103
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9104
  (eval $ac_link) 2>conftest.er1
9105
  ac_status=$?
9106
  grep -v '^ *+' conftest.er1 >conftest.err
9107
  rm -f conftest.er1
9108
  cat conftest.err >&5
9109
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9110
  (exit $ac_status); } &&
9111
         { ac_try='test -z "$ac_c_werror_flag"
9112
                         || test ! -s conftest.err'
9113
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9114
  (eval $ac_try) 2>&5
9115
  ac_status=$?
9116
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9117
  (exit $ac_status); }; } &&
9118
         { ac_try='test -s conftest$ac_exeext'
9119
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9120
  (eval $ac_try) 2>&5
9121
  ac_status=$?
9122
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9123
  (exit $ac_status); }; }; then
9124
  ac_cv_lib_dld_dld_link=yes
9125
else
9126
  echo "$as_me: failed program was:" >&5
9127
sed 's/^/| /' conftest.$ac_ext >&5
9128
 
9129
ac_cv_lib_dld_dld_link=no
9130
fi
9131
rm -f conftest.err conftest.$ac_objext \
9132
      conftest$ac_exeext conftest.$ac_ext
9133
LIBS=$ac_check_lib_save_LIBS
9134
fi
9135
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9136
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
9137
if test $ac_cv_lib_dld_dld_link = yes; then
9138
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9139
fi
9140
 
9141
 
9142
fi
9143
 
9144
 
9145
fi
9146
 
9147
 
9148
fi
9149
 
9150
 
9151
fi
9152
 
9153
 
9154
fi
9155
 
9156
    ;;
9157
  esac
9158
 
9159
  if test "x$lt_cv_dlopen" != xno; then
9160
    enable_dlopen=yes
9161
  else
9162
    enable_dlopen=no
9163
  fi
9164
 
9165
  case $lt_cv_dlopen in
9166
  dlopen)
9167
    save_CPPFLAGS="$CPPFLAGS"
9168
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9169
 
9170
    save_LDFLAGS="$LDFLAGS"
9171
    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9172
 
9173
    save_LIBS="$LIBS"
9174
    LIBS="$lt_cv_dlopen_libs $LIBS"
9175
 
9176
    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9177
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
9178
if test "${lt_cv_dlopen_self+set}" = set; then
9179
  echo $ECHO_N "(cached) $ECHO_C" >&6
9180
else
9181
          if test "$cross_compiling" = yes; then :
9182
  lt_cv_dlopen_self=cross
9183
else
9184
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9185
  lt_status=$lt_dlunknown
9186
  cat > conftest.$ac_ext <
9187
#line 9187 "configure"
9188
#include "confdefs.h"
9189
 
9190
#if HAVE_DLFCN_H
9191
#include 
9192
#endif
9193
 
9194
#include 
9195
 
9196
#ifdef RTLD_GLOBAL
9197
#  define LT_DLGLOBAL           RTLD_GLOBAL
9198
#else
9199
#  ifdef DL_GLOBAL
9200
#    define LT_DLGLOBAL         DL_GLOBAL
9201
#  else
9202
#    define LT_DLGLOBAL         0
9203
#  endif
9204
#endif
9205
 
9206
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9207
   find out it does not work in some platform. */
9208
#ifndef LT_DLLAZY_OR_NOW
9209
#  ifdef RTLD_LAZY
9210
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
9211
#  else
9212
#    ifdef DL_LAZY
9213
#      define LT_DLLAZY_OR_NOW          DL_LAZY
9214
#    else
9215
#      ifdef RTLD_NOW
9216
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
9217
#      else
9218
#        ifdef DL_NOW
9219
#          define LT_DLLAZY_OR_NOW      DL_NOW
9220
#        else
9221
#          define LT_DLLAZY_OR_NOW      0
9222
#        endif
9223
#      endif
9224
#    endif
9225
#  endif
9226
#endif
9227
 
9228
#ifdef __cplusplus
9229
extern "C" void exit (int);
9230
#endif
9231
 
9232
void fnord() { int i=42;}
9233
int main ()
9234
{
9235
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9236
  int status = $lt_dlunknown;
9237
 
9238
  if (self)
9239
    {
9240
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9241
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9242
      /* dlclose (self); */
9243
    }
9244
 
9245
    exit (status);
9246
}
9247
EOF
9248
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9249
  (eval $ac_link) 2>&5
9250
  ac_status=$?
9251
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9252
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9253
    (./conftest; exit; ) 2>/dev/null
9254
    lt_status=$?
9255
    case x$lt_status in
9256
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9257
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9258
      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
9259
    esac
9260
  else :
9261
    # compilation failed
9262
    lt_cv_dlopen_self=no
9263
  fi
9264
fi
9265
rm -fr conftest*
9266
 
9267
 
9268
fi
9269
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9270
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
9271
 
9272
    if test "x$lt_cv_dlopen_self" = xyes; then
9273
      LDFLAGS="$LDFLAGS $link_static_flag"
9274
      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9275
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
9276
if test "${lt_cv_dlopen_self_static+set}" = set; then
9277
  echo $ECHO_N "(cached) $ECHO_C" >&6
9278
else
9279
          if test "$cross_compiling" = yes; then :
9280
  lt_cv_dlopen_self_static=cross
9281
else
9282
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9283
  lt_status=$lt_dlunknown
9284
  cat > conftest.$ac_ext <
9285
#line 9285 "configure"
9286
#include "confdefs.h"
9287
 
9288
#if HAVE_DLFCN_H
9289
#include 
9290
#endif
9291
 
9292
#include 
9293
 
9294
#ifdef RTLD_GLOBAL
9295
#  define LT_DLGLOBAL           RTLD_GLOBAL
9296
#else
9297
#  ifdef DL_GLOBAL
9298
#    define LT_DLGLOBAL         DL_GLOBAL
9299
#  else
9300
#    define LT_DLGLOBAL         0
9301
#  endif
9302
#endif
9303
 
9304
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9305
   find out it does not work in some platform. */
9306
#ifndef LT_DLLAZY_OR_NOW
9307
#  ifdef RTLD_LAZY
9308
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
9309
#  else
9310
#    ifdef DL_LAZY
9311
#      define LT_DLLAZY_OR_NOW          DL_LAZY
9312
#    else
9313
#      ifdef RTLD_NOW
9314
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
9315
#      else
9316
#        ifdef DL_NOW
9317
#          define LT_DLLAZY_OR_NOW      DL_NOW
9318
#        else
9319
#          define LT_DLLAZY_OR_NOW      0
9320
#        endif
9321
#      endif
9322
#    endif
9323
#  endif
9324
#endif
9325
 
9326
#ifdef __cplusplus
9327
extern "C" void exit (int);
9328
#endif
9329
 
9330
void fnord() { int i=42;}
9331
int main ()
9332
{
9333
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9334
  int status = $lt_dlunknown;
9335
 
9336
  if (self)
9337
    {
9338
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9339
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9340
      /* dlclose (self); */
9341
    }
9342
 
9343
    exit (status);
9344
}
9345
EOF
9346
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9347
  (eval $ac_link) 2>&5
9348
  ac_status=$?
9349
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9350
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9351
    (./conftest; exit; ) 2>/dev/null
9352
    lt_status=$?
9353
    case x$lt_status in
9354
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9355
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9356
      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
9357
    esac
9358
  else :
9359
    # compilation failed
9360
    lt_cv_dlopen_self_static=no
9361
  fi
9362
fi
9363
rm -fr conftest*
9364
 
9365
 
9366
fi
9367
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9368
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
9369
    fi
9370
 
9371
    CPPFLAGS="$save_CPPFLAGS"
9372
    LDFLAGS="$save_LDFLAGS"
9373
    LIBS="$save_LIBS"
9374
    ;;
9375
  esac
9376
 
9377
  case $lt_cv_dlopen_self in
9378
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9379
  *) enable_dlopen_self=unknown ;;
9380
  esac
9381
 
9382
  case $lt_cv_dlopen_self_static in
9383
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9384
  *) enable_dlopen_self_static=unknown ;;
9385
  esac
9386
fi
9387
 
9388
 
9389
# Report which librarie types wil actually be built
9390
echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9391
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
9392
echo "$as_me:$LINENO: result: $can_build_shared" >&5
9393
echo "${ECHO_T}$can_build_shared" >&6
9394
 
9395
echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9396
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
9397
test "$can_build_shared" = "no" && enable_shared=no
9398
 
9399
# On AIX, shared libraries and static libraries use the same namespace, and
9400
# are all built from PIC.
9401
case "$host_os" in
9402
aix3*)
9403
  test "$enable_shared" = yes && enable_static=no
9404
  if test -n "$RANLIB"; then
9405
    archive_cmds="$archive_cmds~\$RANLIB \$lib"
9406
    postinstall_cmds='$RANLIB $lib'
9407
  fi
9408
  ;;
9409
 
9410
aix4*)
9411
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9412
    test "$enable_shared" = yes && enable_static=no
9413
  fi
9414
  ;;
9415
  darwin* | rhapsody*)
9416
  if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
9417
    archive_cmds_need_lc=no
9418
    case "$host_os" in
9419
    rhapsody* | darwin1.[012])
9420
      allow_undefined_flag='-undefined suppress'
9421
      ;;
9422
    *) # Darwin 1.3 on
9423
      test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
9424
      ;;
9425
    esac
9426
    # FIXME: Relying on posixy $() will cause problems for
9427
    #        cross-compilation, but unfortunately the echo tests do not
9428
    #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
9429
    #          `"' quotes if we put them in here... so don't!
9430
                output_verbose_link_cmd='echo'
9431
    archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
9432
    module_cmds='$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
9433
    # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9434
                  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}'
9435
                  module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag  -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9436
    hardcode_direct=no
9437
    hardcode_automatic=yes
9438
    hardcode_shlibpath_var=unsupported
9439
    whole_archive_flag_spec='-all_load $convenience'
9440
    link_all_deplibs=yes
9441
    fi
9442
    ;;
9443
esac
9444
echo "$as_me:$LINENO: result: $enable_shared" >&5
9445
echo "${ECHO_T}$enable_shared" >&6
9446
 
9447
echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9448
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9449
# Make sure either enable_shared or enable_static is yes.
9450
test "$enable_shared" = yes || enable_static=yes
9451
echo "$as_me:$LINENO: result: $enable_static" >&5
9452
echo "${ECHO_T}$enable_static" >&6
9453
 
9454
# The else clause should only fire when bootstrapping the
9455
# libtool distribution, otherwise you forgot to ship ltmain.sh
9456
# with your package, and you will get complaints that there are
9457
# no rules to generate ltmain.sh.
9458
if test -f "$ltmain"; then
9459
  # See if we are running on zsh, and set the options which allow our commands through
9460
  # without removal of \ escapes.
9461
  if test -n "${ZSH_VERSION+set}" ; then
9462
    setopt NO_GLOB_SUBST
9463
  fi
9464
  # Now quote all the things that may contain metacharacters while being
9465
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
9466
  # variables and quote the copies for generation of the libtool script.
9467
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
9468
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9469
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9470
    deplibs_check_method reload_flag reload_cmds need_locks \
9471
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9472
    lt_cv_sys_global_symbol_to_c_name_address \
9473
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9474
    old_postinstall_cmds old_postuninstall_cmds \
9475
    compiler \
9476
    CC \
9477
    LD \
9478
    lt_prog_compiler_wl \
9479
    lt_prog_compiler_pic \
9480
    lt_prog_compiler_static \
9481
    lt_prog_compiler_no_builtin_flag \
9482
    export_dynamic_flag_spec \
9483
    thread_safe_flag_spec \
9484
    whole_archive_flag_spec \
9485
    enable_shared_with_static_runtimes \
9486
    old_archive_cmds \
9487
    old_archive_from_new_cmds \
9488
    predep_objects \
9489
    postdep_objects \
9490
    predeps \
9491
    postdeps \
9492
    compiler_lib_search_path \
9493
    archive_cmds \
9494
    archive_expsym_cmds \
9495
    postinstall_cmds \
9496
    postuninstall_cmds \
9497
    old_archive_from_expsyms_cmds \
9498
    allow_undefined_flag \
9499
    no_undefined_flag \
9500
    export_symbols_cmds \
9501
    hardcode_libdir_flag_spec \
9502
    hardcode_libdir_flag_spec_ld \
9503
    hardcode_libdir_separator \
9504
    hardcode_automatic \
9505
    module_cmds \
9506
    module_expsym_cmds \
9507
    lt_cv_prog_compiler_c_o \
9508
    exclude_expsyms \
9509
    include_expsyms; do
9510
 
9511
    case $var in
9512
    old_archive_cmds | \
9513
    old_archive_from_new_cmds | \
9514
    archive_cmds | \
9515
    archive_expsym_cmds | \
9516
    module_cmds | \
9517
    module_expsym_cmds | \
9518
    old_archive_from_expsyms_cmds | \
9519
    export_symbols_cmds | \
9520
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
9521
    postinstall_cmds | postuninstall_cmds | \
9522
    old_postinstall_cmds | old_postuninstall_cmds | \
9523
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9524
      # Double-quote double-evaled strings.
9525
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9526
      ;;
9527
    *)
9528
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9529
      ;;
9530
    esac
9531
  done
9532
 
9533
  case $lt_echo in
9534
  *'\$0 --fallback-echo"')
9535
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9536
    ;;
9537
  esac
9538
 
9539
cfgfile="${ofile}T"
9540
  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9541
  $rm -f "$cfgfile"
9542
  { echo "$as_me:$LINENO: creating $ofile" >&5
9543
echo "$as_me: creating $ofile" >&6;}
9544
 
9545
  cat <<__EOF__ >> "$cfgfile"
9546
#! $SHELL
9547
 
9548
# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9549
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9550
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
9551
#
9552
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9553
# Free Software Foundation, Inc.
9554
#
9555
# This file is part of GNU Libtool:
9556
# Originally by Gordon Matzigkeit , 1996
9557
#
9558
# This program is free software; you can redistribute it and/or modify
9559
# it under the terms of the GNU General Public License as published by
9560
# the Free Software Foundation; either version 2 of the License, or
9561
# (at your option) any later version.
9562
#
9563
# This program is distributed in the hope that it will be useful, but
9564
# WITHOUT ANY WARRANTY; without even the implied warranty of
9565
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
9566
# General Public License for more details.
9567
#
9568
# You should have received a copy of the GNU General Public License
9569
# along with this program; if not, write to the Free Software
9570
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
9571
#
9572
# As a special exception to the GNU General Public License, if you
9573
# distribute this file as part of a program that contains a
9574
# configuration script generated by Autoconf, you may include it under
9575
# the same distribution terms that you use for the rest of that program.
9576
 
9577
# A sed program that does not truncate output.
9578
SED=$lt_SED
9579
 
9580
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
9581
Xsed="$SED -e s/^X//"
9582
 
9583
# The HP-UX ksh and POSIX shell print the target directory to stdout
9584
# if CDPATH is set.
9585
if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
9586
 
9587
# The names of the tagged configurations supported by this script.
9588
available_tags=
9589
 
9590
# ### BEGIN LIBTOOL CONFIG
9591
 
9592
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9593
 
9594
# Shell to use when invoking shell scripts.
9595
SHELL=$lt_SHELL
9596
 
9597
# Whether or not to build shared libraries.
9598
build_libtool_libs=$enable_shared
9599
 
9600
# Whether or not to build static libraries.
9601
build_old_libs=$enable_static
9602
 
9603
# Whether or not to add -lc for building shared libraries.
9604
build_libtool_need_lc=$archive_cmds_need_lc
9605
 
9606
# Whether or not to disallow shared libs when runtime libs are static
9607
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9608
 
9609
# Whether or not to optimize for fast installation.
9610
fast_install=$enable_fast_install
9611
 
9612
# The host system.
9613
host_alias=$host_alias
9614
host=$host
9615
 
9616
# An echo program that does not interpret backslashes.
9617
echo=$lt_echo
9618
 
9619
# The archiver.
9620
AR=$lt_AR
9621
AR_FLAGS=$lt_AR_FLAGS
9622
 
9623
# A C compiler.
9624
LTCC=$lt_LTCC
9625
 
9626
# A language-specific compiler.
9627
CC=$lt_compiler
9628
 
9629
# Is the compiler the GNU C compiler?
9630
with_gcc=$GCC
9631
 
9632
# An ERE matcher.
9633
EGREP=$lt_EGREP
9634
 
9635
# The linker used to build libraries.
9636
LD=$lt_LD
9637
 
9638
# Whether we need hard or soft links.
9639
LN_S=$lt_LN_S
9640
 
9641
# A BSD-compatible nm program.
9642
NM=$lt_NM
9643
 
9644
# A symbol stripping program
9645
STRIP=$STRIP
9646
 
9647
# Used to examine libraries when file_magic_cmd begins "file"
9648
MAGIC_CMD=$MAGIC_CMD
9649
 
9650
# Used on cygwin: DLL creation program.
9651
DLLTOOL="$DLLTOOL"
9652
 
9653
# Used on cygwin: object dumper.
9654
OBJDUMP="$OBJDUMP"
9655
 
9656
# Used on cygwin: assembler.
9657
AS="$AS"
9658
 
9659
# The name of the directory that contains temporary libtool files.
9660
objdir=$objdir
9661
 
9662
# How to create reloadable object files.
9663
reload_flag=$lt_reload_flag
9664
reload_cmds=$lt_reload_cmds
9665
 
9666
# How to pass a linker flag through the compiler.
9667
wl=$lt_lt_prog_compiler_wl
9668
 
9669
# Object file suffix (normally "o").
9670
objext="$ac_objext"
9671
 
9672
# Old archive suffix (normally "a").
9673
libext="$libext"
9674
 
9675
# Shared library suffix (normally ".so").
9676
shrext='$shrext'
9677
 
9678
# Executable file suffix (normally "").
9679
exeext="$exeext"
9680
 
9681
# Additional compiler flags for building library objects.
9682
pic_flag=$lt_lt_prog_compiler_pic
9683
pic_mode=$pic_mode
9684
 
9685
# What is the maximum length of a command?
9686
max_cmd_len=$lt_cv_sys_max_cmd_len
9687
 
9688
# Does compiler simultaneously support -c and -o options?
9689
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9690
 
9691
# Must we lock files when doing compilation ?
9692
need_locks=$lt_need_locks
9693
 
9694
# Do we need the lib prefix for modules?
9695
need_lib_prefix=$need_lib_prefix
9696
 
9697
# Do we need a version for libraries?
9698
need_version=$need_version
9699
 
9700
# Whether dlopen is supported.
9701
dlopen_support=$enable_dlopen
9702
 
9703
# Whether dlopen of programs is supported.
9704
dlopen_self=$enable_dlopen_self
9705
 
9706
# Whether dlopen of statically linked programs is supported.
9707
dlopen_self_static=$enable_dlopen_self_static
9708
 
9709
# Compiler flag to prevent dynamic linking.
9710
link_static_flag=$lt_lt_prog_compiler_static
9711
 
9712
# Compiler flag to turn off builtin functions.
9713
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9714
 
9715
# Compiler flag to allow reflexive dlopens.
9716
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9717
 
9718
# Compiler flag to generate shared objects directly from archives.
9719
whole_archive_flag_spec=$lt_whole_archive_flag_spec
9720
 
9721
# Compiler flag to generate thread-safe objects.
9722
thread_safe_flag_spec=$lt_thread_safe_flag_spec
9723
 
9724
# Library versioning type.
9725
version_type=$version_type
9726
 
9727
# Format of library name prefix.
9728
libname_spec=$lt_libname_spec
9729
 
9730
# List of archive names.  First name is the real one, the rest are links.
9731
# The last name is the one that the linker finds with -lNAME.
9732
library_names_spec=$lt_library_names_spec
9733
 
9734
# The coded name of the library, if different from the real name.
9735
soname_spec=$lt_soname_spec
9736
 
9737
# Commands used to build and install an old-style archive.
9738
RANLIB=$lt_RANLIB
9739
old_archive_cmds=$lt_old_archive_cmds
9740
old_postinstall_cmds=$lt_old_postinstall_cmds
9741
old_postuninstall_cmds=$lt_old_postuninstall_cmds
9742
 
9743
# Create an old-style archive from a shared archive.
9744
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9745
 
9746
# Create a temporary old-style archive to link instead of a shared archive.
9747
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9748
 
9749
# Commands used to build and install a shared archive.
9750
archive_cmds=$lt_archive_cmds
9751
archive_expsym_cmds=$lt_archive_expsym_cmds
9752
postinstall_cmds=$lt_postinstall_cmds
9753
postuninstall_cmds=$lt_postuninstall_cmds
9754
 
9755
# Commands used to build a loadable module (assumed same as above if empty)
9756
module_cmds=$lt_module_cmds
9757
module_expsym_cmds=$lt_module_expsym_cmds
9758
 
9759
# Commands to strip libraries.
9760
old_striplib=$lt_old_striplib
9761
striplib=$lt_striplib
9762
 
9763
# Dependencies to place before the objects being linked to create a
9764
# shared library.
9765
predep_objects=$lt_predep_objects
9766
 
9767
# Dependencies to place after the objects being linked to create a
9768
# shared library.
9769
postdep_objects=$lt_postdep_objects
9770
 
9771
# Dependencies to place before the objects being linked to create a
9772
# shared library.
9773
predeps=$lt_predeps
9774
 
9775
# Dependencies to place after the objects being linked to create a
9776
# shared library.
9777
postdeps=$lt_postdeps
9778
 
9779
# The library search path used internally by the compiler when linking
9780
# a shared library.
9781
compiler_lib_search_path=$lt_compiler_lib_search_path
9782
 
9783
# Method to check whether dependent libraries are shared objects.
9784
deplibs_check_method=$lt_deplibs_check_method
9785
 
9786
# Command to use when deplibs_check_method == file_magic.
9787
file_magic_cmd=$lt_file_magic_cmd
9788
 
9789
# Flag that allows shared libraries with undefined symbols to be built.
9790
allow_undefined_flag=$lt_allow_undefined_flag
9791
 
9792
# Flag that forces no undefined symbols.
9793
no_undefined_flag=$lt_no_undefined_flag
9794
 
9795
# Commands used to finish a libtool library installation in a directory.
9796
finish_cmds=$lt_finish_cmds
9797
 
9798
# Same as above, but a single script fragment to be evaled but not shown.
9799
finish_eval=$lt_finish_eval
9800
 
9801
# Take the output of nm and produce a listing of raw symbols and C names.
9802
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9803
 
9804
# Transform the output of nm in a proper C declaration
9805
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9806
 
9807
# Transform the output of nm in a C name address pair
9808
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9809
 
9810
# This is the shared library runtime path variable.
9811
runpath_var=$runpath_var
9812
 
9813
# This is the shared library path variable.
9814
shlibpath_var=$shlibpath_var
9815
 
9816
# Is shlibpath searched before the hard-coded library search path?
9817
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9818
 
9819
# How to hardcode a shared library path into an executable.
9820
hardcode_action=$hardcode_action
9821
 
9822
# Whether we should hardcode library paths into libraries.
9823
hardcode_into_libs=$hardcode_into_libs
9824
 
9825
# Flag to hardcode \$libdir into a binary during linking.
9826
# This must work even if \$libdir does not exist.
9827
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9828
 
9829
# If ld is used when linking, flag to hardcode \$libdir into
9830
# a binary during linking. This must work even if \$libdir does
9831
# not exist.
9832
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9833
 
9834
# Whether we need a single -rpath flag with a separated argument.
9835
hardcode_libdir_separator=$lt_hardcode_libdir_separator
9836
 
9837
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9838
# resulting binary.
9839
hardcode_direct=$hardcode_direct
9840
 
9841
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9842
# resulting binary.
9843
hardcode_minus_L=$hardcode_minus_L
9844
 
9845
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9846
# the resulting binary.
9847
hardcode_shlibpath_var=$hardcode_shlibpath_var
9848
 
9849
# Set to yes if building a shared library automatically hardcodes DIR into the library
9850
# and all subsequent libraries and executables linked against it.
9851
hardcode_automatic=$hardcode_automatic
9852
 
9853
# Variables whose values should be saved in libtool wrapper scripts and
9854
# restored at relink time.
9855
variables_saved_for_relink="$variables_saved_for_relink"
9856
 
9857
# Whether libtool must link a program against all its dependency libraries.
9858
link_all_deplibs=$link_all_deplibs
9859
 
9860
# Compile-time system search path for libraries
9861
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9862
 
9863
# Run-time system search path for libraries
9864
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9865
 
9866
# Fix the shell variable \$srcfile for the compiler.
9867
fix_srcfile_path="$fix_srcfile_path"
9868
 
9869
# Set to yes if exported symbols are required.
9870
always_export_symbols=$always_export_symbols
9871
 
9872
# The commands to list exported symbols.
9873
export_symbols_cmds=$lt_export_symbols_cmds
9874
 
9875
# The commands to extract the exported symbol list from a shared archive.
9876
extract_expsyms_cmds=$lt_extract_expsyms_cmds
9877
 
9878
# Symbols that should not be listed in the preloaded symbols.
9879
exclude_expsyms=$lt_exclude_expsyms
9880
 
9881
# Symbols that must always be exported.
9882
include_expsyms=$lt_include_expsyms
9883
 
9884
# ### END LIBTOOL CONFIG
9885
 
9886
__EOF__
9887
 
9888
 
9889
  case $host_os in
9890
  aix3*)
9891
    cat <<\EOF >> "$cfgfile"
9892
 
9893
# AIX sometimes has problems with the GCC collect2 program.  For some
9894
# reason, if we set the COLLECT_NAMES environment variable, the problems
9895
# vanish in a puff of smoke.
9896
if test "X${COLLECT_NAMES+set}" != Xset; then
9897
  COLLECT_NAMES=
9898
  export COLLECT_NAMES
9899
fi
9900
EOF
9901
    ;;
9902
  esac
9903
 
9904
  # We use sed instead of cat because bash on DJGPP gets confused if
9905
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
9906
  # text mode, it properly converts lines to CR/LF.  This bash problem
9907
  # is reportedly fixed, but why not run on old versions too?
9908
  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9909
 
9910
  mv -f "$cfgfile" "$ofile" || \
9911
    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9912
  chmod +x "$ofile"
9913
 
9914
else
9915
  # If there is no Makefile yet, we rely on a make rule to execute
9916
  # `config.status --recheck' to rerun these tests and create the
9917
  # libtool script then.
9918
  test -f Makefile && make "$ltmain"
9919
fi
9920
 
9921
 
9922
ac_ext=c
9923
ac_cpp='$CPP $CPPFLAGS'
9924
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9925
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9926
ac_compiler_gnu=$ac_cv_c_compiler_gnu
9927
 
9928
CC="$lt_save_CC"
9929
 
9930
 
9931
# Check whether --with-tags or --without-tags was given.
9932
if test "${with_tags+set}" = set; then
9933
  withval="$with_tags"
9934
  tagnames="$withval"
9935
fi;
9936
 
9937
if test -f "$ltmain" && test -n "$tagnames"; then
9938
  if test ! -f "${ofile}"; then
9939
    { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9940
echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9941
  fi
9942
 
9943
  if test -z "$LTCC"; then
9944
    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9945
    if test -z "$LTCC"; then
9946
      { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9947
echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9948
    else
9949
      { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9950
echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9951
    fi
9952
  fi
9953
 
9954
  # Extract list of available tagged configurations in $ofile.
9955
  # Note that this assumes the entire list is on one line.
9956
  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9957
 
9958
  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9959
  for tagname in $tagnames; do
9960
    IFS="$lt_save_ifs"
9961
    # Check whether tagname contains only valid characters
9962
    case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9963
    "") ;;
9964
    *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9965
echo "$as_me: error: invalid tag name: $tagname" >&2;}
9966
   { (exit 1); exit 1; }; }
9967
        ;;
9968
    esac
9969
 
9970
    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9971
    then
9972
      { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9973
echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9974
   { (exit 1); exit 1; }; }
9975
    fi
9976
 
9977
    # Update the list of available tags.
9978
    if test -n "$tagname"; then
9979
      echo appending configuration tag \"$tagname\" to $ofile
9980
 
9981
      case $tagname in
9982
      CXX)
9983
        if test -n "$CXX" && test "X$CXX" != "Xno"; then
9984
          ac_ext=cc
9985
ac_cpp='$CXXCPP $CPPFLAGS'
9986
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9987
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9988
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9989
 
9990
 
9991
 
9992
 
9993
archive_cmds_need_lc_CXX=no
9994
allow_undefined_flag_CXX=
9995
always_export_symbols_CXX=no
9996
archive_expsym_cmds_CXX=
9997
export_dynamic_flag_spec_CXX=
9998
hardcode_direct_CXX=no
9999
hardcode_libdir_flag_spec_CXX=
10000
hardcode_libdir_flag_spec_ld_CXX=
10001
hardcode_libdir_separator_CXX=
10002
hardcode_minus_L_CXX=no
10003
hardcode_automatic_CXX=no
10004
module_cmds_CXX=
10005
module_expsym_cmds_CXX=
10006
link_all_deplibs_CXX=unknown
10007
old_archive_cmds_CXX=$old_archive_cmds
10008
no_undefined_flag_CXX=
10009
whole_archive_flag_spec_CXX=
10010
enable_shared_with_static_runtimes_CXX=no
10011
 
10012
# Dependencies to place before and after the object being linked:
10013
predep_objects_CXX=
10014
postdep_objects_CXX=
10015
predeps_CXX=
10016
postdeps_CXX=
10017
compiler_lib_search_path_CXX=
10018
 
10019
# Source file extension for C++ test sources.
10020
ac_ext=cc
10021
 
10022
# Object file extension for compiled C++ test sources.
10023
objext=o
10024
objext_CXX=$objext
10025
 
10026
# Code to be used in simple compile tests
10027
lt_simple_compile_test_code="int some_variable = 0;\n"
10028
 
10029
# Code to be used in simple link tests
10030
lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
10031
 
10032
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
10033
 
10034
# If no C compiler was specified, use CC.
10035
LTCC=${LTCC-"$CC"}
10036
 
10037
# Allow CC to be a program name with arguments.
10038
compiler=$CC
10039
 
10040
 
10041
# Allow CC to be a program name with arguments.
10042
lt_save_CC=$CC
10043
lt_save_LD=$LD
10044
lt_save_GCC=$GCC
10045
GCC=$GXX
10046
lt_save_with_gnu_ld=$with_gnu_ld
10047
lt_save_path_LD=$lt_cv_path_LD
10048
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10049
  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10050
else
10051
  unset lt_cv_prog_gnu_ld
10052
fi
10053
if test -n "${lt_cv_path_LDCXX+set}"; then
10054
  lt_cv_path_LD=$lt_cv_path_LDCXX
10055
else
10056
  unset lt_cv_path_LD
10057
fi
10058
test -z "${LDCXX+set}" || LD=$LDCXX
10059
CC=${CXX-"c++"}
10060
compiler=$CC
10061
compiler_CXX=$CC
10062
cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
10063
 
10064
# We don't want -fno-exception wen compiling C++ code, so set the
10065
# no_builtin_flag separately
10066
if test "$GXX" = yes; then
10067
  lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10068
else
10069
  lt_prog_compiler_no_builtin_flag_CXX=
10070
fi
10071
 
10072
if test "$GXX" = yes; then
10073
  # Set up default GNU C++ configuration
10074
 
10075
 
10076
# Check whether --with-gnu-ld or --without-gnu-ld was given.
10077
if test "${with_gnu_ld+set}" = set; then
10078
  withval="$with_gnu_ld"
10079
  test "$withval" = no || with_gnu_ld=yes
10080
else
10081
  with_gnu_ld=no
10082
fi;
10083
ac_prog=ld
10084
if test "$GCC" = yes; then
10085
  # Check if gcc -print-prog-name=ld gives a path.
10086
  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10087
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
10088
  case $host in
10089
  *-*-mingw*)
10090
    # gcc leaves a trailing carriage return which upsets mingw
10091
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10092
  *)
10093
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10094
  esac
10095
  case $ac_prog in
10096
    # Accept absolute paths.
10097
    [\\/]* | ?:[\\/]*)
10098
      re_direlt='/[^/][^/]*/\.\./'
10099
      # Canonicalize the path of ld
10100
      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10101
      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10102
        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10103
      done
10104
      test -z "$LD" && LD="$ac_prog"
10105
      ;;
10106
  "")
10107
    # If it fails, then pretend we aren't using GCC.
10108
    ac_prog=ld
10109
    ;;
10110
  *)
10111
    # If it is relative, then search for the first ld in PATH.
10112
    with_gnu_ld=unknown
10113
    ;;
10114
  esac
10115
elif test "$with_gnu_ld" = yes; then
10116
  echo "$as_me:$LINENO: checking for GNU ld" >&5
10117
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10118
else
10119
  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10120
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10121
fi
10122
if test "${lt_cv_path_LD+set}" = set; then
10123
  echo $ECHO_N "(cached) $ECHO_C" >&6
10124
else
10125
  if test -z "$LD"; then
10126
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10127
  for ac_dir in $PATH; do
10128
    IFS="$lt_save_ifs"
10129
    test -z "$ac_dir" && ac_dir=.
10130
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10131
      lt_cv_path_LD="$ac_dir/$ac_prog"
10132
      # Check to see if the program is GNU ld.  I'd rather use --version,
10133
      # but apparently some GNU ld's only accept -v.
10134
      # Break only if it was the GNU/non-GNU ld that we prefer.
10135
      case `"$lt_cv_path_LD" -v 2>&1 
10136
      *GNU* | *'with BFD'*)
10137
        test "$with_gnu_ld" != no && break
10138
        ;;
10139
      *)
10140
        test "$with_gnu_ld" != yes && break
10141
        ;;
10142
      esac
10143
    fi
10144
  done
10145
  IFS="$lt_save_ifs"
10146
else
10147
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
10148
fi
10149
fi
10150
 
10151
LD="$lt_cv_path_LD"
10152
if test -n "$LD"; then
10153
  echo "$as_me:$LINENO: result: $LD" >&5
10154
echo "${ECHO_T}$LD" >&6
10155
else
10156
  echo "$as_me:$LINENO: result: no" >&5
10157
echo "${ECHO_T}no" >&6
10158
fi
10159
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10160
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10161
   { (exit 1); exit 1; }; }
10162
echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10163
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10164
if test "${lt_cv_prog_gnu_ld+set}" = set; then
10165
  echo $ECHO_N "(cached) $ECHO_C" >&6
10166
else
10167
  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10168
case `"$LD" -v 2>&1 
10169
*GNU* | *'with BFD'*)
10170
  lt_cv_prog_gnu_ld=yes
10171
  ;;
10172
*)
10173
  lt_cv_prog_gnu_ld=no
10174
  ;;
10175
esac
10176
fi
10177
echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10178
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
10179
with_gnu_ld=$lt_cv_prog_gnu_ld
10180
 
10181
 
10182
 
10183
  # Check if GNU C++ uses GNU ld as the underlying linker, since the
10184
  # archiving commands below assume that GNU ld is being used.
10185
  if test "$with_gnu_ld" = yes; then
10186
    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10187
    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'
10188
 
10189
    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10190
    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10191
 
10192
    # If archive_cmds runs LD, not CC, wlarc should be empty
10193
    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10194
    #     investigate it a little bit more. (MM)
10195
    wlarc='${wl}'
10196
 
10197
    # ancient GNU ld didn't support --whole-archive et. al.
10198
    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10199
        grep 'no-whole-archive' > /dev/null; then
10200
      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10201
    else
10202
      whole_archive_flag_spec_CXX=
10203
    fi
10204
  else
10205
    with_gnu_ld=no
10206
    wlarc=
10207
 
10208
    # A generic and very simple default shared library creation
10209
    # command for GNU C++ for the case where it uses the native
10210
    # linker, instead of GNU ld.  If possible, this setting should
10211
    # overridden to take advantage of the native linker features on
10212
    # the platform it is being used on.
10213
    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10214
  fi
10215
 
10216
  # Commands to make compiler produce verbose output that lists
10217
  # what "hidden" libraries, object files and flags are used when
10218
  # linking a shared library.
10219
  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10220
 
10221
else
10222
  GXX=no
10223
  with_gnu_ld=no
10224
  wlarc=
10225
fi
10226
 
10227
# PORTME: fill in a description of your system's C++ link characteristics
10228
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10229
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10230
ld_shlibs_CXX=yes
10231
case $host_os in
10232
  aix3*)
10233
    # FIXME: insert proper C++ library support
10234
    ld_shlibs_CXX=no
10235
    ;;
10236
  aix4* | aix5*)
10237
    if test "$host_cpu" = ia64; then
10238
      # On IA64, the linker does run time linking by default, so we don't
10239
      # have to do anything special.
10240
      aix_use_runtimelinking=no
10241
      exp_sym_flag='-Bexport'
10242
      no_entry_flag=""
10243
    else
10244
      aix_use_runtimelinking=no
10245
 
10246
      # Test if we are trying to use run time linking or normal
10247
      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10248
      # need to do runtime linking.
10249
      case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10250
        for ld_flag in $LDFLAGS; do
10251
          case $ld_flag in
10252
          *-brtl*)
10253
            aix_use_runtimelinking=yes
10254
            break
10255
            ;;
10256
          esac
10257
        done
10258
      esac
10259
 
10260
      exp_sym_flag='-bexport'
10261
      no_entry_flag='-bnoentry'
10262
    fi
10263
 
10264
    # When large executables or shared objects are built, AIX ld can
10265
    # have problems creating the table of contents.  If linking a library
10266
    # or program results in "error TOC overflow" add -mminimal-toc to
10267
    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10268
    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10269
 
10270
    archive_cmds_CXX=''
10271
    hardcode_direct_CXX=yes
10272
    hardcode_libdir_separator_CXX=':'
10273
    link_all_deplibs_CXX=yes
10274
 
10275
    if test "$GXX" = yes; then
10276
      case $host_os in aix4.012|aix4.012.*)
10277
      # We only want to do this on AIX 4.2 and lower, the check
10278
      # below for broken collect2 doesn't work under 4.3+
10279
        collect2name=`${CC} -print-prog-name=collect2`
10280
        if test -f "$collect2name" && \
10281
           strings "$collect2name" | grep resolve_lib_name >/dev/null
10282
        then
10283
          # We have reworked collect2
10284
          hardcode_direct_CXX=yes
10285
        else
10286
          # We have old collect2
10287
          hardcode_direct_CXX=unsupported
10288
          # It fails to find uninstalled libraries when the uninstalled
10289
          # path is not listed in the libpath.  Setting hardcode_minus_L
10290
          # to unsupported forces relinking
10291
          hardcode_minus_L_CXX=yes
10292
          hardcode_libdir_flag_spec_CXX='-L$libdir'
10293
          hardcode_libdir_separator_CXX=
10294
        fi
10295
      esac
10296
      shared_flag='-shared'
10297
    else
10298
      # not using gcc
10299
      if test "$host_cpu" = ia64; then
10300
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10301
        # chokes on -Wl,-G. The following line is correct:
10302
        shared_flag='-G'
10303
      else
10304
        if test "$aix_use_runtimelinking" = yes; then
10305
          shared_flag='${wl}-G'
10306
        else
10307
          shared_flag='${wl}-bM:SRE'
10308
        fi
10309
      fi
10310
    fi
10311
 
10312
    # It seems that -bexpall does not export symbols beginning with
10313
    # underscore (_), so it is better to generate a list of symbols to export.
10314
    always_export_symbols_CXX=yes
10315
    if test "$aix_use_runtimelinking" = yes; then
10316
      # Warning - without using the other runtime loading flags (-brtl),
10317
      # -berok will link without error, but may produce a broken library.
10318
      allow_undefined_flag_CXX='-berok'
10319
      # Determine the default libpath from the value encoded in an empty executable.
10320
      cat >conftest.$ac_ext <<_ACEOF
10321
/* confdefs.h.  */
10322
_ACEOF
10323
cat confdefs.h >>conftest.$ac_ext
10324
cat >>conftest.$ac_ext <<_ACEOF
10325
/* end confdefs.h.  */
10326
 
10327
int
10328
main ()
10329
{
10330
 
10331
  ;
10332
  return 0;
10333
}
10334
_ACEOF
10335
rm -f conftest.$ac_objext conftest$ac_exeext
10336
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10337
  (eval $ac_link) 2>conftest.er1
10338
  ac_status=$?
10339
  grep -v '^ *+' conftest.er1 >conftest.err
10340
  rm -f conftest.er1
10341
  cat conftest.err >&5
10342
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10343
  (exit $ac_status); } &&
10344
         { ac_try='test -z "$ac_cxx_werror_flag"
10345
                         || test ! -s conftest.err'
10346
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10347
  (eval $ac_try) 2>&5
10348
  ac_status=$?
10349
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10350
  (exit $ac_status); }; } &&
10351
         { ac_try='test -s conftest$ac_exeext'
10352
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10353
  (eval $ac_try) 2>&5
10354
  ac_status=$?
10355
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10356
  (exit $ac_status); }; }; then
10357
 
10358
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10359
}'`
10360
# Check for a 64-bit object if we didn't find anything.
10361
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; }
10362
}'`; fi
10363
else
10364
  echo "$as_me: failed program was:" >&5
10365
sed 's/^/| /' conftest.$ac_ext >&5
10366
 
10367
fi
10368
rm -f conftest.err conftest.$ac_objext \
10369
      conftest$ac_exeext conftest.$ac_ext
10370
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10371
 
10372
      hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10373
 
10374
      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"
10375
     else
10376
      if test "$host_cpu" = ia64; then
10377
        hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10378
        allow_undefined_flag_CXX="-z nodefs"
10379
        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"
10380
      else
10381
        # Determine the default libpath from the value encoded in an empty executable.
10382
        cat >conftest.$ac_ext <<_ACEOF
10383
/* confdefs.h.  */
10384
_ACEOF
10385
cat confdefs.h >>conftest.$ac_ext
10386
cat >>conftest.$ac_ext <<_ACEOF
10387
/* end confdefs.h.  */
10388
 
10389
int
10390
main ()
10391
{
10392
 
10393
  ;
10394
  return 0;
10395
}
10396
_ACEOF
10397
rm -f conftest.$ac_objext conftest$ac_exeext
10398
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10399
  (eval $ac_link) 2>conftest.er1
10400
  ac_status=$?
10401
  grep -v '^ *+' conftest.er1 >conftest.err
10402
  rm -f conftest.er1
10403
  cat conftest.err >&5
10404
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10405
  (exit $ac_status); } &&
10406
         { ac_try='test -z "$ac_cxx_werror_flag"
10407
                         || test ! -s conftest.err'
10408
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10409
  (eval $ac_try) 2>&5
10410
  ac_status=$?
10411
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10412
  (exit $ac_status); }; } &&
10413
         { ac_try='test -s conftest$ac_exeext'
10414
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10415
  (eval $ac_try) 2>&5
10416
  ac_status=$?
10417
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10418
  (exit $ac_status); }; }; then
10419
 
10420
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10421
}'`
10422
# Check for a 64-bit object if we didn't find anything.
10423
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; }
10424
}'`; fi
10425
else
10426
  echo "$as_me: failed program was:" >&5
10427
sed 's/^/| /' conftest.$ac_ext >&5
10428
 
10429
fi
10430
rm -f conftest.err conftest.$ac_objext \
10431
      conftest$ac_exeext conftest.$ac_ext
10432
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10433
 
10434
        hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10435
        # Warning - without using the other run time loading flags,
10436
        # -berok will link without error, but may produce a broken library.
10437
        no_undefined_flag_CXX=' ${wl}-bernotok'
10438
        allow_undefined_flag_CXX=' ${wl}-berok'
10439
        # -bexpall does not export symbols beginning with underscore (_)
10440
        always_export_symbols_CXX=yes
10441
        # Exported symbols can be pulled into shared objects from archives
10442
        whole_archive_flag_spec_CXX=' '
10443
        archive_cmds_need_lc_CXX=yes
10444
        # This is similar to how AIX traditionally builds it's shared libraries.
10445
        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'
10446
      fi
10447
    fi
10448
    ;;
10449
  chorus*)
10450
    case $cc_basename in
10451
      *)
10452
        # FIXME: insert proper C++ library support
10453
        ld_shlibs_CXX=no
10454
        ;;
10455
    esac
10456
    ;;
10457
 
10458
  cygwin* | mingw* | pw32*)
10459
    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10460
    # as there is no search path for DLLs.
10461
    hardcode_libdir_flag_spec_CXX='-L$libdir'
10462
    allow_undefined_flag_CXX=unsupported
10463
    always_export_symbols_CXX=no
10464
    enable_shared_with_static_runtimes_CXX=yes
10465
 
10466
    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10467
      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'
10468
      # If the export-symbols file already is a .def file (1st line
10469
      # is EXPORTS), use it as is; otherwise, prepend...
10470
      archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10471
        cp $export_symbols $output_objdir/$soname.def;
10472
      else
10473
        echo EXPORTS > $output_objdir/$soname.def;
10474
        cat $export_symbols >> $output_objdir/$soname.def;
10475
      fi~
10476
      $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'
10477
    else
10478
      ld_shlibs_CXX=no
10479
    fi
10480
  ;;
10481
 
10482
  darwin* | rhapsody*)
10483
   if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
10484
    archive_cmds_need_lc_CXX=no
10485
    case "$host_os" in
10486
    rhapsody* | darwin1.[012])
10487
      allow_undefined_flag_CXX='-undefined suppress'
10488
      ;;
10489
    *) # Darwin 1.3 on
10490
      test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
10491
      ;;
10492
    esac
10493
        lt_int_apple_cc_single_mod=no
10494
        output_verbose_link_cmd='echo'
10495
        if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
10496
          lt_int_apple_cc_single_mod=yes
10497
        fi
10498
        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10499
          archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10500
        else
10501
        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'
10502
      fi
10503
      module_cmds_CXX='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
10504
 
10505
    # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
10506
      if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10507
        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}'
10508
      else
10509
        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}'
10510
      fi
10511
        module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag  -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10512
    hardcode_direct_CXX=no
10513
    hardcode_automatic_CXX=yes
10514
    hardcode_shlibpath_var_CXX=unsupported
10515
    whole_archive_flag_spec_CXX='-all_load $convenience'
10516
    link_all_deplibs_CXX=yes
10517
   fi
10518
    ;;
10519
 
10520
  dgux*)
10521
    case $cc_basename in
10522
      ec++)
10523
        # FIXME: insert proper C++ library support
10524
        ld_shlibs_CXX=no
10525
        ;;
10526
      ghcx)
10527
        # Green Hills C++ Compiler
10528
        # FIXME: insert proper C++ library support
10529
        ld_shlibs_CXX=no
10530
        ;;
10531
      *)
10532
        # FIXME: insert proper C++ library support
10533
        ld_shlibs_CXX=no
10534
        ;;
10535
    esac
10536
    ;;
10537
  freebsd12*)
10538
    # C++ shared libraries reported to be fairly broken before switch to ELF
10539
    ld_shlibs_CXX=no
10540
    ;;
10541
  freebsd-elf*)
10542
    archive_cmds_need_lc_CXX=no
10543
    ;;
10544
  freebsd*)
10545
    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10546
    # conventions
10547
    ld_shlibs_CXX=yes
10548
    ;;
10549
  gnu*)
10550
    ;;
10551
  hpux9*)
10552
    hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10553
    hardcode_libdir_separator_CXX=:
10554
    export_dynamic_flag_spec_CXX='${wl}-E'
10555
    hardcode_direct_CXX=yes
10556
    hardcode_minus_L_CXX=yes # Not in the search PATH,
10557
                                # but as the default
10558
                                # location of the library.
10559
 
10560
    case $cc_basename in
10561
    CC)
10562
      # FIXME: insert proper C++ library support
10563
      ld_shlibs_CXX=no
10564
      ;;
10565
    aCC)
10566
      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'
10567
      # Commands to make compiler produce verbose output that lists
10568
      # what "hidden" libraries, object files and flags are used when
10569
      # linking a shared library.
10570
      #
10571
      # There doesn't appear to be a way to prevent this compiler from
10572
      # explicitly linking system object files so we need to strip them
10573
      # from the output so that they don't get included in the library
10574
      # dependencies.
10575
      output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | egrep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10576
      ;;
10577
    *)
10578
      if test "$GXX" = yes; then
10579
        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'
10580
      else
10581
        # FIXME: insert proper C++ library support
10582
        ld_shlibs_CXX=no
10583
      fi
10584
      ;;
10585
    esac
10586
    ;;
10587
  hpux10*|hpux11*)
10588
    if test $with_gnu_ld = no; then
10589
      case "$host_cpu" in
10590
      hppa*64*)
10591
        hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10592
        hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10593
        hardcode_libdir_separator_CXX=:
10594
        ;;
10595
      ia64*)
10596
        hardcode_libdir_flag_spec_CXX='-L$libdir'
10597
        ;;
10598
      *)
10599
        hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10600
        hardcode_libdir_separator_CXX=:
10601
        export_dynamic_flag_spec_CXX='${wl}-E'
10602
        ;;
10603
      esac
10604
    fi
10605
    case "$host_cpu" in
10606
    hppa*64*)
10607
      hardcode_direct_CXX=no
10608
      hardcode_shlibpath_var_CXX=no
10609
      ;;
10610
    ia64*)
10611
      hardcode_direct_CXX=no
10612
      hardcode_shlibpath_var_CXX=no
10613
      hardcode_minus_L_CXX=yes # Not in the search PATH,
10614
                                              # but as the default
10615
                                              # location of the library.
10616
      ;;
10617
    *)
10618
      hardcode_direct_CXX=yes
10619
      hardcode_minus_L_CXX=yes # Not in the search PATH,
10620
                                              # but as the default
10621
                                              # location of the library.
10622
      ;;
10623
    esac
10624
 
10625
    case $cc_basename in
10626
      CC)
10627
        # FIXME: insert proper C++ library support
10628
        ld_shlibs_CXX=no
10629
        ;;
10630
      aCC)
10631
        case "$host_cpu" in
10632
        hppa*64*|ia64*)
10633
          archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10634
          ;;
10635
        *)
10636
          archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10637
          ;;
10638
        esac
10639
        # Commands to make compiler produce verbose output that lists
10640
        # what "hidden" libraries, object files and flags are used when
10641
        # linking a shared library.
10642
        #
10643
        # There doesn't appear to be a way to prevent this compiler from
10644
        # explicitly linking system object files so we need to strip them
10645
        # from the output so that they don't get included in the library
10646
        # dependencies.
10647
        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'
10648
        ;;
10649
      *)
10650
        if test "$GXX" = yes; then
10651
          if test $with_gnu_ld = no; then
10652
            case "$host_cpu" in
10653
            ia64*|hppa*64*)
10654
              archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10655
              ;;
10656
            *)
10657
              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'
10658
              ;;
10659
            esac
10660
          fi
10661
        else
10662
          # FIXME: insert proper C++ library support
10663
          ld_shlibs_CXX=no
10664
        fi
10665
        ;;
10666
    esac
10667
    ;;
10668
  irix5* | irix6*)
10669
    case $cc_basename in
10670
      CC)
10671
        # SGI C++
10672
        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'
10673
 
10674
        # Archives containing C++ object files must be created using
10675
        # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
10676
        # necessary to make sure instantiated templates are included
10677
        # in the archive.
10678
        old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10679
        ;;
10680
      *)
10681
        if test "$GXX" = yes; then
10682
          if test "$with_gnu_ld" = no; then
10683
            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'
10684
          else
10685
            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'
10686
          fi
10687
        fi
10688
        link_all_deplibs_CXX=yes
10689
        ;;
10690
    esac
10691
    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10692
    hardcode_libdir_separator_CXX=:
10693
    ;;
10694
  linux*)
10695
    case $cc_basename in
10696
      KCC)
10697
        # Kuck and Associates, Inc. (KAI) C++ Compiler
10698
 
10699
        # KCC will only create a shared library if the output file
10700
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
10701
        # to its proper name (with version) after linking.
10702
        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'
10703
        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'
10704
        # Commands to make compiler produce verbose output that lists
10705
        # what "hidden" libraries, object files and flags are used when
10706
        # linking a shared library.
10707
        #
10708
        # There doesn't appear to be a way to prevent this compiler from
10709
        # explicitly linking system object files so we need to strip them
10710
        # from the output so that they don't get included in the library
10711
        # dependencies.
10712
        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'
10713
 
10714
        hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10715
        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10716
 
10717
        # Archives containing C++ object files must be created using
10718
        # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10719
        old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10720
        ;;
10721
      icpc)
10722
        # Intel C++
10723
        with_gnu_ld=yes
10724
        archive_cmds_need_lc_CXX=no
10725
        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10726
        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'
10727
        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10728
        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10729
        whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10730
        ;;
10731
      cxx)
10732
        # Compaq C++
10733
        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10734
        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'
10735
 
10736
        runpath_var=LD_RUN_PATH
10737
        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10738
        hardcode_libdir_separator_CXX=:
10739
 
10740
        # Commands to make compiler produce verbose output that lists
10741
        # what "hidden" libraries, object files and flags are used when
10742
        # linking a shared library.
10743
        #
10744
        # There doesn't appear to be a way to prevent this compiler from
10745
        # explicitly linking system object files so we need to strip them
10746
        # from the output so that they don't get included in the library
10747
        # dependencies.
10748
        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'
10749
        ;;
10750
    esac
10751
    ;;
10752
  lynxos*)
10753
    # FIXME: insert proper C++ library support
10754
    ld_shlibs_CXX=no
10755
    ;;
10756
  m88k*)
10757
    # FIXME: insert proper C++ library support
10758
    ld_shlibs_CXX=no
10759
    ;;
10760
  mvs*)
10761
    case $cc_basename in
10762
      cxx)
10763
        # FIXME: insert proper C++ library support
10764
        ld_shlibs_CXX=no
10765
        ;;
10766
      *)
10767
        # FIXME: insert proper C++ library support
10768
        ld_shlibs_CXX=no
10769
        ;;
10770
    esac
10771
    ;;
10772
  netbsd*)
10773
    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10774
      archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10775
      wlarc=
10776
      hardcode_libdir_flag_spec_CXX='-R$libdir'
10777
      hardcode_direct_CXX=yes
10778
      hardcode_shlibpath_var_CXX=no
10779
    fi
10780
    # Workaround some broken pre-1.5 toolchains
10781
    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10782
    ;;
10783
  osf3*)
10784
    case $cc_basename in
10785
      KCC)
10786
        # Kuck and Associates, Inc. (KAI) C++ Compiler
10787
 
10788
        # KCC will only create a shared library if the output file
10789
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
10790
        # to its proper name (with version) after linking.
10791
        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'
10792
 
10793
        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10794
        hardcode_libdir_separator_CXX=:
10795
 
10796
        # Archives containing C++ object files must be created using
10797
        # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10798
        old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10799
 
10800
        ;;
10801
      RCC)
10802
        # Rational C++ 2.4.1
10803
        # FIXME: insert proper C++ library support
10804
        ld_shlibs_CXX=no
10805
        ;;
10806
      cxx)
10807
        allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10808
        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'
10809
 
10810
        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10811
        hardcode_libdir_separator_CXX=:
10812
 
10813
        # Commands to make compiler produce verbose output that lists
10814
        # what "hidden" libraries, object files and flags are used when
10815
        # linking a shared library.
10816
        #
10817
        # There doesn't appear to be a way to prevent this compiler from
10818
        # explicitly linking system object files so we need to strip them
10819
        # from the output so that they don't get included in the library
10820
        # dependencies.
10821
        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'
10822
        ;;
10823
      *)
10824
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10825
          allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10826
          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'
10827
 
10828
          hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10829
          hardcode_libdir_separator_CXX=:
10830
 
10831
          # Commands to make compiler produce verbose output that lists
10832
          # what "hidden" libraries, object files and flags are used when
10833
          # linking a shared library.
10834
          output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10835
 
10836
        else
10837
          # FIXME: insert proper C++ library support
10838
          ld_shlibs_CXX=no
10839
        fi
10840
        ;;
10841
    esac
10842
    ;;
10843
  osf4* | osf5*)
10844
    case $cc_basename in
10845
      KCC)
10846
        # Kuck and Associates, Inc. (KAI) C++ Compiler
10847
 
10848
        # KCC will only create a shared library if the output file
10849
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
10850
        # to its proper name (with version) after linking.
10851
        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'
10852
 
10853
        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10854
        hardcode_libdir_separator_CXX=:
10855
 
10856
        # Archives containing C++ object files must be created using
10857
        # the KAI C++ compiler.
10858
        old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10859
        ;;
10860
      RCC)
10861
        # Rational C++ 2.4.1
10862
        # FIXME: insert proper C++ library support
10863
        ld_shlibs_CXX=no
10864
        ;;
10865
      cxx)
10866
        allow_undefined_flag_CXX=' -expect_unresolved \*'
10867
        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'
10868
        archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10869
          echo "-hidden">> $lib.exp~
10870
          $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~
10871
          $rm $lib.exp'
10872
 
10873
        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10874
        hardcode_libdir_separator_CXX=:
10875
 
10876
        # Commands to make compiler produce verbose output that lists
10877
        # what "hidden" libraries, object files and flags are used when
10878
        # linking a shared library.
10879
        #
10880
        # There doesn't appear to be a way to prevent this compiler from
10881
        # explicitly linking system object files so we need to strip them
10882
        # from the output so that they don't get included in the library
10883
        # dependencies.
10884
        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'
10885
        ;;
10886
      *)
10887
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10888
          allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10889
         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'
10890
 
10891
          hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10892
          hardcode_libdir_separator_CXX=:
10893
 
10894
          # Commands to make compiler produce verbose output that lists
10895
          # what "hidden" libraries, object files and flags are used when
10896
          # linking a shared library.
10897
          output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10898
 
10899
        else
10900
          # FIXME: insert proper C++ library support
10901
          ld_shlibs_CXX=no
10902
        fi
10903
        ;;
10904
    esac
10905
    ;;
10906
  psos*)
10907
    # FIXME: insert proper C++ library support
10908
    ld_shlibs_CXX=no
10909
    ;;
10910
  sco*)
10911
    archive_cmds_need_lc_CXX=no
10912
    case $cc_basename in
10913
      CC)
10914
        # FIXME: insert proper C++ library support
10915
        ld_shlibs_CXX=no
10916
        ;;
10917
      *)
10918
        # FIXME: insert proper C++ library support
10919
        ld_shlibs_CXX=no
10920
        ;;
10921
    esac
10922
    ;;
10923
  sunos4*)
10924
    case $cc_basename in
10925
      CC)
10926
        # Sun C++ 4.x
10927
        # FIXME: insert proper C++ library support
10928
        ld_shlibs_CXX=no
10929
        ;;
10930
      lcc)
10931
        # Lucid
10932
        # FIXME: insert proper C++ library support
10933
        ld_shlibs_CXX=no
10934
        ;;
10935
      *)
10936
        # FIXME: insert proper C++ library support
10937
        ld_shlibs_CXX=no
10938
        ;;
10939
    esac
10940
    ;;
10941
  solaris*)
10942
    case $cc_basename in
10943
      CC)
10944
        # Sun C++ 4.2, 5.x and Centerline C++
10945
        no_undefined_flag_CXX=' -zdefs'
10946
        archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10947
        archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10948
        $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'
10949
 
10950
        hardcode_libdir_flag_spec_CXX='-R$libdir'
10951
        hardcode_shlibpath_var_CXX=no
10952
        case $host_os in
10953
          solaris2.0-5 | solaris2.0-5.*) ;;
10954
          *)
10955
            # The C++ compiler is used as linker so we must use $wl
10956
            # flag to pass the commands to the underlying system
10957
            # linker.
10958
            # Supported since Solaris 2.6 (maybe 2.5.1?)
10959
            whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10960
            ;;
10961
        esac
10962
        link_all_deplibs_CXX=yes
10963
 
10964
        # Commands to make compiler produce verbose output that lists
10965
        # what "hidden" libraries, object files and flags are used when
10966
        # linking a shared library.
10967
        #
10968
        # There doesn't appear to be a way to prevent this compiler from
10969
        # explicitly linking system object files so we need to strip them
10970
        # from the output so that they don't get included in the library
10971
        # dependencies.
10972
        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'
10973
 
10974
        # Archives containing C++ object files must be created using
10975
        # "CC -xar", where "CC" is the Sun C++ compiler.  This is
10976
        # necessary to make sure instantiated templates are included
10977
        # in the archive.
10978
        old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10979
        ;;
10980
      gcx)
10981
        # Green Hills C++ Compiler
10982
        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10983
 
10984
        # The C++ compiler must be used to create the archive.
10985
        old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10986
        ;;
10987
      *)
10988
        # GNU C++ compiler with Solaris linker
10989
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10990
          no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10991
          if $CC --version | grep -v '^2\.7' > /dev/null; then
10992
            archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10993
            archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10994
                $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10995
 
10996
            # Commands to make compiler produce verbose output that lists
10997
            # what "hidden" libraries, object files and flags are used when
10998
            # linking a shared library.
10999
            output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11000
          else
11001
            # g++ 2.7 appears to require `-G' NOT `-shared' on this
11002
            # platform.
11003
            archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11004
            archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11005
                $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11006
 
11007
            # Commands to make compiler produce verbose output that lists
11008
            # what "hidden" libraries, object files and flags are used when
11009
            # linking a shared library.
11010
            output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11011
          fi
11012
 
11013
          hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11014
        fi
11015
        ;;
11016
    esac
11017
    ;;
11018
  sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
11019
    archive_cmds_need_lc_CXX=no
11020
    ;;
11021
  tandem*)
11022
    case $cc_basename in
11023
      NCC)
11024
        # NonStop-UX NCC 3.20
11025
        # FIXME: insert proper C++ library support
11026
        ld_shlibs_CXX=no
11027
        ;;
11028
      *)
11029
        # FIXME: insert proper C++ library support
11030
        ld_shlibs_CXX=no
11031
        ;;
11032
    esac
11033
    ;;
11034
  vxworks*)
11035
    # FIXME: insert proper C++ library support
11036
    ld_shlibs_CXX=no
11037
    ;;
11038
  *)
11039
    # FIXME: insert proper C++ library support
11040
    ld_shlibs_CXX=no
11041
    ;;
11042
esac
11043
echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11044
echo "${ECHO_T}$ld_shlibs_CXX" >&6
11045
test "$ld_shlibs_CXX" = no && can_build_shared=no
11046
 
11047
GCC_CXX="$GXX"
11048
LD_CXX="$LD"
11049
 
11050
## CAVEAT EMPTOR:
11051
## There is no encapsulation within the following macros, do not change
11052
## the running order or otherwise move them around unless you know exactly
11053
## what you are doing...
11054
 
11055
cat > conftest.$ac_ext <
11056
class Foo
11057
{
11058
public:
11059
  Foo (void) { a = 0; }
11060
private:
11061
  int a;
11062
};
11063
EOF
11064
 
11065
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11066
  (eval $ac_compile) 2>&5
11067
  ac_status=$?
11068
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11069
  (exit $ac_status); }; then
11070
  # Parse the compiler output and extract the necessary
11071
  # objects, libraries and library flags.
11072
 
11073
  # Sentinel used to keep track of whether or not we are before
11074
  # the conftest object file.
11075
  pre_test_object_deps_done=no
11076
 
11077
  # The `*' in the case matches for architectures that use `case' in
11078
  # $output_verbose_cmd can trigger glob expansion during the loop
11079
  # eval without this substitution.
11080
  output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
11081
 
11082
  for p in `eval $output_verbose_link_cmd`; do
11083
    case $p in
11084
 
11085
    -L* | -R* | -l*)
11086
       # Some compilers place space between "-{L,R}" and the path.
11087
       # Remove the space.
11088
       if test $p = "-L" \
11089
          || test $p = "-R"; then
11090
         prev=$p
11091
         continue
11092
       else
11093
         prev=
11094
       fi
11095
 
11096
       if test "$pre_test_object_deps_done" = no; then
11097
         case $p in
11098
         -L* | -R*)
11099
           # Internal compiler library paths should come after those
11100
           # provided the user.  The postdeps already come after the
11101
           # user supplied libs so there is no need to process them.
11102
           if test -z "$compiler_lib_search_path_CXX"; then
11103
             compiler_lib_search_path_CXX="${prev}${p}"
11104
           else
11105
             compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11106
           fi
11107
           ;;
11108
         # The "-l" case would never come before the object being
11109
         # linked, so don't bother handling this case.
11110
         esac
11111
       else
11112
         if test -z "$postdeps_CXX"; then
11113
           postdeps_CXX="${prev}${p}"
11114
         else
11115
           postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11116
         fi
11117
       fi
11118
       ;;
11119
 
11120
    *.$objext)
11121
       # This assumes that the test object file only shows up
11122
       # once in the compiler output.
11123
       if test "$p" = "conftest.$objext"; then
11124
         pre_test_object_deps_done=yes
11125
         continue
11126
       fi
11127
 
11128
       if test "$pre_test_object_deps_done" = no; then
11129
         if test -z "$predep_objects_CXX"; then
11130
           predep_objects_CXX="$p"
11131
         else
11132
           predep_objects_CXX="$predep_objects_CXX $p"
11133
         fi
11134
       else
11135
         if test -z "$postdep_objects_CXX"; then
11136
           postdep_objects_CXX="$p"
11137
         else
11138
           postdep_objects_CXX="$postdep_objects_CXX $p"
11139
         fi
11140
       fi
11141
       ;;
11142
 
11143
    *) ;; # Ignore the rest.
11144
 
11145
    esac
11146
  done
11147
 
11148
  # Clean up.
11149
  rm -f a.out a.exe
11150
else
11151
  echo "libtool.m4: error: problem compiling CXX test program"
11152
fi
11153
 
11154
$rm -f confest.$objext
11155
 
11156
case " $postdeps_CXX " in
11157
*" -lc "*) archive_cmds_need_lc_CXX=no ;;
11158
esac
11159
 
11160
lt_prog_compiler_wl_CXX=
11161
lt_prog_compiler_pic_CXX=
11162
lt_prog_compiler_static_CXX=
11163
 
11164
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11165
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
11166
 
11167
  # C++ specific cases for pic, static, wl, etc.
11168
  if test "$GXX" = yes; then
11169
    lt_prog_compiler_wl_CXX='-Wl,'
11170
    lt_prog_compiler_static_CXX='-static'
11171
 
11172
    case $host_os in
11173
    aix*)
11174
      # All AIX code is PIC.
11175
      if test "$host_cpu" = ia64; then
11176
        # AIX 5 now supports IA64 processor
11177
        lt_prog_compiler_static_CXX='-Bstatic'
11178
      fi
11179
      ;;
11180
    amigaos*)
11181
      # FIXME: we need at least 68020 code to build shared libraries, but
11182
      # adding the `-m68020' flag to GCC prevents building anything better,
11183
      # like `-m68040'.
11184
      lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11185
      ;;
11186
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11187
      # PIC is the default for these OSes.
11188
      ;;
11189
    mingw* | os2* | pw32*)
11190
      # This hack is so that the source file can tell whether it is being
11191
      # built for inclusion in a dll (and should export symbols for example).
11192
      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11193
      ;;
11194
    darwin* | rhapsody*)
11195
      # PIC is the default on this platform
11196
      # Common symbols not allowed in MH_DYLIB files
11197
      lt_prog_compiler_pic_CXX='-fno-common'
11198
      ;;
11199
    *djgpp*)
11200
      # DJGPP does not support shared libraries at all
11201
      lt_prog_compiler_pic_CXX=
11202
      ;;
11203
    sysv4*MP*)
11204
      if test -d /usr/nec; then
11205
        lt_prog_compiler_pic_CXX=-Kconform_pic
11206
      fi
11207
      ;;
11208
    hpux*)
11209
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11210
      # not for PA HP-UX.
11211
      case "$host_cpu" in
11212
      hppa*64*|ia64*)
11213
        ;;
11214
      *)
11215
        lt_prog_compiler_pic_CXX='-fPIC'
11216
        ;;
11217
      esac
11218
      ;;
11219
    *)
11220
      lt_prog_compiler_pic_CXX='-fPIC'
11221
      ;;
11222
    esac
11223
  else
11224
    case $host_os in
11225
      aix4* | aix5*)
11226
        # All AIX code is PIC.
11227
        if test "$host_cpu" = ia64; then
11228
          # AIX 5 now supports IA64 processor
11229
          lt_prog_compiler_static_CXX='-Bstatic'
11230
        else
11231
          lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
11232
        fi
11233
        ;;
11234
      chorus*)
11235
        case $cc_basename in
11236
        cxch68)
11237
          # Green Hills C++ Compiler
11238
          # _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"
11239
          ;;
11240
        esac
11241
        ;;
11242
      dgux*)
11243
        case $cc_basename in
11244
          ec++)
11245
            lt_prog_compiler_pic_CXX='-KPIC'
11246
            ;;
11247
          ghcx)
11248
            # Green Hills C++ Compiler
11249
            lt_prog_compiler_pic_CXX='-pic'
11250
            ;;
11251
          *)
11252
            ;;
11253
        esac
11254
        ;;
11255
      freebsd*)
11256
        # FreeBSD uses GNU C++
11257
        ;;
11258
      hpux9* | hpux10* | hpux11*)
11259
        case $cc_basename in
11260
          CC)
11261
            lt_prog_compiler_wl_CXX='-Wl,'
11262
            lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
11263
            if test "$host_cpu" != ia64; then
11264
              lt_prog_compiler_pic_CXX='+Z'
11265
            fi
11266
            ;;
11267
          aCC)
11268
            lt_prog_compiler_wl_CXX='-Wl,'
11269
            lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
11270
            case "$host_cpu" in
11271
            hppa*64*|ia64*)
11272
              # +Z the default
11273
              ;;
11274
            *)
11275
              lt_prog_compiler_pic_CXX='+Z'
11276
              ;;
11277
            esac
11278
            ;;
11279
          *)
11280
            ;;
11281
        esac
11282
        ;;
11283
      irix5* | irix6* | nonstopux*)
11284
        case $cc_basename in
11285
          CC)
11286
            lt_prog_compiler_wl_CXX='-Wl,'
11287
            lt_prog_compiler_static_CXX='-non_shared'
11288
            # CC pic flag -KPIC is the default.
11289
            ;;
11290
          *)
11291
            ;;
11292
        esac
11293
        ;;
11294
      linux*)
11295
        case $cc_basename in
11296
          KCC)
11297
            # KAI C++ Compiler
11298
            lt_prog_compiler_wl_CXX='--backend -Wl,'
11299
            lt_prog_compiler_pic_CXX='-fPIC'
11300
            ;;
11301
          icpc)
11302
            # Intel C++
11303
            lt_prog_compiler_wl_CXX='-Wl,'
11304
            lt_prog_compiler_pic_CXX='-KPIC'
11305
            lt_prog_compiler_static_CXX='-static'
11306
            ;;
11307
          cxx)
11308
            # Compaq C++
11309
            # Make sure the PIC flag is empty.  It appears that all Alpha
11310
            # Linux and Compaq Tru64 Unix objects are PIC.
11311
            lt_prog_compiler_pic_CXX=
11312
            lt_prog_compiler_static_CXX='-non_shared'
11313
            ;;
11314
          *)
11315
            ;;
11316
        esac
11317
        ;;
11318
      lynxos*)
11319
        ;;
11320
      m88k*)
11321
        ;;
11322
      mvs*)
11323
        case $cc_basename in
11324
          cxx)
11325
            lt_prog_compiler_pic_CXX='-Wextra c,exportall'
11326
            ;;
11327
          *)
11328
            ;;
11329
        esac
11330
        ;;
11331
      netbsd*)
11332
        ;;
11333
      osf3* | osf4* | osf5*)
11334
        case $cc_basename in
11335
          KCC)
11336
            lt_prog_compiler_wl_CXX='--backend -Wl,'
11337
            ;;
11338
          RCC)
11339
            # Rational C++ 2.4.1
11340
            lt_prog_compiler_pic_CXX='-pic'
11341
            ;;
11342
          cxx)
11343
            # Digital/Compaq C++
11344
            lt_prog_compiler_wl_CXX='-Wl,'
11345
            # Make sure the PIC flag is empty.  It appears that all Alpha
11346
            # Linux and Compaq Tru64 Unix objects are PIC.
11347
            lt_prog_compiler_pic_CXX=
11348
            lt_prog_compiler_static_CXX='-non_shared'
11349
            ;;
11350
          *)
11351
            ;;
11352
        esac
11353
        ;;
11354
      psos*)
11355
        ;;
11356
      sco*)
11357
        case $cc_basename in
11358
          CC)
11359
            lt_prog_compiler_pic_CXX='-fPIC'
11360
            ;;
11361
          *)
11362
            ;;
11363
        esac
11364
        ;;
11365
      solaris*)
11366
        case $cc_basename in
11367
          CC)
11368
            # Sun C++ 4.2, 5.x and Centerline C++
11369
            lt_prog_compiler_pic_CXX='-KPIC'
11370
            lt_prog_compiler_static_CXX='-Bstatic'
11371
            lt_prog_compiler_wl_CXX='-Qoption ld '
11372
            ;;
11373
          gcx)
11374
            # Green Hills C++ Compiler
11375
            lt_prog_compiler_pic_CXX='-PIC'
11376
            ;;
11377
          *)
11378
            ;;
11379
        esac
11380
        ;;
11381
      sunos4*)
11382
        case $cc_basename in
11383
          CC)
11384
            # Sun C++ 4.x
11385
            lt_prog_compiler_pic_CXX='-pic'
11386
            lt_prog_compiler_static_CXX='-Bstatic'
11387
            ;;
11388
          lcc)
11389
            # Lucid
11390
            lt_prog_compiler_pic_CXX='-pic'
11391
            ;;
11392
          *)
11393
            ;;
11394
        esac
11395
        ;;
11396
      tandem*)
11397
        case $cc_basename in
11398
          NCC)
11399
            # NonStop-UX NCC 3.20
11400
            lt_prog_compiler_pic_CXX='-KPIC'
11401
            ;;
11402
          *)
11403
            ;;
11404
        esac
11405
        ;;
11406
      unixware*)
11407
        ;;
11408
      vxworks*)
11409
        ;;
11410
      *)
11411
        lt_prog_compiler_can_build_shared_CXX=no
11412
        ;;
11413
    esac
11414
  fi
11415
 
11416
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11417
echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
11418
 
11419
#
11420
# Check to make sure the PIC flag actually works.
11421
#
11422
if test -n "$lt_prog_compiler_pic_CXX"; then
11423
  echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11424
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
11425
if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11426
  echo $ECHO_N "(cached) $ECHO_C" >&6
11427
else
11428
  lt_prog_compiler_pic_works_CXX=no
11429
  ac_outfile=conftest.$ac_objext
11430
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11431
   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11432
   # Insert the option either (1) after the last *FLAGS variable, or
11433
   # (2) before a word containing "conftest.", or (3) at the end.
11434
   # Note that $ac_compile itself does not contain backslashes and begins
11435
   # with a dollar sign (not a hyphen), so the echo should work correctly.
11436
   # The option is referenced via a variable to avoid confusing sed.
11437
   lt_compile=`echo "$ac_compile" | $SED \
11438
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11439
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11440
   -e 's:$: $lt_compiler_flag:'`
11441
   (eval echo "\"\$as_me:11441: $lt_compile\"" >&5)
11442
   (eval "$lt_compile" 2>conftest.err)
11443
   ac_status=$?
11444
   cat conftest.err >&5
11445
   echo "$as_me:11445: \$? = $ac_status" >&5
11446
   if (exit $ac_status) && test -s "$ac_outfile"; then
11447
     # The compiler can only warn and ignore the option if not recognized
11448
     # So say no if there are warnings
11449
     if test ! -s conftest.err; then
11450
       lt_prog_compiler_pic_works_CXX=yes
11451
     fi
11452
   fi
11453
   $rm conftest*
11454
 
11455
fi
11456
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11457
echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
11458
 
11459
if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11460
    case $lt_prog_compiler_pic_CXX in
11461
     "" | " "*) ;;
11462
     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11463
     esac
11464
else
11465
    lt_prog_compiler_pic_CXX=
11466
     lt_prog_compiler_can_build_shared_CXX=no
11467
fi
11468
 
11469
fi
11470
case "$host_os" in
11471
  # For platforms which do not support PIC, -DPIC is meaningless:
11472
  *djgpp*)
11473
    lt_prog_compiler_pic_CXX=
11474
    ;;
11475
  *)
11476
    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11477
    ;;
11478
esac
11479
 
11480
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11481
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11482
if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11483
  echo $ECHO_N "(cached) $ECHO_C" >&6
11484
else
11485
  lt_cv_prog_compiler_c_o_CXX=no
11486
   $rm -r conftest 2>/dev/null
11487
   mkdir conftest
11488
   cd conftest
11489
   mkdir out
11490
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11491
 
11492
   # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
11493
   # that will create temporary files in the current directory regardless of
11494
   # the output directory.  Thus, making CWD read-only will cause this test
11495
   # to fail, enabling locking or at least warning the user not to do parallel
11496
   # builds.
11497
   chmod -w .
11498
 
11499
   lt_compiler_flag="-o out/conftest2.$ac_objext"
11500
   # Insert the option either (1) after the last *FLAGS variable, or
11501
   # (2) before a word containing "conftest.", or (3) at the end.
11502
   # Note that $ac_compile itself does not contain backslashes and begins
11503
   # with a dollar sign (not a hyphen), so the echo should work correctly.
11504
   lt_compile=`echo "$ac_compile" | $SED \
11505
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11506
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11507
   -e 's:$: $lt_compiler_flag:'`
11508
   (eval echo "\"\$as_me:11508: $lt_compile\"" >&5)
11509
   (eval "$lt_compile" 2>out/conftest.err)
11510
   ac_status=$?
11511
   cat out/conftest.err >&5
11512
   echo "$as_me:11512: \$? = $ac_status" >&5
11513
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
11514
   then
11515
     # The compiler can only warn and ignore the option if not recognized
11516
     # So say no if there are warnings
11517
     if test ! -s out/conftest.err; then
11518
       lt_cv_prog_compiler_c_o_CXX=yes
11519
     fi
11520
   fi
11521
   chmod u+w .
11522
   $rm conftest* out/*
11523
   rmdir out
11524
   cd ..
11525
   rmdir conftest
11526
   $rm conftest*
11527
 
11528
fi
11529
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11530
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
11531
 
11532
 
11533
hard_links="nottested"
11534
if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11535
  # do not overwrite the value of need_locks provided by the user
11536
  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11537
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
11538
  hard_links=yes
11539
  $rm conftest*
11540
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
11541
  touch conftest.a
11542
  ln conftest.a conftest.b 2>&5 || hard_links=no
11543
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
11544
  echo "$as_me:$LINENO: result: $hard_links" >&5
11545
echo "${ECHO_T}$hard_links" >&6
11546
  if test "$hard_links" = no; then
11547
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11548
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11549
    need_locks=warn
11550
  fi
11551
else
11552
  need_locks=no
11553
fi
11554
 
11555
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11556
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11557
 
11558
  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11559
  case $host_os in
11560
  aix4* | aix5*)
11561
    # If we're using GNU nm, then we don't want the "-C" option.
11562
    # -C means demangle to AIX nm, but means don't demangle with GNU nm
11563
    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11564
      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'
11565
    else
11566
      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'
11567
    fi
11568
    ;;
11569
  pw32*)
11570
    export_symbols_cmds_CXX="$ltdll_cmds"
11571
  ;;
11572
  cygwin* | mingw*)
11573
    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
11574
  ;;
11575
  *)
11576
    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11577
  ;;
11578
  esac
11579
 
11580
echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11581
echo "${ECHO_T}$ld_shlibs_CXX" >&6
11582
test "$ld_shlibs_CXX" = no && can_build_shared=no
11583
 
11584
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11585
if test "$GCC" = yes; then
11586
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11587
fi
11588
 
11589
#
11590
# Do we need to explicitly link libc?
11591
#
11592
case "x$archive_cmds_need_lc_CXX" in
11593
x|xyes)
11594
  # Assume -lc should be added
11595
  archive_cmds_need_lc_CXX=yes
11596
 
11597
  if test "$enable_shared" = yes && test "$GCC" = yes; then
11598
    case $archive_cmds_CXX in
11599
    *'~'*)
11600
      # FIXME: we may have to deal with multi-command sequences.
11601
      ;;
11602
    '$CC '*)
11603
      # Test whether the compiler implicitly links with -lc since on some
11604
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
11605
      # to ld, don't add -lc before -lgcc.
11606
      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11607
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
11608
      $rm conftest*
11609
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11610
 
11611
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11612
  (eval $ac_compile) 2>&5
11613
  ac_status=$?
11614
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11615
  (exit $ac_status); } 2>conftest.err; then
11616
        soname=conftest
11617
        lib=conftest
11618
        libobjs=conftest.$ac_objext
11619
        deplibs=
11620
        wl=$lt_prog_compiler_wl_CXX
11621
        compiler_flags=-v
11622
        linker_flags=-v
11623
        verstring=
11624
        output_objdir=.
11625
        libname=conftest
11626
        lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11627
        allow_undefined_flag_CXX=
11628
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11629
  (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11630
  ac_status=$?
11631
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11632
  (exit $ac_status); }
11633
        then
11634
          archive_cmds_need_lc_CXX=no
11635
        else
11636
          archive_cmds_need_lc_CXX=yes
11637
        fi
11638
        allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11639
      else
11640
        cat conftest.err 1>&5
11641
      fi
11642
      $rm conftest*
11643
      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11644
echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
11645
      ;;
11646
    esac
11647
  fi
11648
  ;;
11649
esac
11650
 
11651
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11652
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
11653
hardcode_action_CXX=
11654
if test -n "$hardcode_libdir_flag_spec_CXX" || \
11655
   test -n "$runpath_var CXX" || \
11656
   test "X$hardcode_automatic_CXX"="Xyes" ; then
11657
 
11658
  # We can hardcode non-existant directories.
11659
  if test "$hardcode_direct_CXX" != no &&
11660
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
11661
     # have to relink, otherwise we might link with an installed library
11662
     # when we should be linking with a yet-to-be-installed one
11663
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
11664
     test "$hardcode_minus_L_CXX" != no; then
11665
    # Linking always hardcodes the temporary library directory.
11666
    hardcode_action_CXX=relink
11667
  else
11668
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
11669
    hardcode_action_CXX=immediate
11670
  fi
11671
else
11672
  # We cannot hardcode anything, or else we can only hardcode existing
11673
  # directories.
11674
  hardcode_action_CXX=unsupported
11675
fi
11676
echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
11677
echo "${ECHO_T}$hardcode_action_CXX" >&6
11678
 
11679
if test "$hardcode_action_CXX" = relink; then
11680
  # Fast installation is not supported
11681
  enable_fast_install=no
11682
elif test "$shlibpath_overrides_runpath" = yes ||
11683
     test "$enable_shared" = no; then
11684
  # Fast installation is not necessary
11685
  enable_fast_install=needless
11686
fi
11687
 
11688
striplib=
11689
old_striplib=
11690
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11691
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
11692
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
11693
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11694
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11695
  echo "$as_me:$LINENO: result: yes" >&5
11696
echo "${ECHO_T}yes" >&6
11697
else
11698
# FIXME - insert some real tests, host_os isn't really good enough
11699
  case $host_os in
11700
   darwin*)
11701
       if test -n "$STRIP" ; then
11702
         striplib="$STRIP -x"
11703
         echo "$as_me:$LINENO: result: yes" >&5
11704
echo "${ECHO_T}yes" >&6
11705
       else
11706
  echo "$as_me:$LINENO: result: no" >&5
11707
echo "${ECHO_T}no" >&6
11708
fi
11709
       ;;
11710
   *)
11711
  echo "$as_me:$LINENO: result: no" >&5
11712
echo "${ECHO_T}no" >&6
11713
    ;;
11714
  esac
11715
fi
11716
 
11717
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11718
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11719
library_names_spec=
11720
libname_spec='lib$name'
11721
soname_spec=
11722
shrext=".so"
11723
postinstall_cmds=
11724
postuninstall_cmds=
11725
finish_cmds=
11726
finish_eval=
11727
shlibpath_var=
11728
shlibpath_overrides_runpath=unknown
11729
version_type=none
11730
dynamic_linker="$host_os ld.so"
11731
sys_lib_dlsearch_path_spec="/lib /usr/lib"
11732
if test "$GCC" = yes; then
11733
  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11734
  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11735
    # if the path contains ";" then we assume it to be the separator
11736
    # otherwise default to the standard path separator (i.e. ":") - it is
11737
    # assumed that no part of a normal pathname contains ";" but that should
11738
    # okay in the real world where ";" in dirpaths is itself problematic.
11739
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11740
  else
11741
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11742
  fi
11743
else
11744
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11745
fi
11746
need_lib_prefix=unknown
11747
hardcode_into_libs=no
11748
 
11749
# when you set need_version to no, make sure it does not cause -set_version
11750
# flags to be left without arguments
11751
need_version=unknown
11752
 
11753
case $host_os in
11754
aix3*)
11755
  version_type=linux
11756
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11757
  shlibpath_var=LIBPATH
11758
 
11759
  # AIX 3 has no versioning support, so we append a major version to the name.
11760
  soname_spec='${libname}${release}${shared_ext}$major'
11761
  ;;
11762
 
11763
aix4* | aix5*)
11764
  version_type=linux
11765
  need_lib_prefix=no
11766
  need_version=no
11767
  hardcode_into_libs=yes
11768
  if test "$host_cpu" = ia64; then
11769
    # AIX 5 supports IA64
11770
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11771
    shlibpath_var=LD_LIBRARY_PATH
11772
  else
11773
    # With GCC up to 2.95.x, collect2 would create an import file
11774
    # for dependence libraries.  The import file would start with
11775
    # the line `#! .'.  This would cause the generated library to
11776
    # depend on `.', always an invalid library.  This was fixed in
11777
    # development snapshots of GCC prior to 3.0.
11778
    case $host_os in
11779
      aix4 | aix4.[01] | aix4.[01].*)
11780
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11781
           echo ' yes '
11782
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11783
        :
11784
      else
11785
        can_build_shared=no
11786
      fi
11787
      ;;
11788
    esac
11789
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11790
    # soname into executable. Probably we can add versioning support to
11791
    # collect2, so additional links can be useful in future.
11792
    if test "$aix_use_runtimelinking" = yes; then
11793
      # If using run time linking (on AIX 4.2 or later) use lib.so
11794
      # instead of lib.a to let people know that these are not
11795
      # typical AIX shared libraries.
11796
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11797
    else
11798
      # We preserve .a as extension for shared libraries through AIX4.2
11799
      # and later when we are not doing run time linking.
11800
      library_names_spec='${libname}${release}.a $libname.a'
11801
      soname_spec='${libname}${release}${shared_ext}$major'
11802
    fi
11803
    shlibpath_var=LIBPATH
11804
  fi
11805
  ;;
11806
 
11807
amigaos*)
11808
  library_names_spec='$libname.ixlibrary $libname.a'
11809
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
11810
  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'
11811
  ;;
11812
 
11813
beos*)
11814
  library_names_spec='${libname}${shared_ext}'
11815
  dynamic_linker="$host_os ld.so"
11816
  shlibpath_var=LIBRARY_PATH
11817
  ;;
11818
 
11819
bsdi4*)
11820
  version_type=linux
11821
  need_version=no
11822
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11823
  soname_spec='${libname}${release}${shared_ext}$major'
11824
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11825
  shlibpath_var=LD_LIBRARY_PATH
11826
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11827
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11828
  # the default ld.so.conf also contains /usr/contrib/lib and
11829
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11830
  # libtool to hard-code these into programs
11831
  ;;
11832
 
11833
cygwin* | mingw* | pw32*)
11834
  version_type=windows
11835
  shrext=".dll"
11836
  need_version=no
11837
  need_lib_prefix=no
11838
 
11839
  case $GCC,$host_os in
11840
  yes,cygwin* | yes,mingw* | yes,pw32*)
11841
    library_names_spec='$libname.dll.a'
11842
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
11843
    postinstall_cmds='base_file=`basename \${file}`~
11844
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11845
      dldir=$destdir/`dirname \$dlpath`~
11846
      test -d \$dldir || mkdir -p \$dldir~
11847
      $install_prog $dir/$dlname \$dldir/$dlname'
11848
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11849
      dlpath=$dir/\$dldll~
11850
       $rm \$dlpath'
11851
    shlibpath_overrides_runpath=yes
11852
 
11853
    case $host_os in
11854
    cygwin*)
11855
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11856
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11857
      sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
11858
      ;;
11859
    mingw*)
11860
      # MinGW DLLs use traditional 'lib' prefix
11861
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11862
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11863
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11864
        # It is most probably a Windows format PATH printed by
11865
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
11866
        # path with ; separators, and with drive letters. We can handle the
11867
        # drive letters (cygwin fileutils understands them), so leave them,
11868
        # especially as we might pass files found there to a mingw objdump,
11869
        # which wouldn't understand a cygwinified path. Ahh.
11870
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11871
      else
11872
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11873
      fi
11874
      ;;
11875
    pw32*)
11876
      # pw32 DLLs use 'pw' prefix rather than 'lib'
11877
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
11878
      ;;
11879
    esac
11880
    ;;
11881
 
11882
  *)
11883
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11884
    ;;
11885
  esac
11886
  dynamic_linker='Win32 ld.exe'
11887
  # FIXME: first we should search . and the directory the executable is in
11888
  shlibpath_var=PATH
11889
  ;;
11890
 
11891
darwin* | rhapsody*)
11892
  dynamic_linker="$host_os dyld"
11893
  version_type=darwin
11894
  need_lib_prefix=no
11895
  need_version=no
11896
  # FIXME: Relying on posixy $() will cause problems for
11897
  #        cross-compilation, but unfortunately the echo tests do not
11898
  #        yet detect zsh echo's removal of \ escapes.
11899
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11900
  soname_spec='${libname}${release}${major}$shared_ext'
11901
  shlibpath_overrides_runpath=yes
11902
  shlibpath_var=DYLD_LIBRARY_PATH
11903
  shrext='$(test .$module = .yes && echo .so || echo .dylib)'
11904
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11905
  if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
11906
  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"`
11907
  fi
11908
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11909
  ;;
11910
 
11911
dgux*)
11912
  version_type=linux
11913
  need_lib_prefix=no
11914
  need_version=no
11915
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11916
  soname_spec='${libname}${release}${shared_ext}$major'
11917
  shlibpath_var=LD_LIBRARY_PATH
11918
  ;;
11919
 
11920
freebsd1*)
11921
  dynamic_linker=no
11922
  ;;
11923
 
11924
freebsd*)
11925
  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
11926
  version_type=freebsd-$objformat
11927
  case $version_type in
11928
    freebsd-elf*)
11929
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11930
      need_version=no
11931
      need_lib_prefix=no
11932
      ;;
11933
    freebsd-*)
11934
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11935
      need_version=yes
11936
      ;;
11937
  esac
11938
  shlibpath_var=LD_LIBRARY_PATH
11939
  case $host_os in
11940
  freebsd2*)
11941
    shlibpath_overrides_runpath=yes
11942
    ;;
11943
  freebsd3.01* | freebsdelf3.01*)
11944
    shlibpath_overrides_runpath=yes
11945
    hardcode_into_libs=yes
11946
    ;;
11947
  *) # from 3.2 on
11948
    shlibpath_overrides_runpath=no
11949
    hardcode_into_libs=yes
11950
    ;;
11951
  esac
11952
  ;;
11953
 
11954
gnu*)
11955
  version_type=linux
11956
  need_lib_prefix=no
11957
  need_version=no
11958
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11959
  soname_spec='${libname}${release}${shared_ext}$major'
11960
  shlibpath_var=LD_LIBRARY_PATH
11961
  hardcode_into_libs=yes
11962
  ;;
11963
 
11964
hpux9* | hpux10* | hpux11*)
11965
  # Give a soname corresponding to the major version so that dld.sl refuses to
11966
  # link against other versions.
11967
  version_type=sunos
11968
  need_lib_prefix=no
11969
  need_version=no
11970
  case "$host_cpu" in
11971
  ia64*)
11972
    shrext='.so'
11973
    hardcode_into_libs=yes
11974
    dynamic_linker="$host_os dld.so"
11975
    shlibpath_var=LD_LIBRARY_PATH
11976
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11977
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11978
    soname_spec='${libname}${release}${shared_ext}$major'
11979
    if test "X$HPUX_IA64_MODE" = X32; then
11980
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11981
    else
11982
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11983
    fi
11984
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11985
    ;;
11986
   hppa*64*)
11987
     shrext='.sl'
11988
     hardcode_into_libs=yes
11989
     dynamic_linker="$host_os dld.sl"
11990
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11991
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11992
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11993
     soname_spec='${libname}${release}${shared_ext}$major'
11994
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11995
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11996
     ;;
11997
   *)
11998
    shrext='.sl'
11999
    dynamic_linker="$host_os dld.sl"
12000
    shlibpath_var=SHLIB_PATH
12001
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12002
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12003
    soname_spec='${libname}${release}${shared_ext}$major'
12004
    ;;
12005
  esac
12006
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
12007
  postinstall_cmds='chmod 555 $lib'
12008
  ;;
12009
 
12010
irix5* | irix6* | nonstopux*)
12011
  case $host_os in
12012
    nonstopux*) version_type=nonstopux ;;
12013
    *)
12014
        if test "$lt_cv_prog_gnu_ld" = yes; then
12015
                version_type=linux
12016
        else
12017
                version_type=irix
12018
        fi ;;
12019
  esac
12020
  need_lib_prefix=no
12021
  need_version=no
12022
  soname_spec='${libname}${release}${shared_ext}$major'
12023
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12024
  case $host_os in
12025
  irix5* | nonstopux*)
12026
    libsuff= shlibsuff=
12027
    ;;
12028
  *)
12029
    case $LD in # libtool.m4 will add one of these switches to LD
12030
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12031
      libsuff= shlibsuff= libmagic=32-bit;;
12032
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12033
      libsuff=32 shlibsuff=N32 libmagic=N32;;
12034
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12035
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
12036
    *) libsuff= shlibsuff= libmagic=never-match;;
12037
    esac
12038
    ;;
12039
  esac
12040
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12041
  shlibpath_overrides_runpath=no
12042
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12043
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12044
  hardcode_into_libs=yes
12045
  ;;
12046
 
12047
# No shared lib support for Linux oldld, aout, or coff.
12048
linux*oldld* | linux*aout* | linux*coff*)
12049
  dynamic_linker=no
12050
  ;;
12051
 
12052
# This must be Linux ELF.
12053
linux*)
12054
  version_type=linux
12055
  need_lib_prefix=no
12056
  need_version=no
12057
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12058
  soname_spec='${libname}${release}${shared_ext}$major'
12059
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12060
  shlibpath_var=LD_LIBRARY_PATH
12061
  shlibpath_overrides_runpath=no
12062
  # This implies no fast_install, which is unacceptable.
12063
  # Some rework will be needed to allow for fast_install
12064
  # before this can be enabled.
12065
  hardcode_into_libs=yes
12066
 
12067
  # We used to test for /lib/ld.so.1 and disable shared libraries on
12068
  # powerpc, because MkLinux only supported shared libraries with the
12069
  # GNU dynamic linker.  Since this was broken with cross compilers,
12070
  # most powerpc-linux boxes support dynamic linking these days and
12071
  # people can always --disable-shared, the test was removed, and we
12072
  # assume the GNU/Linux dynamic linker is in use.
12073
  dynamic_linker='GNU/Linux ld.so'
12074
  ;;
12075
 
12076
netbsd*)
12077
  version_type=sunos
12078
  need_lib_prefix=no
12079
  need_version=no
12080
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12081
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12082
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12083
    dynamic_linker='NetBSD (a.out) ld.so'
12084
  else
12085
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
12086
    soname_spec='${libname}${release}${shared_ext}$major'
12087
    dynamic_linker='NetBSD ld.elf_so'
12088
  fi
12089
  shlibpath_var=LD_LIBRARY_PATH
12090
  shlibpath_overrides_runpath=yes
12091
  hardcode_into_libs=yes
12092
  ;;
12093
 
12094
newsos6)
12095
  version_type=linux
12096
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12097
  shlibpath_var=LD_LIBRARY_PATH
12098
  shlibpath_overrides_runpath=yes
12099
  ;;
12100
 
12101
nto-qnx)
12102
  version_type=linux
12103
  need_lib_prefix=no
12104
  need_version=no
12105
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12106
  soname_spec='${libname}${release}${shared_ext}$major'
12107
  shlibpath_var=LD_LIBRARY_PATH
12108
  shlibpath_overrides_runpath=yes
12109
  ;;
12110
 
12111
openbsd*)
12112
  version_type=sunos
12113
  need_lib_prefix=no
12114
  need_version=no
12115
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12116
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12117
  shlibpath_var=LD_LIBRARY_PATH
12118
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12119
    case $host_os in
12120
      openbsd2.[89] | openbsd2.[89].*)
12121
        shlibpath_overrides_runpath=no
12122
        ;;
12123
      *)
12124
        shlibpath_overrides_runpath=yes
12125
        ;;
12126
      esac
12127
  else
12128
    shlibpath_overrides_runpath=yes
12129
  fi
12130
  ;;
12131
 
12132
os2*)
12133
  libname_spec='$name'
12134
  shrext=".dll"
12135
  need_lib_prefix=no
12136
  library_names_spec='$libname${shared_ext} $libname.a'
12137
  dynamic_linker='OS/2 ld.exe'
12138
  shlibpath_var=LIBPATH
12139
  ;;
12140
 
12141
osf3* | osf4* | osf5*)
12142
  version_type=osf
12143
  need_lib_prefix=no
12144
  need_version=no
12145
  soname_spec='${libname}${release}${shared_ext}$major'
12146
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12147
  shlibpath_var=LD_LIBRARY_PATH
12148
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12149
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12150
  ;;
12151
 
12152
sco3.2v5*)
12153
  version_type=osf
12154
  soname_spec='${libname}${release}${shared_ext}$major'
12155
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12156
  shlibpath_var=LD_LIBRARY_PATH
12157
  ;;
12158
 
12159
solaris*)
12160
  version_type=linux
12161
  need_lib_prefix=no
12162
  need_version=no
12163
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12164
  soname_spec='${libname}${release}${shared_ext}$major'
12165
  shlibpath_var=LD_LIBRARY_PATH
12166
  shlibpath_overrides_runpath=yes
12167
  hardcode_into_libs=yes
12168
  # ldd complains unless libraries are executable
12169
  postinstall_cmds='chmod +x $lib'
12170
  ;;
12171
 
12172
sunos4*)
12173
  version_type=sunos
12174
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12175
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12176
  shlibpath_var=LD_LIBRARY_PATH
12177
  shlibpath_overrides_runpath=yes
12178
  if test "$with_gnu_ld" = yes; then
12179
    need_lib_prefix=no
12180
  fi
12181
  need_version=yes
12182
  ;;
12183
 
12184
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12185
  version_type=linux
12186
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12187
  soname_spec='${libname}${release}${shared_ext}$major'
12188
  shlibpath_var=LD_LIBRARY_PATH
12189
  case $host_vendor in
12190
    sni)
12191
      shlibpath_overrides_runpath=no
12192
      need_lib_prefix=no
12193
      export_dynamic_flag_spec='${wl}-Blargedynsym'
12194
      runpath_var=LD_RUN_PATH
12195
      ;;
12196
    siemens)
12197
      need_lib_prefix=no
12198
      ;;
12199
    motorola)
12200
      need_lib_prefix=no
12201
      need_version=no
12202
      shlibpath_overrides_runpath=no
12203
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12204
      ;;
12205
  esac
12206
  ;;
12207
 
12208
sysv4*MP*)
12209
  if test -d /usr/nec ;then
12210
    version_type=linux
12211
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12212
    soname_spec='$libname${shared_ext}.$major'
12213
    shlibpath_var=LD_LIBRARY_PATH
12214
  fi
12215
  ;;
12216
 
12217
uts4*)
12218
  version_type=linux
12219
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12220
  soname_spec='${libname}${release}${shared_ext}$major'
12221
  shlibpath_var=LD_LIBRARY_PATH
12222
  ;;
12223
 
12224
*)
12225
  dynamic_linker=no
12226
  ;;
12227
esac
12228
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
12229
echo "${ECHO_T}$dynamic_linker" >&6
12230
test "$dynamic_linker" = no && can_build_shared=no
12231
 
12232
if test "x$enable_dlopen" != xyes; then
12233
  enable_dlopen=unknown
12234
  enable_dlopen_self=unknown
12235
  enable_dlopen_self_static=unknown
12236
else
12237
  lt_cv_dlopen=no
12238
  lt_cv_dlopen_libs=
12239
 
12240
  case $host_os in
12241
  beos*)
12242
    lt_cv_dlopen="load_add_on"
12243
    lt_cv_dlopen_libs=
12244
    lt_cv_dlopen_self=yes
12245
    ;;
12246
 
12247
  mingw* | pw32*)
12248
    lt_cv_dlopen="LoadLibrary"
12249
    lt_cv_dlopen_libs=
12250
   ;;
12251
 
12252
  cygwin*)
12253
    lt_cv_dlopen="dlopen"
12254
    lt_cv_dlopen_libs=
12255
   ;;
12256
 
12257
  darwin*)
12258
  # if libdl is installed we need to link against it
12259
    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12260
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12261
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12262
  echo $ECHO_N "(cached) $ECHO_C" >&6
12263
else
12264
  ac_check_lib_save_LIBS=$LIBS
12265
LIBS="-ldl  $LIBS"
12266
cat >conftest.$ac_ext <<_ACEOF
12267
/* confdefs.h.  */
12268
_ACEOF
12269
cat confdefs.h >>conftest.$ac_ext
12270
cat >>conftest.$ac_ext <<_ACEOF
12271
/* end confdefs.h.  */
12272
 
12273
/* Override any gcc2 internal prototype to avoid an error.  */
12274
#ifdef __cplusplus
12275
extern "C"
12276
#endif
12277
/* We use char because int might match the return type of a gcc2
12278
   builtin and then its argument prototype would still apply.  */
12279
char dlopen ();
12280
int
12281
main ()
12282
{
12283
dlopen ();
12284
  ;
12285
  return 0;
12286
}
12287
_ACEOF
12288
rm -f conftest.$ac_objext conftest$ac_exeext
12289
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12290
  (eval $ac_link) 2>conftest.er1
12291
  ac_status=$?
12292
  grep -v '^ *+' conftest.er1 >conftest.err
12293
  rm -f conftest.er1
12294
  cat conftest.err >&5
12295
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12296
  (exit $ac_status); } &&
12297
         { ac_try='test -z "$ac_cxx_werror_flag"
12298
                         || test ! -s conftest.err'
12299
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12300
  (eval $ac_try) 2>&5
12301
  ac_status=$?
12302
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12303
  (exit $ac_status); }; } &&
12304
         { ac_try='test -s conftest$ac_exeext'
12305
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12306
  (eval $ac_try) 2>&5
12307
  ac_status=$?
12308
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12309
  (exit $ac_status); }; }; then
12310
  ac_cv_lib_dl_dlopen=yes
12311
else
12312
  echo "$as_me: failed program was:" >&5
12313
sed 's/^/| /' conftest.$ac_ext >&5
12314
 
12315
ac_cv_lib_dl_dlopen=no
12316
fi
12317
rm -f conftest.err conftest.$ac_objext \
12318
      conftest$ac_exeext conftest.$ac_ext
12319
LIBS=$ac_check_lib_save_LIBS
12320
fi
12321
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12322
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12323
if test $ac_cv_lib_dl_dlopen = yes; then
12324
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12325
else
12326
 
12327
    lt_cv_dlopen="dyld"
12328
    lt_cv_dlopen_libs=
12329
    lt_cv_dlopen_self=yes
12330
 
12331
fi
12332
 
12333
   ;;
12334
 
12335
  *)
12336
    echo "$as_me:$LINENO: checking for shl_load" >&5
12337
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
12338
if test "${ac_cv_func_shl_load+set}" = set; then
12339
  echo $ECHO_N "(cached) $ECHO_C" >&6
12340
else
12341
  cat >conftest.$ac_ext <<_ACEOF
12342
/* confdefs.h.  */
12343
_ACEOF
12344
cat confdefs.h >>conftest.$ac_ext
12345
cat >>conftest.$ac_ext <<_ACEOF
12346
/* end confdefs.h.  */
12347
/* Define shl_load to an innocuous variant, in case  declares shl_load.
12348
   For example, HP-UX 11i  declares gettimeofday.  */
12349
#define shl_load innocuous_shl_load
12350
 
12351
/* System header to define __stub macros and hopefully few prototypes,
12352
    which can conflict with char shl_load (); below.
12353
    Prefer  to  if __STDC__ is defined, since
12354
     exists even on freestanding compilers.  */
12355
 
12356
#ifdef __STDC__
12357
# include 
12358
#else
12359
# include 
12360
#endif
12361
 
12362
#undef shl_load
12363
 
12364
/* Override any gcc2 internal prototype to avoid an error.  */
12365
#ifdef __cplusplus
12366
extern "C"
12367
{
12368
#endif
12369
/* We use char because int might match the return type of a gcc2
12370
   builtin and then its argument prototype would still apply.  */
12371
char shl_load ();
12372
/* The GNU C library defines this for functions which it implements
12373
    to always fail with ENOSYS.  Some functions are actually named
12374
    something starting with __ and the normal name is an alias.  */
12375
#if defined (__stub_shl_load) || defined (__stub___shl_load)
12376
choke me
12377
#else
12378
char (*f) () = shl_load;
12379
#endif
12380
#ifdef __cplusplus
12381
}
12382
#endif
12383
 
12384
int
12385
main ()
12386
{
12387
return f != shl_load;
12388
  ;
12389
  return 0;
12390
}
12391
_ACEOF
12392
rm -f conftest.$ac_objext conftest$ac_exeext
12393
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12394
  (eval $ac_link) 2>conftest.er1
12395
  ac_status=$?
12396
  grep -v '^ *+' conftest.er1 >conftest.err
12397
  rm -f conftest.er1
12398
  cat conftest.err >&5
12399
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12400
  (exit $ac_status); } &&
12401
         { ac_try='test -z "$ac_cxx_werror_flag"
12402
                         || test ! -s conftest.err'
12403
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12404
  (eval $ac_try) 2>&5
12405
  ac_status=$?
12406
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12407
  (exit $ac_status); }; } &&
12408
         { ac_try='test -s conftest$ac_exeext'
12409
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12410
  (eval $ac_try) 2>&5
12411
  ac_status=$?
12412
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12413
  (exit $ac_status); }; }; then
12414
  ac_cv_func_shl_load=yes
12415
else
12416
  echo "$as_me: failed program was:" >&5
12417
sed 's/^/| /' conftest.$ac_ext >&5
12418
 
12419
ac_cv_func_shl_load=no
12420
fi
12421
rm -f conftest.err conftest.$ac_objext \
12422
      conftest$ac_exeext conftest.$ac_ext
12423
fi
12424
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12425
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
12426
if test $ac_cv_func_shl_load = yes; then
12427
  lt_cv_dlopen="shl_load"
12428
else
12429
  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12430
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
12431
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12432
  echo $ECHO_N "(cached) $ECHO_C" >&6
12433
else
12434
  ac_check_lib_save_LIBS=$LIBS
12435
LIBS="-ldld  $LIBS"
12436
cat >conftest.$ac_ext <<_ACEOF
12437
/* confdefs.h.  */
12438
_ACEOF
12439
cat confdefs.h >>conftest.$ac_ext
12440
cat >>conftest.$ac_ext <<_ACEOF
12441
/* end confdefs.h.  */
12442
 
12443
/* Override any gcc2 internal prototype to avoid an error.  */
12444
#ifdef __cplusplus
12445
extern "C"
12446
#endif
12447
/* We use char because int might match the return type of a gcc2
12448
   builtin and then its argument prototype would still apply.  */
12449
char shl_load ();
12450
int
12451
main ()
12452
{
12453
shl_load ();
12454
  ;
12455
  return 0;
12456
}
12457
_ACEOF
12458
rm -f conftest.$ac_objext conftest$ac_exeext
12459
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12460
  (eval $ac_link) 2>conftest.er1
12461
  ac_status=$?
12462
  grep -v '^ *+' conftest.er1 >conftest.err
12463
  rm -f conftest.er1
12464
  cat conftest.err >&5
12465
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12466
  (exit $ac_status); } &&
12467
         { ac_try='test -z "$ac_cxx_werror_flag"
12468
                         || test ! -s conftest.err'
12469
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12470
  (eval $ac_try) 2>&5
12471
  ac_status=$?
12472
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12473
  (exit $ac_status); }; } &&
12474
         { ac_try='test -s conftest$ac_exeext'
12475
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12476
  (eval $ac_try) 2>&5
12477
  ac_status=$?
12478
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12479
  (exit $ac_status); }; }; then
12480
  ac_cv_lib_dld_shl_load=yes
12481
else
12482
  echo "$as_me: failed program was:" >&5
12483
sed 's/^/| /' conftest.$ac_ext >&5
12484
 
12485
ac_cv_lib_dld_shl_load=no
12486
fi
12487
rm -f conftest.err conftest.$ac_objext \
12488
      conftest$ac_exeext conftest.$ac_ext
12489
LIBS=$ac_check_lib_save_LIBS
12490
fi
12491
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12492
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
12493
if test $ac_cv_lib_dld_shl_load = yes; then
12494
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
12495
else
12496
  echo "$as_me:$LINENO: checking for dlopen" >&5
12497
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
12498
if test "${ac_cv_func_dlopen+set}" = set; then
12499
  echo $ECHO_N "(cached) $ECHO_C" >&6
12500
else
12501
  cat >conftest.$ac_ext <<_ACEOF
12502
/* confdefs.h.  */
12503
_ACEOF
12504
cat confdefs.h >>conftest.$ac_ext
12505
cat >>conftest.$ac_ext <<_ACEOF
12506
/* end confdefs.h.  */
12507
/* Define dlopen to an innocuous variant, in case  declares dlopen.
12508
   For example, HP-UX 11i  declares gettimeofday.  */
12509
#define dlopen innocuous_dlopen
12510
 
12511
/* System header to define __stub macros and hopefully few prototypes,
12512
    which can conflict with char dlopen (); below.
12513
    Prefer  to  if __STDC__ is defined, since
12514
     exists even on freestanding compilers.  */
12515
 
12516
#ifdef __STDC__
12517
# include 
12518
#else
12519
# include 
12520
#endif
12521
 
12522
#undef dlopen
12523
 
12524
/* Override any gcc2 internal prototype to avoid an error.  */
12525
#ifdef __cplusplus
12526
extern "C"
12527
{
12528
#endif
12529
/* We use char because int might match the return type of a gcc2
12530
   builtin and then its argument prototype would still apply.  */
12531
char dlopen ();
12532
/* The GNU C library defines this for functions which it implements
12533
    to always fail with ENOSYS.  Some functions are actually named
12534
    something starting with __ and the normal name is an alias.  */
12535
#if defined (__stub_dlopen) || defined (__stub___dlopen)
12536
choke me
12537
#else
12538
char (*f) () = dlopen;
12539
#endif
12540
#ifdef __cplusplus
12541
}
12542
#endif
12543
 
12544
int
12545
main ()
12546
{
12547
return f != dlopen;
12548
  ;
12549
  return 0;
12550
}
12551
_ACEOF
12552
rm -f conftest.$ac_objext conftest$ac_exeext
12553
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12554
  (eval $ac_link) 2>conftest.er1
12555
  ac_status=$?
12556
  grep -v '^ *+' conftest.er1 >conftest.err
12557
  rm -f conftest.er1
12558
  cat conftest.err >&5
12559
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12560
  (exit $ac_status); } &&
12561
         { ac_try='test -z "$ac_cxx_werror_flag"
12562
                         || test ! -s conftest.err'
12563
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12564
  (eval $ac_try) 2>&5
12565
  ac_status=$?
12566
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12567
  (exit $ac_status); }; } &&
12568
         { ac_try='test -s conftest$ac_exeext'
12569
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12570
  (eval $ac_try) 2>&5
12571
  ac_status=$?
12572
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12573
  (exit $ac_status); }; }; then
12574
  ac_cv_func_dlopen=yes
12575
else
12576
  echo "$as_me: failed program was:" >&5
12577
sed 's/^/| /' conftest.$ac_ext >&5
12578
 
12579
ac_cv_func_dlopen=no
12580
fi
12581
rm -f conftest.err conftest.$ac_objext \
12582
      conftest$ac_exeext conftest.$ac_ext
12583
fi
12584
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12585
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
12586
if test $ac_cv_func_dlopen = yes; then
12587
  lt_cv_dlopen="dlopen"
12588
else
12589
  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12590
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12591
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12592
  echo $ECHO_N "(cached) $ECHO_C" >&6
12593
else
12594
  ac_check_lib_save_LIBS=$LIBS
12595
LIBS="-ldl  $LIBS"
12596
cat >conftest.$ac_ext <<_ACEOF
12597
/* confdefs.h.  */
12598
_ACEOF
12599
cat confdefs.h >>conftest.$ac_ext
12600
cat >>conftest.$ac_ext <<_ACEOF
12601
/* end confdefs.h.  */
12602
 
12603
/* Override any gcc2 internal prototype to avoid an error.  */
12604
#ifdef __cplusplus
12605
extern "C"
12606
#endif
12607
/* We use char because int might match the return type of a gcc2
12608
   builtin and then its argument prototype would still apply.  */
12609
char dlopen ();
12610
int
12611
main ()
12612
{
12613
dlopen ();
12614
  ;
12615
  return 0;
12616
}
12617
_ACEOF
12618
rm -f conftest.$ac_objext conftest$ac_exeext
12619
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12620
  (eval $ac_link) 2>conftest.er1
12621
  ac_status=$?
12622
  grep -v '^ *+' conftest.er1 >conftest.err
12623
  rm -f conftest.er1
12624
  cat conftest.err >&5
12625
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12626
  (exit $ac_status); } &&
12627
         { ac_try='test -z "$ac_cxx_werror_flag"
12628
                         || test ! -s conftest.err'
12629
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12630
  (eval $ac_try) 2>&5
12631
  ac_status=$?
12632
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12633
  (exit $ac_status); }; } &&
12634
         { ac_try='test -s conftest$ac_exeext'
12635
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12636
  (eval $ac_try) 2>&5
12637
  ac_status=$?
12638
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12639
  (exit $ac_status); }; }; then
12640
  ac_cv_lib_dl_dlopen=yes
12641
else
12642
  echo "$as_me: failed program was:" >&5
12643
sed 's/^/| /' conftest.$ac_ext >&5
12644
 
12645
ac_cv_lib_dl_dlopen=no
12646
fi
12647
rm -f conftest.err conftest.$ac_objext \
12648
      conftest$ac_exeext conftest.$ac_ext
12649
LIBS=$ac_check_lib_save_LIBS
12650
fi
12651
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12652
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12653
if test $ac_cv_lib_dl_dlopen = yes; then
12654
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12655
else
12656
  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12657
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
12658
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12659
  echo $ECHO_N "(cached) $ECHO_C" >&6
12660
else
12661
  ac_check_lib_save_LIBS=$LIBS
12662
LIBS="-lsvld  $LIBS"
12663
cat >conftest.$ac_ext <<_ACEOF
12664
/* confdefs.h.  */
12665
_ACEOF
12666
cat confdefs.h >>conftest.$ac_ext
12667
cat >>conftest.$ac_ext <<_ACEOF
12668
/* end confdefs.h.  */
12669
 
12670
/* Override any gcc2 internal prototype to avoid an error.  */
12671
#ifdef __cplusplus
12672
extern "C"
12673
#endif
12674
/* We use char because int might match the return type of a gcc2
12675
   builtin and then its argument prototype would still apply.  */
12676
char dlopen ();
12677
int
12678
main ()
12679
{
12680
dlopen ();
12681
  ;
12682
  return 0;
12683
}
12684
_ACEOF
12685
rm -f conftest.$ac_objext conftest$ac_exeext
12686
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12687
  (eval $ac_link) 2>conftest.er1
12688
  ac_status=$?
12689
  grep -v '^ *+' conftest.er1 >conftest.err
12690
  rm -f conftest.er1
12691
  cat conftest.err >&5
12692
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12693
  (exit $ac_status); } &&
12694
         { ac_try='test -z "$ac_cxx_werror_flag"
12695
                         || test ! -s conftest.err'
12696
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12697
  (eval $ac_try) 2>&5
12698
  ac_status=$?
12699
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12700
  (exit $ac_status); }; } &&
12701
         { ac_try='test -s conftest$ac_exeext'
12702
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12703
  (eval $ac_try) 2>&5
12704
  ac_status=$?
12705
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12706
  (exit $ac_status); }; }; then
12707
  ac_cv_lib_svld_dlopen=yes
12708
else
12709
  echo "$as_me: failed program was:" >&5
12710
sed 's/^/| /' conftest.$ac_ext >&5
12711
 
12712
ac_cv_lib_svld_dlopen=no
12713
fi
12714
rm -f conftest.err conftest.$ac_objext \
12715
      conftest$ac_exeext conftest.$ac_ext
12716
LIBS=$ac_check_lib_save_LIBS
12717
fi
12718
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12719
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
12720
if test $ac_cv_lib_svld_dlopen = yes; then
12721
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12722
else
12723
  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12724
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
12725
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12726
  echo $ECHO_N "(cached) $ECHO_C" >&6
12727
else
12728
  ac_check_lib_save_LIBS=$LIBS
12729
LIBS="-ldld  $LIBS"
12730
cat >conftest.$ac_ext <<_ACEOF
12731
/* confdefs.h.  */
12732
_ACEOF
12733
cat confdefs.h >>conftest.$ac_ext
12734
cat >>conftest.$ac_ext <<_ACEOF
12735
/* end confdefs.h.  */
12736
 
12737
/* Override any gcc2 internal prototype to avoid an error.  */
12738
#ifdef __cplusplus
12739
extern "C"
12740
#endif
12741
/* We use char because int might match the return type of a gcc2
12742
   builtin and then its argument prototype would still apply.  */
12743
char dld_link ();
12744
int
12745
main ()
12746
{
12747
dld_link ();
12748
  ;
12749
  return 0;
12750
}
12751
_ACEOF
12752
rm -f conftest.$ac_objext conftest$ac_exeext
12753
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12754
  (eval $ac_link) 2>conftest.er1
12755
  ac_status=$?
12756
  grep -v '^ *+' conftest.er1 >conftest.err
12757
  rm -f conftest.er1
12758
  cat conftest.err >&5
12759
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12760
  (exit $ac_status); } &&
12761
         { ac_try='test -z "$ac_cxx_werror_flag"
12762
                         || test ! -s conftest.err'
12763
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12764
  (eval $ac_try) 2>&5
12765
  ac_status=$?
12766
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12767
  (exit $ac_status); }; } &&
12768
         { ac_try='test -s conftest$ac_exeext'
12769
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12770
  (eval $ac_try) 2>&5
12771
  ac_status=$?
12772
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12773
  (exit $ac_status); }; }; then
12774
  ac_cv_lib_dld_dld_link=yes
12775
else
12776
  echo "$as_me: failed program was:" >&5
12777
sed 's/^/| /' conftest.$ac_ext >&5
12778
 
12779
ac_cv_lib_dld_dld_link=no
12780
fi
12781
rm -f conftest.err conftest.$ac_objext \
12782
      conftest$ac_exeext conftest.$ac_ext
12783
LIBS=$ac_check_lib_save_LIBS
12784
fi
12785
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12786
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
12787
if test $ac_cv_lib_dld_dld_link = yes; then
12788
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12789
fi
12790
 
12791
 
12792
fi
12793
 
12794
 
12795
fi
12796
 
12797
 
12798
fi
12799
 
12800
 
12801
fi
12802
 
12803
 
12804
fi
12805
 
12806
    ;;
12807
  esac
12808
 
12809
  if test "x$lt_cv_dlopen" != xno; then
12810
    enable_dlopen=yes
12811
  else
12812
    enable_dlopen=no
12813
  fi
12814
 
12815
  case $lt_cv_dlopen in
12816
  dlopen)
12817
    save_CPPFLAGS="$CPPFLAGS"
12818
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12819
 
12820
    save_LDFLAGS="$LDFLAGS"
12821
    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12822
 
12823
    save_LIBS="$LIBS"
12824
    LIBS="$lt_cv_dlopen_libs $LIBS"
12825
 
12826
    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12827
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
12828
if test "${lt_cv_dlopen_self+set}" = set; then
12829
  echo $ECHO_N "(cached) $ECHO_C" >&6
12830
else
12831
          if test "$cross_compiling" = yes; then :
12832
  lt_cv_dlopen_self=cross
12833
else
12834
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12835
  lt_status=$lt_dlunknown
12836
  cat > conftest.$ac_ext <
12837
#line 12837 "configure"
12838
#include "confdefs.h"
12839
 
12840
#if HAVE_DLFCN_H
12841
#include 
12842
#endif
12843
 
12844
#include 
12845
 
12846
#ifdef RTLD_GLOBAL
12847
#  define LT_DLGLOBAL           RTLD_GLOBAL
12848
#else
12849
#  ifdef DL_GLOBAL
12850
#    define LT_DLGLOBAL         DL_GLOBAL
12851
#  else
12852
#    define LT_DLGLOBAL         0
12853
#  endif
12854
#endif
12855
 
12856
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12857
   find out it does not work in some platform. */
12858
#ifndef LT_DLLAZY_OR_NOW
12859
#  ifdef RTLD_LAZY
12860
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12861
#  else
12862
#    ifdef DL_LAZY
12863
#      define LT_DLLAZY_OR_NOW          DL_LAZY
12864
#    else
12865
#      ifdef RTLD_NOW
12866
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
12867
#      else
12868
#        ifdef DL_NOW
12869
#          define LT_DLLAZY_OR_NOW      DL_NOW
12870
#        else
12871
#          define LT_DLLAZY_OR_NOW      0
12872
#        endif
12873
#      endif
12874
#    endif
12875
#  endif
12876
#endif
12877
 
12878
#ifdef __cplusplus
12879
extern "C" void exit (int);
12880
#endif
12881
 
12882
void fnord() { int i=42;}
12883
int main ()
12884
{
12885
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12886
  int status = $lt_dlunknown;
12887
 
12888
  if (self)
12889
    {
12890
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12891
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12892
      /* dlclose (self); */
12893
    }
12894
 
12895
    exit (status);
12896
}
12897
EOF
12898
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12899
  (eval $ac_link) 2>&5
12900
  ac_status=$?
12901
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12902
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12903
    (./conftest; exit; ) 2>/dev/null
12904
    lt_status=$?
12905
    case x$lt_status in
12906
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12907
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12908
      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12909
    esac
12910
  else :
12911
    # compilation failed
12912
    lt_cv_dlopen_self=no
12913
  fi
12914
fi
12915
rm -fr conftest*
12916
 
12917
 
12918
fi
12919
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12920
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
12921
 
12922
    if test "x$lt_cv_dlopen_self" = xyes; then
12923
      LDFLAGS="$LDFLAGS $link_static_flag"
12924
      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12925
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
12926
if test "${lt_cv_dlopen_self_static+set}" = set; then
12927
  echo $ECHO_N "(cached) $ECHO_C" >&6
12928
else
12929
          if test "$cross_compiling" = yes; then :
12930
  lt_cv_dlopen_self_static=cross
12931
else
12932
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12933
  lt_status=$lt_dlunknown
12934
  cat > conftest.$ac_ext <
12935
#line 12935 "configure"
12936
#include "confdefs.h"
12937
 
12938
#if HAVE_DLFCN_H
12939
#include 
12940
#endif
12941
 
12942
#include 
12943
 
12944
#ifdef RTLD_GLOBAL
12945
#  define LT_DLGLOBAL           RTLD_GLOBAL
12946
#else
12947
#  ifdef DL_GLOBAL
12948
#    define LT_DLGLOBAL         DL_GLOBAL
12949
#  else
12950
#    define LT_DLGLOBAL         0
12951
#  endif
12952
#endif
12953
 
12954
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12955
   find out it does not work in some platform. */
12956
#ifndef LT_DLLAZY_OR_NOW
12957
#  ifdef RTLD_LAZY
12958
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12959
#  else
12960
#    ifdef DL_LAZY
12961
#      define LT_DLLAZY_OR_NOW          DL_LAZY
12962
#    else
12963
#      ifdef RTLD_NOW
12964
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
12965
#      else
12966
#        ifdef DL_NOW
12967
#          define LT_DLLAZY_OR_NOW      DL_NOW
12968
#        else
12969
#          define LT_DLLAZY_OR_NOW      0
12970
#        endif
12971
#      endif
12972
#    endif
12973
#  endif
12974
#endif
12975
 
12976
#ifdef __cplusplus
12977
extern "C" void exit (int);
12978
#endif
12979
 
12980
void fnord() { int i=42;}
12981
int main ()
12982
{
12983
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12984
  int status = $lt_dlunknown;
12985
 
12986
  if (self)
12987
    {
12988
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12989
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12990
      /* dlclose (self); */
12991
    }
12992
 
12993
    exit (status);
12994
}
12995
EOF
12996
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12997
  (eval $ac_link) 2>&5
12998
  ac_status=$?
12999
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13000
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
13001
    (./conftest; exit; ) 2>/dev/null
13002
    lt_status=$?
13003
    case x$lt_status in
13004
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13005
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13006
      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
13007
    esac
13008
  else :
13009
    # compilation failed
13010
    lt_cv_dlopen_self_static=no
13011
  fi
13012
fi
13013
rm -fr conftest*
13014
 
13015
 
13016
fi
13017
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
13018
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
13019
    fi
13020
 
13021
    CPPFLAGS="$save_CPPFLAGS"
13022
    LDFLAGS="$save_LDFLAGS"
13023
    LIBS="$save_LIBS"
13024
    ;;
13025
  esac
13026
 
13027
  case $lt_cv_dlopen_self in
13028
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13029
  *) enable_dlopen_self=unknown ;;
13030
  esac
13031
 
13032
  case $lt_cv_dlopen_self_static in
13033
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13034
  *) enable_dlopen_self_static=unknown ;;
13035
  esac
13036
fi
13037
 
13038
 
13039
# The else clause should only fire when bootstrapping the
13040
# libtool distribution, otherwise you forgot to ship ltmain.sh
13041
# with your package, and you will get complaints that there are
13042
# no rules to generate ltmain.sh.
13043
if test -f "$ltmain"; then
13044
  # See if we are running on zsh, and set the options which allow our commands through
13045
  # without removal of \ escapes.
13046
  if test -n "${ZSH_VERSION+set}" ; then
13047
    setopt NO_GLOB_SUBST
13048
  fi
13049
  # Now quote all the things that may contain metacharacters while being
13050
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
13051
  # variables and quote the copies for generation of the libtool script.
13052
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
13053
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13054
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13055
    deplibs_check_method reload_flag reload_cmds need_locks \
13056
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13057
    lt_cv_sys_global_symbol_to_c_name_address \
13058
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13059
    old_postinstall_cmds old_postuninstall_cmds \
13060
    compiler_CXX \
13061
    CC_CXX \
13062
    LD_CXX \
13063
    lt_prog_compiler_wl_CXX \
13064
    lt_prog_compiler_pic_CXX \
13065
    lt_prog_compiler_static_CXX \
13066
    lt_prog_compiler_no_builtin_flag_CXX \
13067
    export_dynamic_flag_spec_CXX \
13068
    thread_safe_flag_spec_CXX \
13069
    whole_archive_flag_spec_CXX \
13070
    enable_shared_with_static_runtimes_CXX \
13071
    old_archive_cmds_CXX \
13072
    old_archive_from_new_cmds_CXX \
13073
    predep_objects_CXX \
13074
    postdep_objects_CXX \
13075
    predeps_CXX \
13076
    postdeps_CXX \
13077
    compiler_lib_search_path_CXX \
13078
    archive_cmds_CXX \
13079
    archive_expsym_cmds_CXX \
13080
    postinstall_cmds_CXX \
13081
    postuninstall_cmds_CXX \
13082
    old_archive_from_expsyms_cmds_CXX \
13083
    allow_undefined_flag_CXX \
13084
    no_undefined_flag_CXX \
13085
    export_symbols_cmds_CXX \
13086
    hardcode_libdir_flag_spec_CXX \
13087
    hardcode_libdir_flag_spec_ld_CXX \
13088
    hardcode_libdir_separator_CXX \
13089
    hardcode_automatic_CXX \
13090
    module_cmds_CXX \
13091
    module_expsym_cmds_CXX \
13092
    lt_cv_prog_compiler_c_o_CXX \
13093
    exclude_expsyms_CXX \
13094
    include_expsyms_CXX; do
13095
 
13096
    case $var in
13097
    old_archive_cmds_CXX | \
13098
    old_archive_from_new_cmds_CXX | \
13099
    archive_cmds_CXX | \
13100
    archive_expsym_cmds_CXX | \
13101
    module_cmds_CXX | \
13102
    module_expsym_cmds_CXX | \
13103
    old_archive_from_expsyms_cmds_CXX | \
13104
    export_symbols_cmds_CXX | \
13105
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
13106
    postinstall_cmds | postuninstall_cmds | \
13107
    old_postinstall_cmds | old_postuninstall_cmds | \
13108
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13109
      # Double-quote double-evaled strings.
13110
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13111
      ;;
13112
    *)
13113
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13114
      ;;
13115
    esac
13116
  done
13117
 
13118
  case $lt_echo in
13119
  *'\$0 --fallback-echo"')
13120
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13121
    ;;
13122
  esac
13123
 
13124
cfgfile="$ofile"
13125
 
13126
  cat <<__EOF__ >> "$cfgfile"
13127
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
13128
 
13129
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13130
 
13131
# Shell to use when invoking shell scripts.
13132
SHELL=$lt_SHELL
13133
 
13134
# Whether or not to build shared libraries.
13135
build_libtool_libs=$enable_shared
13136
 
13137
# Whether or not to build static libraries.
13138
build_old_libs=$enable_static
13139
 
13140
# Whether or not to add -lc for building shared libraries.
13141
build_libtool_need_lc=$archive_cmds_need_lc_CXX
13142
 
13143
# Whether or not to disallow shared libs when runtime libs are static
13144
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13145
 
13146
# Whether or not to optimize for fast installation.
13147
fast_install=$enable_fast_install
13148
 
13149
# The host system.
13150
host_alias=$host_alias
13151
host=$host
13152
 
13153
# An echo program that does not interpret backslashes.
13154
echo=$lt_echo
13155
 
13156
# The archiver.
13157
AR=$lt_AR
13158
AR_FLAGS=$lt_AR_FLAGS
13159
 
13160
# A C compiler.
13161
LTCC=$lt_LTCC
13162
 
13163
# A language-specific compiler.
13164
CC=$lt_compiler_CXX
13165
 
13166
# Is the compiler the GNU C compiler?
13167
with_gcc=$GCC_CXX
13168
 
13169
# An ERE matcher.
13170
EGREP=$lt_EGREP
13171
 
13172
# The linker used to build libraries.
13173
LD=$lt_LD_CXX
13174
 
13175
# Whether we need hard or soft links.
13176
LN_S=$lt_LN_S
13177
 
13178
# A BSD-compatible nm program.
13179
NM=$lt_NM
13180
 
13181
# A symbol stripping program
13182
STRIP=$STRIP
13183
 
13184
# Used to examine libraries when file_magic_cmd begins "file"
13185
MAGIC_CMD=$MAGIC_CMD
13186
 
13187
# Used on cygwin: DLL creation program.
13188
DLLTOOL="$DLLTOOL"
13189
 
13190
# Used on cygwin: object dumper.
13191
OBJDUMP="$OBJDUMP"
13192
 
13193
# Used on cygwin: assembler.
13194
AS="$AS"
13195
 
13196
# The name of the directory that contains temporary libtool files.
13197
objdir=$objdir
13198
 
13199
# How to create reloadable object files.
13200
reload_flag=$lt_reload_flag
13201
reload_cmds=$lt_reload_cmds
13202
 
13203
# How to pass a linker flag through the compiler.
13204
wl=$lt_lt_prog_compiler_wl_CXX
13205
 
13206
# Object file suffix (normally "o").
13207
objext="$ac_objext"
13208
 
13209
# Old archive suffix (normally "a").
13210
libext="$libext"
13211
 
13212
# Shared library suffix (normally ".so").
13213
shrext='$shrext'
13214
 
13215
# Executable file suffix (normally "").
13216
exeext="$exeext"
13217
 
13218
# Additional compiler flags for building library objects.
13219
pic_flag=$lt_lt_prog_compiler_pic_CXX
13220
pic_mode=$pic_mode
13221
 
13222
# What is the maximum length of a command?
13223
max_cmd_len=$lt_cv_sys_max_cmd_len
13224
 
13225
# Does compiler simultaneously support -c and -o options?
13226
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13227
 
13228
# Must we lock files when doing compilation ?
13229
need_locks=$lt_need_locks
13230
 
13231
# Do we need the lib prefix for modules?
13232
need_lib_prefix=$need_lib_prefix
13233
 
13234
# Do we need a version for libraries?
13235
need_version=$need_version
13236
 
13237
# Whether dlopen is supported.
13238
dlopen_support=$enable_dlopen
13239
 
13240
# Whether dlopen of programs is supported.
13241
dlopen_self=$enable_dlopen_self
13242
 
13243
# Whether dlopen of statically linked programs is supported.
13244
dlopen_self_static=$enable_dlopen_self_static
13245
 
13246
# Compiler flag to prevent dynamic linking.
13247
link_static_flag=$lt_lt_prog_compiler_static_CXX
13248
 
13249
# Compiler flag to turn off builtin functions.
13250
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13251
 
13252
# Compiler flag to allow reflexive dlopens.
13253
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13254
 
13255
# Compiler flag to generate shared objects directly from archives.
13256
whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13257
 
13258
# Compiler flag to generate thread-safe objects.
13259
thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13260
 
13261
# Library versioning type.
13262
version_type=$version_type
13263
 
13264
# Format of library name prefix.
13265
libname_spec=$lt_libname_spec
13266
 
13267
# List of archive names.  First name is the real one, the rest are links.
13268
# The last name is the one that the linker finds with -lNAME.
13269
library_names_spec=$lt_library_names_spec
13270
 
13271
# The coded name of the library, if different from the real name.
13272
soname_spec=$lt_soname_spec
13273
 
13274
# Commands used to build and install an old-style archive.
13275
RANLIB=$lt_RANLIB
13276
old_archive_cmds=$lt_old_archive_cmds_CXX
13277
old_postinstall_cmds=$lt_old_postinstall_cmds
13278
old_postuninstall_cmds=$lt_old_postuninstall_cmds
13279
 
13280
# Create an old-style archive from a shared archive.
13281
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13282
 
13283
# Create a temporary old-style archive to link instead of a shared archive.
13284
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13285
 
13286
# Commands used to build and install a shared archive.
13287
archive_cmds=$lt_archive_cmds_CXX
13288
archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13289
postinstall_cmds=$lt_postinstall_cmds
13290
postuninstall_cmds=$lt_postuninstall_cmds
13291
 
13292
# Commands used to build a loadable module (assumed same as above if empty)
13293
module_cmds=$lt_module_cmds_CXX
13294
module_expsym_cmds=$lt_module_expsym_cmds_CXX
13295
 
13296
# Commands to strip libraries.
13297
old_striplib=$lt_old_striplib
13298
striplib=$lt_striplib
13299
 
13300
# Dependencies to place before the objects being linked to create a
13301
# shared library.
13302
predep_objects=$lt_predep_objects_CXX
13303
 
13304
# Dependencies to place after the objects being linked to create a
13305
# shared library.
13306
postdep_objects=$lt_postdep_objects_CXX
13307
 
13308
# Dependencies to place before the objects being linked to create a
13309
# shared library.
13310
predeps=$lt_predeps_CXX
13311
 
13312
# Dependencies to place after the objects being linked to create a
13313
# shared library.
13314
postdeps=$lt_postdeps_CXX
13315
 
13316
# The library search path used internally by the compiler when linking
13317
# a shared library.
13318
compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13319
 
13320
# Method to check whether dependent libraries are shared objects.
13321
deplibs_check_method=$lt_deplibs_check_method
13322
 
13323
# Command to use when deplibs_check_method == file_magic.
13324
file_magic_cmd=$lt_file_magic_cmd
13325
 
13326
# Flag that allows shared libraries with undefined symbols to be built.
13327
allow_undefined_flag=$lt_allow_undefined_flag_CXX
13328
 
13329
# Flag that forces no undefined symbols.
13330
no_undefined_flag=$lt_no_undefined_flag_CXX
13331
 
13332
# Commands used to finish a libtool library installation in a directory.
13333
finish_cmds=$lt_finish_cmds
13334
 
13335
# Same as above, but a single script fragment to be evaled but not shown.
13336
finish_eval=$lt_finish_eval
13337
 
13338
# Take the output of nm and produce a listing of raw symbols and C names.
13339
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13340
 
13341
# Transform the output of nm in a proper C declaration
13342
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13343
 
13344
# Transform the output of nm in a C name address pair
13345
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13346
 
13347
# This is the shared library runtime path variable.
13348
runpath_var=$runpath_var
13349
 
13350
# This is the shared library path variable.
13351
shlibpath_var=$shlibpath_var
13352
 
13353
# Is shlibpath searched before the hard-coded library search path?
13354
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13355
 
13356
# How to hardcode a shared library path into an executable.
13357
hardcode_action=$hardcode_action_CXX
13358
 
13359
# Whether we should hardcode library paths into libraries.
13360
hardcode_into_libs=$hardcode_into_libs
13361
 
13362
# Flag to hardcode \$libdir into a binary during linking.
13363
# This must work even if \$libdir does not exist.
13364
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13365
 
13366
# If ld is used when linking, flag to hardcode \$libdir into
13367
# a binary during linking. This must work even if \$libdir does
13368
# not exist.
13369
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13370
 
13371
# Whether we need a single -rpath flag with a separated argument.
13372
hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13373
 
13374
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13375
# resulting binary.
13376
hardcode_direct=$hardcode_direct_CXX
13377
 
13378
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13379
# resulting binary.
13380
hardcode_minus_L=$hardcode_minus_L_CXX
13381
 
13382
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13383
# the resulting binary.
13384
hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13385
 
13386
# Set to yes if building a shared library automatically hardcodes DIR into the library
13387
# and all subsequent libraries and executables linked against it.
13388
hardcode_automatic=$hardcode_automatic_CXX
13389
 
13390
# Variables whose values should be saved in libtool wrapper scripts and
13391
# restored at relink time.
13392
variables_saved_for_relink="$variables_saved_for_relink"
13393
 
13394
# Whether libtool must link a program against all its dependency libraries.
13395
link_all_deplibs=$link_all_deplibs_CXX
13396
 
13397
# Compile-time system search path for libraries
13398
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13399
 
13400
# Run-time system search path for libraries
13401
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13402
 
13403
# Fix the shell variable \$srcfile for the compiler.
13404
fix_srcfile_path="$fix_srcfile_path_CXX"
13405
 
13406
# Set to yes if exported symbols are required.
13407
always_export_symbols=$always_export_symbols_CXX
13408
 
13409
# The commands to list exported symbols.
13410
export_symbols_cmds=$lt_export_symbols_cmds_CXX
13411
 
13412
# The commands to extract the exported symbol list from a shared archive.
13413
extract_expsyms_cmds=$lt_extract_expsyms_cmds
13414
 
13415
# Symbols that should not be listed in the preloaded symbols.
13416
exclude_expsyms=$lt_exclude_expsyms_CXX
13417
 
13418
# Symbols that must always be exported.
13419
include_expsyms=$lt_include_expsyms_CXX
13420
 
13421
# ### END LIBTOOL TAG CONFIG: $tagname
13422
 
13423
__EOF__
13424
 
13425
 
13426
else
13427
  # If there is no Makefile yet, we rely on a make rule to execute
13428
  # `config.status --recheck' to rerun these tests and create the
13429
  # libtool script then.
13430
  test -f Makefile && make "$ltmain"
13431
fi
13432
 
13433
 
13434
ac_ext=c
13435
ac_cpp='$CPP $CPPFLAGS'
13436
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13437
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13438
ac_compiler_gnu=$ac_cv_c_compiler_gnu
13439
 
13440
CC=$lt_save_CC
13441
LDCXX=$LD
13442
LD=$lt_save_LD
13443
GCC=$lt_save_GCC
13444
with_gnu_ldcxx=$with_gnu_ld
13445
with_gnu_ld=$lt_save_with_gnu_ld
13446
lt_cv_path_LDCXX=$lt_cv_path_LD
13447
lt_cv_path_LD=$lt_save_path_LD
13448
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13449
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13450
 
13451
        else
13452
          tagname=""
13453
        fi
13454
        ;;
13455
 
13456
      F77)
13457
        if test -n "$F77" && test "X$F77" != "Xno"; then
13458
 
13459
ac_ext=f
13460
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13461
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13462
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13463
 
13464
 
13465
archive_cmds_need_lc_F77=no
13466
allow_undefined_flag_F77=
13467
always_export_symbols_F77=no
13468
archive_expsym_cmds_F77=
13469
export_dynamic_flag_spec_F77=
13470
hardcode_direct_F77=no
13471
hardcode_libdir_flag_spec_F77=
13472
hardcode_libdir_flag_spec_ld_F77=
13473
hardcode_libdir_separator_F77=
13474
hardcode_minus_L_F77=no
13475
hardcode_automatic_F77=no
13476
module_cmds_F77=
13477
module_expsym_cmds_F77=
13478
link_all_deplibs_F77=unknown
13479
old_archive_cmds_F77=$old_archive_cmds
13480
no_undefined_flag_F77=
13481
whole_archive_flag_spec_F77=
13482
enable_shared_with_static_runtimes_F77=no
13483
 
13484
# Source file extension for f77 test sources.
13485
ac_ext=f
13486
 
13487
# Object file extension for compiled f77 test sources.
13488
objext=o
13489
objext_F77=$objext
13490
 
13491
# Code to be used in simple compile tests
13492
lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
13493
 
13494
# Code to be used in simple link tests
13495
lt_simple_link_test_code="      program t\n      end\n"
13496
 
13497
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
13498
 
13499
# If no C compiler was specified, use CC.
13500
LTCC=${LTCC-"$CC"}
13501
 
13502
# Allow CC to be a program name with arguments.
13503
compiler=$CC
13504
 
13505
 
13506
# Allow CC to be a program name with arguments.
13507
lt_save_CC="$CC"
13508
CC=${F77-"f77"}
13509
compiler=$CC
13510
compiler_F77=$CC
13511
cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
13512
 
13513
echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13514
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
13515
echo "$as_me:$LINENO: result: $can_build_shared" >&5
13516
echo "${ECHO_T}$can_build_shared" >&6
13517
 
13518
echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13519
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
13520
test "$can_build_shared" = "no" && enable_shared=no
13521
 
13522
# On AIX, shared libraries and static libraries use the same namespace, and
13523
# are all built from PIC.
13524
case "$host_os" in
13525
aix3*)
13526
  test "$enable_shared" = yes && enable_static=no
13527
  if test -n "$RANLIB"; then
13528
    archive_cmds="$archive_cmds~\$RANLIB \$lib"
13529
    postinstall_cmds='$RANLIB $lib'
13530
  fi
13531
  ;;
13532
aix4*)
13533
  test "$enable_shared" = yes && enable_static=no
13534
  ;;
13535
esac
13536
echo "$as_me:$LINENO: result: $enable_shared" >&5
13537
echo "${ECHO_T}$enable_shared" >&6
13538
 
13539
echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13540
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
13541
# Make sure either enable_shared or enable_static is yes.
13542
test "$enable_shared" = yes || enable_static=yes
13543
echo "$as_me:$LINENO: result: $enable_static" >&5
13544
echo "${ECHO_T}$enable_static" >&6
13545
 
13546
test "$ld_shlibs_F77" = no && can_build_shared=no
13547
 
13548
GCC_F77="$G77"
13549
LD_F77="$LD"
13550
 
13551
lt_prog_compiler_wl_F77=
13552
lt_prog_compiler_pic_F77=
13553
lt_prog_compiler_static_F77=
13554
 
13555
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13556
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13557
 
13558
  if test "$GCC" = yes; then
13559
    lt_prog_compiler_wl_F77='-Wl,'
13560
    lt_prog_compiler_static_F77='-static'
13561
 
13562
    case $host_os in
13563
      aix*)
13564
      # All AIX code is PIC.
13565
      if test "$host_cpu" = ia64; then
13566
        # AIX 5 now supports IA64 processor
13567
        lt_prog_compiler_static_F77='-Bstatic'
13568
      fi
13569
      ;;
13570
 
13571
    amigaos*)
13572
      # FIXME: we need at least 68020 code to build shared libraries, but
13573
      # adding the `-m68020' flag to GCC prevents building anything better,
13574
      # like `-m68040'.
13575
      lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13576
      ;;
13577
 
13578
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13579
      # PIC is the default for these OSes.
13580
      ;;
13581
 
13582
    mingw* | pw32* | os2*)
13583
      # This hack is so that the source file can tell whether it is being
13584
      # built for inclusion in a dll (and should export symbols for example).
13585
      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13586
      ;;
13587
 
13588
    darwin* | rhapsody*)
13589
      # PIC is the default on this platform
13590
      # Common symbols not allowed in MH_DYLIB files
13591
      lt_prog_compiler_pic_F77='-fno-common'
13592
      ;;
13593
 
13594
    msdosdjgpp*)
13595
      # Just because we use GCC doesn't mean we suddenly get shared libraries
13596
      # on systems that don't support them.
13597
      lt_prog_compiler_can_build_shared_F77=no
13598
      enable_shared=no
13599
      ;;
13600
 
13601
    sysv4*MP*)
13602
      if test -d /usr/nec; then
13603
        lt_prog_compiler_pic_F77=-Kconform_pic
13604
      fi
13605
      ;;
13606
 
13607
    hpux*)
13608
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13609
      # not for PA HP-UX.
13610
      case "$host_cpu" in
13611
      hppa*64*|ia64*)
13612
        # +Z the default
13613
        ;;
13614
      *)
13615
        lt_prog_compiler_pic_F77='-fPIC'
13616
        ;;
13617
      esac
13618
      ;;
13619
 
13620
    *)
13621
      lt_prog_compiler_pic_F77='-fPIC'
13622
      ;;
13623
    esac
13624
  else
13625
    # PORTME Check for flag to pass linker flags through the system compiler.
13626
    case $host_os in
13627
    aix*)
13628
      lt_prog_compiler_wl_F77='-Wl,'
13629
      if test "$host_cpu" = ia64; then
13630
        # AIX 5 now supports IA64 processor
13631
        lt_prog_compiler_static_F77='-Bstatic'
13632
      else
13633
        lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13634
      fi
13635
      ;;
13636
 
13637
    mingw* | pw32* | os2*)
13638
      # This hack is so that the source file can tell whether it is being
13639
      # built for inclusion in a dll (and should export symbols for example).
13640
      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13641
      ;;
13642
 
13643
    hpux9* | hpux10* | hpux11*)
13644
      lt_prog_compiler_wl_F77='-Wl,'
13645
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13646
      # not for PA HP-UX.
13647
      case "$host_cpu" in
13648
      hppa*64*|ia64*)
13649
        # +Z the default
13650
        ;;
13651
      *)
13652
        lt_prog_compiler_pic_F77='+Z'
13653
        ;;
13654
      esac
13655
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
13656
      lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13657
      ;;
13658
 
13659
    irix5* | irix6* | nonstopux*)
13660
      lt_prog_compiler_wl_F77='-Wl,'
13661
      # PIC (with -KPIC) is the default.
13662
      lt_prog_compiler_static_F77='-non_shared'
13663
      ;;
13664
 
13665
    newsos6)
13666
      lt_prog_compiler_pic_F77='-KPIC'
13667
      lt_prog_compiler_static_F77='-Bstatic'
13668
      ;;
13669
 
13670
    linux*)
13671
      case $CC in
13672
      icc|ecc)
13673
        lt_prog_compiler_wl_F77='-Wl,'
13674
        lt_prog_compiler_pic_F77='-KPIC'
13675
        lt_prog_compiler_static_F77='-static'
13676
        ;;
13677
      ccc)
13678
        lt_prog_compiler_wl_F77='-Wl,'
13679
        # All Alpha code is PIC.
13680
        lt_prog_compiler_static_F77='-non_shared'
13681
        ;;
13682
      esac
13683
      ;;
13684
 
13685
    osf3* | osf4* | osf5*)
13686
      lt_prog_compiler_wl_F77='-Wl,'
13687
      # All OSF/1 code is PIC.
13688
      lt_prog_compiler_static_F77='-non_shared'
13689
      ;;
13690
 
13691
    sco3.2v5*)
13692
      lt_prog_compiler_pic_F77='-Kpic'
13693
      lt_prog_compiler_static_F77='-dn'
13694
      ;;
13695
 
13696
    solaris*)
13697
      lt_prog_compiler_wl_F77='-Wl,'
13698
      lt_prog_compiler_pic_F77='-KPIC'
13699
      lt_prog_compiler_static_F77='-Bstatic'
13700
      ;;
13701
 
13702
    sunos4*)
13703
      lt_prog_compiler_wl_F77='-Qoption ld '
13704
      lt_prog_compiler_pic_F77='-PIC'
13705
      lt_prog_compiler_static_F77='-Bstatic'
13706
      ;;
13707
 
13708
    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13709
      lt_prog_compiler_wl_F77='-Wl,'
13710
      lt_prog_compiler_pic_F77='-KPIC'
13711
      lt_prog_compiler_static_F77='-Bstatic'
13712
      ;;
13713
 
13714
    sysv4*MP*)
13715
      if test -d /usr/nec ;then
13716
        lt_prog_compiler_pic_F77='-Kconform_pic'
13717
        lt_prog_compiler_static_F77='-Bstatic'
13718
      fi
13719
      ;;
13720
 
13721
    uts4*)
13722
      lt_prog_compiler_pic_F77='-pic'
13723
      lt_prog_compiler_static_F77='-Bstatic'
13724
      ;;
13725
 
13726
    *)
13727
      lt_prog_compiler_can_build_shared_F77=no
13728
      ;;
13729
    esac
13730
  fi
13731
 
13732
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13733
echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13734
 
13735
#
13736
# Check to make sure the PIC flag actually works.
13737
#
13738
if test -n "$lt_prog_compiler_pic_F77"; then
13739
  echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13740
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13741
if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13742
  echo $ECHO_N "(cached) $ECHO_C" >&6
13743
else
13744
  lt_prog_compiler_pic_works_F77=no
13745
  ac_outfile=conftest.$ac_objext
13746
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13747
   lt_compiler_flag="$lt_prog_compiler_pic_F77"
13748
   # Insert the option either (1) after the last *FLAGS variable, or
13749
   # (2) before a word containing "conftest.", or (3) at the end.
13750
   # Note that $ac_compile itself does not contain backslashes and begins
13751
   # with a dollar sign (not a hyphen), so the echo should work correctly.
13752
   # The option is referenced via a variable to avoid confusing sed.
13753
   lt_compile=`echo "$ac_compile" | $SED \
13754
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13755
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13756
   -e 's:$: $lt_compiler_flag:'`
13757
   (eval echo "\"\$as_me:13757: $lt_compile\"" >&5)
13758
   (eval "$lt_compile" 2>conftest.err)
13759
   ac_status=$?
13760
   cat conftest.err >&5
13761
   echo "$as_me:13761: \$? = $ac_status" >&5
13762
   if (exit $ac_status) && test -s "$ac_outfile"; then
13763
     # The compiler can only warn and ignore the option if not recognized
13764
     # So say no if there are warnings
13765
     if test ! -s conftest.err; then
13766
       lt_prog_compiler_pic_works_F77=yes
13767
     fi
13768
   fi
13769
   $rm conftest*
13770
 
13771
fi
13772
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13773
echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13774
 
13775
if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13776
    case $lt_prog_compiler_pic_F77 in
13777
     "" | " "*) ;;
13778
     *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13779
     esac
13780
else
13781
    lt_prog_compiler_pic_F77=
13782
     lt_prog_compiler_can_build_shared_F77=no
13783
fi
13784
 
13785
fi
13786
case "$host_os" in
13787
  # For platforms which do not support PIC, -DPIC is meaningless:
13788
  *djgpp*)
13789
    lt_prog_compiler_pic_F77=
13790
    ;;
13791
  *)
13792
    lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13793
    ;;
13794
esac
13795
 
13796
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13797
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13798
if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13799
  echo $ECHO_N "(cached) $ECHO_C" >&6
13800
else
13801
  lt_cv_prog_compiler_c_o_F77=no
13802
   $rm -r conftest 2>/dev/null
13803
   mkdir conftest
13804
   cd conftest
13805
   mkdir out
13806
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13807
 
13808
   # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
13809
   # that will create temporary files in the current directory regardless of
13810
   # the output directory.  Thus, making CWD read-only will cause this test
13811
   # to fail, enabling locking or at least warning the user not to do parallel
13812
   # builds.
13813
   chmod -w .
13814
 
13815
   lt_compiler_flag="-o out/conftest2.$ac_objext"
13816
   # Insert the option either (1) after the last *FLAGS variable, or
13817
   # (2) before a word containing "conftest.", or (3) at the end.
13818
   # Note that $ac_compile itself does not contain backslashes and begins
13819
   # with a dollar sign (not a hyphen), so the echo should work correctly.
13820
   lt_compile=`echo "$ac_compile" | $SED \
13821
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13822
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13823
   -e 's:$: $lt_compiler_flag:'`
13824
   (eval echo "\"\$as_me:13824: $lt_compile\"" >&5)
13825
   (eval "$lt_compile" 2>out/conftest.err)
13826
   ac_status=$?
13827
   cat out/conftest.err >&5
13828
   echo "$as_me:13828: \$? = $ac_status" >&5
13829
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
13830
   then
13831
     # The compiler can only warn and ignore the option if not recognized
13832
     # So say no if there are warnings
13833
     if test ! -s out/conftest.err; then
13834
       lt_cv_prog_compiler_c_o_F77=yes
13835
     fi
13836
   fi
13837
   chmod u+w .
13838
   $rm conftest* out/*
13839
   rmdir out
13840
   cd ..
13841
   rmdir conftest
13842
   $rm conftest*
13843
 
13844
fi
13845
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13846
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13847
 
13848
 
13849
hard_links="nottested"
13850
if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13851
  # do not overwrite the value of need_locks provided by the user
13852
  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13853
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13854
  hard_links=yes
13855
  $rm conftest*
13856
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
13857
  touch conftest.a
13858
  ln conftest.a conftest.b 2>&5 || hard_links=no
13859
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
13860
  echo "$as_me:$LINENO: result: $hard_links" >&5
13861
echo "${ECHO_T}$hard_links" >&6
13862
  if test "$hard_links" = no; then
13863
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13864
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13865
    need_locks=warn
13866
  fi
13867
else
13868
  need_locks=no
13869
fi
13870
 
13871
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13872
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13873
 
13874
  runpath_var=
13875
  allow_undefined_flag_F77=
13876
  enable_shared_with_static_runtimes_F77=no
13877
  archive_cmds_F77=
13878
  archive_expsym_cmds_F77=
13879
  old_archive_From_new_cmds_F77=
13880
  old_archive_from_expsyms_cmds_F77=
13881
  export_dynamic_flag_spec_F77=
13882
  whole_archive_flag_spec_F77=
13883
  thread_safe_flag_spec_F77=
13884
  hardcode_libdir_flag_spec_F77=
13885
  hardcode_libdir_flag_spec_ld_F77=
13886
  hardcode_libdir_separator_F77=
13887
  hardcode_direct_F77=no
13888
  hardcode_minus_L_F77=no
13889
  hardcode_shlibpath_var_F77=unsupported
13890
  link_all_deplibs_F77=unknown
13891
  hardcode_automatic_F77=no
13892
  module_cmds_F77=
13893
  module_expsym_cmds_F77=
13894
  always_export_symbols_F77=no
13895
  export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13896
  # include_expsyms should be a list of space-separated symbols to be *always*
13897
  # included in the symbol list
13898
  include_expsyms_F77=
13899
  # exclude_expsyms can be an extended regexp of symbols to exclude
13900
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
13901
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13902
  # as well as any symbol that contains `d'.
13903
  exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13904
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13905
  # platforms (ab)use it in PIC code, but their linkers get confused if
13906
  # the symbol is explicitly referenced.  Since portable code cannot
13907
  # rely on this symbol name, it's probably fine to never include it in
13908
  # preloaded symbol tables.
13909
  extract_expsyms_cmds=
13910
 
13911
  case $host_os in
13912
  cygwin* | mingw* | pw32*)
13913
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
13914
    # When not using gcc, we currently assume that we are using
13915
    # Microsoft Visual C++.
13916
    if test "$GCC" != yes; then
13917
      with_gnu_ld=no
13918
    fi
13919
    ;;
13920
  openbsd*)
13921
    with_gnu_ld=no
13922
    ;;
13923
  esac
13924
 
13925
  ld_shlibs_F77=yes
13926
  if test "$with_gnu_ld" = yes; then
13927
    # If archive_cmds runs LD, not CC, wlarc should be empty
13928
    wlarc='${wl}'
13929
 
13930
    # See if GNU ld supports shared libraries.
13931
    case $host_os in
13932
    aix3* | aix4* | aix5*)
13933
      # On AIX/PPC, the GNU linker is very broken
13934
      if test "$host_cpu" != ia64; then
13935
        ld_shlibs_F77=no
13936
        cat <&2
13937
 
13938
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
13939
*** to be unable to reliably create shared libraries on AIX.
13940
*** Therefore, libtool is disabling shared libraries support.  If you
13941
*** really care for shared libraries, you may want to modify your PATH
13942
*** so that a non-GNU linker is found, and then restart.
13943
 
13944
EOF
13945
      fi
13946
      ;;
13947
 
13948
    amigaos*)
13949
      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)'
13950
      hardcode_libdir_flag_spec_F77='-L$libdir'
13951
      hardcode_minus_L_F77=yes
13952
 
13953
      # Samuel A. Falvo II  reports
13954
      # that the semantics of dynamic libraries on AmigaOS, at least up
13955
      # to version 4, is to share data among multiple programs linked
13956
      # with the same dynamic library.  Since this doesn't match the
13957
      # behavior of shared libraries on other platforms, we can't use
13958
      # them.
13959
      ld_shlibs_F77=no
13960
      ;;
13961
 
13962
    beos*)
13963
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13964
        allow_undefined_flag_F77=unsupported
13965
        # Joseph Beckenbach  says some releases of gcc
13966
        # support --undefined.  This deserves some investigation.  FIXME
13967
        archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13968
      else
13969
        ld_shlibs_F77=no
13970
      fi
13971
      ;;
13972
 
13973
    cygwin* | mingw* | pw32*)
13974
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13975
      # as there is no search path for DLLs.
13976
      hardcode_libdir_flag_spec_F77='-L$libdir'
13977
      allow_undefined_flag_F77=unsupported
13978
      always_export_symbols_F77=no
13979
      enable_shared_with_static_runtimes_F77=yes
13980
      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13981
 
13982
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13983
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13984
        # If the export-symbols file already is a .def file (1st line
13985
        # is EXPORTS), use it as is; otherwise, prepend...
13986
        archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13987
          cp $export_symbols $output_objdir/$soname.def;
13988
        else
13989
          echo EXPORTS > $output_objdir/$soname.def;
13990
          cat $export_symbols >> $output_objdir/$soname.def;
13991
        fi~
13992
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
13993
      else
13994
        ld_shlibs=no
13995
      fi
13996
      ;;
13997
 
13998
    netbsd*)
13999
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14000
        archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14001
        wlarc=
14002
      else
14003
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14004
        archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14005
      fi
14006
      ;;
14007
 
14008
    solaris* | sysv5*)
14009
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14010
        ld_shlibs_F77=no
14011
        cat <&2
14012
 
14013
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
14014
*** create shared libraries on Solaris systems.  Therefore, libtool
14015
*** is disabling shared libraries support.  We urge you to upgrade GNU
14016
*** binutils to release 2.9.1 or newer.  Another option is to modify
14017
*** your PATH or compiler configuration so that the native linker is
14018
*** used, and then restart.
14019
 
14020
EOF
14021
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14022
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14023
        archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14024
      else
14025
        ld_shlibs_F77=no
14026
      fi
14027
      ;;
14028
 
14029
    sunos4*)
14030
      archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14031
      wlarc=
14032
      hardcode_direct_F77=yes
14033
      hardcode_shlibpath_var_F77=no
14034
      ;;
14035
 
14036
    *)
14037
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14038
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14039
        archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14040
      else
14041
        ld_shlibs_F77=no
14042
      fi
14043
      ;;
14044
    esac
14045
 
14046
    if test "$ld_shlibs_F77" = yes; then
14047
      runpath_var=LD_RUN_PATH
14048
      hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14049
      export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14050
      # ancient GNU ld didn't support --whole-archive et. al.
14051
      if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14052
        whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14053
      else
14054
        whole_archive_flag_spec_F77=
14055
      fi
14056
    fi
14057
  else
14058
    # PORTME fill in a description of your system's linker (not GNU ld)
14059
    case $host_os in
14060
    aix3*)
14061
      allow_undefined_flag_F77=unsupported
14062
      always_export_symbols_F77=yes
14063
      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'
14064
      # Note: this linker hardcodes the directories in LIBPATH if there
14065
      # are no directories specified by -L.
14066
      hardcode_minus_L_F77=yes
14067
      if test "$GCC" = yes && test -z "$link_static_flag"; then
14068
        # Neither direct hardcoding nor static linking is supported with a
14069
        # broken collect2.
14070
        hardcode_direct_F77=unsupported
14071
      fi
14072
      ;;
14073
 
14074
    aix4* | aix5*)
14075
      if test "$host_cpu" = ia64; then
14076
        # On IA64, the linker does run time linking by default, so we don't
14077
        # have to do anything special.
14078
        aix_use_runtimelinking=no
14079
        exp_sym_flag='-Bexport'
14080
        no_entry_flag=""
14081
      else
14082
        # If we're using GNU nm, then we don't want the "-C" option.
14083
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
14084
        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14085
          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'
14086
        else
14087
          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'
14088
        fi
14089
        aix_use_runtimelinking=no
14090
 
14091
        # Test if we are trying to use run time linking or normal
14092
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14093
        # need to do runtime linking.
14094
        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14095
          for ld_flag in $LDFLAGS; do
14096
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14097
            aix_use_runtimelinking=yes
14098
            break
14099
          fi
14100
          done
14101
        esac
14102
 
14103
        exp_sym_flag='-bexport'
14104
        no_entry_flag='-bnoentry'
14105
      fi
14106
 
14107
      # When large executables or shared objects are built, AIX ld can
14108
      # have problems creating the table of contents.  If linking a library
14109
      # or program results in "error TOC overflow" add -mminimal-toc to
14110
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
14111
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14112
 
14113
      archive_cmds_F77=''
14114
      hardcode_direct_F77=yes
14115
      hardcode_libdir_separator_F77=':'
14116
      link_all_deplibs_F77=yes
14117
 
14118
      if test "$GCC" = yes; then
14119
        case $host_os in aix4.012|aix4.012.*)
14120
        # We only want to do this on AIX 4.2 and lower, the check
14121
        # below for broken collect2 doesn't work under 4.3+
14122
          collect2name=`${CC} -print-prog-name=collect2`
14123
          if test -f "$collect2name" && \
14124
           strings "$collect2name" | grep resolve_lib_name >/dev/null
14125
          then
14126
          # We have reworked collect2
14127
          hardcode_direct_F77=yes
14128
          else
14129
          # We have old collect2
14130
          hardcode_direct_F77=unsupported
14131
          # It fails to find uninstalled libraries when the uninstalled
14132
          # path is not listed in the libpath.  Setting hardcode_minus_L
14133
          # to unsupported forces relinking
14134
          hardcode_minus_L_F77=yes
14135
          hardcode_libdir_flag_spec_F77='-L$libdir'
14136
          hardcode_libdir_separator_F77=
14137
          fi
14138
        esac
14139
        shared_flag='-shared'
14140
      else
14141
        # not using gcc
14142
        if test "$host_cpu" = ia64; then
14143
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14144
        # chokes on -Wl,-G. The following line is correct:
14145
          shared_flag='-G'
14146
        else
14147
        if test "$aix_use_runtimelinking" = yes; then
14148
            shared_flag='${wl}-G'
14149
          else
14150
            shared_flag='${wl}-bM:SRE'
14151
        fi
14152
        fi
14153
      fi
14154
 
14155
      # It seems that -bexpall does not export symbols beginning with
14156
      # underscore (_), so it is better to generate a list of symbols to export.
14157
      always_export_symbols_F77=yes
14158
      if test "$aix_use_runtimelinking" = yes; then
14159
        # Warning - without using the other runtime loading flags (-brtl),
14160
        # -berok will link without error, but may produce a broken library.
14161
        allow_undefined_flag_F77='-berok'
14162
       # Determine the default libpath from the value encoded in an empty executable.
14163
       cat >conftest.$ac_ext <<_ACEOF
14164
      program main
14165
 
14166
      end
14167
_ACEOF
14168
rm -f conftest.$ac_objext conftest$ac_exeext
14169
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14170
  (eval $ac_link) 2>conftest.er1
14171
  ac_status=$?
14172
  grep -v '^ *+' conftest.er1 >conftest.err
14173
  rm -f conftest.er1
14174
  cat conftest.err >&5
14175
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14176
  (exit $ac_status); } &&
14177
         { ac_try='test -z "$ac_f77_werror_flag"
14178
                         || test ! -s conftest.err'
14179
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14180
  (eval $ac_try) 2>&5
14181
  ac_status=$?
14182
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14183
  (exit $ac_status); }; } &&
14184
         { ac_try='test -s conftest$ac_exeext'
14185
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14186
  (eval $ac_try) 2>&5
14187
  ac_status=$?
14188
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14189
  (exit $ac_status); }; }; then
14190
 
14191
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14192
}'`
14193
# Check for a 64-bit object if we didn't find anything.
14194
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; }
14195
}'`; fi
14196
else
14197
  echo "$as_me: failed program was:" >&5
14198
sed 's/^/| /' conftest.$ac_ext >&5
14199
 
14200
fi
14201
rm -f conftest.err conftest.$ac_objext \
14202
      conftest$ac_exeext conftest.$ac_ext
14203
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14204
 
14205
       hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14206
        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"
14207
       else
14208
        if test "$host_cpu" = ia64; then
14209
          hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14210
          allow_undefined_flag_F77="-z nodefs"
14211
          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"
14212
        else
14213
         # Determine the default libpath from the value encoded in an empty executable.
14214
         cat >conftest.$ac_ext <<_ACEOF
14215
      program main
14216
 
14217
      end
14218
_ACEOF
14219
rm -f conftest.$ac_objext conftest$ac_exeext
14220
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14221
  (eval $ac_link) 2>conftest.er1
14222
  ac_status=$?
14223
  grep -v '^ *+' conftest.er1 >conftest.err
14224
  rm -f conftest.er1
14225
  cat conftest.err >&5
14226
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14227
  (exit $ac_status); } &&
14228
         { ac_try='test -z "$ac_f77_werror_flag"
14229
                         || test ! -s conftest.err'
14230
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14231
  (eval $ac_try) 2>&5
14232
  ac_status=$?
14233
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14234
  (exit $ac_status); }; } &&
14235
         { ac_try='test -s conftest$ac_exeext'
14236
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14237
  (eval $ac_try) 2>&5
14238
  ac_status=$?
14239
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14240
  (exit $ac_status); }; }; then
14241
 
14242
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14243
}'`
14244
# Check for a 64-bit object if we didn't find anything.
14245
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; }
14246
}'`; fi
14247
else
14248
  echo "$as_me: failed program was:" >&5
14249
sed 's/^/| /' conftest.$ac_ext >&5
14250
 
14251
fi
14252
rm -f conftest.err conftest.$ac_objext \
14253
      conftest$ac_exeext conftest.$ac_ext
14254
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14255
 
14256
         hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14257
          # Warning - without using the other run time loading flags,
14258
          # -berok will link without error, but may produce a broken library.
14259
          no_undefined_flag_F77=' ${wl}-bernotok'
14260
          allow_undefined_flag_F77=' ${wl}-berok'
14261
          # -bexpall does not export symbols beginning with underscore (_)
14262
          always_export_symbols_F77=yes
14263
          # Exported symbols can be pulled into shared objects from archives
14264
          whole_archive_flag_spec_F77=' '
14265
          archive_cmds_need_lc_F77=yes
14266
          # This is similar to how AIX traditionally builds it's shared libraries.
14267
          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'
14268
        fi
14269
      fi
14270
      ;;
14271
 
14272
    amigaos*)
14273
      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)'
14274
      hardcode_libdir_flag_spec_F77='-L$libdir'
14275
      hardcode_minus_L_F77=yes
14276
      # see comment about different semantics on the GNU ld section
14277
      ld_shlibs_F77=no
14278
      ;;
14279
 
14280
    bsdi4*)
14281
      export_dynamic_flag_spec_F77=-rdynamic
14282
      ;;
14283
 
14284
    cygwin* | mingw* | pw32*)
14285
      # When not using gcc, we currently assume that we are using
14286
      # Microsoft Visual C++.
14287
      # hardcode_libdir_flag_spec is actually meaningless, as there is
14288
      # no search path for DLLs.
14289
      hardcode_libdir_flag_spec_F77=' '
14290
      allow_undefined_flag_F77=unsupported
14291
      # Tell ltmain to make .lib files, not .a files.
14292
      libext=lib
14293
      # Tell ltmain to make .dll files, not .so files.
14294
      shrext=".dll"
14295
      # FIXME: Setting linknames here is a bad hack.
14296
      archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14297
      # The linker will automatically build a .lib file if we build a DLL.
14298
      old_archive_From_new_cmds_F77='true'
14299
      # FIXME: Should let the user specify the lib program.
14300
      old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14301
      fix_srcfile_path='`cygpath -w "$srcfile"`'
14302
      enable_shared_with_static_runtimes_F77=yes
14303
      ;;
14304
 
14305
    darwin* | rhapsody*)
14306
    if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
14307
      archive_cmds_need_lc_F77=no
14308
      case "$host_os" in
14309
      rhapsody* | darwin1.[012])
14310
        allow_undefined_flag_F77='-undefined suppress'
14311
        ;;
14312
      *) # Darwin 1.3 on
14313
        test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_F77='-flat_namespace -undefined suppress'
14314
        ;;
14315
      esac
14316
      # FIXME: Relying on posixy $() will cause problems for
14317
      #        cross-compilation, but unfortunately the echo tests do not
14318
      #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
14319
      #        `"' quotes if we put them in here... so don't!
14320
        lt_int_apple_cc_single_mod=no
14321
        output_verbose_link_cmd='echo'
14322
        if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
14323
          lt_int_apple_cc_single_mod=yes
14324
        fi
14325
        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
14326
          archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14327
        else
14328
        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'
14329
      fi
14330
      module_cmds_F77='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
14331
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
14332
        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
14333
          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}'
14334
        else
14335
          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}'
14336
        fi
14337
          module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag  -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14338
      hardcode_direct_F77=no
14339
      hardcode_automatic_F77=yes
14340
      hardcode_shlibpath_var_F77=unsupported
14341
      whole_archive_flag_spec_F77='-all_load $convenience'
14342
      link_all_deplibs_F77=yes
14343
    fi
14344
      ;;
14345
 
14346
    dgux*)
14347
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14348
      hardcode_libdir_flag_spec_F77='-L$libdir'
14349
      hardcode_shlibpath_var_F77=no
14350
      ;;
14351
 
14352
    freebsd1*)
14353
      ld_shlibs_F77=no
14354
      ;;
14355
 
14356
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14357
    # support.  Future versions do this automatically, but an explicit c++rt0.o
14358
    # does not break anything, and helps significantly (at the cost of a little
14359
    # extra space).
14360
    freebsd2.2*)
14361
      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14362
      hardcode_libdir_flag_spec_F77='-R$libdir'
14363
      hardcode_direct_F77=yes
14364
      hardcode_shlibpath_var_F77=no
14365
      ;;
14366
 
14367
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14368
    freebsd2*)
14369
      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14370
      hardcode_direct_F77=yes
14371
      hardcode_minus_L_F77=yes
14372
      hardcode_shlibpath_var_F77=no
14373
      ;;
14374
 
14375
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14376
    freebsd*)
14377
      archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14378
      hardcode_libdir_flag_spec_F77='-R$libdir'
14379
      hardcode_direct_F77=yes
14380
      hardcode_shlibpath_var_F77=no
14381
      ;;
14382
 
14383
    hpux9*)
14384
      if test "$GCC" = yes; then
14385
        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'
14386
      else
14387
        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'
14388
      fi
14389
      hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14390
      hardcode_libdir_separator_F77=:
14391
      hardcode_direct_F77=yes
14392
 
14393
      # hardcode_minus_L: Not really in the search PATH,
14394
      # but as the default location of the library.
14395
      hardcode_minus_L_F77=yes
14396
      export_dynamic_flag_spec_F77='${wl}-E'
14397
      ;;
14398
 
14399
    hpux10* | hpux11*)
14400
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14401
        case "$host_cpu" in
14402
        hppa*64*|ia64*)
14403
          archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14404
          ;;
14405
        *)
14406
          archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14407
          ;;
14408
        esac
14409
      else
14410
        case "$host_cpu" in
14411
        hppa*64*|ia64*)
14412
          archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
14413
          ;;
14414
        *)
14415
          archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14416
          ;;
14417
        esac
14418
      fi
14419
      if test "$with_gnu_ld" = no; then
14420
        case "$host_cpu" in
14421
        hppa*64*)
14422
          hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14423
          hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14424
          hardcode_libdir_separator_F77=:
14425
          hardcode_direct_F77=no
14426
          hardcode_shlibpath_var_F77=no
14427
          ;;
14428
        ia64*)
14429
          hardcode_libdir_flag_spec_F77='-L$libdir'
14430
          hardcode_direct_F77=no
14431
          hardcode_shlibpath_var_F77=no
14432
 
14433
          # hardcode_minus_L: Not really in the search PATH,
14434
          # but as the default location of the library.
14435
          hardcode_minus_L_F77=yes
14436
          ;;
14437
        *)
14438
          hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14439
          hardcode_libdir_separator_F77=:
14440
          hardcode_direct_F77=yes
14441
          export_dynamic_flag_spec_F77='${wl}-E'
14442
 
14443
          # hardcode_minus_L: Not really in the search PATH,
14444
          # but as the default location of the library.
14445
          hardcode_minus_L_F77=yes
14446
          ;;
14447
        esac
14448
      fi
14449
      ;;
14450
 
14451
    irix5* | irix6* | nonstopux*)
14452
      if test "$GCC" = yes; then
14453
        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'
14454
      else
14455
        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'
14456
        hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14457
      fi
14458
      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14459
      hardcode_libdir_separator_F77=:
14460
      link_all_deplibs_F77=yes
14461
      ;;
14462
 
14463
    netbsd*)
14464
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14465
        archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
14466
      else
14467
        archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
14468
      fi
14469
      hardcode_libdir_flag_spec_F77='-R$libdir'
14470
      hardcode_direct_F77=yes
14471
      hardcode_shlibpath_var_F77=no
14472
      ;;
14473
 
14474
    newsos6)
14475
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14476
      hardcode_direct_F77=yes
14477
      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14478
      hardcode_libdir_separator_F77=:
14479
      hardcode_shlibpath_var_F77=no
14480
      ;;
14481
 
14482
    openbsd*)
14483
      hardcode_direct_F77=yes
14484
      hardcode_shlibpath_var_F77=no
14485
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14486
        archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14487
        hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14488
        export_dynamic_flag_spec_F77='${wl}-E'
14489
      else
14490
       case $host_os in
14491
         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14492
           archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14493
           hardcode_libdir_flag_spec_F77='-R$libdir'
14494
           ;;
14495
         *)
14496
           archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14497
           hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14498
           ;;
14499
       esac
14500
      fi
14501
      ;;
14502
 
14503
    os2*)
14504
      hardcode_libdir_flag_spec_F77='-L$libdir'
14505
      hardcode_minus_L_F77=yes
14506
      allow_undefined_flag_F77=unsupported
14507
      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'
14508
      old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14509
      ;;
14510
 
14511
    osf3*)
14512
      if test "$GCC" = yes; then
14513
        allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14514
        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'
14515
      else
14516
        allow_undefined_flag_F77=' -expect_unresolved \*'
14517
        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'
14518
      fi
14519
      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14520
      hardcode_libdir_separator_F77=:
14521
      ;;
14522
 
14523
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
14524
      if test "$GCC" = yes; then
14525
        allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14526
        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'
14527
        hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14528
      else
14529
        allow_undefined_flag_F77=' -expect_unresolved \*'
14530
        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'
14531
        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~
14532
        $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'
14533
 
14534
        # Both c and cxx compiler support -rpath directly
14535
        hardcode_libdir_flag_spec_F77='-rpath $libdir'
14536
      fi
14537
      hardcode_libdir_separator_F77=:
14538
      ;;
14539
 
14540
    sco3.2v5*)
14541
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14542
      hardcode_shlibpath_var_F77=no
14543
      export_dynamic_flag_spec_F77='${wl}-Bexport'
14544
      runpath_var=LD_RUN_PATH
14545
      hardcode_runpath_var=yes
14546
      ;;
14547
 
14548
    solaris*)
14549
      no_undefined_flag_F77=' -z text'
14550
      if test "$GCC" = yes; then
14551
        archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14552
        archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14553
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14554
      else
14555
        archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14556
        archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14557
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14558
      fi
14559
      hardcode_libdir_flag_spec_F77='-R$libdir'
14560
      hardcode_shlibpath_var_F77=no
14561
      case $host_os in
14562
      solaris2.[0-5] | solaris2.[0-5].*) ;;
14563
      *) # Supported since Solaris 2.6 (maybe 2.5.1?)
14564
        whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14565
      esac
14566
      link_all_deplibs_F77=yes
14567
      ;;
14568
 
14569
    sunos4*)
14570
      if test "x$host_vendor" = xsequent; then
14571
        # Use $CC to link under sequent, because it throws in some extra .o
14572
        # files that make .init and .fini sections work.
14573
        archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14574
      else
14575
        archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14576
      fi
14577
      hardcode_libdir_flag_spec_F77='-L$libdir'
14578
      hardcode_direct_F77=yes
14579
      hardcode_minus_L_F77=yes
14580
      hardcode_shlibpath_var_F77=no
14581
      ;;
14582
 
14583
    sysv4)
14584
      case $host_vendor in
14585
        sni)
14586
          archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14587
          hardcode_direct_F77=yes # is this really true???
14588
        ;;
14589
        siemens)
14590
          ## LD is ld it makes a PLAMLIB
14591
          ## CC just makes a GrossModule.
14592
          archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14593
          reload_cmds_F77='$CC -r -o $output$reload_objs'
14594
          hardcode_direct_F77=no
14595
        ;;
14596
        motorola)
14597
          archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14598
          hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14599
        ;;
14600
      esac
14601
      runpath_var='LD_RUN_PATH'
14602
      hardcode_shlibpath_var_F77=no
14603
      ;;
14604
 
14605
    sysv4.3*)
14606
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14607
      hardcode_shlibpath_var_F77=no
14608
      export_dynamic_flag_spec_F77='-Bexport'
14609
      ;;
14610
 
14611
    sysv4*MP*)
14612
      if test -d /usr/nec; then
14613
        archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14614
        hardcode_shlibpath_var_F77=no
14615
        runpath_var=LD_RUN_PATH
14616
        hardcode_runpath_var=yes
14617
        ld_shlibs_F77=yes
14618
      fi
14619
      ;;
14620
 
14621
    sysv4.2uw2*)
14622
      archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14623
      hardcode_direct_F77=yes
14624
      hardcode_minus_L_F77=no
14625
      hardcode_shlibpath_var_F77=no
14626
      hardcode_runpath_var=yes
14627
      runpath_var=LD_RUN_PATH
14628
      ;;
14629
 
14630
   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
14631
      no_undefined_flag_F77='${wl}-z ${wl}text'
14632
      if test "$GCC" = yes; then
14633
        archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14634
      else
14635
        archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14636
      fi
14637
      runpath_var='LD_RUN_PATH'
14638
      hardcode_shlibpath_var_F77=no
14639
      ;;
14640
 
14641
    sysv5*)
14642
      no_undefined_flag_F77=' -z text'
14643
      # $CC -shared without GNU ld will not create a library from C++
14644
      # object files and a static libstdc++, better avoid it by now
14645
      archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14646
      archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14647
                $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14648
      hardcode_libdir_flag_spec_F77=
14649
      hardcode_shlibpath_var_F77=no
14650
      runpath_var='LD_RUN_PATH'
14651
      ;;
14652
 
14653
    uts4*)
14654
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14655
      hardcode_libdir_flag_spec_F77='-L$libdir'
14656
      hardcode_shlibpath_var_F77=no
14657
      ;;
14658
 
14659
    *)
14660
      ld_shlibs_F77=no
14661
      ;;
14662
    esac
14663
  fi
14664
 
14665
echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14666
echo "${ECHO_T}$ld_shlibs_F77" >&6
14667
test "$ld_shlibs_F77" = no && can_build_shared=no
14668
 
14669
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14670
if test "$GCC" = yes; then
14671
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14672
fi
14673
 
14674
#
14675
# Do we need to explicitly link libc?
14676
#
14677
case "x$archive_cmds_need_lc_F77" in
14678
x|xyes)
14679
  # Assume -lc should be added
14680
  archive_cmds_need_lc_F77=yes
14681
 
14682
  if test "$enable_shared" = yes && test "$GCC" = yes; then
14683
    case $archive_cmds_F77 in
14684
    *'~'*)
14685
      # FIXME: we may have to deal with multi-command sequences.
14686
      ;;
14687
    '$CC '*)
14688
      # Test whether the compiler implicitly links with -lc since on some
14689
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
14690
      # to ld, don't add -lc before -lgcc.
14691
      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14692
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14693
      $rm conftest*
14694
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14695
 
14696
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14697
  (eval $ac_compile) 2>&5
14698
  ac_status=$?
14699
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14700
  (exit $ac_status); } 2>conftest.err; then
14701
        soname=conftest
14702
        lib=conftest
14703
        libobjs=conftest.$ac_objext
14704
        deplibs=
14705
        wl=$lt_prog_compiler_wl_F77
14706
        compiler_flags=-v
14707
        linker_flags=-v
14708
        verstring=
14709
        output_objdir=.
14710
        libname=conftest
14711
        lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14712
        allow_undefined_flag_F77=
14713
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14714
  (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14715
  ac_status=$?
14716
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14717
  (exit $ac_status); }
14718
        then
14719
          archive_cmds_need_lc_F77=no
14720
        else
14721
          archive_cmds_need_lc_F77=yes
14722
        fi
14723
        allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14724
      else
14725
        cat conftest.err 1>&5
14726
      fi
14727
      $rm conftest*
14728
      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14729
echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14730
      ;;
14731
    esac
14732
  fi
14733
  ;;
14734
esac
14735
 
14736
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14737
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
14738
hardcode_action_F77=
14739
if test -n "$hardcode_libdir_flag_spec_F77" || \
14740
   test -n "$runpath_var F77" || \
14741
   test "X$hardcode_automatic_F77"="Xyes" ; then
14742
 
14743
  # We can hardcode non-existant directories.
14744
  if test "$hardcode_direct_F77" != no &&
14745
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
14746
     # have to relink, otherwise we might link with an installed library
14747
     # when we should be linking with a yet-to-be-installed one
14748
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
14749
     test "$hardcode_minus_L_F77" != no; then
14750
    # Linking always hardcodes the temporary library directory.
14751
    hardcode_action_F77=relink
14752
  else
14753
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
14754
    hardcode_action_F77=immediate
14755
  fi
14756
else
14757
  # We cannot hardcode anything, or else we can only hardcode existing
14758
  # directories.
14759
  hardcode_action_F77=unsupported
14760
fi
14761
echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
14762
echo "${ECHO_T}$hardcode_action_F77" >&6
14763
 
14764
if test "$hardcode_action_F77" = relink; then
14765
  # Fast installation is not supported
14766
  enable_fast_install=no
14767
elif test "$shlibpath_overrides_runpath" = yes ||
14768
     test "$enable_shared" = no; then
14769
  # Fast installation is not necessary
14770
  enable_fast_install=needless
14771
fi
14772
 
14773
striplib=
14774
old_striplib=
14775
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
14776
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
14777
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
14778
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14779
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14780
  echo "$as_me:$LINENO: result: yes" >&5
14781
echo "${ECHO_T}yes" >&6
14782
else
14783
# FIXME - insert some real tests, host_os isn't really good enough
14784
  case $host_os in
14785
   darwin*)
14786
       if test -n "$STRIP" ; then
14787
         striplib="$STRIP -x"
14788
         echo "$as_me:$LINENO: result: yes" >&5
14789
echo "${ECHO_T}yes" >&6
14790
       else
14791
  echo "$as_me:$LINENO: result: no" >&5
14792
echo "${ECHO_T}no" >&6
14793
fi
14794
       ;;
14795
   *)
14796
  echo "$as_me:$LINENO: result: no" >&5
14797
echo "${ECHO_T}no" >&6
14798
    ;;
14799
  esac
14800
fi
14801
 
14802
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14803
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14804
library_names_spec=
14805
libname_spec='lib$name'
14806
soname_spec=
14807
shrext=".so"
14808
postinstall_cmds=
14809
postuninstall_cmds=
14810
finish_cmds=
14811
finish_eval=
14812
shlibpath_var=
14813
shlibpath_overrides_runpath=unknown
14814
version_type=none
14815
dynamic_linker="$host_os ld.so"
14816
sys_lib_dlsearch_path_spec="/lib /usr/lib"
14817
if test "$GCC" = yes; then
14818
  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14819
  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14820
    # if the path contains ";" then we assume it to be the separator
14821
    # otherwise default to the standard path separator (i.e. ":") - it is
14822
    # assumed that no part of a normal pathname contains ";" but that should
14823
    # okay in the real world where ";" in dirpaths is itself problematic.
14824
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14825
  else
14826
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14827
  fi
14828
else
14829
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14830
fi
14831
need_lib_prefix=unknown
14832
hardcode_into_libs=no
14833
 
14834
# when you set need_version to no, make sure it does not cause -set_version
14835
# flags to be left without arguments
14836
need_version=unknown
14837
 
14838
case $host_os in
14839
aix3*)
14840
  version_type=linux
14841
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14842
  shlibpath_var=LIBPATH
14843
 
14844
  # AIX 3 has no versioning support, so we append a major version to the name.
14845
  soname_spec='${libname}${release}${shared_ext}$major'
14846
  ;;
14847
 
14848
aix4* | aix5*)
14849
  version_type=linux
14850
  need_lib_prefix=no
14851
  need_version=no
14852
  hardcode_into_libs=yes
14853
  if test "$host_cpu" = ia64; then
14854
    # AIX 5 supports IA64
14855
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14856
    shlibpath_var=LD_LIBRARY_PATH
14857
  else
14858
    # With GCC up to 2.95.x, collect2 would create an import file
14859
    # for dependence libraries.  The import file would start with
14860
    # the line `#! .'.  This would cause the generated library to
14861
    # depend on `.', always an invalid library.  This was fixed in
14862
    # development snapshots of GCC prior to 3.0.
14863
    case $host_os in
14864
      aix4 | aix4.[01] | aix4.[01].*)
14865
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14866
           echo ' yes '
14867
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14868
        :
14869
      else
14870
        can_build_shared=no
14871
      fi
14872
      ;;
14873
    esac
14874
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14875
    # soname into executable. Probably we can add versioning support to
14876
    # collect2, so additional links can be useful in future.
14877
    if test "$aix_use_runtimelinking" = yes; then
14878
      # If using run time linking (on AIX 4.2 or later) use lib.so
14879
      # instead of lib.a to let people know that these are not
14880
      # typical AIX shared libraries.
14881
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14882
    else
14883
      # We preserve .a as extension for shared libraries through AIX4.2
14884
      # and later when we are not doing run time linking.
14885
      library_names_spec='${libname}${release}.a $libname.a'
14886
      soname_spec='${libname}${release}${shared_ext}$major'
14887
    fi
14888
    shlibpath_var=LIBPATH
14889
  fi
14890
  ;;
14891
 
14892
amigaos*)
14893
  library_names_spec='$libname.ixlibrary $libname.a'
14894
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
14895
  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'
14896
  ;;
14897
 
14898
beos*)
14899
  library_names_spec='${libname}${shared_ext}'
14900
  dynamic_linker="$host_os ld.so"
14901
  shlibpath_var=LIBRARY_PATH
14902
  ;;
14903
 
14904
bsdi4*)
14905
  version_type=linux
14906
  need_version=no
14907
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14908
  soname_spec='${libname}${release}${shared_ext}$major'
14909
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14910
  shlibpath_var=LD_LIBRARY_PATH
14911
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14912
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14913
  # the default ld.so.conf also contains /usr/contrib/lib and
14914
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14915
  # libtool to hard-code these into programs
14916
  ;;
14917
 
14918
cygwin* | mingw* | pw32*)
14919
  version_type=windows
14920
  shrext=".dll"
14921
  need_version=no
14922
  need_lib_prefix=no
14923
 
14924
  case $GCC,$host_os in
14925
  yes,cygwin* | yes,mingw* | yes,pw32*)
14926
    library_names_spec='$libname.dll.a'
14927
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
14928
    postinstall_cmds='base_file=`basename \${file}`~
14929
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14930
      dldir=$destdir/`dirname \$dlpath`~
14931
      test -d \$dldir || mkdir -p \$dldir~
14932
      $install_prog $dir/$dlname \$dldir/$dlname'
14933
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14934
      dlpath=$dir/\$dldll~
14935
       $rm \$dlpath'
14936
    shlibpath_overrides_runpath=yes
14937
 
14938
    case $host_os in
14939
    cygwin*)
14940
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14941
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14942
      sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
14943
      ;;
14944
    mingw*)
14945
      # MinGW DLLs use traditional 'lib' prefix
14946
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14947
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14948
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14949
        # It is most probably a Windows format PATH printed by
14950
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
14951
        # path with ; separators, and with drive letters. We can handle the
14952
        # drive letters (cygwin fileutils understands them), so leave them,
14953
        # especially as we might pass files found there to a mingw objdump,
14954
        # which wouldn't understand a cygwinified path. Ahh.
14955
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14956
      else
14957
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14958
      fi
14959
      ;;
14960
    pw32*)
14961
      # pw32 DLLs use 'pw' prefix rather than 'lib'
14962
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
14963
      ;;
14964
    esac
14965
    ;;
14966
 
14967
  *)
14968
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14969
    ;;
14970
  esac
14971
  dynamic_linker='Win32 ld.exe'
14972
  # FIXME: first we should search . and the directory the executable is in
14973
  shlibpath_var=PATH
14974
  ;;
14975
 
14976
darwin* | rhapsody*)
14977
  dynamic_linker="$host_os dyld"
14978
  version_type=darwin
14979
  need_lib_prefix=no
14980
  need_version=no
14981
  # FIXME: Relying on posixy $() will cause problems for
14982
  #        cross-compilation, but unfortunately the echo tests do not
14983
  #        yet detect zsh echo's removal of \ escapes.
14984
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14985
  soname_spec='${libname}${release}${major}$shared_ext'
14986
  shlibpath_overrides_runpath=yes
14987
  shlibpath_var=DYLD_LIBRARY_PATH
14988
  shrext='$(test .$module = .yes && echo .so || echo .dylib)'
14989
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14990
  if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
14991
  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"`
14992
  fi
14993
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14994
  ;;
14995
 
14996
dgux*)
14997
  version_type=linux
14998
  need_lib_prefix=no
14999
  need_version=no
15000
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15001
  soname_spec='${libname}${release}${shared_ext}$major'
15002
  shlibpath_var=LD_LIBRARY_PATH
15003
  ;;
15004
 
15005
freebsd1*)
15006
  dynamic_linker=no
15007
  ;;
15008
 
15009
freebsd*)
15010
  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
15011
  version_type=freebsd-$objformat
15012
  case $version_type in
15013
    freebsd-elf*)
15014
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15015
      need_version=no
15016
      need_lib_prefix=no
15017
      ;;
15018
    freebsd-*)
15019
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15020
      need_version=yes
15021
      ;;
15022
  esac
15023
  shlibpath_var=LD_LIBRARY_PATH
15024
  case $host_os in
15025
  freebsd2*)
15026
    shlibpath_overrides_runpath=yes
15027
    ;;
15028
  freebsd3.01* | freebsdelf3.01*)
15029
    shlibpath_overrides_runpath=yes
15030
    hardcode_into_libs=yes
15031
    ;;
15032
  *) # from 3.2 on
15033
    shlibpath_overrides_runpath=no
15034
    hardcode_into_libs=yes
15035
    ;;
15036
  esac
15037
  ;;
15038
 
15039
gnu*)
15040
  version_type=linux
15041
  need_lib_prefix=no
15042
  need_version=no
15043
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15044
  soname_spec='${libname}${release}${shared_ext}$major'
15045
  shlibpath_var=LD_LIBRARY_PATH
15046
  hardcode_into_libs=yes
15047
  ;;
15048
 
15049
hpux9* | hpux10* | hpux11*)
15050
  # Give a soname corresponding to the major version so that dld.sl refuses to
15051
  # link against other versions.
15052
  version_type=sunos
15053
  need_lib_prefix=no
15054
  need_version=no
15055
  case "$host_cpu" in
15056
  ia64*)
15057
    shrext='.so'
15058
    hardcode_into_libs=yes
15059
    dynamic_linker="$host_os dld.so"
15060
    shlibpath_var=LD_LIBRARY_PATH
15061
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15062
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15063
    soname_spec='${libname}${release}${shared_ext}$major'
15064
    if test "X$HPUX_IA64_MODE" = X32; then
15065
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15066
    else
15067
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15068
    fi
15069
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15070
    ;;
15071
   hppa*64*)
15072
     shrext='.sl'
15073
     hardcode_into_libs=yes
15074
     dynamic_linker="$host_os dld.sl"
15075
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15076
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15077
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15078
     soname_spec='${libname}${release}${shared_ext}$major'
15079
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15080
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15081
     ;;
15082
   *)
15083
    shrext='.sl'
15084
    dynamic_linker="$host_os dld.sl"
15085
    shlibpath_var=SHLIB_PATH
15086
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15087
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15088
    soname_spec='${libname}${release}${shared_ext}$major'
15089
    ;;
15090
  esac
15091
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
15092
  postinstall_cmds='chmod 555 $lib'
15093
  ;;
15094
 
15095
irix5* | irix6* | nonstopux*)
15096
  case $host_os in
15097
    nonstopux*) version_type=nonstopux ;;
15098
    *)
15099
        if test "$lt_cv_prog_gnu_ld" = yes; then
15100
                version_type=linux
15101
        else
15102
                version_type=irix
15103
        fi ;;
15104
  esac
15105
  need_lib_prefix=no
15106
  need_version=no
15107
  soname_spec='${libname}${release}${shared_ext}$major'
15108
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15109
  case $host_os in
15110
  irix5* | nonstopux*)
15111
    libsuff= shlibsuff=
15112
    ;;
15113
  *)
15114
    case $LD in # libtool.m4 will add one of these switches to LD
15115
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15116
      libsuff= shlibsuff= libmagic=32-bit;;
15117
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15118
      libsuff=32 shlibsuff=N32 libmagic=N32;;
15119
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15120
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
15121
    *) libsuff= shlibsuff= libmagic=never-match;;
15122
    esac
15123
    ;;
15124
  esac
15125
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15126
  shlibpath_overrides_runpath=no
15127
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15128
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15129
  hardcode_into_libs=yes
15130
  ;;
15131
 
15132
# No shared lib support for Linux oldld, aout, or coff.
15133
linux*oldld* | linux*aout* | linux*coff*)
15134
  dynamic_linker=no
15135
  ;;
15136
 
15137
# This must be Linux ELF.
15138
linux*)
15139
  version_type=linux
15140
  need_lib_prefix=no
15141
  need_version=no
15142
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15143
  soname_spec='${libname}${release}${shared_ext}$major'
15144
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15145
  shlibpath_var=LD_LIBRARY_PATH
15146
  shlibpath_overrides_runpath=no
15147
  # This implies no fast_install, which is unacceptable.
15148
  # Some rework will be needed to allow for fast_install
15149
  # before this can be enabled.
15150
  hardcode_into_libs=yes
15151
 
15152
  # We used to test for /lib/ld.so.1 and disable shared libraries on
15153
  # powerpc, because MkLinux only supported shared libraries with the
15154
  # GNU dynamic linker.  Since this was broken with cross compilers,
15155
  # most powerpc-linux boxes support dynamic linking these days and
15156
  # people can always --disable-shared, the test was removed, and we
15157
  # assume the GNU/Linux dynamic linker is in use.
15158
  dynamic_linker='GNU/Linux ld.so'
15159
  ;;
15160
 
15161
netbsd*)
15162
  version_type=sunos
15163
  need_lib_prefix=no
15164
  need_version=no
15165
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15166
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15167
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15168
    dynamic_linker='NetBSD (a.out) ld.so'
15169
  else
15170
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
15171
    soname_spec='${libname}${release}${shared_ext}$major'
15172
    dynamic_linker='NetBSD ld.elf_so'
15173
  fi
15174
  shlibpath_var=LD_LIBRARY_PATH
15175
  shlibpath_overrides_runpath=yes
15176
  hardcode_into_libs=yes
15177
  ;;
15178
 
15179
newsos6)
15180
  version_type=linux
15181
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15182
  shlibpath_var=LD_LIBRARY_PATH
15183
  shlibpath_overrides_runpath=yes
15184
  ;;
15185
 
15186
nto-qnx)
15187
  version_type=linux
15188
  need_lib_prefix=no
15189
  need_version=no
15190
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15191
  soname_spec='${libname}${release}${shared_ext}$major'
15192
  shlibpath_var=LD_LIBRARY_PATH
15193
  shlibpath_overrides_runpath=yes
15194
  ;;
15195
 
15196
openbsd*)
15197
  version_type=sunos
15198
  need_lib_prefix=no
15199
  need_version=no
15200
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15201
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15202
  shlibpath_var=LD_LIBRARY_PATH
15203
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15204
    case $host_os in
15205
      openbsd2.[89] | openbsd2.[89].*)
15206
        shlibpath_overrides_runpath=no
15207
        ;;
15208
      *)
15209
        shlibpath_overrides_runpath=yes
15210
        ;;
15211
      esac
15212
  else
15213
    shlibpath_overrides_runpath=yes
15214
  fi
15215
  ;;
15216
 
15217
os2*)
15218
  libname_spec='$name'
15219
  shrext=".dll"
15220
  need_lib_prefix=no
15221
  library_names_spec='$libname${shared_ext} $libname.a'
15222
  dynamic_linker='OS/2 ld.exe'
15223
  shlibpath_var=LIBPATH
15224
  ;;
15225
 
15226
osf3* | osf4* | osf5*)
15227
  version_type=osf
15228
  need_lib_prefix=no
15229
  need_version=no
15230
  soname_spec='${libname}${release}${shared_ext}$major'
15231
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15232
  shlibpath_var=LD_LIBRARY_PATH
15233
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15234
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15235
  ;;
15236
 
15237
sco3.2v5*)
15238
  version_type=osf
15239
  soname_spec='${libname}${release}${shared_ext}$major'
15240
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15241
  shlibpath_var=LD_LIBRARY_PATH
15242
  ;;
15243
 
15244
solaris*)
15245
  version_type=linux
15246
  need_lib_prefix=no
15247
  need_version=no
15248
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15249
  soname_spec='${libname}${release}${shared_ext}$major'
15250
  shlibpath_var=LD_LIBRARY_PATH
15251
  shlibpath_overrides_runpath=yes
15252
  hardcode_into_libs=yes
15253
  # ldd complains unless libraries are executable
15254
  postinstall_cmds='chmod +x $lib'
15255
  ;;
15256
 
15257
sunos4*)
15258
  version_type=sunos
15259
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15260
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15261
  shlibpath_var=LD_LIBRARY_PATH
15262
  shlibpath_overrides_runpath=yes
15263
  if test "$with_gnu_ld" = yes; then
15264
    need_lib_prefix=no
15265
  fi
15266
  need_version=yes
15267
  ;;
15268
 
15269
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15270
  version_type=linux
15271
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15272
  soname_spec='${libname}${release}${shared_ext}$major'
15273
  shlibpath_var=LD_LIBRARY_PATH
15274
  case $host_vendor in
15275
    sni)
15276
      shlibpath_overrides_runpath=no
15277
      need_lib_prefix=no
15278
      export_dynamic_flag_spec='${wl}-Blargedynsym'
15279
      runpath_var=LD_RUN_PATH
15280
      ;;
15281
    siemens)
15282
      need_lib_prefix=no
15283
      ;;
15284
    motorola)
15285
      need_lib_prefix=no
15286
      need_version=no
15287
      shlibpath_overrides_runpath=no
15288
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15289
      ;;
15290
  esac
15291
  ;;
15292
 
15293
sysv4*MP*)
15294
  if test -d /usr/nec ;then
15295
    version_type=linux
15296
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15297
    soname_spec='$libname${shared_ext}.$major'
15298
    shlibpath_var=LD_LIBRARY_PATH
15299
  fi
15300
  ;;
15301
 
15302
uts4*)
15303
  version_type=linux
15304
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15305
  soname_spec='${libname}${release}${shared_ext}$major'
15306
  shlibpath_var=LD_LIBRARY_PATH
15307
  ;;
15308
 
15309
*)
15310
  dynamic_linker=no
15311
  ;;
15312
esac
15313
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15314
echo "${ECHO_T}$dynamic_linker" >&6
15315
test "$dynamic_linker" = no && can_build_shared=no
15316
 
15317
 
15318
# The else clause should only fire when bootstrapping the
15319
# libtool distribution, otherwise you forgot to ship ltmain.sh
15320
# with your package, and you will get complaints that there are
15321
# no rules to generate ltmain.sh.
15322
if test -f "$ltmain"; then
15323
  # See if we are running on zsh, and set the options which allow our commands through
15324
  # without removal of \ escapes.
15325
  if test -n "${ZSH_VERSION+set}" ; then
15326
    setopt NO_GLOB_SUBST
15327
  fi
15328
  # Now quote all the things that may contain metacharacters while being
15329
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
15330
  # variables and quote the copies for generation of the libtool script.
15331
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
15332
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15333
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15334
    deplibs_check_method reload_flag reload_cmds need_locks \
15335
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15336
    lt_cv_sys_global_symbol_to_c_name_address \
15337
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15338
    old_postinstall_cmds old_postuninstall_cmds \
15339
    compiler_F77 \
15340
    CC_F77 \
15341
    LD_F77 \
15342
    lt_prog_compiler_wl_F77 \
15343
    lt_prog_compiler_pic_F77 \
15344
    lt_prog_compiler_static_F77 \
15345
    lt_prog_compiler_no_builtin_flag_F77 \
15346
    export_dynamic_flag_spec_F77 \
15347
    thread_safe_flag_spec_F77 \
15348
    whole_archive_flag_spec_F77 \
15349
    enable_shared_with_static_runtimes_F77 \
15350
    old_archive_cmds_F77 \
15351
    old_archive_from_new_cmds_F77 \
15352
    predep_objects_F77 \
15353
    postdep_objects_F77 \
15354
    predeps_F77 \
15355
    postdeps_F77 \
15356
    compiler_lib_search_path_F77 \
15357
    archive_cmds_F77 \
15358
    archive_expsym_cmds_F77 \
15359
    postinstall_cmds_F77 \
15360
    postuninstall_cmds_F77 \
15361
    old_archive_from_expsyms_cmds_F77 \
15362
    allow_undefined_flag_F77 \
15363
    no_undefined_flag_F77 \
15364
    export_symbols_cmds_F77 \
15365
    hardcode_libdir_flag_spec_F77 \
15366
    hardcode_libdir_flag_spec_ld_F77 \
15367
    hardcode_libdir_separator_F77 \
15368
    hardcode_automatic_F77 \
15369
    module_cmds_F77 \
15370
    module_expsym_cmds_F77 \
15371
    lt_cv_prog_compiler_c_o_F77 \
15372
    exclude_expsyms_F77 \
15373
    include_expsyms_F77; do
15374
 
15375
    case $var in
15376
    old_archive_cmds_F77 | \
15377
    old_archive_from_new_cmds_F77 | \
15378
    archive_cmds_F77 | \
15379
    archive_expsym_cmds_F77 | \
15380
    module_cmds_F77 | \
15381
    module_expsym_cmds_F77 | \
15382
    old_archive_from_expsyms_cmds_F77 | \
15383
    export_symbols_cmds_F77 | \
15384
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
15385
    postinstall_cmds | postuninstall_cmds | \
15386
    old_postinstall_cmds | old_postuninstall_cmds | \
15387
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15388
      # Double-quote double-evaled strings.
15389
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15390
      ;;
15391
    *)
15392
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15393
      ;;
15394
    esac
15395
  done
15396
 
15397
  case $lt_echo in
15398
  *'\$0 --fallback-echo"')
15399
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15400
    ;;
15401
  esac
15402
 
15403
cfgfile="$ofile"
15404
 
15405
  cat <<__EOF__ >> "$cfgfile"
15406
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
15407
 
15408
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15409
 
15410
# Shell to use when invoking shell scripts.
15411
SHELL=$lt_SHELL
15412
 
15413
# Whether or not to build shared libraries.
15414
build_libtool_libs=$enable_shared
15415
 
15416
# Whether or not to build static libraries.
15417
build_old_libs=$enable_static
15418
 
15419
# Whether or not to add -lc for building shared libraries.
15420
build_libtool_need_lc=$archive_cmds_need_lc_F77
15421
 
15422
# Whether or not to disallow shared libs when runtime libs are static
15423
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15424
 
15425
# Whether or not to optimize for fast installation.
15426
fast_install=$enable_fast_install
15427
 
15428
# The host system.
15429
host_alias=$host_alias
15430
host=$host
15431
 
15432
# An echo program that does not interpret backslashes.
15433
echo=$lt_echo
15434
 
15435
# The archiver.
15436
AR=$lt_AR
15437
AR_FLAGS=$lt_AR_FLAGS
15438
 
15439
# A C compiler.
15440
LTCC=$lt_LTCC
15441
 
15442
# A language-specific compiler.
15443
CC=$lt_compiler_F77
15444
 
15445
# Is the compiler the GNU C compiler?
15446
with_gcc=$GCC_F77
15447
 
15448
# An ERE matcher.
15449
EGREP=$lt_EGREP
15450
 
15451
# The linker used to build libraries.
15452
LD=$lt_LD_F77
15453
 
15454
# Whether we need hard or soft links.
15455
LN_S=$lt_LN_S
15456
 
15457
# A BSD-compatible nm program.
15458
NM=$lt_NM
15459
 
15460
# A symbol stripping program
15461
STRIP=$STRIP
15462
 
15463
# Used to examine libraries when file_magic_cmd begins "file"
15464
MAGIC_CMD=$MAGIC_CMD
15465
 
15466
# Used on cygwin: DLL creation program.
15467
DLLTOOL="$DLLTOOL"
15468
 
15469
# Used on cygwin: object dumper.
15470
OBJDUMP="$OBJDUMP"
15471
 
15472
# Used on cygwin: assembler.
15473
AS="$AS"
15474
 
15475
# The name of the directory that contains temporary libtool files.
15476
objdir=$objdir
15477
 
15478
# How to create reloadable object files.
15479
reload_flag=$lt_reload_flag
15480
reload_cmds=$lt_reload_cmds
15481
 
15482
# How to pass a linker flag through the compiler.
15483
wl=$lt_lt_prog_compiler_wl_F77
15484
 
15485
# Object file suffix (normally "o").
15486
objext="$ac_objext"
15487
 
15488
# Old archive suffix (normally "a").
15489
libext="$libext"
15490
 
15491
# Shared library suffix (normally ".so").
15492
shrext='$shrext'
15493
 
15494
# Executable file suffix (normally "").
15495
exeext="$exeext"
15496
 
15497
# Additional compiler flags for building library objects.
15498
pic_flag=$lt_lt_prog_compiler_pic_F77
15499
pic_mode=$pic_mode
15500
 
15501
# What is the maximum length of a command?
15502
max_cmd_len=$lt_cv_sys_max_cmd_len
15503
 
15504
# Does compiler simultaneously support -c and -o options?
15505
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15506
 
15507
# Must we lock files when doing compilation ?
15508
need_locks=$lt_need_locks
15509
 
15510
# Do we need the lib prefix for modules?
15511
need_lib_prefix=$need_lib_prefix
15512
 
15513
# Do we need a version for libraries?
15514
need_version=$need_version
15515
 
15516
# Whether dlopen is supported.
15517
dlopen_support=$enable_dlopen
15518
 
15519
# Whether dlopen of programs is supported.
15520
dlopen_self=$enable_dlopen_self
15521
 
15522
# Whether dlopen of statically linked programs is supported.
15523
dlopen_self_static=$enable_dlopen_self_static
15524
 
15525
# Compiler flag to prevent dynamic linking.
15526
link_static_flag=$lt_lt_prog_compiler_static_F77
15527
 
15528
# Compiler flag to turn off builtin functions.
15529
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15530
 
15531
# Compiler flag to allow reflexive dlopens.
15532
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15533
 
15534
# Compiler flag to generate shared objects directly from archives.
15535
whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15536
 
15537
# Compiler flag to generate thread-safe objects.
15538
thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15539
 
15540
# Library versioning type.
15541
version_type=$version_type
15542
 
15543
# Format of library name prefix.
15544
libname_spec=$lt_libname_spec
15545
 
15546
# List of archive names.  First name is the real one, the rest are links.
15547
# The last name is the one that the linker finds with -lNAME.
15548
library_names_spec=$lt_library_names_spec
15549
 
15550
# The coded name of the library, if different from the real name.
15551
soname_spec=$lt_soname_spec
15552
 
15553
# Commands used to build and install an old-style archive.
15554
RANLIB=$lt_RANLIB
15555
old_archive_cmds=$lt_old_archive_cmds_F77
15556
old_postinstall_cmds=$lt_old_postinstall_cmds
15557
old_postuninstall_cmds=$lt_old_postuninstall_cmds
15558
 
15559
# Create an old-style archive from a shared archive.
15560
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15561
 
15562
# Create a temporary old-style archive to link instead of a shared archive.
15563
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15564
 
15565
# Commands used to build and install a shared archive.
15566
archive_cmds=$lt_archive_cmds_F77
15567
archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15568
postinstall_cmds=$lt_postinstall_cmds
15569
postuninstall_cmds=$lt_postuninstall_cmds
15570
 
15571
# Commands used to build a loadable module (assumed same as above if empty)
15572
module_cmds=$lt_module_cmds_F77
15573
module_expsym_cmds=$lt_module_expsym_cmds_F77
15574
 
15575
# Commands to strip libraries.
15576
old_striplib=$lt_old_striplib
15577
striplib=$lt_striplib
15578
 
15579
# Dependencies to place before the objects being linked to create a
15580
# shared library.
15581
predep_objects=$lt_predep_objects_F77
15582
 
15583
# Dependencies to place after the objects being linked to create a
15584
# shared library.
15585
postdep_objects=$lt_postdep_objects_F77
15586
 
15587
# Dependencies to place before the objects being linked to create a
15588
# shared library.
15589
predeps=$lt_predeps_F77
15590
 
15591
# Dependencies to place after the objects being linked to create a
15592
# shared library.
15593
postdeps=$lt_postdeps_F77
15594
 
15595
# The library search path used internally by the compiler when linking
15596
# a shared library.
15597
compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15598
 
15599
# Method to check whether dependent libraries are shared objects.
15600
deplibs_check_method=$lt_deplibs_check_method
15601
 
15602
# Command to use when deplibs_check_method == file_magic.
15603
file_magic_cmd=$lt_file_magic_cmd
15604
 
15605
# Flag that allows shared libraries with undefined symbols to be built.
15606
allow_undefined_flag=$lt_allow_undefined_flag_F77
15607
 
15608
# Flag that forces no undefined symbols.
15609
no_undefined_flag=$lt_no_undefined_flag_F77
15610
 
15611
# Commands used to finish a libtool library installation in a directory.
15612
finish_cmds=$lt_finish_cmds
15613
 
15614
# Same as above, but a single script fragment to be evaled but not shown.
15615
finish_eval=$lt_finish_eval
15616
 
15617
# Take the output of nm and produce a listing of raw symbols and C names.
15618
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15619
 
15620
# Transform the output of nm in a proper C declaration
15621
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15622
 
15623
# Transform the output of nm in a C name address pair
15624
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15625
 
15626
# This is the shared library runtime path variable.
15627
runpath_var=$runpath_var
15628
 
15629
# This is the shared library path variable.
15630
shlibpath_var=$shlibpath_var
15631
 
15632
# Is shlibpath searched before the hard-coded library search path?
15633
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15634
 
15635
# How to hardcode a shared library path into an executable.
15636
hardcode_action=$hardcode_action_F77
15637
 
15638
# Whether we should hardcode library paths into libraries.
15639
hardcode_into_libs=$hardcode_into_libs
15640
 
15641
# Flag to hardcode \$libdir into a binary during linking.
15642
# This must work even if \$libdir does not exist.
15643
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15644
 
15645
# If ld is used when linking, flag to hardcode \$libdir into
15646
# a binary during linking. This must work even if \$libdir does
15647
# not exist.
15648
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15649
 
15650
# Whether we need a single -rpath flag with a separated argument.
15651
hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15652
 
15653
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15654
# resulting binary.
15655
hardcode_direct=$hardcode_direct_F77
15656
 
15657
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15658
# resulting binary.
15659
hardcode_minus_L=$hardcode_minus_L_F77
15660
 
15661
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15662
# the resulting binary.
15663
hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15664
 
15665
# Set to yes if building a shared library automatically hardcodes DIR into the library
15666
# and all subsequent libraries and executables linked against it.
15667
hardcode_automatic=$hardcode_automatic_F77
15668
 
15669
# Variables whose values should be saved in libtool wrapper scripts and
15670
# restored at relink time.
15671
variables_saved_for_relink="$variables_saved_for_relink"
15672
 
15673
# Whether libtool must link a program against all its dependency libraries.
15674
link_all_deplibs=$link_all_deplibs_F77
15675
 
15676
# Compile-time system search path for libraries
15677
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15678
 
15679
# Run-time system search path for libraries
15680
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15681
 
15682
# Fix the shell variable \$srcfile for the compiler.
15683
fix_srcfile_path="$fix_srcfile_path_F77"
15684
 
15685
# Set to yes if exported symbols are required.
15686
always_export_symbols=$always_export_symbols_F77
15687
 
15688
# The commands to list exported symbols.
15689
export_symbols_cmds=$lt_export_symbols_cmds_F77
15690
 
15691
# The commands to extract the exported symbol list from a shared archive.
15692
extract_expsyms_cmds=$lt_extract_expsyms_cmds
15693
 
15694
# Symbols that should not be listed in the preloaded symbols.
15695
exclude_expsyms=$lt_exclude_expsyms_F77
15696
 
15697
# Symbols that must always be exported.
15698
include_expsyms=$lt_include_expsyms_F77
15699
 
15700
# ### END LIBTOOL TAG CONFIG: $tagname
15701
 
15702
__EOF__
15703
 
15704
 
15705
else
15706
  # If there is no Makefile yet, we rely on a make rule to execute
15707
  # `config.status --recheck' to rerun these tests and create the
15708
  # libtool script then.
15709
  test -f Makefile && make "$ltmain"
15710
fi
15711
 
15712
 
15713
ac_ext=c
15714
ac_cpp='$CPP $CPPFLAGS'
15715
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15716
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15717
ac_compiler_gnu=$ac_cv_c_compiler_gnu
15718
 
15719
CC="$lt_save_CC"
15720
 
15721
        else
15722
          tagname=""
15723
        fi
15724
        ;;
15725
 
15726
      GCJ)
15727
        if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15728
 
15729
 
15730
 
15731
# Source file extension for Java test sources.
15732
ac_ext=java
15733
 
15734
# Object file extension for compiled Java test sources.
15735
objext=o
15736
objext_GCJ=$objext
15737
 
15738
# Code to be used in simple compile tests
15739
lt_simple_compile_test_code="class foo {}\n"
15740
 
15741
# Code to be used in simple link tests
15742
lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
15743
 
15744
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
15745
 
15746
# If no C compiler was specified, use CC.
15747
LTCC=${LTCC-"$CC"}
15748
 
15749
# Allow CC to be a program name with arguments.
15750
compiler=$CC
15751
 
15752
 
15753
# Allow CC to be a program name with arguments.
15754
lt_save_CC="$CC"
15755
CC=${GCJ-"gcj"}
15756
compiler=$CC
15757
compiler_GCJ=$CC
15758
 
15759
# GCJ did not exist at the time GCC didn't implicitly link libc in.
15760
archive_cmds_need_lc_GCJ=no
15761
 
15762
## CAVEAT EMPTOR:
15763
## There is no encapsulation within the following macros, do not change
15764
## the running order or otherwise move them around unless you know exactly
15765
## what you are doing...
15766
 
15767
lt_prog_compiler_no_builtin_flag_GCJ=
15768
 
15769
if test "$GCC" = yes; then
15770
  lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15771
 
15772
  echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15773
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15774
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15775
  echo $ECHO_N "(cached) $ECHO_C" >&6
15776
else
15777
  lt_cv_prog_compiler_rtti_exceptions=no
15778
  ac_outfile=conftest.$ac_objext
15779
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15780
   lt_compiler_flag="-fno-rtti -fno-exceptions"
15781
   # Insert the option either (1) after the last *FLAGS variable, or
15782
   # (2) before a word containing "conftest.", or (3) at the end.
15783
   # Note that $ac_compile itself does not contain backslashes and begins
15784
   # with a dollar sign (not a hyphen), so the echo should work correctly.
15785
   # The option is referenced via a variable to avoid confusing sed.
15786
   lt_compile=`echo "$ac_compile" | $SED \
15787
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15788
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15789
   -e 's:$: $lt_compiler_flag:'`
15790
   (eval echo "\"\$as_me:15790: $lt_compile\"" >&5)
15791
   (eval "$lt_compile" 2>conftest.err)
15792
   ac_status=$?
15793
   cat conftest.err >&5
15794
   echo "$as_me:15794: \$? = $ac_status" >&5
15795
   if (exit $ac_status) && test -s "$ac_outfile"; then
15796
     # The compiler can only warn and ignore the option if not recognized
15797
     # So say no if there are warnings
15798
     if test ! -s conftest.err; then
15799
       lt_cv_prog_compiler_rtti_exceptions=yes
15800
     fi
15801
   fi
15802
   $rm conftest*
15803
 
15804
fi
15805
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15806
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15807
 
15808
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15809
    lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15810
else
15811
    :
15812
fi
15813
 
15814
fi
15815
 
15816
lt_prog_compiler_wl_GCJ=
15817
lt_prog_compiler_pic_GCJ=
15818
lt_prog_compiler_static_GCJ=
15819
 
15820
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15821
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15822
 
15823
  if test "$GCC" = yes; then
15824
    lt_prog_compiler_wl_GCJ='-Wl,'
15825
    lt_prog_compiler_static_GCJ='-static'
15826
 
15827
    case $host_os in
15828
      aix*)
15829
      # All AIX code is PIC.
15830
      if test "$host_cpu" = ia64; then
15831
        # AIX 5 now supports IA64 processor
15832
        lt_prog_compiler_static_GCJ='-Bstatic'
15833
      fi
15834
      ;;
15835
 
15836
    amigaos*)
15837
      # FIXME: we need at least 68020 code to build shared libraries, but
15838
      # adding the `-m68020' flag to GCC prevents building anything better,
15839
      # like `-m68040'.
15840
      lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15841
      ;;
15842
 
15843
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15844
      # PIC is the default for these OSes.
15845
      ;;
15846
 
15847
    mingw* | pw32* | os2*)
15848
      # This hack is so that the source file can tell whether it is being
15849
      # built for inclusion in a dll (and should export symbols for example).
15850
      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15851
      ;;
15852
 
15853
    darwin* | rhapsody*)
15854
      # PIC is the default on this platform
15855
      # Common symbols not allowed in MH_DYLIB files
15856
      lt_prog_compiler_pic_GCJ='-fno-common'
15857
      ;;
15858
 
15859
    msdosdjgpp*)
15860
      # Just because we use GCC doesn't mean we suddenly get shared libraries
15861
      # on systems that don't support them.
15862
      lt_prog_compiler_can_build_shared_GCJ=no
15863
      enable_shared=no
15864
      ;;
15865
 
15866
    sysv4*MP*)
15867
      if test -d /usr/nec; then
15868
        lt_prog_compiler_pic_GCJ=-Kconform_pic
15869
      fi
15870
      ;;
15871
 
15872
    hpux*)
15873
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15874
      # not for PA HP-UX.
15875
      case "$host_cpu" in
15876
      hppa*64*|ia64*)
15877
        # +Z the default
15878
        ;;
15879
      *)
15880
        lt_prog_compiler_pic_GCJ='-fPIC'
15881
        ;;
15882
      esac
15883
      ;;
15884
 
15885
    *)
15886
      lt_prog_compiler_pic_GCJ='-fPIC'
15887
      ;;
15888
    esac
15889
  else
15890
    # PORTME Check for flag to pass linker flags through the system compiler.
15891
    case $host_os in
15892
    aix*)
15893
      lt_prog_compiler_wl_GCJ='-Wl,'
15894
      if test "$host_cpu" = ia64; then
15895
        # AIX 5 now supports IA64 processor
15896
        lt_prog_compiler_static_GCJ='-Bstatic'
15897
      else
15898
        lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15899
      fi
15900
      ;;
15901
 
15902
    mingw* | pw32* | os2*)
15903
      # This hack is so that the source file can tell whether it is being
15904
      # built for inclusion in a dll (and should export symbols for example).
15905
      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15906
      ;;
15907
 
15908
    hpux9* | hpux10* | hpux11*)
15909
      lt_prog_compiler_wl_GCJ='-Wl,'
15910
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15911
      # not for PA HP-UX.
15912
      case "$host_cpu" in
15913
      hppa*64*|ia64*)
15914
        # +Z the default
15915
        ;;
15916
      *)
15917
        lt_prog_compiler_pic_GCJ='+Z'
15918
        ;;
15919
      esac
15920
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
15921
      lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15922
      ;;
15923
 
15924
    irix5* | irix6* | nonstopux*)
15925
      lt_prog_compiler_wl_GCJ='-Wl,'
15926
      # PIC (with -KPIC) is the default.
15927
      lt_prog_compiler_static_GCJ='-non_shared'
15928
      ;;
15929
 
15930
    newsos6)
15931
      lt_prog_compiler_pic_GCJ='-KPIC'
15932
      lt_prog_compiler_static_GCJ='-Bstatic'
15933
      ;;
15934
 
15935
    linux*)
15936
      case $CC in
15937
      icc|ecc)
15938
        lt_prog_compiler_wl_GCJ='-Wl,'
15939
        lt_prog_compiler_pic_GCJ='-KPIC'
15940
        lt_prog_compiler_static_GCJ='-static'
15941
        ;;
15942
      ccc)
15943
        lt_prog_compiler_wl_GCJ='-Wl,'
15944
        # All Alpha code is PIC.
15945
        lt_prog_compiler_static_GCJ='-non_shared'
15946
        ;;
15947
      esac
15948
      ;;
15949
 
15950
    osf3* | osf4* | osf5*)
15951
      lt_prog_compiler_wl_GCJ='-Wl,'
15952
      # All OSF/1 code is PIC.
15953
      lt_prog_compiler_static_GCJ='-non_shared'
15954
      ;;
15955
 
15956
    sco3.2v5*)
15957
      lt_prog_compiler_pic_GCJ='-Kpic'
15958
      lt_prog_compiler_static_GCJ='-dn'
15959
      ;;
15960
 
15961
    solaris*)
15962
      lt_prog_compiler_wl_GCJ='-Wl,'
15963
      lt_prog_compiler_pic_GCJ='-KPIC'
15964
      lt_prog_compiler_static_GCJ='-Bstatic'
15965
      ;;
15966
 
15967
    sunos4*)
15968
      lt_prog_compiler_wl_GCJ='-Qoption ld '
15969
      lt_prog_compiler_pic_GCJ='-PIC'
15970
      lt_prog_compiler_static_GCJ='-Bstatic'
15971
      ;;
15972
 
15973
    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15974
      lt_prog_compiler_wl_GCJ='-Wl,'
15975
      lt_prog_compiler_pic_GCJ='-KPIC'
15976
      lt_prog_compiler_static_GCJ='-Bstatic'
15977
      ;;
15978
 
15979
    sysv4*MP*)
15980
      if test -d /usr/nec ;then
15981
        lt_prog_compiler_pic_GCJ='-Kconform_pic'
15982
        lt_prog_compiler_static_GCJ='-Bstatic'
15983
      fi
15984
      ;;
15985
 
15986
    uts4*)
15987
      lt_prog_compiler_pic_GCJ='-pic'
15988
      lt_prog_compiler_static_GCJ='-Bstatic'
15989
      ;;
15990
 
15991
    *)
15992
      lt_prog_compiler_can_build_shared_GCJ=no
15993
      ;;
15994
    esac
15995
  fi
15996
 
15997
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15998
echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
15999
 
16000
#
16001
# Check to make sure the PIC flag actually works.
16002
#
16003
if test -n "$lt_prog_compiler_pic_GCJ"; then
16004
  echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16005
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
16006
if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16007
  echo $ECHO_N "(cached) $ECHO_C" >&6
16008
else
16009
  lt_prog_compiler_pic_works_GCJ=no
16010
  ac_outfile=conftest.$ac_objext
16011
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16012
   lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16013
   # Insert the option either (1) after the last *FLAGS variable, or
16014
   # (2) before a word containing "conftest.", or (3) at the end.
16015
   # Note that $ac_compile itself does not contain backslashes and begins
16016
   # with a dollar sign (not a hyphen), so the echo should work correctly.
16017
   # The option is referenced via a variable to avoid confusing sed.
16018
   lt_compile=`echo "$ac_compile" | $SED \
16019
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16020
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16021
   -e 's:$: $lt_compiler_flag:'`
16022
   (eval echo "\"\$as_me:16022: $lt_compile\"" >&5)
16023
   (eval "$lt_compile" 2>conftest.err)
16024
   ac_status=$?
16025
   cat conftest.err >&5
16026
   echo "$as_me:16026: \$? = $ac_status" >&5
16027
   if (exit $ac_status) && test -s "$ac_outfile"; then
16028
     # The compiler can only warn and ignore the option if not recognized
16029
     # So say no if there are warnings
16030
     if test ! -s conftest.err; then
16031
       lt_prog_compiler_pic_works_GCJ=yes
16032
     fi
16033
   fi
16034
   $rm conftest*
16035
 
16036
fi
16037
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16038
echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
16039
 
16040
if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16041
    case $lt_prog_compiler_pic_GCJ in
16042
     "" | " "*) ;;
16043
     *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16044
     esac
16045
else
16046
    lt_prog_compiler_pic_GCJ=
16047
     lt_prog_compiler_can_build_shared_GCJ=no
16048
fi
16049
 
16050
fi
16051
case "$host_os" in
16052
  # For platforms which do not support PIC, -DPIC is meaningless:
16053
  *djgpp*)
16054
    lt_prog_compiler_pic_GCJ=
16055
    ;;
16056
  *)
16057
    lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16058
    ;;
16059
esac
16060
 
16061
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16062
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16063
if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16064
  echo $ECHO_N "(cached) $ECHO_C" >&6
16065
else
16066
  lt_cv_prog_compiler_c_o_GCJ=no
16067
   $rm -r conftest 2>/dev/null
16068
   mkdir conftest
16069
   cd conftest
16070
   mkdir out
16071
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16072
 
16073
   # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
16074
   # that will create temporary files in the current directory regardless of
16075
   # the output directory.  Thus, making CWD read-only will cause this test
16076
   # to fail, enabling locking or at least warning the user not to do parallel
16077
   # builds.
16078
   chmod -w .
16079
 
16080
   lt_compiler_flag="-o out/conftest2.$ac_objext"
16081
   # Insert the option either (1) after the last *FLAGS variable, or
16082
   # (2) before a word containing "conftest.", or (3) at the end.
16083
   # Note that $ac_compile itself does not contain backslashes and begins
16084
   # with a dollar sign (not a hyphen), so the echo should work correctly.
16085
   lt_compile=`echo "$ac_compile" | $SED \
16086
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16087
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16088
   -e 's:$: $lt_compiler_flag:'`
16089
   (eval echo "\"\$as_me:16089: $lt_compile\"" >&5)
16090
   (eval "$lt_compile" 2>out/conftest.err)
16091
   ac_status=$?
16092
   cat out/conftest.err >&5
16093
   echo "$as_me:16093: \$? = $ac_status" >&5
16094
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
16095
   then
16096
     # The compiler can only warn and ignore the option if not recognized
16097
     # So say no if there are warnings
16098
     if test ! -s out/conftest.err; then
16099
       lt_cv_prog_compiler_c_o_GCJ=yes
16100
     fi
16101
   fi
16102
   chmod u+w .
16103
   $rm conftest* out/*
16104
   rmdir out
16105
   cd ..
16106
   rmdir conftest
16107
   $rm conftest*
16108
 
16109
fi
16110
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16111
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
16112
 
16113
 
16114
hard_links="nottested"
16115
if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16116
  # do not overwrite the value of need_locks provided by the user
16117
  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16118
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
16119
  hard_links=yes
16120
  $rm conftest*
16121
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
16122
  touch conftest.a
16123
  ln conftest.a conftest.b 2>&5 || hard_links=no
16124
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
16125
  echo "$as_me:$LINENO: result: $hard_links" >&5
16126
echo "${ECHO_T}$hard_links" >&6
16127
  if test "$hard_links" = no; then
16128
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16129
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16130
    need_locks=warn
16131
  fi
16132
else
16133
  need_locks=no
16134
fi
16135
 
16136
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16137
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16138
 
16139
  runpath_var=
16140
  allow_undefined_flag_GCJ=
16141
  enable_shared_with_static_runtimes_GCJ=no
16142
  archive_cmds_GCJ=
16143
  archive_expsym_cmds_GCJ=
16144
  old_archive_From_new_cmds_GCJ=
16145
  old_archive_from_expsyms_cmds_GCJ=
16146
  export_dynamic_flag_spec_GCJ=
16147
  whole_archive_flag_spec_GCJ=
16148
  thread_safe_flag_spec_GCJ=
16149
  hardcode_libdir_flag_spec_GCJ=
16150
  hardcode_libdir_flag_spec_ld_GCJ=
16151
  hardcode_libdir_separator_GCJ=
16152
  hardcode_direct_GCJ=no
16153
  hardcode_minus_L_GCJ=no
16154
  hardcode_shlibpath_var_GCJ=unsupported
16155
  link_all_deplibs_GCJ=unknown
16156
  hardcode_automatic_GCJ=no
16157
  module_cmds_GCJ=
16158
  module_expsym_cmds_GCJ=
16159
  always_export_symbols_GCJ=no
16160
  export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16161
  # include_expsyms should be a list of space-separated symbols to be *always*
16162
  # included in the symbol list
16163
  include_expsyms_GCJ=
16164
  # exclude_expsyms can be an extended regexp of symbols to exclude
16165
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
16166
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16167
  # as well as any symbol that contains `d'.
16168
  exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16169
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16170
  # platforms (ab)use it in PIC code, but their linkers get confused if
16171
  # the symbol is explicitly referenced.  Since portable code cannot
16172
  # rely on this symbol name, it's probably fine to never include it in
16173
  # preloaded symbol tables.
16174
  extract_expsyms_cmds=
16175
 
16176
  case $host_os in
16177
  cygwin* | mingw* | pw32*)
16178
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
16179
    # When not using gcc, we currently assume that we are using
16180
    # Microsoft Visual C++.
16181
    if test "$GCC" != yes; then
16182
      with_gnu_ld=no
16183
    fi
16184
    ;;
16185
  openbsd*)
16186
    with_gnu_ld=no
16187
    ;;
16188
  esac
16189
 
16190
  ld_shlibs_GCJ=yes
16191
  if test "$with_gnu_ld" = yes; then
16192
    # If archive_cmds runs LD, not CC, wlarc should be empty
16193
    wlarc='${wl}'
16194
 
16195
    # See if GNU ld supports shared libraries.
16196
    case $host_os in
16197
    aix3* | aix4* | aix5*)
16198
      # On AIX/PPC, the GNU linker is very broken
16199
      if test "$host_cpu" != ia64; then
16200
        ld_shlibs_GCJ=no
16201
        cat <&2
16202
 
16203
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
16204
*** to be unable to reliably create shared libraries on AIX.
16205
*** Therefore, libtool is disabling shared libraries support.  If you
16206
*** really care for shared libraries, you may want to modify your PATH
16207
*** so that a non-GNU linker is found, and then restart.
16208
 
16209
EOF
16210
      fi
16211
      ;;
16212
 
16213
    amigaos*)
16214
      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)'
16215
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16216
      hardcode_minus_L_GCJ=yes
16217
 
16218
      # Samuel A. Falvo II  reports
16219
      # that the semantics of dynamic libraries on AmigaOS, at least up
16220
      # to version 4, is to share data among multiple programs linked
16221
      # with the same dynamic library.  Since this doesn't match the
16222
      # behavior of shared libraries on other platforms, we can't use
16223
      # them.
16224
      ld_shlibs_GCJ=no
16225
      ;;
16226
 
16227
    beos*)
16228
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16229
        allow_undefined_flag_GCJ=unsupported
16230
        # Joseph Beckenbach  says some releases of gcc
16231
        # support --undefined.  This deserves some investigation.  FIXME
16232
        archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16233
      else
16234
        ld_shlibs_GCJ=no
16235
      fi
16236
      ;;
16237
 
16238
    cygwin* | mingw* | pw32*)
16239
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16240
      # as there is no search path for DLLs.
16241
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16242
      allow_undefined_flag_GCJ=unsupported
16243
      always_export_symbols_GCJ=no
16244
      enable_shared_with_static_runtimes_GCJ=yes
16245
      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16246
 
16247
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16248
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
16249
        # If the export-symbols file already is a .def file (1st line
16250
        # is EXPORTS), use it as is; otherwise, prepend...
16251
        archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16252
          cp $export_symbols $output_objdir/$soname.def;
16253
        else
16254
          echo EXPORTS > $output_objdir/$soname.def;
16255
          cat $export_symbols >> $output_objdir/$soname.def;
16256
        fi~
16257
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
16258
      else
16259
        ld_shlibs=no
16260
      fi
16261
      ;;
16262
 
16263
    netbsd*)
16264
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16265
        archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16266
        wlarc=
16267
      else
16268
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16269
        archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16270
      fi
16271
      ;;
16272
 
16273
    solaris* | sysv5*)
16274
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16275
        ld_shlibs_GCJ=no
16276
        cat <&2
16277
 
16278
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
16279
*** create shared libraries on Solaris systems.  Therefore, libtool
16280
*** is disabling shared libraries support.  We urge you to upgrade GNU
16281
*** binutils to release 2.9.1 or newer.  Another option is to modify
16282
*** your PATH or compiler configuration so that the native linker is
16283
*** used, and then restart.
16284
 
16285
EOF
16286
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16287
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16288
        archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16289
      else
16290
        ld_shlibs_GCJ=no
16291
      fi
16292
      ;;
16293
 
16294
    sunos4*)
16295
      archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16296
      wlarc=
16297
      hardcode_direct_GCJ=yes
16298
      hardcode_shlibpath_var_GCJ=no
16299
      ;;
16300
 
16301
    *)
16302
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16303
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16304
        archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16305
      else
16306
        ld_shlibs_GCJ=no
16307
      fi
16308
      ;;
16309
    esac
16310
 
16311
    if test "$ld_shlibs_GCJ" = yes; then
16312
      runpath_var=LD_RUN_PATH
16313
      hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16314
      export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16315
      # ancient GNU ld didn't support --whole-archive et. al.
16316
      if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16317
        whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16318
      else
16319
        whole_archive_flag_spec_GCJ=
16320
      fi
16321
    fi
16322
  else
16323
    # PORTME fill in a description of your system's linker (not GNU ld)
16324
    case $host_os in
16325
    aix3*)
16326
      allow_undefined_flag_GCJ=unsupported
16327
      always_export_symbols_GCJ=yes
16328
      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'
16329
      # Note: this linker hardcodes the directories in LIBPATH if there
16330
      # are no directories specified by -L.
16331
      hardcode_minus_L_GCJ=yes
16332
      if test "$GCC" = yes && test -z "$link_static_flag"; then
16333
        # Neither direct hardcoding nor static linking is supported with a
16334
        # broken collect2.
16335
        hardcode_direct_GCJ=unsupported
16336
      fi
16337
      ;;
16338
 
16339
    aix4* | aix5*)
16340
      if test "$host_cpu" = ia64; then
16341
        # On IA64, the linker does run time linking by default, so we don't
16342
        # have to do anything special.
16343
        aix_use_runtimelinking=no
16344
        exp_sym_flag='-Bexport'
16345
        no_entry_flag=""
16346
      else
16347
        # If we're using GNU nm, then we don't want the "-C" option.
16348
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
16349
        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16350
          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'
16351
        else
16352
          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'
16353
        fi
16354
        aix_use_runtimelinking=no
16355
 
16356
        # Test if we are trying to use run time linking or normal
16357
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16358
        # need to do runtime linking.
16359
        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16360
          for ld_flag in $LDFLAGS; do
16361
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16362
            aix_use_runtimelinking=yes
16363
            break
16364
          fi
16365
          done
16366
        esac
16367
 
16368
        exp_sym_flag='-bexport'
16369
        no_entry_flag='-bnoentry'
16370
      fi
16371
 
16372
      # When large executables or shared objects are built, AIX ld can
16373
      # have problems creating the table of contents.  If linking a library
16374
      # or program results in "error TOC overflow" add -mminimal-toc to
16375
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
16376
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16377
 
16378
      archive_cmds_GCJ=''
16379
      hardcode_direct_GCJ=yes
16380
      hardcode_libdir_separator_GCJ=':'
16381
      link_all_deplibs_GCJ=yes
16382
 
16383
      if test "$GCC" = yes; then
16384
        case $host_os in aix4.012|aix4.012.*)
16385
        # We only want to do this on AIX 4.2 and lower, the check
16386
        # below for broken collect2 doesn't work under 4.3+
16387
          collect2name=`${CC} -print-prog-name=collect2`
16388
          if test -f "$collect2name" && \
16389
           strings "$collect2name" | grep resolve_lib_name >/dev/null
16390
          then
16391
          # We have reworked collect2
16392
          hardcode_direct_GCJ=yes
16393
          else
16394
          # We have old collect2
16395
          hardcode_direct_GCJ=unsupported
16396
          # It fails to find uninstalled libraries when the uninstalled
16397
          # path is not listed in the libpath.  Setting hardcode_minus_L
16398
          # to unsupported forces relinking
16399
          hardcode_minus_L_GCJ=yes
16400
          hardcode_libdir_flag_spec_GCJ='-L$libdir'
16401
          hardcode_libdir_separator_GCJ=
16402
          fi
16403
        esac
16404
        shared_flag='-shared'
16405
      else
16406
        # not using gcc
16407
        if test "$host_cpu" = ia64; then
16408
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16409
        # chokes on -Wl,-G. The following line is correct:
16410
          shared_flag='-G'
16411
        else
16412
        if test "$aix_use_runtimelinking" = yes; then
16413
            shared_flag='${wl}-G'
16414
          else
16415
            shared_flag='${wl}-bM:SRE'
16416
        fi
16417
        fi
16418
      fi
16419
 
16420
      # It seems that -bexpall does not export symbols beginning with
16421
      # underscore (_), so it is better to generate a list of symbols to export.
16422
      always_export_symbols_GCJ=yes
16423
      if test "$aix_use_runtimelinking" = yes; then
16424
        # Warning - without using the other runtime loading flags (-brtl),
16425
        # -berok will link without error, but may produce a broken library.
16426
        allow_undefined_flag_GCJ='-berok'
16427
       # Determine the default libpath from the value encoded in an empty executable.
16428
       cat >conftest.$ac_ext <<_ACEOF
16429
/* confdefs.h.  */
16430
_ACEOF
16431
cat confdefs.h >>conftest.$ac_ext
16432
cat >>conftest.$ac_ext <<_ACEOF
16433
/* end confdefs.h.  */
16434
 
16435
int
16436
main ()
16437
{
16438
 
16439
  ;
16440
  return 0;
16441
}
16442
_ACEOF
16443
rm -f conftest.$ac_objext conftest$ac_exeext
16444
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16445
  (eval $ac_link) 2>conftest.er1
16446
  ac_status=$?
16447
  grep -v '^ *+' conftest.er1 >conftest.err
16448
  rm -f conftest.er1
16449
  cat conftest.err >&5
16450
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16451
  (exit $ac_status); } &&
16452
         { ac_try='test -z "$ac_c_werror_flag"
16453
                         || test ! -s conftest.err'
16454
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16455
  (eval $ac_try) 2>&5
16456
  ac_status=$?
16457
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16458
  (exit $ac_status); }; } &&
16459
         { ac_try='test -s conftest$ac_exeext'
16460
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16461
  (eval $ac_try) 2>&5
16462
  ac_status=$?
16463
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16464
  (exit $ac_status); }; }; then
16465
 
16466
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16467
}'`
16468
# Check for a 64-bit object if we didn't find anything.
16469
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; }
16470
}'`; fi
16471
else
16472
  echo "$as_me: failed program was:" >&5
16473
sed 's/^/| /' conftest.$ac_ext >&5
16474
 
16475
fi
16476
rm -f conftest.err conftest.$ac_objext \
16477
      conftest$ac_exeext conftest.$ac_ext
16478
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16479
 
16480
       hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16481
        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"
16482
       else
16483
        if test "$host_cpu" = ia64; then
16484
          hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16485
          allow_undefined_flag_GCJ="-z nodefs"
16486
          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"
16487
        else
16488
         # Determine the default libpath from the value encoded in an empty executable.
16489
         cat >conftest.$ac_ext <<_ACEOF
16490
/* confdefs.h.  */
16491
_ACEOF
16492
cat confdefs.h >>conftest.$ac_ext
16493
cat >>conftest.$ac_ext <<_ACEOF
16494
/* end confdefs.h.  */
16495
 
16496
int
16497
main ()
16498
{
16499
 
16500
  ;
16501
  return 0;
16502
}
16503
_ACEOF
16504
rm -f conftest.$ac_objext conftest$ac_exeext
16505
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16506
  (eval $ac_link) 2>conftest.er1
16507
  ac_status=$?
16508
  grep -v '^ *+' conftest.er1 >conftest.err
16509
  rm -f conftest.er1
16510
  cat conftest.err >&5
16511
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16512
  (exit $ac_status); } &&
16513
         { ac_try='test -z "$ac_c_werror_flag"
16514
                         || test ! -s conftest.err'
16515
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16516
  (eval $ac_try) 2>&5
16517
  ac_status=$?
16518
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16519
  (exit $ac_status); }; } &&
16520
         { ac_try='test -s conftest$ac_exeext'
16521
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16522
  (eval $ac_try) 2>&5
16523
  ac_status=$?
16524
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16525
  (exit $ac_status); }; }; then
16526
 
16527
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16528
}'`
16529
# Check for a 64-bit object if we didn't find anything.
16530
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; }
16531
}'`; fi
16532
else
16533
  echo "$as_me: failed program was:" >&5
16534
sed 's/^/| /' conftest.$ac_ext >&5
16535
 
16536
fi
16537
rm -f conftest.err conftest.$ac_objext \
16538
      conftest$ac_exeext conftest.$ac_ext
16539
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16540
 
16541
         hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16542
          # Warning - without using the other run time loading flags,
16543
          # -berok will link without error, but may produce a broken library.
16544
          no_undefined_flag_GCJ=' ${wl}-bernotok'
16545
          allow_undefined_flag_GCJ=' ${wl}-berok'
16546
          # -bexpall does not export symbols beginning with underscore (_)
16547
          always_export_symbols_GCJ=yes
16548
          # Exported symbols can be pulled into shared objects from archives
16549
          whole_archive_flag_spec_GCJ=' '
16550
          archive_cmds_need_lc_GCJ=yes
16551
          # This is similar to how AIX traditionally builds it's shared libraries.
16552
          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'
16553
        fi
16554
      fi
16555
      ;;
16556
 
16557
    amigaos*)
16558
      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)'
16559
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16560
      hardcode_minus_L_GCJ=yes
16561
      # see comment about different semantics on the GNU ld section
16562
      ld_shlibs_GCJ=no
16563
      ;;
16564
 
16565
    bsdi4*)
16566
      export_dynamic_flag_spec_GCJ=-rdynamic
16567
      ;;
16568
 
16569
    cygwin* | mingw* | pw32*)
16570
      # When not using gcc, we currently assume that we are using
16571
      # Microsoft Visual C++.
16572
      # hardcode_libdir_flag_spec is actually meaningless, as there is
16573
      # no search path for DLLs.
16574
      hardcode_libdir_flag_spec_GCJ=' '
16575
      allow_undefined_flag_GCJ=unsupported
16576
      # Tell ltmain to make .lib files, not .a files.
16577
      libext=lib
16578
      # Tell ltmain to make .dll files, not .so files.
16579
      shrext=".dll"
16580
      # FIXME: Setting linknames here is a bad hack.
16581
      archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16582
      # The linker will automatically build a .lib file if we build a DLL.
16583
      old_archive_From_new_cmds_GCJ='true'
16584
      # FIXME: Should let the user specify the lib program.
16585
      old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16586
      fix_srcfile_path='`cygpath -w "$srcfile"`'
16587
      enable_shared_with_static_runtimes_GCJ=yes
16588
      ;;
16589
 
16590
    darwin* | rhapsody*)
16591
    if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
16592
      archive_cmds_need_lc_GCJ=no
16593
      case "$host_os" in
16594
      rhapsody* | darwin1.[012])
16595
        allow_undefined_flag_GCJ='-undefined suppress'
16596
        ;;
16597
      *) # Darwin 1.3 on
16598
        test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
16599
        ;;
16600
      esac
16601
      # FIXME: Relying on posixy $() will cause problems for
16602
      #        cross-compilation, but unfortunately the echo tests do not
16603
      #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
16604
      #        `"' quotes if we put them in here... so don't!
16605
        lt_int_apple_cc_single_mod=no
16606
        output_verbose_link_cmd='echo'
16607
        if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
16608
          lt_int_apple_cc_single_mod=yes
16609
        fi
16610
        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16611
          archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16612
        else
16613
        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'
16614
      fi
16615
      module_cmds_GCJ='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
16616
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16617
        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16618
          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}'
16619
        else
16620
          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}'
16621
        fi
16622
          module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag  -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16623
      hardcode_direct_GCJ=no
16624
      hardcode_automatic_GCJ=yes
16625
      hardcode_shlibpath_var_GCJ=unsupported
16626
      whole_archive_flag_spec_GCJ='-all_load $convenience'
16627
      link_all_deplibs_GCJ=yes
16628
    fi
16629
      ;;
16630
 
16631
    dgux*)
16632
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16633
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16634
      hardcode_shlibpath_var_GCJ=no
16635
      ;;
16636
 
16637
    freebsd1*)
16638
      ld_shlibs_GCJ=no
16639
      ;;
16640
 
16641
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16642
    # support.  Future versions do this automatically, but an explicit c++rt0.o
16643
    # does not break anything, and helps significantly (at the cost of a little
16644
    # extra space).
16645
    freebsd2.2*)
16646
      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16647
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
16648
      hardcode_direct_GCJ=yes
16649
      hardcode_shlibpath_var_GCJ=no
16650
      ;;
16651
 
16652
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16653
    freebsd2*)
16654
      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16655
      hardcode_direct_GCJ=yes
16656
      hardcode_minus_L_GCJ=yes
16657
      hardcode_shlibpath_var_GCJ=no
16658
      ;;
16659
 
16660
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16661
    freebsd*)
16662
      archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16663
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
16664
      hardcode_direct_GCJ=yes
16665
      hardcode_shlibpath_var_GCJ=no
16666
      ;;
16667
 
16668
    hpux9*)
16669
      if test "$GCC" = yes; then
16670
        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'
16671
      else
16672
        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'
16673
      fi
16674
      hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16675
      hardcode_libdir_separator_GCJ=:
16676
      hardcode_direct_GCJ=yes
16677
 
16678
      # hardcode_minus_L: Not really in the search PATH,
16679
      # but as the default location of the library.
16680
      hardcode_minus_L_GCJ=yes
16681
      export_dynamic_flag_spec_GCJ='${wl}-E'
16682
      ;;
16683
 
16684
    hpux10* | hpux11*)
16685
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16686
        case "$host_cpu" in
16687
        hppa*64*|ia64*)
16688
          archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16689
          ;;
16690
        *)
16691
          archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16692
          ;;
16693
        esac
16694
      else
16695
        case "$host_cpu" in
16696
        hppa*64*|ia64*)
16697
          archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
16698
          ;;
16699
        *)
16700
          archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16701
          ;;
16702
        esac
16703
      fi
16704
      if test "$with_gnu_ld" = no; then
16705
        case "$host_cpu" in
16706
        hppa*64*)
16707
          hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16708
          hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16709
          hardcode_libdir_separator_GCJ=:
16710
          hardcode_direct_GCJ=no
16711
          hardcode_shlibpath_var_GCJ=no
16712
          ;;
16713
        ia64*)
16714
          hardcode_libdir_flag_spec_GCJ='-L$libdir'
16715
          hardcode_direct_GCJ=no
16716
          hardcode_shlibpath_var_GCJ=no
16717
 
16718
          # hardcode_minus_L: Not really in the search PATH,
16719
          # but as the default location of the library.
16720
          hardcode_minus_L_GCJ=yes
16721
          ;;
16722
        *)
16723
          hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16724
          hardcode_libdir_separator_GCJ=:
16725
          hardcode_direct_GCJ=yes
16726
          export_dynamic_flag_spec_GCJ='${wl}-E'
16727
 
16728
          # hardcode_minus_L: Not really in the search PATH,
16729
          # but as the default location of the library.
16730
          hardcode_minus_L_GCJ=yes
16731
          ;;
16732
        esac
16733
      fi
16734
      ;;
16735
 
16736
    irix5* | irix6* | nonstopux*)
16737
      if test "$GCC" = yes; then
16738
        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'
16739
      else
16740
        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'
16741
        hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16742
      fi
16743
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16744
      hardcode_libdir_separator_GCJ=:
16745
      link_all_deplibs_GCJ=yes
16746
      ;;
16747
 
16748
    netbsd*)
16749
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16750
        archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
16751
      else
16752
        archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
16753
      fi
16754
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
16755
      hardcode_direct_GCJ=yes
16756
      hardcode_shlibpath_var_GCJ=no
16757
      ;;
16758
 
16759
    newsos6)
16760
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16761
      hardcode_direct_GCJ=yes
16762
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16763
      hardcode_libdir_separator_GCJ=:
16764
      hardcode_shlibpath_var_GCJ=no
16765
      ;;
16766
 
16767
    openbsd*)
16768
      hardcode_direct_GCJ=yes
16769
      hardcode_shlibpath_var_GCJ=no
16770
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16771
        archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16772
        hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16773
        export_dynamic_flag_spec_GCJ='${wl}-E'
16774
      else
16775
       case $host_os in
16776
         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16777
           archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16778
           hardcode_libdir_flag_spec_GCJ='-R$libdir'
16779
           ;;
16780
         *)
16781
           archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16782
           hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16783
           ;;
16784
       esac
16785
      fi
16786
      ;;
16787
 
16788
    os2*)
16789
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16790
      hardcode_minus_L_GCJ=yes
16791
      allow_undefined_flag_GCJ=unsupported
16792
      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'
16793
      old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16794
      ;;
16795
 
16796
    osf3*)
16797
      if test "$GCC" = yes; then
16798
        allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16799
        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'
16800
      else
16801
        allow_undefined_flag_GCJ=' -expect_unresolved \*'
16802
        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'
16803
      fi
16804
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16805
      hardcode_libdir_separator_GCJ=:
16806
      ;;
16807
 
16808
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
16809
      if test "$GCC" = yes; then
16810
        allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16811
        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'
16812
        hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16813
      else
16814
        allow_undefined_flag_GCJ=' -expect_unresolved \*'
16815
        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'
16816
        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~
16817
        $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'
16818
 
16819
        # Both c and cxx compiler support -rpath directly
16820
        hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16821
      fi
16822
      hardcode_libdir_separator_GCJ=:
16823
      ;;
16824
 
16825
    sco3.2v5*)
16826
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16827
      hardcode_shlibpath_var_GCJ=no
16828
      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16829
      runpath_var=LD_RUN_PATH
16830
      hardcode_runpath_var=yes
16831
      ;;
16832
 
16833
    solaris*)
16834
      no_undefined_flag_GCJ=' -z text'
16835
      if test "$GCC" = yes; then
16836
        archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16837
        archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16838
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16839
      else
16840
        archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16841
        archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16842
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16843
      fi
16844
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
16845
      hardcode_shlibpath_var_GCJ=no
16846
      case $host_os in
16847
      solaris2.[0-5] | solaris2.[0-5].*) ;;
16848
      *) # Supported since Solaris 2.6 (maybe 2.5.1?)
16849
        whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
16850
      esac
16851
      link_all_deplibs_GCJ=yes
16852
      ;;
16853
 
16854
    sunos4*)
16855
      if test "x$host_vendor" = xsequent; then
16856
        # Use $CC to link under sequent, because it throws in some extra .o
16857
        # files that make .init and .fini sections work.
16858
        archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16859
      else
16860
        archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16861
      fi
16862
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16863
      hardcode_direct_GCJ=yes
16864
      hardcode_minus_L_GCJ=yes
16865
      hardcode_shlibpath_var_GCJ=no
16866
      ;;
16867
 
16868
    sysv4)
16869
      case $host_vendor in
16870
        sni)
16871
          archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16872
          hardcode_direct_GCJ=yes # is this really true???
16873
        ;;
16874
        siemens)
16875
          ## LD is ld it makes a PLAMLIB
16876
          ## CC just makes a GrossModule.
16877
          archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16878
          reload_cmds_GCJ='$CC -r -o $output$reload_objs'
16879
          hardcode_direct_GCJ=no
16880
        ;;
16881
        motorola)
16882
          archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16883
          hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
16884
        ;;
16885
      esac
16886
      runpath_var='LD_RUN_PATH'
16887
      hardcode_shlibpath_var_GCJ=no
16888
      ;;
16889
 
16890
    sysv4.3*)
16891
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16892
      hardcode_shlibpath_var_GCJ=no
16893
      export_dynamic_flag_spec_GCJ='-Bexport'
16894
      ;;
16895
 
16896
    sysv4*MP*)
16897
      if test -d /usr/nec; then
16898
        archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16899
        hardcode_shlibpath_var_GCJ=no
16900
        runpath_var=LD_RUN_PATH
16901
        hardcode_runpath_var=yes
16902
        ld_shlibs_GCJ=yes
16903
      fi
16904
      ;;
16905
 
16906
    sysv4.2uw2*)
16907
      archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16908
      hardcode_direct_GCJ=yes
16909
      hardcode_minus_L_GCJ=no
16910
      hardcode_shlibpath_var_GCJ=no
16911
      hardcode_runpath_var=yes
16912
      runpath_var=LD_RUN_PATH
16913
      ;;
16914
 
16915
   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
16916
      no_undefined_flag_GCJ='${wl}-z ${wl}text'
16917
      if test "$GCC" = yes; then
16918
        archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16919
      else
16920
        archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16921
      fi
16922
      runpath_var='LD_RUN_PATH'
16923
      hardcode_shlibpath_var_GCJ=no
16924
      ;;
16925
 
16926
    sysv5*)
16927
      no_undefined_flag_GCJ=' -z text'
16928
      # $CC -shared without GNU ld will not create a library from C++
16929
      # object files and a static libstdc++, better avoid it by now
16930
      archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16931
      archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16932
                $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16933
      hardcode_libdir_flag_spec_GCJ=
16934
      hardcode_shlibpath_var_GCJ=no
16935
      runpath_var='LD_RUN_PATH'
16936
      ;;
16937
 
16938
    uts4*)
16939
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16940
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16941
      hardcode_shlibpath_var_GCJ=no
16942
      ;;
16943
 
16944
    *)
16945
      ld_shlibs_GCJ=no
16946
      ;;
16947
    esac
16948
  fi
16949
 
16950
echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
16951
echo "${ECHO_T}$ld_shlibs_GCJ" >&6
16952
test "$ld_shlibs_GCJ" = no && can_build_shared=no
16953
 
16954
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16955
if test "$GCC" = yes; then
16956
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16957
fi
16958
 
16959
#
16960
# Do we need to explicitly link libc?
16961
#
16962
case "x$archive_cmds_need_lc_GCJ" in
16963
x|xyes)
16964
  # Assume -lc should be added
16965
  archive_cmds_need_lc_GCJ=yes
16966
 
16967
  if test "$enable_shared" = yes && test "$GCC" = yes; then
16968
    case $archive_cmds_GCJ in
16969
    *'~'*)
16970
      # FIXME: we may have to deal with multi-command sequences.
16971
      ;;
16972
    '$CC '*)
16973
      # Test whether the compiler implicitly links with -lc since on some
16974
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
16975
      # to ld, don't add -lc before -lgcc.
16976
      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16977
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16978
      $rm conftest*
16979
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16980
 
16981
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16982
  (eval $ac_compile) 2>&5
16983
  ac_status=$?
16984
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16985
  (exit $ac_status); } 2>conftest.err; then
16986
        soname=conftest
16987
        lib=conftest
16988
        libobjs=conftest.$ac_objext
16989
        deplibs=
16990
        wl=$lt_prog_compiler_wl_GCJ
16991
        compiler_flags=-v
16992
        linker_flags=-v
16993
        verstring=
16994
        output_objdir=.
16995
        libname=conftest
16996
        lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
16997
        allow_undefined_flag_GCJ=
16998
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16999
  (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17000
  ac_status=$?
17001
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17002
  (exit $ac_status); }
17003
        then
17004
          archive_cmds_need_lc_GCJ=no
17005
        else
17006
          archive_cmds_need_lc_GCJ=yes
17007
        fi
17008
        allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17009
      else
17010
        cat conftest.err 1>&5
17011
      fi
17012
      $rm conftest*
17013
      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17014
echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
17015
      ;;
17016
    esac
17017
  fi
17018
  ;;
17019
esac
17020
 
17021
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17022
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17023
hardcode_action_GCJ=
17024
if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17025
   test -n "$runpath_var GCJ" || \
17026
   test "X$hardcode_automatic_GCJ"="Xyes" ; then
17027
 
17028
  # We can hardcode non-existant directories.
17029
  if test "$hardcode_direct_GCJ" != no &&
17030
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
17031
     # have to relink, otherwise we might link with an installed library
17032
     # when we should be linking with a yet-to-be-installed one
17033
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17034
     test "$hardcode_minus_L_GCJ" != no; then
17035
    # Linking always hardcodes the temporary library directory.
17036
    hardcode_action_GCJ=relink
17037
  else
17038
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
17039
    hardcode_action_GCJ=immediate
17040
  fi
17041
else
17042
  # We cannot hardcode anything, or else we can only hardcode existing
17043
  # directories.
17044
  hardcode_action_GCJ=unsupported
17045
fi
17046
echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17047
echo "${ECHO_T}$hardcode_action_GCJ" >&6
17048
 
17049
if test "$hardcode_action_GCJ" = relink; then
17050
  # Fast installation is not supported
17051
  enable_fast_install=no
17052
elif test "$shlibpath_overrides_runpath" = yes ||
17053
     test "$enable_shared" = no; then
17054
  # Fast installation is not necessary
17055
  enable_fast_install=needless
17056
fi
17057
 
17058
striplib=
17059
old_striplib=
17060
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17061
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17062
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17063
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17064
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17065
  echo "$as_me:$LINENO: result: yes" >&5
17066
echo "${ECHO_T}yes" >&6
17067
else
17068
# FIXME - insert some real tests, host_os isn't really good enough
17069
  case $host_os in
17070
   darwin*)
17071
       if test -n "$STRIP" ; then
17072
         striplib="$STRIP -x"
17073
         echo "$as_me:$LINENO: result: yes" >&5
17074
echo "${ECHO_T}yes" >&6
17075
       else
17076
  echo "$as_me:$LINENO: result: no" >&5
17077
echo "${ECHO_T}no" >&6
17078
fi
17079
       ;;
17080
   *)
17081
  echo "$as_me:$LINENO: result: no" >&5
17082
echo "${ECHO_T}no" >&6
17083
    ;;
17084
  esac
17085
fi
17086
 
17087
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17088
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
17089
library_names_spec=
17090
libname_spec='lib$name'
17091
soname_spec=
17092
shrext=".so"
17093
postinstall_cmds=
17094
postuninstall_cmds=
17095
finish_cmds=
17096
finish_eval=
17097
shlibpath_var=
17098
shlibpath_overrides_runpath=unknown
17099
version_type=none
17100
dynamic_linker="$host_os ld.so"
17101
sys_lib_dlsearch_path_spec="/lib /usr/lib"
17102
if test "$GCC" = yes; then
17103
  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17104
  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17105
    # if the path contains ";" then we assume it to be the separator
17106
    # otherwise default to the standard path separator (i.e. ":") - it is
17107
    # assumed that no part of a normal pathname contains ";" but that should
17108
    # okay in the real world where ";" in dirpaths is itself problematic.
17109
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17110
  else
17111
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17112
  fi
17113
else
17114
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17115
fi
17116
need_lib_prefix=unknown
17117
hardcode_into_libs=no
17118
 
17119
# when you set need_version to no, make sure it does not cause -set_version
17120
# flags to be left without arguments
17121
need_version=unknown
17122
 
17123
case $host_os in
17124
aix3*)
17125
  version_type=linux
17126
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17127
  shlibpath_var=LIBPATH
17128
 
17129
  # AIX 3 has no versioning support, so we append a major version to the name.
17130
  soname_spec='${libname}${release}${shared_ext}$major'
17131
  ;;
17132
 
17133
aix4* | aix5*)
17134
  version_type=linux
17135
  need_lib_prefix=no
17136
  need_version=no
17137
  hardcode_into_libs=yes
17138
  if test "$host_cpu" = ia64; then
17139
    # AIX 5 supports IA64
17140
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17141
    shlibpath_var=LD_LIBRARY_PATH
17142
  else
17143
    # With GCC up to 2.95.x, collect2 would create an import file
17144
    # for dependence libraries.  The import file would start with
17145
    # the line `#! .'.  This would cause the generated library to
17146
    # depend on `.', always an invalid library.  This was fixed in
17147
    # development snapshots of GCC prior to 3.0.
17148
    case $host_os in
17149
      aix4 | aix4.[01] | aix4.[01].*)
17150
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17151
           echo ' yes '
17152
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17153
        :
17154
      else
17155
        can_build_shared=no
17156
      fi
17157
      ;;
17158
    esac
17159
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17160
    # soname into executable. Probably we can add versioning support to
17161
    # collect2, so additional links can be useful in future.
17162
    if test "$aix_use_runtimelinking" = yes; then
17163
      # If using run time linking (on AIX 4.2 or later) use lib.so
17164
      # instead of lib.a to let people know that these are not
17165
      # typical AIX shared libraries.
17166
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17167
    else
17168
      # We preserve .a as extension for shared libraries through AIX4.2
17169
      # and later when we are not doing run time linking.
17170
      library_names_spec='${libname}${release}.a $libname.a'
17171
      soname_spec='${libname}${release}${shared_ext}$major'
17172
    fi
17173
    shlibpath_var=LIBPATH
17174
  fi
17175
  ;;
17176
 
17177
amigaos*)
17178
  library_names_spec='$libname.ixlibrary $libname.a'
17179
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
17180
  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'
17181
  ;;
17182
 
17183
beos*)
17184
  library_names_spec='${libname}${shared_ext}'
17185
  dynamic_linker="$host_os ld.so"
17186
  shlibpath_var=LIBRARY_PATH
17187
  ;;
17188
 
17189
bsdi4*)
17190
  version_type=linux
17191
  need_version=no
17192
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17193
  soname_spec='${libname}${release}${shared_ext}$major'
17194
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17195
  shlibpath_var=LD_LIBRARY_PATH
17196
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17197
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17198
  # the default ld.so.conf also contains /usr/contrib/lib and
17199
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17200
  # libtool to hard-code these into programs
17201
  ;;
17202
 
17203
cygwin* | mingw* | pw32*)
17204
  version_type=windows
17205
  shrext=".dll"
17206
  need_version=no
17207
  need_lib_prefix=no
17208
 
17209
  case $GCC,$host_os in
17210
  yes,cygwin* | yes,mingw* | yes,pw32*)
17211
    library_names_spec='$libname.dll.a'
17212
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
17213
    postinstall_cmds='base_file=`basename \${file}`~
17214
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17215
      dldir=$destdir/`dirname \$dlpath`~
17216
      test -d \$dldir || mkdir -p \$dldir~
17217
      $install_prog $dir/$dlname \$dldir/$dlname'
17218
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17219
      dlpath=$dir/\$dldll~
17220
       $rm \$dlpath'
17221
    shlibpath_overrides_runpath=yes
17222
 
17223
    case $host_os in
17224
    cygwin*)
17225
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17226
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17227
      sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
17228
      ;;
17229
    mingw*)
17230
      # MinGW DLLs use traditional 'lib' prefix
17231
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17232
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17233
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17234
        # It is most probably a Windows format PATH printed by
17235
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
17236
        # path with ; separators, and with drive letters. We can handle the
17237
        # drive letters (cygwin fileutils understands them), so leave them,
17238
        # especially as we might pass files found there to a mingw objdump,
17239
        # which wouldn't understand a cygwinified path. Ahh.
17240
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17241
      else
17242
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17243
      fi
17244
      ;;
17245
    pw32*)
17246
      # pw32 DLLs use 'pw' prefix rather than 'lib'
17247
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
17248
      ;;
17249
    esac
17250
    ;;
17251
 
17252
  *)
17253
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17254
    ;;
17255
  esac
17256
  dynamic_linker='Win32 ld.exe'
17257
  # FIXME: first we should search . and the directory the executable is in
17258
  shlibpath_var=PATH
17259
  ;;
17260
 
17261
darwin* | rhapsody*)
17262
  dynamic_linker="$host_os dyld"
17263
  version_type=darwin
17264
  need_lib_prefix=no
17265
  need_version=no
17266
  # FIXME: Relying on posixy $() will cause problems for
17267
  #        cross-compilation, but unfortunately the echo tests do not
17268
  #        yet detect zsh echo's removal of \ escapes.
17269
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17270
  soname_spec='${libname}${release}${major}$shared_ext'
17271
  shlibpath_overrides_runpath=yes
17272
  shlibpath_var=DYLD_LIBRARY_PATH
17273
  shrext='$(test .$module = .yes && echo .so || echo .dylib)'
17274
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17275
  if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
17276
  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"`
17277
  fi
17278
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17279
  ;;
17280
 
17281
dgux*)
17282
  version_type=linux
17283
  need_lib_prefix=no
17284
  need_version=no
17285
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17286
  soname_spec='${libname}${release}${shared_ext}$major'
17287
  shlibpath_var=LD_LIBRARY_PATH
17288
  ;;
17289
 
17290
freebsd1*)
17291
  dynamic_linker=no
17292
  ;;
17293
 
17294
freebsd*)
17295
  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
17296
  version_type=freebsd-$objformat
17297
  case $version_type in
17298
    freebsd-elf*)
17299
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17300
      need_version=no
17301
      need_lib_prefix=no
17302
      ;;
17303
    freebsd-*)
17304
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17305
      need_version=yes
17306
      ;;
17307
  esac
17308
  shlibpath_var=LD_LIBRARY_PATH
17309
  case $host_os in
17310
  freebsd2*)
17311
    shlibpath_overrides_runpath=yes
17312
    ;;
17313
  freebsd3.01* | freebsdelf3.01*)
17314
    shlibpath_overrides_runpath=yes
17315
    hardcode_into_libs=yes
17316
    ;;
17317
  *) # from 3.2 on
17318
    shlibpath_overrides_runpath=no
17319
    hardcode_into_libs=yes
17320
    ;;
17321
  esac
17322
  ;;
17323
 
17324
gnu*)
17325
  version_type=linux
17326
  need_lib_prefix=no
17327
  need_version=no
17328
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17329
  soname_spec='${libname}${release}${shared_ext}$major'
17330
  shlibpath_var=LD_LIBRARY_PATH
17331
  hardcode_into_libs=yes
17332
  ;;
17333
 
17334
hpux9* | hpux10* | hpux11*)
17335
  # Give a soname corresponding to the major version so that dld.sl refuses to
17336
  # link against other versions.
17337
  version_type=sunos
17338
  need_lib_prefix=no
17339
  need_version=no
17340
  case "$host_cpu" in
17341
  ia64*)
17342
    shrext='.so'
17343
    hardcode_into_libs=yes
17344
    dynamic_linker="$host_os dld.so"
17345
    shlibpath_var=LD_LIBRARY_PATH
17346
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17347
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17348
    soname_spec='${libname}${release}${shared_ext}$major'
17349
    if test "X$HPUX_IA64_MODE" = X32; then
17350
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17351
    else
17352
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17353
    fi
17354
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17355
    ;;
17356
   hppa*64*)
17357
     shrext='.sl'
17358
     hardcode_into_libs=yes
17359
     dynamic_linker="$host_os dld.sl"
17360
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17361
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17362
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17363
     soname_spec='${libname}${release}${shared_ext}$major'
17364
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17365
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17366
     ;;
17367
   *)
17368
    shrext='.sl'
17369
    dynamic_linker="$host_os dld.sl"
17370
    shlibpath_var=SHLIB_PATH
17371
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17372
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17373
    soname_spec='${libname}${release}${shared_ext}$major'
17374
    ;;
17375
  esac
17376
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
17377
  postinstall_cmds='chmod 555 $lib'
17378
  ;;
17379
 
17380
irix5* | irix6* | nonstopux*)
17381
  case $host_os in
17382
    nonstopux*) version_type=nonstopux ;;
17383
    *)
17384
        if test "$lt_cv_prog_gnu_ld" = yes; then
17385
                version_type=linux
17386
        else
17387
                version_type=irix
17388
        fi ;;
17389
  esac
17390
  need_lib_prefix=no
17391
  need_version=no
17392
  soname_spec='${libname}${release}${shared_ext}$major'
17393
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17394
  case $host_os in
17395
  irix5* | nonstopux*)
17396
    libsuff= shlibsuff=
17397
    ;;
17398
  *)
17399
    case $LD in # libtool.m4 will add one of these switches to LD
17400
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17401
      libsuff= shlibsuff= libmagic=32-bit;;
17402
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17403
      libsuff=32 shlibsuff=N32 libmagic=N32;;
17404
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17405
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
17406
    *) libsuff= shlibsuff= libmagic=never-match;;
17407
    esac
17408
    ;;
17409
  esac
17410
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17411
  shlibpath_overrides_runpath=no
17412
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17413
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17414
  hardcode_into_libs=yes
17415
  ;;
17416
 
17417
# No shared lib support for Linux oldld, aout, or coff.
17418
linux*oldld* | linux*aout* | linux*coff*)
17419
  dynamic_linker=no
17420
  ;;
17421
 
17422
# This must be Linux ELF.
17423
linux*)
17424
  version_type=linux
17425
  need_lib_prefix=no
17426
  need_version=no
17427
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17428
  soname_spec='${libname}${release}${shared_ext}$major'
17429
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17430
  shlibpath_var=LD_LIBRARY_PATH
17431
  shlibpath_overrides_runpath=no
17432
  # This implies no fast_install, which is unacceptable.
17433
  # Some rework will be needed to allow for fast_install
17434
  # before this can be enabled.
17435
  hardcode_into_libs=yes
17436
 
17437
  # We used to test for /lib/ld.so.1 and disable shared libraries on
17438
  # powerpc, because MkLinux only supported shared libraries with the
17439
  # GNU dynamic linker.  Since this was broken with cross compilers,
17440
  # most powerpc-linux boxes support dynamic linking these days and
17441
  # people can always --disable-shared, the test was removed, and we
17442
  # assume the GNU/Linux dynamic linker is in use.
17443
  dynamic_linker='GNU/Linux ld.so'
17444
  ;;
17445
 
17446
netbsd*)
17447
  version_type=sunos
17448
  need_lib_prefix=no
17449
  need_version=no
17450
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17451
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17452
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17453
    dynamic_linker='NetBSD (a.out) ld.so'
17454
  else
17455
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
17456
    soname_spec='${libname}${release}${shared_ext}$major'
17457
    dynamic_linker='NetBSD ld.elf_so'
17458
  fi
17459
  shlibpath_var=LD_LIBRARY_PATH
17460
  shlibpath_overrides_runpath=yes
17461
  hardcode_into_libs=yes
17462
  ;;
17463
 
17464
newsos6)
17465
  version_type=linux
17466
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17467
  shlibpath_var=LD_LIBRARY_PATH
17468
  shlibpath_overrides_runpath=yes
17469
  ;;
17470
 
17471
nto-qnx)
17472
  version_type=linux
17473
  need_lib_prefix=no
17474
  need_version=no
17475
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17476
  soname_spec='${libname}${release}${shared_ext}$major'
17477
  shlibpath_var=LD_LIBRARY_PATH
17478
  shlibpath_overrides_runpath=yes
17479
  ;;
17480
 
17481
openbsd*)
17482
  version_type=sunos
17483
  need_lib_prefix=no
17484
  need_version=no
17485
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17486
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17487
  shlibpath_var=LD_LIBRARY_PATH
17488
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17489
    case $host_os in
17490
      openbsd2.[89] | openbsd2.[89].*)
17491
        shlibpath_overrides_runpath=no
17492
        ;;
17493
      *)
17494
        shlibpath_overrides_runpath=yes
17495
        ;;
17496
      esac
17497
  else
17498
    shlibpath_overrides_runpath=yes
17499
  fi
17500
  ;;
17501
 
17502
os2*)
17503
  libname_spec='$name'
17504
  shrext=".dll"
17505
  need_lib_prefix=no
17506
  library_names_spec='$libname${shared_ext} $libname.a'
17507
  dynamic_linker='OS/2 ld.exe'
17508
  shlibpath_var=LIBPATH
17509
  ;;
17510
 
17511
osf3* | osf4* | osf5*)
17512
  version_type=osf
17513
  need_lib_prefix=no
17514
  need_version=no
17515
  soname_spec='${libname}${release}${shared_ext}$major'
17516
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17517
  shlibpath_var=LD_LIBRARY_PATH
17518
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17519
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17520
  ;;
17521
 
17522
sco3.2v5*)
17523
  version_type=osf
17524
  soname_spec='${libname}${release}${shared_ext}$major'
17525
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17526
  shlibpath_var=LD_LIBRARY_PATH
17527
  ;;
17528
 
17529
solaris*)
17530
  version_type=linux
17531
  need_lib_prefix=no
17532
  need_version=no
17533
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17534
  soname_spec='${libname}${release}${shared_ext}$major'
17535
  shlibpath_var=LD_LIBRARY_PATH
17536
  shlibpath_overrides_runpath=yes
17537
  hardcode_into_libs=yes
17538
  # ldd complains unless libraries are executable
17539
  postinstall_cmds='chmod +x $lib'
17540
  ;;
17541
 
17542
sunos4*)
17543
  version_type=sunos
17544
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17545
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17546
  shlibpath_var=LD_LIBRARY_PATH
17547
  shlibpath_overrides_runpath=yes
17548
  if test "$with_gnu_ld" = yes; then
17549
    need_lib_prefix=no
17550
  fi
17551
  need_version=yes
17552
  ;;
17553
 
17554
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17555
  version_type=linux
17556
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17557
  soname_spec='${libname}${release}${shared_ext}$major'
17558
  shlibpath_var=LD_LIBRARY_PATH
17559
  case $host_vendor in
17560
    sni)
17561
      shlibpath_overrides_runpath=no
17562
      need_lib_prefix=no
17563
      export_dynamic_flag_spec='${wl}-Blargedynsym'
17564
      runpath_var=LD_RUN_PATH
17565
      ;;
17566
    siemens)
17567
      need_lib_prefix=no
17568
      ;;
17569
    motorola)
17570
      need_lib_prefix=no
17571
      need_version=no
17572
      shlibpath_overrides_runpath=no
17573
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17574
      ;;
17575
  esac
17576
  ;;
17577
 
17578
sysv4*MP*)
17579
  if test -d /usr/nec ;then
17580
    version_type=linux
17581
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17582
    soname_spec='$libname${shared_ext}.$major'
17583
    shlibpath_var=LD_LIBRARY_PATH
17584
  fi
17585
  ;;
17586
 
17587
uts4*)
17588
  version_type=linux
17589
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17590
  soname_spec='${libname}${release}${shared_ext}$major'
17591
  shlibpath_var=LD_LIBRARY_PATH
17592
  ;;
17593
 
17594
*)
17595
  dynamic_linker=no
17596
  ;;
17597
esac
17598
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17599
echo "${ECHO_T}$dynamic_linker" >&6
17600
test "$dynamic_linker" = no && can_build_shared=no
17601
 
17602
if test "x$enable_dlopen" != xyes; then
17603
  enable_dlopen=unknown
17604
  enable_dlopen_self=unknown
17605
  enable_dlopen_self_static=unknown
17606
else
17607
  lt_cv_dlopen=no
17608
  lt_cv_dlopen_libs=
17609
 
17610
  case $host_os in
17611
  beos*)
17612
    lt_cv_dlopen="load_add_on"
17613
    lt_cv_dlopen_libs=
17614
    lt_cv_dlopen_self=yes
17615
    ;;
17616
 
17617
  mingw* | pw32*)
17618
    lt_cv_dlopen="LoadLibrary"
17619
    lt_cv_dlopen_libs=
17620
   ;;
17621
 
17622
  cygwin*)
17623
    lt_cv_dlopen="dlopen"
17624
    lt_cv_dlopen_libs=
17625
   ;;
17626
 
17627
  darwin*)
17628
  # if libdl is installed we need to link against it
17629
    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17630
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17631
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17632
  echo $ECHO_N "(cached) $ECHO_C" >&6
17633
else
17634
  ac_check_lib_save_LIBS=$LIBS
17635
LIBS="-ldl  $LIBS"
17636
cat >conftest.$ac_ext <<_ACEOF
17637
/* confdefs.h.  */
17638
_ACEOF
17639
cat confdefs.h >>conftest.$ac_ext
17640
cat >>conftest.$ac_ext <<_ACEOF
17641
/* end confdefs.h.  */
17642
 
17643
/* Override any gcc2 internal prototype to avoid an error.  */
17644
#ifdef __cplusplus
17645
extern "C"
17646
#endif
17647
/* We use char because int might match the return type of a gcc2
17648
   builtin and then its argument prototype would still apply.  */
17649
char dlopen ();
17650
int
17651
main ()
17652
{
17653
dlopen ();
17654
  ;
17655
  return 0;
17656
}
17657
_ACEOF
17658
rm -f conftest.$ac_objext conftest$ac_exeext
17659
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17660
  (eval $ac_link) 2>conftest.er1
17661
  ac_status=$?
17662
  grep -v '^ *+' conftest.er1 >conftest.err
17663
  rm -f conftest.er1
17664
  cat conftest.err >&5
17665
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17666
  (exit $ac_status); } &&
17667
         { ac_try='test -z "$ac_c_werror_flag"
17668
                         || test ! -s conftest.err'
17669
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17670
  (eval $ac_try) 2>&5
17671
  ac_status=$?
17672
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17673
  (exit $ac_status); }; } &&
17674
         { ac_try='test -s conftest$ac_exeext'
17675
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17676
  (eval $ac_try) 2>&5
17677
  ac_status=$?
17678
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17679
  (exit $ac_status); }; }; then
17680
  ac_cv_lib_dl_dlopen=yes
17681
else
17682
  echo "$as_me: failed program was:" >&5
17683
sed 's/^/| /' conftest.$ac_ext >&5
17684
 
17685
ac_cv_lib_dl_dlopen=no
17686
fi
17687
rm -f conftest.err conftest.$ac_objext \
17688
      conftest$ac_exeext conftest.$ac_ext
17689
LIBS=$ac_check_lib_save_LIBS
17690
fi
17691
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17692
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17693
if test $ac_cv_lib_dl_dlopen = yes; then
17694
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17695
else
17696
 
17697
    lt_cv_dlopen="dyld"
17698
    lt_cv_dlopen_libs=
17699
    lt_cv_dlopen_self=yes
17700
 
17701
fi
17702
 
17703
   ;;
17704
 
17705
  *)
17706
    echo "$as_me:$LINENO: checking for shl_load" >&5
17707
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17708
if test "${ac_cv_func_shl_load+set}" = set; then
17709
  echo $ECHO_N "(cached) $ECHO_C" >&6
17710
else
17711
  cat >conftest.$ac_ext <<_ACEOF
17712
/* confdefs.h.  */
17713
_ACEOF
17714
cat confdefs.h >>conftest.$ac_ext
17715
cat >>conftest.$ac_ext <<_ACEOF
17716
/* end confdefs.h.  */
17717
/* Define shl_load to an innocuous variant, in case  declares shl_load.
17718
   For example, HP-UX 11i  declares gettimeofday.  */
17719
#define shl_load innocuous_shl_load
17720
 
17721
/* System header to define __stub macros and hopefully few prototypes,
17722
    which can conflict with char shl_load (); below.
17723
    Prefer  to  if __STDC__ is defined, since
17724
     exists even on freestanding compilers.  */
17725
 
17726
#ifdef __STDC__
17727
# include 
17728
#else
17729
# include 
17730
#endif
17731
 
17732
#undef shl_load
17733
 
17734
/* Override any gcc2 internal prototype to avoid an error.  */
17735
#ifdef __cplusplus
17736
extern "C"
17737
{
17738
#endif
17739
/* We use char because int might match the return type of a gcc2
17740
   builtin and then its argument prototype would still apply.  */
17741
char shl_load ();
17742
/* The GNU C library defines this for functions which it implements
17743
    to always fail with ENOSYS.  Some functions are actually named
17744
    something starting with __ and the normal name is an alias.  */
17745
#if defined (__stub_shl_load) || defined (__stub___shl_load)
17746
choke me
17747
#else
17748
char (*f) () = shl_load;
17749
#endif
17750
#ifdef __cplusplus
17751
}
17752
#endif
17753
 
17754
int
17755
main ()
17756
{
17757
return f != shl_load;
17758
  ;
17759
  return 0;
17760
}
17761
_ACEOF
17762
rm -f conftest.$ac_objext conftest$ac_exeext
17763
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17764
  (eval $ac_link) 2>conftest.er1
17765
  ac_status=$?
17766
  grep -v '^ *+' conftest.er1 >conftest.err
17767
  rm -f conftest.er1
17768
  cat conftest.err >&5
17769
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17770
  (exit $ac_status); } &&
17771
         { ac_try='test -z "$ac_c_werror_flag"
17772
                         || test ! -s conftest.err'
17773
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17774
  (eval $ac_try) 2>&5
17775
  ac_status=$?
17776
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17777
  (exit $ac_status); }; } &&
17778
         { ac_try='test -s conftest$ac_exeext'
17779
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17780
  (eval $ac_try) 2>&5
17781
  ac_status=$?
17782
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17783
  (exit $ac_status); }; }; then
17784
  ac_cv_func_shl_load=yes
17785
else
17786
  echo "$as_me: failed program was:" >&5
17787
sed 's/^/| /' conftest.$ac_ext >&5
17788
 
17789
ac_cv_func_shl_load=no
17790
fi
17791
rm -f conftest.err conftest.$ac_objext \
17792
      conftest$ac_exeext conftest.$ac_ext
17793
fi
17794
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17795
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17796
if test $ac_cv_func_shl_load = yes; then
17797
  lt_cv_dlopen="shl_load"
17798
else
17799
  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17800
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17801
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17802
  echo $ECHO_N "(cached) $ECHO_C" >&6
17803
else
17804
  ac_check_lib_save_LIBS=$LIBS
17805
LIBS="-ldld  $LIBS"
17806
cat >conftest.$ac_ext <<_ACEOF
17807
/* confdefs.h.  */
17808
_ACEOF
17809
cat confdefs.h >>conftest.$ac_ext
17810
cat >>conftest.$ac_ext <<_ACEOF
17811
/* end confdefs.h.  */
17812
 
17813
/* Override any gcc2 internal prototype to avoid an error.  */
17814
#ifdef __cplusplus
17815
extern "C"
17816
#endif
17817
/* We use char because int might match the return type of a gcc2
17818
   builtin and then its argument prototype would still apply.  */
17819
char shl_load ();
17820
int
17821
main ()
17822
{
17823
shl_load ();
17824
  ;
17825
  return 0;
17826
}
17827
_ACEOF
17828
rm -f conftest.$ac_objext conftest$ac_exeext
17829
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17830
  (eval $ac_link) 2>conftest.er1
17831
  ac_status=$?
17832
  grep -v '^ *+' conftest.er1 >conftest.err
17833
  rm -f conftest.er1
17834
  cat conftest.err >&5
17835
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17836
  (exit $ac_status); } &&
17837
         { ac_try='test -z "$ac_c_werror_flag"
17838
                         || test ! -s conftest.err'
17839
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17840
  (eval $ac_try) 2>&5
17841
  ac_status=$?
17842
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17843
  (exit $ac_status); }; } &&
17844
         { ac_try='test -s conftest$ac_exeext'
17845
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17846
  (eval $ac_try) 2>&5
17847
  ac_status=$?
17848
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17849
  (exit $ac_status); }; }; then
17850
  ac_cv_lib_dld_shl_load=yes
17851
else
17852
  echo "$as_me: failed program was:" >&5
17853
sed 's/^/| /' conftest.$ac_ext >&5
17854
 
17855
ac_cv_lib_dld_shl_load=no
17856
fi
17857
rm -f conftest.err conftest.$ac_objext \
17858
      conftest$ac_exeext conftest.$ac_ext
17859
LIBS=$ac_check_lib_save_LIBS
17860
fi
17861
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17862
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17863
if test $ac_cv_lib_dld_shl_load = yes; then
17864
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17865
else
17866
  echo "$as_me:$LINENO: checking for dlopen" >&5
17867
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17868
if test "${ac_cv_func_dlopen+set}" = set; then
17869
  echo $ECHO_N "(cached) $ECHO_C" >&6
17870
else
17871
  cat >conftest.$ac_ext <<_ACEOF
17872
/* confdefs.h.  */
17873
_ACEOF
17874
cat confdefs.h >>conftest.$ac_ext
17875
cat >>conftest.$ac_ext <<_ACEOF
17876
/* end confdefs.h.  */
17877
/* Define dlopen to an innocuous variant, in case  declares dlopen.
17878
   For example, HP-UX 11i  declares gettimeofday.  */
17879
#define dlopen innocuous_dlopen
17880
 
17881
/* System header to define __stub macros and hopefully few prototypes,
17882
    which can conflict with char dlopen (); below.
17883
    Prefer  to  if __STDC__ is defined, since
17884
     exists even on freestanding compilers.  */
17885
 
17886
#ifdef __STDC__
17887
# include 
17888
#else
17889
# include 
17890
#endif
17891
 
17892
#undef dlopen
17893
 
17894
/* Override any gcc2 internal prototype to avoid an error.  */
17895
#ifdef __cplusplus
17896
extern "C"
17897
{
17898
#endif
17899
/* We use char because int might match the return type of a gcc2
17900
   builtin and then its argument prototype would still apply.  */
17901
char dlopen ();
17902
/* The GNU C library defines this for functions which it implements
17903
    to always fail with ENOSYS.  Some functions are actually named
17904
    something starting with __ and the normal name is an alias.  */
17905
#if defined (__stub_dlopen) || defined (__stub___dlopen)
17906
choke me
17907
#else
17908
char (*f) () = dlopen;
17909
#endif
17910
#ifdef __cplusplus
17911
}
17912
#endif
17913
 
17914
int
17915
main ()
17916
{
17917
return f != dlopen;
17918
  ;
17919
  return 0;
17920
}
17921
_ACEOF
17922
rm -f conftest.$ac_objext conftest$ac_exeext
17923
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17924
  (eval $ac_link) 2>conftest.er1
17925
  ac_status=$?
17926
  grep -v '^ *+' conftest.er1 >conftest.err
17927
  rm -f conftest.er1
17928
  cat conftest.err >&5
17929
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17930
  (exit $ac_status); } &&
17931
         { ac_try='test -z "$ac_c_werror_flag"
17932
                         || test ! -s conftest.err'
17933
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17934
  (eval $ac_try) 2>&5
17935
  ac_status=$?
17936
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17937
  (exit $ac_status); }; } &&
17938
         { ac_try='test -s conftest$ac_exeext'
17939
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17940
  (eval $ac_try) 2>&5
17941
  ac_status=$?
17942
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17943
  (exit $ac_status); }; }; then
17944
  ac_cv_func_dlopen=yes
17945
else
17946
  echo "$as_me: failed program was:" >&5
17947
sed 's/^/| /' conftest.$ac_ext >&5
17948
 
17949
ac_cv_func_dlopen=no
17950
fi
17951
rm -f conftest.err conftest.$ac_objext \
17952
      conftest$ac_exeext conftest.$ac_ext
17953
fi
17954
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17955
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17956
if test $ac_cv_func_dlopen = yes; then
17957
  lt_cv_dlopen="dlopen"
17958
else
17959
  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17960
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17961
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17962
  echo $ECHO_N "(cached) $ECHO_C" >&6
17963
else
17964
  ac_check_lib_save_LIBS=$LIBS
17965
LIBS="-ldl  $LIBS"
17966
cat >conftest.$ac_ext <<_ACEOF
17967
/* confdefs.h.  */
17968
_ACEOF
17969
cat confdefs.h >>conftest.$ac_ext
17970
cat >>conftest.$ac_ext <<_ACEOF
17971
/* end confdefs.h.  */
17972
 
17973
/* Override any gcc2 internal prototype to avoid an error.  */
17974
#ifdef __cplusplus
17975
extern "C"
17976
#endif
17977
/* We use char because int might match the return type of a gcc2
17978
   builtin and then its argument prototype would still apply.  */
17979
char dlopen ();
17980
int
17981
main ()
17982
{
17983
dlopen ();
17984
  ;
17985
  return 0;
17986
}
17987
_ACEOF
17988
rm -f conftest.$ac_objext conftest$ac_exeext
17989
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17990
  (eval $ac_link) 2>conftest.er1
17991
  ac_status=$?
17992
  grep -v '^ *+' conftest.er1 >conftest.err
17993
  rm -f conftest.er1
17994
  cat conftest.err >&5
17995
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17996
  (exit $ac_status); } &&
17997
         { ac_try='test -z "$ac_c_werror_flag"
17998
                         || test ! -s conftest.err'
17999
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18000
  (eval $ac_try) 2>&5
18001
  ac_status=$?
18002
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18003
  (exit $ac_status); }; } &&
18004
         { ac_try='test -s conftest$ac_exeext'
18005
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18006
  (eval $ac_try) 2>&5
18007
  ac_status=$?
18008
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18009
  (exit $ac_status); }; }; then
18010
  ac_cv_lib_dl_dlopen=yes
18011
else
18012
  echo "$as_me: failed program was:" >&5
18013
sed 's/^/| /' conftest.$ac_ext >&5
18014
 
18015
ac_cv_lib_dl_dlopen=no
18016
fi
18017
rm -f conftest.err conftest.$ac_objext \
18018
      conftest$ac_exeext conftest.$ac_ext
18019
LIBS=$ac_check_lib_save_LIBS
18020
fi
18021
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
18022
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
18023
if test $ac_cv_lib_dl_dlopen = yes; then
18024
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18025
else
18026
  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
18027
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
18028
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
18029
  echo $ECHO_N "(cached) $ECHO_C" >&6
18030
else
18031
  ac_check_lib_save_LIBS=$LIBS
18032
LIBS="-lsvld  $LIBS"
18033
cat >conftest.$ac_ext <<_ACEOF
18034
/* confdefs.h.  */
18035
_ACEOF
18036
cat confdefs.h >>conftest.$ac_ext
18037
cat >>conftest.$ac_ext <<_ACEOF
18038
/* end confdefs.h.  */
18039
 
18040
/* Override any gcc2 internal prototype to avoid an error.  */
18041
#ifdef __cplusplus
18042
extern "C"
18043
#endif
18044
/* We use char because int might match the return type of a gcc2
18045
   builtin and then its argument prototype would still apply.  */
18046
char dlopen ();
18047
int
18048
main ()
18049
{
18050
dlopen ();
18051
  ;
18052
  return 0;
18053
}
18054
_ACEOF
18055
rm -f conftest.$ac_objext conftest$ac_exeext
18056
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18057
  (eval $ac_link) 2>conftest.er1
18058
  ac_status=$?
18059
  grep -v '^ *+' conftest.er1 >conftest.err
18060
  rm -f conftest.er1
18061
  cat conftest.err >&5
18062
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18063
  (exit $ac_status); } &&
18064
         { ac_try='test -z "$ac_c_werror_flag"
18065
                         || test ! -s conftest.err'
18066
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18067
  (eval $ac_try) 2>&5
18068
  ac_status=$?
18069
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18070
  (exit $ac_status); }; } &&
18071
         { ac_try='test -s conftest$ac_exeext'
18072
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18073
  (eval $ac_try) 2>&5
18074
  ac_status=$?
18075
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18076
  (exit $ac_status); }; }; then
18077
  ac_cv_lib_svld_dlopen=yes
18078
else
18079
  echo "$as_me: failed program was:" >&5
18080
sed 's/^/| /' conftest.$ac_ext >&5
18081
 
18082
ac_cv_lib_svld_dlopen=no
18083
fi
18084
rm -f conftest.err conftest.$ac_objext \
18085
      conftest$ac_exeext conftest.$ac_ext
18086
LIBS=$ac_check_lib_save_LIBS
18087
fi
18088
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
18089
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
18090
if test $ac_cv_lib_svld_dlopen = yes; then
18091
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
18092
else
18093
  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
18094
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
18095
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
18096
  echo $ECHO_N "(cached) $ECHO_C" >&6
18097
else
18098
  ac_check_lib_save_LIBS=$LIBS
18099
LIBS="-ldld  $LIBS"
18100
cat >conftest.$ac_ext <<_ACEOF
18101
/* confdefs.h.  */
18102
_ACEOF
18103
cat confdefs.h >>conftest.$ac_ext
18104
cat >>conftest.$ac_ext <<_ACEOF
18105
/* end confdefs.h.  */
18106
 
18107
/* Override any gcc2 internal prototype to avoid an error.  */
18108
#ifdef __cplusplus
18109
extern "C"
18110
#endif
18111
/* We use char because int might match the return type of a gcc2
18112
   builtin and then its argument prototype would still apply.  */
18113
char dld_link ();
18114
int
18115
main ()
18116
{
18117
dld_link ();
18118
  ;
18119
  return 0;
18120
}
18121
_ACEOF
18122
rm -f conftest.$ac_objext conftest$ac_exeext
18123
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18124
  (eval $ac_link) 2>conftest.er1
18125
  ac_status=$?
18126
  grep -v '^ *+' conftest.er1 >conftest.err
18127
  rm -f conftest.er1
18128
  cat conftest.err >&5
18129
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18130
  (exit $ac_status); } &&
18131
         { ac_try='test -z "$ac_c_werror_flag"
18132
                         || test ! -s conftest.err'
18133
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18134
  (eval $ac_try) 2>&5
18135
  ac_status=$?
18136
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18137
  (exit $ac_status); }; } &&
18138
         { ac_try='test -s conftest$ac_exeext'
18139
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18140
  (eval $ac_try) 2>&5
18141
  ac_status=$?
18142
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18143
  (exit $ac_status); }; }; then
18144
  ac_cv_lib_dld_dld_link=yes
18145
else
18146
  echo "$as_me: failed program was:" >&5
18147
sed 's/^/| /' conftest.$ac_ext >&5
18148
 
18149
ac_cv_lib_dld_dld_link=no
18150
fi
18151
rm -f conftest.err conftest.$ac_objext \
18152
      conftest$ac_exeext conftest.$ac_ext
18153
LIBS=$ac_check_lib_save_LIBS
18154
fi
18155
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
18156
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
18157
if test $ac_cv_lib_dld_dld_link = yes; then
18158
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
18159
fi
18160
 
18161
 
18162
fi
18163
 
18164
 
18165
fi
18166
 
18167
 
18168
fi
18169
 
18170
 
18171
fi
18172
 
18173
 
18174
fi
18175
 
18176
    ;;
18177
  esac
18178
 
18179
  if test "x$lt_cv_dlopen" != xno; then
18180
    enable_dlopen=yes
18181
  else
18182
    enable_dlopen=no
18183
  fi
18184
 
18185
  case $lt_cv_dlopen in
18186
  dlopen)
18187
    save_CPPFLAGS="$CPPFLAGS"
18188
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18189
 
18190
    save_LDFLAGS="$LDFLAGS"
18191
    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18192
 
18193
    save_LIBS="$LIBS"
18194
    LIBS="$lt_cv_dlopen_libs $LIBS"
18195
 
18196
    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
18197
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
18198
if test "${lt_cv_dlopen_self+set}" = set; then
18199
  echo $ECHO_N "(cached) $ECHO_C" >&6
18200
else
18201
          if test "$cross_compiling" = yes; then :
18202
  lt_cv_dlopen_self=cross
18203
else
18204
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18205
  lt_status=$lt_dlunknown
18206
  cat > conftest.$ac_ext <
18207
#line 18207 "configure"
18208
#include "confdefs.h"
18209
 
18210
#if HAVE_DLFCN_H
18211
#include 
18212
#endif
18213
 
18214
#include 
18215
 
18216
#ifdef RTLD_GLOBAL
18217
#  define LT_DLGLOBAL           RTLD_GLOBAL
18218
#else
18219
#  ifdef DL_GLOBAL
18220
#    define LT_DLGLOBAL         DL_GLOBAL
18221
#  else
18222
#    define LT_DLGLOBAL         0
18223
#  endif
18224
#endif
18225
 
18226
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18227
   find out it does not work in some platform. */
18228
#ifndef LT_DLLAZY_OR_NOW
18229
#  ifdef RTLD_LAZY
18230
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
18231
#  else
18232
#    ifdef DL_LAZY
18233
#      define LT_DLLAZY_OR_NOW          DL_LAZY
18234
#    else
18235
#      ifdef RTLD_NOW
18236
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
18237
#      else
18238
#        ifdef DL_NOW
18239
#          define LT_DLLAZY_OR_NOW      DL_NOW
18240
#        else
18241
#          define LT_DLLAZY_OR_NOW      0
18242
#        endif
18243
#      endif
18244
#    endif
18245
#  endif
18246
#endif
18247
 
18248
#ifdef __cplusplus
18249
extern "C" void exit (int);
18250
#endif
18251
 
18252
void fnord() { int i=42;}
18253
int main ()
18254
{
18255
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18256
  int status = $lt_dlunknown;
18257
 
18258
  if (self)
18259
    {
18260
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
18261
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18262
      /* dlclose (self); */
18263
    }
18264
 
18265
    exit (status);
18266
}
18267
EOF
18268
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18269
  (eval $ac_link) 2>&5
18270
  ac_status=$?
18271
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18272
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18273
    (./conftest; exit; ) 2>/dev/null
18274
    lt_status=$?
18275
    case x$lt_status in
18276
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18277
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18278
      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
18279
    esac
18280
  else :
18281
    # compilation failed
18282
    lt_cv_dlopen_self=no
18283
  fi
18284
fi
18285
rm -fr conftest*
18286
 
18287
 
18288
fi
18289
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
18290
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
18291
 
18292
    if test "x$lt_cv_dlopen_self" = xyes; then
18293
      LDFLAGS="$LDFLAGS $link_static_flag"
18294
      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
18295
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
18296
if test "${lt_cv_dlopen_self_static+set}" = set; then
18297
  echo $ECHO_N "(cached) $ECHO_C" >&6
18298
else
18299
          if test "$cross_compiling" = yes; then :
18300
  lt_cv_dlopen_self_static=cross
18301
else
18302
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18303
  lt_status=$lt_dlunknown
18304
  cat > conftest.$ac_ext <
18305
#line 18305 "configure"
18306
#include "confdefs.h"
18307
 
18308
#if HAVE_DLFCN_H
18309
#include 
18310
#endif
18311
 
18312
#include 
18313
 
18314
#ifdef RTLD_GLOBAL
18315
#  define LT_DLGLOBAL           RTLD_GLOBAL
18316
#else
18317
#  ifdef DL_GLOBAL
18318
#    define LT_DLGLOBAL         DL_GLOBAL
18319
#  else
18320
#    define LT_DLGLOBAL         0
18321
#  endif
18322
#endif
18323
 
18324
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18325
   find out it does not work in some platform. */
18326
#ifndef LT_DLLAZY_OR_NOW
18327
#  ifdef RTLD_LAZY
18328
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
18329
#  else
18330
#    ifdef DL_LAZY
18331
#      define LT_DLLAZY_OR_NOW          DL_LAZY
18332
#    else
18333
#      ifdef RTLD_NOW
18334
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
18335
#      else
18336
#        ifdef DL_NOW
18337
#          define LT_DLLAZY_OR_NOW      DL_NOW
18338
#        else
18339
#          define LT_DLLAZY_OR_NOW      0
18340
#        endif
18341
#      endif
18342
#    endif
18343
#  endif
18344
#endif
18345
 
18346
#ifdef __cplusplus
18347
extern "C" void exit (int);
18348
#endif
18349
 
18350
void fnord() { int i=42;}
18351
int main ()
18352
{
18353
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18354
  int status = $lt_dlunknown;
18355
 
18356
  if (self)
18357
    {
18358
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
18359
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18360
      /* dlclose (self); */
18361
    }
18362
 
18363
    exit (status);
18364
}
18365
EOF
18366
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18367
  (eval $ac_link) 2>&5
18368
  ac_status=$?
18369
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18370
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18371
    (./conftest; exit; ) 2>/dev/null
18372
    lt_status=$?
18373
    case x$lt_status in
18374
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18375
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18376
      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
18377
    esac
18378
  else :
18379
    # compilation failed
18380
    lt_cv_dlopen_self_static=no
18381
  fi
18382
fi
18383
rm -fr conftest*
18384
 
18385
 
18386
fi
18387
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18388
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
18389
    fi
18390
 
18391
    CPPFLAGS="$save_CPPFLAGS"
18392
    LDFLAGS="$save_LDFLAGS"
18393
    LIBS="$save_LIBS"
18394
    ;;
18395
  esac
18396
 
18397
  case $lt_cv_dlopen_self in
18398
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18399
  *) enable_dlopen_self=unknown ;;
18400
  esac
18401
 
18402
  case $lt_cv_dlopen_self_static in
18403
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18404
  *) enable_dlopen_self_static=unknown ;;
18405
  esac
18406
fi
18407
 
18408
 
18409
# The else clause should only fire when bootstrapping the
18410
# libtool distribution, otherwise you forgot to ship ltmain.sh
18411
# with your package, and you will get complaints that there are
18412
# no rules to generate ltmain.sh.
18413
if test -f "$ltmain"; then
18414
  # See if we are running on zsh, and set the options which allow our commands through
18415
  # without removal of \ escapes.
18416
  if test -n "${ZSH_VERSION+set}" ; then
18417
    setopt NO_GLOB_SUBST
18418
  fi
18419
  # Now quote all the things that may contain metacharacters while being
18420
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
18421
  # variables and quote the copies for generation of the libtool script.
18422
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
18423
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18424
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18425
    deplibs_check_method reload_flag reload_cmds need_locks \
18426
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18427
    lt_cv_sys_global_symbol_to_c_name_address \
18428
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18429
    old_postinstall_cmds old_postuninstall_cmds \
18430
    compiler_GCJ \
18431
    CC_GCJ \
18432
    LD_GCJ \
18433
    lt_prog_compiler_wl_GCJ \
18434
    lt_prog_compiler_pic_GCJ \
18435
    lt_prog_compiler_static_GCJ \
18436
    lt_prog_compiler_no_builtin_flag_GCJ \
18437
    export_dynamic_flag_spec_GCJ \
18438
    thread_safe_flag_spec_GCJ \
18439
    whole_archive_flag_spec_GCJ \
18440
    enable_shared_with_static_runtimes_GCJ \
18441
    old_archive_cmds_GCJ \
18442
    old_archive_from_new_cmds_GCJ \
18443
    predep_objects_GCJ \
18444
    postdep_objects_GCJ \
18445
    predeps_GCJ \
18446
    postdeps_GCJ \
18447
    compiler_lib_search_path_GCJ \
18448
    archive_cmds_GCJ \
18449
    archive_expsym_cmds_GCJ \
18450
    postinstall_cmds_GCJ \
18451
    postuninstall_cmds_GCJ \
18452
    old_archive_from_expsyms_cmds_GCJ \
18453
    allow_undefined_flag_GCJ \
18454
    no_undefined_flag_GCJ \
18455
    export_symbols_cmds_GCJ \
18456
    hardcode_libdir_flag_spec_GCJ \
18457
    hardcode_libdir_flag_spec_ld_GCJ \
18458
    hardcode_libdir_separator_GCJ \
18459
    hardcode_automatic_GCJ \
18460
    module_cmds_GCJ \
18461
    module_expsym_cmds_GCJ \
18462
    lt_cv_prog_compiler_c_o_GCJ \
18463
    exclude_expsyms_GCJ \
18464
    include_expsyms_GCJ; do
18465
 
18466
    case $var in
18467
    old_archive_cmds_GCJ | \
18468
    old_archive_from_new_cmds_GCJ | \
18469
    archive_cmds_GCJ | \
18470
    archive_expsym_cmds_GCJ | \
18471
    module_cmds_GCJ | \
18472
    module_expsym_cmds_GCJ | \
18473
    old_archive_from_expsyms_cmds_GCJ | \
18474
    export_symbols_cmds_GCJ | \
18475
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
18476
    postinstall_cmds | postuninstall_cmds | \
18477
    old_postinstall_cmds | old_postuninstall_cmds | \
18478
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18479
      # Double-quote double-evaled strings.
18480
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18481
      ;;
18482
    *)
18483
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18484
      ;;
18485
    esac
18486
  done
18487
 
18488
  case $lt_echo in
18489
  *'\$0 --fallback-echo"')
18490
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18491
    ;;
18492
  esac
18493
 
18494
cfgfile="$ofile"
18495
 
18496
  cat <<__EOF__ >> "$cfgfile"
18497
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18498
 
18499
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18500
 
18501
# Shell to use when invoking shell scripts.
18502
SHELL=$lt_SHELL
18503
 
18504
# Whether or not to build shared libraries.
18505
build_libtool_libs=$enable_shared
18506
 
18507
# Whether or not to build static libraries.
18508
build_old_libs=$enable_static
18509
 
18510
# Whether or not to add -lc for building shared libraries.
18511
build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18512
 
18513
# Whether or not to disallow shared libs when runtime libs are static
18514
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18515
 
18516
# Whether or not to optimize for fast installation.
18517
fast_install=$enable_fast_install
18518
 
18519
# The host system.
18520
host_alias=$host_alias
18521
host=$host
18522
 
18523
# An echo program that does not interpret backslashes.
18524
echo=$lt_echo
18525
 
18526
# The archiver.
18527
AR=$lt_AR
18528
AR_FLAGS=$lt_AR_FLAGS
18529
 
18530
# A C compiler.
18531
LTCC=$lt_LTCC
18532
 
18533
# A language-specific compiler.
18534
CC=$lt_compiler_GCJ
18535
 
18536
# Is the compiler the GNU C compiler?
18537
with_gcc=$GCC_GCJ
18538
 
18539
# An ERE matcher.
18540
EGREP=$lt_EGREP
18541
 
18542
# The linker used to build libraries.
18543
LD=$lt_LD_GCJ
18544
 
18545
# Whether we need hard or soft links.
18546
LN_S=$lt_LN_S
18547
 
18548
# A BSD-compatible nm program.
18549
NM=$lt_NM
18550
 
18551
# A symbol stripping program
18552
STRIP=$STRIP
18553
 
18554
# Used to examine libraries when file_magic_cmd begins "file"
18555
MAGIC_CMD=$MAGIC_CMD
18556
 
18557
# Used on cygwin: DLL creation program.
18558
DLLTOOL="$DLLTOOL"
18559
 
18560
# Used on cygwin: object dumper.
18561
OBJDUMP="$OBJDUMP"
18562
 
18563
# Used on cygwin: assembler.
18564
AS="$AS"
18565
 
18566
# The name of the directory that contains temporary libtool files.
18567
objdir=$objdir
18568
 
18569
# How to create reloadable object files.
18570
reload_flag=$lt_reload_flag
18571
reload_cmds=$lt_reload_cmds
18572
 
18573
# How to pass a linker flag through the compiler.
18574
wl=$lt_lt_prog_compiler_wl_GCJ
18575
 
18576
# Object file suffix (normally "o").
18577
objext="$ac_objext"
18578
 
18579
# Old archive suffix (normally "a").
18580
libext="$libext"
18581
 
18582
# Shared library suffix (normally ".so").
18583
shrext='$shrext'
18584
 
18585
# Executable file suffix (normally "").
18586
exeext="$exeext"
18587
 
18588
# Additional compiler flags for building library objects.
18589
pic_flag=$lt_lt_prog_compiler_pic_GCJ
18590
pic_mode=$pic_mode
18591
 
18592
# What is the maximum length of a command?
18593
max_cmd_len=$lt_cv_sys_max_cmd_len
18594
 
18595
# Does compiler simultaneously support -c and -o options?
18596
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18597
 
18598
# Must we lock files when doing compilation ?
18599
need_locks=$lt_need_locks
18600
 
18601
# Do we need the lib prefix for modules?
18602
need_lib_prefix=$need_lib_prefix
18603
 
18604
# Do we need a version for libraries?
18605
need_version=$need_version
18606
 
18607
# Whether dlopen is supported.
18608
dlopen_support=$enable_dlopen
18609
 
18610
# Whether dlopen of programs is supported.
18611
dlopen_self=$enable_dlopen_self
18612
 
18613
# Whether dlopen of statically linked programs is supported.
18614
dlopen_self_static=$enable_dlopen_self_static
18615
 
18616
# Compiler flag to prevent dynamic linking.
18617
link_static_flag=$lt_lt_prog_compiler_static_GCJ
18618
 
18619
# Compiler flag to turn off builtin functions.
18620
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18621
 
18622
# Compiler flag to allow reflexive dlopens.
18623
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18624
 
18625
# Compiler flag to generate shared objects directly from archives.
18626
whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18627
 
18628
# Compiler flag to generate thread-safe objects.
18629
thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18630
 
18631
# Library versioning type.
18632
version_type=$version_type
18633
 
18634
# Format of library name prefix.
18635
libname_spec=$lt_libname_spec
18636
 
18637
# List of archive names.  First name is the real one, the rest are links.
18638
# The last name is the one that the linker finds with -lNAME.
18639
library_names_spec=$lt_library_names_spec
18640
 
18641
# The coded name of the library, if different from the real name.
18642
soname_spec=$lt_soname_spec
18643
 
18644
# Commands used to build and install an old-style archive.
18645
RANLIB=$lt_RANLIB
18646
old_archive_cmds=$lt_old_archive_cmds_GCJ
18647
old_postinstall_cmds=$lt_old_postinstall_cmds
18648
old_postuninstall_cmds=$lt_old_postuninstall_cmds
18649
 
18650
# Create an old-style archive from a shared archive.
18651
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18652
 
18653
# Create a temporary old-style archive to link instead of a shared archive.
18654
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18655
 
18656
# Commands used to build and install a shared archive.
18657
archive_cmds=$lt_archive_cmds_GCJ
18658
archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18659
postinstall_cmds=$lt_postinstall_cmds
18660
postuninstall_cmds=$lt_postuninstall_cmds
18661
 
18662
# Commands used to build a loadable module (assumed same as above if empty)
18663
module_cmds=$lt_module_cmds_GCJ
18664
module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18665
 
18666
# Commands to strip libraries.
18667
old_striplib=$lt_old_striplib
18668
striplib=$lt_striplib
18669
 
18670
# Dependencies to place before the objects being linked to create a
18671
# shared library.
18672
predep_objects=$lt_predep_objects_GCJ
18673
 
18674
# Dependencies to place after the objects being linked to create a
18675
# shared library.
18676
postdep_objects=$lt_postdep_objects_GCJ
18677
 
18678
# Dependencies to place before the objects being linked to create a
18679
# shared library.
18680
predeps=$lt_predeps_GCJ
18681
 
18682
# Dependencies to place after the objects being linked to create a
18683
# shared library.
18684
postdeps=$lt_postdeps_GCJ
18685
 
18686
# The library search path used internally by the compiler when linking
18687
# a shared library.
18688
compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18689
 
18690
# Method to check whether dependent libraries are shared objects.
18691
deplibs_check_method=$lt_deplibs_check_method
18692
 
18693
# Command to use when deplibs_check_method == file_magic.
18694
file_magic_cmd=$lt_file_magic_cmd
18695
 
18696
# Flag that allows shared libraries with undefined symbols to be built.
18697
allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18698
 
18699
# Flag that forces no undefined symbols.
18700
no_undefined_flag=$lt_no_undefined_flag_GCJ
18701
 
18702
# Commands used to finish a libtool library installation in a directory.
18703
finish_cmds=$lt_finish_cmds
18704
 
18705
# Same as above, but a single script fragment to be evaled but not shown.
18706
finish_eval=$lt_finish_eval
18707
 
18708
# Take the output of nm and produce a listing of raw symbols and C names.
18709
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18710
 
18711
# Transform the output of nm in a proper C declaration
18712
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18713
 
18714
# Transform the output of nm in a C name address pair
18715
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18716
 
18717
# This is the shared library runtime path variable.
18718
runpath_var=$runpath_var
18719
 
18720
# This is the shared library path variable.
18721
shlibpath_var=$shlibpath_var
18722
 
18723
# Is shlibpath searched before the hard-coded library search path?
18724
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18725
 
18726
# How to hardcode a shared library path into an executable.
18727
hardcode_action=$hardcode_action_GCJ
18728
 
18729
# Whether we should hardcode library paths into libraries.
18730
hardcode_into_libs=$hardcode_into_libs
18731
 
18732
# Flag to hardcode \$libdir into a binary during linking.
18733
# This must work even if \$libdir does not exist.
18734
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18735
 
18736
# If ld is used when linking, flag to hardcode \$libdir into
18737
# a binary during linking. This must work even if \$libdir does
18738
# not exist.
18739
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18740
 
18741
# Whether we need a single -rpath flag with a separated argument.
18742
hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18743
 
18744
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18745
# resulting binary.
18746
hardcode_direct=$hardcode_direct_GCJ
18747
 
18748
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18749
# resulting binary.
18750
hardcode_minus_L=$hardcode_minus_L_GCJ
18751
 
18752
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18753
# the resulting binary.
18754
hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18755
 
18756
# Set to yes if building a shared library automatically hardcodes DIR into the library
18757
# and all subsequent libraries and executables linked against it.
18758
hardcode_automatic=$hardcode_automatic_GCJ
18759
 
18760
# Variables whose values should be saved in libtool wrapper scripts and
18761
# restored at relink time.
18762
variables_saved_for_relink="$variables_saved_for_relink"
18763
 
18764
# Whether libtool must link a program against all its dependency libraries.
18765
link_all_deplibs=$link_all_deplibs_GCJ
18766
 
18767
# Compile-time system search path for libraries
18768
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18769
 
18770
# Run-time system search path for libraries
18771
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18772
 
18773
# Fix the shell variable \$srcfile for the compiler.
18774
fix_srcfile_path="$fix_srcfile_path_GCJ"
18775
 
18776
# Set to yes if exported symbols are required.
18777
always_export_symbols=$always_export_symbols_GCJ
18778
 
18779
# The commands to list exported symbols.
18780
export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18781
 
18782
# The commands to extract the exported symbol list from a shared archive.
18783
extract_expsyms_cmds=$lt_extract_expsyms_cmds
18784
 
18785
# Symbols that should not be listed in the preloaded symbols.
18786
exclude_expsyms=$lt_exclude_expsyms_GCJ
18787
 
18788
# Symbols that must always be exported.
18789
include_expsyms=$lt_include_expsyms_GCJ
18790
 
18791
# ### END LIBTOOL TAG CONFIG: $tagname
18792
 
18793
__EOF__
18794
 
18795
 
18796
else
18797
  # If there is no Makefile yet, we rely on a make rule to execute
18798
  # `config.status --recheck' to rerun these tests and create the
18799
  # libtool script then.
18800
  test -f Makefile && make "$ltmain"
18801
fi
18802
 
18803
 
18804
ac_ext=c
18805
ac_cpp='$CPP $CPPFLAGS'
18806
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18807
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18808
ac_compiler_gnu=$ac_cv_c_compiler_gnu
18809
 
18810
CC="$lt_save_CC"
18811
 
18812
        else
18813
          tagname=""
18814
        fi
18815
        ;;
18816
 
18817
      RC)
18818
 
18819
 
18820
 
18821
# Source file extension for RC test sources.
18822
ac_ext=rc
18823
 
18824
# Object file extension for compiled RC test sources.
18825
objext=o
18826
objext_RC=$objext
18827
 
18828
# Code to be used in simple compile tests
18829
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18830
 
18831
# Code to be used in simple link tests
18832
lt_simple_link_test_code="$lt_simple_compile_test_code"
18833
 
18834
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
18835
 
18836
# If no C compiler was specified, use CC.
18837
LTCC=${LTCC-"$CC"}
18838
 
18839
# Allow CC to be a program name with arguments.
18840
compiler=$CC
18841
 
18842
 
18843
# Allow CC to be a program name with arguments.
18844
lt_save_CC="$CC"
18845
CC=${RC-"windres"}
18846
compiler=$CC
18847
compiler_RC=$CC
18848
lt_cv_prog_compiler_c_o_RC=yes
18849
 
18850
# The else clause should only fire when bootstrapping the
18851
# libtool distribution, otherwise you forgot to ship ltmain.sh
18852
# with your package, and you will get complaints that there are
18853
# no rules to generate ltmain.sh.
18854
if test -f "$ltmain"; then
18855
  # See if we are running on zsh, and set the options which allow our commands through
18856
  # without removal of \ escapes.
18857
  if test -n "${ZSH_VERSION+set}" ; then
18858
    setopt NO_GLOB_SUBST
18859
  fi
18860
  # Now quote all the things that may contain metacharacters while being
18861
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
18862
  # variables and quote the copies for generation of the libtool script.
18863
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
18864
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18865
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18866
    deplibs_check_method reload_flag reload_cmds need_locks \
18867
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18868
    lt_cv_sys_global_symbol_to_c_name_address \
18869
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18870
    old_postinstall_cmds old_postuninstall_cmds \
18871
    compiler_RC \
18872
    CC_RC \
18873
    LD_RC \
18874
    lt_prog_compiler_wl_RC \
18875
    lt_prog_compiler_pic_RC \
18876
    lt_prog_compiler_static_RC \
18877
    lt_prog_compiler_no_builtin_flag_RC \
18878
    export_dynamic_flag_spec_RC \
18879
    thread_safe_flag_spec_RC \
18880
    whole_archive_flag_spec_RC \
18881
    enable_shared_with_static_runtimes_RC \
18882
    old_archive_cmds_RC \
18883
    old_archive_from_new_cmds_RC \
18884
    predep_objects_RC \
18885
    postdep_objects_RC \
18886
    predeps_RC \
18887
    postdeps_RC \
18888
    compiler_lib_search_path_RC \
18889
    archive_cmds_RC \
18890
    archive_expsym_cmds_RC \
18891
    postinstall_cmds_RC \
18892
    postuninstall_cmds_RC \
18893
    old_archive_from_expsyms_cmds_RC \
18894
    allow_undefined_flag_RC \
18895
    no_undefined_flag_RC \
18896
    export_symbols_cmds_RC \
18897
    hardcode_libdir_flag_spec_RC \
18898
    hardcode_libdir_flag_spec_ld_RC \
18899
    hardcode_libdir_separator_RC \
18900
    hardcode_automatic_RC \
18901
    module_cmds_RC \
18902
    module_expsym_cmds_RC \
18903
    lt_cv_prog_compiler_c_o_RC \
18904
    exclude_expsyms_RC \
18905
    include_expsyms_RC; do
18906
 
18907
    case $var in
18908
    old_archive_cmds_RC | \
18909
    old_archive_from_new_cmds_RC | \
18910
    archive_cmds_RC | \
18911
    archive_expsym_cmds_RC | \
18912
    module_cmds_RC | \
18913
    module_expsym_cmds_RC | \
18914
    old_archive_from_expsyms_cmds_RC | \
18915
    export_symbols_cmds_RC | \
18916
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
18917
    postinstall_cmds | postuninstall_cmds | \
18918
    old_postinstall_cmds | old_postuninstall_cmds | \
18919
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18920
      # Double-quote double-evaled strings.
18921
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18922
      ;;
18923
    *)
18924
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18925
      ;;
18926
    esac
18927
  done
18928
 
18929
  case $lt_echo in
18930
  *'\$0 --fallback-echo"')
18931
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18932
    ;;
18933
  esac
18934
 
18935
cfgfile="$ofile"
18936
 
18937
  cat <<__EOF__ >> "$cfgfile"
18938
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18939
 
18940
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18941
 
18942
# Shell to use when invoking shell scripts.
18943
SHELL=$lt_SHELL
18944
 
18945
# Whether or not to build shared libraries.
18946
build_libtool_libs=$enable_shared
18947
 
18948
# Whether or not to build static libraries.
18949
build_old_libs=$enable_static
18950
 
18951
# Whether or not to add -lc for building shared libraries.
18952
build_libtool_need_lc=$archive_cmds_need_lc_RC
18953
 
18954
# Whether or not to disallow shared libs when runtime libs are static
18955
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18956
 
18957
# Whether or not to optimize for fast installation.
18958
fast_install=$enable_fast_install
18959
 
18960
# The host system.
18961
host_alias=$host_alias
18962
host=$host
18963
 
18964
# An echo program that does not interpret backslashes.
18965
echo=$lt_echo
18966
 
18967
# The archiver.
18968
AR=$lt_AR
18969
AR_FLAGS=$lt_AR_FLAGS
18970
 
18971
# A C compiler.
18972
LTCC=$lt_LTCC
18973
 
18974
# A language-specific compiler.
18975
CC=$lt_compiler_RC
18976
 
18977
# Is the compiler the GNU C compiler?
18978
with_gcc=$GCC_RC
18979
 
18980
# An ERE matcher.
18981
EGREP=$lt_EGREP
18982
 
18983
# The linker used to build libraries.
18984
LD=$lt_LD_RC
18985
 
18986
# Whether we need hard or soft links.
18987
LN_S=$lt_LN_S
18988
 
18989
# A BSD-compatible nm program.
18990
NM=$lt_NM
18991
 
18992
# A symbol stripping program
18993
STRIP=$STRIP
18994
 
18995
# Used to examine libraries when file_magic_cmd begins "file"
18996
MAGIC_CMD=$MAGIC_CMD
18997
 
18998
# Used on cygwin: DLL creation program.
18999
DLLTOOL="$DLLTOOL"
19000
 
19001
# Used on cygwin: object dumper.
19002
OBJDUMP="$OBJDUMP"
19003
 
19004
# Used on cygwin: assembler.
19005
AS="$AS"
19006
 
19007
# The name of the directory that contains temporary libtool files.
19008
objdir=$objdir
19009
 
19010
# How to create reloadable object files.
19011
reload_flag=$lt_reload_flag
19012
reload_cmds=$lt_reload_cmds
19013
 
19014
# How to pass a linker flag through the compiler.
19015
wl=$lt_lt_prog_compiler_wl_RC
19016
 
19017
# Object file suffix (normally "o").
19018
objext="$ac_objext"
19019
 
19020
# Old archive suffix (normally "a").
19021
libext="$libext"
19022
 
19023
# Shared library suffix (normally ".so").
19024
shrext='$shrext'
19025
 
19026
# Executable file suffix (normally "").
19027
exeext="$exeext"
19028
 
19029
# Additional compiler flags for building library objects.
19030
pic_flag=$lt_lt_prog_compiler_pic_RC
19031
pic_mode=$pic_mode
19032
 
19033
# What is the maximum length of a command?
19034
max_cmd_len=$lt_cv_sys_max_cmd_len
19035
 
19036
# Does compiler simultaneously support -c and -o options?
19037
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19038
 
19039
# Must we lock files when doing compilation ?
19040
need_locks=$lt_need_locks
19041
 
19042
# Do we need the lib prefix for modules?
19043
need_lib_prefix=$need_lib_prefix
19044
 
19045
# Do we need a version for libraries?
19046
need_version=$need_version
19047
 
19048
# Whether dlopen is supported.
19049
dlopen_support=$enable_dlopen
19050
 
19051
# Whether dlopen of programs is supported.
19052
dlopen_self=$enable_dlopen_self
19053
 
19054
# Whether dlopen of statically linked programs is supported.
19055
dlopen_self_static=$enable_dlopen_self_static
19056
 
19057
# Compiler flag to prevent dynamic linking.
19058
link_static_flag=$lt_lt_prog_compiler_static_RC
19059
 
19060
# Compiler flag to turn off builtin functions.
19061
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19062
 
19063
# Compiler flag to allow reflexive dlopens.
19064
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19065
 
19066
# Compiler flag to generate shared objects directly from archives.
19067
whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19068
 
19069
# Compiler flag to generate thread-safe objects.
19070
thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19071
 
19072
# Library versioning type.
19073
version_type=$version_type
19074
 
19075
# Format of library name prefix.
19076
libname_spec=$lt_libname_spec
19077
 
19078
# List of archive names.  First name is the real one, the rest are links.
19079
# The last name is the one that the linker finds with -lNAME.
19080
library_names_spec=$lt_library_names_spec
19081
 
19082
# The coded name of the library, if different from the real name.
19083
soname_spec=$lt_soname_spec
19084
 
19085
# Commands used to build and install an old-style archive.
19086
RANLIB=$lt_RANLIB
19087
old_archive_cmds=$lt_old_archive_cmds_RC
19088
old_postinstall_cmds=$lt_old_postinstall_cmds
19089
old_postuninstall_cmds=$lt_old_postuninstall_cmds
19090
 
19091
# Create an old-style archive from a shared archive.
19092
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19093
 
19094
# Create a temporary old-style archive to link instead of a shared archive.
19095
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19096
 
19097
# Commands used to build and install a shared archive.
19098
archive_cmds=$lt_archive_cmds_RC
19099
archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19100
postinstall_cmds=$lt_postinstall_cmds
19101
postuninstall_cmds=$lt_postuninstall_cmds
19102
 
19103
# Commands used to build a loadable module (assumed same as above if empty)
19104
module_cmds=$lt_module_cmds_RC
19105
module_expsym_cmds=$lt_module_expsym_cmds_RC
19106
 
19107
# Commands to strip libraries.
19108
old_striplib=$lt_old_striplib
19109
striplib=$lt_striplib
19110
 
19111
# Dependencies to place before the objects being linked to create a
19112
# shared library.
19113
predep_objects=$lt_predep_objects_RC
19114
 
19115
# Dependencies to place after the objects being linked to create a
19116
# shared library.
19117
postdep_objects=$lt_postdep_objects_RC
19118
 
19119
# Dependencies to place before the objects being linked to create a
19120
# shared library.
19121
predeps=$lt_predeps_RC
19122
 
19123
# Dependencies to place after the objects being linked to create a
19124
# shared library.
19125
postdeps=$lt_postdeps_RC
19126
 
19127
# The library search path used internally by the compiler when linking
19128
# a shared library.
19129
compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19130
 
19131
# Method to check whether dependent libraries are shared objects.
19132
deplibs_check_method=$lt_deplibs_check_method
19133
 
19134
# Command to use when deplibs_check_method == file_magic.
19135
file_magic_cmd=$lt_file_magic_cmd
19136
 
19137
# Flag that allows shared libraries with undefined symbols to be built.
19138
allow_undefined_flag=$lt_allow_undefined_flag_RC
19139
 
19140
# Flag that forces no undefined symbols.
19141
no_undefined_flag=$lt_no_undefined_flag_RC
19142
 
19143
# Commands used to finish a libtool library installation in a directory.
19144
finish_cmds=$lt_finish_cmds
19145
 
19146
# Same as above, but a single script fragment to be evaled but not shown.
19147
finish_eval=$lt_finish_eval
19148
 
19149
# Take the output of nm and produce a listing of raw symbols and C names.
19150
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19151
 
19152
# Transform the output of nm in a proper C declaration
19153
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19154
 
19155
# Transform the output of nm in a C name address pair
19156
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19157
 
19158
# This is the shared library runtime path variable.
19159
runpath_var=$runpath_var
19160
 
19161
# This is the shared library path variable.
19162
shlibpath_var=$shlibpath_var
19163
 
19164
# Is shlibpath searched before the hard-coded library search path?
19165
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19166
 
19167
# How to hardcode a shared library path into an executable.
19168
hardcode_action=$hardcode_action_RC
19169
 
19170
# Whether we should hardcode library paths into libraries.
19171
hardcode_into_libs=$hardcode_into_libs
19172
 
19173
# Flag to hardcode \$libdir into a binary during linking.
19174
# This must work even if \$libdir does not exist.
19175
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19176
 
19177
# If ld is used when linking, flag to hardcode \$libdir into
19178
# a binary during linking. This must work even if \$libdir does
19179
# not exist.
19180
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19181
 
19182
# Whether we need a single -rpath flag with a separated argument.
19183
hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19184
 
19185
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19186
# resulting binary.
19187
hardcode_direct=$hardcode_direct_RC
19188
 
19189
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19190
# resulting binary.
19191
hardcode_minus_L=$hardcode_minus_L_RC
19192
 
19193
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19194
# the resulting binary.
19195
hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19196
 
19197
# Set to yes if building a shared library automatically hardcodes DIR into the library
19198
# and all subsequent libraries and executables linked against it.
19199
hardcode_automatic=$hardcode_automatic_RC
19200
 
19201
# Variables whose values should be saved in libtool wrapper scripts and
19202
# restored at relink time.
19203
variables_saved_for_relink="$variables_saved_for_relink"
19204
 
19205
# Whether libtool must link a program against all its dependency libraries.
19206
link_all_deplibs=$link_all_deplibs_RC
19207
 
19208
# Compile-time system search path for libraries
19209
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19210
 
19211
# Run-time system search path for libraries
19212
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19213
 
19214
# Fix the shell variable \$srcfile for the compiler.
19215
fix_srcfile_path="$fix_srcfile_path_RC"
19216
 
19217
# Set to yes if exported symbols are required.
19218
always_export_symbols=$always_export_symbols_RC
19219
 
19220
# The commands to list exported symbols.
19221
export_symbols_cmds=$lt_export_symbols_cmds_RC
19222
 
19223
# The commands to extract the exported symbol list from a shared archive.
19224
extract_expsyms_cmds=$lt_extract_expsyms_cmds
19225
 
19226
# Symbols that should not be listed in the preloaded symbols.
19227
exclude_expsyms=$lt_exclude_expsyms_RC
19228
 
19229
# Symbols that must always be exported.
19230
include_expsyms=$lt_include_expsyms_RC
19231
 
19232
# ### END LIBTOOL TAG CONFIG: $tagname
19233
 
19234
__EOF__
19235
 
19236
 
19237
else
19238
  # If there is no Makefile yet, we rely on a make rule to execute
19239
  # `config.status --recheck' to rerun these tests and create the
19240
  # libtool script then.
19241
  test -f Makefile && make "$ltmain"
19242
fi
19243
 
19244
 
19245
ac_ext=c
19246
ac_cpp='$CPP $CPPFLAGS'
19247
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19248
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19249
ac_compiler_gnu=$ac_cv_c_compiler_gnu
19250
 
19251
CC="$lt_save_CC"
19252
 
19253
        ;;
19254
 
19255
      *)
19256
        { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19257
echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19258
   { (exit 1); exit 1; }; }
19259
        ;;
19260
      esac
19261
 
19262
      # Append the new tag name to the list of available tags.
19263
      if test -n "$tagname" ; then
19264
      available_tags="$available_tags $tagname"
19265
    fi
19266
    fi
19267
  done
19268
  IFS="$lt_save_ifs"
19269
 
19270
  # Now substitute the updated list of available tags.
19271
  if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19272
    mv "${ofile}T" "$ofile"
19273
    chmod +x "$ofile"
19274
  else
19275
    rm -f "${ofile}T"
19276
    { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19277
echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19278
   { (exit 1); exit 1; }; }
19279
  fi
19280
fi
19281
 
19282
 
19283
 
19284
# This can be used to rebuild libtool when needed
19285
LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19286
 
19287
# Always use our own libtool.
19288
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19289
 
19290
# Prevent multiple expansion
19291
 
19292
 
19293
 
19294
 
19295
 
19296
 
19297
 
19298
 
19299
 
19300
 
19301
 
19302
 
19303
 
19304
 
19305
 
19306
 
19307
 
19308
 
19309
 
19310
 
19311
 
19312
 
19313
 
19314
 
19315
 
19316
 
19317
 
19318
ac_header_dirent=no
19319
for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
19320
  as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
19321
echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
19322
echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
19323
if eval "test \"\${$as_ac_Header+set}\" = set"; then
19324
  echo $ECHO_N "(cached) $ECHO_C" >&6
19325
else
19326
  cat >conftest.$ac_ext <<_ACEOF
19327
/* confdefs.h.  */
19328
_ACEOF
19329
cat confdefs.h >>conftest.$ac_ext
19330
cat >>conftest.$ac_ext <<_ACEOF
19331
/* end confdefs.h.  */
19332
#include 
19333
#include <$ac_hdr>
19334
 
19335
int
19336
main ()
19337
{
19338
if ((DIR *) 0)
19339
return 0;
19340
  ;
19341
  return 0;
19342
}
19343
_ACEOF
19344
rm -f conftest.$ac_objext
19345
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19346
  (eval $ac_compile) 2>conftest.er1
19347
  ac_status=$?
19348
  grep -v '^ *+' conftest.er1 >conftest.err
19349
  rm -f conftest.er1
19350
  cat conftest.err >&5
19351
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19352
  (exit $ac_status); } &&
19353
         { ac_try='test -z "$ac_c_werror_flag"
19354
                         || test ! -s conftest.err'
19355
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19356
  (eval $ac_try) 2>&5
19357
  ac_status=$?
19358
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19359
  (exit $ac_status); }; } &&
19360
         { ac_try='test -s conftest.$ac_objext'
19361
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19362
  (eval $ac_try) 2>&5
19363
  ac_status=$?
19364
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19365
  (exit $ac_status); }; }; then
19366
  eval "$as_ac_Header=yes"
19367
else
19368
  echo "$as_me: failed program was:" >&5
19369
sed 's/^/| /' conftest.$ac_ext >&5
19370
 
19371
eval "$as_ac_Header=no"
19372
fi
19373
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19374
fi
19375
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19376
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19377
if test `eval echo '${'$as_ac_Header'}'` = yes; then
19378
  cat >>confdefs.h <<_ACEOF
19379
#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
19380
_ACEOF
19381
 
19382
ac_header_dirent=$ac_hdr; break
19383
fi
19384
 
19385
done
19386
# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
19387
if test $ac_header_dirent = dirent.h; then
19388
  echo "$as_me:$LINENO: checking for library containing opendir" >&5
19389
echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
19390
if test "${ac_cv_search_opendir+set}" = set; then
19391
  echo $ECHO_N "(cached) $ECHO_C" >&6
19392
else
19393
  ac_func_search_save_LIBS=$LIBS
19394
ac_cv_search_opendir=no
19395
cat >conftest.$ac_ext <<_ACEOF
19396
/* confdefs.h.  */
19397
_ACEOF
19398
cat confdefs.h >>conftest.$ac_ext
19399
cat >>conftest.$ac_ext <<_ACEOF
19400
/* end confdefs.h.  */
19401
 
19402
/* Override any gcc2 internal prototype to avoid an error.  */
19403
#ifdef __cplusplus
19404
extern "C"
19405
#endif
19406
/* We use char because int might match the return type of a gcc2
19407
   builtin and then its argument prototype would still apply.  */
19408
char opendir ();
19409
int
19410
main ()
19411
{
19412
opendir ();
19413
  ;
19414
  return 0;
19415
}
19416
_ACEOF
19417
rm -f conftest.$ac_objext conftest$ac_exeext
19418
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19419
  (eval $ac_link) 2>conftest.er1
19420
  ac_status=$?
19421
  grep -v '^ *+' conftest.er1 >conftest.err
19422
  rm -f conftest.er1
19423
  cat conftest.err >&5
19424
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19425
  (exit $ac_status); } &&
19426
         { ac_try='test -z "$ac_c_werror_flag"
19427
                         || test ! -s conftest.err'
19428
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19429
  (eval $ac_try) 2>&5
19430
  ac_status=$?
19431
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19432
  (exit $ac_status); }; } &&
19433
         { ac_try='test -s conftest$ac_exeext'
19434
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19435
  (eval $ac_try) 2>&5
19436
  ac_status=$?
19437
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19438
  (exit $ac_status); }; }; then
19439
  ac_cv_search_opendir="none required"
19440
else
19441
  echo "$as_me: failed program was:" >&5
19442
sed 's/^/| /' conftest.$ac_ext >&5
19443
 
19444
fi
19445
rm -f conftest.err conftest.$ac_objext \
19446
      conftest$ac_exeext conftest.$ac_ext
19447
if test "$ac_cv_search_opendir" = no; then
19448
  for ac_lib in dir; do
19449
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19450
    cat >conftest.$ac_ext <<_ACEOF
19451
/* confdefs.h.  */
19452
_ACEOF
19453
cat confdefs.h >>conftest.$ac_ext
19454
cat >>conftest.$ac_ext <<_ACEOF
19455
/* end confdefs.h.  */
19456
 
19457
/* Override any gcc2 internal prototype to avoid an error.  */
19458
#ifdef __cplusplus
19459
extern "C"
19460
#endif
19461
/* We use char because int might match the return type of a gcc2
19462
   builtin and then its argument prototype would still apply.  */
19463
char opendir ();
19464
int
19465
main ()
19466
{
19467
opendir ();
19468
  ;
19469
  return 0;
19470
}
19471
_ACEOF
19472
rm -f conftest.$ac_objext conftest$ac_exeext
19473
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19474
  (eval $ac_link) 2>conftest.er1
19475
  ac_status=$?
19476
  grep -v '^ *+' conftest.er1 >conftest.err
19477
  rm -f conftest.er1
19478
  cat conftest.err >&5
19479
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19480
  (exit $ac_status); } &&
19481
         { ac_try='test -z "$ac_c_werror_flag"
19482
                         || test ! -s conftest.err'
19483
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19484
  (eval $ac_try) 2>&5
19485
  ac_status=$?
19486
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19487
  (exit $ac_status); }; } &&
19488
         { ac_try='test -s conftest$ac_exeext'
19489
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19490
  (eval $ac_try) 2>&5
19491
  ac_status=$?
19492
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19493
  (exit $ac_status); }; }; then
19494
  ac_cv_search_opendir="-l$ac_lib"
19495
break
19496
else
19497
  echo "$as_me: failed program was:" >&5
19498
sed 's/^/| /' conftest.$ac_ext >&5
19499
 
19500
fi
19501
rm -f conftest.err conftest.$ac_objext \
19502
      conftest$ac_exeext conftest.$ac_ext
19503
  done
19504
fi
19505
LIBS=$ac_func_search_save_LIBS
19506
fi
19507
echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
19508
echo "${ECHO_T}$ac_cv_search_opendir" >&6
19509
if test "$ac_cv_search_opendir" != no; then
19510
  test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
19511
 
19512
fi
19513
 
19514
else
19515
  echo "$as_me:$LINENO: checking for library containing opendir" >&5
19516
echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
19517
if test "${ac_cv_search_opendir+set}" = set; then
19518
  echo $ECHO_N "(cached) $ECHO_C" >&6
19519
else
19520
  ac_func_search_save_LIBS=$LIBS
19521
ac_cv_search_opendir=no
19522
cat >conftest.$ac_ext <<_ACEOF
19523
/* confdefs.h.  */
19524
_ACEOF
19525
cat confdefs.h >>conftest.$ac_ext
19526
cat >>conftest.$ac_ext <<_ACEOF
19527
/* end confdefs.h.  */
19528
 
19529
/* Override any gcc2 internal prototype to avoid an error.  */
19530
#ifdef __cplusplus
19531
extern "C"
19532
#endif
19533
/* We use char because int might match the return type of a gcc2
19534
   builtin and then its argument prototype would still apply.  */
19535
char opendir ();
19536
int
19537
main ()
19538
{
19539
opendir ();
19540
  ;
19541
  return 0;
19542
}
19543
_ACEOF
19544
rm -f conftest.$ac_objext conftest$ac_exeext
19545
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19546
  (eval $ac_link) 2>conftest.er1
19547
  ac_status=$?
19548
  grep -v '^ *+' conftest.er1 >conftest.err
19549
  rm -f conftest.er1
19550
  cat conftest.err >&5
19551
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19552
  (exit $ac_status); } &&
19553
         { ac_try='test -z "$ac_c_werror_flag"
19554
                         || test ! -s conftest.err'
19555
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19556
  (eval $ac_try) 2>&5
19557
  ac_status=$?
19558
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19559
  (exit $ac_status); }; } &&
19560
         { ac_try='test -s conftest$ac_exeext'
19561
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19562
  (eval $ac_try) 2>&5
19563
  ac_status=$?
19564
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19565
  (exit $ac_status); }; }; then
19566
  ac_cv_search_opendir="none required"
19567
else
19568
  echo "$as_me: failed program was:" >&5
19569
sed 's/^/| /' conftest.$ac_ext >&5
19570
 
19571
fi
19572
rm -f conftest.err conftest.$ac_objext \
19573
      conftest$ac_exeext conftest.$ac_ext
19574
if test "$ac_cv_search_opendir" = no; then
19575
  for ac_lib in x; do
19576
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19577
    cat >conftest.$ac_ext <<_ACEOF
19578
/* confdefs.h.  */
19579
_ACEOF
19580
cat confdefs.h >>conftest.$ac_ext
19581
cat >>conftest.$ac_ext <<_ACEOF
19582
/* end confdefs.h.  */
19583
 
19584
/* Override any gcc2 internal prototype to avoid an error.  */
19585
#ifdef __cplusplus
19586
extern "C"
19587
#endif
19588
/* We use char because int might match the return type of a gcc2
19589
   builtin and then its argument prototype would still apply.  */
19590
char opendir ();
19591
int
19592
main ()
19593
{
19594
opendir ();
19595
  ;
19596
  return 0;
19597
}
19598
_ACEOF
19599
rm -f conftest.$ac_objext conftest$ac_exeext
19600
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19601
  (eval $ac_link) 2>conftest.er1
19602
  ac_status=$?
19603
  grep -v '^ *+' conftest.er1 >conftest.err
19604
  rm -f conftest.er1
19605
  cat conftest.err >&5
19606
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19607
  (exit $ac_status); } &&
19608
         { ac_try='test -z "$ac_c_werror_flag"
19609
                         || test ! -s conftest.err'
19610
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19611
  (eval $ac_try) 2>&5
19612
  ac_status=$?
19613
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19614
  (exit $ac_status); }; } &&
19615
         { ac_try='test -s conftest$ac_exeext'
19616
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19617
  (eval $ac_try) 2>&5
19618
  ac_status=$?
19619
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19620
  (exit $ac_status); }; }; then
19621
  ac_cv_search_opendir="-l$ac_lib"
19622
break
19623
else
19624
  echo "$as_me: failed program was:" >&5
19625
sed 's/^/| /' conftest.$ac_ext >&5
19626
 
19627
fi
19628
rm -f conftest.err conftest.$ac_objext \
19629
      conftest$ac_exeext conftest.$ac_ext
19630
  done
19631
fi
19632
LIBS=$ac_func_search_save_LIBS
19633
fi
19634
echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
19635
echo "${ECHO_T}$ac_cv_search_opendir" >&6
19636
if test "$ac_cv_search_opendir" != no; then
19637
  test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
19638
 
19639
fi
19640
 
19641
fi
19642
 
19643
# Check whether --enable-ltdl-install or --disable-ltdl-install was given.
19644
if test "${enable_ltdl_install+set}" = set; then
19645
  enableval="$enable_ltdl_install"
19646
 
19647
fi;
19648
 
19649
 
19650
 
19651
if test x"${enable_ltdl_install-no}" != xno; then
19652
  INSTALL_LTDL_TRUE=
19653
  INSTALL_LTDL_FALSE='#'
19654
else
19655
  INSTALL_LTDL_TRUE='#'
19656
  INSTALL_LTDL_FALSE=
19657
fi
19658
 
19659
 
19660
 
19661
if test x"${enable_ltdl_convenience-no}" != xno; then
19662
  CONVENIENCE_LTDL_TRUE=
19663
  CONVENIENCE_LTDL_FALSE='#'
19664
else
19665
  CONVENIENCE_LTDL_TRUE='#'
19666
  CONVENIENCE_LTDL_FALSE=
19667
fi
19668
 
19669
 
19670
 
19671
echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
19672
echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6
19673
if test "${libltdl_cv_shlibext+set}" = set; then
19674
  echo $ECHO_N "(cached) $ECHO_C" >&6
19675
else
19676
 
19677
# Here in libltdl for libgcj we don't build modules for darwin.
19678
# So we say no. Then the extension gets .dylib which is the right
19679
# thing for shared libraries on darwin.
19680
case "$host_os" in
19681
darwin*)
19682
        module=no
19683
        ;;
19684
*)
19685
        module=yes
19686
        ;;
19687
esac
19688
eval libltdl_cv_shlibext=$shrext
19689
 
19690
fi
19691
echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
19692
echo "${ECHO_T}$libltdl_cv_shlibext" >&6
19693
if test -n "$libltdl_cv_shlibext"; then
19694
 
19695
cat >>confdefs.h <<_ACEOF
19696
#define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
19697
_ACEOF
19698
 
19699
fi
19700
 
19701
 
19702
echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
19703
echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6
19704
if test "${libltdl_cv_shlibpath_var+set}" = set; then
19705
  echo $ECHO_N "(cached) $ECHO_C" >&6
19706
else
19707
  libltdl_cv_shlibpath_var="$shlibpath_var"
19708
fi
19709
echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
19710
echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6
19711
if test -n "$libltdl_cv_shlibpath_var"; then
19712
 
19713
cat >>confdefs.h <<_ACEOF
19714
#define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
19715
_ACEOF
19716
 
19717
fi
19718
 
19719
 
19720
echo "$as_me:$LINENO: checking for the default library search path" >&5
19721
echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6
19722
if test "${libltdl_cv_sys_search_path+set}" = set; then
19723
  echo $ECHO_N "(cached) $ECHO_C" >&6
19724
else
19725
  libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
19726
fi
19727
echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
19728
echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6
19729
if test -n "$libltdl_cv_sys_search_path"; then
19730
  sys_search_path=
19731
  for dir in $libltdl_cv_sys_search_path; do
19732
    if test -z "$sys_search_path"; then
19733
      sys_search_path="$dir"
19734
    else
19735
      sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
19736
    fi
19737
  done
19738
 
19739
cat >>confdefs.h <<_ACEOF
19740
#define LTDL_SYSSEARCHPATH "$sys_search_path"
19741
_ACEOF
19742
 
19743
fi
19744
 
19745
echo "$as_me:$LINENO: checking for objdir" >&5
19746
echo $ECHO_N "checking for objdir... $ECHO_C" >&6
19747
if test "${libltdl_cv_objdir+set}" = set; then
19748
  echo $ECHO_N "(cached) $ECHO_C" >&6
19749
else
19750
  libltdl_cv_objdir="$objdir"
19751
  if test -n "$objdir"; then
19752
    :
19753
  else
19754
    rm -f .libs 2>/dev/null
19755
    mkdir .libs 2>/dev/null
19756
    if test -d .libs; then
19757
      libltdl_cv_objdir=.libs
19758
    else
19759
      # MS-DOS does not allow filenames that begin with a dot.
19760
      libltdl_cv_objdir=_libs
19761
    fi
19762
  rmdir .libs 2>/dev/null
19763
  fi
19764
 
19765
fi
19766
echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
19767
echo "${ECHO_T}$libltdl_cv_objdir" >&6
19768
 
19769
cat >>confdefs.h <<_ACEOF
19770
#define LTDL_OBJDIR "$libltdl_cv_objdir/"
19771
_ACEOF
19772
 
19773
 
19774
 
19775
echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
19776
echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6
19777
if test "${libltdl_cv_preloaded_symbols+set}" = set; then
19778
  echo $ECHO_N "(cached) $ECHO_C" >&6
19779
else
19780
  if test -n "$lt_cv_sys_global_symbol_pipe"; then
19781
    libltdl_cv_preloaded_symbols=yes
19782
  else
19783
    libltdl_cv_preloaded_symbols=no
19784
  fi
19785
 
19786
fi
19787
echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
19788
echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6
19789
if test x"$libltdl_cv_preloaded_symbols" = xyes; then
19790
 
19791
cat >>confdefs.h <<\_ACEOF
19792
#define HAVE_PRELOADED_SYMBOLS 1
19793
_ACEOF
19794
 
19795
fi
19796
 
19797
LIBADD_DL=
19798
 
19799
ac_ext=c
19800
ac_cpp='$CPP $CPPFLAGS'
19801
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19802
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19803
ac_compiler_gnu=$ac_cv_c_compiler_gnu
19804
 
19805
 
19806
echo "$as_me:$LINENO: checking for shl_load" >&5
19807
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
19808
if test "${ac_cv_func_shl_load+set}" = set; then
19809
  echo $ECHO_N "(cached) $ECHO_C" >&6
19810
else
19811
  cat >conftest.$ac_ext <<_ACEOF
19812
/* confdefs.h.  */
19813
_ACEOF
19814
cat confdefs.h >>conftest.$ac_ext
19815
cat >>conftest.$ac_ext <<_ACEOF
19816
/* end confdefs.h.  */
19817
/* Define shl_load to an innocuous variant, in case  declares shl_load.
19818
   For example, HP-UX 11i  declares gettimeofday.  */
19819
#define shl_load innocuous_shl_load
19820
 
19821
/* System header to define __stub macros and hopefully few prototypes,
19822
    which can conflict with char shl_load (); below.
19823
    Prefer  to  if __STDC__ is defined, since
19824
     exists even on freestanding compilers.  */
19825
 
19826
#ifdef __STDC__
19827
# include 
19828
#else
19829
# include 
19830
#endif
19831
 
19832
#undef shl_load
19833
 
19834
/* Override any gcc2 internal prototype to avoid an error.  */
19835
#ifdef __cplusplus
19836
extern "C"
19837
{
19838
#endif
19839
/* We use char because int might match the return type of a gcc2
19840
   builtin and then its argument prototype would still apply.  */
19841
char shl_load ();
19842
/* The GNU C library defines this for functions which it implements
19843
    to always fail with ENOSYS.  Some functions are actually named
19844
    something starting with __ and the normal name is an alias.  */
19845
#if defined (__stub_shl_load) || defined (__stub___shl_load)
19846
choke me
19847
#else
19848
char (*f) () = shl_load;
19849
#endif
19850
#ifdef __cplusplus
19851
}
19852
#endif
19853
 
19854
int
19855
main ()
19856
{
19857
return f != shl_load;
19858
  ;
19859
  return 0;
19860
}
19861
_ACEOF
19862
rm -f conftest.$ac_objext conftest$ac_exeext
19863
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19864
  (eval $ac_link) 2>conftest.er1
19865
  ac_status=$?
19866
  grep -v '^ *+' conftest.er1 >conftest.err
19867
  rm -f conftest.er1
19868
  cat conftest.err >&5
19869
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19870
  (exit $ac_status); } &&
19871
         { ac_try='test -z "$ac_c_werror_flag"
19872
                         || test ! -s conftest.err'
19873
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19874
  (eval $ac_try) 2>&5
19875
  ac_status=$?
19876
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19877
  (exit $ac_status); }; } &&
19878
         { ac_try='test -s conftest$ac_exeext'
19879
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19880
  (eval $ac_try) 2>&5
19881
  ac_status=$?
19882
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19883
  (exit $ac_status); }; }; then
19884
  ac_cv_func_shl_load=yes
19885
else
19886
  echo "$as_me: failed program was:" >&5
19887
sed 's/^/| /' conftest.$ac_ext >&5
19888
 
19889
ac_cv_func_shl_load=no
19890
fi
19891
rm -f conftest.err conftest.$ac_objext \
19892
      conftest$ac_exeext conftest.$ac_ext
19893
fi
19894
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
19895
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
19896
if test $ac_cv_func_shl_load = yes; then
19897
 
19898
cat >>confdefs.h <<\_ACEOF
19899
#define HAVE_SHL_LOAD 1
19900
_ACEOF
19901
 
19902
else
19903
  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
19904
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
19905
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
19906
  echo $ECHO_N "(cached) $ECHO_C" >&6
19907
else
19908
  ac_check_lib_save_LIBS=$LIBS
19909
LIBS="-ldld  $LIBS"
19910
cat >conftest.$ac_ext <<_ACEOF
19911
/* confdefs.h.  */
19912
_ACEOF
19913
cat confdefs.h >>conftest.$ac_ext
19914
cat >>conftest.$ac_ext <<_ACEOF
19915
/* end confdefs.h.  */
19916
 
19917
/* Override any gcc2 internal prototype to avoid an error.  */
19918
#ifdef __cplusplus
19919
extern "C"
19920
#endif
19921
/* We use char because int might match the return type of a gcc2
19922
   builtin and then its argument prototype would still apply.  */
19923
char shl_load ();
19924
int
19925
main ()
19926
{
19927
shl_load ();
19928
  ;
19929
  return 0;
19930
}
19931
_ACEOF
19932
rm -f conftest.$ac_objext conftest$ac_exeext
19933
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19934
  (eval $ac_link) 2>conftest.er1
19935
  ac_status=$?
19936
  grep -v '^ *+' conftest.er1 >conftest.err
19937
  rm -f conftest.er1
19938
  cat conftest.err >&5
19939
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19940
  (exit $ac_status); } &&
19941
         { ac_try='test -z "$ac_c_werror_flag"
19942
                         || test ! -s conftest.err'
19943
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19944
  (eval $ac_try) 2>&5
19945
  ac_status=$?
19946
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19947
  (exit $ac_status); }; } &&
19948
         { ac_try='test -s conftest$ac_exeext'
19949
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19950
  (eval $ac_try) 2>&5
19951
  ac_status=$?
19952
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19953
  (exit $ac_status); }; }; then
19954
  ac_cv_lib_dld_shl_load=yes
19955
else
19956
  echo "$as_me: failed program was:" >&5
19957
sed 's/^/| /' conftest.$ac_ext >&5
19958
 
19959
ac_cv_lib_dld_shl_load=no
19960
fi
19961
rm -f conftest.err conftest.$ac_objext \
19962
      conftest$ac_exeext conftest.$ac_ext
19963
LIBS=$ac_check_lib_save_LIBS
19964
fi
19965
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
19966
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
19967
if test $ac_cv_lib_dld_shl_load = yes; then
19968
 
19969
cat >>confdefs.h <<\_ACEOF
19970
#define HAVE_SHL_LOAD 1
19971
_ACEOF
19972
 
19973
        LIBADD_DL="$LIBADD_DL -ldld"
19974
else
19975
  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
19976
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
19977
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
19978
  echo $ECHO_N "(cached) $ECHO_C" >&6
19979
else
19980
  ac_check_lib_save_LIBS=$LIBS
19981
LIBS="-ldl  $LIBS"
19982
cat >conftest.$ac_ext <<_ACEOF
19983
/* confdefs.h.  */
19984
_ACEOF
19985
cat confdefs.h >>conftest.$ac_ext
19986
cat >>conftest.$ac_ext <<_ACEOF
19987
/* end confdefs.h.  */
19988
 
19989
/* Override any gcc2 internal prototype to avoid an error.  */
19990
#ifdef __cplusplus
19991
extern "C"
19992
#endif
19993
/* We use char because int might match the return type of a gcc2
19994
   builtin and then its argument prototype would still apply.  */
19995
char dlopen ();
19996
int
19997
main ()
19998
{
19999
dlopen ();
20000
  ;
20001
  return 0;
20002
}
20003
_ACEOF
20004
rm -f conftest.$ac_objext conftest$ac_exeext
20005
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20006
  (eval $ac_link) 2>conftest.er1
20007
  ac_status=$?
20008
  grep -v '^ *+' conftest.er1 >conftest.err
20009
  rm -f conftest.er1
20010
  cat conftest.err >&5
20011
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20012
  (exit $ac_status); } &&
20013
         { ac_try='test -z "$ac_c_werror_flag"
20014
                         || test ! -s conftest.err'
20015
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20016
  (eval $ac_try) 2>&5
20017
  ac_status=$?
20018
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20019
  (exit $ac_status); }; } &&
20020
         { ac_try='test -s conftest$ac_exeext'
20021
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20022
  (eval $ac_try) 2>&5
20023
  ac_status=$?
20024
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20025
  (exit $ac_status); }; }; then
20026
  ac_cv_lib_dl_dlopen=yes
20027
else
20028
  echo "$as_me: failed program was:" >&5
20029
sed 's/^/| /' conftest.$ac_ext >&5
20030
 
20031
ac_cv_lib_dl_dlopen=no
20032
fi
20033
rm -f conftest.err conftest.$ac_objext \
20034
      conftest$ac_exeext conftest.$ac_ext
20035
LIBS=$ac_check_lib_save_LIBS
20036
fi
20037
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
20038
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
20039
if test $ac_cv_lib_dl_dlopen = yes; then
20040
 
20041
cat >>confdefs.h <<\_ACEOF
20042
#define HAVE_LIBDL 1
20043
_ACEOF
20044
 
20045
                LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
20046
else
20047
  cat >conftest.$ac_ext <<_ACEOF
20048
/* confdefs.h.  */
20049
_ACEOF
20050
cat confdefs.h >>conftest.$ac_ext
20051
cat >>conftest.$ac_ext <<_ACEOF
20052
/* end confdefs.h.  */
20053
#if HAVE_DLFCN_H
20054
#  include 
20055
#endif
20056
 
20057
int
20058
main ()
20059
{
20060
dlopen(0, 0);
20061
  ;
20062
  return 0;
20063
}
20064
_ACEOF
20065
rm -f conftest.$ac_objext conftest$ac_exeext
20066
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20067
  (eval $ac_link) 2>conftest.er1
20068
  ac_status=$?
20069
  grep -v '^ *+' conftest.er1 >conftest.err
20070
  rm -f conftest.er1
20071
  cat conftest.err >&5
20072
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20073
  (exit $ac_status); } &&
20074
         { ac_try='test -z "$ac_c_werror_flag"
20075
                         || test ! -s conftest.err'
20076
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20077
  (eval $ac_try) 2>&5
20078
  ac_status=$?
20079
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20080
  (exit $ac_status); }; } &&
20081
         { ac_try='test -s conftest$ac_exeext'
20082
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20083
  (eval $ac_try) 2>&5
20084
  ac_status=$?
20085
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20086
  (exit $ac_status); }; }; then
20087
 
20088
cat >>confdefs.h <<\_ACEOF
20089
#define HAVE_LIBDL 1
20090
_ACEOF
20091
 libltdl_cv_func_dlopen="yes"
20092
else
20093
  echo "$as_me: failed program was:" >&5
20094
sed 's/^/| /' conftest.$ac_ext >&5
20095
 
20096
echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
20097
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
20098
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
20099
  echo $ECHO_N "(cached) $ECHO_C" >&6
20100
else
20101
  ac_check_lib_save_LIBS=$LIBS
20102
LIBS="-lsvld  $LIBS"
20103
cat >conftest.$ac_ext <<_ACEOF
20104
/* confdefs.h.  */
20105
_ACEOF
20106
cat confdefs.h >>conftest.$ac_ext
20107
cat >>conftest.$ac_ext <<_ACEOF
20108
/* end confdefs.h.  */
20109
 
20110
/* Override any gcc2 internal prototype to avoid an error.  */
20111
#ifdef __cplusplus
20112
extern "C"
20113
#endif
20114
/* We use char because int might match the return type of a gcc2
20115
   builtin and then its argument prototype would still apply.  */
20116
char dlopen ();
20117
int
20118
main ()
20119
{
20120
dlopen ();
20121
  ;
20122
  return 0;
20123
}
20124
_ACEOF
20125
rm -f conftest.$ac_objext conftest$ac_exeext
20126
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20127
  (eval $ac_link) 2>conftest.er1
20128
  ac_status=$?
20129
  grep -v '^ *+' conftest.er1 >conftest.err
20130
  rm -f conftest.er1
20131
  cat conftest.err >&5
20132
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20133
  (exit $ac_status); } &&
20134
         { ac_try='test -z "$ac_c_werror_flag"
20135
                         || test ! -s conftest.err'
20136
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20137
  (eval $ac_try) 2>&5
20138
  ac_status=$?
20139
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20140
  (exit $ac_status); }; } &&
20141
         { ac_try='test -s conftest$ac_exeext'
20142
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20143
  (eval $ac_try) 2>&5
20144
  ac_status=$?
20145
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20146
  (exit $ac_status); }; }; then
20147
  ac_cv_lib_svld_dlopen=yes
20148
else
20149
  echo "$as_me: failed program was:" >&5
20150
sed 's/^/| /' conftest.$ac_ext >&5
20151
 
20152
ac_cv_lib_svld_dlopen=no
20153
fi
20154
rm -f conftest.err conftest.$ac_objext \
20155
      conftest$ac_exeext conftest.$ac_ext
20156
LIBS=$ac_check_lib_save_LIBS
20157
fi
20158
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
20159
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
20160
if test $ac_cv_lib_svld_dlopen = yes; then
20161
 
20162
cat >>confdefs.h <<\_ACEOF
20163
#define HAVE_LIBDL 1
20164
_ACEOF
20165
 
20166
                    LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
20167
else
20168
  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
20169
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
20170
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
20171
  echo $ECHO_N "(cached) $ECHO_C" >&6
20172
else
20173
  ac_check_lib_save_LIBS=$LIBS
20174
LIBS="-ldld  $LIBS"
20175
cat >conftest.$ac_ext <<_ACEOF
20176
/* confdefs.h.  */
20177
_ACEOF
20178
cat confdefs.h >>conftest.$ac_ext
20179
cat >>conftest.$ac_ext <<_ACEOF
20180
/* end confdefs.h.  */
20181
 
20182
/* Override any gcc2 internal prototype to avoid an error.  */
20183
#ifdef __cplusplus
20184
extern "C"
20185
#endif
20186
/* We use char because int might match the return type of a gcc2
20187
   builtin and then its argument prototype would still apply.  */
20188
char dld_link ();
20189
int
20190
main ()
20191
{
20192
dld_link ();
20193
  ;
20194
  return 0;
20195
}
20196
_ACEOF
20197
rm -f conftest.$ac_objext conftest$ac_exeext
20198
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20199
  (eval $ac_link) 2>conftest.er1
20200
  ac_status=$?
20201
  grep -v '^ *+' conftest.er1 >conftest.err
20202
  rm -f conftest.er1
20203
  cat conftest.err >&5
20204
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20205
  (exit $ac_status); } &&
20206
         { ac_try='test -z "$ac_c_werror_flag"
20207
                         || test ! -s conftest.err'
20208
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20209
  (eval $ac_try) 2>&5
20210
  ac_status=$?
20211
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20212
  (exit $ac_status); }; } &&
20213
         { ac_try='test -s conftest$ac_exeext'
20214
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20215
  (eval $ac_try) 2>&5
20216
  ac_status=$?
20217
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20218
  (exit $ac_status); }; }; then
20219
  ac_cv_lib_dld_dld_link=yes
20220
else
20221
  echo "$as_me: failed program was:" >&5
20222
sed 's/^/| /' conftest.$ac_ext >&5
20223
 
20224
ac_cv_lib_dld_dld_link=no
20225
fi
20226
rm -f conftest.err conftest.$ac_objext \
20227
      conftest$ac_exeext conftest.$ac_ext
20228
LIBS=$ac_check_lib_save_LIBS
20229
fi
20230
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
20231
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
20232
if test $ac_cv_lib_dld_dld_link = yes; then
20233
 
20234
cat >>confdefs.h <<\_ACEOF
20235
#define HAVE_DLD 1
20236
_ACEOF
20237
 
20238
                LIBADD_DL="$LIBADD_DL -ldld"
20239
else
20240
  echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
20241
echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6
20242
if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
20243
  echo $ECHO_N "(cached) $ECHO_C" >&6
20244
else
20245
  cat >conftest.$ac_ext <<_ACEOF
20246
/* confdefs.h.  */
20247
_ACEOF
20248
cat confdefs.h >>conftest.$ac_ext
20249
cat >>conftest.$ac_ext <<_ACEOF
20250
/* end confdefs.h.  */
20251
/* Define _dyld_func_lookup to an innocuous variant, in case  declares _dyld_func_lookup.
20252
   For example, HP-UX 11i  declares gettimeofday.  */
20253
#define _dyld_func_lookup innocuous__dyld_func_lookup
20254
 
20255
/* System header to define __stub macros and hopefully few prototypes,
20256
    which can conflict with char _dyld_func_lookup (); below.
20257
    Prefer  to  if __STDC__ is defined, since
20258
     exists even on freestanding compilers.  */
20259
 
20260
#ifdef __STDC__
20261
# include 
20262
#else
20263
# include 
20264
#endif
20265
 
20266
#undef _dyld_func_lookup
20267
 
20268
/* Override any gcc2 internal prototype to avoid an error.  */
20269
#ifdef __cplusplus
20270
extern "C"
20271
{
20272
#endif
20273
/* We use char because int might match the return type of a gcc2
20274
   builtin and then its argument prototype would still apply.  */
20275
char _dyld_func_lookup ();
20276
/* The GNU C library defines this for functions which it implements
20277
    to always fail with ENOSYS.  Some functions are actually named
20278
    something starting with __ and the normal name is an alias.  */
20279
#if defined (__stub__dyld_func_lookup) || defined (__stub____dyld_func_lookup)
20280
choke me
20281
#else
20282
char (*f) () = _dyld_func_lookup;
20283
#endif
20284
#ifdef __cplusplus
20285
}
20286
#endif
20287
 
20288
int
20289
main ()
20290
{
20291
return f != _dyld_func_lookup;
20292
  ;
20293
  return 0;
20294
}
20295
_ACEOF
20296
rm -f conftest.$ac_objext conftest$ac_exeext
20297
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20298
  (eval $ac_link) 2>conftest.er1
20299
  ac_status=$?
20300
  grep -v '^ *+' conftest.er1 >conftest.err
20301
  rm -f conftest.er1
20302
  cat conftest.err >&5
20303
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20304
  (exit $ac_status); } &&
20305
         { ac_try='test -z "$ac_c_werror_flag"
20306
                         || test ! -s conftest.err'
20307
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20308
  (eval $ac_try) 2>&5
20309
  ac_status=$?
20310
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20311
  (exit $ac_status); }; } &&
20312
         { ac_try='test -s conftest$ac_exeext'
20313
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20314
  (eval $ac_try) 2>&5
20315
  ac_status=$?
20316
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20317
  (exit $ac_status); }; }; then
20318
  ac_cv_func__dyld_func_lookup=yes
20319
else
20320
  echo "$as_me: failed program was:" >&5
20321
sed 's/^/| /' conftest.$ac_ext >&5
20322
 
20323
ac_cv_func__dyld_func_lookup=no
20324
fi
20325
rm -f conftest.err conftest.$ac_objext \
20326
      conftest$ac_exeext conftest.$ac_ext
20327
fi
20328
echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
20329
echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6
20330
if test $ac_cv_func__dyld_func_lookup = yes; then
20331
 
20332
cat >>confdefs.h <<\_ACEOF
20333
#define HAVE_DYLD 1
20334
_ACEOF
20335
 
20336
fi
20337
 
20338
 
20339
fi
20340
 
20341
 
20342
fi
20343
 
20344
 
20345
fi
20346
rm -f conftest.err conftest.$ac_objext \
20347
      conftest$ac_exeext conftest.$ac_ext
20348
 
20349
fi
20350
 
20351
 
20352
fi
20353
 
20354
 
20355
fi
20356
 
20357
 
20358
if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
20359
then
20360
  lt_save_LIBS="$LIBS"
20361
  LIBS="$LIBS $LIBADD_DL"
20362
 
20363
for ac_func in dlerror
20364
do
20365
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20366
echo "$as_me:$LINENO: checking for $ac_func" >&5
20367
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20368
if eval "test \"\${$as_ac_var+set}\" = set"; then
20369
  echo $ECHO_N "(cached) $ECHO_C" >&6
20370
else
20371
  cat >conftest.$ac_ext <<_ACEOF
20372
/* confdefs.h.  */
20373
_ACEOF
20374
cat confdefs.h >>conftest.$ac_ext
20375
cat >>conftest.$ac_ext <<_ACEOF
20376
/* end confdefs.h.  */
20377
/* Define $ac_func to an innocuous variant, in case  declares $ac_func.
20378
   For example, HP-UX 11i  declares gettimeofday.  */
20379
#define $ac_func innocuous_$ac_func
20380
 
20381
/* System header to define __stub macros and hopefully few prototypes,
20382
    which can conflict with char $ac_func (); below.
20383
    Prefer  to  if __STDC__ is defined, since
20384
     exists even on freestanding compilers.  */
20385
 
20386
#ifdef __STDC__
20387
# include 
20388
#else
20389
# include 
20390
#endif
20391
 
20392
#undef $ac_func
20393
 
20394
/* Override any gcc2 internal prototype to avoid an error.  */
20395
#ifdef __cplusplus
20396
extern "C"
20397
{
20398
#endif
20399
/* We use char because int might match the return type of a gcc2
20400
   builtin and then its argument prototype would still apply.  */
20401
char $ac_func ();
20402
/* The GNU C library defines this for functions which it implements
20403
    to always fail with ENOSYS.  Some functions are actually named
20404
    something starting with __ and the normal name is an alias.  */
20405
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20406
choke me
20407
#else
20408
char (*f) () = $ac_func;
20409
#endif
20410
#ifdef __cplusplus
20411
}
20412
#endif
20413
 
20414
int
20415
main ()
20416
{
20417
return f != $ac_func;
20418
  ;
20419
  return 0;
20420
}
20421
_ACEOF
20422
rm -f conftest.$ac_objext conftest$ac_exeext
20423
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20424
  (eval $ac_link) 2>conftest.er1
20425
  ac_status=$?
20426
  grep -v '^ *+' conftest.er1 >conftest.err
20427
  rm -f conftest.er1
20428
  cat conftest.err >&5
20429
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20430
  (exit $ac_status); } &&
20431
         { ac_try='test -z "$ac_c_werror_flag"
20432
                         || test ! -s conftest.err'
20433
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20434
  (eval $ac_try) 2>&5
20435
  ac_status=$?
20436
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20437
  (exit $ac_status); }; } &&
20438
         { ac_try='test -s conftest$ac_exeext'
20439
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20440
  (eval $ac_try) 2>&5
20441
  ac_status=$?
20442
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20443
  (exit $ac_status); }; }; then
20444
  eval "$as_ac_var=yes"
20445
else
20446
  echo "$as_me: failed program was:" >&5
20447
sed 's/^/| /' conftest.$ac_ext >&5
20448
 
20449
eval "$as_ac_var=no"
20450
fi
20451
rm -f conftest.err conftest.$ac_objext \
20452
      conftest$ac_exeext conftest.$ac_ext
20453
fi
20454
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20455
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20456
if test `eval echo '${'$as_ac_var'}'` = yes; then
20457
  cat >>confdefs.h <<_ACEOF
20458
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20459
_ACEOF
20460
 
20461
fi
20462
done
20463
 
20464
  LIBS="$lt_save_LIBS"
20465
fi
20466
ac_ext=c
20467
ac_cpp='$CPP $CPPFLAGS'
20468
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20469
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20470
ac_compiler_gnu=$ac_cv_c_compiler_gnu
20471
 
20472
 
20473
 
20474
echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
20475
echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6
20476
if test "${ac_cv_sys_symbol_underscore+set}" = set; then
20477
  echo $ECHO_N "(cached) $ECHO_C" >&6
20478
else
20479
  ac_cv_sys_symbol_underscore=no
20480
  cat > conftest.$ac_ext <
20481
void nm_test_func(){}
20482
int main(){nm_test_func;return 0;}
20483
EOF
20484
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20485
  (eval $ac_compile) 2>&5
20486
  ac_status=$?
20487
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20488
  (exit $ac_status); }; then
20489
    # Now try to grab the symbols.
20490
    ac_nlist=conftest.nm
20491
    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
20492
  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
20493
  ac_status=$?
20494
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20495
  (exit $ac_status); } && test -s "$ac_nlist"; then
20496
      # See whether the symbols have a leading underscore.
20497
      if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
20498
        ac_cv_sys_symbol_underscore=yes
20499
      else
20500
        if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
20501
          :
20502
        else
20503
          echo "configure: cannot find nm_test_func in $ac_nlist" >&5
20504
        fi
20505
      fi
20506
    else
20507
      echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
20508
    fi
20509
  else
20510
    echo "configure: failed program was:" >&5
20511
    cat conftest.c >&5
20512
  fi
20513
  rm -rf conftest*
20514
 
20515
fi
20516
echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
20517
echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6
20518
 
20519
 
20520
if test x"$ac_cv_sys_symbol_underscore" = xyes; then
20521
  if test x"$libltdl_cv_func_dlopen" = xyes ||
20522
     test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
20523
        echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
20524
echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6
20525
if test "${libltdl_cv_need_uscore+set}" = set; then
20526
  echo $ECHO_N "(cached) $ECHO_C" >&6
20527
else
20528
  libltdl_cv_need_uscore=unknown
20529
          save_LIBS="$LIBS"
20530
          LIBS="$LIBS $LIBADD_DL"
20531
          if test "$cross_compiling" = yes; then :
20532
  libltdl_cv_need_uscore=cross
20533
else
20534
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
20535
  lt_status=$lt_dlunknown
20536
  cat > conftest.$ac_ext <
20537
#line 20537 "configure"
20538
#include "confdefs.h"
20539
 
20540
#if HAVE_DLFCN_H
20541
#include 
20542
#endif
20543
 
20544
#include 
20545
 
20546
#ifdef RTLD_GLOBAL
20547
#  define LT_DLGLOBAL           RTLD_GLOBAL
20548
#else
20549
#  ifdef DL_GLOBAL
20550
#    define LT_DLGLOBAL         DL_GLOBAL
20551
#  else
20552
#    define LT_DLGLOBAL         0
20553
#  endif
20554
#endif
20555
 
20556
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
20557
   find out it does not work in some platform. */
20558
#ifndef LT_DLLAZY_OR_NOW
20559
#  ifdef RTLD_LAZY
20560
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
20561
#  else
20562
#    ifdef DL_LAZY
20563
#      define LT_DLLAZY_OR_NOW          DL_LAZY
20564
#    else
20565
#      ifdef RTLD_NOW
20566
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
20567
#      else
20568
#        ifdef DL_NOW
20569
#          define LT_DLLAZY_OR_NOW      DL_NOW
20570
#        else
20571
#          define LT_DLLAZY_OR_NOW      0
20572
#        endif
20573
#      endif
20574
#    endif
20575
#  endif
20576
#endif
20577
 
20578
#ifdef __cplusplus
20579
extern "C" void exit (int);
20580
#endif
20581
 
20582
void fnord() { int i=42;}
20583
int main ()
20584
{
20585
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
20586
  int status = $lt_dlunknown;
20587
 
20588
  if (self)
20589
    {
20590
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
20591
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
20592
      /* dlclose (self); */
20593
    }
20594
 
20595
    exit (status);
20596
}
20597
EOF
20598
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20599
  (eval $ac_link) 2>&5
20600
  ac_status=$?
20601
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20602
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
20603
    (./conftest; exit; ) 2>/dev/null
20604
    lt_status=$?
20605
    case x$lt_status in
20606
      x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
20607
      x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
20608
      x$lt_unknown|x*)  ;;
20609
    esac
20610
  else :
20611
    # compilation failed
20612
 
20613
  fi
20614
fi
20615
rm -fr conftest*
20616
 
20617
          LIBS="$save_LIBS"
20618
 
20619
fi
20620
echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
20621
echo "${ECHO_T}$libltdl_cv_need_uscore" >&6
20622
  fi
20623
fi
20624
 
20625
if test x"$libltdl_cv_need_uscore" = xyes; then
20626
 
20627
cat >>confdefs.h <<\_ACEOF
20628
#define NEED_USCORE 1
20629
_ACEOF
20630
 
20631
fi
20632
 
20633
 
20634
echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
20635
echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6
20636
if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
20637
  echo $ECHO_N "(cached) $ECHO_C" >&6
20638
else
20639
  # PORTME does your system automatically load deplibs for dlopen?
20640
  # or its logical equivalent (e.g. shl_load for HP-UX < 11)
20641
  # For now, we just catch OSes we know something about -- in the
20642
  # future, we'll try test this programmatically.
20643
  libltdl_cv_sys_dlopen_deplibs=unknown
20644
  case "$host_os" in
20645
  aix3*|aix4.1.*|aix4.2.*)
20646
    # Unknown whether this is true for these versions of AIX, but
20647
    # we want this `case' here to explicitly catch those versions.
20648
    libltdl_cv_sys_dlopen_deplibs=unknown
20649
    ;;
20650
  aix[45]*)
20651
    libltdl_cv_sys_dlopen_deplibs=yes
20652
    ;;
20653
  darwin*)
20654
    # Assuming the user has installed a libdl from somewhere, this is true
20655
    # If you are looking for one http://www.opendarwin.org/projects/dlcompat
20656
    libltdl_cv_sys_dlopen_deplibs=yes
20657
    ;;
20658
  gnu*)
20659
    libltdl_cv_sys_dlopen_deplibs=yes
20660
    ;;
20661
  hpux10*|hpux11*)
20662
    libltdl_cv_sys_dlopen_deplibs=yes
20663
    ;;
20664
  irix[12345]*|irix6.[01]*)
20665
    # Catch all versions of IRIX before 6.2, and indicate that we don't
20666
    # know how it worked for any of those versions.
20667
    libltdl_cv_sys_dlopen_deplibs=unknown
20668
    ;;
20669
  irix*)
20670
    # The case above catches anything before 6.2, and it's known that
20671
    # at 6.2 and later dlopen does load deplibs.
20672
    libltdl_cv_sys_dlopen_deplibs=yes
20673
    ;;
20674
  linux*)
20675
    libltdl_cv_sys_dlopen_deplibs=yes
20676
    ;;
20677
  netbsd*)
20678
    libltdl_cv_sys_dlopen_deplibs=yes
20679
    ;;
20680
  openbsd*)
20681
    libltdl_cv_sys_dlopen_deplibs=yes
20682
    ;;
20683
  osf[1234]*)
20684
    # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
20685
    # it did *not* use an RPATH in a shared library to find objects the
20686
    # library depends on, so we explictly say `no'.
20687
    libltdl_cv_sys_dlopen_deplibs=no
20688
    ;;
20689
  osf5.0|osf5.0a|osf5.1)
20690
    # dlopen *does* load deplibs and with the right loader patch applied
20691
    # it even uses RPATH in a shared library to search for shared objects
20692
    # that the library depends on, but there's no easy way to know if that
20693
    # patch is installed.  Since this is the case, all we can really
20694
    # say is unknown -- it depends on the patch being installed.  If
20695
    # it is, this changes to `yes'.  Without it, it would be `no'.
20696
    libltdl_cv_sys_dlopen_deplibs=unknown
20697
    ;;
20698
  osf*)
20699
    # the two cases above should catch all versions of osf <= 5.1.  Read
20700
    # the comments above for what we know about them.
20701
    # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
20702
    # is used to find them so we can finally say `yes'.
20703
    libltdl_cv_sys_dlopen_deplibs=yes
20704
    ;;
20705
  solaris*)
20706
    libltdl_cv_sys_dlopen_deplibs=yes
20707
    ;;
20708
  esac
20709
 
20710
fi
20711
echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
20712
echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6
20713
if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
20714
 
20715
cat >>confdefs.h <<\_ACEOF
20716
#define LTDL_DLOPEN_DEPLIBS 1
20717
_ACEOF
20718
 
20719
fi
20720
 
20721
 
20722
for ac_header in argz.h
20723
do
20724
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20725
if eval "test \"\${$as_ac_Header+set}\" = set"; then
20726
  echo "$as_me:$LINENO: checking for $ac_header" >&5
20727
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20728
if eval "test \"\${$as_ac_Header+set}\" = set"; then
20729
  echo $ECHO_N "(cached) $ECHO_C" >&6
20730
fi
20731
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20732
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20733
else
20734
  # Is the header compilable?
20735
echo "$as_me:$LINENO: checking $ac_header usability" >&5
20736
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20737
cat >conftest.$ac_ext <<_ACEOF
20738
/* confdefs.h.  */
20739
_ACEOF
20740
cat confdefs.h >>conftest.$ac_ext
20741
cat >>conftest.$ac_ext <<_ACEOF
20742
/* end confdefs.h.  */
20743
$ac_includes_default
20744
#include <$ac_header>
20745
_ACEOF
20746
rm -f conftest.$ac_objext
20747
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20748
  (eval $ac_compile) 2>conftest.er1
20749
  ac_status=$?
20750
  grep -v '^ *+' conftest.er1 >conftest.err
20751
  rm -f conftest.er1
20752
  cat conftest.err >&5
20753
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20754
  (exit $ac_status); } &&
20755
         { ac_try='test -z "$ac_c_werror_flag"
20756
                         || test ! -s conftest.err'
20757
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20758
  (eval $ac_try) 2>&5
20759
  ac_status=$?
20760
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20761
  (exit $ac_status); }; } &&
20762
         { ac_try='test -s conftest.$ac_objext'
20763
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20764
  (eval $ac_try) 2>&5
20765
  ac_status=$?
20766
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20767
  (exit $ac_status); }; }; then
20768
  ac_header_compiler=yes
20769
else
20770
  echo "$as_me: failed program was:" >&5
20771
sed 's/^/| /' conftest.$ac_ext >&5
20772
 
20773
ac_header_compiler=no
20774
fi
20775
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20776
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20777
echo "${ECHO_T}$ac_header_compiler" >&6
20778
 
20779
# Is the header present?
20780
echo "$as_me:$LINENO: checking $ac_header presence" >&5
20781
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20782
cat >conftest.$ac_ext <<_ACEOF
20783
/* confdefs.h.  */
20784
_ACEOF
20785
cat confdefs.h >>conftest.$ac_ext
20786
cat >>conftest.$ac_ext <<_ACEOF
20787
/* end confdefs.h.  */
20788
#include <$ac_header>
20789
_ACEOF
20790
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20791
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20792
  ac_status=$?
20793
  grep -v '^ *+' conftest.er1 >conftest.err
20794
  rm -f conftest.er1
20795
  cat conftest.err >&5
20796
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20797
  (exit $ac_status); } >/dev/null; then
20798
  if test -s conftest.err; then
20799
    ac_cpp_err=$ac_c_preproc_warn_flag
20800
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20801
  else
20802
    ac_cpp_err=
20803
  fi
20804
else
20805
  ac_cpp_err=yes
20806
fi
20807
if test -z "$ac_cpp_err"; then
20808
  ac_header_preproc=yes
20809
else
20810
  echo "$as_me: failed program was:" >&5
20811
sed 's/^/| /' conftest.$ac_ext >&5
20812
 
20813
  ac_header_preproc=no
20814
fi
20815
rm -f conftest.err conftest.$ac_ext
20816
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20817
echo "${ECHO_T}$ac_header_preproc" >&6
20818
 
20819
# So?  What about this header?
20820
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20821
  yes:no: )
20822
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20823
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20824
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20825
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20826
    ac_header_preproc=yes
20827
    ;;
20828
  no:yes:* )
20829
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20830
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20831
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20832
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20833
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20834
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20835
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20836
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20837
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20838
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20839
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20840
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20841
    (
20842
      cat <<\_ASBOX
20843
## ---------------------------------- ##
20844
## Report this to bug-libtool@gnu.org ##
20845
## ---------------------------------- ##
20846
_ASBOX
20847
    ) |
20848
      sed "s/^/$as_me: WARNING:     /" >&2
20849
    ;;
20850
esac
20851
echo "$as_me:$LINENO: checking for $ac_header" >&5
20852
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20853
if eval "test \"\${$as_ac_Header+set}\" = set"; then
20854
  echo $ECHO_N "(cached) $ECHO_C" >&6
20855
else
20856
  eval "$as_ac_Header=\$ac_header_preproc"
20857
fi
20858
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20859
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20860
 
20861
fi
20862
if test `eval echo '${'$as_ac_Header'}'` = yes; then
20863
  cat >>confdefs.h <<_ACEOF
20864
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20865
_ACEOF
20866
 
20867
fi
20868
 
20869
done
20870
 
20871
 
20872
echo "$as_me:$LINENO: checking for error_t" >&5
20873
echo $ECHO_N "checking for error_t... $ECHO_C" >&6
20874
if test "${ac_cv_type_error_t+set}" = set; then
20875
  echo $ECHO_N "(cached) $ECHO_C" >&6
20876
else
20877
  cat >conftest.$ac_ext <<_ACEOF
20878
/* confdefs.h.  */
20879
_ACEOF
20880
cat confdefs.h >>conftest.$ac_ext
20881
cat >>conftest.$ac_ext <<_ACEOF
20882
/* end confdefs.h.  */
20883
#if HAVE_ARGZ_H
20884
#  include 
20885
#endif
20886
 
20887
int
20888
main ()
20889
{
20890
if ((error_t *) 0)
20891
  return 0;
20892
if (sizeof (error_t))
20893
  return 0;
20894
  ;
20895
  return 0;
20896
}
20897
_ACEOF
20898
rm -f conftest.$ac_objext
20899
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20900
  (eval $ac_compile) 2>conftest.er1
20901
  ac_status=$?
20902
  grep -v '^ *+' conftest.er1 >conftest.err
20903
  rm -f conftest.er1
20904
  cat conftest.err >&5
20905
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20906
  (exit $ac_status); } &&
20907
         { ac_try='test -z "$ac_c_werror_flag"
20908
                         || 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_objext'
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_type_error_t=yes
20921
else
20922
  echo "$as_me: failed program was:" >&5
20923
sed 's/^/| /' conftest.$ac_ext >&5
20924
 
20925
ac_cv_type_error_t=no
20926
fi
20927
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20928
fi
20929
echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
20930
echo "${ECHO_T}$ac_cv_type_error_t" >&6
20931
if test $ac_cv_type_error_t = yes; then
20932
 
20933
cat >>confdefs.h <<_ACEOF
20934
#define HAVE_ERROR_T 1
20935
_ACEOF
20936
 
20937
 
20938
else
20939
 
20940
cat >>confdefs.h <<\_ACEOF
20941
#define error_t int
20942
_ACEOF
20943
 
20944
fi
20945
 
20946
 
20947
 
20948
 
20949
 
20950
 
20951
 
20952
for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
20953
do
20954
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20955
echo "$as_me:$LINENO: checking for $ac_func" >&5
20956
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20957
if eval "test \"\${$as_ac_var+set}\" = set"; then
20958
  echo $ECHO_N "(cached) $ECHO_C" >&6
20959
else
20960
  cat >conftest.$ac_ext <<_ACEOF
20961
/* confdefs.h.  */
20962
_ACEOF
20963
cat confdefs.h >>conftest.$ac_ext
20964
cat >>conftest.$ac_ext <<_ACEOF
20965
/* end confdefs.h.  */
20966
/* Define $ac_func to an innocuous variant, in case  declares $ac_func.
20967
   For example, HP-UX 11i  declares gettimeofday.  */
20968
#define $ac_func innocuous_$ac_func
20969
 
20970
/* System header to define __stub macros and hopefully few prototypes,
20971
    which can conflict with char $ac_func (); below.
20972
    Prefer  to  if __STDC__ is defined, since
20973
     exists even on freestanding compilers.  */
20974
 
20975
#ifdef __STDC__
20976
# include 
20977
#else
20978
# include 
20979
#endif
20980
 
20981
#undef $ac_func
20982
 
20983
/* Override any gcc2 internal prototype to avoid an error.  */
20984
#ifdef __cplusplus
20985
extern "C"
20986
{
20987
#endif
20988
/* We use char because int might match the return type of a gcc2
20989
   builtin and then its argument prototype would still apply.  */
20990
char $ac_func ();
20991
/* The GNU C library defines this for functions which it implements
20992
    to always fail with ENOSYS.  Some functions are actually named
20993
    something starting with __ and the normal name is an alias.  */
20994
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20995
choke me
20996
#else
20997
char (*f) () = $ac_func;
20998
#endif
20999
#ifdef __cplusplus
21000
}
21001
#endif
21002
 
21003
int
21004
main ()
21005
{
21006
return f != $ac_func;
21007
  ;
21008
  return 0;
21009
}
21010
_ACEOF
21011
rm -f conftest.$ac_objext conftest$ac_exeext
21012
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21013
  (eval $ac_link) 2>conftest.er1
21014
  ac_status=$?
21015
  grep -v '^ *+' conftest.er1 >conftest.err
21016
  rm -f conftest.er1
21017
  cat conftest.err >&5
21018
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21019
  (exit $ac_status); } &&
21020
         { ac_try='test -z "$ac_c_werror_flag"
21021
                         || test ! -s conftest.err'
21022
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21023
  (eval $ac_try) 2>&5
21024
  ac_status=$?
21025
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21026
  (exit $ac_status); }; } &&
21027
         { ac_try='test -s conftest$ac_exeext'
21028
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21029
  (eval $ac_try) 2>&5
21030
  ac_status=$?
21031
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21032
  (exit $ac_status); }; }; then
21033
  eval "$as_ac_var=yes"
21034
else
21035
  echo "$as_me: failed program was:" >&5
21036
sed 's/^/| /' conftest.$ac_ext >&5
21037
 
21038
eval "$as_ac_var=no"
21039
fi
21040
rm -f conftest.err conftest.$ac_objext \
21041
      conftest$ac_exeext conftest.$ac_ext
21042
fi
21043
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21044
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21045
if test `eval echo '${'$as_ac_var'}'` = yes; then
21046
  cat >>confdefs.h <<_ACEOF
21047
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21048
_ACEOF
21049
 
21050
fi
21051
done
21052
 
21053
 
21054
 
21055
 
21056
 
21057
 
21058
 
21059
 
21060
 
21061
 
21062
 
21063
 
21064
 
21065
 
21066
 
21067
 
21068
 
21069
 
21070
 
21071
 
21072
 
21073
 
21074
 
21075
 
21076
 
21077
 
21078
 
21079
 
21080
for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
21081
                  stdio.h unistd.h
21082
do
21083
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21084
if eval "test \"\${$as_ac_Header+set}\" = set"; then
21085
  echo "$as_me:$LINENO: checking for $ac_header" >&5
21086
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21087
if eval "test \"\${$as_ac_Header+set}\" = set"; then
21088
  echo $ECHO_N "(cached) $ECHO_C" >&6
21089
fi
21090
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21091
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21092
else
21093
  # Is the header compilable?
21094
echo "$as_me:$LINENO: checking $ac_header usability" >&5
21095
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21096
cat >conftest.$ac_ext <<_ACEOF
21097
/* confdefs.h.  */
21098
_ACEOF
21099
cat confdefs.h >>conftest.$ac_ext
21100
cat >>conftest.$ac_ext <<_ACEOF
21101
/* end confdefs.h.  */
21102
$ac_includes_default
21103
#include <$ac_header>
21104
_ACEOF
21105
rm -f conftest.$ac_objext
21106
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21107
  (eval $ac_compile) 2>conftest.er1
21108
  ac_status=$?
21109
  grep -v '^ *+' conftest.er1 >conftest.err
21110
  rm -f conftest.er1
21111
  cat conftest.err >&5
21112
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21113
  (exit $ac_status); } &&
21114
         { ac_try='test -z "$ac_c_werror_flag"
21115
                         || test ! -s conftest.err'
21116
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21117
  (eval $ac_try) 2>&5
21118
  ac_status=$?
21119
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21120
  (exit $ac_status); }; } &&
21121
         { ac_try='test -s conftest.$ac_objext'
21122
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21123
  (eval $ac_try) 2>&5
21124
  ac_status=$?
21125
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21126
  (exit $ac_status); }; }; then
21127
  ac_header_compiler=yes
21128
else
21129
  echo "$as_me: failed program was:" >&5
21130
sed 's/^/| /' conftest.$ac_ext >&5
21131
 
21132
ac_header_compiler=no
21133
fi
21134
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21135
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21136
echo "${ECHO_T}$ac_header_compiler" >&6
21137
 
21138
# Is the header present?
21139
echo "$as_me:$LINENO: checking $ac_header presence" >&5
21140
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21141
cat >conftest.$ac_ext <<_ACEOF
21142
/* confdefs.h.  */
21143
_ACEOF
21144
cat confdefs.h >>conftest.$ac_ext
21145
cat >>conftest.$ac_ext <<_ACEOF
21146
/* end confdefs.h.  */
21147
#include <$ac_header>
21148
_ACEOF
21149
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21150
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21151
  ac_status=$?
21152
  grep -v '^ *+' conftest.er1 >conftest.err
21153
  rm -f conftest.er1
21154
  cat conftest.err >&5
21155
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21156
  (exit $ac_status); } >/dev/null; then
21157
  if test -s conftest.err; then
21158
    ac_cpp_err=$ac_c_preproc_warn_flag
21159
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21160
  else
21161
    ac_cpp_err=
21162
  fi
21163
else
21164
  ac_cpp_err=yes
21165
fi
21166
if test -z "$ac_cpp_err"; then
21167
  ac_header_preproc=yes
21168
else
21169
  echo "$as_me: failed program was:" >&5
21170
sed 's/^/| /' conftest.$ac_ext >&5
21171
 
21172
  ac_header_preproc=no
21173
fi
21174
rm -f conftest.err conftest.$ac_ext
21175
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21176
echo "${ECHO_T}$ac_header_preproc" >&6
21177
 
21178
# So?  What about this header?
21179
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21180
  yes:no: )
21181
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21182
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21183
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21184
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21185
    ac_header_preproc=yes
21186
    ;;
21187
  no:yes:* )
21188
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21189
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21190
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21191
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21192
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21193
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21194
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21195
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21196
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21197
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21198
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21199
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21200
    (
21201
      cat <<\_ASBOX
21202
## ---------------------------------- ##
21203
## Report this to bug-libtool@gnu.org ##
21204
## ---------------------------------- ##
21205
_ASBOX
21206
    ) |
21207
      sed "s/^/$as_me: WARNING:     /" >&2
21208
    ;;
21209
esac
21210
echo "$as_me:$LINENO: checking for $ac_header" >&5
21211
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21212
if eval "test \"\${$as_ac_Header+set}\" = set"; then
21213
  echo $ECHO_N "(cached) $ECHO_C" >&6
21214
else
21215
  eval "$as_ac_Header=\$ac_header_preproc"
21216
fi
21217
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21218
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21219
 
21220
fi
21221
if test `eval echo '${'$as_ac_Header'}'` = yes; then
21222
  cat >>confdefs.h <<_ACEOF
21223
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21224
_ACEOF
21225
 
21226
fi
21227
 
21228
done
21229
 
21230
 
21231
 
21232
 
21233
 
21234
for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
21235
do
21236
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21237
if eval "test \"\${$as_ac_Header+set}\" = set"; then
21238
  echo "$as_me:$LINENO: checking for $ac_header" >&5
21239
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21240
if eval "test \"\${$as_ac_Header+set}\" = set"; then
21241
  echo $ECHO_N "(cached) $ECHO_C" >&6
21242
fi
21243
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21244
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21245
else
21246
  # Is the header compilable?
21247
echo "$as_me:$LINENO: checking $ac_header usability" >&5
21248
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21249
cat >conftest.$ac_ext <<_ACEOF
21250
/* confdefs.h.  */
21251
_ACEOF
21252
cat confdefs.h >>conftest.$ac_ext
21253
cat >>conftest.$ac_ext <<_ACEOF
21254
/* end confdefs.h.  */
21255
$ac_includes_default
21256
#include <$ac_header>
21257
_ACEOF
21258
rm -f conftest.$ac_objext
21259
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21260
  (eval $ac_compile) 2>conftest.er1
21261
  ac_status=$?
21262
  grep -v '^ *+' conftest.er1 >conftest.err
21263
  rm -f conftest.er1
21264
  cat conftest.err >&5
21265
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21266
  (exit $ac_status); } &&
21267
         { ac_try='test -z "$ac_c_werror_flag"
21268
                         || test ! -s conftest.err'
21269
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21270
  (eval $ac_try) 2>&5
21271
  ac_status=$?
21272
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21273
  (exit $ac_status); }; } &&
21274
         { ac_try='test -s conftest.$ac_objext'
21275
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21276
  (eval $ac_try) 2>&5
21277
  ac_status=$?
21278
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21279
  (exit $ac_status); }; }; then
21280
  ac_header_compiler=yes
21281
else
21282
  echo "$as_me: failed program was:" >&5
21283
sed 's/^/| /' conftest.$ac_ext >&5
21284
 
21285
ac_header_compiler=no
21286
fi
21287
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21288
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21289
echo "${ECHO_T}$ac_header_compiler" >&6
21290
 
21291
# Is the header present?
21292
echo "$as_me:$LINENO: checking $ac_header presence" >&5
21293
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21294
cat >conftest.$ac_ext <<_ACEOF
21295
/* confdefs.h.  */
21296
_ACEOF
21297
cat confdefs.h >>conftest.$ac_ext
21298
cat >>conftest.$ac_ext <<_ACEOF
21299
/* end confdefs.h.  */
21300
#include <$ac_header>
21301
_ACEOF
21302
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21303
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21304
  ac_status=$?
21305
  grep -v '^ *+' conftest.er1 >conftest.err
21306
  rm -f conftest.er1
21307
  cat conftest.err >&5
21308
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21309
  (exit $ac_status); } >/dev/null; then
21310
  if test -s conftest.err; then
21311
    ac_cpp_err=$ac_c_preproc_warn_flag
21312
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21313
  else
21314
    ac_cpp_err=
21315
  fi
21316
else
21317
  ac_cpp_err=yes
21318
fi
21319
if test -z "$ac_cpp_err"; then
21320
  ac_header_preproc=yes
21321
else
21322
  echo "$as_me: failed program was:" >&5
21323
sed 's/^/| /' conftest.$ac_ext >&5
21324
 
21325
  ac_header_preproc=no
21326
fi
21327
rm -f conftest.err conftest.$ac_ext
21328
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21329
echo "${ECHO_T}$ac_header_preproc" >&6
21330
 
21331
# So?  What about this header?
21332
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21333
  yes:no: )
21334
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21335
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21336
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21337
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21338
    ac_header_preproc=yes
21339
    ;;
21340
  no:yes:* )
21341
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21342
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21343
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21344
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21345
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21346
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21347
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21348
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21349
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21350
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21351
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21352
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21353
    (
21354
      cat <<\_ASBOX
21355
## ---------------------------------- ##
21356
## Report this to bug-libtool@gnu.org ##
21357
## ---------------------------------- ##
21358
_ASBOX
21359
    ) |
21360
      sed "s/^/$as_me: WARNING:     /" >&2
21361
    ;;
21362
esac
21363
echo "$as_me:$LINENO: checking for $ac_header" >&5
21364
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21365
if eval "test \"\${$as_ac_Header+set}\" = set"; then
21366
  echo $ECHO_N "(cached) $ECHO_C" >&6
21367
else
21368
  eval "$as_ac_Header=\$ac_header_preproc"
21369
fi
21370
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21371
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21372
 
21373
fi
21374
if test `eval echo '${'$as_ac_Header'}'` = yes; then
21375
  cat >>confdefs.h <<_ACEOF
21376
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21377
_ACEOF
21378
 
21379
fi
21380
 
21381
done
21382
 
21383
 
21384
 
21385
for ac_header in string.h strings.h
21386
do
21387
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21388
if eval "test \"\${$as_ac_Header+set}\" = set"; then
21389
  echo "$as_me:$LINENO: checking for $ac_header" >&5
21390
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21391
if eval "test \"\${$as_ac_Header+set}\" = set"; then
21392
  echo $ECHO_N "(cached) $ECHO_C" >&6
21393
fi
21394
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21395
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21396
else
21397
  # Is the header compilable?
21398
echo "$as_me:$LINENO: checking $ac_header usability" >&5
21399
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21400
cat >conftest.$ac_ext <<_ACEOF
21401
/* confdefs.h.  */
21402
_ACEOF
21403
cat confdefs.h >>conftest.$ac_ext
21404
cat >>conftest.$ac_ext <<_ACEOF
21405
/* end confdefs.h.  */
21406
$ac_includes_default
21407
#include <$ac_header>
21408
_ACEOF
21409
rm -f conftest.$ac_objext
21410
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21411
  (eval $ac_compile) 2>conftest.er1
21412
  ac_status=$?
21413
  grep -v '^ *+' conftest.er1 >conftest.err
21414
  rm -f conftest.er1
21415
  cat conftest.err >&5
21416
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21417
  (exit $ac_status); } &&
21418
         { ac_try='test -z "$ac_c_werror_flag"
21419
                         || test ! -s conftest.err'
21420
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21421
  (eval $ac_try) 2>&5
21422
  ac_status=$?
21423
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21424
  (exit $ac_status); }; } &&
21425
         { ac_try='test -s conftest.$ac_objext'
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); }; }; then
21431
  ac_header_compiler=yes
21432
else
21433
  echo "$as_me: failed program was:" >&5
21434
sed 's/^/| /' conftest.$ac_ext >&5
21435
 
21436
ac_header_compiler=no
21437
fi
21438
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21439
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21440
echo "${ECHO_T}$ac_header_compiler" >&6
21441
 
21442
# Is the header present?
21443
echo "$as_me:$LINENO: checking $ac_header presence" >&5
21444
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21445
cat >conftest.$ac_ext <<_ACEOF
21446
/* confdefs.h.  */
21447
_ACEOF
21448
cat confdefs.h >>conftest.$ac_ext
21449
cat >>conftest.$ac_ext <<_ACEOF
21450
/* end confdefs.h.  */
21451
#include <$ac_header>
21452
_ACEOF
21453
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21454
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21455
  ac_status=$?
21456
  grep -v '^ *+' conftest.er1 >conftest.err
21457
  rm -f conftest.er1
21458
  cat conftest.err >&5
21459
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21460
  (exit $ac_status); } >/dev/null; then
21461
  if test -s conftest.err; then
21462
    ac_cpp_err=$ac_c_preproc_warn_flag
21463
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21464
  else
21465
    ac_cpp_err=
21466
  fi
21467
else
21468
  ac_cpp_err=yes
21469
fi
21470
if test -z "$ac_cpp_err"; then
21471
  ac_header_preproc=yes
21472
else
21473
  echo "$as_me: failed program was:" >&5
21474
sed 's/^/| /' conftest.$ac_ext >&5
21475
 
21476
  ac_header_preproc=no
21477
fi
21478
rm -f conftest.err conftest.$ac_ext
21479
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21480
echo "${ECHO_T}$ac_header_preproc" >&6
21481
 
21482
# So?  What about this header?
21483
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21484
  yes:no: )
21485
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21486
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21487
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21488
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21489
    ac_header_preproc=yes
21490
    ;;
21491
  no:yes:* )
21492
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21493
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21494
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21495
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21496
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21497
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21498
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21499
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21500
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21501
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21502
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21503
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21504
    (
21505
      cat <<\_ASBOX
21506
## ---------------------------------- ##
21507
## Report this to bug-libtool@gnu.org ##
21508
## ---------------------------------- ##
21509
_ASBOX
21510
    ) |
21511
      sed "s/^/$as_me: WARNING:     /" >&2
21512
    ;;
21513
esac
21514
echo "$as_me:$LINENO: checking for $ac_header" >&5
21515
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21516
if eval "test \"\${$as_ac_Header+set}\" = set"; then
21517
  echo $ECHO_N "(cached) $ECHO_C" >&6
21518
else
21519
  eval "$as_ac_Header=\$ac_header_preproc"
21520
fi
21521
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21522
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21523
 
21524
fi
21525
if test `eval echo '${'$as_ac_Header'}'` = yes; then
21526
  cat >>confdefs.h <<_ACEOF
21527
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21528
_ACEOF
21529
 break
21530
fi
21531
 
21532
done
21533
 
21534
 
21535
 
21536
 
21537
for ac_func in strchr index
21538
do
21539
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21540
echo "$as_me:$LINENO: checking for $ac_func" >&5
21541
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21542
if eval "test \"\${$as_ac_var+set}\" = set"; then
21543
  echo $ECHO_N "(cached) $ECHO_C" >&6
21544
else
21545
  cat >conftest.$ac_ext <<_ACEOF
21546
/* confdefs.h.  */
21547
_ACEOF
21548
cat confdefs.h >>conftest.$ac_ext
21549
cat >>conftest.$ac_ext <<_ACEOF
21550
/* end confdefs.h.  */
21551
/* Define $ac_func to an innocuous variant, in case  declares $ac_func.
21552
   For example, HP-UX 11i  declares gettimeofday.  */
21553
#define $ac_func innocuous_$ac_func
21554
 
21555
/* System header to define __stub macros and hopefully few prototypes,
21556
    which can conflict with char $ac_func (); below.
21557
    Prefer  to  if __STDC__ is defined, since
21558
     exists even on freestanding compilers.  */
21559
 
21560
#ifdef __STDC__
21561
# include 
21562
#else
21563
# include 
21564
#endif
21565
 
21566
#undef $ac_func
21567
 
21568
/* Override any gcc2 internal prototype to avoid an error.  */
21569
#ifdef __cplusplus
21570
extern "C"
21571
{
21572
#endif
21573
/* We use char because int might match the return type of a gcc2
21574
   builtin and then its argument prototype would still apply.  */
21575
char $ac_func ();
21576
/* The GNU C library defines this for functions which it implements
21577
    to always fail with ENOSYS.  Some functions are actually named
21578
    something starting with __ and the normal name is an alias.  */
21579
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21580
choke me
21581
#else
21582
char (*f) () = $ac_func;
21583
#endif
21584
#ifdef __cplusplus
21585
}
21586
#endif
21587
 
21588
int
21589
main ()
21590
{
21591
return f != $ac_func;
21592
  ;
21593
  return 0;
21594
}
21595
_ACEOF
21596
rm -f conftest.$ac_objext conftest$ac_exeext
21597
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21598
  (eval $ac_link) 2>conftest.er1
21599
  ac_status=$?
21600
  grep -v '^ *+' conftest.er1 >conftest.err
21601
  rm -f conftest.er1
21602
  cat conftest.err >&5
21603
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21604
  (exit $ac_status); } &&
21605
         { ac_try='test -z "$ac_c_werror_flag"
21606
                         || test ! -s conftest.err'
21607
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21608
  (eval $ac_try) 2>&5
21609
  ac_status=$?
21610
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21611
  (exit $ac_status); }; } &&
21612
         { ac_try='test -s conftest$ac_exeext'
21613
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21614
  (eval $ac_try) 2>&5
21615
  ac_status=$?
21616
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21617
  (exit $ac_status); }; }; then
21618
  eval "$as_ac_var=yes"
21619
else
21620
  echo "$as_me: failed program was:" >&5
21621
sed 's/^/| /' conftest.$ac_ext >&5
21622
 
21623
eval "$as_ac_var=no"
21624
fi
21625
rm -f conftest.err conftest.$ac_objext \
21626
      conftest$ac_exeext conftest.$ac_ext
21627
fi
21628
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21629
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21630
if test `eval echo '${'$as_ac_var'}'` = yes; then
21631
  cat >>confdefs.h <<_ACEOF
21632
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21633
_ACEOF
21634
 break
21635
fi
21636
done
21637
 
21638
 
21639
 
21640
for ac_func in strrchr rindex
21641
do
21642
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21643
echo "$as_me:$LINENO: checking for $ac_func" >&5
21644
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21645
if eval "test \"\${$as_ac_var+set}\" = set"; then
21646
  echo $ECHO_N "(cached) $ECHO_C" >&6
21647
else
21648
  cat >conftest.$ac_ext <<_ACEOF
21649
/* confdefs.h.  */
21650
_ACEOF
21651
cat confdefs.h >>conftest.$ac_ext
21652
cat >>conftest.$ac_ext <<_ACEOF
21653
/* end confdefs.h.  */
21654
/* Define $ac_func to an innocuous variant, in case  declares $ac_func.
21655
   For example, HP-UX 11i  declares gettimeofday.  */
21656
#define $ac_func innocuous_$ac_func
21657
 
21658
/* System header to define __stub macros and hopefully few prototypes,
21659
    which can conflict with char $ac_func (); below.
21660
    Prefer  to  if __STDC__ is defined, since
21661
     exists even on freestanding compilers.  */
21662
 
21663
#ifdef __STDC__
21664
# include 
21665
#else
21666
# include 
21667
#endif
21668
 
21669
#undef $ac_func
21670
 
21671
/* Override any gcc2 internal prototype to avoid an error.  */
21672
#ifdef __cplusplus
21673
extern "C"
21674
{
21675
#endif
21676
/* We use char because int might match the return type of a gcc2
21677
   builtin and then its argument prototype would still apply.  */
21678
char $ac_func ();
21679
/* The GNU C library defines this for functions which it implements
21680
    to always fail with ENOSYS.  Some functions are actually named
21681
    something starting with __ and the normal name is an alias.  */
21682
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21683
choke me
21684
#else
21685
char (*f) () = $ac_func;
21686
#endif
21687
#ifdef __cplusplus
21688
}
21689
#endif
21690
 
21691
int
21692
main ()
21693
{
21694
return f != $ac_func;
21695
  ;
21696
  return 0;
21697
}
21698
_ACEOF
21699
rm -f conftest.$ac_objext conftest$ac_exeext
21700
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21701
  (eval $ac_link) 2>conftest.er1
21702
  ac_status=$?
21703
  grep -v '^ *+' conftest.er1 >conftest.err
21704
  rm -f conftest.er1
21705
  cat conftest.err >&5
21706
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21707
  (exit $ac_status); } &&
21708
         { ac_try='test -z "$ac_c_werror_flag"
21709
                         || test ! -s conftest.err'
21710
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21711
  (eval $ac_try) 2>&5
21712
  ac_status=$?
21713
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21714
  (exit $ac_status); }; } &&
21715
         { ac_try='test -s conftest$ac_exeext'
21716
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21717
  (eval $ac_try) 2>&5
21718
  ac_status=$?
21719
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21720
  (exit $ac_status); }; }; then
21721
  eval "$as_ac_var=yes"
21722
else
21723
  echo "$as_me: failed program was:" >&5
21724
sed 's/^/| /' conftest.$ac_ext >&5
21725
 
21726
eval "$as_ac_var=no"
21727
fi
21728
rm -f conftest.err conftest.$ac_objext \
21729
      conftest$ac_exeext conftest.$ac_ext
21730
fi
21731
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21732
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21733
if test `eval echo '${'$as_ac_var'}'` = yes; then
21734
  cat >>confdefs.h <<_ACEOF
21735
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21736
_ACEOF
21737
 break
21738
fi
21739
done
21740
 
21741
 
21742
 
21743
for ac_func in memcpy bcopy
21744
do
21745
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21746
echo "$as_me:$LINENO: checking for $ac_func" >&5
21747
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21748
if eval "test \"\${$as_ac_var+set}\" = set"; then
21749
  echo $ECHO_N "(cached) $ECHO_C" >&6
21750
else
21751
  cat >conftest.$ac_ext <<_ACEOF
21752
/* confdefs.h.  */
21753
_ACEOF
21754
cat confdefs.h >>conftest.$ac_ext
21755
cat >>conftest.$ac_ext <<_ACEOF
21756
/* end confdefs.h.  */
21757
/* Define $ac_func to an innocuous variant, in case  declares $ac_func.
21758
   For example, HP-UX 11i  declares gettimeofday.  */
21759
#define $ac_func innocuous_$ac_func
21760
 
21761
/* System header to define __stub macros and hopefully few prototypes,
21762
    which can conflict with char $ac_func (); below.
21763
    Prefer  to  if __STDC__ is defined, since
21764
     exists even on freestanding compilers.  */
21765
 
21766
#ifdef __STDC__
21767
# include 
21768
#else
21769
# include 
21770
#endif
21771
 
21772
#undef $ac_func
21773
 
21774
/* Override any gcc2 internal prototype to avoid an error.  */
21775
#ifdef __cplusplus
21776
extern "C"
21777
{
21778
#endif
21779
/* We use char because int might match the return type of a gcc2
21780
   builtin and then its argument prototype would still apply.  */
21781
char $ac_func ();
21782
/* The GNU C library defines this for functions which it implements
21783
    to always fail with ENOSYS.  Some functions are actually named
21784
    something starting with __ and the normal name is an alias.  */
21785
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21786
choke me
21787
#else
21788
char (*f) () = $ac_func;
21789
#endif
21790
#ifdef __cplusplus
21791
}
21792
#endif
21793
 
21794
int
21795
main ()
21796
{
21797
return f != $ac_func;
21798
  ;
21799
  return 0;
21800
}
21801
_ACEOF
21802
rm -f conftest.$ac_objext conftest$ac_exeext
21803
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21804
  (eval $ac_link) 2>conftest.er1
21805
  ac_status=$?
21806
  grep -v '^ *+' conftest.er1 >conftest.err
21807
  rm -f conftest.er1
21808
  cat conftest.err >&5
21809
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21810
  (exit $ac_status); } &&
21811
         { ac_try='test -z "$ac_c_werror_flag"
21812
                         || test ! -s conftest.err'
21813
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21814
  (eval $ac_try) 2>&5
21815
  ac_status=$?
21816
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21817
  (exit $ac_status); }; } &&
21818
         { ac_try='test -s conftest$ac_exeext'
21819
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21820
  (eval $ac_try) 2>&5
21821
  ac_status=$?
21822
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21823
  (exit $ac_status); }; }; then
21824
  eval "$as_ac_var=yes"
21825
else
21826
  echo "$as_me: failed program was:" >&5
21827
sed 's/^/| /' conftest.$ac_ext >&5
21828
 
21829
eval "$as_ac_var=no"
21830
fi
21831
rm -f conftest.err conftest.$ac_objext \
21832
      conftest$ac_exeext conftest.$ac_ext
21833
fi
21834
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21835
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21836
if test `eval echo '${'$as_ac_var'}'` = yes; then
21837
  cat >>confdefs.h <<_ACEOF
21838
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21839
_ACEOF
21840
 break
21841
fi
21842
done
21843
 
21844
 
21845
 
21846
for ac_func in memmove strcmp
21847
do
21848
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21849
echo "$as_me:$LINENO: checking for $ac_func" >&5
21850
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21851
if eval "test \"\${$as_ac_var+set}\" = set"; then
21852
  echo $ECHO_N "(cached) $ECHO_C" >&6
21853
else
21854
  cat >conftest.$ac_ext <<_ACEOF
21855
/* confdefs.h.  */
21856
_ACEOF
21857
cat confdefs.h >>conftest.$ac_ext
21858
cat >>conftest.$ac_ext <<_ACEOF
21859
/* end confdefs.h.  */
21860
/* Define $ac_func to an innocuous variant, in case  declares $ac_func.
21861
   For example, HP-UX 11i  declares gettimeofday.  */
21862
#define $ac_func innocuous_$ac_func
21863
 
21864
/* System header to define __stub macros and hopefully few prototypes,
21865
    which can conflict with char $ac_func (); below.
21866
    Prefer  to  if __STDC__ is defined, since
21867
     exists even on freestanding compilers.  */
21868
 
21869
#ifdef __STDC__
21870
# include 
21871
#else
21872
# include 
21873
#endif
21874
 
21875
#undef $ac_func
21876
 
21877
/* Override any gcc2 internal prototype to avoid an error.  */
21878
#ifdef __cplusplus
21879
extern "C"
21880
{
21881
#endif
21882
/* We use char because int might match the return type of a gcc2
21883
   builtin and then its argument prototype would still apply.  */
21884
char $ac_func ();
21885
/* The GNU C library defines this for functions which it implements
21886
    to always fail with ENOSYS.  Some functions are actually named
21887
    something starting with __ and the normal name is an alias.  */
21888
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21889
choke me
21890
#else
21891
char (*f) () = $ac_func;
21892
#endif
21893
#ifdef __cplusplus
21894
}
21895
#endif
21896
 
21897
int
21898
main ()
21899
{
21900
return f != $ac_func;
21901
  ;
21902
  return 0;
21903
}
21904
_ACEOF
21905
rm -f conftest.$ac_objext conftest$ac_exeext
21906
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21907
  (eval $ac_link) 2>conftest.er1
21908
  ac_status=$?
21909
  grep -v '^ *+' conftest.er1 >conftest.err
21910
  rm -f conftest.er1
21911
  cat conftest.err >&5
21912
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21913
  (exit $ac_status); } &&
21914
         { ac_try='test -z "$ac_c_werror_flag"
21915
                         || test ! -s conftest.err'
21916
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21917
  (eval $ac_try) 2>&5
21918
  ac_status=$?
21919
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21920
  (exit $ac_status); }; } &&
21921
         { ac_try='test -s conftest$ac_exeext'
21922
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21923
  (eval $ac_try) 2>&5
21924
  ac_status=$?
21925
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21926
  (exit $ac_status); }; }; then
21927
  eval "$as_ac_var=yes"
21928
else
21929
  echo "$as_me: failed program was:" >&5
21930
sed 's/^/| /' conftest.$ac_ext >&5
21931
 
21932
eval "$as_ac_var=no"
21933
fi
21934
rm -f conftest.err conftest.$ac_objext \
21935
      conftest$ac_exeext conftest.$ac_ext
21936
fi
21937
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21938
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21939
if test `eval echo '${'$as_ac_var'}'` = yes; then
21940
  cat >>confdefs.h <<_ACEOF
21941
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21942
_ACEOF
21943
 
21944
fi
21945
done
21946
 
21947
 
21948
 
21949
 
21950
for ac_func in closedir opendir readdir
21951
do
21952
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21953
echo "$as_me:$LINENO: checking for $ac_func" >&5
21954
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21955
if eval "test \"\${$as_ac_var+set}\" = set"; then
21956
  echo $ECHO_N "(cached) $ECHO_C" >&6
21957
else
21958
  cat >conftest.$ac_ext <<_ACEOF
21959
/* confdefs.h.  */
21960
_ACEOF
21961
cat confdefs.h >>conftest.$ac_ext
21962
cat >>conftest.$ac_ext <<_ACEOF
21963
/* end confdefs.h.  */
21964
/* Define $ac_func to an innocuous variant, in case  declares $ac_func.
21965
   For example, HP-UX 11i  declares gettimeofday.  */
21966
#define $ac_func innocuous_$ac_func
21967
 
21968
/* System header to define __stub macros and hopefully few prototypes,
21969
    which can conflict with char $ac_func (); below.
21970
    Prefer  to  if __STDC__ is defined, since
21971
     exists even on freestanding compilers.  */
21972
 
21973
#ifdef __STDC__
21974
# include 
21975
#else
21976
# include 
21977
#endif
21978
 
21979
#undef $ac_func
21980
 
21981
/* Override any gcc2 internal prototype to avoid an error.  */
21982
#ifdef __cplusplus
21983
extern "C"
21984
{
21985
#endif
21986
/* We use char because int might match the return type of a gcc2
21987
   builtin and then its argument prototype would still apply.  */
21988
char $ac_func ();
21989
/* The GNU C library defines this for functions which it implements
21990
    to always fail with ENOSYS.  Some functions are actually named
21991
    something starting with __ and the normal name is an alias.  */
21992
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21993
choke me
21994
#else
21995
char (*f) () = $ac_func;
21996
#endif
21997
#ifdef __cplusplus
21998
}
21999
#endif
22000
 
22001
int
22002
main ()
22003
{
22004
return f != $ac_func;
22005
  ;
22006
  return 0;
22007
}
22008
_ACEOF
22009
rm -f conftest.$ac_objext conftest$ac_exeext
22010
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22011
  (eval $ac_link) 2>conftest.er1
22012
  ac_status=$?
22013
  grep -v '^ *+' conftest.er1 >conftest.err
22014
  rm -f conftest.er1
22015
  cat conftest.err >&5
22016
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22017
  (exit $ac_status); } &&
22018
         { ac_try='test -z "$ac_c_werror_flag"
22019
                         || test ! -s conftest.err'
22020
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22021
  (eval $ac_try) 2>&5
22022
  ac_status=$?
22023
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22024
  (exit $ac_status); }; } &&
22025
         { ac_try='test -s conftest$ac_exeext'
22026
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22027
  (eval $ac_try) 2>&5
22028
  ac_status=$?
22029
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22030
  (exit $ac_status); }; }; then
22031
  eval "$as_ac_var=yes"
22032
else
22033
  echo "$as_me: failed program was:" >&5
22034
sed 's/^/| /' conftest.$ac_ext >&5
22035
 
22036
eval "$as_ac_var=no"
22037
fi
22038
rm -f conftest.err conftest.$ac_objext \
22039
      conftest$ac_exeext conftest.$ac_ext
22040
fi
22041
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22042
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22043
if test `eval echo '${'$as_ac_var'}'` = yes; then
22044
  cat >>confdefs.h <<_ACEOF
22045
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22046
_ACEOF
22047
 
22048
fi
22049
done
22050
 
22051
 
22052
 
22053
 
22054
## -------- ##
22055
## Outputs. ##
22056
## -------- ##
22057
          ac_config_files="$ac_config_files Makefile"
22058
 
22059
cat >confcache <<\_ACEOF
22060
# This file is a shell script that caches the results of configure
22061
# tests run on this system so they can be shared between configure
22062
# scripts and configure runs, see configure's option --config-cache.
22063
# It is not useful on other systems.  If it contains results you don't
22064
# want to keep, you may remove or edit it.
22065
#
22066
# config.status only pays attention to the cache file if you give it
22067
# the --recheck option to rerun configure.
22068
#
22069
# `ac_cv_env_foo' variables (set or unset) will be overridden when
22070
# loading this file, other *unset* `ac_cv_foo' will be assigned the
22071
# following values.
22072
 
22073
_ACEOF
22074
 
22075
# The following way of writing the cache mishandles newlines in values,
22076
# but we know of no workaround that is simple, portable, and efficient.
22077
# So, don't put newlines in cache variables' values.
22078
# Ultrix sh set writes to stderr and can't be redirected directly,
22079
# and sets the high bit in the cache file unless we assign to the vars.
22080
{
22081
  (set) 2>&1 |
22082
    case `(ac_space=' '; set | grep ac_space) 2>&1` in
22083
    *ac_space=\ *)
22084
      # `set' does not quote correctly, so add quotes (double-quote
22085
      # substitution turns \\\\ into \\, and sed turns \\ into \).
22086
      sed -n \
22087
        "s/'/'\\\\''/g;
22088
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22089
      ;;
22090
    *)
22091
      # `set' quotes correctly as required by POSIX, so do not add quotes.
22092
      sed -n \
22093
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
22094
      ;;
22095
    esac;
22096
} |
22097
  sed '
22098
     t clear
22099
     : clear
22100
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22101
     t end
22102
     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22103
     : end' >>confcache
22104
if diff $cache_file confcache >/dev/null 2>&1; then :; else
22105
  if test -w $cache_file; then
22106
    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
22107
    cat confcache >$cache_file
22108
  else
22109
    echo "not updating unwritable cache $cache_file"
22110
  fi
22111
fi
22112
rm -f confcache
22113
 
22114
test "x$prefix" = xNONE && prefix=$ac_default_prefix
22115
# Let make expand exec_prefix.
22116
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22117
 
22118
# VPATH may cause trouble with some makes, so we remove $(srcdir),
22119
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22120
# trailing colons and then remove the whole line if VPATH becomes empty
22121
# (actually we leave an empty line to preserve line numbers).
22122
if test "x$srcdir" = x.; then
22123
  ac_vpsub='/^[  ]*VPATH[        ]*=/{
22124
s/:*\$(srcdir):*/:/;
22125
s/:*\${srcdir}:*/:/;
22126
s/:*@srcdir@:*/:/;
22127
s/^\([^=]*=[     ]*\):*/\1/;
22128
s/:*$//;
22129
s/^[^=]*=[       ]*$//;
22130
}'
22131
fi
22132
 
22133
# Transform confdefs.h into DEFS.
22134
# Protect against shell expansion while executing Makefile rules.
22135
# Protect against Makefile macro expansion.
22136
#
22137
# If the first sed substitution is executed (which looks for macros that
22138
# take arguments), then we branch to the quote section.  Otherwise,
22139
# look for a macro that doesn't take arguments.
22140
cat >confdef2opt.sed <<\_ACEOF
22141
t clear
22142
: clear
22143
s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*([^)]*)\)[   ]*\(.*\),-D\1=\2,g
22144
t quote
22145
s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\),-D\1=\2,g
22146
t quote
22147
d
22148
: quote
22149
s,[      `~#$^&*(){}\\|;'"<>?],\\&,g
22150
s,\[,\\&,g
22151
s,\],\\&,g
22152
s,\$,$$,g
22153
p
22154
_ACEOF
22155
# We use echo to avoid assuming a particular line-breaking character.
22156
# The extra dot is to prevent the shell from consuming trailing
22157
# line-breaks from the sub-command output.  A line-break within
22158
# single-quotes doesn't work because, if this script is created in a
22159
# platform that uses two characters for line-breaks (e.g., DOS), tr
22160
# would break.
22161
ac_LF_and_DOT=`echo; echo .`
22162
DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
22163
rm -f confdef2opt.sed
22164
 
22165
 
22166
ac_libobjs=
22167
ac_ltlibobjs=
22168
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22169
  # 1. Remove the extension, and $U if already installed.
22170
  ac_i=`echo "$ac_i" |
22171
         sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
22172
  # 2. Add them.
22173
  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
22174
  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
22175
done
22176
LIBOBJS=$ac_libobjs
22177
 
22178
LTLIBOBJS=$ac_ltlibobjs
22179
 
22180
 
22181
if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
22182
  { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
22183
Usually this means the macro was only invoked conditionally." >&5
22184
echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
22185
Usually this means the macro was only invoked conditionally." >&2;}
22186
   { (exit 1); exit 1; }; }
22187
fi
22188
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
22189
  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
22190
Usually this means the macro was only invoked conditionally." >&5
22191
echo "$as_me: error: conditional \"AMDEP\" was never defined.
22192
Usually this means the macro was only invoked conditionally." >&2;}
22193
   { (exit 1); exit 1; }; }
22194
fi
22195
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22196
  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
22197
Usually this means the macro was only invoked conditionally." >&5
22198
echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
22199
Usually this means the macro was only invoked conditionally." >&2;}
22200
   { (exit 1); exit 1; }; }
22201
fi
22202
if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
22203
  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
22204
Usually this means the macro was only invoked conditionally." >&5
22205
echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
22206
Usually this means the macro was only invoked conditionally." >&2;}
22207
   { (exit 1); exit 1; }; }
22208
fi
22209
if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
22210
  { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
22211
Usually this means the macro was only invoked conditionally." >&5
22212
echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
22213
Usually this means the macro was only invoked conditionally." >&2;}
22214
   { (exit 1); exit 1; }; }
22215
fi
22216
if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
22217
  { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
22218
Usually this means the macro was only invoked conditionally." >&5
22219
echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
22220
Usually this means the macro was only invoked conditionally." >&2;}
22221
   { (exit 1); exit 1; }; }
22222
fi
22223
 
22224
: ${CONFIG_STATUS=./config.status}
22225
ac_clean_files_save=$ac_clean_files
22226
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22227
{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22228
echo "$as_me: creating $CONFIG_STATUS" >&6;}
22229
cat >$CONFIG_STATUS <<_ACEOF
22230
#! $SHELL
22231
# Generated by $as_me.
22232
# Run this file to recreate the current configuration.
22233
# Compiler output produced by configure, useful for debugging
22234
# configure, is in config.log if it exists.
22235
 
22236
debug=false
22237
ac_cs_recheck=false
22238
ac_cs_silent=false
22239
SHELL=\${CONFIG_SHELL-$SHELL}
22240
_ACEOF
22241
 
22242
cat >>$CONFIG_STATUS <<\_ACEOF
22243
## --------------------- ##
22244
## M4sh Initialization.  ##
22245
## --------------------- ##
22246
 
22247
# Be Bourne compatible
22248
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22249
  emulate sh
22250
  NULLCMD=:
22251
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22252
  # is contrary to our usage.  Disable this feature.
22253
  alias -g '${1+"$@"}'='"$@"'
22254
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22255
  set -o posix
22256
fi
22257
DUALCASE=1; export DUALCASE # for MKS sh
22258
 
22259
# Support unset when possible.
22260
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
22261
  as_unset=unset
22262
else
22263
  as_unset=false
22264
fi
22265
 
22266
 
22267
# Work around bugs in pre-3.0 UWIN ksh.
22268
$as_unset ENV MAIL MAILPATH
22269
PS1='$ '
22270
PS2='> '
22271
PS4='+ '
22272
 
22273
# NLS nuisances.
22274
for as_var in \
22275
  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22276
  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22277
  LC_TELEPHONE LC_TIME
22278
do
22279
  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
22280
    eval $as_var=C; export $as_var
22281
  else
22282
    $as_unset $as_var
22283
  fi
22284
done
22285
 
22286
# Required to use basename.
22287
if expr a : '\(a\)' >/dev/null 2>&1; then
22288
  as_expr=expr
22289
else
22290
  as_expr=false
22291
fi
22292
 
22293
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
22294
  as_basename=basename
22295
else
22296
  as_basename=false
22297
fi
22298
 
22299
 
22300
# Name of the executable.
22301
as_me=`$as_basename "$0" ||
22302
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22303
         X"$0" : 'X\(//\)$' \| \
22304
         X"$0" : 'X\(/\)$' \| \
22305
         .     : '\(.\)' 2>/dev/null ||
22306
echo X/"$0" |
22307
    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
22308
          /^X\/\(\/\/\)$/{ s//\1/; q; }
22309
          /^X\/\(\/\).*/{ s//\1/; q; }
22310
          s/.*/./; q'`
22311
 
22312
 
22313
# PATH needs CR, and LINENO needs CR and PATH.
22314
# Avoid depending upon Character Ranges.
22315
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22316
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22317
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22318
as_cr_digits='0123456789'
22319
as_cr_alnum=$as_cr_Letters$as_cr_digits
22320
 
22321
# The user is always right.
22322
if test "${PATH_SEPARATOR+set}" != set; then
22323
  echo "#! /bin/sh" >conf$$.sh
22324
  echo  "exit 0"   >>conf$$.sh
22325
  chmod +x conf$$.sh
22326
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22327
    PATH_SEPARATOR=';'
22328
  else
22329
    PATH_SEPARATOR=:
22330
  fi
22331
  rm -f conf$$.sh
22332
fi
22333
 
22334
 
22335
  as_lineno_1=$LINENO
22336
  as_lineno_2=$LINENO
22337
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22338
  test "x$as_lineno_1" != "x$as_lineno_2" &&
22339
  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
22340
  # Find who we are.  Look in the path if we contain no path at all
22341
  # relative or not.
22342
  case $0 in
22343
    *[\\/]* ) as_myself=$0 ;;
22344
    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22345
for as_dir in $PATH
22346
do
22347
  IFS=$as_save_IFS
22348
  test -z "$as_dir" && as_dir=.
22349
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22350
done
22351
 
22352
       ;;
22353
  esac
22354
  # We did not find ourselves, most probably we were run as `sh COMMAND'
22355
  # in which case we are not to be found in the path.
22356
  if test "x$as_myself" = x; then
22357
    as_myself=$0
22358
  fi
22359
  if test ! -f "$as_myself"; then
22360
    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
22361
echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
22362
   { (exit 1); exit 1; }; }
22363
  fi
22364
  case $CONFIG_SHELL in
22365
  '')
22366
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22367
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
22368
do
22369
  IFS=$as_save_IFS
22370
  test -z "$as_dir" && as_dir=.
22371
  for as_base in sh bash ksh sh5; do
22372
         case $as_dir in
22373
         /*)
22374
           if ("$as_dir/$as_base" -c '
22375
  as_lineno_1=$LINENO
22376
  as_lineno_2=$LINENO
22377
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22378
  test "x$as_lineno_1" != "x$as_lineno_2" &&
22379
  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
22380
             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
22381
             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
22382
             CONFIG_SHELL=$as_dir/$as_base
22383
             export CONFIG_SHELL
22384
             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
22385
           fi;;
22386
         esac
22387
       done
22388
done
22389
;;
22390
  esac
22391
 
22392
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22393
  # uniformly replaced by the line number.  The first 'sed' inserts a
22394
  # line-number line before each line; the second 'sed' does the real
22395
  # work.  The second script uses 'N' to pair each line-number line
22396
  # with the numbered line, and appends trailing '-' during
22397
  # substitution so that $LINENO is not a special case at line end.
22398
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22399
  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
22400
  sed '=' <$as_myself |
22401
    sed '
22402
      N
22403
      s,$,-,
22404
      : loop
22405
      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
22406
      t loop
22407
      s,-$,,
22408
      s,^['$as_cr_digits']*\n,,
22409
    ' >$as_me.lineno &&
22410
  chmod +x $as_me.lineno ||
22411
    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
22412
echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
22413
   { (exit 1); exit 1; }; }
22414
 
22415
  # Don't try to exec as it changes $[0], causing all sort of problems
22416
  # (the dirname of $[0] is not the place where we might find the
22417
  # original and so on.  Autoconf is especially sensible to this).
22418
  . ./$as_me.lineno
22419
  # Exit status is that of the last command.
22420
  exit
22421
}
22422
 
22423
 
22424
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
22425
  *c*,-n*) ECHO_N= ECHO_C='
22426
' ECHO_T='      ' ;;
22427
  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
22428
  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
22429
esac
22430
 
22431
if expr a : '\(a\)' >/dev/null 2>&1; then
22432
  as_expr=expr
22433
else
22434
  as_expr=false
22435
fi
22436
 
22437
rm -f conf$$ conf$$.exe conf$$.file
22438
echo >conf$$.file
22439
if ln -s conf$$.file conf$$ 2>/dev/null; then
22440
  # We could just check for DJGPP; but this test a) works b) is more generic
22441
  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
22442
  if test -f conf$$.exe; then
22443
    # Don't use ln at all; we don't have any links
22444
    as_ln_s='cp -p'
22445
  else
22446
    as_ln_s='ln -s'
22447
  fi
22448
elif ln conf$$.file conf$$ 2>/dev/null; then
22449
  as_ln_s=ln
22450
else
22451
  as_ln_s='cp -p'
22452
fi
22453
rm -f conf$$ conf$$.exe conf$$.file
22454
 
22455
if mkdir -p . 2>/dev/null; then
22456
  as_mkdir_p=:
22457
else
22458
  test -d ./-p && rmdir ./-p
22459
  as_mkdir_p=false
22460
fi
22461
 
22462
as_executable_p="test -f"
22463
 
22464
# Sed expression to map a string onto a valid CPP name.
22465
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22466
 
22467
# Sed expression to map a string onto a valid variable name.
22468
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22469
 
22470
 
22471
# IFS
22472
# We need space, tab and new line, in precisely that order.
22473
as_nl='
22474
'
22475
IFS="   $as_nl"
22476
 
22477
# CDPATH.
22478
$as_unset CDPATH
22479
 
22480
exec 6>&1
22481
 
22482
# Open the log real soon, to keep \$[0] and so on meaningful, and to
22483
# report actual input values of CONFIG_FILES etc. instead of their
22484
# values after options handling.  Logging --version etc. is OK.
22485
exec 5>>config.log
22486
{
22487
  echo
22488
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22489
## Running $as_me. ##
22490
_ASBOX
22491
} >&5
22492
cat >&5 <<_CSEOF
22493
 
22494
This file was extended by libltdl $as_me 1.2, which was
22495
generated by GNU Autoconf 2.59.  Invocation command line was
22496
 
22497
  CONFIG_FILES    = $CONFIG_FILES
22498
  CONFIG_HEADERS  = $CONFIG_HEADERS
22499
  CONFIG_LINKS    = $CONFIG_LINKS
22500
  CONFIG_COMMANDS = $CONFIG_COMMANDS
22501
  $ $0 $@
22502
 
22503
_CSEOF
22504
echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
22505
echo >&5
22506
_ACEOF
22507
 
22508
# Files that config.status was made for.
22509
if test -n "$ac_config_files"; then
22510
  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
22511
fi
22512
 
22513
if test -n "$ac_config_headers"; then
22514
  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
22515
fi
22516
 
22517
if test -n "$ac_config_links"; then
22518
  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
22519
fi
22520
 
22521
if test -n "$ac_config_commands"; then
22522
  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
22523
fi
22524
 
22525
cat >>$CONFIG_STATUS <<\_ACEOF
22526
 
22527
ac_cs_usage="\
22528
\`$as_me' instantiates files from templates according to the
22529
current configuration.
22530
 
22531
Usage: $0 [OPTIONS] [FILE]...
22532
 
22533
  -h, --help       print this help, then exit
22534
  -V, --version    print version number, then exit
22535
  -q, --quiet      do not print progress messages
22536
  -d, --debug      don't remove temporary files
22537
      --recheck    update $as_me by reconfiguring in the same conditions
22538
  --file=FILE[:TEMPLATE]
22539
                   instantiate the configuration file FILE
22540
 
22541
Configuration files:
22542
$config_files
22543
 
22544
Configuration commands:
22545
$config_commands
22546
 
22547
Report bugs to ."
22548
_ACEOF
22549
 
22550
cat >>$CONFIG_STATUS <<_ACEOF
22551
ac_cs_version="\\
22552
libltdl config.status 1.2
22553
configured by $0, generated by GNU Autoconf 2.59,
22554
  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
22555
 
22556
Copyright (C) 2003 Free Software Foundation, Inc.
22557
This config.status script is free software; the Free Software Foundation
22558
gives unlimited permission to copy, distribute and modify it."
22559
srcdir=$srcdir
22560
INSTALL="$INSTALL"
22561
_ACEOF
22562
 
22563
cat >>$CONFIG_STATUS <<\_ACEOF
22564
# If no file are specified by the user, then we need to provide default
22565
# value.  By we need to know if files were specified by the user.
22566
ac_need_defaults=:
22567
while test $# != 0
22568
do
22569
  case $1 in
22570
  --*=*)
22571
    ac_option=`expr "x$1" : 'x\([^=]*\)='`
22572
    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
22573
    ac_shift=:
22574
    ;;
22575
  -*)
22576
    ac_option=$1
22577
    ac_optarg=$2
22578
    ac_shift=shift
22579
    ;;
22580
  *) # This is not an option, so the user has probably given explicit
22581
     # arguments.
22582
     ac_option=$1
22583
     ac_need_defaults=false;;
22584
  esac
22585
 
22586
  case $ac_option in
22587
  # Handling of the options.
22588
_ACEOF
22589
cat >>$CONFIG_STATUS <<\_ACEOF
22590
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22591
    ac_cs_recheck=: ;;
22592
  --version | --vers* | -V )
22593
    echo "$ac_cs_version"; exit 0 ;;
22594
  --he | --h)
22595
    # Conflict between --help and --header
22596
    { { echo "$as_me:$LINENO: error: ambiguous option: $1
22597
Try \`$0 --help' for more information." >&5
22598
echo "$as_me: error: ambiguous option: $1
22599
Try \`$0 --help' for more information." >&2;}
22600
   { (exit 1); exit 1; }; };;
22601
  --help | --hel | -h )
22602
    echo "$ac_cs_usage"; exit 0 ;;
22603
  --debug | --d* | -d )
22604
    debug=: ;;
22605
  --file | --fil | --fi | --f )
22606
    $ac_shift
22607
    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
22608
    ac_need_defaults=false;;
22609
  --header | --heade | --head | --hea )
22610
    $ac_shift
22611
    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
22612
    ac_need_defaults=false;;
22613
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22614
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
22615
    ac_cs_silent=: ;;
22616
 
22617
  # This is an error.
22618
  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
22619
Try \`$0 --help' for more information." >&5
22620
echo "$as_me: error: unrecognized option: $1
22621
Try \`$0 --help' for more information." >&2;}
22622
   { (exit 1); exit 1; }; } ;;
22623
 
22624
  *) ac_config_targets="$ac_config_targets $1" ;;
22625
 
22626
  esac
22627
  shift
22628
done
22629
 
22630
ac_configure_extra_args=
22631
 
22632
if $ac_cs_silent; then
22633
  exec 6>/dev/null
22634
  ac_configure_extra_args="$ac_configure_extra_args --silent"
22635
fi
22636
 
22637
_ACEOF
22638
cat >>$CONFIG_STATUS <<_ACEOF
22639
if \$ac_cs_recheck; then
22640
  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22641
  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22642
fi
22643
 
22644
_ACEOF
22645
 
22646
cat >>$CONFIG_STATUS <<_ACEOF
22647
#
22648
# INIT-COMMANDS section.
22649
#
22650
 
22651
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
22652
 
22653
_ACEOF
22654
 
22655
 
22656
 
22657
cat >>$CONFIG_STATUS <<\_ACEOF
22658
for ac_config_target in $ac_config_targets
22659
do
22660
  case "$ac_config_target" in
22661
  # Handling of arguments.
22662
  "config.h" ) CONFIG_FILES="$CONFIG_FILES config.h:config-h.in" ;;
22663
  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22664
  "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
22665
  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22666
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22667
   { (exit 1); exit 1; }; };;
22668
  esac
22669
done
22670
 
22671
# If the user did not use the arguments to specify the items to instantiate,
22672
# then the envvar interface is used.  Set only those that are not.
22673
# We use the long form for the default assignment because of an extremely
22674
# bizarre bug on SunOS 4.1.3.
22675
if $ac_need_defaults; then
22676
  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22677
  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22678
fi
22679
 
22680
# Have a temporary directory for convenience.  Make it in the build tree
22681
# simply because there is no reason to put it here, and in addition,
22682
# creating and moving files from /tmp can sometimes cause problems.
22683
# Create a temporary directory, and hook for its removal unless debugging.
22684
$debug ||
22685
{
22686
  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
22687
  trap '{ (exit 1); exit 1; }' 1 2 13 15
22688
}
22689
 
22690
# Create a (secure) tmp directory for tmp files.
22691
 
22692
{
22693
  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
22694
  test -n "$tmp" && test -d "$tmp"
22695
}  ||
22696
{
22697
  tmp=./confstat$$-$RANDOM
22698
  (umask 077 && mkdir $tmp)
22699
} ||
22700
{
22701
   echo "$me: cannot create a temporary directory in ." >&2
22702
   { (exit 1); exit 1; }
22703
}
22704
 
22705
_ACEOF
22706
 
22707
cat >>$CONFIG_STATUS <<_ACEOF
22708
 
22709
#
22710
# CONFIG_FILES section.
22711
#
22712
 
22713
# No need to generate the scripts if there are no CONFIG_FILES.
22714
# This happens for instance when ./config.status config.h
22715
if test -n "\$CONFIG_FILES"; then
22716
  # Protect against being on the right side of a sed subst in config.status.
22717
  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
22718
   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
22719
s,@SHELL@,$SHELL,;t t
22720
s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
22721
s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
22722
s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
22723
s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
22724
s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
22725
s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
22726
s,@exec_prefix@,$exec_prefix,;t t
22727
s,@prefix@,$prefix,;t t
22728
s,@program_transform_name@,$program_transform_name,;t t
22729
s,@bindir@,$bindir,;t t
22730
s,@sbindir@,$sbindir,;t t
22731
s,@libexecdir@,$libexecdir,;t t
22732
s,@datadir@,$datadir,;t t
22733
s,@sysconfdir@,$sysconfdir,;t t
22734
s,@sharedstatedir@,$sharedstatedir,;t t
22735
s,@localstatedir@,$localstatedir,;t t
22736
s,@libdir@,$libdir,;t t
22737
s,@includedir@,$includedir,;t t
22738
s,@oldincludedir@,$oldincludedir,;t t
22739
s,@infodir@,$infodir,;t t
22740
s,@mandir@,$mandir,;t t
22741
s,@build_alias@,$build_alias,;t t
22742
s,@host_alias@,$host_alias,;t t
22743
s,@target_alias@,$target_alias,;t t
22744
s,@DEFS@,$DEFS,;t t
22745
s,@ECHO_C@,$ECHO_C,;t t
22746
s,@ECHO_N@,$ECHO_N,;t t
22747
s,@ECHO_T@,$ECHO_T,;t t
22748
s,@LIBS@,$LIBS,;t t
22749
s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
22750
s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
22751
s,@INSTALL_DATA@,$INSTALL_DATA,;t t
22752
s,@CYGPATH_W@,$CYGPATH_W,;t t
22753
s,@PACKAGE@,$PACKAGE,;t t
22754
s,@VERSION@,$VERSION,;t t
22755
s,@ACLOCAL@,$ACLOCAL,;t t
22756
s,@AUTOCONF@,$AUTOCONF,;t t
22757
s,@AUTOMAKE@,$AUTOMAKE,;t t
22758
s,@AUTOHEADER@,$AUTOHEADER,;t t
22759
s,@MAKEINFO@,$MAKEINFO,;t t
22760
s,@install_sh@,$install_sh,;t t
22761
s,@STRIP@,$STRIP,;t t
22762
s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
22763
s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
22764
s,@mkdir_p@,$mkdir_p,;t t
22765
s,@AWK@,$AWK,;t t
22766
s,@SET_MAKE@,$SET_MAKE,;t t
22767
s,@am__leading_dot@,$am__leading_dot,;t t
22768
s,@AMTAR@,$AMTAR,;t t
22769
s,@am__tar@,$am__tar,;t t
22770
s,@am__untar@,$am__untar,;t t
22771
s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
22772
s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
22773
s,@MAINT@,$MAINT,;t t
22774
s,@CC@,$CC,;t t
22775
s,@CFLAGS@,$CFLAGS,;t t
22776
s,@LDFLAGS@,$LDFLAGS,;t t
22777
s,@CPPFLAGS@,$CPPFLAGS,;t t
22778
s,@ac_ct_CC@,$ac_ct_CC,;t t
22779
s,@EXEEXT@,$EXEEXT,;t t
22780
s,@OBJEXT@,$OBJEXT,;t t
22781
s,@DEPDIR@,$DEPDIR,;t t
22782
s,@am__include@,$am__include,;t t
22783
s,@am__quote@,$am__quote,;t t
22784
s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
22785
s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
22786
s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
22787
s,@CCDEPMODE@,$CCDEPMODE,;t t
22788
s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
22789
s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
22790
s,@build@,$build,;t t
22791
s,@build_cpu@,$build_cpu,;t t
22792
s,@build_vendor@,$build_vendor,;t t
22793
s,@build_os@,$build_os,;t t
22794
s,@host@,$host,;t t
22795
s,@host_cpu@,$host_cpu,;t t
22796
s,@host_vendor@,$host_vendor,;t t
22797
s,@host_os@,$host_os,;t t
22798
s,@EGREP@,$EGREP,;t t
22799
s,@LN_S@,$LN_S,;t t
22800
s,@ECHO@,$ECHO,;t t
22801
s,@AR@,$AR,;t t
22802
s,@ac_ct_AR@,$ac_ct_AR,;t t
22803
s,@RANLIB@,$RANLIB,;t t
22804
s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
22805
s,@DLLTOOL@,$DLLTOOL,;t t
22806
s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
22807
s,@AS@,$AS,;t t
22808
s,@ac_ct_AS@,$ac_ct_AS,;t t
22809
s,@OBJDUMP@,$OBJDUMP,;t t
22810
s,@ac_ct_OBJDUMP@,$ac_ct_OBJDUMP,;t t
22811
s,@CPP@,$CPP,;t t
22812
s,@CXX@,$CXX,;t t
22813
s,@CXXFLAGS@,$CXXFLAGS,;t t
22814
s,@ac_ct_CXX@,$ac_ct_CXX,;t t
22815
s,@CXXDEPMODE@,$CXXDEPMODE,;t t
22816
s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
22817
s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
22818
s,@CXXCPP@,$CXXCPP,;t t
22819
s,@F77@,$F77,;t t
22820
s,@FFLAGS@,$FFLAGS,;t t
22821
s,@ac_ct_F77@,$ac_ct_F77,;t t
22822
s,@LIBTOOL@,$LIBTOOL,;t t
22823
s,@LIBTOOL_DEPS@,$LIBTOOL_DEPS,;t t
22824
s,@INSTALL_LTDL_TRUE@,$INSTALL_LTDL_TRUE,;t t
22825
s,@INSTALL_LTDL_FALSE@,$INSTALL_LTDL_FALSE,;t t
22826
s,@CONVENIENCE_LTDL_TRUE@,$CONVENIENCE_LTDL_TRUE,;t t
22827
s,@CONVENIENCE_LTDL_FALSE@,$CONVENIENCE_LTDL_FALSE,;t t
22828
s,@LIBADD_DL@,$LIBADD_DL,;t t
22829
s,@LIBOBJS@,$LIBOBJS,;t t
22830
s,@LTLIBOBJS@,$LTLIBOBJS,;t t
22831
CEOF
22832
 
22833
_ACEOF
22834
 
22835
  cat >>$CONFIG_STATUS <<\_ACEOF
22836
  # Split the substitutions into bite-sized pieces for seds with
22837
  # small command number limits, like on Digital OSF/1 and HP-UX.
22838
  ac_max_sed_lines=48
22839
  ac_sed_frag=1 # Number of current file.
22840
  ac_beg=1 # First line for current file.
22841
  ac_end=$ac_max_sed_lines # Line after last line for current file.
22842
  ac_more_lines=:
22843
  ac_sed_cmds=
22844
  while $ac_more_lines; do
22845
    if test $ac_beg -gt 1; then
22846
      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22847
    else
22848
      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22849
    fi
22850
    if test ! -s $tmp/subs.frag; then
22851
      ac_more_lines=false
22852
    else
22853
      # The purpose of the label and of the branching condition is to
22854
      # speed up the sed processing (if there are no `@' at all, there
22855
      # is no need to browse any of the substitutions).
22856
      # These are the two extra sed commands mentioned above.
22857
      (echo ':t
22858
  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
22859
      if test -z "$ac_sed_cmds"; then
22860
        ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
22861
      else
22862
        ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
22863
      fi
22864
      ac_sed_frag=`expr $ac_sed_frag + 1`
22865
      ac_beg=$ac_end
22866
      ac_end=`expr $ac_end + $ac_max_sed_lines`
22867
    fi
22868
  done
22869
  if test -z "$ac_sed_cmds"; then
22870
    ac_sed_cmds=cat
22871
  fi
22872
fi # test -n "$CONFIG_FILES"
22873
 
22874
_ACEOF
22875
cat >>$CONFIG_STATUS <<\_ACEOF
22876
for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
22877
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22878
  case $ac_file in
22879
  - | *:- | *:-:* ) # input from stdin
22880
        cat >$tmp/stdin
22881
        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22882
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22883
  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22884
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22885
  * )   ac_file_in=$ac_file.in ;;
22886
  esac
22887
 
22888
  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
22889
  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22890
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22891
         X"$ac_file" : 'X\(//\)[^/]' \| \
22892
         X"$ac_file" : 'X\(//\)$' \| \
22893
         X"$ac_file" : 'X\(/\)' \| \
22894
         .     : '\(.\)' 2>/dev/null ||
22895
echo X"$ac_file" |
22896
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22897
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22898
          /^X\(\/\/\)$/{ s//\1/; q; }
22899
          /^X\(\/\).*/{ s//\1/; q; }
22900
          s/.*/./; q'`
22901
  { if $as_mkdir_p; then
22902
    mkdir -p "$ac_dir"
22903
  else
22904
    as_dir="$ac_dir"
22905
    as_dirs=
22906
    while test ! -d "$as_dir"; do
22907
      as_dirs="$as_dir $as_dirs"
22908
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
22909
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22910
         X"$as_dir" : 'X\(//\)[^/]' \| \
22911
         X"$as_dir" : 'X\(//\)$' \| \
22912
         X"$as_dir" : 'X\(/\)' \| \
22913
         .     : '\(.\)' 2>/dev/null ||
22914
echo X"$as_dir" |
22915
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22916
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22917
          /^X\(\/\/\)$/{ s//\1/; q; }
22918
          /^X\(\/\).*/{ s//\1/; q; }
22919
          s/.*/./; q'`
22920
    done
22921
    test ! -n "$as_dirs" || mkdir $as_dirs
22922
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22923
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22924
   { (exit 1); exit 1; }; }; }
22925
 
22926
  ac_builddir=.
22927
 
22928
if test "$ac_dir" != .; then
22929
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22930
  # A "../" for each directory in $ac_dir_suffix.
22931
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22932
else
22933
  ac_dir_suffix= ac_top_builddir=
22934
fi
22935
 
22936
case $srcdir in
22937
  .)  # No --srcdir option.  We are building in place.
22938
    ac_srcdir=.
22939
    if test -z "$ac_top_builddir"; then
22940
       ac_top_srcdir=.
22941
    else
22942
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22943
    fi ;;
22944
  [\\/]* | ?:[\\/]* )  # Absolute path.
22945
    ac_srcdir=$srcdir$ac_dir_suffix;
22946
    ac_top_srcdir=$srcdir ;;
22947
  *) # Relative path.
22948
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22949
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
22950
esac
22951
 
22952
# Do not use `cd foo && pwd` to compute absolute paths, because
22953
# the directories may not exist.
22954
case `pwd` in
22955
.) ac_abs_builddir="$ac_dir";;
22956
*)
22957
  case "$ac_dir" in
22958
  .) ac_abs_builddir=`pwd`;;
22959
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
22960
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
22961
  esac;;
22962
esac
22963
case $ac_abs_builddir in
22964
.) ac_abs_top_builddir=${ac_top_builddir}.;;
22965
*)
22966
  case ${ac_top_builddir}. in
22967
  .) ac_abs_top_builddir=$ac_abs_builddir;;
22968
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
22969
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
22970
  esac;;
22971
esac
22972
case $ac_abs_builddir in
22973
.) ac_abs_srcdir=$ac_srcdir;;
22974
*)
22975
  case $ac_srcdir in
22976
  .) ac_abs_srcdir=$ac_abs_builddir;;
22977
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
22978
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
22979
  esac;;
22980
esac
22981
case $ac_abs_builddir in
22982
.) ac_abs_top_srcdir=$ac_top_srcdir;;
22983
*)
22984
  case $ac_top_srcdir in
22985
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
22986
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
22987
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
22988
  esac;;
22989
esac
22990
 
22991
 
22992
  case $INSTALL in
22993
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22994
  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
22995
  esac
22996
 
22997
  if test x"$ac_file" != x-; then
22998
    { echo "$as_me:$LINENO: creating $ac_file" >&5
22999
echo "$as_me: creating $ac_file" >&6;}
23000
    rm -f "$ac_file"
23001
  fi
23002
  # Let's still pretend it is `configure' which instantiates (i.e., don't
23003
  # use $as_me), people would be surprised to read:
23004
  #    /* config.h.  Generated by config.status.  */
23005
  if test x"$ac_file" = x-; then
23006
    configure_input=
23007
  else
23008
    configure_input="$ac_file.  "
23009
  fi
23010
  configure_input=$configure_input"Generated from `echo $ac_file_in |
23011
                                     sed 's,.*/,,'` by configure."
23012
 
23013
  # First look for the input files in the build tree, otherwise in the
23014
  # src tree.
23015
  ac_file_inputs=`IFS=:
23016
    for f in $ac_file_in; do
23017
      case $f in
23018
      -) echo $tmp/stdin ;;
23019
      [\\/$]*)
23020
         # Absolute (can't be DOS-style, as IFS=:)
23021
         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23022
echo "$as_me: error: cannot find input file: $f" >&2;}
23023
   { (exit 1); exit 1; }; }
23024
         echo "$f";;
23025
      *) # Relative
23026
         if test -f "$f"; then
23027
           # Build tree
23028
           echo "$f"
23029
         elif test -f "$srcdir/$f"; then
23030
           # Source tree
23031
           echo "$srcdir/$f"
23032
         else
23033
           # /dev/null tree
23034
           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23035
echo "$as_me: error: cannot find input file: $f" >&2;}
23036
   { (exit 1); exit 1; }; }
23037
         fi;;
23038
      esac
23039
    done` || { (exit 1); exit 1; }
23040
_ACEOF
23041
cat >>$CONFIG_STATUS <<_ACEOF
23042
  sed "$ac_vpsub
23043
$extrasub
23044
_ACEOF
23045
cat >>$CONFIG_STATUS <<\_ACEOF
23046
:t
23047
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23048
s,@configure_input@,$configure_input,;t t
23049
s,@srcdir@,$ac_srcdir,;t t
23050
s,@abs_srcdir@,$ac_abs_srcdir,;t t
23051
s,@top_srcdir@,$ac_top_srcdir,;t t
23052
s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
23053
s,@builddir@,$ac_builddir,;t t
23054
s,@abs_builddir@,$ac_abs_builddir,;t t
23055
s,@top_builddir@,$ac_top_builddir,;t t
23056
s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
23057
s,@INSTALL@,$ac_INSTALL,;t t
23058
" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
23059
  rm -f $tmp/stdin
23060
  if test x"$ac_file" != x-; then
23061
    mv $tmp/out $ac_file
23062
  else
23063
    cat $tmp/out
23064
    rm -f $tmp/out
23065
  fi
23066
 
23067
done
23068
_ACEOF
23069
cat >>$CONFIG_STATUS <<\_ACEOF
23070
 
23071
#
23072
# CONFIG_COMMANDS section.
23073
#
23074
for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
23075
  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
23076
  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
23077
  ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
23078
$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23079
         X"$ac_dest" : 'X\(//\)[^/]' \| \
23080
         X"$ac_dest" : 'X\(//\)$' \| \
23081
         X"$ac_dest" : 'X\(/\)' \| \
23082
         .     : '\(.\)' 2>/dev/null ||
23083
echo X"$ac_dest" |
23084
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23085
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23086
          /^X\(\/\/\)$/{ s//\1/; q; }
23087
          /^X\(\/\).*/{ s//\1/; q; }
23088
          s/.*/./; q'`
23089
  { if $as_mkdir_p; then
23090
    mkdir -p "$ac_dir"
23091
  else
23092
    as_dir="$ac_dir"
23093
    as_dirs=
23094
    while test ! -d "$as_dir"; do
23095
      as_dirs="$as_dir $as_dirs"
23096
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
23097
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23098
         X"$as_dir" : 'X\(//\)[^/]' \| \
23099
         X"$as_dir" : 'X\(//\)$' \| \
23100
         X"$as_dir" : 'X\(/\)' \| \
23101
         .     : '\(.\)' 2>/dev/null ||
23102
echo X"$as_dir" |
23103
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23104
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23105
          /^X\(\/\/\)$/{ s//\1/; q; }
23106
          /^X\(\/\).*/{ s//\1/; q; }
23107
          s/.*/./; q'`
23108
    done
23109
    test ! -n "$as_dirs" || mkdir $as_dirs
23110
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23111
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23112
   { (exit 1); exit 1; }; }; }
23113
 
23114
  ac_builddir=.
23115
 
23116
if test "$ac_dir" != .; then
23117
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23118
  # A "../" for each directory in $ac_dir_suffix.
23119
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23120
else
23121
  ac_dir_suffix= ac_top_builddir=
23122
fi
23123
 
23124
case $srcdir in
23125
  .)  # No --srcdir option.  We are building in place.
23126
    ac_srcdir=.
23127
    if test -z "$ac_top_builddir"; then
23128
       ac_top_srcdir=.
23129
    else
23130
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23131
    fi ;;
23132
  [\\/]* | ?:[\\/]* )  # Absolute path.
23133
    ac_srcdir=$srcdir$ac_dir_suffix;
23134
    ac_top_srcdir=$srcdir ;;
23135
  *) # Relative path.
23136
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23137
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
23138
esac
23139
 
23140
# Do not use `cd foo && pwd` to compute absolute paths, because
23141
# the directories may not exist.
23142
case `pwd` in
23143
.) ac_abs_builddir="$ac_dir";;
23144
*)
23145
  case "$ac_dir" in
23146
  .) ac_abs_builddir=`pwd`;;
23147
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
23148
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
23149
  esac;;
23150
esac
23151
case $ac_abs_builddir in
23152
.) ac_abs_top_builddir=${ac_top_builddir}.;;
23153
*)
23154
  case ${ac_top_builddir}. in
23155
  .) ac_abs_top_builddir=$ac_abs_builddir;;
23156
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
23157
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
23158
  esac;;
23159
esac
23160
case $ac_abs_builddir in
23161
.) ac_abs_srcdir=$ac_srcdir;;
23162
*)
23163
  case $ac_srcdir in
23164
  .) ac_abs_srcdir=$ac_abs_builddir;;
23165
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
23166
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
23167
  esac;;
23168
esac
23169
case $ac_abs_builddir in
23170
.) ac_abs_top_srcdir=$ac_top_srcdir;;
23171
*)
23172
  case $ac_top_srcdir in
23173
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
23174
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
23175
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
23176
  esac;;
23177
esac
23178
 
23179
 
23180
  { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
23181
echo "$as_me: executing $ac_dest commands" >&6;}
23182
  case $ac_dest in
23183
    depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
23184
  # Strip MF so we end up with the name of the file.
23185
  mf=`echo "$mf" | sed -e 's/:.*$//'`
23186
  # Check whether this is an Automake generated Makefile or not.
23187
  # We used to match only the files named `Makefile.in', but
23188
  # some people rename them; so instead we look at the file content.
23189
  # Grep'ing the first line is not enough: some people post-process
23190
  # each Makefile.in and add a new line on top of each file to say so.
23191
  # So let's grep whole file.
23192
  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
23193
    dirpart=`(dirname "$mf") 2>/dev/null ||
23194
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23195
         X"$mf" : 'X\(//\)[^/]' \| \
23196
         X"$mf" : 'X\(//\)$' \| \
23197
         X"$mf" : 'X\(/\)' \| \
23198
         .     : '\(.\)' 2>/dev/null ||
23199
echo X"$mf" |
23200
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23201
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23202
          /^X\(\/\/\)$/{ s//\1/; q; }
23203
          /^X\(\/\).*/{ s//\1/; q; }
23204
          s/.*/./; q'`
23205
  else
23206
    continue
23207
  fi
23208
  # Extract the definition of DEPDIR, am__include, and am__quote
23209
  # from the Makefile without running `make'.
23210
  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
23211
  test -z "$DEPDIR" && continue
23212
  am__include=`sed -n 's/^am__include = //p' < "$mf"`
23213
  test -z "am__include" && continue
23214
  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
23215
  # When using ansi2knr, U may be empty or an underscore; expand it
23216
  U=`sed -n 's/^U = //p' < "$mf"`
23217
  # Find all dependency output files, they are included files with
23218
  # $(DEPDIR) in their names.  We invoke sed twice because it is the
23219
  # simplest approach to changing $(DEPDIR) to its actual value in the
23220
  # expansion.
23221
  for file in `sed -n "
23222
    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
23223
       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
23224
    # Make sure the directory exists.
23225
    test -f "$dirpart/$file" && continue
23226
    fdir=`(dirname "$file") 2>/dev/null ||
23227
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23228
         X"$file" : 'X\(//\)[^/]' \| \
23229
         X"$file" : 'X\(//\)$' \| \
23230
         X"$file" : 'X\(/\)' \| \
23231
         .     : '\(.\)' 2>/dev/null ||
23232
echo X"$file" |
23233
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23234
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23235
          /^X\(\/\/\)$/{ s//\1/; q; }
23236
          /^X\(\/\).*/{ s//\1/; q; }
23237
          s/.*/./; q'`
23238
    { if $as_mkdir_p; then
23239
    mkdir -p $dirpart/$fdir
23240
  else
23241
    as_dir=$dirpart/$fdir
23242
    as_dirs=
23243
    while test ! -d "$as_dir"; do
23244
      as_dirs="$as_dir $as_dirs"
23245
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
23246
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23247
         X"$as_dir" : 'X\(//\)[^/]' \| \
23248
         X"$as_dir" : 'X\(//\)$' \| \
23249
         X"$as_dir" : 'X\(/\)' \| \
23250
         .     : '\(.\)' 2>/dev/null ||
23251
echo X"$as_dir" |
23252
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23253
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23254
          /^X\(\/\/\)$/{ s//\1/; q; }
23255
          /^X\(\/\).*/{ s//\1/; q; }
23256
          s/.*/./; q'`
23257
    done
23258
    test ! -n "$as_dirs" || mkdir $as_dirs
23259
  fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
23260
echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
23261
   { (exit 1); exit 1; }; }; }
23262
 
23263
    # echo "creating $dirpart/$file"
23264
    echo '# dummy' > "$dirpart/$file"
23265
  done
23266
done
23267
 ;;
23268
  esac
23269
done
23270
_ACEOF
23271
 
23272
cat >>$CONFIG_STATUS <<\_ACEOF
23273
 
23274
{ (exit 0); exit 0; }
23275
_ACEOF
23276
chmod +x $CONFIG_STATUS
23277
ac_clean_files=$ac_clean_files_save
23278
 
23279
 
23280
# configure is writing to config.log, and then calls config.status.
23281
# config.status does its own redirection, appending to config.log.
23282
# Unfortunately, on DOS this fails, as config.log is still kept open
23283
# by configure, so config.status won't be able to write to it; its
23284
# output is simply discarded.  So we exec the FD to /dev/null,
23285
# effectively closing config.log, so it can be properly (re)opened and
23286
# appended to by config.status.  When coming back to configure, we
23287
# need to make the FD available again.
23288
if test "$no_create" != yes; then
23289
  ac_cs_success=:
23290
  ac_config_status_args=
23291
  test "$silent" = yes &&
23292
    ac_config_status_args="$ac_config_status_args --quiet"
23293
  exec 5>/dev/null
23294
  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23295
  exec 5>>config.log
23296
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23297
  # would make configure fail if this is the last instruction.
23298
  $ac_cs_success || { (exit 1); exit 1; }
23299
fi
23300
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.