~ubuntu-branches/ubuntu/saucy/libctl/saucy

« back to all changes in this revision

Viewing changes to configure

  • Committer: Bazaar Package Importer
  • Author(s): Josselin Mouette
  • Date: 2006-05-01 20:25:01 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20060501202501-lytbmb3oevyoqzxi
Tags: 3.0.1-1
* New upstream release (closes: #361676).
* Major rework of the debian/ directory. Switch to cdbs.
* Migrate Scheme files to a versioned location to allow several
  versions to be installed at once.
* Write a Makefile to put with the example.
* Update copyright, the library is now GPL.
* Use gfortran for the F77 wrappers.
* Standards-version is 3.7.0.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#! /bin/sh
2
2
# Guess values for system-dependent variables and create Makefiles.
3
 
# Generated by GNU Autoconf 2.57.
4
 
#
5
 
# Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
6
 
# Free Software Foundation, Inc.
 
3
# Generated by GNU Autoconf 2.59 for libctl 3.0.1.
 
4
#
 
5
# Report bugs to <stevenj@alum.mit.edu>.
 
6
#
 
7
# Copyright (C) 2003 Free Software Foundation, Inc.
7
8
# This configure script is free software; the Free Software Foundation
8
9
# gives unlimited permission to copy, distribute and modify it.
9
10
## --------------------- ##
20
21
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21
22
  set -o posix
22
23
fi
 
24
DUALCASE=1; export DUALCASE # for MKS sh
23
25
 
24
26
# Support unset when possible.
25
 
if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
 
27
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26
28
  as_unset=unset
27
29
else
28
30
  as_unset=false
41
43
  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42
44
  LC_TELEPHONE LC_TIME
43
45
do
44
 
  if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
 
46
  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45
47
    eval $as_var=C; export $as_var
46
48
  else
47
49
    $as_unset $as_var
218
220
if mkdir -p . 2>/dev/null; then
219
221
  as_mkdir_p=:
220
222
else
 
223
  test -d ./-p && rmdir ./-p
221
224
  as_mkdir_p=false
222
225
fi
223
226
 
224
227
as_executable_p="test -f"
225
228
 
226
229
# Sed expression to map a string onto a valid CPP name.
227
 
as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
 
230
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
228
231
 
229
232
# Sed expression to map a string onto a valid variable name.
230
 
as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
 
233
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
231
234
 
232
235
 
233
236
# IFS
240
243
$as_unset CDPATH
241
244
 
242
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 <<EOF
 
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=${tagnames+${tagnames},}CXX
 
397
 
 
398
tagnames=${tagnames+${tagnames},}F77
 
399
 
243
400
# Name of the host.
244
401
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
245
402
# so uname gets run too.
264
421
: ${ac_max_here_lines=38}
265
422
 
266
423
# Identity of this package.
267
 
PACKAGE_NAME=
268
 
PACKAGE_TARNAME=
269
 
PACKAGE_VERSION=
270
 
PACKAGE_STRING=
271
 
PACKAGE_BUGREPORT=
272
 
 
273
 
ac_unique_file="base/ctl.c"
274
 
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 LIBCTL_VERSION CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT SET_MAKE INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA RANLIB ac_ct_RANLIB INDENT build build_cpu build_vendor build_os host host_cpu host_vendor host_os CPP EGREP guile_ok HAVE_GUILE_CONFIG F77 FFLAGS ac_ct_F77 FLIBS LIBCTL_DIR GEN_CTL_IO LIBOBJS LTLIBOBJS'
 
424
PACKAGE_NAME='libctl'
 
425
PACKAGE_TARNAME='libctl'
 
426
PACKAGE_VERSION='3.0.1'
 
427
PACKAGE_STRING='libctl 3.0.1'
 
428
PACKAGE_BUGREPORT='stevenj@alum.mit.edu'
 
429
 
 
430
ac_unique_file="src/ctl.c"
 
431
# Factoring default headers for most tests.
 
432
ac_includes_default="\
 
433
#include <stdio.h>
 
434
#if HAVE_SYS_TYPES_H
 
435
# include <sys/types.h>
 
436
#endif
 
437
#if HAVE_SYS_STAT_H
 
438
# include <sys/stat.h>
 
439
#endif
 
440
#if STDC_HEADERS
 
441
# include <stdlib.h>
 
442
# include <stddef.h>
 
443
#else
 
444
# if HAVE_STDLIB_H
 
445
#  include <stdlib.h>
 
446
# endif
 
447
#endif
 
448
#if HAVE_STRING_H
 
449
# if !STDC_HEADERS && HAVE_MEMORY_H
 
450
#  include <memory.h>
 
451
# endif
 
452
# include <string.h>
 
453
#endif
 
454
#if HAVE_STRINGS_H
 
455
# include <strings.h>
 
456
#endif
 
457
#if HAVE_INTTYPES_H
 
458
# include <inttypes.h>
 
459
#else
 
460
# if HAVE_STDINT_H
 
461
#  include <stdint.h>
 
462
# endif
 
463
#endif
 
464
#if HAVE_UNISTD_H
 
465
# include <unistd.h>
 
466
#endif"
 
467
 
 
468
ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar SHARED_VERSION_INFO build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL LIBCTL_VERSION INDENT guile_ok HAVE_GUILE_CONFIG FLIBS LIBCTL_DIR GEN_CTL_IO LIBOBJS LTLIBOBJS'
275
469
ac_subst_files=''
276
470
 
277
471
# Initialize some variables set by options.
630
824
 
631
825
# Be sure to have absolute paths.
632
826
for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
633
 
              localstatedir libdir includedir oldincludedir infodir mandir
 
827
              localstatedir libdir includedir oldincludedir infodir mandir
634
828
do
635
829
  eval ac_val=$`echo $ac_var`
636
830
  case $ac_val in
670
864
  # Try the directory containing this script, then its parent.
671
865
  ac_confdir=`(dirname "$0") 2>/dev/null ||
672
866
$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
673
 
         X"$0" : 'X\(//\)[^/]' \| \
674
 
         X"$0" : 'X\(//\)$' \| \
675
 
         X"$0" : 'X\(/\)' \| \
676
 
         .     : '\(.\)' 2>/dev/null ||
 
867
         X"$0" : 'X\(//\)[^/]' \| \
 
868
         X"$0" : 'X\(//\)$' \| \
 
869
         X"$0" : 'X\(/\)' \| \
 
870
         .     : '\(.\)' 2>/dev/null ||
677
871
echo X"$0" |
678
872
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
679
873
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
732
926
ac_env_CPP_value=$CPP
733
927
ac_cv_env_CPP_set=${CPP+set}
734
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
735
941
ac_env_F77_set=${F77+set}
736
942
ac_env_F77_value=$F77
737
943
ac_cv_env_F77_set=${F77+set}
748
954
  # Omit some internal or obsolete options to make the list less imposing.
749
955
  # This message is too long to be a string in the A/UX 3.1 sh.
750
956
  cat <<_ACEOF
751
 
\`configure' configures this package to adapt to many kinds of systems.
 
957
\`configure' configures libctl 3.0.1 to adapt to many kinds of systems.
752
958
 
753
959
Usage: $0 [OPTION]... [VAR=VALUE]...
754
960
 
773
979
  cat <<_ACEOF
774
980
Installation directories:
775
981
  --prefix=PREFIX         install architecture-independent files in PREFIX
776
 
                          [$ac_default_prefix]
 
982
                          [$ac_default_prefix]
777
983
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
778
 
                          [PREFIX]
 
984
                          [PREFIX]
779
985
 
780
986
By default, \`make install' will install all the files in
781
987
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
813
1019
fi
814
1020
 
815
1021
if test -n "$ac_init_help"; then
816
 
 
 
1022
  case $ac_init_help in
 
1023
     short | recursive ) echo "Configuration of libctl 3.0.1:";;
 
1024
   esac
817
1025
  cat <<\_ACEOF
818
1026
 
819
1027
Optional Features:
820
1028
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
821
1029
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
 
1030
  --enable-shared[=PKGS]
 
1031
                          build shared libraries [default=no]
 
1032
  --enable-static[=PKGS]
 
1033
                          build static libraries [default=yes]
 
1034
  --enable-fast-install[=PKGS]
 
1035
                          optimize for fast installation [default=yes]
 
1036
  --disable-dependency-tracking  speeds up one-time build
 
1037
  --enable-dependency-tracking   do not reject slow dependency extractors
 
1038
  --disable-libtool-lock  avoid locking (might break parallel builds)
822
1039
  --enable-debug          compile for debugging
823
1040
 
 
1041
Optional Packages:
 
1042
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
 
1043
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
 
1044
  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
 
1045
  --with-pic              try to use only PIC/non-PIC objects [default=use
 
1046
                          both]
 
1047
  --with-tags[=TAGS]
 
1048
                          include additional configurations [automatic]
 
1049
 
824
1050
Some influential environment variables:
825
1051
  CC          C compiler command
826
1052
  CFLAGS      C compiler flags
829
1055
  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
830
1056
              headers in a nonstandard directory <include dir>
831
1057
  CPP         C preprocessor
 
1058
  CXX         C++ compiler command
 
1059
  CXXFLAGS    C++ compiler flags
 
1060
  CXXCPP      C++ preprocessor
832
1061
  F77         Fortran 77 compiler command
833
1062
  FFLAGS      Fortran 77 compiler flags
834
1063
 
835
1064
Use these variables to override the choices made by `configure' or to help
836
1065
it to find libraries and programs with nonstandard names/locations.
837
1066
 
 
1067
Report bugs to <stevenj@alum.mit.edu>.
838
1068
_ACEOF
839
1069
fi
840
1070
 
868
1098
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
869
1099
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
870
1100
esac
871
 
# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
872
 
# absolute.
873
 
ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
874
 
ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
875
 
ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
876
 
ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
 
1101
 
 
1102
# Do not use `cd foo && pwd` to compute absolute paths, because
 
1103
# the directories may not exist.
 
1104
case `pwd` in
 
1105
.) ac_abs_builddir="$ac_dir";;
 
1106
*)
 
1107
  case "$ac_dir" in
 
1108
  .) ac_abs_builddir=`pwd`;;
 
1109
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
 
1110
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
 
1111
  esac;;
 
1112
esac
 
1113
case $ac_abs_builddir in
 
1114
.) ac_abs_top_builddir=${ac_top_builddir}.;;
 
1115
*)
 
1116
  case ${ac_top_builddir}. in
 
1117
  .) ac_abs_top_builddir=$ac_abs_builddir;;
 
1118
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
 
1119
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
 
1120
  esac;;
 
1121
esac
 
1122
case $ac_abs_builddir in
 
1123
.) ac_abs_srcdir=$ac_srcdir;;
 
1124
*)
 
1125
  case $ac_srcdir in
 
1126
  .) ac_abs_srcdir=$ac_abs_builddir;;
 
1127
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
 
1128
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
 
1129
  esac;;
 
1130
esac
 
1131
case $ac_abs_builddir in
 
1132
.) ac_abs_top_srcdir=$ac_top_srcdir;;
 
1133
*)
 
1134
  case $ac_top_srcdir in
 
1135
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
 
1136
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
 
1137
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
 
1138
  esac;;
 
1139
esac
877
1140
 
878
1141
    cd $ac_dir
879
1142
    # Check for guested configure; otherwise get Cygnus style configure.
884
1147
      echo
885
1148
      $SHELL $ac_srcdir/configure  --help=recursive
886
1149
    elif test -f $ac_srcdir/configure.ac ||
887
 
           test -f $ac_srcdir/configure.in; then
 
1150
           test -f $ac_srcdir/configure.in; then
888
1151
      echo
889
1152
      $ac_configure --help
890
1153
    else
891
1154
      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
892
1155
    fi
893
 
    cd $ac_popdir
 
1156
    cd "$ac_popdir"
894
1157
  done
895
1158
fi
896
1159
 
897
1160
test -n "$ac_init_help" && exit 0
898
1161
if $ac_init_version; then
899
1162
  cat <<\_ACEOF
 
1163
libctl configure 3.0.1
 
1164
generated by GNU Autoconf 2.59
900
1165
 
901
 
Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
902
 
Free Software Foundation, Inc.
 
1166
Copyright (C) 2003 Free Software Foundation, Inc.
903
1167
This configure script is free software; the Free Software Foundation
904
1168
gives unlimited permission to copy, distribute and modify it.
905
1169
_ACEOF
910
1174
This file contains any messages produced by compilers while
911
1175
running configure, to aid debugging if configure makes a mistake.
912
1176
 
913
 
It was created by $as_me, which was
914
 
generated by GNU Autoconf 2.57.  Invocation command line was
 
1177
It was created by libctl $as_me 3.0.1, which was
 
1178
generated by GNU Autoconf 2.59.  Invocation command line was
915
1179
 
916
1180
  $ $0 $@
917
1181
 
988
1252
    2)
989
1253
      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
990
1254
      if test $ac_must_keep_next = true; then
991
 
        ac_must_keep_next=false # Got value, back to normal.
 
1255
        ac_must_keep_next=false # Got value, back to normal.
992
1256
      else
993
 
        case $ac_arg in
994
 
          *=* | --config-cache | -C | -disable-* | --disable-* \
995
 
          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
996
 
          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
997
 
          | -with-* | --with-* | -without-* | --without-* | --x)
998
 
            case "$ac_configure_args0 " in
999
 
              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1000
 
            esac
1001
 
            ;;
1002
 
          -* ) ac_must_keep_next=true ;;
1003
 
        esac
 
1257
        case $ac_arg in
 
1258
          *=* | --config-cache | -C | -disable-* | --disable-* \
 
1259
          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
 
1260
          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
 
1261
          | -with-* | --with-* | -without-* | --without-* | --x)
 
1262
            case "$ac_configure_args0 " in
 
1263
              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
 
1264
            esac
 
1265
            ;;
 
1266
          -* ) ac_must_keep_next=true ;;
 
1267
        esac
1004
1268
      fi
1005
1269
      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1006
1270
      # Get rid of the leading space.
1034
1298
    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1035
1299
    *ac_space=\ *)
1036
1300
      sed -n \
1037
 
        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1038
 
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
 
1301
        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
 
1302
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1039
1303
      ;;
1040
1304
    *)
1041
1305
      sed -n \
1042
 
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
 
1306
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1043
1307
      ;;
1044
1308
    esac;
1045
1309
}
1068
1332
      for ac_var in $ac_subst_files
1069
1333
      do
1070
1334
        eval ac_val=$`echo $ac_var`
1071
 
        echo "$ac_var='"'"'$ac_val'"'"'"
 
1335
        echo "$ac_var='"'"'$ac_val'"'"'"
1072
1336
      done | sort
1073
1337
      echo
1074
1338
    fi
1087
1351
      echo "$as_me: caught signal $ac_signal"
1088
1352
    echo "$as_me: exit $exit_status"
1089
1353
  } >&5
1090
 
  rm -f core core.* *.core &&
 
1354
  rm -f core *.core &&
1091
1355
  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1092
1356
    exit $exit_status
1093
1357
     ' 0
1167
1431
# value.
1168
1432
ac_cache_corrupted=false
1169
1433
for ac_var in `(set) 2>&1 |
1170
 
               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
 
1434
               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1171
1435
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1172
1436
  eval ac_new_set=\$ac_env_${ac_var}_set
1173
1437
  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1184
1448
    ,);;
1185
1449
    *)
1186
1450
      if test "x$ac_old_val" != "x$ac_new_val"; then
1187
 
        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
 
1451
        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1188
1452
echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1189
 
        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
 
1453
        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1190
1454
echo "$as_me:   former value:  $ac_old_val" >&2;}
1191
 
        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
 
1455
        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1192
1456
echo "$as_me:   current value: $ac_new_val" >&2;}
1193
 
        ac_cache_corrupted=:
 
1457
        ac_cache_corrupted=:
1194
1458
      fi;;
1195
1459
  esac
1196
1460
  # Pass precious variables to config.status.
1239
1503
 
1240
1504
 
1241
1505
 
1242
 
                    ac_config_headers="$ac_config_headers base/ctl.h base/f77_func.h"
1243
 
 
1244
 
 
1245
 
###########################################################################
1246
 
 
1247
 
LIBCTL_VERSION=2.2
1248
 
 
1249
 
cat >>confdefs.h <<_ACEOF
1250
 
#define LIBCTL_VERSION "$LIBCTL_VERSION"
1251
 
_ACEOF
1252
 
 
1253
 
 
1254
 
 
1255
 
LIBCTL_MAJOR_VERSION=`echo $LIBCTL_VERSION |cut -d. -f1`
1256
 
LIBCTL_MINOR_VERSION=`echo $LIBCTL_VERSION |cut -d. -f2`
1257
 
LIBCTL_BUGFIX_VERSION=`echo $LIBCTL_VERSION |cut -d. -f3`
1258
 
test "x$LIBCTL_BUGFIX_VERSION" = x && LIBCTL_BUGFIX_VERSION=0
1259
 
 
1260
 
cat >>confdefs.h <<_ACEOF
1261
 
#define LIBCTL_MAJOR_VERSION $LIBCTL_MAJOR_VERSION
1262
 
_ACEOF
1263
 
 
1264
 
 
1265
 
cat >>confdefs.h <<_ACEOF
1266
 
#define LIBCTL_MINOR_VERSION $LIBCTL_MINOR_VERSION
1267
 
_ACEOF
1268
 
 
1269
 
 
1270
 
cat >>confdefs.h <<_ACEOF
1271
 
#define LIBCTL_BUGFIX_VERSION $LIBCTL_BUGFIX_VERSION
1272
 
_ACEOF
1273
 
 
1274
 
 
1275
 
###########################################################################
1276
 
 
1277
 
# Checks for programs.
 
1506
 
 
1507
 
 
1508
 
 
1509
 
 
1510
 
 
1511
 
 
1512
 
 
1513
 
 
1514
                    ac_config_headers="$ac_config_headers config.h src/ctl.h"
 
1515
 
 
1516
 
 
1517
# Shared-library version number; indicates api compatibility, and is
 
1518
# not the same as the "public" version number.  (Don't worry about this
 
1519
# except for public releases.)
 
1520
SHARED_VERSION_INFO="3:0:0"
 
1521
 
 
1522
am__api_version="1.9"
 
1523
ac_aux_dir=
 
1524
for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
 
1525
  if test -f $ac_dir/install-sh; then
 
1526
    ac_aux_dir=$ac_dir
 
1527
    ac_install_sh="$ac_aux_dir/install-sh -c"
 
1528
    break
 
1529
  elif test -f $ac_dir/install.sh; then
 
1530
    ac_aux_dir=$ac_dir
 
1531
    ac_install_sh="$ac_aux_dir/install.sh -c"
 
1532
    break
 
1533
  elif test -f $ac_dir/shtool; then
 
1534
    ac_aux_dir=$ac_dir
 
1535
    ac_install_sh="$ac_aux_dir/shtool install -c"
 
1536
    break
 
1537
  fi
 
1538
done
 
1539
if test -z "$ac_aux_dir"; then
 
1540
  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
 
1541
echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
 
1542
   { (exit 1); exit 1; }; }
 
1543
fi
 
1544
ac_config_guess="$SHELL $ac_aux_dir/config.guess"
 
1545
ac_config_sub="$SHELL $ac_aux_dir/config.sub"
 
1546
ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
 
1547
 
 
1548
# Find a good install program.  We prefer a C program (faster),
 
1549
# so one script is as good as another.  But avoid the broken or
 
1550
# incompatible versions:
 
1551
# SysV /etc/install, /usr/sbin/install
 
1552
# SunOS /usr/etc/install
 
1553
# IRIX /sbin/install
 
1554
# AIX /bin/install
 
1555
# AmigaOS /C/install, which installs bootblocks on floppy discs
 
1556
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
 
1557
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
 
1558
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
 
1559
# OS/2's system install, which has a completely different semantic
 
1560
# ./install, which can be erroneously created by make from ./install.sh.
 
1561
echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
 
1562
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
 
1563
if test -z "$INSTALL"; then
 
1564
if test "${ac_cv_path_install+set}" = set; then
 
1565
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1566
else
 
1567
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1568
for as_dir in $PATH
 
1569
do
 
1570
  IFS=$as_save_IFS
 
1571
  test -z "$as_dir" && as_dir=.
 
1572
  # Account for people who put trailing slashes in PATH elements.
 
1573
case $as_dir/ in
 
1574
  ./ | .// | /cC/* | \
 
1575
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
 
1576
  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
 
1577
  /usr/ucb/* ) ;;
 
1578
  *)
 
1579
    # OSF1 and SCO ODT 3.0 have their own names for install.
 
1580
    # Don't use installbsd from OSF since it installs stuff as root
 
1581
    # by default.
 
1582
    for ac_prog in ginstall scoinst install; do
 
1583
      for ac_exec_ext in '' $ac_executable_extensions; do
 
1584
        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
 
1585
          if test $ac_prog = install &&
 
1586
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 
1587
            # AIX install.  It has an incompatible calling convention.
 
1588
            :
 
1589
          elif test $ac_prog = install &&
 
1590
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 
1591
            # program-specific install script used by HP pwplus--don't use.
 
1592
            :
 
1593
          else
 
1594
            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
 
1595
            break 3
 
1596
          fi
 
1597
        fi
 
1598
      done
 
1599
    done
 
1600
    ;;
 
1601
esac
 
1602
done
 
1603
 
 
1604
 
 
1605
fi
 
1606
  if test "${ac_cv_path_install+set}" = set; then
 
1607
    INSTALL=$ac_cv_path_install
 
1608
  else
 
1609
    # As a last resort, use the slow shell script.  We don't cache a
 
1610
    # path for INSTALL within a source directory, because that will
 
1611
    # break other packages using the cache if that directory is
 
1612
    # removed, or if the path is relative.
 
1613
    INSTALL=$ac_install_sh
 
1614
  fi
 
1615
fi
 
1616
echo "$as_me:$LINENO: result: $INSTALL" >&5
 
1617
echo "${ECHO_T}$INSTALL" >&6
 
1618
 
 
1619
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
 
1620
# It thinks the first close brace ends the variable substitution.
 
1621
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
 
1622
 
 
1623
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
 
1624
 
 
1625
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
 
1626
 
 
1627
echo "$as_me:$LINENO: checking whether build environment is sane" >&5
 
1628
echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
 
1629
# Just in case
 
1630
sleep 1
 
1631
echo timestamp > conftest.file
 
1632
# Do `set' in a subshell so we don't clobber the current shell's
 
1633
# arguments.  Must try -L first in case configure is actually a
 
1634
# symlink; some systems play weird games with the mod time of symlinks
 
1635
# (eg FreeBSD returns the mod time of the symlink's containing
 
1636
# directory).
 
1637
if (
 
1638
   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
 
1639
   if test "$*" = "X"; then
 
1640
      # -L didn't work.
 
1641
      set X `ls -t $srcdir/configure conftest.file`
 
1642
   fi
 
1643
   rm -f conftest.file
 
1644
   if test "$*" != "X $srcdir/configure conftest.file" \
 
1645
      && test "$*" != "X conftest.file $srcdir/configure"; then
 
1646
 
 
1647
      # If neither matched, then we have a broken ls.  This can happen
 
1648
      # if, for instance, CONFIG_SHELL is bash and it inherits a
 
1649
      # broken ls alias from the environment.  This has actually
 
1650
      # happened.  Such a system could not be considered "sane".
 
1651
      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
 
1652
alias in your environment" >&5
 
1653
echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
 
1654
alias in your environment" >&2;}
 
1655
   { (exit 1); exit 1; }; }
 
1656
   fi
 
1657
 
 
1658
   test "$2" = conftest.file
 
1659
   )
 
1660
then
 
1661
   # Ok.
 
1662
   :
 
1663
else
 
1664
   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
 
1665
Check your system clock" >&5
 
1666
echo "$as_me: error: newly created file is older than distributed files!
 
1667
Check your system clock" >&2;}
 
1668
   { (exit 1); exit 1; }; }
 
1669
fi
 
1670
echo "$as_me:$LINENO: result: yes" >&5
 
1671
echo "${ECHO_T}yes" >&6
 
1672
test "$program_prefix" != NONE &&
 
1673
  program_transform_name="s,^,$program_prefix,;$program_transform_name"
 
1674
# Use a double $ so make ignores it.
 
1675
test "$program_suffix" != NONE &&
 
1676
  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
 
1677
# Double any \ or $.  echo might interpret backslashes.
 
1678
# By default was `s,x,x', remove it if useless.
 
1679
cat <<\_ACEOF >conftest.sed
 
1680
s/[\\$]/&&/g;s/;s,x,x,$//
 
1681
_ACEOF
 
1682
program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
 
1683
rm conftest.sed
 
1684
 
 
1685
# expand $ac_aux_dir to an absolute path
 
1686
am_aux_dir=`cd $ac_aux_dir && pwd`
 
1687
 
 
1688
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
 
1689
# Use eval to expand $SHELL
 
1690
if eval "$MISSING --run true"; then
 
1691
  am_missing_run="$MISSING --run "
 
1692
else
 
1693
  am_missing_run=
 
1694
  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
 
1695
echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
 
1696
fi
 
1697
 
 
1698
if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
 
1699
  # We used to keeping the `.' as first argument, in order to
 
1700
  # allow $(mkdir_p) to be used without argument.  As in
 
1701
  #   $(mkdir_p) $(somedir)
 
1702
  # where $(somedir) is conditionally defined.  However this is wrong
 
1703
  # for two reasons:
 
1704
  #  1. if the package is installed by a user who cannot write `.'
 
1705
  #     make install will fail,
 
1706
  #  2. the above comment should most certainly read
 
1707
  #     $(mkdir_p) $(DESTDIR)$(somedir)
 
1708
  #     so it does not work when $(somedir) is undefined and
 
1709
  #     $(DESTDIR) is not.
 
1710
  #  To support the latter case, we have to write
 
1711
  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
 
1712
  #  so the `.' trick is pointless.
 
1713
  mkdir_p='mkdir -p --'
 
1714
else
 
1715
  # On NextStep and OpenStep, the `mkdir' command does not
 
1716
  # recognize any option.  It will interpret all options as
 
1717
  # directories to create, and then abort because `.' already
 
1718
  # exists.
 
1719
  for d in ./-p ./--version;
 
1720
  do
 
1721
    test -d $d && rmdir $d
 
1722
  done
 
1723
  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
 
1724
  if test -f "$ac_aux_dir/mkinstalldirs"; then
 
1725
    mkdir_p='$(mkinstalldirs)'
 
1726
  else
 
1727
    mkdir_p='$(install_sh) -d'
 
1728
  fi
 
1729
fi
 
1730
 
 
1731
for ac_prog in gawk mawk nawk awk
 
1732
do
 
1733
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
1734
set dummy $ac_prog; ac_word=$2
 
1735
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
1736
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
1737
if test "${ac_cv_prog_AWK+set}" = set; then
 
1738
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1739
else
 
1740
  if test -n "$AWK"; then
 
1741
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
 
1742
else
 
1743
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1744
for as_dir in $PATH
 
1745
do
 
1746
  IFS=$as_save_IFS
 
1747
  test -z "$as_dir" && as_dir=.
 
1748
  for ac_exec_ext in '' $ac_executable_extensions; do
 
1749
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
1750
    ac_cv_prog_AWK="$ac_prog"
 
1751
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
1752
    break 2
 
1753
  fi
 
1754
done
 
1755
done
 
1756
 
 
1757
fi
 
1758
fi
 
1759
AWK=$ac_cv_prog_AWK
 
1760
if test -n "$AWK"; then
 
1761
  echo "$as_me:$LINENO: result: $AWK" >&5
 
1762
echo "${ECHO_T}$AWK" >&6
 
1763
else
 
1764
  echo "$as_me:$LINENO: result: no" >&5
 
1765
echo "${ECHO_T}no" >&6
 
1766
fi
 
1767
 
 
1768
  test -n "$AWK" && break
 
1769
done
 
1770
 
 
1771
echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
 
1772
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
 
1773
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
 
1774
if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
 
1775
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1776
else
 
1777
  cat >conftest.make <<\_ACEOF
 
1778
all:
 
1779
        @echo 'ac_maketemp="$(MAKE)"'
 
1780
_ACEOF
 
1781
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
 
1782
eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
 
1783
if test -n "$ac_maketemp"; then
 
1784
  eval ac_cv_prog_make_${ac_make}_set=yes
 
1785
else
 
1786
  eval ac_cv_prog_make_${ac_make}_set=no
 
1787
fi
 
1788
rm -f conftest.make
 
1789
fi
 
1790
if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
 
1791
  echo "$as_me:$LINENO: result: yes" >&5
 
1792
echo "${ECHO_T}yes" >&6
 
1793
  SET_MAKE=
 
1794
else
 
1795
  echo "$as_me:$LINENO: result: no" >&5
 
1796
echo "${ECHO_T}no" >&6
 
1797
  SET_MAKE="MAKE=${MAKE-make}"
 
1798
fi
 
1799
 
 
1800
rm -rf .tst 2>/dev/null
 
1801
mkdir .tst 2>/dev/null
 
1802
if test -d .tst; then
 
1803
  am__leading_dot=.
 
1804
else
 
1805
  am__leading_dot=_
 
1806
fi
 
1807
rmdir .tst 2>/dev/null
 
1808
 
 
1809
# test to see if srcdir already configured
 
1810
if test "`cd $srcdir && pwd`" != "`pwd`" &&
 
1811
   test -f $srcdir/config.status; then
 
1812
  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
 
1813
echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
 
1814
   { (exit 1); exit 1; }; }
 
1815
fi
 
1816
 
 
1817
# test whether we have cygpath
 
1818
if test -z "$CYGPATH_W"; then
 
1819
  if (cygpath --version) >/dev/null 2>/dev/null; then
 
1820
    CYGPATH_W='cygpath -w'
 
1821
  else
 
1822
    CYGPATH_W=echo
 
1823
  fi
 
1824
fi
 
1825
 
 
1826
 
 
1827
# Define the identity of the package.
 
1828
 PACKAGE='libctl'
 
1829
 VERSION='3.0.1'
 
1830
 
 
1831
 
 
1832
cat >>confdefs.h <<_ACEOF
 
1833
#define PACKAGE "$PACKAGE"
 
1834
_ACEOF
 
1835
 
 
1836
 
 
1837
cat >>confdefs.h <<_ACEOF
 
1838
#define VERSION "$VERSION"
 
1839
_ACEOF
 
1840
 
 
1841
# Some tools Automake needs.
 
1842
 
 
1843
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
 
1844
 
 
1845
 
 
1846
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
 
1847
 
 
1848
 
 
1849
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
 
1850
 
 
1851
 
 
1852
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
 
1853
 
 
1854
 
 
1855
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
 
1856
 
 
1857
install_sh=${install_sh-"$am_aux_dir/install-sh"}
 
1858
 
 
1859
# Installed binaries are usually stripped using `strip' when the user
 
1860
# run `make install-strip'.  However `strip' might not be the right
 
1861
# tool to use in cross-compilation environments, therefore Automake
 
1862
# will honor the `STRIP' environment variable to overrule this program.
 
1863
if test "$cross_compiling" != no; then
 
1864
  if test -n "$ac_tool_prefix"; then
 
1865
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
 
1866
set dummy ${ac_tool_prefix}strip; ac_word=$2
 
1867
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
1868
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
1869
if test "${ac_cv_prog_STRIP+set}" = set; then
 
1870
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1871
else
 
1872
  if test -n "$STRIP"; then
 
1873
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
 
1874
else
 
1875
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1876
for as_dir in $PATH
 
1877
do
 
1878
  IFS=$as_save_IFS
 
1879
  test -z "$as_dir" && as_dir=.
 
1880
  for ac_exec_ext in '' $ac_executable_extensions; do
 
1881
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
1882
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
 
1883
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
1884
    break 2
 
1885
  fi
 
1886
done
 
1887
done
 
1888
 
 
1889
fi
 
1890
fi
 
1891
STRIP=$ac_cv_prog_STRIP
 
1892
if test -n "$STRIP"; then
 
1893
  echo "$as_me:$LINENO: result: $STRIP" >&5
 
1894
echo "${ECHO_T}$STRIP" >&6
 
1895
else
 
1896
  echo "$as_me:$LINENO: result: no" >&5
 
1897
echo "${ECHO_T}no" >&6
 
1898
fi
 
1899
 
 
1900
fi
 
1901
if test -z "$ac_cv_prog_STRIP"; then
 
1902
  ac_ct_STRIP=$STRIP
 
1903
  # Extract the first word of "strip", so it can be a program name with args.
 
1904
set dummy strip; ac_word=$2
 
1905
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
1906
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
1907
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
 
1908
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1909
else
 
1910
  if test -n "$ac_ct_STRIP"; then
 
1911
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
 
1912
else
 
1913
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1914
for as_dir in $PATH
 
1915
do
 
1916
  IFS=$as_save_IFS
 
1917
  test -z "$as_dir" && as_dir=.
 
1918
  for ac_exec_ext in '' $ac_executable_extensions; do
 
1919
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
1920
    ac_cv_prog_ac_ct_STRIP="strip"
 
1921
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
1922
    break 2
 
1923
  fi
 
1924
done
 
1925
done
 
1926
 
 
1927
  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
 
1928
fi
 
1929
fi
 
1930
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
 
1931
if test -n "$ac_ct_STRIP"; then
 
1932
  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
 
1933
echo "${ECHO_T}$ac_ct_STRIP" >&6
 
1934
else
 
1935
  echo "$as_me:$LINENO: result: no" >&5
 
1936
echo "${ECHO_T}no" >&6
 
1937
fi
 
1938
 
 
1939
  STRIP=$ac_ct_STRIP
 
1940
else
 
1941
  STRIP="$ac_cv_prog_STRIP"
 
1942
fi
 
1943
 
 
1944
fi
 
1945
INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
 
1946
 
 
1947
# We need awk for the "check" target.  The system "awk" is bad on
 
1948
# some platforms.
 
1949
# Always define AMTAR for backward compatibility.
 
1950
 
 
1951
AMTAR=${AMTAR-"${am_missing_run}tar"}
 
1952
 
 
1953
am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
 
1954
 
 
1955
 
 
1956
 
 
1957
 
 
1958
 
 
1959
 
 
1960
# Check whether --enable-shared or --disable-shared was given.
 
1961
if test "${enable_shared+set}" = set; then
 
1962
  enableval="$enable_shared"
 
1963
  p=${PACKAGE-default}
 
1964
    case $enableval in
 
1965
    yes) enable_shared=yes ;;
 
1966
    no) enable_shared=no ;;
 
1967
    *)
 
1968
      enable_shared=no
 
1969
      # Look at the argument we got.  We use all the common list separators.
 
1970
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
1971
      for pkg in $enableval; do
 
1972
        IFS="$lt_save_ifs"
 
1973
        if test "X$pkg" = "X$p"; then
 
1974
          enable_shared=yes
 
1975
        fi
 
1976
      done
 
1977
      IFS="$lt_save_ifs"
 
1978
      ;;
 
1979
    esac
 
1980
else
 
1981
  enable_shared=no
 
1982
fi;
 
1983
 # Check whether --enable-static or --disable-static was given.
 
1984
if test "${enable_static+set}" = set; then
 
1985
  enableval="$enable_static"
 
1986
  p=${PACKAGE-default}
 
1987
    case $enableval in
 
1988
    yes) enable_static=yes ;;
 
1989
    no) enable_static=no ;;
 
1990
    *)
 
1991
     enable_static=no
 
1992
      # Look at the argument we got.  We use all the common list separators.
 
1993
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
1994
      for pkg in $enableval; do
 
1995
        IFS="$lt_save_ifs"
 
1996
        if test "X$pkg" = "X$p"; then
 
1997
          enable_static=yes
 
1998
        fi
 
1999
      done
 
2000
      IFS="$lt_save_ifs"
 
2001
      ;;
 
2002
    esac
 
2003
else
 
2004
  enable_static=yes
 
2005
fi;
 
2006
 
 
2007
# Check whether --enable-fast-install or --disable-fast-install was given.
 
2008
if test "${enable_fast_install+set}" = set; then
 
2009
  enableval="$enable_fast_install"
 
2010
  p=${PACKAGE-default}
 
2011
    case $enableval in
 
2012
    yes) enable_fast_install=yes ;;
 
2013
    no) enable_fast_install=no ;;
 
2014
    *)
 
2015
      enable_fast_install=no
 
2016
      # Look at the argument we got.  We use all the common list separators.
 
2017
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
2018
      for pkg in $enableval; do
 
2019
        IFS="$lt_save_ifs"
 
2020
        if test "X$pkg" = "X$p"; then
 
2021
          enable_fast_install=yes
 
2022
        fi
 
2023
      done
 
2024
      IFS="$lt_save_ifs"
 
2025
      ;;
 
2026
    esac
 
2027
else
 
2028
  enable_fast_install=yes
 
2029
fi;
 
2030
 
 
2031
# Make sure we can run config.sub.
 
2032
$ac_config_sub sun4 >/dev/null 2>&1 ||
 
2033
  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
 
2034
echo "$as_me: error: cannot run $ac_config_sub" >&2;}
 
2035
   { (exit 1); exit 1; }; }
 
2036
 
 
2037
echo "$as_me:$LINENO: checking build system type" >&5
 
2038
echo $ECHO_N "checking build system type... $ECHO_C" >&6
 
2039
if test "${ac_cv_build+set}" = set; then
 
2040
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2041
else
 
2042
  ac_cv_build_alias=$build_alias
 
2043
test -z "$ac_cv_build_alias" &&
 
2044
  ac_cv_build_alias=`$ac_config_guess`
 
2045
test -z "$ac_cv_build_alias" &&
 
2046
  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
 
2047
echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
 
2048
   { (exit 1); exit 1; }; }
 
2049
ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
 
2050
  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
 
2051
echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
 
2052
   { (exit 1); exit 1; }; }
 
2053
 
 
2054
fi
 
2055
echo "$as_me:$LINENO: result: $ac_cv_build" >&5
 
2056
echo "${ECHO_T}$ac_cv_build" >&6
 
2057
build=$ac_cv_build
 
2058
build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
 
2059
build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
 
2060
build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
 
2061
 
 
2062
 
 
2063
echo "$as_me:$LINENO: checking host system type" >&5
 
2064
echo $ECHO_N "checking host system type... $ECHO_C" >&6
 
2065
if test "${ac_cv_host+set}" = set; then
 
2066
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2067
else
 
2068
  ac_cv_host_alias=$host_alias
 
2069
test -z "$ac_cv_host_alias" &&
 
2070
  ac_cv_host_alias=$ac_cv_build_alias
 
2071
ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
 
2072
  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
 
2073
echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
 
2074
   { (exit 1); exit 1; }; }
 
2075
 
 
2076
fi
 
2077
echo "$as_me:$LINENO: result: $ac_cv_host" >&5
 
2078
echo "${ECHO_T}$ac_cv_host" >&6
 
2079
host=$ac_cv_host
 
2080
host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
 
2081
host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
 
2082
host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
 
2083
 
 
2084
 
 
2085
DEPDIR="${am__leading_dot}deps"
 
2086
 
 
2087
          ac_config_commands="$ac_config_commands depfiles"
 
2088
 
 
2089
 
 
2090
am_make=${MAKE-make}
 
2091
cat > confinc << 'END'
 
2092
am__doit:
 
2093
        @echo done
 
2094
.PHONY: am__doit
 
2095
END
 
2096
# If we don't find an include directive, just comment out the code.
 
2097
echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
 
2098
echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
 
2099
am__include="#"
 
2100
am__quote=
 
2101
_am_result=none
 
2102
# First try GNU make style include.
 
2103
echo "include confinc" > confmf
 
2104
# We grep out `Entering directory' and `Leaving directory'
 
2105
# messages which can occur if `w' ends up in MAKEFLAGS.
 
2106
# In particular we don't look at `^make:' because GNU make might
 
2107
# be invoked under some other name (usually "gmake"), in which
 
2108
# case it prints its new name instead of `make'.
 
2109
if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
 
2110
   am__include=include
 
2111
   am__quote=
 
2112
   _am_result=GNU
 
2113
fi
 
2114
# Now try BSD make style include.
 
2115
if test "$am__include" = "#"; then
 
2116
   echo '.include "confinc"' > confmf
 
2117
   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
 
2118
      am__include=.include
 
2119
      am__quote="\""
 
2120
      _am_result=BSD
 
2121
   fi
 
2122
fi
 
2123
 
 
2124
 
 
2125
echo "$as_me:$LINENO: result: $_am_result" >&5
 
2126
echo "${ECHO_T}$_am_result" >&6
 
2127
rm -f confinc confmf
 
2128
 
 
2129
# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
 
2130
if test "${enable_dependency_tracking+set}" = set; then
 
2131
  enableval="$enable_dependency_tracking"
 
2132
 
 
2133
fi;
 
2134
if test "x$enable_dependency_tracking" != xno; then
 
2135
  am_depcomp="$ac_aux_dir/depcomp"
 
2136
  AMDEPBACKSLASH='\'
 
2137
fi
 
2138
 
 
2139
 
 
2140
if test "x$enable_dependency_tracking" != xno; then
 
2141
  AMDEP_TRUE=
 
2142
  AMDEP_FALSE='#'
 
2143
else
 
2144
  AMDEP_TRUE='#'
 
2145
  AMDEP_FALSE=
 
2146
fi
 
2147
 
 
2148
 
 
2149
 
1278
2150
ac_ext=c
1279
2151
ac_cpp='$CPP $CPPFLAGS'
1280
2152
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1611
2483
  (exit $ac_status); }
1612
2484
 
1613
2485
cat >conftest.$ac_ext <<_ACEOF
1614
 
#line $LINENO "configure"
1615
2486
/* confdefs.h.  */
1616
2487
_ACEOF
1617
2488
cat confdefs.h >>conftest.$ac_ext
1631
2502
# Try to create an executable without -o first, disregard a.out.
1632
2503
# It will help us diagnose broken compilers, and finding out an intuition
1633
2504
# of exeext.
1634
 
echo "$as_me:$LINENO: checking for C compiler default output" >&5
1635
 
echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
 
2505
echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
 
2506
echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1636
2507
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1637
2508
if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1638
2509
  (eval $ac_link_default) 2>&5
1652
2523
  test -f "$ac_file" || continue
1653
2524
  case $ac_file in
1654
2525
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1655
 
        ;;
 
2526
        ;;
1656
2527
    conftest.$ac_ext )
1657
 
        # This is the source file.
1658
 
        ;;
 
2528
        # This is the source file.
 
2529
        ;;
1659
2530
    [ab].out )
1660
 
        # We found the default executable, but exeext='' is most
1661
 
        # certainly right.
1662
 
        break;;
 
2531
        # We found the default executable, but exeext='' is most
 
2532
        # certainly right.
 
2533
        break;;
1663
2534
    *.* )
1664
 
        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1665
 
        # FIXME: I believe we export ac_cv_exeext for Libtool,
1666
 
        # but it would be cool to find out if it's true.  Does anybody
1667
 
        # maintain Libtool? --akim.
1668
 
        export ac_cv_exeext
1669
 
        break;;
 
2535
        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 
2536
        # FIXME: I believe we export ac_cv_exeext for Libtool,
 
2537
        # but it would be cool to find out if it's true.  Does anybody
 
2538
        # maintain Libtool? --akim.
 
2539
        export ac_cv_exeext
 
2540
        break;;
1670
2541
    * )
1671
 
        break;;
 
2542
        break;;
1672
2543
  esac
1673
2544
done
1674
2545
else
1742
2613
  case $ac_file in
1743
2614
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1744
2615
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1745
 
          export ac_cv_exeext
1746
 
          break;;
 
2616
          export ac_cv_exeext
 
2617
          break;;
1747
2618
    * ) break;;
1748
2619
  esac
1749
2620
done
1768
2639
  echo $ECHO_N "(cached) $ECHO_C" >&6
1769
2640
else
1770
2641
  cat >conftest.$ac_ext <<_ACEOF
1771
 
#line $LINENO "configure"
1772
2642
/* confdefs.h.  */
1773
2643
_ACEOF
1774
2644
cat confdefs.h >>conftest.$ac_ext
1819
2689
  echo $ECHO_N "(cached) $ECHO_C" >&6
1820
2690
else
1821
2691
  cat >conftest.$ac_ext <<_ACEOF
1822
 
#line $LINENO "configure"
1823
2692
/* confdefs.h.  */
1824
2693
_ACEOF
1825
2694
cat confdefs.h >>conftest.$ac_ext
1839
2708
_ACEOF
1840
2709
rm -f conftest.$ac_objext
1841
2710
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1842
 
  (eval $ac_compile) 2>&5
 
2711
  (eval $ac_compile) 2>conftest.er1
1843
2712
  ac_status=$?
 
2713
  grep -v '^ *+' conftest.er1 >conftest.err
 
2714
  rm -f conftest.er1
 
2715
  cat conftest.err >&5
1844
2716
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1845
2717
  (exit $ac_status); } &&
1846
 
         { ac_try='test -s conftest.$ac_objext'
 
2718
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
2719
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2720
  (eval $ac_try) 2>&5
 
2721
  ac_status=$?
 
2722
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2723
  (exit $ac_status); }; } &&
 
2724
         { ac_try='test -s conftest.$ac_objext'
1847
2725
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1848
2726
  (eval $ac_try) 2>&5
1849
2727
  ac_status=$?
1856
2734
 
1857
2735
ac_compiler_gnu=no
1858
2736
fi
1859
 
rm -f conftest.$ac_objext conftest.$ac_ext
 
2737
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1860
2738
ac_cv_c_compiler_gnu=$ac_compiler_gnu
1861
2739
 
1862
2740
fi
1872
2750
  echo $ECHO_N "(cached) $ECHO_C" >&6
1873
2751
else
1874
2752
  cat >conftest.$ac_ext <<_ACEOF
1875
 
#line $LINENO "configure"
1876
2753
/* confdefs.h.  */
1877
2754
_ACEOF
1878
2755
cat confdefs.h >>conftest.$ac_ext
1889
2766
_ACEOF
1890
2767
rm -f conftest.$ac_objext
1891
2768
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1892
 
  (eval $ac_compile) 2>&5
 
2769
  (eval $ac_compile) 2>conftest.er1
1893
2770
  ac_status=$?
 
2771
  grep -v '^ *+' conftest.er1 >conftest.err
 
2772
  rm -f conftest.er1
 
2773
  cat conftest.err >&5
1894
2774
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1895
2775
  (exit $ac_status); } &&
1896
 
         { ac_try='test -s conftest.$ac_objext'
 
2776
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
2777
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2778
  (eval $ac_try) 2>&5
 
2779
  ac_status=$?
 
2780
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2781
  (exit $ac_status); }; } &&
 
2782
         { ac_try='test -s conftest.$ac_objext'
1897
2783
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1898
2784
  (eval $ac_try) 2>&5
1899
2785
  ac_status=$?
1906
2792
 
1907
2793
ac_cv_prog_cc_g=no
1908
2794
fi
1909
 
rm -f conftest.$ac_objext conftest.$ac_ext
 
2795
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1910
2796
fi
1911
2797
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
1912
2798
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1933
2819
  ac_cv_prog_cc_stdc=no
1934
2820
ac_save_CC=$CC
1935
2821
cat >conftest.$ac_ext <<_ACEOF
1936
 
#line $LINENO "configure"
1937
2822
/* confdefs.h.  */
1938
2823
_ACEOF
1939
2824
cat confdefs.h >>conftest.$ac_ext
1961
2846
  va_end (v);
1962
2847
  return s;
1963
2848
}
 
2849
 
 
2850
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
 
2851
   function prototypes and stuff, but not '\xHH' hex character constants.
 
2852
   These don't provoke an error unfortunately, instead are silently treated
 
2853
   as 'x'.  The following induces an error, until -std1 is added to get
 
2854
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
 
2855
   array size at least.  It's necessary to write '\x00'==0 to get something
 
2856
   that's true only with -std1.  */
 
2857
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
 
2858
 
1964
2859
int test (int i, double x);
1965
2860
struct s1 {int (*f) (int a);};
1966
2861
struct s2 {int (*f) (double a);};
1987
2882
  CC="$ac_save_CC $ac_arg"
1988
2883
  rm -f conftest.$ac_objext
1989
2884
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1990
 
  (eval $ac_compile) 2>&5
 
2885
  (eval $ac_compile) 2>conftest.er1
1991
2886
  ac_status=$?
 
2887
  grep -v '^ *+' conftest.er1 >conftest.err
 
2888
  rm -f conftest.er1
 
2889
  cat conftest.err >&5
1992
2890
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1993
2891
  (exit $ac_status); } &&
1994
 
         { ac_try='test -s conftest.$ac_objext'
 
2892
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
2893
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2894
  (eval $ac_try) 2>&5
 
2895
  ac_status=$?
 
2896
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2897
  (exit $ac_status); }; } &&
 
2898
         { ac_try='test -s conftest.$ac_objext'
1995
2899
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1996
2900
  (eval $ac_try) 2>&5
1997
2901
  ac_status=$?
2004
2908
sed 's/^/| /' conftest.$ac_ext >&5
2005
2909
 
2006
2910
fi
2007
 
rm -f conftest.$ac_objext
 
2911
rm -f conftest.err conftest.$ac_objext
2008
2912
done
2009
2913
rm -f conftest.$ac_ext conftest.$ac_objext
2010
2914
CC=$ac_save_CC
2032
2936
_ACEOF
2033
2937
rm -f conftest.$ac_objext
2034
2938
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2035
 
  (eval $ac_compile) 2>&5
 
2939
  (eval $ac_compile) 2>conftest.er1
2036
2940
  ac_status=$?
 
2941
  grep -v '^ *+' conftest.er1 >conftest.err
 
2942
  rm -f conftest.er1
 
2943
  cat conftest.err >&5
2037
2944
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2038
2945
  (exit $ac_status); } &&
2039
 
         { ac_try='test -s conftest.$ac_objext'
 
2946
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
2947
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2948
  (eval $ac_try) 2>&5
 
2949
  ac_status=$?
 
2950
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2951
  (exit $ac_status); }; } &&
 
2952
         { ac_try='test -s conftest.$ac_objext'
2040
2953
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2041
2954
  (eval $ac_try) 2>&5
2042
2955
  ac_status=$?
2043
2956
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2044
2957
  (exit $ac_status); }; }; then
2045
2958
  for ac_declaration in \
2046
 
   ''\
2047
 
   '#include <stdlib.h>' \
 
2959
   '' \
2048
2960
   'extern "C" void std::exit (int) throw (); using std::exit;' \
2049
2961
   'extern "C" void std::exit (int); using std::exit;' \
2050
2962
   'extern "C" void exit (int) throw ();' \
2052
2964
   'void exit (int);'
2053
2965
do
2054
2966
  cat >conftest.$ac_ext <<_ACEOF
2055
 
#line $LINENO "configure"
2056
2967
/* confdefs.h.  */
2057
2968
_ACEOF
2058
2969
cat confdefs.h >>conftest.$ac_ext
2059
2970
cat >>conftest.$ac_ext <<_ACEOF
2060
2971
/* end confdefs.h.  */
 
2972
$ac_declaration
2061
2973
#include <stdlib.h>
2062
 
$ac_declaration
2063
2974
int
2064
2975
main ()
2065
2976
{
2070
2981
_ACEOF
2071
2982
rm -f conftest.$ac_objext
2072
2983
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2073
 
  (eval $ac_compile) 2>&5
 
2984
  (eval $ac_compile) 2>conftest.er1
2074
2985
  ac_status=$?
 
2986
  grep -v '^ *+' conftest.er1 >conftest.err
 
2987
  rm -f conftest.er1
 
2988
  cat conftest.err >&5
2075
2989
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2076
2990
  (exit $ac_status); } &&
2077
 
         { ac_try='test -s conftest.$ac_objext'
 
2991
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
2992
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2993
  (eval $ac_try) 2>&5
 
2994
  ac_status=$?
 
2995
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2996
  (exit $ac_status); }; } &&
 
2997
         { ac_try='test -s conftest.$ac_objext'
2078
2998
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2079
2999
  (eval $ac_try) 2>&5
2080
3000
  ac_status=$?
2087
3007
 
2088
3008
continue
2089
3009
fi
2090
 
rm -f conftest.$ac_objext conftest.$ac_ext
 
3010
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2091
3011
  cat >conftest.$ac_ext <<_ACEOF
2092
 
#line $LINENO "configure"
2093
3012
/* confdefs.h.  */
2094
3013
_ACEOF
2095
3014
cat confdefs.h >>conftest.$ac_ext
2106
3025
_ACEOF
2107
3026
rm -f conftest.$ac_objext
2108
3027
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2109
 
  (eval $ac_compile) 2>&5
 
3028
  (eval $ac_compile) 2>conftest.er1
2110
3029
  ac_status=$?
 
3030
  grep -v '^ *+' conftest.er1 >conftest.err
 
3031
  rm -f conftest.er1
 
3032
  cat conftest.err >&5
2111
3033
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2112
3034
  (exit $ac_status); } &&
2113
 
         { ac_try='test -s conftest.$ac_objext'
 
3035
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
3036
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3037
  (eval $ac_try) 2>&5
 
3038
  ac_status=$?
 
3039
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3040
  (exit $ac_status); }; } &&
 
3041
         { ac_try='test -s conftest.$ac_objext'
2114
3042
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2115
3043
  (eval $ac_try) 2>&5
2116
3044
  ac_status=$?
2122
3050
sed 's/^/| /' conftest.$ac_ext >&5
2123
3051
 
2124
3052
fi
2125
 
rm -f conftest.$ac_objext conftest.$ac_ext
 
3053
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2126
3054
done
2127
3055
rm -f conftest*
2128
3056
if test -n "$ac_declaration"; then
2136
3064
sed 's/^/| /' conftest.$ac_ext >&5
2137
3065
 
2138
3066
fi
2139
 
rm -f conftest.$ac_objext conftest.$ac_ext
 
3067
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2140
3068
ac_ext=c
2141
3069
ac_cpp='$CPP $CPPFLAGS'
2142
3070
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2143
3071
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2144
3072
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2145
3073
 
2146
 
echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2147
 
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
2148
 
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
2149
 
if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2150
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
2151
 
else
2152
 
  cat >conftest.make <<\_ACEOF
2153
 
all:
2154
 
        @echo 'ac_maketemp="$(MAKE)"'
2155
 
_ACEOF
2156
 
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2157
 
eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
2158
 
if test -n "$ac_maketemp"; then
2159
 
  eval ac_cv_prog_make_${ac_make}_set=yes
2160
 
else
2161
 
  eval ac_cv_prog_make_${ac_make}_set=no
2162
 
fi
2163
 
rm -f conftest.make
2164
 
fi
2165
 
if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
 
3074
depcc="$CC"   am_compiler_list=
 
3075
 
 
3076
echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
 
3077
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
 
3078
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
 
3079
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3080
else
 
3081
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
 
3082
  # We make a subdir and do the tests there.  Otherwise we can end up
 
3083
  # making bogus files that we don't know about and never remove.  For
 
3084
  # instance it was reported that on HP-UX the gcc test will end up
 
3085
  # making a dummy file named `D' -- because `-MD' means `put the output
 
3086
  # in D'.
 
3087
  mkdir conftest.dir
 
3088
  # Copy depcomp to subdir because otherwise we won't find it if we're
 
3089
  # using a relative directory.
 
3090
  cp "$am_depcomp" conftest.dir
 
3091
  cd conftest.dir
 
3092
  # We will build objects and dependencies in a subdirectory because
 
3093
  # it helps to detect inapplicable dependency modes.  For instance
 
3094
  # both Tru64's cc and ICC support -MD to output dependencies as a
 
3095
  # side effect of compilation, but ICC will put the dependencies in
 
3096
  # the current directory while Tru64 will put them in the object
 
3097
  # directory.
 
3098
  mkdir sub
 
3099
 
 
3100
  am_cv_CC_dependencies_compiler_type=none
 
3101
  if test "$am_compiler_list" = ""; then
 
3102
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
 
3103
  fi
 
3104
  for depmode in $am_compiler_list; do
 
3105
    # Setup a source with many dependencies, because some compilers
 
3106
    # like to wrap large dependency lists on column 80 (with \), and
 
3107
    # we should not choose a depcomp mode which is confused by this.
 
3108
    #
 
3109
    # We need to recreate these files for each test, as the compiler may
 
3110
    # overwrite some of them when testing with obscure command lines.
 
3111
    # This happens at least with the AIX C compiler.
 
3112
    : > sub/conftest.c
 
3113
    for i in 1 2 3 4 5 6; do
 
3114
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
 
3115
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
 
3116
      # Solaris 8's {/usr,}/bin/sh.
 
3117
      touch sub/conftst$i.h
 
3118
    done
 
3119
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
 
3120
 
 
3121
    case $depmode in
 
3122
    nosideeffect)
 
3123
      # after this tag, mechanisms are not by side-effect, so they'll
 
3124
      # only be used when explicitly requested
 
3125
      if test "x$enable_dependency_tracking" = xyes; then
 
3126
        continue
 
3127
      else
 
3128
        break
 
3129
      fi
 
3130
      ;;
 
3131
    none) break ;;
 
3132
    esac
 
3133
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
 
3134
    # mode.  It turns out that the SunPro C++ compiler does not properly
 
3135
    # handle `-M -o', and we need to detect this.
 
3136
    if depmode=$depmode \
 
3137
       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
 
3138
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
 
3139
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
 
3140
         >/dev/null 2>conftest.err &&
 
3141
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
 
3142
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
 
3143
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
 
3144
      # icc doesn't choke on unknown options, it will just issue warnings
 
3145
      # or remarks (even with -Werror).  So we grep stderr for any message
 
3146
      # that says an option was ignored or not supported.
 
3147
      # When given -MP, icc 7.0 and 7.1 complain thusly:
 
3148
      #   icc: Command line warning: ignoring option '-M'; no argument required
 
3149
      # The diagnosis changed in icc 8.0:
 
3150
      #   icc: Command line remark: option '-MP' not supported
 
3151
      if (grep 'ignoring option' conftest.err ||
 
3152
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
 
3153
        am_cv_CC_dependencies_compiler_type=$depmode
 
3154
        break
 
3155
      fi
 
3156
    fi
 
3157
  done
 
3158
 
 
3159
  cd ..
 
3160
  rm -rf conftest.dir
 
3161
else
 
3162
  am_cv_CC_dependencies_compiler_type=none
 
3163
fi
 
3164
 
 
3165
fi
 
3166
echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
 
3167
echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
 
3168
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
 
3169
 
 
3170
 
 
3171
 
 
3172
if
 
3173
  test "x$enable_dependency_tracking" != xno \
 
3174
  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
 
3175
  am__fastdepCC_TRUE=
 
3176
  am__fastdepCC_FALSE='#'
 
3177
else
 
3178
  am__fastdepCC_TRUE='#'
 
3179
  am__fastdepCC_FALSE=
 
3180
fi
 
3181
 
 
3182
 
 
3183
echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
 
3184
echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
 
3185
if test "${lt_cv_path_SED+set}" = set; then
 
3186
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3187
else
 
3188
  # Loop through the user's path and test for sed and gsed.
 
3189
# Then use that list of sed's as ones to test for truncation.
 
3190
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3191
for as_dir in $PATH
 
3192
do
 
3193
  IFS=$as_save_IFS
 
3194
  test -z "$as_dir" && as_dir=.
 
3195
  for lt_ac_prog in sed gsed; do
 
3196
    for ac_exec_ext in '' $ac_executable_extensions; do
 
3197
      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
 
3198
        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
 
3199
      fi
 
3200
    done
 
3201
  done
 
3202
done
 
3203
lt_ac_max=0
 
3204
lt_ac_count=0
 
3205
# Add /usr/xpg4/bin/sed as it is typically found on Solaris
 
3206
# along with /bin/sed that truncates output.
 
3207
for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
 
3208
  test ! -f $lt_ac_sed && break
 
3209
  cat /dev/null > conftest.in
 
3210
  lt_ac_count=0
 
3211
  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
 
3212
  # Check for GNU sed and select it if it is found.
 
3213
  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
 
3214
    lt_cv_path_SED=$lt_ac_sed
 
3215
    break
 
3216
  fi
 
3217
  while true; do
 
3218
    cat conftest.in conftest.in >conftest.tmp
 
3219
    mv conftest.tmp conftest.in
 
3220
    cp conftest.in conftest.nl
 
3221
    echo >>conftest.nl
 
3222
    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
 
3223
    cmp -s conftest.out conftest.nl || break
 
3224
    # 10000 chars as input seems more than enough
 
3225
    test $lt_ac_count -gt 10 && break
 
3226
    lt_ac_count=`expr $lt_ac_count + 1`
 
3227
    if test $lt_ac_count -gt $lt_ac_max; then
 
3228
      lt_ac_max=$lt_ac_count
 
3229
      lt_cv_path_SED=$lt_ac_sed
 
3230
    fi
 
3231
  done
 
3232
done
 
3233
SED=$lt_cv_path_SED
 
3234
 
 
3235
fi
 
3236
 
 
3237
echo "$as_me:$LINENO: result: $SED" >&5
 
3238
echo "${ECHO_T}$SED" >&6
 
3239
 
 
3240
echo "$as_me:$LINENO: checking for egrep" >&5
 
3241
echo $ECHO_N "checking for egrep... $ECHO_C" >&6
 
3242
if test "${ac_cv_prog_egrep+set}" = set; then
 
3243
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3244
else
 
3245
  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
 
3246
    then ac_cv_prog_egrep='grep -E'
 
3247
    else ac_cv_prog_egrep='egrep'
 
3248
    fi
 
3249
fi
 
3250
echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
 
3251
echo "${ECHO_T}$ac_cv_prog_egrep" >&6
 
3252
 EGREP=$ac_cv_prog_egrep
 
3253
 
 
3254
 
 
3255
 
 
3256
# Check whether --with-gnu-ld or --without-gnu-ld was given.
 
3257
if test "${with_gnu_ld+set}" = set; then
 
3258
  withval="$with_gnu_ld"
 
3259
  test "$withval" = no || with_gnu_ld=yes
 
3260
else
 
3261
  with_gnu_ld=no
 
3262
fi;
 
3263
ac_prog=ld
 
3264
if test "$GCC" = yes; then
 
3265
  # Check if gcc -print-prog-name=ld gives a path.
 
3266
  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
 
3267
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
 
3268
  case $host in
 
3269
  *-*-mingw*)
 
3270
    # gcc leaves a trailing carriage return which upsets mingw
 
3271
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
 
3272
  *)
 
3273
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
 
3274
  esac
 
3275
  case $ac_prog in
 
3276
    # Accept absolute paths.
 
3277
    [\\/]* | ?:[\\/]*)
 
3278
      re_direlt='/[^/][^/]*/\.\./'
 
3279
      # Canonicalize the pathname of ld
 
3280
      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
 
3281
      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
 
3282
        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
 
3283
      done
 
3284
      test -z "$LD" && LD="$ac_prog"
 
3285
      ;;
 
3286
  "")
 
3287
    # If it fails, then pretend we aren't using GCC.
 
3288
    ac_prog=ld
 
3289
    ;;
 
3290
  *)
 
3291
    # If it is relative, then search for the first ld in PATH.
 
3292
    with_gnu_ld=unknown
 
3293
    ;;
 
3294
  esac
 
3295
elif test "$with_gnu_ld" = yes; then
 
3296
  echo "$as_me:$LINENO: checking for GNU ld" >&5
 
3297
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
 
3298
else
 
3299
  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
 
3300
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
 
3301
fi
 
3302
if test "${lt_cv_path_LD+set}" = set; then
 
3303
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3304
else
 
3305
  if test -z "$LD"; then
 
3306
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
3307
  for ac_dir in $PATH; do
 
3308
    IFS="$lt_save_ifs"
 
3309
    test -z "$ac_dir" && ac_dir=.
 
3310
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
 
3311
      lt_cv_path_LD="$ac_dir/$ac_prog"
 
3312
      # Check to see if the program is GNU ld.  I'd rather use --version,
 
3313
      # but apparently some GNU ld's only accept -v.
 
3314
      # Break only if it was the GNU/non-GNU ld that we prefer.
 
3315
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
 
3316
      *GNU* | *'with BFD'*)
 
3317
        test "$with_gnu_ld" != no && break
 
3318
        ;;
 
3319
      *)
 
3320
        test "$with_gnu_ld" != yes && break
 
3321
        ;;
 
3322
      esac
 
3323
    fi
 
3324
  done
 
3325
  IFS="$lt_save_ifs"
 
3326
else
 
3327
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
 
3328
fi
 
3329
fi
 
3330
 
 
3331
LD="$lt_cv_path_LD"
 
3332
if test -n "$LD"; then
 
3333
  echo "$as_me:$LINENO: result: $LD" >&5
 
3334
echo "${ECHO_T}$LD" >&6
 
3335
else
 
3336
  echo "$as_me:$LINENO: result: no" >&5
 
3337
echo "${ECHO_T}no" >&6
 
3338
fi
 
3339
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
 
3340
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
 
3341
   { (exit 1); exit 1; }; }
 
3342
echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
 
3343
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
 
3344
if test "${lt_cv_prog_gnu_ld+set}" = set; then
 
3345
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3346
else
 
3347
  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
 
3348
case `$LD -v 2>&1 </dev/null` in
 
3349
*GNU* | *'with BFD'*)
 
3350
  lt_cv_prog_gnu_ld=yes
 
3351
  ;;
 
3352
*)
 
3353
  lt_cv_prog_gnu_ld=no
 
3354
  ;;
 
3355
esac
 
3356
fi
 
3357
echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
 
3358
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
 
3359
with_gnu_ld=$lt_cv_prog_gnu_ld
 
3360
 
 
3361
 
 
3362
echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
 
3363
echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
 
3364
if test "${lt_cv_ld_reload_flag+set}" = set; then
 
3365
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3366
else
 
3367
  lt_cv_ld_reload_flag='-r'
 
3368
fi
 
3369
echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
 
3370
echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
 
3371
reload_flag=$lt_cv_ld_reload_flag
 
3372
case $reload_flag in
 
3373
"" | " "*) ;;
 
3374
*) reload_flag=" $reload_flag" ;;
 
3375
esac
 
3376
reload_cmds='$LD$reload_flag -o $output$reload_objs'
 
3377
 
 
3378
echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
 
3379
echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
 
3380
if test "${lt_cv_path_NM+set}" = set; then
 
3381
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3382
else
 
3383
  if test -n "$NM"; then
 
3384
  # Let the user override the test.
 
3385
  lt_cv_path_NM="$NM"
 
3386
else
 
3387
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
3388
  for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
 
3389
    IFS="$lt_save_ifs"
 
3390
    test -z "$ac_dir" && ac_dir=.
 
3391
    tmp_nm="$ac_dir/${ac_tool_prefix}nm"
 
3392
    if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
 
3393
      # Check to see if the nm accepts a BSD-compat flag.
 
3394
      # Adding the `sed 1q' prevents false positives on HP-UX, which says:
 
3395
      #   nm: unknown option "B" ignored
 
3396
      # Tru64's nm complains that /dev/null is an invalid object file
 
3397
      case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
 
3398
      */dev/null* | *'Invalid file or object type'*)
 
3399
        lt_cv_path_NM="$tmp_nm -B"
 
3400
        break
 
3401
        ;;
 
3402
      *)
 
3403
        case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
 
3404
        */dev/null*)
 
3405
          lt_cv_path_NM="$tmp_nm -p"
 
3406
          break
 
3407
          ;;
 
3408
        *)
 
3409
          lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
 
3410
          continue # so that we can try to find one that supports BSD flags
 
3411
          ;;
 
3412
        esac
 
3413
      esac
 
3414
    fi
 
3415
  done
 
3416
  IFS="$lt_save_ifs"
 
3417
  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
 
3418
fi
 
3419
fi
 
3420
echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
 
3421
echo "${ECHO_T}$lt_cv_path_NM" >&6
 
3422
NM="$lt_cv_path_NM"
 
3423
 
 
3424
echo "$as_me:$LINENO: checking whether ln -s works" >&5
 
3425
echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
 
3426
LN_S=$as_ln_s
 
3427
if test "$LN_S" = "ln -s"; then
2166
3428
  echo "$as_me:$LINENO: result: yes" >&5
2167
3429
echo "${ECHO_T}yes" >&6
2168
 
  SET_MAKE=
2169
3430
else
2170
 
  echo "$as_me:$LINENO: result: no" >&5
2171
 
echo "${ECHO_T}no" >&6
2172
 
  SET_MAKE="MAKE=${MAKE-make}"
 
3431
  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
 
3432
echo "${ECHO_T}no, using $LN_S" >&6
2173
3433
fi
2174
3434
 
2175
 
ac_aux_dir=
2176
 
for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
2177
 
  if test -f $ac_dir/install-sh; then
2178
 
    ac_aux_dir=$ac_dir
2179
 
    ac_install_sh="$ac_aux_dir/install-sh -c"
2180
 
    break
2181
 
  elif test -f $ac_dir/install.sh; then
2182
 
    ac_aux_dir=$ac_dir
2183
 
    ac_install_sh="$ac_aux_dir/install.sh -c"
2184
 
    break
2185
 
  elif test -f $ac_dir/shtool; then
2186
 
    ac_aux_dir=$ac_dir
2187
 
    ac_install_sh="$ac_aux_dir/shtool install -c"
2188
 
    break
 
3435
echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
 
3436
echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
 
3437
if test "${lt_cv_deplibs_check_method+set}" = set; then
 
3438
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3439
else
 
3440
  lt_cv_file_magic_cmd='$MAGIC_CMD'
 
3441
lt_cv_file_magic_test_file=
 
3442
lt_cv_deplibs_check_method='unknown'
 
3443
# Need to set the preceding variable on all platforms that support
 
3444
# interlibrary dependencies.
 
3445
# 'none' -- dependencies not supported.
 
3446
# `unknown' -- same as none, but documents that we really don't know.
 
3447
# 'pass_all' -- all dependencies passed with no checks.
 
3448
# 'test_compile' -- check by making test program.
 
3449
# 'file_magic [[regex]]' -- check by looking for files in library path
 
3450
# which responds to the $file_magic_cmd with a given extended regex.
 
3451
# If you have `file' or equivalent on your system and you're not sure
 
3452
# whether `pass_all' will *always* work, you probably want this one.
 
3453
 
 
3454
case $host_os in
 
3455
aix4* | aix5*)
 
3456
  lt_cv_deplibs_check_method=pass_all
 
3457
  ;;
 
3458
 
 
3459
beos*)
 
3460
  lt_cv_deplibs_check_method=pass_all
 
3461
  ;;
 
3462
 
 
3463
bsdi4*)
 
3464
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
 
3465
  lt_cv_file_magic_cmd='/usr/bin/file -L'
 
3466
  lt_cv_file_magic_test_file=/shlib/libc.so
 
3467
  ;;
 
3468
 
 
3469
cygwin*)
 
3470
  # func_win32_libid is a shell function defined in ltmain.sh
 
3471
  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
 
3472
  lt_cv_file_magic_cmd='func_win32_libid'
 
3473
  ;;
 
3474
 
 
3475
mingw* | pw32*)
 
3476
  # Base MSYS/MinGW do not provide the 'file' command needed by
 
3477
  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
 
3478
  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
 
3479
  lt_cv_file_magic_cmd='$OBJDUMP -f'
 
3480
  ;;
 
3481
 
 
3482
darwin* | rhapsody*)
 
3483
  lt_cv_deplibs_check_method=pass_all
 
3484
  ;;
 
3485
 
 
3486
freebsd* | kfreebsd*-gnu)
 
3487
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
 
3488
    case $host_cpu in
 
3489
    i*86 )
 
3490
      # Not sure whether the presence of OpenBSD here was a mistake.
 
3491
      # Let's accept both of them until this is cleared up.
 
3492
      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
 
3493
      lt_cv_file_magic_cmd=/usr/bin/file
 
3494
      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
 
3495
      ;;
 
3496
    esac
 
3497
  else
 
3498
    lt_cv_deplibs_check_method=pass_all
2189
3499
  fi
2190
 
done
2191
 
if test -z "$ac_aux_dir"; then
2192
 
  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
2193
 
echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
2194
 
   { (exit 1); exit 1; }; }
2195
 
fi
2196
 
ac_config_guess="$SHELL $ac_aux_dir/config.guess"
2197
 
ac_config_sub="$SHELL $ac_aux_dir/config.sub"
2198
 
ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
2199
 
 
2200
 
# Find a good install program.  We prefer a C program (faster),
2201
 
# so one script is as good as another.  But avoid the broken or
2202
 
# incompatible versions:
2203
 
# SysV /etc/install, /usr/sbin/install
2204
 
# SunOS /usr/etc/install
2205
 
# IRIX /sbin/install
2206
 
# AIX /bin/install
2207
 
# AmigaOS /C/install, which installs bootblocks on floppy discs
2208
 
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2209
 
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2210
 
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2211
 
# ./install, which can be erroneously created by make from ./install.sh.
2212
 
echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2213
 
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2214
 
if test -z "$INSTALL"; then
2215
 
if test "${ac_cv_path_install+set}" = set; then
2216
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
2217
 
else
2218
 
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2219
 
for as_dir in $PATH
2220
 
do
2221
 
  IFS=$as_save_IFS
2222
 
  test -z "$as_dir" && as_dir=.
2223
 
  # Account for people who put trailing slashes in PATH elements.
2224
 
case $as_dir/ in
2225
 
  ./ | .// | /cC/* | \
2226
 
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2227
 
  /usr/ucb/* ) ;;
 
3500
  ;;
 
3501
 
 
3502
gnu*)
 
3503
  lt_cv_deplibs_check_method=pass_all
 
3504
  ;;
 
3505
 
 
3506
hpux10.20* | hpux11*)
 
3507
  lt_cv_file_magic_cmd=/usr/bin/file
 
3508
  case "$host_cpu" in
 
3509
  ia64*)
 
3510
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
 
3511
    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
 
3512
    ;;
 
3513
  hppa*64*)
 
3514
    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]'
 
3515
    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
 
3516
    ;;
2228
3517
  *)
2229
 
    # OSF1 and SCO ODT 3.0 have their own names for install.
2230
 
    # Don't use installbsd from OSF since it installs stuff as root
2231
 
    # by default.
2232
 
    for ac_prog in ginstall scoinst install; do
2233
 
      for ac_exec_ext in '' $ac_executable_extensions; do
2234
 
        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2235
 
          if test $ac_prog = install &&
2236
 
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2237
 
            # AIX install.  It has an incompatible calling convention.
2238
 
            :
2239
 
          elif test $ac_prog = install &&
2240
 
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2241
 
            # program-specific install script used by HP pwplus--don't use.
2242
 
            :
2243
 
          else
2244
 
            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2245
 
            break 3
2246
 
          fi
2247
 
        fi
2248
 
      done
2249
 
    done
2250
 
    ;;
2251
 
esac
2252
 
done
2253
 
 
2254
 
 
2255
 
fi
2256
 
  if test "${ac_cv_path_install+set}" = set; then
2257
 
    INSTALL=$ac_cv_path_install
2258
 
  else
2259
 
    # As a last resort, use the slow shell script.  We don't cache a
2260
 
    # path for INSTALL within a source directory, because that will
2261
 
    # break other packages using the cache if that directory is
2262
 
    # removed, or if the path is relative.
2263
 
    INSTALL=$ac_install_sh
2264
 
  fi
2265
 
fi
2266
 
echo "$as_me:$LINENO: result: $INSTALL" >&5
2267
 
echo "${ECHO_T}$INSTALL" >&6
2268
 
 
2269
 
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2270
 
# It thinks the first close brace ends the variable substitution.
2271
 
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2272
 
 
2273
 
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2274
 
 
2275
 
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
 
3518
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
 
3519
    lt_cv_file_magic_test_file=/usr/lib/libc.sl
 
3520
    ;;
 
3521
  esac
 
3522
  ;;
 
3523
 
 
3524
irix5* | irix6* | nonstopux*)
 
3525
  case $LD in
 
3526
  *-32|*"-32 ") libmagic=32-bit;;
 
3527
  *-n32|*"-n32 ") libmagic=N32;;
 
3528
  *-64|*"-64 ") libmagic=64-bit;;
 
3529
  *) libmagic=never-match;;
 
3530
  esac
 
3531
  lt_cv_deplibs_check_method=pass_all
 
3532
  ;;
 
3533
 
 
3534
# This must be Linux ELF.
 
3535
linux*)
 
3536
  lt_cv_deplibs_check_method=pass_all
 
3537
  ;;
 
3538
 
 
3539
netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
 
3540
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
 
3541
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
 
3542
  else
 
3543
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
 
3544
  fi
 
3545
  ;;
 
3546
 
 
3547
newos6*)
 
3548
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
 
3549
  lt_cv_file_magic_cmd=/usr/bin/file
 
3550
  lt_cv_file_magic_test_file=/usr/lib/libnls.so
 
3551
  ;;
 
3552
 
 
3553
nto-qnx*)
 
3554
  lt_cv_deplibs_check_method=unknown
 
3555
  ;;
 
3556
 
 
3557
openbsd*)
 
3558
  lt_cv_file_magic_cmd=/usr/bin/file
 
3559
  lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
 
3560
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
3561
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
 
3562
  else
 
3563
    lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
 
3564
  fi
 
3565
  ;;
 
3566
 
 
3567
osf3* | osf4* | osf5*)
 
3568
  lt_cv_deplibs_check_method=pass_all
 
3569
  ;;
 
3570
 
 
3571
sco3.2v5*)
 
3572
  lt_cv_deplibs_check_method=pass_all
 
3573
  ;;
 
3574
 
 
3575
solaris*)
 
3576
  lt_cv_deplibs_check_method=pass_all
 
3577
  ;;
 
3578
 
 
3579
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
3580
  case $host_vendor in
 
3581
  motorola)
 
3582
    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]'
 
3583
    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
 
3584
    ;;
 
3585
  ncr)
 
3586
    lt_cv_deplibs_check_method=pass_all
 
3587
    ;;
 
3588
  sequent)
 
3589
    lt_cv_file_magic_cmd='/bin/file'
 
3590
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
 
3591
    ;;
 
3592
  sni)
 
3593
    lt_cv_file_magic_cmd='/bin/file'
 
3594
    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
 
3595
    lt_cv_file_magic_test_file=/lib/libc.so
 
3596
    ;;
 
3597
  siemens)
 
3598
    lt_cv_deplibs_check_method=pass_all
 
3599
    ;;
 
3600
  esac
 
3601
  ;;
 
3602
 
 
3603
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
 
3604
  lt_cv_deplibs_check_method=pass_all
 
3605
  ;;
 
3606
esac
 
3607
 
 
3608
fi
 
3609
echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
 
3610
echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
 
3611
file_magic_cmd=$lt_cv_file_magic_cmd
 
3612
deplibs_check_method=$lt_cv_deplibs_check_method
 
3613
test -z "$deplibs_check_method" && deplibs_check_method=unknown
 
3614
 
 
3615
 
 
3616
 
 
3617
 
 
3618
# If no C compiler was specified, use CC.
 
3619
LTCC=${LTCC-"$CC"}
 
3620
 
 
3621
# Allow CC to be a program name with arguments.
 
3622
compiler=$CC
 
3623
 
 
3624
 
 
3625
# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
 
3626
if test "${enable_libtool_lock+set}" = set; then
 
3627
  enableval="$enable_libtool_lock"
 
3628
 
 
3629
fi;
 
3630
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
 
3631
 
 
3632
# Some flags need to be propagated to the compiler or linker for good
 
3633
# libtool support.
 
3634
case $host in
 
3635
ia64-*-hpux*)
 
3636
  # Find out which ABI we are using.
 
3637
  echo 'int i;' > conftest.$ac_ext
 
3638
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3639
  (eval $ac_compile) 2>&5
 
3640
  ac_status=$?
 
3641
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3642
  (exit $ac_status); }; then
 
3643
    case `/usr/bin/file conftest.$ac_objext` in
 
3644
    *ELF-32*)
 
3645
      HPUX_IA64_MODE="32"
 
3646
      ;;
 
3647
    *ELF-64*)
 
3648
      HPUX_IA64_MODE="64"
 
3649
      ;;
 
3650
    esac
 
3651
  fi
 
3652
  rm -rf conftest*
 
3653
  ;;
 
3654
*-*-irix6*)
 
3655
  # Find out which ABI we are using.
 
3656
  echo '#line 3656 "configure"' > conftest.$ac_ext
 
3657
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3658
  (eval $ac_compile) 2>&5
 
3659
  ac_status=$?
 
3660
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3661
  (exit $ac_status); }; then
 
3662
   if test "$lt_cv_prog_gnu_ld" = yes; then
 
3663
    case `/usr/bin/file conftest.$ac_objext` in
 
3664
    *32-bit*)
 
3665
      LD="${LD-ld} -melf32bsmip"
 
3666
      ;;
 
3667
    *N32*)
 
3668
      LD="${LD-ld} -melf32bmipn32"
 
3669
      ;;
 
3670
    *64-bit*)
 
3671
      LD="${LD-ld} -melf64bmip"
 
3672
      ;;
 
3673
    esac
 
3674
   else
 
3675
    case `/usr/bin/file conftest.$ac_objext` in
 
3676
    *32-bit*)
 
3677
      LD="${LD-ld} -32"
 
3678
      ;;
 
3679
    *N32*)
 
3680
      LD="${LD-ld} -n32"
 
3681
      ;;
 
3682
    *64-bit*)
 
3683
      LD="${LD-ld} -64"
 
3684
      ;;
 
3685
    esac
 
3686
   fi
 
3687
  fi
 
3688
  rm -rf conftest*
 
3689
  ;;
 
3690
 
 
3691
x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
 
3692
  # Find out which ABI we are using.
 
3693
  echo 'int i;' > conftest.$ac_ext
 
3694
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3695
  (eval $ac_compile) 2>&5
 
3696
  ac_status=$?
 
3697
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3698
  (exit $ac_status); }; then
 
3699
    case "`/usr/bin/file conftest.o`" in
 
3700
    *32-bit*)
 
3701
      case $host in
 
3702
        x86_64-*linux*)
 
3703
          LD="${LD-ld} -m elf_i386"
 
3704
          ;;
 
3705
        ppc64-*linux*|powerpc64-*linux*)
 
3706
          LD="${LD-ld} -m elf32ppclinux"
 
3707
          ;;
 
3708
        s390x-*linux*)
 
3709
          LD="${LD-ld} -m elf_s390"
 
3710
          ;;
 
3711
        sparc64-*linux*)
 
3712
          LD="${LD-ld} -m elf32_sparc"
 
3713
          ;;
 
3714
      esac
 
3715
      ;;
 
3716
    *64-bit*)
 
3717
      case $host in
 
3718
        x86_64-*linux*)
 
3719
          LD="${LD-ld} -m elf_x86_64"
 
3720
          ;;
 
3721
        ppc*-*linux*|powerpc*-*linux*)
 
3722
          LD="${LD-ld} -m elf64ppc"
 
3723
          ;;
 
3724
        s390*-*linux*)
 
3725
          LD="${LD-ld} -m elf64_s390"
 
3726
          ;;
 
3727
        sparc*-*linux*)
 
3728
          LD="${LD-ld} -m elf64_sparc"
 
3729
          ;;
 
3730
      esac
 
3731
      ;;
 
3732
    esac
 
3733
  fi
 
3734
  rm -rf conftest*
 
3735
  ;;
 
3736
 
 
3737
*-*-sco3.2v5*)
 
3738
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
 
3739
  SAVE_CFLAGS="$CFLAGS"
 
3740
  CFLAGS="$CFLAGS -belf"
 
3741
  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
 
3742
echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
 
3743
if test "${lt_cv_cc_needs_belf+set}" = set; then
 
3744
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3745
else
 
3746
  ac_ext=c
 
3747
ac_cpp='$CPP $CPPFLAGS'
 
3748
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
3749
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
3750
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
3751
 
 
3752
     cat >conftest.$ac_ext <<_ACEOF
 
3753
/* confdefs.h.  */
 
3754
_ACEOF
 
3755
cat confdefs.h >>conftest.$ac_ext
 
3756
cat >>conftest.$ac_ext <<_ACEOF
 
3757
/* end confdefs.h.  */
 
3758
 
 
3759
int
 
3760
main ()
 
3761
{
 
3762
 
 
3763
  ;
 
3764
  return 0;
 
3765
}
 
3766
_ACEOF
 
3767
rm -f conftest.$ac_objext conftest$ac_exeext
 
3768
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
3769
  (eval $ac_link) 2>conftest.er1
 
3770
  ac_status=$?
 
3771
  grep -v '^ *+' conftest.er1 >conftest.err
 
3772
  rm -f conftest.er1
 
3773
  cat conftest.err >&5
 
3774
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3775
  (exit $ac_status); } &&
 
3776
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
3777
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3778
  (eval $ac_try) 2>&5
 
3779
  ac_status=$?
 
3780
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3781
  (exit $ac_status); }; } &&
 
3782
         { ac_try='test -s conftest$ac_exeext'
 
3783
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3784
  (eval $ac_try) 2>&5
 
3785
  ac_status=$?
 
3786
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3787
  (exit $ac_status); }; }; then
 
3788
  lt_cv_cc_needs_belf=yes
 
3789
else
 
3790
  echo "$as_me: failed program was:" >&5
 
3791
sed 's/^/| /' conftest.$ac_ext >&5
 
3792
 
 
3793
lt_cv_cc_needs_belf=no
 
3794
fi
 
3795
rm -f conftest.err conftest.$ac_objext \
 
3796
      conftest$ac_exeext conftest.$ac_ext
 
3797
     ac_ext=c
 
3798
ac_cpp='$CPP $CPPFLAGS'
 
3799
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
3800
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
3801
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
3802
 
 
3803
fi
 
3804
echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
 
3805
echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
 
3806
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
 
3807
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
 
3808
    CFLAGS="$SAVE_CFLAGS"
 
3809
  fi
 
3810
  ;;
 
3811
 
 
3812
esac
 
3813
 
 
3814
need_locks="$enable_libtool_lock"
 
3815
 
 
3816
 
 
3817
ac_ext=c
 
3818
ac_cpp='$CPP $CPPFLAGS'
 
3819
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
3820
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
3821
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
3822
echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
 
3823
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
 
3824
# On Suns, sometimes $CPP names a directory.
 
3825
if test -n "$CPP" && test -d "$CPP"; then
 
3826
  CPP=
 
3827
fi
 
3828
if test -z "$CPP"; then
 
3829
  if test "${ac_cv_prog_CPP+set}" = set; then
 
3830
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3831
else
 
3832
      # Double quotes because CPP needs to be expanded
 
3833
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
 
3834
    do
 
3835
      ac_preproc_ok=false
 
3836
for ac_c_preproc_warn_flag in '' yes
 
3837
do
 
3838
  # Use a header file that comes with gcc, so configuring glibc
 
3839
  # with a fresh cross-compiler works.
 
3840
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
3841
  # <limits.h> exists even on freestanding compilers.
 
3842
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
3843
  # not just through cpp. "Syntax error" is here to catch this case.
 
3844
  cat >conftest.$ac_ext <<_ACEOF
 
3845
/* confdefs.h.  */
 
3846
_ACEOF
 
3847
cat confdefs.h >>conftest.$ac_ext
 
3848
cat >>conftest.$ac_ext <<_ACEOF
 
3849
/* end confdefs.h.  */
 
3850
#ifdef __STDC__
 
3851
# include <limits.h>
 
3852
#else
 
3853
# include <assert.h>
 
3854
#endif
 
3855
                     Syntax error
 
3856
_ACEOF
 
3857
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
3858
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
3859
  ac_status=$?
 
3860
  grep -v '^ *+' conftest.er1 >conftest.err
 
3861
  rm -f conftest.er1
 
3862
  cat conftest.err >&5
 
3863
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3864
  (exit $ac_status); } >/dev/null; then
 
3865
  if test -s conftest.err; then
 
3866
    ac_cpp_err=$ac_c_preproc_warn_flag
 
3867
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
3868
  else
 
3869
    ac_cpp_err=
 
3870
  fi
 
3871
else
 
3872
  ac_cpp_err=yes
 
3873
fi
 
3874
if test -z "$ac_cpp_err"; then
 
3875
  :
 
3876
else
 
3877
  echo "$as_me: failed program was:" >&5
 
3878
sed 's/^/| /' conftest.$ac_ext >&5
 
3879
 
 
3880
  # Broken: fails on valid input.
 
3881
continue
 
3882
fi
 
3883
rm -f conftest.err conftest.$ac_ext
 
3884
 
 
3885
  # OK, works on sane cases.  Now check whether non-existent headers
 
3886
  # can be detected and how.
 
3887
  cat >conftest.$ac_ext <<_ACEOF
 
3888
/* confdefs.h.  */
 
3889
_ACEOF
 
3890
cat confdefs.h >>conftest.$ac_ext
 
3891
cat >>conftest.$ac_ext <<_ACEOF
 
3892
/* end confdefs.h.  */
 
3893
#include <ac_nonexistent.h>
 
3894
_ACEOF
 
3895
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
3896
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
3897
  ac_status=$?
 
3898
  grep -v '^ *+' conftest.er1 >conftest.err
 
3899
  rm -f conftest.er1
 
3900
  cat conftest.err >&5
 
3901
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3902
  (exit $ac_status); } >/dev/null; then
 
3903
  if test -s conftest.err; then
 
3904
    ac_cpp_err=$ac_c_preproc_warn_flag
 
3905
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
3906
  else
 
3907
    ac_cpp_err=
 
3908
  fi
 
3909
else
 
3910
  ac_cpp_err=yes
 
3911
fi
 
3912
if test -z "$ac_cpp_err"; then
 
3913
  # Broken: success on invalid input.
 
3914
continue
 
3915
else
 
3916
  echo "$as_me: failed program was:" >&5
 
3917
sed 's/^/| /' conftest.$ac_ext >&5
 
3918
 
 
3919
  # Passes both tests.
 
3920
ac_preproc_ok=:
 
3921
break
 
3922
fi
 
3923
rm -f conftest.err conftest.$ac_ext
 
3924
 
 
3925
done
 
3926
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
3927
rm -f conftest.err conftest.$ac_ext
 
3928
if $ac_preproc_ok; then
 
3929
  break
 
3930
fi
 
3931
 
 
3932
    done
 
3933
    ac_cv_prog_CPP=$CPP
 
3934
 
 
3935
fi
 
3936
  CPP=$ac_cv_prog_CPP
 
3937
else
 
3938
  ac_cv_prog_CPP=$CPP
 
3939
fi
 
3940
echo "$as_me:$LINENO: result: $CPP" >&5
 
3941
echo "${ECHO_T}$CPP" >&6
 
3942
ac_preproc_ok=false
 
3943
for ac_c_preproc_warn_flag in '' yes
 
3944
do
 
3945
  # Use a header file that comes with gcc, so configuring glibc
 
3946
  # with a fresh cross-compiler works.
 
3947
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
3948
  # <limits.h> exists even on freestanding compilers.
 
3949
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
3950
  # not just through cpp. "Syntax error" is here to catch this case.
 
3951
  cat >conftest.$ac_ext <<_ACEOF
 
3952
/* confdefs.h.  */
 
3953
_ACEOF
 
3954
cat confdefs.h >>conftest.$ac_ext
 
3955
cat >>conftest.$ac_ext <<_ACEOF
 
3956
/* end confdefs.h.  */
 
3957
#ifdef __STDC__
 
3958
# include <limits.h>
 
3959
#else
 
3960
# include <assert.h>
 
3961
#endif
 
3962
                     Syntax error
 
3963
_ACEOF
 
3964
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
3965
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
3966
  ac_status=$?
 
3967
  grep -v '^ *+' conftest.er1 >conftest.err
 
3968
  rm -f conftest.er1
 
3969
  cat conftest.err >&5
 
3970
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3971
  (exit $ac_status); } >/dev/null; then
 
3972
  if test -s conftest.err; then
 
3973
    ac_cpp_err=$ac_c_preproc_warn_flag
 
3974
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
3975
  else
 
3976
    ac_cpp_err=
 
3977
  fi
 
3978
else
 
3979
  ac_cpp_err=yes
 
3980
fi
 
3981
if test -z "$ac_cpp_err"; then
 
3982
  :
 
3983
else
 
3984
  echo "$as_me: failed program was:" >&5
 
3985
sed 's/^/| /' conftest.$ac_ext >&5
 
3986
 
 
3987
  # Broken: fails on valid input.
 
3988
continue
 
3989
fi
 
3990
rm -f conftest.err conftest.$ac_ext
 
3991
 
 
3992
  # OK, works on sane cases.  Now check whether non-existent headers
 
3993
  # can be detected and how.
 
3994
  cat >conftest.$ac_ext <<_ACEOF
 
3995
/* confdefs.h.  */
 
3996
_ACEOF
 
3997
cat confdefs.h >>conftest.$ac_ext
 
3998
cat >>conftest.$ac_ext <<_ACEOF
 
3999
/* end confdefs.h.  */
 
4000
#include <ac_nonexistent.h>
 
4001
_ACEOF
 
4002
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
4003
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
4004
  ac_status=$?
 
4005
  grep -v '^ *+' conftest.er1 >conftest.err
 
4006
  rm -f conftest.er1
 
4007
  cat conftest.err >&5
 
4008
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4009
  (exit $ac_status); } >/dev/null; then
 
4010
  if test -s conftest.err; then
 
4011
    ac_cpp_err=$ac_c_preproc_warn_flag
 
4012
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
4013
  else
 
4014
    ac_cpp_err=
 
4015
  fi
 
4016
else
 
4017
  ac_cpp_err=yes
 
4018
fi
 
4019
if test -z "$ac_cpp_err"; then
 
4020
  # Broken: success on invalid input.
 
4021
continue
 
4022
else
 
4023
  echo "$as_me: failed program was:" >&5
 
4024
sed 's/^/| /' conftest.$ac_ext >&5
 
4025
 
 
4026
  # Passes both tests.
 
4027
ac_preproc_ok=:
 
4028
break
 
4029
fi
 
4030
rm -f conftest.err conftest.$ac_ext
 
4031
 
 
4032
done
 
4033
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
4034
rm -f conftest.err conftest.$ac_ext
 
4035
if $ac_preproc_ok; then
 
4036
  :
 
4037
else
 
4038
  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
 
4039
See \`config.log' for more details." >&5
 
4040
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
 
4041
See \`config.log' for more details." >&2;}
 
4042
   { (exit 1); exit 1; }; }
 
4043
fi
 
4044
 
 
4045
ac_ext=c
 
4046
ac_cpp='$CPP $CPPFLAGS'
 
4047
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
4048
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
4049
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
4050
 
 
4051
 
 
4052
echo "$as_me:$LINENO: checking for ANSI C header files" >&5
 
4053
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
 
4054
if test "${ac_cv_header_stdc+set}" = set; then
 
4055
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4056
else
 
4057
  cat >conftest.$ac_ext <<_ACEOF
 
4058
/* confdefs.h.  */
 
4059
_ACEOF
 
4060
cat confdefs.h >>conftest.$ac_ext
 
4061
cat >>conftest.$ac_ext <<_ACEOF
 
4062
/* end confdefs.h.  */
 
4063
#include <stdlib.h>
 
4064
#include <stdarg.h>
 
4065
#include <string.h>
 
4066
#include <float.h>
 
4067
 
 
4068
int
 
4069
main ()
 
4070
{
 
4071
 
 
4072
  ;
 
4073
  return 0;
 
4074
}
 
4075
_ACEOF
 
4076
rm -f conftest.$ac_objext
 
4077
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4078
  (eval $ac_compile) 2>conftest.er1
 
4079
  ac_status=$?
 
4080
  grep -v '^ *+' conftest.er1 >conftest.err
 
4081
  rm -f conftest.er1
 
4082
  cat conftest.err >&5
 
4083
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4084
  (exit $ac_status); } &&
 
4085
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
4086
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4087
  (eval $ac_try) 2>&5
 
4088
  ac_status=$?
 
4089
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4090
  (exit $ac_status); }; } &&
 
4091
         { ac_try='test -s conftest.$ac_objext'
 
4092
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4093
  (eval $ac_try) 2>&5
 
4094
  ac_status=$?
 
4095
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4096
  (exit $ac_status); }; }; then
 
4097
  ac_cv_header_stdc=yes
 
4098
else
 
4099
  echo "$as_me: failed program was:" >&5
 
4100
sed 's/^/| /' conftest.$ac_ext >&5
 
4101
 
 
4102
ac_cv_header_stdc=no
 
4103
fi
 
4104
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
4105
 
 
4106
if test $ac_cv_header_stdc = yes; then
 
4107
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
 
4108
  cat >conftest.$ac_ext <<_ACEOF
 
4109
/* confdefs.h.  */
 
4110
_ACEOF
 
4111
cat confdefs.h >>conftest.$ac_ext
 
4112
cat >>conftest.$ac_ext <<_ACEOF
 
4113
/* end confdefs.h.  */
 
4114
#include <string.h>
 
4115
 
 
4116
_ACEOF
 
4117
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
4118
  $EGREP "memchr" >/dev/null 2>&1; then
 
4119
  :
 
4120
else
 
4121
  ac_cv_header_stdc=no
 
4122
fi
 
4123
rm -f conftest*
 
4124
 
 
4125
fi
 
4126
 
 
4127
if test $ac_cv_header_stdc = yes; then
 
4128
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
 
4129
  cat >conftest.$ac_ext <<_ACEOF
 
4130
/* confdefs.h.  */
 
4131
_ACEOF
 
4132
cat confdefs.h >>conftest.$ac_ext
 
4133
cat >>conftest.$ac_ext <<_ACEOF
 
4134
/* end confdefs.h.  */
 
4135
#include <stdlib.h>
 
4136
 
 
4137
_ACEOF
 
4138
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
4139
  $EGREP "free" >/dev/null 2>&1; then
 
4140
  :
 
4141
else
 
4142
  ac_cv_header_stdc=no
 
4143
fi
 
4144
rm -f conftest*
 
4145
 
 
4146
fi
 
4147
 
 
4148
if test $ac_cv_header_stdc = yes; then
 
4149
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
 
4150
  if test "$cross_compiling" = yes; then
 
4151
  :
 
4152
else
 
4153
  cat >conftest.$ac_ext <<_ACEOF
 
4154
/* confdefs.h.  */
 
4155
_ACEOF
 
4156
cat confdefs.h >>conftest.$ac_ext
 
4157
cat >>conftest.$ac_ext <<_ACEOF
 
4158
/* end confdefs.h.  */
 
4159
#include <ctype.h>
 
4160
#if ((' ' & 0x0FF) == 0x020)
 
4161
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
 
4162
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
 
4163
#else
 
4164
# define ISLOWER(c) \
 
4165
                   (('a' <= (c) && (c) <= 'i') \
 
4166
                     || ('j' <= (c) && (c) <= 'r') \
 
4167
                     || ('s' <= (c) && (c) <= 'z'))
 
4168
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
 
4169
#endif
 
4170
 
 
4171
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
 
4172
int
 
4173
main ()
 
4174
{
 
4175
  int i;
 
4176
  for (i = 0; i < 256; i++)
 
4177
    if (XOR (islower (i), ISLOWER (i))
 
4178
        || toupper (i) != TOUPPER (i))
 
4179
      exit(2);
 
4180
  exit (0);
 
4181
}
 
4182
_ACEOF
 
4183
rm -f conftest$ac_exeext
 
4184
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
4185
  (eval $ac_link) 2>&5
 
4186
  ac_status=$?
 
4187
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4188
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
4189
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4190
  (eval $ac_try) 2>&5
 
4191
  ac_status=$?
 
4192
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4193
  (exit $ac_status); }; }; then
 
4194
  :
 
4195
else
 
4196
  echo "$as_me: program exited with status $ac_status" >&5
 
4197
echo "$as_me: failed program was:" >&5
 
4198
sed 's/^/| /' conftest.$ac_ext >&5
 
4199
 
 
4200
( exit $ac_status )
 
4201
ac_cv_header_stdc=no
 
4202
fi
 
4203
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
4204
fi
 
4205
fi
 
4206
fi
 
4207
echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
 
4208
echo "${ECHO_T}$ac_cv_header_stdc" >&6
 
4209
if test $ac_cv_header_stdc = yes; then
 
4210
 
 
4211
cat >>confdefs.h <<\_ACEOF
 
4212
#define STDC_HEADERS 1
 
4213
_ACEOF
 
4214
 
 
4215
fi
 
4216
 
 
4217
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
 
4218
 
 
4219
 
 
4220
 
 
4221
 
 
4222
 
 
4223
 
 
4224
 
 
4225
 
 
4226
 
 
4227
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
 
4228
                  inttypes.h stdint.h unistd.h
 
4229
do
 
4230
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
4231
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
4232
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
4233
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
4234
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4235
else
 
4236
  cat >conftest.$ac_ext <<_ACEOF
 
4237
/* confdefs.h.  */
 
4238
_ACEOF
 
4239
cat confdefs.h >>conftest.$ac_ext
 
4240
cat >>conftest.$ac_ext <<_ACEOF
 
4241
/* end confdefs.h.  */
 
4242
$ac_includes_default
 
4243
 
 
4244
#include <$ac_header>
 
4245
_ACEOF
 
4246
rm -f conftest.$ac_objext
 
4247
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4248
  (eval $ac_compile) 2>conftest.er1
 
4249
  ac_status=$?
 
4250
  grep -v '^ *+' conftest.er1 >conftest.err
 
4251
  rm -f conftest.er1
 
4252
  cat conftest.err >&5
 
4253
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4254
  (exit $ac_status); } &&
 
4255
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
4256
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4257
  (eval $ac_try) 2>&5
 
4258
  ac_status=$?
 
4259
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4260
  (exit $ac_status); }; } &&
 
4261
         { ac_try='test -s conftest.$ac_objext'
 
4262
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4263
  (eval $ac_try) 2>&5
 
4264
  ac_status=$?
 
4265
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4266
  (exit $ac_status); }; }; then
 
4267
  eval "$as_ac_Header=yes"
 
4268
else
 
4269
  echo "$as_me: failed program was:" >&5
 
4270
sed 's/^/| /' conftest.$ac_ext >&5
 
4271
 
 
4272
eval "$as_ac_Header=no"
 
4273
fi
 
4274
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
4275
fi
 
4276
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
4277
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
4278
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
4279
  cat >>confdefs.h <<_ACEOF
 
4280
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
4281
_ACEOF
 
4282
 
 
4283
fi
 
4284
 
 
4285
done
 
4286
 
 
4287
 
 
4288
 
 
4289
for ac_header in dlfcn.h
 
4290
do
 
4291
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
4292
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
4293
  echo "$as_me:$LINENO: checking for $ac_header" >&5
 
4294
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
4295
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
4296
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4297
fi
 
4298
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
4299
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
4300
else
 
4301
  # Is the header compilable?
 
4302
echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
4303
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
4304
cat >conftest.$ac_ext <<_ACEOF
 
4305
/* confdefs.h.  */
 
4306
_ACEOF
 
4307
cat confdefs.h >>conftest.$ac_ext
 
4308
cat >>conftest.$ac_ext <<_ACEOF
 
4309
/* end confdefs.h.  */
 
4310
$ac_includes_default
 
4311
#include <$ac_header>
 
4312
_ACEOF
 
4313
rm -f conftest.$ac_objext
 
4314
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4315
  (eval $ac_compile) 2>conftest.er1
 
4316
  ac_status=$?
 
4317
  grep -v '^ *+' conftest.er1 >conftest.err
 
4318
  rm -f conftest.er1
 
4319
  cat conftest.err >&5
 
4320
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4321
  (exit $ac_status); } &&
 
4322
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
4323
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4324
  (eval $ac_try) 2>&5
 
4325
  ac_status=$?
 
4326
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4327
  (exit $ac_status); }; } &&
 
4328
         { ac_try='test -s conftest.$ac_objext'
 
4329
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4330
  (eval $ac_try) 2>&5
 
4331
  ac_status=$?
 
4332
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4333
  (exit $ac_status); }; }; then
 
4334
  ac_header_compiler=yes
 
4335
else
 
4336
  echo "$as_me: failed program was:" >&5
 
4337
sed 's/^/| /' conftest.$ac_ext >&5
 
4338
 
 
4339
ac_header_compiler=no
 
4340
fi
 
4341
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
4342
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
4343
echo "${ECHO_T}$ac_header_compiler" >&6
 
4344
 
 
4345
# Is the header present?
 
4346
echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
4347
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
4348
cat >conftest.$ac_ext <<_ACEOF
 
4349
/* confdefs.h.  */
 
4350
_ACEOF
 
4351
cat confdefs.h >>conftest.$ac_ext
 
4352
cat >>conftest.$ac_ext <<_ACEOF
 
4353
/* end confdefs.h.  */
 
4354
#include <$ac_header>
 
4355
_ACEOF
 
4356
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
4357
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
4358
  ac_status=$?
 
4359
  grep -v '^ *+' conftest.er1 >conftest.err
 
4360
  rm -f conftest.er1
 
4361
  cat conftest.err >&5
 
4362
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4363
  (exit $ac_status); } >/dev/null; then
 
4364
  if test -s conftest.err; then
 
4365
    ac_cpp_err=$ac_c_preproc_warn_flag
 
4366
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
4367
  else
 
4368
    ac_cpp_err=
 
4369
  fi
 
4370
else
 
4371
  ac_cpp_err=yes
 
4372
fi
 
4373
if test -z "$ac_cpp_err"; then
 
4374
  ac_header_preproc=yes
 
4375
else
 
4376
  echo "$as_me: failed program was:" >&5
 
4377
sed 's/^/| /' conftest.$ac_ext >&5
 
4378
 
 
4379
  ac_header_preproc=no
 
4380
fi
 
4381
rm -f conftest.err conftest.$ac_ext
 
4382
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
4383
echo "${ECHO_T}$ac_header_preproc" >&6
 
4384
 
 
4385
# So?  What about this header?
 
4386
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
4387
  yes:no: )
 
4388
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
4389
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
4390
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
4391
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
4392
    ac_header_preproc=yes
 
4393
    ;;
 
4394
  no:yes:* )
 
4395
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
4396
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
4397
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
4398
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
4399
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
4400
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
4401
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
4402
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
4403
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
4404
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
4405
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
4406
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
4407
    (
 
4408
      cat <<\_ASBOX
 
4409
## ----------------------------------- ##
 
4410
## Report this to stevenj@alum.mit.edu ##
 
4411
## ----------------------------------- ##
 
4412
_ASBOX
 
4413
    ) |
 
4414
      sed "s/^/$as_me: WARNING:     /" >&2
 
4415
    ;;
 
4416
esac
 
4417
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
4418
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
4419
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
4420
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4421
else
 
4422
  eval "$as_ac_Header=\$ac_header_preproc"
 
4423
fi
 
4424
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
4425
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
4426
 
 
4427
fi
 
4428
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
4429
  cat >>confdefs.h <<_ACEOF
 
4430
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
4431
_ACEOF
 
4432
 
 
4433
fi
 
4434
 
 
4435
done
 
4436
 
 
4437
ac_ext=cc
 
4438
ac_cpp='$CXXCPP $CPPFLAGS'
 
4439
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
4440
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
4441
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
4442
if test -n "$ac_tool_prefix"; then
 
4443
  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
 
4444
  do
 
4445
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
4446
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
4447
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
4448
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
4449
if test "${ac_cv_prog_CXX+set}" = set; then
 
4450
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4451
else
 
4452
  if test -n "$CXX"; then
 
4453
  ac_cv_prog_CXX="$CXX" # Let the user override the test.
 
4454
else
 
4455
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4456
for as_dir in $PATH
 
4457
do
 
4458
  IFS=$as_save_IFS
 
4459
  test -z "$as_dir" && as_dir=.
 
4460
  for ac_exec_ext in '' $ac_executable_extensions; do
 
4461
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
4462
    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
 
4463
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4464
    break 2
 
4465
  fi
 
4466
done
 
4467
done
 
4468
 
 
4469
fi
 
4470
fi
 
4471
CXX=$ac_cv_prog_CXX
 
4472
if test -n "$CXX"; then
 
4473
  echo "$as_me:$LINENO: result: $CXX" >&5
 
4474
echo "${ECHO_T}$CXX" >&6
 
4475
else
 
4476
  echo "$as_me:$LINENO: result: no" >&5
 
4477
echo "${ECHO_T}no" >&6
 
4478
fi
 
4479
 
 
4480
    test -n "$CXX" && break
 
4481
  done
 
4482
fi
 
4483
if test -z "$CXX"; then
 
4484
  ac_ct_CXX=$CXX
 
4485
  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
 
4486
do
 
4487
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
4488
set dummy $ac_prog; ac_word=$2
 
4489
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
4490
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
4491
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
 
4492
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4493
else
 
4494
  if test -n "$ac_ct_CXX"; then
 
4495
  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
 
4496
else
 
4497
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4498
for as_dir in $PATH
 
4499
do
 
4500
  IFS=$as_save_IFS
 
4501
  test -z "$as_dir" && as_dir=.
 
4502
  for ac_exec_ext in '' $ac_executable_extensions; do
 
4503
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
4504
    ac_cv_prog_ac_ct_CXX="$ac_prog"
 
4505
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4506
    break 2
 
4507
  fi
 
4508
done
 
4509
done
 
4510
 
 
4511
fi
 
4512
fi
 
4513
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
 
4514
if test -n "$ac_ct_CXX"; then
 
4515
  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
 
4516
echo "${ECHO_T}$ac_ct_CXX" >&6
 
4517
else
 
4518
  echo "$as_me:$LINENO: result: no" >&5
 
4519
echo "${ECHO_T}no" >&6
 
4520
fi
 
4521
 
 
4522
  test -n "$ac_ct_CXX" && break
 
4523
done
 
4524
test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
 
4525
 
 
4526
  CXX=$ac_ct_CXX
 
4527
fi
 
4528
 
 
4529
 
 
4530
# Provide some information about the compiler.
 
4531
echo "$as_me:$LINENO:" \
 
4532
     "checking for C++ compiler version" >&5
 
4533
ac_compiler=`set X $ac_compile; echo $2`
 
4534
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
 
4535
  (eval $ac_compiler --version </dev/null >&5) 2>&5
 
4536
  ac_status=$?
 
4537
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4538
  (exit $ac_status); }
 
4539
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
 
4540
  (eval $ac_compiler -v </dev/null >&5) 2>&5
 
4541
  ac_status=$?
 
4542
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4543
  (exit $ac_status); }
 
4544
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
 
4545
  (eval $ac_compiler -V </dev/null >&5) 2>&5
 
4546
  ac_status=$?
 
4547
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4548
  (exit $ac_status); }
 
4549
 
 
4550
echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
 
4551
echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
 
4552
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
 
4553
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4554
else
 
4555
  cat >conftest.$ac_ext <<_ACEOF
 
4556
/* confdefs.h.  */
 
4557
_ACEOF
 
4558
cat confdefs.h >>conftest.$ac_ext
 
4559
cat >>conftest.$ac_ext <<_ACEOF
 
4560
/* end confdefs.h.  */
 
4561
 
 
4562
int
 
4563
main ()
 
4564
{
 
4565
#ifndef __GNUC__
 
4566
       choke me
 
4567
#endif
 
4568
 
 
4569
  ;
 
4570
  return 0;
 
4571
}
 
4572
_ACEOF
 
4573
rm -f conftest.$ac_objext
 
4574
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4575
  (eval $ac_compile) 2>conftest.er1
 
4576
  ac_status=$?
 
4577
  grep -v '^ *+' conftest.er1 >conftest.err
 
4578
  rm -f conftest.er1
 
4579
  cat conftest.err >&5
 
4580
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4581
  (exit $ac_status); } &&
 
4582
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
4583
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4584
  (eval $ac_try) 2>&5
 
4585
  ac_status=$?
 
4586
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4587
  (exit $ac_status); }; } &&
 
4588
         { ac_try='test -s conftest.$ac_objext'
 
4589
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4590
  (eval $ac_try) 2>&5
 
4591
  ac_status=$?
 
4592
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4593
  (exit $ac_status); }; }; then
 
4594
  ac_compiler_gnu=yes
 
4595
else
 
4596
  echo "$as_me: failed program was:" >&5
 
4597
sed 's/^/| /' conftest.$ac_ext >&5
 
4598
 
 
4599
ac_compiler_gnu=no
 
4600
fi
 
4601
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
4602
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
 
4603
 
 
4604
fi
 
4605
echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
 
4606
echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
 
4607
GXX=`test $ac_compiler_gnu = yes && echo yes`
 
4608
ac_test_CXXFLAGS=${CXXFLAGS+set}
 
4609
ac_save_CXXFLAGS=$CXXFLAGS
 
4610
CXXFLAGS="-g"
 
4611
echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
 
4612
echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
 
4613
if test "${ac_cv_prog_cxx_g+set}" = set; then
 
4614
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4615
else
 
4616
  cat >conftest.$ac_ext <<_ACEOF
 
4617
/* confdefs.h.  */
 
4618
_ACEOF
 
4619
cat confdefs.h >>conftest.$ac_ext
 
4620
cat >>conftest.$ac_ext <<_ACEOF
 
4621
/* end confdefs.h.  */
 
4622
 
 
4623
int
 
4624
main ()
 
4625
{
 
4626
 
 
4627
  ;
 
4628
  return 0;
 
4629
}
 
4630
_ACEOF
 
4631
rm -f conftest.$ac_objext
 
4632
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4633
  (eval $ac_compile) 2>conftest.er1
 
4634
  ac_status=$?
 
4635
  grep -v '^ *+' conftest.er1 >conftest.err
 
4636
  rm -f conftest.er1
 
4637
  cat conftest.err >&5
 
4638
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4639
  (exit $ac_status); } &&
 
4640
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
4641
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4642
  (eval $ac_try) 2>&5
 
4643
  ac_status=$?
 
4644
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4645
  (exit $ac_status); }; } &&
 
4646
         { ac_try='test -s conftest.$ac_objext'
 
4647
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4648
  (eval $ac_try) 2>&5
 
4649
  ac_status=$?
 
4650
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4651
  (exit $ac_status); }; }; then
 
4652
  ac_cv_prog_cxx_g=yes
 
4653
else
 
4654
  echo "$as_me: failed program was:" >&5
 
4655
sed 's/^/| /' conftest.$ac_ext >&5
 
4656
 
 
4657
ac_cv_prog_cxx_g=no
 
4658
fi
 
4659
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
4660
fi
 
4661
echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
 
4662
echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
 
4663
if test "$ac_test_CXXFLAGS" = set; then
 
4664
  CXXFLAGS=$ac_save_CXXFLAGS
 
4665
elif test $ac_cv_prog_cxx_g = yes; then
 
4666
  if test "$GXX" = yes; then
 
4667
    CXXFLAGS="-g -O2"
 
4668
  else
 
4669
    CXXFLAGS="-g"
 
4670
  fi
 
4671
else
 
4672
  if test "$GXX" = yes; then
 
4673
    CXXFLAGS="-O2"
 
4674
  else
 
4675
    CXXFLAGS=
 
4676
  fi
 
4677
fi
 
4678
for ac_declaration in \
 
4679
   '' \
 
4680
   'extern "C" void std::exit (int) throw (); using std::exit;' \
 
4681
   'extern "C" void std::exit (int); using std::exit;' \
 
4682
   'extern "C" void exit (int) throw ();' \
 
4683
   'extern "C" void exit (int);' \
 
4684
   'void exit (int);'
 
4685
do
 
4686
  cat >conftest.$ac_ext <<_ACEOF
 
4687
/* confdefs.h.  */
 
4688
_ACEOF
 
4689
cat confdefs.h >>conftest.$ac_ext
 
4690
cat >>conftest.$ac_ext <<_ACEOF
 
4691
/* end confdefs.h.  */
 
4692
$ac_declaration
 
4693
#include <stdlib.h>
 
4694
int
 
4695
main ()
 
4696
{
 
4697
exit (42);
 
4698
  ;
 
4699
  return 0;
 
4700
}
 
4701
_ACEOF
 
4702
rm -f conftest.$ac_objext
 
4703
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4704
  (eval $ac_compile) 2>conftest.er1
 
4705
  ac_status=$?
 
4706
  grep -v '^ *+' conftest.er1 >conftest.err
 
4707
  rm -f conftest.er1
 
4708
  cat conftest.err >&5
 
4709
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4710
  (exit $ac_status); } &&
 
4711
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
4712
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4713
  (eval $ac_try) 2>&5
 
4714
  ac_status=$?
 
4715
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4716
  (exit $ac_status); }; } &&
 
4717
         { ac_try='test -s conftest.$ac_objext'
 
4718
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4719
  (eval $ac_try) 2>&5
 
4720
  ac_status=$?
 
4721
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4722
  (exit $ac_status); }; }; then
 
4723
  :
 
4724
else
 
4725
  echo "$as_me: failed program was:" >&5
 
4726
sed 's/^/| /' conftest.$ac_ext >&5
 
4727
 
 
4728
continue
 
4729
fi
 
4730
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
4731
  cat >conftest.$ac_ext <<_ACEOF
 
4732
/* confdefs.h.  */
 
4733
_ACEOF
 
4734
cat confdefs.h >>conftest.$ac_ext
 
4735
cat >>conftest.$ac_ext <<_ACEOF
 
4736
/* end confdefs.h.  */
 
4737
$ac_declaration
 
4738
int
 
4739
main ()
 
4740
{
 
4741
exit (42);
 
4742
  ;
 
4743
  return 0;
 
4744
}
 
4745
_ACEOF
 
4746
rm -f conftest.$ac_objext
 
4747
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4748
  (eval $ac_compile) 2>conftest.er1
 
4749
  ac_status=$?
 
4750
  grep -v '^ *+' conftest.er1 >conftest.err
 
4751
  rm -f conftest.er1
 
4752
  cat conftest.err >&5
 
4753
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4754
  (exit $ac_status); } &&
 
4755
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
4756
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4757
  (eval $ac_try) 2>&5
 
4758
  ac_status=$?
 
4759
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4760
  (exit $ac_status); }; } &&
 
4761
         { ac_try='test -s conftest.$ac_objext'
 
4762
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4763
  (eval $ac_try) 2>&5
 
4764
  ac_status=$?
 
4765
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4766
  (exit $ac_status); }; }; then
 
4767
  break
 
4768
else
 
4769
  echo "$as_me: failed program was:" >&5
 
4770
sed 's/^/| /' conftest.$ac_ext >&5
 
4771
 
 
4772
fi
 
4773
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
4774
done
 
4775
rm -f conftest*
 
4776
if test -n "$ac_declaration"; then
 
4777
  echo '#ifdef __cplusplus' >>confdefs.h
 
4778
  echo $ac_declaration      >>confdefs.h
 
4779
  echo '#endif'             >>confdefs.h
 
4780
fi
 
4781
 
 
4782
ac_ext=cc
 
4783
ac_cpp='$CXXCPP $CPPFLAGS'
 
4784
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
4785
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
4786
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
4787
 
 
4788
depcc="$CXX"  am_compiler_list=
 
4789
 
 
4790
echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
 
4791
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
 
4792
if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
 
4793
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4794
else
 
4795
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
 
4796
  # We make a subdir and do the tests there.  Otherwise we can end up
 
4797
  # making bogus files that we don't know about and never remove.  For
 
4798
  # instance it was reported that on HP-UX the gcc test will end up
 
4799
  # making a dummy file named `D' -- because `-MD' means `put the output
 
4800
  # in D'.
 
4801
  mkdir conftest.dir
 
4802
  # Copy depcomp to subdir because otherwise we won't find it if we're
 
4803
  # using a relative directory.
 
4804
  cp "$am_depcomp" conftest.dir
 
4805
  cd conftest.dir
 
4806
  # We will build objects and dependencies in a subdirectory because
 
4807
  # it helps to detect inapplicable dependency modes.  For instance
 
4808
  # both Tru64's cc and ICC support -MD to output dependencies as a
 
4809
  # side effect of compilation, but ICC will put the dependencies in
 
4810
  # the current directory while Tru64 will put them in the object
 
4811
  # directory.
 
4812
  mkdir sub
 
4813
 
 
4814
  am_cv_CXX_dependencies_compiler_type=none
 
4815
  if test "$am_compiler_list" = ""; then
 
4816
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
 
4817
  fi
 
4818
  for depmode in $am_compiler_list; do
 
4819
    # Setup a source with many dependencies, because some compilers
 
4820
    # like to wrap large dependency lists on column 80 (with \), and
 
4821
    # we should not choose a depcomp mode which is confused by this.
 
4822
    #
 
4823
    # We need to recreate these files for each test, as the compiler may
 
4824
    # overwrite some of them when testing with obscure command lines.
 
4825
    # This happens at least with the AIX C compiler.
 
4826
    : > sub/conftest.c
 
4827
    for i in 1 2 3 4 5 6; do
 
4828
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
 
4829
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
 
4830
      # Solaris 8's {/usr,}/bin/sh.
 
4831
      touch sub/conftst$i.h
 
4832
    done
 
4833
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
 
4834
 
 
4835
    case $depmode in
 
4836
    nosideeffect)
 
4837
      # after this tag, mechanisms are not by side-effect, so they'll
 
4838
      # only be used when explicitly requested
 
4839
      if test "x$enable_dependency_tracking" = xyes; then
 
4840
        continue
 
4841
      else
 
4842
        break
 
4843
      fi
 
4844
      ;;
 
4845
    none) break ;;
 
4846
    esac
 
4847
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
 
4848
    # mode.  It turns out that the SunPro C++ compiler does not properly
 
4849
    # handle `-M -o', and we need to detect this.
 
4850
    if depmode=$depmode \
 
4851
       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
 
4852
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
 
4853
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
 
4854
         >/dev/null 2>conftest.err &&
 
4855
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
 
4856
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
 
4857
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
 
4858
      # icc doesn't choke on unknown options, it will just issue warnings
 
4859
      # or remarks (even with -Werror).  So we grep stderr for any message
 
4860
      # that says an option was ignored or not supported.
 
4861
      # When given -MP, icc 7.0 and 7.1 complain thusly:
 
4862
      #   icc: Command line warning: ignoring option '-M'; no argument required
 
4863
      # The diagnosis changed in icc 8.0:
 
4864
      #   icc: Command line remark: option '-MP' not supported
 
4865
      if (grep 'ignoring option' conftest.err ||
 
4866
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
 
4867
        am_cv_CXX_dependencies_compiler_type=$depmode
 
4868
        break
 
4869
      fi
 
4870
    fi
 
4871
  done
 
4872
 
 
4873
  cd ..
 
4874
  rm -rf conftest.dir
 
4875
else
 
4876
  am_cv_CXX_dependencies_compiler_type=none
 
4877
fi
 
4878
 
 
4879
fi
 
4880
echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
 
4881
echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
 
4882
CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
 
4883
 
 
4884
 
 
4885
 
 
4886
if
 
4887
  test "x$enable_dependency_tracking" != xno \
 
4888
  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
 
4889
  am__fastdepCXX_TRUE=
 
4890
  am__fastdepCXX_FALSE='#'
 
4891
else
 
4892
  am__fastdepCXX_TRUE='#'
 
4893
  am__fastdepCXX_FALSE=
 
4894
fi
 
4895
 
 
4896
 
 
4897
ac_ext=cc
 
4898
ac_cpp='$CXXCPP $CPPFLAGS'
 
4899
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
4900
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
4901
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
4902
echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
 
4903
echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
 
4904
if test -z "$CXXCPP"; then
 
4905
  if test "${ac_cv_prog_CXXCPP+set}" = set; then
 
4906
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4907
else
 
4908
      # Double quotes because CXXCPP needs to be expanded
 
4909
    for CXXCPP in "$CXX -E" "/lib/cpp"
 
4910
    do
 
4911
      ac_preproc_ok=false
 
4912
for ac_cxx_preproc_warn_flag in '' yes
 
4913
do
 
4914
  # Use a header file that comes with gcc, so configuring glibc
 
4915
  # with a fresh cross-compiler works.
 
4916
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
4917
  # <limits.h> exists even on freestanding compilers.
 
4918
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
4919
  # not just through cpp. "Syntax error" is here to catch this case.
 
4920
  cat >conftest.$ac_ext <<_ACEOF
 
4921
/* confdefs.h.  */
 
4922
_ACEOF
 
4923
cat confdefs.h >>conftest.$ac_ext
 
4924
cat >>conftest.$ac_ext <<_ACEOF
 
4925
/* end confdefs.h.  */
 
4926
#ifdef __STDC__
 
4927
# include <limits.h>
 
4928
#else
 
4929
# include <assert.h>
 
4930
#endif
 
4931
                     Syntax error
 
4932
_ACEOF
 
4933
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
4934
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
4935
  ac_status=$?
 
4936
  grep -v '^ *+' conftest.er1 >conftest.err
 
4937
  rm -f conftest.er1
 
4938
  cat conftest.err >&5
 
4939
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4940
  (exit $ac_status); } >/dev/null; then
 
4941
  if test -s conftest.err; then
 
4942
    ac_cpp_err=$ac_cxx_preproc_warn_flag
 
4943
    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
 
4944
  else
 
4945
    ac_cpp_err=
 
4946
  fi
 
4947
else
 
4948
  ac_cpp_err=yes
 
4949
fi
 
4950
if test -z "$ac_cpp_err"; then
 
4951
  :
 
4952
else
 
4953
  echo "$as_me: failed program was:" >&5
 
4954
sed 's/^/| /' conftest.$ac_ext >&5
 
4955
 
 
4956
  # Broken: fails on valid input.
 
4957
continue
 
4958
fi
 
4959
rm -f conftest.err conftest.$ac_ext
 
4960
 
 
4961
  # OK, works on sane cases.  Now check whether non-existent headers
 
4962
  # can be detected and how.
 
4963
  cat >conftest.$ac_ext <<_ACEOF
 
4964
/* confdefs.h.  */
 
4965
_ACEOF
 
4966
cat confdefs.h >>conftest.$ac_ext
 
4967
cat >>conftest.$ac_ext <<_ACEOF
 
4968
/* end confdefs.h.  */
 
4969
#include <ac_nonexistent.h>
 
4970
_ACEOF
 
4971
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
4972
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
4973
  ac_status=$?
 
4974
  grep -v '^ *+' conftest.er1 >conftest.err
 
4975
  rm -f conftest.er1
 
4976
  cat conftest.err >&5
 
4977
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4978
  (exit $ac_status); } >/dev/null; then
 
4979
  if test -s conftest.err; then
 
4980
    ac_cpp_err=$ac_cxx_preproc_warn_flag
 
4981
    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
 
4982
  else
 
4983
    ac_cpp_err=
 
4984
  fi
 
4985
else
 
4986
  ac_cpp_err=yes
 
4987
fi
 
4988
if test -z "$ac_cpp_err"; then
 
4989
  # Broken: success on invalid input.
 
4990
continue
 
4991
else
 
4992
  echo "$as_me: failed program was:" >&5
 
4993
sed 's/^/| /' conftest.$ac_ext >&5
 
4994
 
 
4995
  # Passes both tests.
 
4996
ac_preproc_ok=:
 
4997
break
 
4998
fi
 
4999
rm -f conftest.err conftest.$ac_ext
 
5000
 
 
5001
done
 
5002
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
5003
rm -f conftest.err conftest.$ac_ext
 
5004
if $ac_preproc_ok; then
 
5005
  break
 
5006
fi
 
5007
 
 
5008
    done
 
5009
    ac_cv_prog_CXXCPP=$CXXCPP
 
5010
 
 
5011
fi
 
5012
  CXXCPP=$ac_cv_prog_CXXCPP
 
5013
else
 
5014
  ac_cv_prog_CXXCPP=$CXXCPP
 
5015
fi
 
5016
echo "$as_me:$LINENO: result: $CXXCPP" >&5
 
5017
echo "${ECHO_T}$CXXCPP" >&6
 
5018
ac_preproc_ok=false
 
5019
for ac_cxx_preproc_warn_flag in '' yes
 
5020
do
 
5021
  # Use a header file that comes with gcc, so configuring glibc
 
5022
  # with a fresh cross-compiler works.
 
5023
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
5024
  # <limits.h> exists even on freestanding compilers.
 
5025
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
5026
  # not just through cpp. "Syntax error" is here to catch this case.
 
5027
  cat >conftest.$ac_ext <<_ACEOF
 
5028
/* confdefs.h.  */
 
5029
_ACEOF
 
5030
cat confdefs.h >>conftest.$ac_ext
 
5031
cat >>conftest.$ac_ext <<_ACEOF
 
5032
/* end confdefs.h.  */
 
5033
#ifdef __STDC__
 
5034
# include <limits.h>
 
5035
#else
 
5036
# include <assert.h>
 
5037
#endif
 
5038
                     Syntax error
 
5039
_ACEOF
 
5040
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
5041
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
5042
  ac_status=$?
 
5043
  grep -v '^ *+' conftest.er1 >conftest.err
 
5044
  rm -f conftest.er1
 
5045
  cat conftest.err >&5
 
5046
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5047
  (exit $ac_status); } >/dev/null; then
 
5048
  if test -s conftest.err; then
 
5049
    ac_cpp_err=$ac_cxx_preproc_warn_flag
 
5050
    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
 
5051
  else
 
5052
    ac_cpp_err=
 
5053
  fi
 
5054
else
 
5055
  ac_cpp_err=yes
 
5056
fi
 
5057
if test -z "$ac_cpp_err"; then
 
5058
  :
 
5059
else
 
5060
  echo "$as_me: failed program was:" >&5
 
5061
sed 's/^/| /' conftest.$ac_ext >&5
 
5062
 
 
5063
  # Broken: fails on valid input.
 
5064
continue
 
5065
fi
 
5066
rm -f conftest.err conftest.$ac_ext
 
5067
 
 
5068
  # OK, works on sane cases.  Now check whether non-existent headers
 
5069
  # can be detected and how.
 
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
#include <ac_nonexistent.h>
 
5077
_ACEOF
 
5078
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
5079
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
5080
  ac_status=$?
 
5081
  grep -v '^ *+' conftest.er1 >conftest.err
 
5082
  rm -f conftest.er1
 
5083
  cat conftest.err >&5
 
5084
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5085
  (exit $ac_status); } >/dev/null; then
 
5086
  if test -s conftest.err; then
 
5087
    ac_cpp_err=$ac_cxx_preproc_warn_flag
 
5088
    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
 
5089
  else
 
5090
    ac_cpp_err=
 
5091
  fi
 
5092
else
 
5093
  ac_cpp_err=yes
 
5094
fi
 
5095
if test -z "$ac_cpp_err"; then
 
5096
  # Broken: success on invalid input.
 
5097
continue
 
5098
else
 
5099
  echo "$as_me: failed program was:" >&5
 
5100
sed 's/^/| /' conftest.$ac_ext >&5
 
5101
 
 
5102
  # Passes both tests.
 
5103
ac_preproc_ok=:
 
5104
break
 
5105
fi
 
5106
rm -f conftest.err conftest.$ac_ext
 
5107
 
 
5108
done
 
5109
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
5110
rm -f conftest.err conftest.$ac_ext
 
5111
if $ac_preproc_ok; then
 
5112
  :
 
5113
else
 
5114
  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
 
5115
See \`config.log' for more details." >&5
 
5116
echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
 
5117
See \`config.log' for more details." >&2;}
 
5118
   { (exit 1); exit 1; }; }
 
5119
fi
 
5120
 
 
5121
ac_ext=cc
 
5122
ac_cpp='$CXXCPP $CPPFLAGS'
 
5123
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
5124
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
5125
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
5126
 
 
5127
 
 
5128
ac_ext=f
 
5129
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
 
5130
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
5131
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
 
5132
if test -n "$ac_tool_prefix"; then
 
5133
  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
 
5134
  do
 
5135
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
5136
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
5137
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5138
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
5139
if test "${ac_cv_prog_F77+set}" = set; then
 
5140
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5141
else
 
5142
  if test -n "$F77"; then
 
5143
  ac_cv_prog_F77="$F77" # Let the user override the test.
 
5144
else
 
5145
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5146
for as_dir in $PATH
 
5147
do
 
5148
  IFS=$as_save_IFS
 
5149
  test -z "$as_dir" && as_dir=.
 
5150
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5151
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
5152
    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
 
5153
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5154
    break 2
 
5155
  fi
 
5156
done
 
5157
done
 
5158
 
 
5159
fi
 
5160
fi
 
5161
F77=$ac_cv_prog_F77
 
5162
if test -n "$F77"; then
 
5163
  echo "$as_me:$LINENO: result: $F77" >&5
 
5164
echo "${ECHO_T}$F77" >&6
 
5165
else
 
5166
  echo "$as_me:$LINENO: result: no" >&5
 
5167
echo "${ECHO_T}no" >&6
 
5168
fi
 
5169
 
 
5170
    test -n "$F77" && break
 
5171
  done
 
5172
fi
 
5173
if test -z "$F77"; then
 
5174
  ac_ct_F77=$F77
 
5175
  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
 
5176
do
 
5177
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
5178
set dummy $ac_prog; ac_word=$2
 
5179
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5180
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
5181
if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
 
5182
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5183
else
 
5184
  if test -n "$ac_ct_F77"; then
 
5185
  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
 
5186
else
 
5187
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5188
for as_dir in $PATH
 
5189
do
 
5190
  IFS=$as_save_IFS
 
5191
  test -z "$as_dir" && as_dir=.
 
5192
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5193
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
5194
    ac_cv_prog_ac_ct_F77="$ac_prog"
 
5195
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5196
    break 2
 
5197
  fi
 
5198
done
 
5199
done
 
5200
 
 
5201
fi
 
5202
fi
 
5203
ac_ct_F77=$ac_cv_prog_ac_ct_F77
 
5204
if test -n "$ac_ct_F77"; then
 
5205
  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
 
5206
echo "${ECHO_T}$ac_ct_F77" >&6
 
5207
else
 
5208
  echo "$as_me:$LINENO: result: no" >&5
 
5209
echo "${ECHO_T}no" >&6
 
5210
fi
 
5211
 
 
5212
  test -n "$ac_ct_F77" && break
 
5213
done
 
5214
 
 
5215
  F77=$ac_ct_F77
 
5216
fi
 
5217
 
 
5218
 
 
5219
# Provide some information about the compiler.
 
5220
echo "$as_me:5220:" \
 
5221
     "checking for Fortran 77 compiler version" >&5
 
5222
ac_compiler=`set X $ac_compile; echo $2`
 
5223
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
 
5224
  (eval $ac_compiler --version </dev/null >&5) 2>&5
 
5225
  ac_status=$?
 
5226
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5227
  (exit $ac_status); }
 
5228
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
 
5229
  (eval $ac_compiler -v </dev/null >&5) 2>&5
 
5230
  ac_status=$?
 
5231
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5232
  (exit $ac_status); }
 
5233
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
 
5234
  (eval $ac_compiler -V </dev/null >&5) 2>&5
 
5235
  ac_status=$?
 
5236
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5237
  (exit $ac_status); }
 
5238
rm -f a.out
 
5239
 
 
5240
# If we don't use `.F' as extension, the preprocessor is not run on the
 
5241
# input file.  (Note that this only needs to work for GNU compilers.)
 
5242
ac_save_ext=$ac_ext
 
5243
ac_ext=F
 
5244
echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
 
5245
echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
 
5246
if test "${ac_cv_f77_compiler_gnu+set}" = set; then
 
5247
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5248
else
 
5249
  cat >conftest.$ac_ext <<_ACEOF
 
5250
      program main
 
5251
#ifndef __GNUC__
 
5252
       choke me
 
5253
#endif
 
5254
 
 
5255
      end
 
5256
_ACEOF
 
5257
rm -f conftest.$ac_objext
 
5258
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
5259
  (eval $ac_compile) 2>conftest.er1
 
5260
  ac_status=$?
 
5261
  grep -v '^ *+' conftest.er1 >conftest.err
 
5262
  rm -f conftest.er1
 
5263
  cat conftest.err >&5
 
5264
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5265
  (exit $ac_status); } &&
 
5266
         { ac_try='test -z "$ac_f77_werror_flag"                         || test ! -s conftest.err'
 
5267
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5268
  (eval $ac_try) 2>&5
 
5269
  ac_status=$?
 
5270
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5271
  (exit $ac_status); }; } &&
 
5272
         { ac_try='test -s conftest.$ac_objext'
 
5273
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5274
  (eval $ac_try) 2>&5
 
5275
  ac_status=$?
 
5276
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5277
  (exit $ac_status); }; }; then
 
5278
  ac_compiler_gnu=yes
 
5279
else
 
5280
  echo "$as_me: failed program was:" >&5
 
5281
sed 's/^/| /' conftest.$ac_ext >&5
 
5282
 
 
5283
ac_compiler_gnu=no
 
5284
fi
 
5285
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
5286
ac_cv_f77_compiler_gnu=$ac_compiler_gnu
 
5287
 
 
5288
fi
 
5289
echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
 
5290
echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
 
5291
ac_ext=$ac_save_ext
 
5292
ac_test_FFLAGS=${FFLAGS+set}
 
5293
ac_save_FFLAGS=$FFLAGS
 
5294
FFLAGS=
 
5295
echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
 
5296
echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
 
5297
if test "${ac_cv_prog_f77_g+set}" = set; then
 
5298
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5299
else
 
5300
  FFLAGS=-g
 
5301
cat >conftest.$ac_ext <<_ACEOF
 
5302
      program main
 
5303
 
 
5304
      end
 
5305
_ACEOF
 
5306
rm -f conftest.$ac_objext
 
5307
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
5308
  (eval $ac_compile) 2>conftest.er1
 
5309
  ac_status=$?
 
5310
  grep -v '^ *+' conftest.er1 >conftest.err
 
5311
  rm -f conftest.er1
 
5312
  cat conftest.err >&5
 
5313
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5314
  (exit $ac_status); } &&
 
5315
         { ac_try='test -z "$ac_f77_werror_flag"                         || test ! -s conftest.err'
 
5316
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5317
  (eval $ac_try) 2>&5
 
5318
  ac_status=$?
 
5319
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5320
  (exit $ac_status); }; } &&
 
5321
         { ac_try='test -s conftest.$ac_objext'
 
5322
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5323
  (eval $ac_try) 2>&5
 
5324
  ac_status=$?
 
5325
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5326
  (exit $ac_status); }; }; then
 
5327
  ac_cv_prog_f77_g=yes
 
5328
else
 
5329
  echo "$as_me: failed program was:" >&5
 
5330
sed 's/^/| /' conftest.$ac_ext >&5
 
5331
 
 
5332
ac_cv_prog_f77_g=no
 
5333
fi
 
5334
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
5335
 
 
5336
fi
 
5337
echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
 
5338
echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
 
5339
if test "$ac_test_FFLAGS" = set; then
 
5340
  FFLAGS=$ac_save_FFLAGS
 
5341
elif test $ac_cv_prog_f77_g = yes; then
 
5342
  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
 
5343
    FFLAGS="-g -O2"
 
5344
  else
 
5345
    FFLAGS="-g"
 
5346
  fi
 
5347
else
 
5348
  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
 
5349
    FFLAGS="-O2"
 
5350
  else
 
5351
    FFLAGS=
 
5352
  fi
 
5353
fi
 
5354
 
 
5355
G77=`test $ac_compiler_gnu = yes && echo yes`
 
5356
ac_ext=c
 
5357
ac_cpp='$CPP $CPPFLAGS'
 
5358
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
5359
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
5360
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
5361
 
 
5362
 
 
5363
 
 
5364
# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
 
5365
 
 
5366
# find the maximum length of command line arguments
 
5367
echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
 
5368
echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
 
5369
if test "${lt_cv_sys_max_cmd_len+set}" = set; then
 
5370
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5371
else
 
5372
    i=0
 
5373
  teststring="ABCD"
 
5374
 
 
5375
  case $build_os in
 
5376
  msdosdjgpp*)
 
5377
    # On DJGPP, this test can blow up pretty badly due to problems in libc
 
5378
    # (any single argument exceeding 2000 bytes causes a buffer overrun
 
5379
    # during glob expansion).  Even if it were fixed, the result of this
 
5380
    # check would be larger than it should be.
 
5381
    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
 
5382
    ;;
 
5383
 
 
5384
  gnu*)
 
5385
    # Under GNU Hurd, this test is not required because there is
 
5386
    # no limit to the length of command line arguments.
 
5387
    # Libtool will interpret -1 as no limit whatsoever
 
5388
    lt_cv_sys_max_cmd_len=-1;
 
5389
    ;;
 
5390
 
 
5391
  cygwin* | mingw*)
 
5392
    # On Win9x/ME, this test blows up -- it succeeds, but takes
 
5393
    # about 5 minutes as the teststring grows exponentially.
 
5394
    # Worse, since 9x/ME are not pre-emptively multitasking,
 
5395
    # you end up with a "frozen" computer, even though with patience
 
5396
    # the test eventually succeeds (with a max line length of 256k).
 
5397
    # Instead, let's just punt: use the minimum linelength reported by
 
5398
    # all of the supported platforms: 8192 (on NT/2K/XP).
 
5399
    lt_cv_sys_max_cmd_len=8192;
 
5400
    ;;
 
5401
 
 
5402
  amigaos*)
 
5403
    # On AmigaOS with pdksh, this test takes hours, literally.
 
5404
    # So we just punt and use a minimum line length of 8192.
 
5405
    lt_cv_sys_max_cmd_len=8192;
 
5406
    ;;
 
5407
 
 
5408
 *)
 
5409
    # If test is not a shell built-in, we'll probably end up computing a
 
5410
    # maximum length that is only half of the actual maximum length, but
 
5411
    # we can't tell.
 
5412
    while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
 
5413
               = "XX$teststring") >/dev/null 2>&1 &&
 
5414
            new_result=`expr "X$teststring" : ".*" 2>&1` &&
 
5415
            lt_cv_sys_max_cmd_len=$new_result &&
 
5416
            test $i != 17 # 1/2 MB should be enough
 
5417
    do
 
5418
      i=`expr $i + 1`
 
5419
      teststring=$teststring$teststring
 
5420
    done
 
5421
    teststring=
 
5422
    # Add a significant safety factor because C++ compilers can tack on massive
 
5423
    # amounts of additional arguments before passing them to the linker.
 
5424
    # It appears as though 1/2 is a usable value.
 
5425
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
 
5426
    ;;
 
5427
  esac
 
5428
 
 
5429
fi
 
5430
 
 
5431
if test -n $lt_cv_sys_max_cmd_len ; then
 
5432
  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
 
5433
echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
 
5434
else
 
5435
  echo "$as_me:$LINENO: result: none" >&5
 
5436
echo "${ECHO_T}none" >&6
 
5437
fi
 
5438
 
 
5439
 
 
5440
 
 
5441
 
 
5442
# Check for command to grab the raw symbol name followed by C symbol from nm.
 
5443
echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
 
5444
echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
 
5445
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
 
5446
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5447
else
 
5448
 
 
5449
# These are sane defaults that work on at least a few old systems.
 
5450
# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
 
5451
 
 
5452
# Character class describing NM global symbol codes.
 
5453
symcode='[BCDEGRST]'
 
5454
 
 
5455
# Regexp to match symbols that can be accessed directly from C.
 
5456
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
 
5457
 
 
5458
# Transform the above into a raw symbol and a C symbol.
 
5459
symxfrm='\1 \2\3 \3'
 
5460
 
 
5461
# Transform an extracted symbol line into a proper C declaration
 
5462
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
 
5463
 
 
5464
# Transform an extracted symbol line into symbol name and symbol address
 
5465
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'"
 
5466
 
 
5467
# Define system-specific variables.
 
5468
case $host_os in
 
5469
aix*)
 
5470
  symcode='[BCDT]'
 
5471
  ;;
 
5472
cygwin* | mingw* | pw32*)
 
5473
  symcode='[ABCDGISTW]'
 
5474
  ;;
 
5475
hpux*) # Its linker distinguishes data from code symbols
 
5476
  if test "$host_cpu" = ia64; then
 
5477
    symcode='[ABCDEGRST]'
 
5478
  fi
 
5479
  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
 
5480
  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'"
 
5481
  ;;
 
5482
irix* | nonstopux*)
 
5483
  symcode='[BCDEGRST]'
 
5484
  ;;
 
5485
osf*)
 
5486
  symcode='[BCDEGQRST]'
 
5487
  ;;
 
5488
solaris* | sysv5*)
 
5489
  symcode='[BDRT]'
 
5490
  ;;
 
5491
sysv4)
 
5492
  symcode='[DFNSTU]'
 
5493
  ;;
 
5494
esac
 
5495
 
 
5496
# Handle CRLF in mingw tool chain
 
5497
opt_cr=
 
5498
case $build_os in
 
5499
mingw*)
 
5500
  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
 
5501
  ;;
 
5502
esac
 
5503
 
 
5504
# If we're using GNU nm, then use its standard symbol codes.
 
5505
case `$NM -V 2>&1` in
 
5506
*GNU* | *'with BFD'*)
 
5507
  symcode='[ABCDGIRSTW]' ;;
 
5508
esac
 
5509
 
 
5510
# Try without a prefix undercore, then with it.
 
5511
for ac_symprfx in "" "_"; do
 
5512
 
 
5513
  # Write the raw and C identifiers.
 
5514
  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
 
5515
 
 
5516
  # Check to see that the pipe works correctly.
 
5517
  pipe_works=no
 
5518
 
 
5519
  rm -f conftest*
 
5520
  cat > conftest.$ac_ext <<EOF
 
5521
#ifdef __cplusplus
 
5522
extern "C" {
 
5523
#endif
 
5524
char nm_test_var;
 
5525
void nm_test_func(){}
 
5526
#ifdef __cplusplus
 
5527
}
 
5528
#endif
 
5529
int main(){nm_test_var='a';nm_test_func();return(0);}
 
5530
EOF
 
5531
 
 
5532
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
5533
  (eval $ac_compile) 2>&5
 
5534
  ac_status=$?
 
5535
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5536
  (exit $ac_status); }; then
 
5537
    # Now try to grab the symbols.
 
5538
    nlist=conftest.nm
 
5539
    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
 
5540
  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
 
5541
  ac_status=$?
 
5542
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5543
  (exit $ac_status); } && test -s "$nlist"; then
 
5544
      # Try sorting and uniquifying the output.
 
5545
      if sort "$nlist" | uniq > "$nlist"T; then
 
5546
        mv -f "$nlist"T "$nlist"
 
5547
      else
 
5548
        rm -f "$nlist"T
 
5549
      fi
 
5550
 
 
5551
      # Make sure that we snagged all the symbols we need.
 
5552
      if grep ' nm_test_var$' "$nlist" >/dev/null; then
 
5553
        if grep ' nm_test_func$' "$nlist" >/dev/null; then
 
5554
          cat <<EOF > conftest.$ac_ext
 
5555
#ifdef __cplusplus
 
5556
extern "C" {
 
5557
#endif
 
5558
 
 
5559
EOF
 
5560
          # Now generate the symbol file.
 
5561
          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
 
5562
 
 
5563
          cat <<EOF >> conftest.$ac_ext
 
5564
#if defined (__STDC__) && __STDC__
 
5565
# define lt_ptr_t void *
 
5566
#else
 
5567
# define lt_ptr_t char *
 
5568
# define const
 
5569
#endif
 
5570
 
 
5571
/* The mapping between symbol names and symbols. */
 
5572
const struct {
 
5573
  const char *name;
 
5574
  lt_ptr_t address;
 
5575
}
 
5576
lt_preloaded_symbols[] =
 
5577
{
 
5578
EOF
 
5579
          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
 
5580
          cat <<\EOF >> conftest.$ac_ext
 
5581
  {0, (lt_ptr_t) 0}
 
5582
};
 
5583
 
 
5584
#ifdef __cplusplus
 
5585
}
 
5586
#endif
 
5587
EOF
 
5588
          # Now try linking the two files.
 
5589
          mv conftest.$ac_objext conftstm.$ac_objext
 
5590
          lt_save_LIBS="$LIBS"
 
5591
          lt_save_CFLAGS="$CFLAGS"
 
5592
          LIBS="conftstm.$ac_objext"
 
5593
          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
 
5594
          if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
5595
  (eval $ac_link) 2>&5
 
5596
  ac_status=$?
 
5597
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5598
  (exit $ac_status); } && test -s conftest${ac_exeext}; then
 
5599
            pipe_works=yes
 
5600
          fi
 
5601
          LIBS="$lt_save_LIBS"
 
5602
          CFLAGS="$lt_save_CFLAGS"
 
5603
        else
 
5604
          echo "cannot find nm_test_func in $nlist" >&5
 
5605
        fi
 
5606
      else
 
5607
        echo "cannot find nm_test_var in $nlist" >&5
 
5608
      fi
 
5609
    else
 
5610
      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
 
5611
    fi
 
5612
  else
 
5613
    echo "$progname: failed program was:" >&5
 
5614
    cat conftest.$ac_ext >&5
 
5615
  fi
 
5616
  rm -f conftest* conftst*
 
5617
 
 
5618
  # Do not use the global_symbol_pipe unless it works.
 
5619
  if test "$pipe_works" = yes; then
 
5620
    break
 
5621
  else
 
5622
    lt_cv_sys_global_symbol_pipe=
 
5623
  fi
 
5624
done
 
5625
 
 
5626
fi
 
5627
 
 
5628
if test -z "$lt_cv_sys_global_symbol_pipe"; then
 
5629
  lt_cv_sys_global_symbol_to_cdecl=
 
5630
fi
 
5631
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
 
5632
  echo "$as_me:$LINENO: result: failed" >&5
 
5633
echo "${ECHO_T}failed" >&6
 
5634
else
 
5635
  echo "$as_me:$LINENO: result: ok" >&5
 
5636
echo "${ECHO_T}ok" >&6
 
5637
fi
 
5638
 
 
5639
echo "$as_me:$LINENO: checking for objdir" >&5
 
5640
echo $ECHO_N "checking for objdir... $ECHO_C" >&6
 
5641
if test "${lt_cv_objdir+set}" = set; then
 
5642
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5643
else
 
5644
  rm -f .libs 2>/dev/null
 
5645
mkdir .libs 2>/dev/null
 
5646
if test -d .libs; then
 
5647
  lt_cv_objdir=.libs
 
5648
else
 
5649
  # MS-DOS does not allow filenames that begin with a dot.
 
5650
  lt_cv_objdir=_libs
 
5651
fi
 
5652
rmdir .libs 2>/dev/null
 
5653
fi
 
5654
echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
 
5655
echo "${ECHO_T}$lt_cv_objdir" >&6
 
5656
objdir=$lt_cv_objdir
 
5657
 
 
5658
 
 
5659
 
 
5660
 
 
5661
 
 
5662
case $host_os in
 
5663
aix3*)
 
5664
  # AIX sometimes has problems with the GCC collect2 program.  For some
 
5665
  # reason, if we set the COLLECT_NAMES environment variable, the problems
 
5666
  # vanish in a puff of smoke.
 
5667
  if test "X${COLLECT_NAMES+set}" != Xset; then
 
5668
    COLLECT_NAMES=
 
5669
    export COLLECT_NAMES
 
5670
  fi
 
5671
  ;;
 
5672
esac
 
5673
 
 
5674
# Sed substitution that helps us do robust quoting.  It backslashifies
 
5675
# metacharacters that are still active within double-quoted strings.
 
5676
Xsed='sed -e s/^X//'
 
5677
sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
 
5678
 
 
5679
# Same as above, but do not quote variable references.
 
5680
double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
 
5681
 
 
5682
# Sed substitution to delay expansion of an escaped shell variable in a
 
5683
# double_quote_subst'ed string.
 
5684
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
 
5685
 
 
5686
# Sed substitution to avoid accidental globbing in evaled expressions
 
5687
no_glob_subst='s/\*/\\\*/g'
 
5688
 
 
5689
# Constants:
 
5690
rm="rm -f"
 
5691
 
 
5692
# Global variables:
 
5693
default_ofile=libtool
 
5694
can_build_shared=yes
 
5695
 
 
5696
# All known linkers require a `.a' archive for static linking (except M$VC,
 
5697
# which needs '.lib').
 
5698
libext=a
 
5699
ltmain="$ac_aux_dir/ltmain.sh"
 
5700
ofile="$default_ofile"
 
5701
with_gnu_ld="$lt_cv_prog_gnu_ld"
 
5702
 
 
5703
if test -n "$ac_tool_prefix"; then
 
5704
  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
 
5705
set dummy ${ac_tool_prefix}ar; ac_word=$2
 
5706
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5707
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
5708
if test "${ac_cv_prog_AR+set}" = set; then
 
5709
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5710
else
 
5711
  if test -n "$AR"; then
 
5712
  ac_cv_prog_AR="$AR" # Let the user override the test.
 
5713
else
 
5714
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5715
for as_dir in $PATH
 
5716
do
 
5717
  IFS=$as_save_IFS
 
5718
  test -z "$as_dir" && as_dir=.
 
5719
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5720
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
5721
    ac_cv_prog_AR="${ac_tool_prefix}ar"
 
5722
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5723
    break 2
 
5724
  fi
 
5725
done
 
5726
done
 
5727
 
 
5728
fi
 
5729
fi
 
5730
AR=$ac_cv_prog_AR
 
5731
if test -n "$AR"; then
 
5732
  echo "$as_me:$LINENO: result: $AR" >&5
 
5733
echo "${ECHO_T}$AR" >&6
 
5734
else
 
5735
  echo "$as_me:$LINENO: result: no" >&5
 
5736
echo "${ECHO_T}no" >&6
 
5737
fi
 
5738
 
 
5739
fi
 
5740
if test -z "$ac_cv_prog_AR"; then
 
5741
  ac_ct_AR=$AR
 
5742
  # Extract the first word of "ar", so it can be a program name with args.
 
5743
set dummy ar; ac_word=$2
 
5744
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5745
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
5746
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
 
5747
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5748
else
 
5749
  if test -n "$ac_ct_AR"; then
 
5750
  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
 
5751
else
 
5752
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5753
for as_dir in $PATH
 
5754
do
 
5755
  IFS=$as_save_IFS
 
5756
  test -z "$as_dir" && as_dir=.
 
5757
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5758
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
5759
    ac_cv_prog_ac_ct_AR="ar"
 
5760
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5761
    break 2
 
5762
  fi
 
5763
done
 
5764
done
 
5765
 
 
5766
  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
 
5767
fi
 
5768
fi
 
5769
ac_ct_AR=$ac_cv_prog_ac_ct_AR
 
5770
if test -n "$ac_ct_AR"; then
 
5771
  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
 
5772
echo "${ECHO_T}$ac_ct_AR" >&6
 
5773
else
 
5774
  echo "$as_me:$LINENO: result: no" >&5
 
5775
echo "${ECHO_T}no" >&6
 
5776
fi
 
5777
 
 
5778
  AR=$ac_ct_AR
 
5779
else
 
5780
  AR="$ac_cv_prog_AR"
 
5781
fi
2276
5782
 
2277
5783
if test -n "$ac_tool_prefix"; then
2278
5784
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2354
5860
  RANLIB="$ac_cv_prog_RANLIB"
2355
5861
fi
2356
5862
 
 
5863
if test -n "$ac_tool_prefix"; then
 
5864
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
 
5865
set dummy ${ac_tool_prefix}strip; ac_word=$2
 
5866
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5867
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
5868
if test "${ac_cv_prog_STRIP+set}" = set; then
 
5869
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5870
else
 
5871
  if test -n "$STRIP"; then
 
5872
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
 
5873
else
 
5874
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5875
for as_dir in $PATH
 
5876
do
 
5877
  IFS=$as_save_IFS
 
5878
  test -z "$as_dir" && as_dir=.
 
5879
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5880
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
5881
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
 
5882
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5883
    break 2
 
5884
  fi
 
5885
done
 
5886
done
 
5887
 
 
5888
fi
 
5889
fi
 
5890
STRIP=$ac_cv_prog_STRIP
 
5891
if test -n "$STRIP"; then
 
5892
  echo "$as_me:$LINENO: result: $STRIP" >&5
 
5893
echo "${ECHO_T}$STRIP" >&6
 
5894
else
 
5895
  echo "$as_me:$LINENO: result: no" >&5
 
5896
echo "${ECHO_T}no" >&6
 
5897
fi
 
5898
 
 
5899
fi
 
5900
if test -z "$ac_cv_prog_STRIP"; then
 
5901
  ac_ct_STRIP=$STRIP
 
5902
  # Extract the first word of "strip", so it can be a program name with args.
 
5903
set dummy strip; ac_word=$2
 
5904
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5905
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
5906
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
 
5907
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5908
else
 
5909
  if test -n "$ac_ct_STRIP"; then
 
5910
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
 
5911
else
 
5912
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5913
for as_dir in $PATH
 
5914
do
 
5915
  IFS=$as_save_IFS
 
5916
  test -z "$as_dir" && as_dir=.
 
5917
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5918
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
5919
    ac_cv_prog_ac_ct_STRIP="strip"
 
5920
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5921
    break 2
 
5922
  fi
 
5923
done
 
5924
done
 
5925
 
 
5926
  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
 
5927
fi
 
5928
fi
 
5929
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
 
5930
if test -n "$ac_ct_STRIP"; then
 
5931
  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
 
5932
echo "${ECHO_T}$ac_ct_STRIP" >&6
 
5933
else
 
5934
  echo "$as_me:$LINENO: result: no" >&5
 
5935
echo "${ECHO_T}no" >&6
 
5936
fi
 
5937
 
 
5938
  STRIP=$ac_ct_STRIP
 
5939
else
 
5940
  STRIP="$ac_cv_prog_STRIP"
 
5941
fi
 
5942
 
 
5943
 
 
5944
old_CC="$CC"
 
5945
old_CFLAGS="$CFLAGS"
 
5946
 
 
5947
# Set sane defaults for various variables
 
5948
test -z "$AR" && AR=ar
 
5949
test -z "$AR_FLAGS" && AR_FLAGS=cru
 
5950
test -z "$AS" && AS=as
 
5951
test -z "$CC" && CC=cc
 
5952
test -z "$LTCC" && LTCC=$CC
 
5953
test -z "$DLLTOOL" && DLLTOOL=dlltool
 
5954
test -z "$LD" && LD=ld
 
5955
test -z "$LN_S" && LN_S="ln -s"
 
5956
test -z "$MAGIC_CMD" && MAGIC_CMD=file
 
5957
test -z "$NM" && NM=nm
 
5958
test -z "$SED" && SED=sed
 
5959
test -z "$OBJDUMP" && OBJDUMP=objdump
 
5960
test -z "$RANLIB" && RANLIB=:
 
5961
test -z "$STRIP" && STRIP=:
 
5962
test -z "$ac_objext" && ac_objext=o
 
5963
 
 
5964
# Determine commands to create old-style static archives.
 
5965
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
 
5966
old_postinstall_cmds='chmod 644 $oldlib'
 
5967
old_postuninstall_cmds=
 
5968
 
 
5969
if test -n "$RANLIB"; then
 
5970
  case $host_os in
 
5971
  openbsd*)
 
5972
    old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
 
5973
    ;;
 
5974
  *)
 
5975
    old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
 
5976
    ;;
 
5977
  esac
 
5978
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
 
5979
fi
 
5980
 
 
5981
# Only perform the check for file, if the check method requires it
 
5982
case $deplibs_check_method in
 
5983
file_magic*)
 
5984
  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
 
5985
    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
 
5986
echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
 
5987
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
 
5988
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5989
else
 
5990
  case $MAGIC_CMD in
 
5991
[\\/*] |  ?:[\\/]*)
 
5992
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
 
5993
  ;;
 
5994
*)
 
5995
  lt_save_MAGIC_CMD="$MAGIC_CMD"
 
5996
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
5997
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
 
5998
  for ac_dir in $ac_dummy; do
 
5999
    IFS="$lt_save_ifs"
 
6000
    test -z "$ac_dir" && ac_dir=.
 
6001
    if test -f $ac_dir/${ac_tool_prefix}file; then
 
6002
      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
 
6003
      if test -n "$file_magic_test_file"; then
 
6004
        case $deplibs_check_method in
 
6005
        "file_magic "*)
 
6006
          file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
 
6007
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
6008
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
 
6009
            $EGREP "$file_magic_regex" > /dev/null; then
 
6010
            :
 
6011
          else
 
6012
            cat <<EOF 1>&2
 
6013
 
 
6014
*** Warning: the command libtool uses to detect shared libraries,
 
6015
*** $file_magic_cmd, produces output that libtool cannot recognize.
 
6016
*** The result is that libtool may fail to recognize shared libraries
 
6017
*** as such.  This will affect the creation of libtool libraries that
 
6018
*** depend on shared libraries, but programs linked with such libtool
 
6019
*** libraries will work regardless of this problem.  Nevertheless, you
 
6020
*** may want to report the problem to your system manager and/or to
 
6021
*** bug-libtool@gnu.org
 
6022
 
 
6023
EOF
 
6024
          fi ;;
 
6025
        esac
 
6026
      fi
 
6027
      break
 
6028
    fi
 
6029
  done
 
6030
  IFS="$lt_save_ifs"
 
6031
  MAGIC_CMD="$lt_save_MAGIC_CMD"
 
6032
  ;;
 
6033
esac
 
6034
fi
 
6035
 
 
6036
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
6037
if test -n "$MAGIC_CMD"; then
 
6038
  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
 
6039
echo "${ECHO_T}$MAGIC_CMD" >&6
 
6040
else
 
6041
  echo "$as_me:$LINENO: result: no" >&5
 
6042
echo "${ECHO_T}no" >&6
 
6043
fi
 
6044
 
 
6045
if test -z "$lt_cv_path_MAGIC_CMD"; then
 
6046
  if test -n "$ac_tool_prefix"; then
 
6047
    echo "$as_me:$LINENO: checking for file" >&5
 
6048
echo $ECHO_N "checking for file... $ECHO_C" >&6
 
6049
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
 
6050
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6051
else
 
6052
  case $MAGIC_CMD in
 
6053
[\\/*] |  ?:[\\/]*)
 
6054
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
 
6055
  ;;
 
6056
*)
 
6057
  lt_save_MAGIC_CMD="$MAGIC_CMD"
 
6058
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
6059
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
 
6060
  for ac_dir in $ac_dummy; do
 
6061
    IFS="$lt_save_ifs"
 
6062
    test -z "$ac_dir" && ac_dir=.
 
6063
    if test -f $ac_dir/file; then
 
6064
      lt_cv_path_MAGIC_CMD="$ac_dir/file"
 
6065
      if test -n "$file_magic_test_file"; then
 
6066
        case $deplibs_check_method in
 
6067
        "file_magic "*)
 
6068
          file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
 
6069
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
6070
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
 
6071
            $EGREP "$file_magic_regex" > /dev/null; then
 
6072
            :
 
6073
          else
 
6074
            cat <<EOF 1>&2
 
6075
 
 
6076
*** Warning: the command libtool uses to detect shared libraries,
 
6077
*** $file_magic_cmd, produces output that libtool cannot recognize.
 
6078
*** The result is that libtool may fail to recognize shared libraries
 
6079
*** as such.  This will affect the creation of libtool libraries that
 
6080
*** depend on shared libraries, but programs linked with such libtool
 
6081
*** libraries will work regardless of this problem.  Nevertheless, you
 
6082
*** may want to report the problem to your system manager and/or to
 
6083
*** bug-libtool@gnu.org
 
6084
 
 
6085
EOF
 
6086
          fi ;;
 
6087
        esac
 
6088
      fi
 
6089
      break
 
6090
    fi
 
6091
  done
 
6092
  IFS="$lt_save_ifs"
 
6093
  MAGIC_CMD="$lt_save_MAGIC_CMD"
 
6094
  ;;
 
6095
esac
 
6096
fi
 
6097
 
 
6098
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
6099
if test -n "$MAGIC_CMD"; then
 
6100
  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
 
6101
echo "${ECHO_T}$MAGIC_CMD" >&6
 
6102
else
 
6103
  echo "$as_me:$LINENO: result: no" >&5
 
6104
echo "${ECHO_T}no" >&6
 
6105
fi
 
6106
 
 
6107
  else
 
6108
    MAGIC_CMD=:
 
6109
  fi
 
6110
fi
 
6111
 
 
6112
  fi
 
6113
  ;;
 
6114
esac
 
6115
 
 
6116
enable_dlopen=no
 
6117
enable_win32_dll=no
 
6118
 
 
6119
# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
 
6120
if test "${enable_libtool_lock+set}" = set; then
 
6121
  enableval="$enable_libtool_lock"
 
6122
 
 
6123
fi;
 
6124
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
 
6125
 
 
6126
 
 
6127
# Check whether --with-pic or --without-pic was given.
 
6128
if test "${with_pic+set}" = set; then
 
6129
  withval="$with_pic"
 
6130
  pic_mode="$withval"
 
6131
else
 
6132
  pic_mode=default
 
6133
fi;
 
6134
test -z "$pic_mode" && pic_mode=default
 
6135
 
 
6136
# Use C for the default configuration in the libtool script
 
6137
tagname=
 
6138
lt_save_CC="$CC"
 
6139
ac_ext=c
 
6140
ac_cpp='$CPP $CPPFLAGS'
 
6141
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
6142
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
6143
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
6144
 
 
6145
 
 
6146
# Source file extension for C test sources.
 
6147
ac_ext=c
 
6148
 
 
6149
# Object file extension for compiled C test sources.
 
6150
objext=o
 
6151
objext=$objext
 
6152
 
 
6153
# Code to be used in simple compile tests
 
6154
lt_simple_compile_test_code="int some_variable = 0;\n"
 
6155
 
 
6156
# Code to be used in simple link tests
 
6157
lt_simple_link_test_code='int main(){return(0);}\n'
 
6158
 
 
6159
 
 
6160
# If no C compiler was specified, use CC.
 
6161
LTCC=${LTCC-"$CC"}
 
6162
 
 
6163
# Allow CC to be a program name with arguments.
 
6164
compiler=$CC
 
6165
 
 
6166
 
 
6167
#
 
6168
# Check for any special shared library compilation flags.
 
6169
#
 
6170
lt_prog_cc_shlib=
 
6171
if test "$GCC" = no; then
 
6172
  case $host_os in
 
6173
  sco3.2v5*)
 
6174
    lt_prog_cc_shlib='-belf'
 
6175
    ;;
 
6176
  esac
 
6177
fi
 
6178
if test -n "$lt_prog_cc_shlib"; then
 
6179
  { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
 
6180
echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
 
6181
  if echo "$old_CC $old_CFLAGS " | grep "[      ]$lt_prog_cc_shlib[     ]" >/dev/null; then :
 
6182
  else
 
6183
    { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
 
6184
echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
 
6185
    lt_cv_prog_cc_can_build_shared=no
 
6186
  fi
 
6187
fi
 
6188
 
 
6189
 
 
6190
#
 
6191
# Check to make sure the static flag actually works.
 
6192
#
 
6193
echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
 
6194
echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
 
6195
if test "${lt_prog_compiler_static_works+set}" = set; then
 
6196
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6197
else
 
6198
  lt_prog_compiler_static_works=no
 
6199
   save_LDFLAGS="$LDFLAGS"
 
6200
   LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
 
6201
   printf "$lt_simple_link_test_code" > conftest.$ac_ext
 
6202
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
 
6203
     # The compiler can only warn and ignore the option if not recognized
 
6204
     # So say no if there are warnings
 
6205
     if test -s conftest.err; then
 
6206
       # Append any errors to the config.log.
 
6207
       cat conftest.err 1>&5
 
6208
     else
 
6209
       lt_prog_compiler_static_works=yes
 
6210
     fi
 
6211
   fi
 
6212
   $rm conftest*
 
6213
   LDFLAGS="$save_LDFLAGS"
 
6214
 
 
6215
fi
 
6216
echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
 
6217
echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
 
6218
 
 
6219
if test x"$lt_prog_compiler_static_works" = xyes; then
 
6220
    :
 
6221
else
 
6222
    lt_prog_compiler_static=
 
6223
fi
 
6224
 
 
6225
 
 
6226
 
 
6227
 
 
6228
lt_prog_compiler_no_builtin_flag=
 
6229
 
 
6230
if test "$GCC" = yes; then
 
6231
  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
 
6232
 
 
6233
 
 
6234
echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
 
6235
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
 
6236
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
 
6237
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6238
else
 
6239
  lt_cv_prog_compiler_rtti_exceptions=no
 
6240
  ac_outfile=conftest.$ac_objext
 
6241
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
6242
   lt_compiler_flag="-fno-rtti -fno-exceptions"
 
6243
   # Insert the option either (1) after the last *FLAGS variable, or
 
6244
   # (2) before a word containing "conftest.", or (3) at the end.
 
6245
   # Note that $ac_compile itself does not contain backslashes and begins
 
6246
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
6247
   # The option is referenced via a variable to avoid confusing sed.
 
6248
   lt_compile=`echo "$ac_compile" | $SED \
 
6249
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
6250
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
6251
   -e 's:$: $lt_compiler_flag:'`
 
6252
   (eval echo "\"\$as_me:6252: $lt_compile\"" >&5)
 
6253
   (eval "$lt_compile" 2>conftest.err)
 
6254
   ac_status=$?
 
6255
   cat conftest.err >&5
 
6256
   echo "$as_me:6256: \$? = $ac_status" >&5
 
6257
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
6258
     # The compiler can only warn and ignore the option if not recognized
 
6259
     # So say no if there are warnings
 
6260
     if test ! -s conftest.err; then
 
6261
       lt_cv_prog_compiler_rtti_exceptions=yes
 
6262
     fi
 
6263
   fi
 
6264
   $rm conftest*
 
6265
 
 
6266
fi
 
6267
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
 
6268
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
 
6269
 
 
6270
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
 
6271
    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
 
6272
else
 
6273
    :
 
6274
fi
 
6275
 
 
6276
fi
 
6277
 
 
6278
lt_prog_compiler_wl=
 
6279
lt_prog_compiler_pic=
 
6280
lt_prog_compiler_static=
 
6281
 
 
6282
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
 
6283
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
 
6284
 
 
6285
  if test "$GCC" = yes; then
 
6286
    lt_prog_compiler_wl='-Wl,'
 
6287
    lt_prog_compiler_static='-static'
 
6288
 
 
6289
    case $host_os in
 
6290
      aix*)
 
6291
      # All AIX code is PIC.
 
6292
      if test "$host_cpu" = ia64; then
 
6293
        # AIX 5 now supports IA64 processor
 
6294
        lt_prog_compiler_static='-Bstatic'
 
6295
      fi
 
6296
      ;;
 
6297
 
 
6298
    amigaos*)
 
6299
      # FIXME: we need at least 68020 code to build shared libraries, but
 
6300
      # adding the `-m68020' flag to GCC prevents building anything better,
 
6301
      # like `-m68040'.
 
6302
      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
 
6303
      ;;
 
6304
 
 
6305
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
6306
      # PIC is the default for these OSes.
 
6307
      ;;
 
6308
 
 
6309
    mingw* | pw32* | os2*)
 
6310
      # This hack is so that the source file can tell whether it is being
 
6311
      # built for inclusion in a dll (and should export symbols for example).
 
6312
      lt_prog_compiler_pic='-DDLL_EXPORT'
 
6313
      ;;
 
6314
 
 
6315
    darwin* | rhapsody*)
 
6316
      # PIC is the default on this platform
 
6317
      # Common symbols not allowed in MH_DYLIB files
 
6318
      lt_prog_compiler_pic='-fno-common'
 
6319
      ;;
 
6320
 
 
6321
    msdosdjgpp*)
 
6322
      # Just because we use GCC doesn't mean we suddenly get shared libraries
 
6323
      # on systems that don't support them.
 
6324
      lt_prog_compiler_can_build_shared=no
 
6325
      enable_shared=no
 
6326
      ;;
 
6327
 
 
6328
    sysv4*MP*)
 
6329
      if test -d /usr/nec; then
 
6330
        lt_prog_compiler_pic=-Kconform_pic
 
6331
      fi
 
6332
      ;;
 
6333
 
 
6334
    hpux*)
 
6335
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
6336
      # not for PA HP-UX.
 
6337
      case "$host_cpu" in
 
6338
      hppa*64*|ia64*)
 
6339
        # +Z the default
 
6340
        ;;
 
6341
      *)
 
6342
        lt_prog_compiler_pic='-fPIC'
 
6343
        ;;
 
6344
      esac
 
6345
      ;;
 
6346
 
 
6347
    *)
 
6348
      lt_prog_compiler_pic='-fPIC'
 
6349
      ;;
 
6350
    esac
 
6351
  else
 
6352
    # PORTME Check for flag to pass linker flags through the system compiler.
 
6353
    case $host_os in
 
6354
    aix*)
 
6355
      lt_prog_compiler_wl='-Wl,'
 
6356
      if test "$host_cpu" = ia64; then
 
6357
        # AIX 5 now supports IA64 processor
 
6358
        lt_prog_compiler_static='-Bstatic'
 
6359
      else
 
6360
        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
 
6361
      fi
 
6362
      ;;
 
6363
 
 
6364
    mingw* | pw32* | os2*)
 
6365
      # This hack is so that the source file can tell whether it is being
 
6366
      # built for inclusion in a dll (and should export symbols for example).
 
6367
      lt_prog_compiler_pic='-DDLL_EXPORT'
 
6368
      ;;
 
6369
 
 
6370
    hpux9* | hpux10* | hpux11*)
 
6371
      lt_prog_compiler_wl='-Wl,'
 
6372
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
6373
      # not for PA HP-UX.
 
6374
      case "$host_cpu" in
 
6375
      hppa*64*|ia64*)
 
6376
        # +Z the default
 
6377
        ;;
 
6378
      *)
 
6379
        lt_prog_compiler_pic='+Z'
 
6380
        ;;
 
6381
      esac
 
6382
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
 
6383
      lt_prog_compiler_static='${wl}-a ${wl}archive'
 
6384
      ;;
 
6385
 
 
6386
    irix5* | irix6* | nonstopux*)
 
6387
      lt_prog_compiler_wl='-Wl,'
 
6388
      # PIC (with -KPIC) is the default.
 
6389
      lt_prog_compiler_static='-non_shared'
 
6390
      ;;
 
6391
 
 
6392
    newsos6)
 
6393
      lt_prog_compiler_pic='-KPIC'
 
6394
      lt_prog_compiler_static='-Bstatic'
 
6395
      ;;
 
6396
 
 
6397
    linux*)
 
6398
      case $CC in
 
6399
      icc* | ecc*)
 
6400
        lt_prog_compiler_wl='-Wl,'
 
6401
        lt_prog_compiler_pic='-KPIC'
 
6402
        lt_prog_compiler_static='-static'
 
6403
        ;;
 
6404
      ccc*)
 
6405
        lt_prog_compiler_wl='-Wl,'
 
6406
        # All Alpha code is PIC.
 
6407
        lt_prog_compiler_static='-non_shared'
 
6408
        ;;
 
6409
      esac
 
6410
      ;;
 
6411
 
 
6412
    osf3* | osf4* | osf5*)
 
6413
      lt_prog_compiler_wl='-Wl,'
 
6414
      # All OSF/1 code is PIC.
 
6415
      lt_prog_compiler_static='-non_shared'
 
6416
      ;;
 
6417
 
 
6418
    sco3.2v5*)
 
6419
      lt_prog_compiler_pic='-Kpic'
 
6420
      lt_prog_compiler_static='-dn'
 
6421
      ;;
 
6422
 
 
6423
    solaris*)
 
6424
      lt_prog_compiler_wl='-Wl,'
 
6425
      lt_prog_compiler_pic='-KPIC'
 
6426
      lt_prog_compiler_static='-Bstatic'
 
6427
      ;;
 
6428
 
 
6429
    sunos4*)
 
6430
      lt_prog_compiler_wl='-Qoption ld '
 
6431
      lt_prog_compiler_pic='-PIC'
 
6432
      lt_prog_compiler_static='-Bstatic'
 
6433
      ;;
 
6434
 
 
6435
    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
6436
      lt_prog_compiler_wl='-Wl,'
 
6437
      lt_prog_compiler_pic='-KPIC'
 
6438
      lt_prog_compiler_static='-Bstatic'
 
6439
      ;;
 
6440
 
 
6441
    sysv4*MP*)
 
6442
      if test -d /usr/nec ;then
 
6443
        lt_prog_compiler_pic='-Kconform_pic'
 
6444
        lt_prog_compiler_static='-Bstatic'
 
6445
      fi
 
6446
      ;;
 
6447
 
 
6448
    uts4*)
 
6449
      lt_prog_compiler_pic='-pic'
 
6450
      lt_prog_compiler_static='-Bstatic'
 
6451
      ;;
 
6452
 
 
6453
    *)
 
6454
      lt_prog_compiler_can_build_shared=no
 
6455
      ;;
 
6456
    esac
 
6457
  fi
 
6458
 
 
6459
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
 
6460
echo "${ECHO_T}$lt_prog_compiler_pic" >&6
 
6461
 
 
6462
#
 
6463
# Check to make sure the PIC flag actually works.
 
6464
#
 
6465
if test -n "$lt_prog_compiler_pic"; then
 
6466
 
 
6467
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
 
6468
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
 
6469
if test "${lt_prog_compiler_pic_works+set}" = set; then
 
6470
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6471
else
 
6472
  lt_prog_compiler_pic_works=no
 
6473
  ac_outfile=conftest.$ac_objext
 
6474
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
6475
   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
 
6476
   # Insert the option either (1) after the last *FLAGS variable, or
 
6477
   # (2) before a word containing "conftest.", or (3) at the end.
 
6478
   # Note that $ac_compile itself does not contain backslashes and begins
 
6479
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
6480
   # The option is referenced via a variable to avoid confusing sed.
 
6481
   lt_compile=`echo "$ac_compile" | $SED \
 
6482
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
6483
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
6484
   -e 's:$: $lt_compiler_flag:'`
 
6485
   (eval echo "\"\$as_me:6485: $lt_compile\"" >&5)
 
6486
   (eval "$lt_compile" 2>conftest.err)
 
6487
   ac_status=$?
 
6488
   cat conftest.err >&5
 
6489
   echo "$as_me:6489: \$? = $ac_status" >&5
 
6490
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
6491
     # The compiler can only warn and ignore the option if not recognized
 
6492
     # So say no if there are warnings
 
6493
     if test ! -s conftest.err; then
 
6494
       lt_prog_compiler_pic_works=yes
 
6495
     fi
 
6496
   fi
 
6497
   $rm conftest*
 
6498
 
 
6499
fi
 
6500
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
 
6501
echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
 
6502
 
 
6503
if test x"$lt_prog_compiler_pic_works" = xyes; then
 
6504
    case $lt_prog_compiler_pic in
 
6505
     "" | " "*) ;;
 
6506
     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
 
6507
     esac
 
6508
else
 
6509
    lt_prog_compiler_pic=
 
6510
     lt_prog_compiler_can_build_shared=no
 
6511
fi
 
6512
 
 
6513
fi
 
6514
case "$host_os" in
 
6515
  # For platforms which do not support PIC, -DPIC is meaningless:
 
6516
  *djgpp*)
 
6517
    lt_prog_compiler_pic=
 
6518
    ;;
 
6519
  *)
 
6520
    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
 
6521
    ;;
 
6522
esac
 
6523
 
 
6524
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
6525
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
 
6526
if test "${lt_cv_prog_compiler_c_o+set}" = set; then
 
6527
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6528
else
 
6529
  lt_cv_prog_compiler_c_o=no
 
6530
   $rm -r conftest 2>/dev/null
 
6531
   mkdir conftest
 
6532
   cd conftest
 
6533
   mkdir out
 
6534
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
6535
 
 
6536
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
6537
   # Insert the option either (1) after the last *FLAGS variable, or
 
6538
   # (2) before a word containing "conftest.", or (3) at the end.
 
6539
   # Note that $ac_compile itself does not contain backslashes and begins
 
6540
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
6541
   lt_compile=`echo "$ac_compile" | $SED \
 
6542
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
6543
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
6544
   -e 's:$: $lt_compiler_flag:'`
 
6545
   (eval echo "\"\$as_me:6545: $lt_compile\"" >&5)
 
6546
   (eval "$lt_compile" 2>out/conftest.err)
 
6547
   ac_status=$?
 
6548
   cat out/conftest.err >&5
 
6549
   echo "$as_me:6549: \$? = $ac_status" >&5
 
6550
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
6551
   then
 
6552
     # The compiler can only warn and ignore the option if not recognized
 
6553
     # So say no if there are warnings
 
6554
     if test ! -s out/conftest.err; then
 
6555
       lt_cv_prog_compiler_c_o=yes
 
6556
     fi
 
6557
   fi
 
6558
   chmod u+w .
 
6559
   $rm conftest*
 
6560
   # SGI C++ compiler will create directory out/ii_files/ for
 
6561
   # template instantiation
 
6562
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
 
6563
   $rm out/* && rmdir out
 
6564
   cd ..
 
6565
   rmdir conftest
 
6566
   $rm conftest*
 
6567
 
 
6568
fi
 
6569
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
 
6570
echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
 
6571
 
 
6572
 
 
6573
hard_links="nottested"
 
6574
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
 
6575
  # do not overwrite the value of need_locks provided by the user
 
6576
  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
 
6577
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
 
6578
  hard_links=yes
 
6579
  $rm conftest*
 
6580
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
6581
  touch conftest.a
 
6582
  ln conftest.a conftest.b 2>&5 || hard_links=no
 
6583
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
6584
  echo "$as_me:$LINENO: result: $hard_links" >&5
 
6585
echo "${ECHO_T}$hard_links" >&6
 
6586
  if test "$hard_links" = no; then
 
6587
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
 
6588
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
 
6589
    need_locks=warn
 
6590
  fi
 
6591
else
 
6592
  need_locks=no
 
6593
fi
 
6594
 
 
6595
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
6596
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
 
6597
 
 
6598
  runpath_var=
 
6599
  allow_undefined_flag=
 
6600
  enable_shared_with_static_runtimes=no
 
6601
  archive_cmds=
 
6602
  archive_expsym_cmds=
 
6603
  old_archive_From_new_cmds=
 
6604
  old_archive_from_expsyms_cmds=
 
6605
  export_dynamic_flag_spec=
 
6606
  whole_archive_flag_spec=
 
6607
  thread_safe_flag_spec=
 
6608
  hardcode_libdir_flag_spec=
 
6609
  hardcode_libdir_flag_spec_ld=
 
6610
  hardcode_libdir_separator=
 
6611
  hardcode_direct=no
 
6612
  hardcode_minus_L=no
 
6613
  hardcode_shlibpath_var=unsupported
 
6614
  link_all_deplibs=unknown
 
6615
  hardcode_automatic=no
 
6616
  module_cmds=
 
6617
  module_expsym_cmds=
 
6618
  always_export_symbols=no
 
6619
  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
6620
  # include_expsyms should be a list of space-separated symbols to be *always*
 
6621
  # included in the symbol list
 
6622
  include_expsyms=
 
6623
  # exclude_expsyms can be an extended regexp of symbols to exclude
 
6624
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
 
6625
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
 
6626
  # as well as any symbol that contains `d'.
 
6627
  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
 
6628
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
 
6629
  # platforms (ab)use it in PIC code, but their linkers get confused if
 
6630
  # the symbol is explicitly referenced.  Since portable code cannot
 
6631
  # rely on this symbol name, it's probably fine to never include it in
 
6632
  # preloaded symbol tables.
 
6633
  extract_expsyms_cmds=
 
6634
 
 
6635
  case $host_os in
 
6636
  cygwin* | mingw* | pw32*)
 
6637
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
 
6638
    # When not using gcc, we currently assume that we are using
 
6639
    # Microsoft Visual C++.
 
6640
    if test "$GCC" != yes; then
 
6641
      with_gnu_ld=no
 
6642
    fi
 
6643
    ;;
 
6644
  openbsd*)
 
6645
    with_gnu_ld=no
 
6646
    ;;
 
6647
  esac
 
6648
 
 
6649
  ld_shlibs=yes
 
6650
  if test "$with_gnu_ld" = yes; then
 
6651
    # If archive_cmds runs LD, not CC, wlarc should be empty
 
6652
    wlarc='${wl}'
 
6653
 
 
6654
    # See if GNU ld supports shared libraries.
 
6655
    case $host_os in
 
6656
    aix3* | aix4* | aix5*)
 
6657
      # On AIX/PPC, the GNU linker is very broken
 
6658
      if test "$host_cpu" != ia64; then
 
6659
        ld_shlibs=no
 
6660
        cat <<EOF 1>&2
 
6661
 
 
6662
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
 
6663
*** to be unable to reliably create shared libraries on AIX.
 
6664
*** Therefore, libtool is disabling shared libraries support.  If you
 
6665
*** really care for shared libraries, you may want to modify your PATH
 
6666
*** so that a non-GNU linker is found, and then restart.
 
6667
 
 
6668
EOF
 
6669
      fi
 
6670
      ;;
 
6671
 
 
6672
    amigaos*)
 
6673
      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)'
 
6674
      hardcode_libdir_flag_spec='-L$libdir'
 
6675
      hardcode_minus_L=yes
 
6676
 
 
6677
      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
 
6678
      # that the semantics of dynamic libraries on AmigaOS, at least up
 
6679
      # to version 4, is to share data among multiple programs linked
 
6680
      # with the same dynamic library.  Since this doesn't match the
 
6681
      # behavior of shared libraries on other platforms, we can't use
 
6682
      # them.
 
6683
      ld_shlibs=no
 
6684
      ;;
 
6685
 
 
6686
    beos*)
 
6687
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
6688
        allow_undefined_flag=unsupported
 
6689
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
6690
        # support --undefined.  This deserves some investigation.  FIXME
 
6691
        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
6692
      else
 
6693
        ld_shlibs=no
 
6694
      fi
 
6695
      ;;
 
6696
 
 
6697
    cygwin* | mingw* | pw32*)
 
6698
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
 
6699
      # as there is no search path for DLLs.
 
6700
      hardcode_libdir_flag_spec='-L$libdir'
 
6701
      allow_undefined_flag=unsupported
 
6702
      always_export_symbols=no
 
6703
      enable_shared_with_static_runtimes=yes
 
6704
      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
 
6705
 
 
6706
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
 
6707
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
 
6708
        # If the export-symbols file already is a .def file (1st line
 
6709
        # is EXPORTS), use it as is; otherwise, prepend...
 
6710
        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
6711
          cp $export_symbols $output_objdir/$soname.def;
 
6712
        else
 
6713
          echo EXPORTS > $output_objdir/$soname.def;
 
6714
          cat $export_symbols >> $output_objdir/$soname.def;
 
6715
        fi~
 
6716
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
 
6717
      else
 
6718
        ld_shlibs=no
 
6719
      fi
 
6720
      ;;
 
6721
 
 
6722
    netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
 
6723
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
6724
        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
 
6725
        wlarc=
 
6726
      else
 
6727
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
6728
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
6729
      fi
 
6730
      ;;
 
6731
 
 
6732
    solaris* | sysv5*)
 
6733
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
 
6734
        ld_shlibs=no
 
6735
        cat <<EOF 1>&2
 
6736
 
 
6737
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
 
6738
*** create shared libraries on Solaris systems.  Therefore, libtool
 
6739
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
6740
*** binutils to release 2.9.1 or newer.  Another option is to modify
 
6741
*** your PATH or compiler configuration so that the native linker is
 
6742
*** used, and then restart.
 
6743
 
 
6744
EOF
 
6745
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
6746
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
6747
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
6748
      else
 
6749
        ld_shlibs=no
 
6750
      fi
 
6751
      ;;
 
6752
 
 
6753
    sunos4*)
 
6754
      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
6755
      wlarc=
 
6756
      hardcode_direct=yes
 
6757
      hardcode_shlibpath_var=no
 
6758
      ;;
 
6759
 
 
6760
  linux*)
 
6761
    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
6762
        tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
6763
        archive_cmds="$tmp_archive_cmds"
 
6764
      supports_anon_versioning=no
 
6765
      case `$LD -v 2>/dev/null` in
 
6766
        *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
 
6767
        *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
 
6768
        *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
 
6769
        *\ 2.11.*) ;; # other 2.11 versions
 
6770
        *) supports_anon_versioning=yes ;;
 
6771
      esac
 
6772
      if test $supports_anon_versioning = yes; then
 
6773
        archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
 
6774
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
6775
$echo "local: *; };" >> $output_objdir/$libname.ver~
 
6776
        $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
6777
      else
 
6778
        archive_expsym_cmds="$tmp_archive_cmds"
 
6779
      fi
 
6780
      link_all_deplibs=no
 
6781
    else
 
6782
      ld_shlibs=no
 
6783
    fi
 
6784
    ;;
 
6785
 
 
6786
    *)
 
6787
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
6788
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
6789
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
6790
      else
 
6791
        ld_shlibs=no
 
6792
      fi
 
6793
      ;;
 
6794
    esac
 
6795
 
 
6796
    if test "$ld_shlibs" = yes; then
 
6797
      runpath_var=LD_RUN_PATH
 
6798
      hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
 
6799
      export_dynamic_flag_spec='${wl}--export-dynamic'
 
6800
      # ancient GNU ld didn't support --whole-archive et. al.
 
6801
      if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
 
6802
        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
6803
      else
 
6804
        whole_archive_flag_spec=
 
6805
      fi
 
6806
    fi
 
6807
  else
 
6808
    # PORTME fill in a description of your system's linker (not GNU ld)
 
6809
    case $host_os in
 
6810
    aix3*)
 
6811
      allow_undefined_flag=unsupported
 
6812
      always_export_symbols=yes
 
6813
      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'
 
6814
      # Note: this linker hardcodes the directories in LIBPATH if there
 
6815
      # are no directories specified by -L.
 
6816
      hardcode_minus_L=yes
 
6817
      if test "$GCC" = yes && test -z "$link_static_flag"; then
 
6818
        # Neither direct hardcoding nor static linking is supported with a
 
6819
        # broken collect2.
 
6820
        hardcode_direct=unsupported
 
6821
      fi
 
6822
      ;;
 
6823
 
 
6824
    aix4* | aix5*)
 
6825
      if test "$host_cpu" = ia64; then
 
6826
        # On IA64, the linker does run time linking by default, so we don't
 
6827
        # have to do anything special.
 
6828
        aix_use_runtimelinking=no
 
6829
        exp_sym_flag='-Bexport'
 
6830
        no_entry_flag=""
 
6831
      else
 
6832
        # If we're using GNU nm, then we don't want the "-C" option.
 
6833
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
6834
        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
 
6835
          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'
 
6836
        else
 
6837
          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'
 
6838
        fi
 
6839
        aix_use_runtimelinking=no
 
6840
 
 
6841
        # Test if we are trying to use run time linking or normal
 
6842
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
6843
        # need to do runtime linking.
 
6844
        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
 
6845
          for ld_flag in $LDFLAGS; do
 
6846
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
 
6847
            aix_use_runtimelinking=yes
 
6848
            break
 
6849
          fi
 
6850
          done
 
6851
        esac
 
6852
 
 
6853
        exp_sym_flag='-bexport'
 
6854
        no_entry_flag='-bnoentry'
 
6855
      fi
 
6856
 
 
6857
      # When large executables or shared objects are built, AIX ld can
 
6858
      # have problems creating the table of contents.  If linking a library
 
6859
      # or program results in "error TOC overflow" add -mminimal-toc to
 
6860
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
6861
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
6862
 
 
6863
      archive_cmds=''
 
6864
      hardcode_direct=yes
 
6865
      hardcode_libdir_separator=':'
 
6866
      link_all_deplibs=yes
 
6867
 
 
6868
      if test "$GCC" = yes; then
 
6869
        case $host_os in aix4.012|aix4.012.*)
 
6870
        # We only want to do this on AIX 4.2 and lower, the check
 
6871
        # below for broken collect2 doesn't work under 4.3+
 
6872
          collect2name=`${CC} -print-prog-name=collect2`
 
6873
          if test -f "$collect2name" && \
 
6874
           strings "$collect2name" | grep resolve_lib_name >/dev/null
 
6875
          then
 
6876
          # We have reworked collect2
 
6877
          hardcode_direct=yes
 
6878
          else
 
6879
          # We have old collect2
 
6880
          hardcode_direct=unsupported
 
6881
          # It fails to find uninstalled libraries when the uninstalled
 
6882
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
6883
          # to unsupported forces relinking
 
6884
          hardcode_minus_L=yes
 
6885
          hardcode_libdir_flag_spec='-L$libdir'
 
6886
          hardcode_libdir_separator=
 
6887
          fi
 
6888
        esac
 
6889
        shared_flag='-shared'
 
6890
      else
 
6891
        # not using gcc
 
6892
        if test "$host_cpu" = ia64; then
 
6893
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
6894
        # chokes on -Wl,-G. The following line is correct:
 
6895
          shared_flag='-G'
 
6896
        else
 
6897
        if test "$aix_use_runtimelinking" = yes; then
 
6898
            shared_flag='${wl}-G'
 
6899
          else
 
6900
            shared_flag='${wl}-bM:SRE'
 
6901
        fi
 
6902
        fi
 
6903
      fi
 
6904
 
 
6905
      # It seems that -bexpall does not export symbols beginning with
 
6906
      # underscore (_), so it is better to generate a list of symbols to export.
 
6907
      always_export_symbols=yes
 
6908
      if test "$aix_use_runtimelinking" = yes; then
 
6909
        # Warning - without using the other runtime loading flags (-brtl),
 
6910
        # -berok will link without error, but may produce a broken library.
 
6911
        allow_undefined_flag='-berok'
 
6912
       # Determine the default libpath from the value encoded in an empty executable.
 
6913
       cat >conftest.$ac_ext <<_ACEOF
 
6914
/* confdefs.h.  */
 
6915
_ACEOF
 
6916
cat confdefs.h >>conftest.$ac_ext
 
6917
cat >>conftest.$ac_ext <<_ACEOF
 
6918
/* end confdefs.h.  */
 
6919
 
 
6920
int
 
6921
main ()
 
6922
{
 
6923
 
 
6924
  ;
 
6925
  return 0;
 
6926
}
 
6927
_ACEOF
 
6928
rm -f conftest.$ac_objext conftest$ac_exeext
 
6929
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
6930
  (eval $ac_link) 2>conftest.er1
 
6931
  ac_status=$?
 
6932
  grep -v '^ *+' conftest.er1 >conftest.err
 
6933
  rm -f conftest.er1
 
6934
  cat conftest.err >&5
 
6935
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6936
  (exit $ac_status); } &&
 
6937
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
6938
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6939
  (eval $ac_try) 2>&5
 
6940
  ac_status=$?
 
6941
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6942
  (exit $ac_status); }; } &&
 
6943
         { ac_try='test -s conftest$ac_exeext'
 
6944
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6945
  (eval $ac_try) 2>&5
 
6946
  ac_status=$?
 
6947
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6948
  (exit $ac_status); }; }; then
 
6949
 
 
6950
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
6951
}'`
 
6952
# Check for a 64-bit object if we didn't find anything.
 
6953
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; }
 
6954
}'`; fi
 
6955
else
 
6956
  echo "$as_me: failed program was:" >&5
 
6957
sed 's/^/| /' conftest.$ac_ext >&5
 
6958
 
 
6959
fi
 
6960
rm -f conftest.err conftest.$ac_objext \
 
6961
      conftest$ac_exeext conftest.$ac_ext
 
6962
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
6963
 
 
6964
       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
 
6965
        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"
 
6966
       else
 
6967
        if test "$host_cpu" = ia64; then
 
6968
          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
 
6969
          allow_undefined_flag="-z nodefs"
 
6970
          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"
 
6971
        else
 
6972
         # Determine the default libpath from the value encoded in an empty executable.
 
6973
         cat >conftest.$ac_ext <<_ACEOF
 
6974
/* confdefs.h.  */
 
6975
_ACEOF
 
6976
cat confdefs.h >>conftest.$ac_ext
 
6977
cat >>conftest.$ac_ext <<_ACEOF
 
6978
/* end confdefs.h.  */
 
6979
 
 
6980
int
 
6981
main ()
 
6982
{
 
6983
 
 
6984
  ;
 
6985
  return 0;
 
6986
}
 
6987
_ACEOF
 
6988
rm -f conftest.$ac_objext conftest$ac_exeext
 
6989
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
6990
  (eval $ac_link) 2>conftest.er1
 
6991
  ac_status=$?
 
6992
  grep -v '^ *+' conftest.er1 >conftest.err
 
6993
  rm -f conftest.er1
 
6994
  cat conftest.err >&5
 
6995
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6996
  (exit $ac_status); } &&
 
6997
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
6998
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6999
  (eval $ac_try) 2>&5
 
7000
  ac_status=$?
 
7001
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7002
  (exit $ac_status); }; } &&
 
7003
         { ac_try='test -s conftest$ac_exeext'
 
7004
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7005
  (eval $ac_try) 2>&5
 
7006
  ac_status=$?
 
7007
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7008
  (exit $ac_status); }; }; then
 
7009
 
 
7010
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
7011
}'`
 
7012
# Check for a 64-bit object if we didn't find anything.
 
7013
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; }
 
7014
}'`; fi
 
7015
else
 
7016
  echo "$as_me: failed program was:" >&5
 
7017
sed 's/^/| /' conftest.$ac_ext >&5
 
7018
 
 
7019
fi
 
7020
rm -f conftest.err conftest.$ac_objext \
 
7021
      conftest$ac_exeext conftest.$ac_ext
 
7022
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
7023
 
 
7024
         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
 
7025
          # Warning - without using the other run time loading flags,
 
7026
          # -berok will link without error, but may produce a broken library.
 
7027
          no_undefined_flag=' ${wl}-bernotok'
 
7028
          allow_undefined_flag=' ${wl}-berok'
 
7029
          # -bexpall does not export symbols beginning with underscore (_)
 
7030
          always_export_symbols=yes
 
7031
          # Exported symbols can be pulled into shared objects from archives
 
7032
          whole_archive_flag_spec=' '
 
7033
          archive_cmds_need_lc=yes
 
7034
          # This is similar to how AIX traditionally builds it's shared libraries.
 
7035
          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'
 
7036
        fi
 
7037
      fi
 
7038
      ;;
 
7039
 
 
7040
    amigaos*)
 
7041
      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)'
 
7042
      hardcode_libdir_flag_spec='-L$libdir'
 
7043
      hardcode_minus_L=yes
 
7044
      # see comment about different semantics on the GNU ld section
 
7045
      ld_shlibs=no
 
7046
      ;;
 
7047
 
 
7048
    bsdi4*)
 
7049
      export_dynamic_flag_spec=-rdynamic
 
7050
      ;;
 
7051
 
 
7052
    cygwin* | mingw* | pw32*)
 
7053
      # When not using gcc, we currently assume that we are using
 
7054
      # Microsoft Visual C++.
 
7055
      # hardcode_libdir_flag_spec is actually meaningless, as there is
 
7056
      # no search path for DLLs.
 
7057
      hardcode_libdir_flag_spec=' '
 
7058
      allow_undefined_flag=unsupported
 
7059
      # Tell ltmain to make .lib files, not .a files.
 
7060
      libext=lib
 
7061
      # Tell ltmain to make .dll files, not .so files.
 
7062
      shrext_cmds=".dll"
 
7063
      # FIXME: Setting linknames here is a bad hack.
 
7064
      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
 
7065
      # The linker will automatically build a .lib file if we build a DLL.
 
7066
      old_archive_From_new_cmds='true'
 
7067
      # FIXME: Should let the user specify the lib program.
 
7068
      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
 
7069
      fix_srcfile_path='`cygpath -w "$srcfile"`'
 
7070
      enable_shared_with_static_runtimes=yes
 
7071
      ;;
 
7072
 
 
7073
    darwin* | rhapsody*)
 
7074
    if test "$GXX" = yes ; then
 
7075
      archive_cmds_need_lc=no
 
7076
      case "$host_os" in
 
7077
      rhapsody* | darwin1.[012])
 
7078
        allow_undefined_flag='-undefined suppress'
 
7079
        ;;
 
7080
      *) # Darwin 1.3 on
 
7081
      if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
7082
        allow_undefined_flag='-flat_namespace -undefined suppress'
 
7083
      else
 
7084
        case ${MACOSX_DEPLOYMENT_TARGET} in
 
7085
          10.[012])
 
7086
            allow_undefined_flag='-flat_namespace -undefined suppress'
 
7087
            ;;
 
7088
          10.*)
 
7089
            allow_undefined_flag='-undefined dynamic_lookup'
 
7090
            ;;
 
7091
        esac
 
7092
      fi
 
7093
        ;;
 
7094
      esac
 
7095
        lt_int_apple_cc_single_mod=no
 
7096
        output_verbose_link_cmd='echo'
 
7097
        if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
 
7098
          lt_int_apple_cc_single_mod=yes
 
7099
        fi
 
7100
        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
7101
          archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
7102
        else
 
7103
        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'
 
7104
      fi
 
7105
      module_cmds='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
7106
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
 
7107
        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
7108
          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}'
 
7109
        else
 
7110
          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}'
 
7111
        fi
 
7112
          module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
7113
      hardcode_direct=no
 
7114
      hardcode_automatic=yes
 
7115
      hardcode_shlibpath_var=unsupported
 
7116
      whole_archive_flag_spec='-all_load $convenience'
 
7117
      link_all_deplibs=yes
 
7118
    else
 
7119
      ld_shlibs=no
 
7120
    fi
 
7121
      ;;
 
7122
 
 
7123
    dgux*)
 
7124
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
7125
      hardcode_libdir_flag_spec='-L$libdir'
 
7126
      hardcode_shlibpath_var=no
 
7127
      ;;
 
7128
 
 
7129
    freebsd1*)
 
7130
      ld_shlibs=no
 
7131
      ;;
 
7132
 
 
7133
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
 
7134
    # support.  Future versions do this automatically, but an explicit c++rt0.o
 
7135
    # does not break anything, and helps significantly (at the cost of a little
 
7136
    # extra space).
 
7137
    freebsd2.2*)
 
7138
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
 
7139
      hardcode_libdir_flag_spec='-R$libdir'
 
7140
      hardcode_direct=yes
 
7141
      hardcode_shlibpath_var=no
 
7142
      ;;
 
7143
 
 
7144
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
 
7145
    freebsd2*)
 
7146
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
7147
      hardcode_direct=yes
 
7148
      hardcode_minus_L=yes
 
7149
      hardcode_shlibpath_var=no
 
7150
      ;;
 
7151
 
 
7152
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
 
7153
    freebsd* | kfreebsd*-gnu)
 
7154
      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
 
7155
      hardcode_libdir_flag_spec='-R$libdir'
 
7156
      hardcode_direct=yes
 
7157
      hardcode_shlibpath_var=no
 
7158
      ;;
 
7159
 
 
7160
    hpux9*)
 
7161
      if test "$GCC" = yes; then
 
7162
        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'
 
7163
      else
 
7164
        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'
 
7165
      fi
 
7166
      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
7167
      hardcode_libdir_separator=:
 
7168
      hardcode_direct=yes
 
7169
 
 
7170
      # hardcode_minus_L: Not really in the search PATH,
 
7171
      # but as the default location of the library.
 
7172
      hardcode_minus_L=yes
 
7173
      export_dynamic_flag_spec='${wl}-E'
 
7174
      ;;
 
7175
 
 
7176
    hpux10* | hpux11*)
 
7177
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
7178
        case "$host_cpu" in
 
7179
        hppa*64*|ia64*)
 
7180
          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
7181
          ;;
 
7182
        *)
 
7183
          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
7184
          ;;
 
7185
        esac
 
7186
      else
 
7187
        case "$host_cpu" in
 
7188
        hppa*64*|ia64*)
 
7189
          archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
 
7190
          ;;
 
7191
        *)
 
7192
          archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
7193
          ;;
 
7194
        esac
 
7195
      fi
 
7196
      if test "$with_gnu_ld" = no; then
 
7197
        case "$host_cpu" in
 
7198
        hppa*64*)
 
7199
          hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
7200
          hardcode_libdir_flag_spec_ld='+b $libdir'
 
7201
          hardcode_libdir_separator=:
 
7202
          hardcode_direct=no
 
7203
          hardcode_shlibpath_var=no
 
7204
          ;;
 
7205
        ia64*)
 
7206
          hardcode_libdir_flag_spec='-L$libdir'
 
7207
          hardcode_direct=no
 
7208
          hardcode_shlibpath_var=no
 
7209
 
 
7210
          # hardcode_minus_L: Not really in the search PATH,
 
7211
          # but as the default location of the library.
 
7212
          hardcode_minus_L=yes
 
7213
          ;;
 
7214
        *)
 
7215
          hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
7216
          hardcode_libdir_separator=:
 
7217
          hardcode_direct=yes
 
7218
          export_dynamic_flag_spec='${wl}-E'
 
7219
 
 
7220
          # hardcode_minus_L: Not really in the search PATH,
 
7221
          # but as the default location of the library.
 
7222
          hardcode_minus_L=yes
 
7223
          ;;
 
7224
        esac
 
7225
      fi
 
7226
      ;;
 
7227
 
 
7228
    irix5* | irix6* | nonstopux*)
 
7229
      if test "$GCC" = yes; then
 
7230
        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'
 
7231
      else
 
7232
        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'
 
7233
        hardcode_libdir_flag_spec_ld='-rpath $libdir'
 
7234
      fi
 
7235
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
7236
      hardcode_libdir_separator=:
 
7237
      link_all_deplibs=yes
 
7238
      ;;
 
7239
 
 
7240
    netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
 
7241
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
7242
        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
 
7243
      else
 
7244
        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
 
7245
      fi
 
7246
      hardcode_libdir_flag_spec='-R$libdir'
 
7247
      hardcode_direct=yes
 
7248
      hardcode_shlibpath_var=no
 
7249
      ;;
 
7250
 
 
7251
    newsos6)
 
7252
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
7253
      hardcode_direct=yes
 
7254
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
7255
      hardcode_libdir_separator=:
 
7256
      hardcode_shlibpath_var=no
 
7257
      ;;
 
7258
 
 
7259
    openbsd*)
 
7260
      hardcode_direct=yes
 
7261
      hardcode_shlibpath_var=no
 
7262
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
7263
        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
7264
        hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
 
7265
        export_dynamic_flag_spec='${wl}-E'
 
7266
      else
 
7267
       case $host_os in
 
7268
         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
 
7269
           archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
7270
           hardcode_libdir_flag_spec='-R$libdir'
 
7271
           ;;
 
7272
         *)
 
7273
           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
7274
           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
 
7275
           ;;
 
7276
       esac
 
7277
      fi
 
7278
      ;;
 
7279
 
 
7280
    os2*)
 
7281
      hardcode_libdir_flag_spec='-L$libdir'
 
7282
      hardcode_minus_L=yes
 
7283
      allow_undefined_flag=unsupported
 
7284
      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'
 
7285
      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
 
7286
      ;;
 
7287
 
 
7288
    osf3*)
 
7289
      if test "$GCC" = yes; then
 
7290
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
 
7291
        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'
 
7292
      else
 
7293
        allow_undefined_flag=' -expect_unresolved \*'
 
7294
        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'
 
7295
      fi
 
7296
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
7297
      hardcode_libdir_separator=:
 
7298
      ;;
 
7299
 
 
7300
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
 
7301
      if test "$GCC" = yes; then
 
7302
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
 
7303
        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'
 
7304
        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
7305
      else
 
7306
        allow_undefined_flag=' -expect_unresolved \*'
 
7307
        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'
 
7308
        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
 
7309
        $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'
 
7310
 
 
7311
        # Both c and cxx compiler support -rpath directly
 
7312
        hardcode_libdir_flag_spec='-rpath $libdir'
 
7313
      fi
 
7314
      hardcode_libdir_separator=:
 
7315
      ;;
 
7316
 
 
7317
    sco3.2v5*)
 
7318
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
7319
      hardcode_shlibpath_var=no
 
7320
      export_dynamic_flag_spec='${wl}-Bexport'
 
7321
      runpath_var=LD_RUN_PATH
 
7322
      hardcode_runpath_var=yes
 
7323
      ;;
 
7324
 
 
7325
    solaris*)
 
7326
      no_undefined_flag=' -z text'
 
7327
      if test "$GCC" = yes; then
 
7328
        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
7329
        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
7330
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
 
7331
      else
 
7332
        archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
7333
        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
7334
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
7335
      fi
 
7336
      hardcode_libdir_flag_spec='-R$libdir'
 
7337
      hardcode_shlibpath_var=no
 
7338
      case $host_os in
 
7339
      solaris2.[0-5] | solaris2.[0-5].*) ;;
 
7340
      *) # Supported since Solaris 2.6 (maybe 2.5.1?)
 
7341
        whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
 
7342
      esac
 
7343
      link_all_deplibs=yes
 
7344
      ;;
 
7345
 
 
7346
    sunos4*)
 
7347
      if test "x$host_vendor" = xsequent; then
 
7348
        # Use $CC to link under sequent, because it throws in some extra .o
 
7349
        # files that make .init and .fini sections work.
 
7350
        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
 
7351
      else
 
7352
        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
 
7353
      fi
 
7354
      hardcode_libdir_flag_spec='-L$libdir'
 
7355
      hardcode_direct=yes
 
7356
      hardcode_minus_L=yes
 
7357
      hardcode_shlibpath_var=no
 
7358
      ;;
 
7359
 
 
7360
    sysv4)
 
7361
      case $host_vendor in
 
7362
        sni)
 
7363
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
7364
          hardcode_direct=yes # is this really true???
 
7365
        ;;
 
7366
        siemens)
 
7367
          ## LD is ld it makes a PLAMLIB
 
7368
          ## CC just makes a GrossModule.
 
7369
          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
7370
          reload_cmds='$CC -r -o $output$reload_objs'
 
7371
          hardcode_direct=no
 
7372
        ;;
 
7373
        motorola)
 
7374
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
7375
          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
 
7376
        ;;
 
7377
      esac
 
7378
      runpath_var='LD_RUN_PATH'
 
7379
      hardcode_shlibpath_var=no
 
7380
      ;;
 
7381
 
 
7382
    sysv4.3*)
 
7383
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
7384
      hardcode_shlibpath_var=no
 
7385
      export_dynamic_flag_spec='-Bexport'
 
7386
      ;;
 
7387
 
 
7388
    sysv4*MP*)
 
7389
      if test -d /usr/nec; then
 
7390
        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
7391
        hardcode_shlibpath_var=no
 
7392
        runpath_var=LD_RUN_PATH
 
7393
        hardcode_runpath_var=yes
 
7394
        ld_shlibs=yes
 
7395
      fi
 
7396
      ;;
 
7397
 
 
7398
    sysv4.2uw2*)
 
7399
      archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
7400
      hardcode_direct=yes
 
7401
      hardcode_minus_L=no
 
7402
      hardcode_shlibpath_var=no
 
7403
      hardcode_runpath_var=yes
 
7404
      runpath_var=LD_RUN_PATH
 
7405
      ;;
 
7406
 
 
7407
   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
 
7408
      no_undefined_flag='${wl}-z ${wl}text'
 
7409
      if test "$GCC" = yes; then
 
7410
        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
7411
      else
 
7412
        archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
7413
      fi
 
7414
      runpath_var='LD_RUN_PATH'
 
7415
      hardcode_shlibpath_var=no
 
7416
      ;;
 
7417
 
 
7418
    sysv5*)
 
7419
      no_undefined_flag=' -z text'
 
7420
      # $CC -shared without GNU ld will not create a library from C++
 
7421
      # object files and a static libstdc++, better avoid it by now
 
7422
      archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
7423
      archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
7424
                $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
7425
      hardcode_libdir_flag_spec=
 
7426
      hardcode_shlibpath_var=no
 
7427
      runpath_var='LD_RUN_PATH'
 
7428
      ;;
 
7429
 
 
7430
    uts4*)
 
7431
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
7432
      hardcode_libdir_flag_spec='-L$libdir'
 
7433
      hardcode_shlibpath_var=no
 
7434
      ;;
 
7435
 
 
7436
    *)
 
7437
      ld_shlibs=no
 
7438
      ;;
 
7439
    esac
 
7440
  fi
 
7441
 
 
7442
echo "$as_me:$LINENO: result: $ld_shlibs" >&5
 
7443
echo "${ECHO_T}$ld_shlibs" >&6
 
7444
test "$ld_shlibs" = no && can_build_shared=no
 
7445
 
 
7446
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
7447
if test "$GCC" = yes; then
 
7448
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
7449
fi
 
7450
 
 
7451
#
 
7452
# Do we need to explicitly link libc?
 
7453
#
 
7454
case "x$archive_cmds_need_lc" in
 
7455
x|xyes)
 
7456
  # Assume -lc should be added
 
7457
  archive_cmds_need_lc=yes
 
7458
 
 
7459
  if test "$enable_shared" = yes && test "$GCC" = yes; then
 
7460
    case $archive_cmds in
 
7461
    *'~'*)
 
7462
      # FIXME: we may have to deal with multi-command sequences.
 
7463
      ;;
 
7464
    '$CC '*)
 
7465
      # Test whether the compiler implicitly links with -lc since on some
 
7466
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
 
7467
      # to ld, don't add -lc before -lgcc.
 
7468
      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
 
7469
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
 
7470
      $rm conftest*
 
7471
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
7472
 
 
7473
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
7474
  (eval $ac_compile) 2>&5
 
7475
  ac_status=$?
 
7476
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7477
  (exit $ac_status); } 2>conftest.err; then
 
7478
        soname=conftest
 
7479
        lib=conftest
 
7480
        libobjs=conftest.$ac_objext
 
7481
        deplibs=
 
7482
        wl=$lt_prog_compiler_wl
 
7483
        compiler_flags=-v
 
7484
        linker_flags=-v
 
7485
        verstring=
 
7486
        output_objdir=.
 
7487
        libname=conftest
 
7488
        lt_save_allow_undefined_flag=$allow_undefined_flag
 
7489
        allow_undefined_flag=
 
7490
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
 
7491
  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
7492
  ac_status=$?
 
7493
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7494
  (exit $ac_status); }
 
7495
        then
 
7496
          archive_cmds_need_lc=no
 
7497
        else
 
7498
          archive_cmds_need_lc=yes
 
7499
        fi
 
7500
        allow_undefined_flag=$lt_save_allow_undefined_flag
 
7501
      else
 
7502
        cat conftest.err 1>&5
 
7503
      fi
 
7504
      $rm conftest*
 
7505
      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
 
7506
echo "${ECHO_T}$archive_cmds_need_lc" >&6
 
7507
      ;;
 
7508
    esac
 
7509
  fi
 
7510
  ;;
 
7511
esac
 
7512
 
 
7513
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
 
7514
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
 
7515
library_names_spec=
 
7516
libname_spec='lib$name'
 
7517
soname_spec=
 
7518
shrext_cmds=".so"
 
7519
postinstall_cmds=
 
7520
postuninstall_cmds=
 
7521
finish_cmds=
 
7522
finish_eval=
 
7523
shlibpath_var=
 
7524
shlibpath_overrides_runpath=unknown
 
7525
version_type=none
 
7526
dynamic_linker="$host_os ld.so"
 
7527
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
7528
if test "$GCC" = yes; then
 
7529
  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
7530
  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
 
7531
    # if the path contains ";" then we assume it to be the separator
 
7532
    # otherwise default to the standard path separator (i.e. ":") - it is
 
7533
    # assumed that no part of a normal pathname contains ";" but that should
 
7534
    # okay in the real world where ";" in dirpaths is itself problematic.
 
7535
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
7536
  else
 
7537
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
7538
  fi
 
7539
else
 
7540
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
 
7541
fi
 
7542
need_lib_prefix=unknown
 
7543
hardcode_into_libs=no
 
7544
 
 
7545
# when you set need_version to no, make sure it does not cause -set_version
 
7546
# flags to be left without arguments
 
7547
need_version=unknown
 
7548
 
 
7549
case $host_os in
 
7550
aix3*)
 
7551
  version_type=linux
 
7552
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
 
7553
  shlibpath_var=LIBPATH
 
7554
 
 
7555
  # AIX 3 has no versioning support, so we append a major version to the name.
 
7556
  soname_spec='${libname}${release}${shared_ext}$major'
 
7557
  ;;
 
7558
 
 
7559
aix4* | aix5*)
 
7560
  version_type=linux
 
7561
  need_lib_prefix=no
 
7562
  need_version=no
 
7563
  hardcode_into_libs=yes
 
7564
  if test "$host_cpu" = ia64; then
 
7565
    # AIX 5 supports IA64
 
7566
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
 
7567
    shlibpath_var=LD_LIBRARY_PATH
 
7568
  else
 
7569
    # With GCC up to 2.95.x, collect2 would create an import file
 
7570
    # for dependence libraries.  The import file would start with
 
7571
    # the line `#! .'.  This would cause the generated library to
 
7572
    # depend on `.', always an invalid library.  This was fixed in
 
7573
    # development snapshots of GCC prior to 3.0.
 
7574
    case $host_os in
 
7575
      aix4 | aix4.[01] | aix4.[01].*)
 
7576
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
7577
           echo ' yes '
 
7578
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
 
7579
        :
 
7580
      else
 
7581
        can_build_shared=no
 
7582
      fi
 
7583
      ;;
 
7584
    esac
 
7585
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 
7586
    # soname into executable. Probably we can add versioning support to
 
7587
    # collect2, so additional links can be useful in future.
 
7588
    if test "$aix_use_runtimelinking" = yes; then
 
7589
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
7590
      # instead of lib<name>.a to let people know that these are not
 
7591
      # typical AIX shared libraries.
 
7592
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
7593
    else
 
7594
      # We preserve .a as extension for shared libraries through AIX4.2
 
7595
      # and later when we are not doing run time linking.
 
7596
      library_names_spec='${libname}${release}.a $libname.a'
 
7597
      soname_spec='${libname}${release}${shared_ext}$major'
 
7598
    fi
 
7599
    shlibpath_var=LIBPATH
 
7600
  fi
 
7601
  ;;
 
7602
 
 
7603
amigaos*)
 
7604
  library_names_spec='$libname.ixlibrary $libname.a'
 
7605
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
7606
  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'
 
7607
  ;;
 
7608
 
 
7609
beos*)
 
7610
  library_names_spec='${libname}${shared_ext}'
 
7611
  dynamic_linker="$host_os ld.so"
 
7612
  shlibpath_var=LIBRARY_PATH
 
7613
  ;;
 
7614
 
 
7615
bsdi4*)
 
7616
  version_type=linux
 
7617
  need_version=no
 
7618
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
7619
  soname_spec='${libname}${release}${shared_ext}$major'
 
7620
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
7621
  shlibpath_var=LD_LIBRARY_PATH
 
7622
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
7623
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
7624
  # the default ld.so.conf also contains /usr/contrib/lib and
 
7625
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
7626
  # libtool to hard-code these into programs
 
7627
  ;;
 
7628
 
 
7629
cygwin* | mingw* | pw32*)
 
7630
  version_type=windows
 
7631
  shrext_cmds=".dll"
 
7632
  need_version=no
 
7633
  need_lib_prefix=no
 
7634
 
 
7635
  case $GCC,$host_os in
 
7636
  yes,cygwin* | yes,mingw* | yes,pw32*)
 
7637
    library_names_spec='$libname.dll.a'
 
7638
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
7639
    postinstall_cmds='base_file=`basename \${file}`~
 
7640
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
 
7641
      dldir=$destdir/`dirname \$dlpath`~
 
7642
      test -d \$dldir || mkdir -p \$dldir~
 
7643
      $install_prog $dir/$dlname \$dldir/$dlname'
 
7644
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
7645
      dlpath=$dir/\$dldll~
 
7646
       $rm \$dlpath'
 
7647
    shlibpath_overrides_runpath=yes
 
7648
 
 
7649
    case $host_os in
 
7650
    cygwin*)
 
7651
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 
7652
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
7653
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
 
7654
      ;;
 
7655
    mingw*)
 
7656
      # MinGW DLLs use traditional 'lib' prefix
 
7657
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
7658
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
7659
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
 
7660
        # It is most probably a Windows format PATH printed by
 
7661
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
 
7662
        # path with ; separators, and with drive letters. We can handle the
 
7663
        # drive letters (cygwin fileutils understands them), so leave them,
 
7664
        # especially as we might pass files found there to a mingw objdump,
 
7665
        # which wouldn't understand a cygwinified path. Ahh.
 
7666
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
7667
      else
 
7668
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
7669
      fi
 
7670
      ;;
 
7671
    pw32*)
 
7672
      # pw32 DLLs use 'pw' prefix rather than 'lib'
 
7673
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
 
7674
      ;;
 
7675
    esac
 
7676
    ;;
 
7677
 
 
7678
  *)
 
7679
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
7680
    ;;
 
7681
  esac
 
7682
  dynamic_linker='Win32 ld.exe'
 
7683
  # FIXME: first we should search . and the directory the executable is in
 
7684
  shlibpath_var=PATH
 
7685
  ;;
 
7686
 
 
7687
darwin* | rhapsody*)
 
7688
  dynamic_linker="$host_os dyld"
 
7689
  version_type=darwin
 
7690
  need_lib_prefix=no
 
7691
  need_version=no
 
7692
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
7693
  soname_spec='${libname}${release}${major}$shared_ext'
 
7694
  shlibpath_overrides_runpath=yes
 
7695
  shlibpath_var=DYLD_LIBRARY_PATH
 
7696
  shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
 
7697
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
 
7698
  if test "$GCC" = yes; then
 
7699
    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"`
 
7700
  else
 
7701
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
 
7702
  fi
 
7703
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 
7704
  ;;
 
7705
 
 
7706
dgux*)
 
7707
  version_type=linux
 
7708
  need_lib_prefix=no
 
7709
  need_version=no
 
7710
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
 
7711
  soname_spec='${libname}${release}${shared_ext}$major'
 
7712
  shlibpath_var=LD_LIBRARY_PATH
 
7713
  ;;
 
7714
 
 
7715
freebsd1*)
 
7716
  dynamic_linker=no
 
7717
  ;;
 
7718
 
 
7719
kfreebsd*-gnu)
 
7720
  version_type=linux
 
7721
  need_lib_prefix=no
 
7722
  need_version=no
 
7723
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
7724
  soname_spec='${libname}${release}${shared_ext}$major'
 
7725
  shlibpath_var=LD_LIBRARY_PATH
 
7726
  shlibpath_overrides_runpath=no
 
7727
  hardcode_into_libs=yes
 
7728
  dynamic_linker='GNU ld.so'
 
7729
  ;;
 
7730
 
 
7731
freebsd*)
 
7732
  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
 
7733
  version_type=freebsd-$objformat
 
7734
  case $version_type in
 
7735
    freebsd-elf*)
 
7736
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
7737
      need_version=no
 
7738
      need_lib_prefix=no
 
7739
      ;;
 
7740
    freebsd-*)
 
7741
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
 
7742
      need_version=yes
 
7743
      ;;
 
7744
  esac
 
7745
  shlibpath_var=LD_LIBRARY_PATH
 
7746
  case $host_os in
 
7747
  freebsd2*)
 
7748
    shlibpath_overrides_runpath=yes
 
7749
    ;;
 
7750
  freebsd3.01* | freebsdelf3.01*)
 
7751
    shlibpath_overrides_runpath=yes
 
7752
    hardcode_into_libs=yes
 
7753
    ;;
 
7754
  *) # from 3.2 on
 
7755
    shlibpath_overrides_runpath=no
 
7756
    hardcode_into_libs=yes
 
7757
    ;;
 
7758
  esac
 
7759
  ;;
 
7760
 
 
7761
gnu*)
 
7762
  version_type=linux
 
7763
  need_lib_prefix=no
 
7764
  need_version=no
 
7765
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
7766
  soname_spec='${libname}${release}${shared_ext}$major'
 
7767
  shlibpath_var=LD_LIBRARY_PATH
 
7768
  hardcode_into_libs=yes
 
7769
  ;;
 
7770
 
 
7771
hpux9* | hpux10* | hpux11*)
 
7772
  # Give a soname corresponding to the major version so that dld.sl refuses to
 
7773
  # link against other versions.
 
7774
  version_type=sunos
 
7775
  need_lib_prefix=no
 
7776
  need_version=no
 
7777
  case "$host_cpu" in
 
7778
  ia64*)
 
7779
    shrext_cmds='.so'
 
7780
    hardcode_into_libs=yes
 
7781
    dynamic_linker="$host_os dld.so"
 
7782
    shlibpath_var=LD_LIBRARY_PATH
 
7783
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
7784
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
7785
    soname_spec='${libname}${release}${shared_ext}$major'
 
7786
    if test "X$HPUX_IA64_MODE" = X32; then
 
7787
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 
7788
    else
 
7789
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 
7790
    fi
 
7791
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
7792
    ;;
 
7793
   hppa*64*)
 
7794
     shrext_cmds='.sl'
 
7795
     hardcode_into_libs=yes
 
7796
     dynamic_linker="$host_os dld.sl"
 
7797
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
7798
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
7799
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
7800
     soname_spec='${libname}${release}${shared_ext}$major'
 
7801
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
7802
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
7803
     ;;
 
7804
   *)
 
7805
    shrext_cmds='.sl'
 
7806
    dynamic_linker="$host_os dld.sl"
 
7807
    shlibpath_var=SHLIB_PATH
 
7808
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
7809
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
7810
    soname_spec='${libname}${release}${shared_ext}$major'
 
7811
    ;;
 
7812
  esac
 
7813
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
 
7814
  postinstall_cmds='chmod 555 $lib'
 
7815
  ;;
 
7816
 
 
7817
irix5* | irix6* | nonstopux*)
 
7818
  case $host_os in
 
7819
    nonstopux*) version_type=nonstopux ;;
 
7820
    *)
 
7821
        if test "$lt_cv_prog_gnu_ld" = yes; then
 
7822
                version_type=linux
 
7823
        else
 
7824
                version_type=irix
 
7825
        fi ;;
 
7826
  esac
 
7827
  need_lib_prefix=no
 
7828
  need_version=no
 
7829
  soname_spec='${libname}${release}${shared_ext}$major'
 
7830
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
 
7831
  case $host_os in
 
7832
  irix5* | nonstopux*)
 
7833
    libsuff= shlibsuff=
 
7834
    ;;
 
7835
  *)
 
7836
    case $LD in # libtool.m4 will add one of these switches to LD
 
7837
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 
7838
      libsuff= shlibsuff= libmagic=32-bit;;
 
7839
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 
7840
      libsuff=32 shlibsuff=N32 libmagic=N32;;
 
7841
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 
7842
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
7843
    *) libsuff= shlibsuff= libmagic=never-match;;
 
7844
    esac
 
7845
    ;;
 
7846
  esac
 
7847
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
7848
  shlibpath_overrides_runpath=no
 
7849
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
7850
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
7851
  hardcode_into_libs=yes
 
7852
  ;;
 
7853
 
 
7854
# No shared lib support for Linux oldld, aout, or coff.
 
7855
linux*oldld* | linux*aout* | linux*coff*)
 
7856
  dynamic_linker=no
 
7857
  ;;
 
7858
 
 
7859
# This must be Linux ELF.
 
7860
linux*)
 
7861
  version_type=linux
 
7862
  need_lib_prefix=no
 
7863
  need_version=no
 
7864
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
7865
  soname_spec='${libname}${release}${shared_ext}$major'
 
7866
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
7867
  shlibpath_var=LD_LIBRARY_PATH
 
7868
  shlibpath_overrides_runpath=no
 
7869
  # This implies no fast_install, which is unacceptable.
 
7870
  # Some rework will be needed to allow for fast_install
 
7871
  # before this can be enabled.
 
7872
  hardcode_into_libs=yes
 
7873
 
 
7874
  # Append ld.so.conf contents to the search path
 
7875
  if test -f /etc/ld.so.conf; then
 
7876
    lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
 
7877
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
 
7878
  fi
 
7879
 
 
7880
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
7881
  # powerpc, because MkLinux only supported shared libraries with the
 
7882
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
7883
  # most powerpc-linux boxes support dynamic linking these days and
 
7884
  # people can always --disable-shared, the test was removed, and we
 
7885
  # assume the GNU/Linux dynamic linker is in use.
 
7886
  dynamic_linker='GNU/Linux ld.so'
 
7887
  ;;
 
7888
 
 
7889
netbsdelf*-gnu)
 
7890
  version_type=linux
 
7891
  need_lib_prefix=no
 
7892
  need_version=no
 
7893
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
7894
  soname_spec='${libname}${release}${shared_ext}$major'
 
7895
  shlibpath_var=LD_LIBRARY_PATH
 
7896
  shlibpath_overrides_runpath=no
 
7897
  hardcode_into_libs=yes
 
7898
  dynamic_linker='NetBSD ld.elf_so'
 
7899
  ;;
 
7900
 
 
7901
knetbsd*-gnu)
 
7902
  version_type=linux
 
7903
  need_lib_prefix=no
 
7904
  need_version=no
 
7905
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
7906
  soname_spec='${libname}${release}${shared_ext}$major'
 
7907
  shlibpath_var=LD_LIBRARY_PATH
 
7908
  shlibpath_overrides_runpath=no
 
7909
  hardcode_into_libs=yes
 
7910
  dynamic_linker='GNU ld.so'
 
7911
  ;;
 
7912
 
 
7913
netbsd*)
 
7914
  version_type=sunos
 
7915
  need_lib_prefix=no
 
7916
  need_version=no
 
7917
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
7918
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
7919
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
7920
    dynamic_linker='NetBSD (a.out) ld.so'
 
7921
  else
 
7922
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
7923
    soname_spec='${libname}${release}${shared_ext}$major'
 
7924
    dynamic_linker='NetBSD ld.elf_so'
 
7925
  fi
 
7926
  shlibpath_var=LD_LIBRARY_PATH
 
7927
  shlibpath_overrides_runpath=yes
 
7928
  hardcode_into_libs=yes
 
7929
  ;;
 
7930
 
 
7931
newsos6)
 
7932
  version_type=linux
 
7933
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
7934
  shlibpath_var=LD_LIBRARY_PATH
 
7935
  shlibpath_overrides_runpath=yes
 
7936
  ;;
 
7937
 
 
7938
nto-qnx*)
 
7939
  version_type=linux
 
7940
  need_lib_prefix=no
 
7941
  need_version=no
 
7942
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
7943
  soname_spec='${libname}${release}${shared_ext}$major'
 
7944
  shlibpath_var=LD_LIBRARY_PATH
 
7945
  shlibpath_overrides_runpath=yes
 
7946
  ;;
 
7947
 
 
7948
openbsd*)
 
7949
  version_type=sunos
 
7950
  need_lib_prefix=no
 
7951
  need_version=yes
 
7952
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
7953
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
7954
  shlibpath_var=LD_LIBRARY_PATH
 
7955
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
7956
    case $host_os in
 
7957
      openbsd2.[89] | openbsd2.[89].*)
 
7958
        shlibpath_overrides_runpath=no
 
7959
        ;;
 
7960
      *)
 
7961
        shlibpath_overrides_runpath=yes
 
7962
        ;;
 
7963
      esac
 
7964
  else
 
7965
    shlibpath_overrides_runpath=yes
 
7966
  fi
 
7967
  ;;
 
7968
 
 
7969
os2*)
 
7970
  libname_spec='$name'
 
7971
  shrext_cmds=".dll"
 
7972
  need_lib_prefix=no
 
7973
  library_names_spec='$libname${shared_ext} $libname.a'
 
7974
  dynamic_linker='OS/2 ld.exe'
 
7975
  shlibpath_var=LIBPATH
 
7976
  ;;
 
7977
 
 
7978
osf3* | osf4* | osf5*)
 
7979
  version_type=osf
 
7980
  need_lib_prefix=no
 
7981
  need_version=no
 
7982
  soname_spec='${libname}${release}${shared_ext}$major'
 
7983
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
7984
  shlibpath_var=LD_LIBRARY_PATH
 
7985
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
7986
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
7987
  ;;
 
7988
 
 
7989
sco3.2v5*)
 
7990
  version_type=osf
 
7991
  soname_spec='${libname}${release}${shared_ext}$major'
 
7992
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
7993
  shlibpath_var=LD_LIBRARY_PATH
 
7994
  ;;
 
7995
 
 
7996
solaris*)
 
7997
  version_type=linux
 
7998
  need_lib_prefix=no
 
7999
  need_version=no
 
8000
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
8001
  soname_spec='${libname}${release}${shared_ext}$major'
 
8002
  shlibpath_var=LD_LIBRARY_PATH
 
8003
  shlibpath_overrides_runpath=yes
 
8004
  hardcode_into_libs=yes
 
8005
  # ldd complains unless libraries are executable
 
8006
  postinstall_cmds='chmod +x $lib'
 
8007
  ;;
 
8008
 
 
8009
sunos4*)
 
8010
  version_type=sunos
 
8011
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
8012
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
8013
  shlibpath_var=LD_LIBRARY_PATH
 
8014
  shlibpath_overrides_runpath=yes
 
8015
  if test "$with_gnu_ld" = yes; then
 
8016
    need_lib_prefix=no
 
8017
  fi
 
8018
  need_version=yes
 
8019
  ;;
 
8020
 
 
8021
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
8022
  version_type=linux
 
8023
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
8024
  soname_spec='${libname}${release}${shared_ext}$major'
 
8025
  shlibpath_var=LD_LIBRARY_PATH
 
8026
  case $host_vendor in
 
8027
    sni)
 
8028
      shlibpath_overrides_runpath=no
 
8029
      need_lib_prefix=no
 
8030
      export_dynamic_flag_spec='${wl}-Blargedynsym'
 
8031
      runpath_var=LD_RUN_PATH
 
8032
      ;;
 
8033
    siemens)
 
8034
      need_lib_prefix=no
 
8035
      ;;
 
8036
    motorola)
 
8037
      need_lib_prefix=no
 
8038
      need_version=no
 
8039
      shlibpath_overrides_runpath=no
 
8040
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
8041
      ;;
 
8042
  esac
 
8043
  ;;
 
8044
 
 
8045
sysv4*MP*)
 
8046
  if test -d /usr/nec ;then
 
8047
    version_type=linux
 
8048
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
 
8049
    soname_spec='$libname${shared_ext}.$major'
 
8050
    shlibpath_var=LD_LIBRARY_PATH
 
8051
  fi
 
8052
  ;;
 
8053
 
 
8054
uts4*)
 
8055
  version_type=linux
 
8056
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
8057
  soname_spec='${libname}${release}${shared_ext}$major'
 
8058
  shlibpath_var=LD_LIBRARY_PATH
 
8059
  ;;
 
8060
 
 
8061
*)
 
8062
  dynamic_linker=no
 
8063
  ;;
 
8064
esac
 
8065
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
 
8066
echo "${ECHO_T}$dynamic_linker" >&6
 
8067
test "$dynamic_linker" = no && can_build_shared=no
 
8068
 
 
8069
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
 
8070
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
 
8071
hardcode_action=
 
8072
if test -n "$hardcode_libdir_flag_spec" || \
 
8073
   test -n "$runpath_var " || \
 
8074
   test "X$hardcode_automatic"="Xyes" ; then
 
8075
 
 
8076
  # We can hardcode non-existant directories.
 
8077
  if test "$hardcode_direct" != no &&
 
8078
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
 
8079
     # have to relink, otherwise we might link with an installed library
 
8080
     # when we should be linking with a yet-to-be-installed one
 
8081
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
 
8082
     test "$hardcode_minus_L" != no; then
 
8083
    # Linking always hardcodes the temporary library directory.
 
8084
    hardcode_action=relink
 
8085
  else
 
8086
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
 
8087
    hardcode_action=immediate
 
8088
  fi
 
8089
else
 
8090
  # We cannot hardcode anything, or else we can only hardcode existing
 
8091
  # directories.
 
8092
  hardcode_action=unsupported
 
8093
fi
 
8094
echo "$as_me:$LINENO: result: $hardcode_action" >&5
 
8095
echo "${ECHO_T}$hardcode_action" >&6
 
8096
 
 
8097
if test "$hardcode_action" = relink; then
 
8098
  # Fast installation is not supported
 
8099
  enable_fast_install=no
 
8100
elif test "$shlibpath_overrides_runpath" = yes ||
 
8101
     test "$enable_shared" = no; then
 
8102
  # Fast installation is not necessary
 
8103
  enable_fast_install=needless
 
8104
fi
 
8105
 
 
8106
striplib=
 
8107
old_striplib=
 
8108
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
 
8109
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
 
8110
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
 
8111
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
 
8112
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
 
8113
  echo "$as_me:$LINENO: result: yes" >&5
 
8114
echo "${ECHO_T}yes" >&6
 
8115
else
 
8116
# FIXME - insert some real tests, host_os isn't really good enough
 
8117
  case $host_os in
 
8118
   darwin*)
 
8119
       if test -n "$STRIP" ; then
 
8120
         striplib="$STRIP -x"
 
8121
         echo "$as_me:$LINENO: result: yes" >&5
 
8122
echo "${ECHO_T}yes" >&6
 
8123
       else
 
8124
  echo "$as_me:$LINENO: result: no" >&5
 
8125
echo "${ECHO_T}no" >&6
 
8126
fi
 
8127
       ;;
 
8128
   *)
 
8129
  echo "$as_me:$LINENO: result: no" >&5
 
8130
echo "${ECHO_T}no" >&6
 
8131
    ;;
 
8132
  esac
 
8133
fi
 
8134
 
 
8135
if test "x$enable_dlopen" != xyes; then
 
8136
  enable_dlopen=unknown
 
8137
  enable_dlopen_self=unknown
 
8138
  enable_dlopen_self_static=unknown
 
8139
else
 
8140
  lt_cv_dlopen=no
 
8141
  lt_cv_dlopen_libs=
 
8142
 
 
8143
  case $host_os in
 
8144
  beos*)
 
8145
    lt_cv_dlopen="load_add_on"
 
8146
    lt_cv_dlopen_libs=
 
8147
    lt_cv_dlopen_self=yes
 
8148
    ;;
 
8149
 
 
8150
  mingw* | pw32*)
 
8151
    lt_cv_dlopen="LoadLibrary"
 
8152
    lt_cv_dlopen_libs=
 
8153
   ;;
 
8154
 
 
8155
  cygwin*)
 
8156
    lt_cv_dlopen="dlopen"
 
8157
    lt_cv_dlopen_libs=
 
8158
   ;;
 
8159
 
 
8160
  darwin*)
 
8161
  # if libdl is installed we need to link against it
 
8162
    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
8163
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
 
8164
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
 
8165
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8166
else
 
8167
  ac_check_lib_save_LIBS=$LIBS
 
8168
LIBS="-ldl  $LIBS"
 
8169
cat >conftest.$ac_ext <<_ACEOF
 
8170
/* confdefs.h.  */
 
8171
_ACEOF
 
8172
cat confdefs.h >>conftest.$ac_ext
 
8173
cat >>conftest.$ac_ext <<_ACEOF
 
8174
/* end confdefs.h.  */
 
8175
 
 
8176
/* Override any gcc2 internal prototype to avoid an error.  */
 
8177
#ifdef __cplusplus
 
8178
extern "C"
 
8179
#endif
 
8180
/* We use char because int might match the return type of a gcc2
 
8181
   builtin and then its argument prototype would still apply.  */
 
8182
char dlopen ();
 
8183
int
 
8184
main ()
 
8185
{
 
8186
dlopen ();
 
8187
  ;
 
8188
  return 0;
 
8189
}
 
8190
_ACEOF
 
8191
rm -f conftest.$ac_objext conftest$ac_exeext
 
8192
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
8193
  (eval $ac_link) 2>conftest.er1
 
8194
  ac_status=$?
 
8195
  grep -v '^ *+' conftest.er1 >conftest.err
 
8196
  rm -f conftest.er1
 
8197
  cat conftest.err >&5
 
8198
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8199
  (exit $ac_status); } &&
 
8200
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
8201
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8202
  (eval $ac_try) 2>&5
 
8203
  ac_status=$?
 
8204
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8205
  (exit $ac_status); }; } &&
 
8206
         { ac_try='test -s conftest$ac_exeext'
 
8207
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8208
  (eval $ac_try) 2>&5
 
8209
  ac_status=$?
 
8210
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8211
  (exit $ac_status); }; }; then
 
8212
  ac_cv_lib_dl_dlopen=yes
 
8213
else
 
8214
  echo "$as_me: failed program was:" >&5
 
8215
sed 's/^/| /' conftest.$ac_ext >&5
 
8216
 
 
8217
ac_cv_lib_dl_dlopen=no
 
8218
fi
 
8219
rm -f conftest.err conftest.$ac_objext \
 
8220
      conftest$ac_exeext conftest.$ac_ext
 
8221
LIBS=$ac_check_lib_save_LIBS
 
8222
fi
 
8223
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
8224
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
 
8225
if test $ac_cv_lib_dl_dlopen = yes; then
 
8226
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
8227
else
 
8228
 
 
8229
    lt_cv_dlopen="dyld"
 
8230
    lt_cv_dlopen_libs=
 
8231
    lt_cv_dlopen_self=yes
 
8232
 
 
8233
fi
 
8234
 
 
8235
   ;;
 
8236
 
 
8237
  *)
 
8238
    echo "$as_me:$LINENO: checking for shl_load" >&5
 
8239
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
 
8240
if test "${ac_cv_func_shl_load+set}" = set; then
 
8241
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8242
else
 
8243
  cat >conftest.$ac_ext <<_ACEOF
 
8244
/* confdefs.h.  */
 
8245
_ACEOF
 
8246
cat confdefs.h >>conftest.$ac_ext
 
8247
cat >>conftest.$ac_ext <<_ACEOF
 
8248
/* end confdefs.h.  */
 
8249
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
 
8250
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
8251
#define shl_load innocuous_shl_load
 
8252
 
 
8253
/* System header to define __stub macros and hopefully few prototypes,
 
8254
    which can conflict with char shl_load (); below.
 
8255
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
8256
    <limits.h> exists even on freestanding compilers.  */
 
8257
 
 
8258
#ifdef __STDC__
 
8259
# include <limits.h>
 
8260
#else
 
8261
# include <assert.h>
 
8262
#endif
 
8263
 
 
8264
#undef shl_load
 
8265
 
 
8266
/* Override any gcc2 internal prototype to avoid an error.  */
 
8267
#ifdef __cplusplus
 
8268
extern "C"
 
8269
{
 
8270
#endif
 
8271
/* We use char because int might match the return type of a gcc2
 
8272
   builtin and then its argument prototype would still apply.  */
 
8273
char shl_load ();
 
8274
/* The GNU C library defines this for functions which it implements
 
8275
    to always fail with ENOSYS.  Some functions are actually named
 
8276
    something starting with __ and the normal name is an alias.  */
 
8277
#if defined (__stub_shl_load) || defined (__stub___shl_load)
 
8278
choke me
 
8279
#else
 
8280
char (*f) () = shl_load;
 
8281
#endif
 
8282
#ifdef __cplusplus
 
8283
}
 
8284
#endif
 
8285
 
 
8286
int
 
8287
main ()
 
8288
{
 
8289
return f != shl_load;
 
8290
  ;
 
8291
  return 0;
 
8292
}
 
8293
_ACEOF
 
8294
rm -f conftest.$ac_objext conftest$ac_exeext
 
8295
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
8296
  (eval $ac_link) 2>conftest.er1
 
8297
  ac_status=$?
 
8298
  grep -v '^ *+' conftest.er1 >conftest.err
 
8299
  rm -f conftest.er1
 
8300
  cat conftest.err >&5
 
8301
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8302
  (exit $ac_status); } &&
 
8303
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
8304
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8305
  (eval $ac_try) 2>&5
 
8306
  ac_status=$?
 
8307
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8308
  (exit $ac_status); }; } &&
 
8309
         { ac_try='test -s conftest$ac_exeext'
 
8310
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8311
  (eval $ac_try) 2>&5
 
8312
  ac_status=$?
 
8313
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8314
  (exit $ac_status); }; }; then
 
8315
  ac_cv_func_shl_load=yes
 
8316
else
 
8317
  echo "$as_me: failed program was:" >&5
 
8318
sed 's/^/| /' conftest.$ac_ext >&5
 
8319
 
 
8320
ac_cv_func_shl_load=no
 
8321
fi
 
8322
rm -f conftest.err conftest.$ac_objext \
 
8323
      conftest$ac_exeext conftest.$ac_ext
 
8324
fi
 
8325
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
 
8326
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
 
8327
if test $ac_cv_func_shl_load = yes; then
 
8328
  lt_cv_dlopen="shl_load"
 
8329
else
 
8330
  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
 
8331
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
 
8332
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
 
8333
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8334
else
 
8335
  ac_check_lib_save_LIBS=$LIBS
 
8336
LIBS="-ldld  $LIBS"
 
8337
cat >conftest.$ac_ext <<_ACEOF
 
8338
/* confdefs.h.  */
 
8339
_ACEOF
 
8340
cat confdefs.h >>conftest.$ac_ext
 
8341
cat >>conftest.$ac_ext <<_ACEOF
 
8342
/* end confdefs.h.  */
 
8343
 
 
8344
/* Override any gcc2 internal prototype to avoid an error.  */
 
8345
#ifdef __cplusplus
 
8346
extern "C"
 
8347
#endif
 
8348
/* We use char because int might match the return type of a gcc2
 
8349
   builtin and then its argument prototype would still apply.  */
 
8350
char shl_load ();
 
8351
int
 
8352
main ()
 
8353
{
 
8354
shl_load ();
 
8355
  ;
 
8356
  return 0;
 
8357
}
 
8358
_ACEOF
 
8359
rm -f conftest.$ac_objext conftest$ac_exeext
 
8360
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
8361
  (eval $ac_link) 2>conftest.er1
 
8362
  ac_status=$?
 
8363
  grep -v '^ *+' conftest.er1 >conftest.err
 
8364
  rm -f conftest.er1
 
8365
  cat conftest.err >&5
 
8366
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8367
  (exit $ac_status); } &&
 
8368
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
8369
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8370
  (eval $ac_try) 2>&5
 
8371
  ac_status=$?
 
8372
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8373
  (exit $ac_status); }; } &&
 
8374
         { ac_try='test -s conftest$ac_exeext'
 
8375
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8376
  (eval $ac_try) 2>&5
 
8377
  ac_status=$?
 
8378
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8379
  (exit $ac_status); }; }; then
 
8380
  ac_cv_lib_dld_shl_load=yes
 
8381
else
 
8382
  echo "$as_me: failed program was:" >&5
 
8383
sed 's/^/| /' conftest.$ac_ext >&5
 
8384
 
 
8385
ac_cv_lib_dld_shl_load=no
 
8386
fi
 
8387
rm -f conftest.err conftest.$ac_objext \
 
8388
      conftest$ac_exeext conftest.$ac_ext
 
8389
LIBS=$ac_check_lib_save_LIBS
 
8390
fi
 
8391
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
 
8392
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
 
8393
if test $ac_cv_lib_dld_shl_load = yes; then
 
8394
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
 
8395
else
 
8396
  echo "$as_me:$LINENO: checking for dlopen" >&5
 
8397
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
 
8398
if test "${ac_cv_func_dlopen+set}" = set; then
 
8399
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8400
else
 
8401
  cat >conftest.$ac_ext <<_ACEOF
 
8402
/* confdefs.h.  */
 
8403
_ACEOF
 
8404
cat confdefs.h >>conftest.$ac_ext
 
8405
cat >>conftest.$ac_ext <<_ACEOF
 
8406
/* end confdefs.h.  */
 
8407
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
 
8408
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
8409
#define dlopen innocuous_dlopen
 
8410
 
 
8411
/* System header to define __stub macros and hopefully few prototypes,
 
8412
    which can conflict with char dlopen (); below.
 
8413
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
8414
    <limits.h> exists even on freestanding compilers.  */
 
8415
 
 
8416
#ifdef __STDC__
 
8417
# include <limits.h>
 
8418
#else
 
8419
# include <assert.h>
 
8420
#endif
 
8421
 
 
8422
#undef dlopen
 
8423
 
 
8424
/* Override any gcc2 internal prototype to avoid an error.  */
 
8425
#ifdef __cplusplus
 
8426
extern "C"
 
8427
{
 
8428
#endif
 
8429
/* We use char because int might match the return type of a gcc2
 
8430
   builtin and then its argument prototype would still apply.  */
 
8431
char dlopen ();
 
8432
/* The GNU C library defines this for functions which it implements
 
8433
    to always fail with ENOSYS.  Some functions are actually named
 
8434
    something starting with __ and the normal name is an alias.  */
 
8435
#if defined (__stub_dlopen) || defined (__stub___dlopen)
 
8436
choke me
 
8437
#else
 
8438
char (*f) () = dlopen;
 
8439
#endif
 
8440
#ifdef __cplusplus
 
8441
}
 
8442
#endif
 
8443
 
 
8444
int
 
8445
main ()
 
8446
{
 
8447
return f != dlopen;
 
8448
  ;
 
8449
  return 0;
 
8450
}
 
8451
_ACEOF
 
8452
rm -f conftest.$ac_objext conftest$ac_exeext
 
8453
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
8454
  (eval $ac_link) 2>conftest.er1
 
8455
  ac_status=$?
 
8456
  grep -v '^ *+' conftest.er1 >conftest.err
 
8457
  rm -f conftest.er1
 
8458
  cat conftest.err >&5
 
8459
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8460
  (exit $ac_status); } &&
 
8461
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
8462
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8463
  (eval $ac_try) 2>&5
 
8464
  ac_status=$?
 
8465
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8466
  (exit $ac_status); }; } &&
 
8467
         { ac_try='test -s conftest$ac_exeext'
 
8468
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8469
  (eval $ac_try) 2>&5
 
8470
  ac_status=$?
 
8471
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8472
  (exit $ac_status); }; }; then
 
8473
  ac_cv_func_dlopen=yes
 
8474
else
 
8475
  echo "$as_me: failed program was:" >&5
 
8476
sed 's/^/| /' conftest.$ac_ext >&5
 
8477
 
 
8478
ac_cv_func_dlopen=no
 
8479
fi
 
8480
rm -f conftest.err conftest.$ac_objext \
 
8481
      conftest$ac_exeext conftest.$ac_ext
 
8482
fi
 
8483
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
 
8484
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
 
8485
if test $ac_cv_func_dlopen = yes; then
 
8486
  lt_cv_dlopen="dlopen"
 
8487
else
 
8488
  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
8489
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
 
8490
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
 
8491
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8492
else
 
8493
  ac_check_lib_save_LIBS=$LIBS
 
8494
LIBS="-ldl  $LIBS"
 
8495
cat >conftest.$ac_ext <<_ACEOF
 
8496
/* confdefs.h.  */
 
8497
_ACEOF
 
8498
cat confdefs.h >>conftest.$ac_ext
 
8499
cat >>conftest.$ac_ext <<_ACEOF
 
8500
/* end confdefs.h.  */
 
8501
 
 
8502
/* Override any gcc2 internal prototype to avoid an error.  */
 
8503
#ifdef __cplusplus
 
8504
extern "C"
 
8505
#endif
 
8506
/* We use char because int might match the return type of a gcc2
 
8507
   builtin and then its argument prototype would still apply.  */
 
8508
char dlopen ();
 
8509
int
 
8510
main ()
 
8511
{
 
8512
dlopen ();
 
8513
  ;
 
8514
  return 0;
 
8515
}
 
8516
_ACEOF
 
8517
rm -f conftest.$ac_objext conftest$ac_exeext
 
8518
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
8519
  (eval $ac_link) 2>conftest.er1
 
8520
  ac_status=$?
 
8521
  grep -v '^ *+' conftest.er1 >conftest.err
 
8522
  rm -f conftest.er1
 
8523
  cat conftest.err >&5
 
8524
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8525
  (exit $ac_status); } &&
 
8526
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
8527
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8528
  (eval $ac_try) 2>&5
 
8529
  ac_status=$?
 
8530
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8531
  (exit $ac_status); }; } &&
 
8532
         { ac_try='test -s conftest$ac_exeext'
 
8533
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8534
  (eval $ac_try) 2>&5
 
8535
  ac_status=$?
 
8536
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8537
  (exit $ac_status); }; }; then
 
8538
  ac_cv_lib_dl_dlopen=yes
 
8539
else
 
8540
  echo "$as_me: failed program was:" >&5
 
8541
sed 's/^/| /' conftest.$ac_ext >&5
 
8542
 
 
8543
ac_cv_lib_dl_dlopen=no
 
8544
fi
 
8545
rm -f conftest.err conftest.$ac_objext \
 
8546
      conftest$ac_exeext conftest.$ac_ext
 
8547
LIBS=$ac_check_lib_save_LIBS
 
8548
fi
 
8549
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
8550
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
 
8551
if test $ac_cv_lib_dl_dlopen = yes; then
 
8552
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
8553
else
 
8554
  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
 
8555
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
 
8556
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
 
8557
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8558
else
 
8559
  ac_check_lib_save_LIBS=$LIBS
 
8560
LIBS="-lsvld  $LIBS"
 
8561
cat >conftest.$ac_ext <<_ACEOF
 
8562
/* confdefs.h.  */
 
8563
_ACEOF
 
8564
cat confdefs.h >>conftest.$ac_ext
 
8565
cat >>conftest.$ac_ext <<_ACEOF
 
8566
/* end confdefs.h.  */
 
8567
 
 
8568
/* Override any gcc2 internal prototype to avoid an error.  */
 
8569
#ifdef __cplusplus
 
8570
extern "C"
 
8571
#endif
 
8572
/* We use char because int might match the return type of a gcc2
 
8573
   builtin and then its argument prototype would still apply.  */
 
8574
char dlopen ();
 
8575
int
 
8576
main ()
 
8577
{
 
8578
dlopen ();
 
8579
  ;
 
8580
  return 0;
 
8581
}
 
8582
_ACEOF
 
8583
rm -f conftest.$ac_objext conftest$ac_exeext
 
8584
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
8585
  (eval $ac_link) 2>conftest.er1
 
8586
  ac_status=$?
 
8587
  grep -v '^ *+' conftest.er1 >conftest.err
 
8588
  rm -f conftest.er1
 
8589
  cat conftest.err >&5
 
8590
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8591
  (exit $ac_status); } &&
 
8592
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
8593
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8594
  (eval $ac_try) 2>&5
 
8595
  ac_status=$?
 
8596
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8597
  (exit $ac_status); }; } &&
 
8598
         { ac_try='test -s conftest$ac_exeext'
 
8599
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8600
  (eval $ac_try) 2>&5
 
8601
  ac_status=$?
 
8602
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8603
  (exit $ac_status); }; }; then
 
8604
  ac_cv_lib_svld_dlopen=yes
 
8605
else
 
8606
  echo "$as_me: failed program was:" >&5
 
8607
sed 's/^/| /' conftest.$ac_ext >&5
 
8608
 
 
8609
ac_cv_lib_svld_dlopen=no
 
8610
fi
 
8611
rm -f conftest.err conftest.$ac_objext \
 
8612
      conftest$ac_exeext conftest.$ac_ext
 
8613
LIBS=$ac_check_lib_save_LIBS
 
8614
fi
 
8615
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
 
8616
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
 
8617
if test $ac_cv_lib_svld_dlopen = yes; then
 
8618
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
 
8619
else
 
8620
  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
 
8621
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
 
8622
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
 
8623
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8624
else
 
8625
  ac_check_lib_save_LIBS=$LIBS
 
8626
LIBS="-ldld  $LIBS"
 
8627
cat >conftest.$ac_ext <<_ACEOF
 
8628
/* confdefs.h.  */
 
8629
_ACEOF
 
8630
cat confdefs.h >>conftest.$ac_ext
 
8631
cat >>conftest.$ac_ext <<_ACEOF
 
8632
/* end confdefs.h.  */
 
8633
 
 
8634
/* Override any gcc2 internal prototype to avoid an error.  */
 
8635
#ifdef __cplusplus
 
8636
extern "C"
 
8637
#endif
 
8638
/* We use char because int might match the return type of a gcc2
 
8639
   builtin and then its argument prototype would still apply.  */
 
8640
char dld_link ();
 
8641
int
 
8642
main ()
 
8643
{
 
8644
dld_link ();
 
8645
  ;
 
8646
  return 0;
 
8647
}
 
8648
_ACEOF
 
8649
rm -f conftest.$ac_objext conftest$ac_exeext
 
8650
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
8651
  (eval $ac_link) 2>conftest.er1
 
8652
  ac_status=$?
 
8653
  grep -v '^ *+' conftest.er1 >conftest.err
 
8654
  rm -f conftest.er1
 
8655
  cat conftest.err >&5
 
8656
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8657
  (exit $ac_status); } &&
 
8658
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
8659
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8660
  (eval $ac_try) 2>&5
 
8661
  ac_status=$?
 
8662
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8663
  (exit $ac_status); }; } &&
 
8664
         { ac_try='test -s conftest$ac_exeext'
 
8665
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8666
  (eval $ac_try) 2>&5
 
8667
  ac_status=$?
 
8668
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8669
  (exit $ac_status); }; }; then
 
8670
  ac_cv_lib_dld_dld_link=yes
 
8671
else
 
8672
  echo "$as_me: failed program was:" >&5
 
8673
sed 's/^/| /' conftest.$ac_ext >&5
 
8674
 
 
8675
ac_cv_lib_dld_dld_link=no
 
8676
fi
 
8677
rm -f conftest.err conftest.$ac_objext \
 
8678
      conftest$ac_exeext conftest.$ac_ext
 
8679
LIBS=$ac_check_lib_save_LIBS
 
8680
fi
 
8681
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
 
8682
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
 
8683
if test $ac_cv_lib_dld_dld_link = yes; then
 
8684
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
 
8685
fi
 
8686
 
 
8687
 
 
8688
fi
 
8689
 
 
8690
 
 
8691
fi
 
8692
 
 
8693
 
 
8694
fi
 
8695
 
 
8696
 
 
8697
fi
 
8698
 
 
8699
 
 
8700
fi
 
8701
 
 
8702
    ;;
 
8703
  esac
 
8704
 
 
8705
  if test "x$lt_cv_dlopen" != xno; then
 
8706
    enable_dlopen=yes
 
8707
  else
 
8708
    enable_dlopen=no
 
8709
  fi
 
8710
 
 
8711
  case $lt_cv_dlopen in
 
8712
  dlopen)
 
8713
    save_CPPFLAGS="$CPPFLAGS"
 
8714
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
 
8715
 
 
8716
    save_LDFLAGS="$LDFLAGS"
 
8717
    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
 
8718
 
 
8719
    save_LIBS="$LIBS"
 
8720
    LIBS="$lt_cv_dlopen_libs $LIBS"
 
8721
 
 
8722
    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
 
8723
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
 
8724
if test "${lt_cv_dlopen_self+set}" = set; then
 
8725
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8726
else
 
8727
          if test "$cross_compiling" = yes; then :
 
8728
  lt_cv_dlopen_self=cross
 
8729
else
 
8730
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
8731
  lt_status=$lt_dlunknown
 
8732
  cat > conftest.$ac_ext <<EOF
 
8733
#line 8733 "configure"
 
8734
#include "confdefs.h"
 
8735
 
 
8736
#if HAVE_DLFCN_H
 
8737
#include <dlfcn.h>
 
8738
#endif
 
8739
 
 
8740
#include <stdio.h>
 
8741
 
 
8742
#ifdef RTLD_GLOBAL
 
8743
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
8744
#else
 
8745
#  ifdef DL_GLOBAL
 
8746
#    define LT_DLGLOBAL         DL_GLOBAL
 
8747
#  else
 
8748
#    define LT_DLGLOBAL         0
 
8749
#  endif
 
8750
#endif
 
8751
 
 
8752
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
8753
   find out it does not work in some platform. */
 
8754
#ifndef LT_DLLAZY_OR_NOW
 
8755
#  ifdef RTLD_LAZY
 
8756
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
8757
#  else
 
8758
#    ifdef DL_LAZY
 
8759
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
8760
#    else
 
8761
#      ifdef RTLD_NOW
 
8762
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
8763
#      else
 
8764
#        ifdef DL_NOW
 
8765
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
8766
#        else
 
8767
#          define LT_DLLAZY_OR_NOW      0
 
8768
#        endif
 
8769
#      endif
 
8770
#    endif
 
8771
#  endif
 
8772
#endif
 
8773
 
 
8774
#ifdef __cplusplus
 
8775
extern "C" void exit (int);
 
8776
#endif
 
8777
 
 
8778
void fnord() { int i=42;}
 
8779
int main ()
 
8780
{
 
8781
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
8782
  int status = $lt_dlunknown;
 
8783
 
 
8784
  if (self)
 
8785
    {
 
8786
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
8787
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
8788
      /* dlclose (self); */
 
8789
    }
 
8790
 
 
8791
    exit (status);
 
8792
}
 
8793
EOF
 
8794
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
8795
  (eval $ac_link) 2>&5
 
8796
  ac_status=$?
 
8797
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8798
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
 
8799
    (./conftest; exit; ) 2>/dev/null
 
8800
    lt_status=$?
 
8801
    case x$lt_status in
 
8802
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
 
8803
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
 
8804
      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
 
8805
    esac
 
8806
  else :
 
8807
    # compilation failed
 
8808
    lt_cv_dlopen_self=no
 
8809
  fi
 
8810
fi
 
8811
rm -fr conftest*
 
8812
 
 
8813
 
 
8814
fi
 
8815
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
 
8816
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
 
8817
 
 
8818
    if test "x$lt_cv_dlopen_self" = xyes; then
 
8819
      LDFLAGS="$LDFLAGS $link_static_flag"
 
8820
      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
 
8821
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
 
8822
if test "${lt_cv_dlopen_self_static+set}" = set; then
 
8823
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8824
else
 
8825
          if test "$cross_compiling" = yes; then :
 
8826
  lt_cv_dlopen_self_static=cross
 
8827
else
 
8828
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
8829
  lt_status=$lt_dlunknown
 
8830
  cat > conftest.$ac_ext <<EOF
 
8831
#line 8831 "configure"
 
8832
#include "confdefs.h"
 
8833
 
 
8834
#if HAVE_DLFCN_H
 
8835
#include <dlfcn.h>
 
8836
#endif
 
8837
 
 
8838
#include <stdio.h>
 
8839
 
 
8840
#ifdef RTLD_GLOBAL
 
8841
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
8842
#else
 
8843
#  ifdef DL_GLOBAL
 
8844
#    define LT_DLGLOBAL         DL_GLOBAL
 
8845
#  else
 
8846
#    define LT_DLGLOBAL         0
 
8847
#  endif
 
8848
#endif
 
8849
 
 
8850
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
8851
   find out it does not work in some platform. */
 
8852
#ifndef LT_DLLAZY_OR_NOW
 
8853
#  ifdef RTLD_LAZY
 
8854
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
8855
#  else
 
8856
#    ifdef DL_LAZY
 
8857
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
8858
#    else
 
8859
#      ifdef RTLD_NOW
 
8860
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
8861
#      else
 
8862
#        ifdef DL_NOW
 
8863
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
8864
#        else
 
8865
#          define LT_DLLAZY_OR_NOW      0
 
8866
#        endif
 
8867
#      endif
 
8868
#    endif
 
8869
#  endif
 
8870
#endif
 
8871
 
 
8872
#ifdef __cplusplus
 
8873
extern "C" void exit (int);
 
8874
#endif
 
8875
 
 
8876
void fnord() { int i=42;}
 
8877
int main ()
 
8878
{
 
8879
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
8880
  int status = $lt_dlunknown;
 
8881
 
 
8882
  if (self)
 
8883
    {
 
8884
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
8885
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
8886
      /* dlclose (self); */
 
8887
    }
 
8888
 
 
8889
    exit (status);
 
8890
}
 
8891
EOF
 
8892
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
8893
  (eval $ac_link) 2>&5
 
8894
  ac_status=$?
 
8895
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8896
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
 
8897
    (./conftest; exit; ) 2>/dev/null
 
8898
    lt_status=$?
 
8899
    case x$lt_status in
 
8900
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
 
8901
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
 
8902
      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
 
8903
    esac
 
8904
  else :
 
8905
    # compilation failed
 
8906
    lt_cv_dlopen_self_static=no
 
8907
  fi
 
8908
fi
 
8909
rm -fr conftest*
 
8910
 
 
8911
 
 
8912
fi
 
8913
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
 
8914
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
 
8915
    fi
 
8916
 
 
8917
    CPPFLAGS="$save_CPPFLAGS"
 
8918
    LDFLAGS="$save_LDFLAGS"
 
8919
    LIBS="$save_LIBS"
 
8920
    ;;
 
8921
  esac
 
8922
 
 
8923
  case $lt_cv_dlopen_self in
 
8924
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
 
8925
  *) enable_dlopen_self=unknown ;;
 
8926
  esac
 
8927
 
 
8928
  case $lt_cv_dlopen_self_static in
 
8929
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
 
8930
  *) enable_dlopen_self_static=unknown ;;
 
8931
  esac
 
8932
fi
 
8933
 
 
8934
 
 
8935
# Report which librarie types wil actually be built
 
8936
echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
 
8937
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
 
8938
echo "$as_me:$LINENO: result: $can_build_shared" >&5
 
8939
echo "${ECHO_T}$can_build_shared" >&6
 
8940
 
 
8941
echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
 
8942
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
 
8943
test "$can_build_shared" = "no" && enable_shared=no
 
8944
 
 
8945
# On AIX, shared libraries and static libraries use the same namespace, and
 
8946
# are all built from PIC.
 
8947
case "$host_os" in
 
8948
aix3*)
 
8949
  test "$enable_shared" = yes && enable_static=no
 
8950
  if test -n "$RANLIB"; then
 
8951
    archive_cmds="$archive_cmds~\$RANLIB \$lib"
 
8952
    postinstall_cmds='$RANLIB $lib'
 
8953
  fi
 
8954
  ;;
 
8955
 
 
8956
aix4* | aix5*)
 
8957
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
 
8958
    test "$enable_shared" = yes && enable_static=no
 
8959
  fi
 
8960
  ;;
 
8961
  darwin* | rhapsody*)
 
8962
  if test "$GCC" = yes; then
 
8963
    archive_cmds_need_lc=no
 
8964
    case "$host_os" in
 
8965
    rhapsody* | darwin1.[012])
 
8966
      allow_undefined_flag='-undefined suppress'
 
8967
      ;;
 
8968
    *) # Darwin 1.3 on
 
8969
      if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
8970
        allow_undefined_flag='-flat_namespace -undefined suppress'
 
8971
      else
 
8972
        case ${MACOSX_DEPLOYMENT_TARGET} in
 
8973
          10.[012])
 
8974
            allow_undefined_flag='-flat_namespace -undefined suppress'
 
8975
            ;;
 
8976
          10.*)
 
8977
            allow_undefined_flag='-undefined dynamic_lookup'
 
8978
            ;;
 
8979
        esac
 
8980
      fi
 
8981
      ;;
 
8982
    esac
 
8983
    output_verbose_link_cmd='echo'
 
8984
    archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
 
8985
    module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
8986
    # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
 
8987
    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}'
 
8988
    module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
8989
    hardcode_direct=no
 
8990
    hardcode_automatic=yes
 
8991
    hardcode_shlibpath_var=unsupported
 
8992
    whole_archive_flag_spec='-all_load $convenience'
 
8993
    link_all_deplibs=yes
 
8994
  else
 
8995
    ld_shlibs=no
 
8996
  fi
 
8997
    ;;
 
8998
esac
 
8999
echo "$as_me:$LINENO: result: $enable_shared" >&5
 
9000
echo "${ECHO_T}$enable_shared" >&6
 
9001
 
 
9002
echo "$as_me:$LINENO: checking whether to build static libraries" >&5
 
9003
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
 
9004
# Make sure either enable_shared or enable_static is yes.
 
9005
test "$enable_shared" = yes || enable_static=yes
 
9006
echo "$as_me:$LINENO: result: $enable_static" >&5
 
9007
echo "${ECHO_T}$enable_static" >&6
 
9008
 
 
9009
# The else clause should only fire when bootstrapping the
 
9010
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
9011
# with your package, and you will get complaints that there are
 
9012
# no rules to generate ltmain.sh.
 
9013
if test -f "$ltmain"; then
 
9014
  # See if we are running on zsh, and set the options which allow our commands through
 
9015
  # without removal of \ escapes.
 
9016
  if test -n "${ZSH_VERSION+set}" ; then
 
9017
    setopt NO_GLOB_SUBST
 
9018
  fi
 
9019
  # Now quote all the things that may contain metacharacters while being
 
9020
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
9021
  # variables and quote the copies for generation of the libtool script.
 
9022
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
 
9023
    SED SHELL STRIP \
 
9024
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
9025
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
9026
    deplibs_check_method reload_flag reload_cmds need_locks \
 
9027
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
9028
    lt_cv_sys_global_symbol_to_c_name_address \
 
9029
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
9030
    old_postinstall_cmds old_postuninstall_cmds \
 
9031
    compiler \
 
9032
    CC \
 
9033
    LD \
 
9034
    lt_prog_compiler_wl \
 
9035
    lt_prog_compiler_pic \
 
9036
    lt_prog_compiler_static \
 
9037
    lt_prog_compiler_no_builtin_flag \
 
9038
    export_dynamic_flag_spec \
 
9039
    thread_safe_flag_spec \
 
9040
    whole_archive_flag_spec \
 
9041
    enable_shared_with_static_runtimes \
 
9042
    old_archive_cmds \
 
9043
    old_archive_from_new_cmds \
 
9044
    predep_objects \
 
9045
    postdep_objects \
 
9046
    predeps \
 
9047
    postdeps \
 
9048
    compiler_lib_search_path \
 
9049
    archive_cmds \
 
9050
    archive_expsym_cmds \
 
9051
    postinstall_cmds \
 
9052
    postuninstall_cmds \
 
9053
    old_archive_from_expsyms_cmds \
 
9054
    allow_undefined_flag \
 
9055
    no_undefined_flag \
 
9056
    export_symbols_cmds \
 
9057
    hardcode_libdir_flag_spec \
 
9058
    hardcode_libdir_flag_spec_ld \
 
9059
    hardcode_libdir_separator \
 
9060
    hardcode_automatic \
 
9061
    module_cmds \
 
9062
    module_expsym_cmds \
 
9063
    lt_cv_prog_compiler_c_o \
 
9064
    exclude_expsyms \
 
9065
    include_expsyms; do
 
9066
 
 
9067
    case $var in
 
9068
    old_archive_cmds | \
 
9069
    old_archive_from_new_cmds | \
 
9070
    archive_cmds | \
 
9071
    archive_expsym_cmds | \
 
9072
    module_cmds | \
 
9073
    module_expsym_cmds | \
 
9074
    old_archive_from_expsyms_cmds | \
 
9075
    export_symbols_cmds | \
 
9076
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
9077
    postinstall_cmds | postuninstall_cmds | \
 
9078
    old_postinstall_cmds | old_postuninstall_cmds | \
 
9079
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
9080
      # Double-quote double-evaled strings.
 
9081
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
9082
      ;;
 
9083
    *)
 
9084
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
9085
      ;;
 
9086
    esac
 
9087
  done
 
9088
 
 
9089
  case $lt_echo in
 
9090
  *'\$0 --fallback-echo"')
 
9091
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
 
9092
    ;;
 
9093
  esac
 
9094
 
 
9095
cfgfile="${ofile}T"
 
9096
  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
 
9097
  $rm -f "$cfgfile"
 
9098
  { echo "$as_me:$LINENO: creating $ofile" >&5
 
9099
echo "$as_me: creating $ofile" >&6;}
 
9100
 
 
9101
  cat <<__EOF__ >> "$cfgfile"
 
9102
#! $SHELL
 
9103
 
 
9104
# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
 
9105
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
 
9106
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
 
9107
#
 
9108
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
 
9109
# Free Software Foundation, Inc.
 
9110
#
 
9111
# This file is part of GNU Libtool:
 
9112
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
 
9113
#
 
9114
# This program is free software; you can redistribute it and/or modify
 
9115
# it under the terms of the GNU General Public License as published by
 
9116
# the Free Software Foundation; either version 2 of the License, or
 
9117
# (at your option) any later version.
 
9118
#
 
9119
# This program is distributed in the hope that it will be useful, but
 
9120
# WITHOUT ANY WARRANTY; without even the implied warranty of
 
9121
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 
9122
# General Public License for more details.
 
9123
#
 
9124
# You should have received a copy of the GNU General Public License
 
9125
# along with this program; if not, write to the Free Software
 
9126
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 
9127
#
 
9128
# As a special exception to the GNU General Public License, if you
 
9129
# distribute this file as part of a program that contains a
 
9130
# configuration script generated by Autoconf, you may include it under
 
9131
# the same distribution terms that you use for the rest of that program.
 
9132
 
 
9133
# A sed program that does not truncate output.
 
9134
SED=$lt_SED
 
9135
 
 
9136
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
 
9137
Xsed="$SED -e s/^X//"
 
9138
 
 
9139
# The HP-UX ksh and POSIX shell print the target directory to stdout
 
9140
# if CDPATH is set.
 
9141
if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
 
9142
 
 
9143
# The names of the tagged configurations supported by this script.
 
9144
available_tags=
 
9145
 
 
9146
# ### BEGIN LIBTOOL CONFIG
 
9147
 
 
9148
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
9149
 
 
9150
# Shell to use when invoking shell scripts.
 
9151
SHELL=$lt_SHELL
 
9152
 
 
9153
# Whether or not to build shared libraries.
 
9154
build_libtool_libs=$enable_shared
 
9155
 
 
9156
# Whether or not to build static libraries.
 
9157
build_old_libs=$enable_static
 
9158
 
 
9159
# Whether or not to add -lc for building shared libraries.
 
9160
build_libtool_need_lc=$archive_cmds_need_lc
 
9161
 
 
9162
# Whether or not to disallow shared libs when runtime libs are static
 
9163
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
 
9164
 
 
9165
# Whether or not to optimize for fast installation.
 
9166
fast_install=$enable_fast_install
 
9167
 
 
9168
# The host system.
 
9169
host_alias=$host_alias
 
9170
host=$host
 
9171
 
 
9172
# An echo program that does not interpret backslashes.
 
9173
echo=$lt_echo
 
9174
 
 
9175
# The archiver.
 
9176
AR=$lt_AR
 
9177
AR_FLAGS=$lt_AR_FLAGS
 
9178
 
 
9179
# A C compiler.
 
9180
LTCC=$lt_LTCC
 
9181
 
 
9182
# A language-specific compiler.
 
9183
CC=$lt_compiler
 
9184
 
 
9185
# Is the compiler the GNU C compiler?
 
9186
with_gcc=$GCC
 
9187
 
 
9188
# An ERE matcher.
 
9189
EGREP=$lt_EGREP
 
9190
 
 
9191
# The linker used to build libraries.
 
9192
LD=$lt_LD
 
9193
 
 
9194
# Whether we need hard or soft links.
 
9195
LN_S=$lt_LN_S
 
9196
 
 
9197
# A BSD-compatible nm program.
 
9198
NM=$lt_NM
 
9199
 
 
9200
# A symbol stripping program
 
9201
STRIP=$lt_STRIP
 
9202
 
 
9203
# Used to examine libraries when file_magic_cmd begins "file"
 
9204
MAGIC_CMD=$MAGIC_CMD
 
9205
 
 
9206
# Used on cygwin: DLL creation program.
 
9207
DLLTOOL="$DLLTOOL"
 
9208
 
 
9209
# Used on cygwin: object dumper.
 
9210
OBJDUMP="$OBJDUMP"
 
9211
 
 
9212
# Used on cygwin: assembler.
 
9213
AS="$AS"
 
9214
 
 
9215
# The name of the directory that contains temporary libtool files.
 
9216
objdir=$objdir
 
9217
 
 
9218
# How to create reloadable object files.
 
9219
reload_flag=$lt_reload_flag
 
9220
reload_cmds=$lt_reload_cmds
 
9221
 
 
9222
# How to pass a linker flag through the compiler.
 
9223
wl=$lt_lt_prog_compiler_wl
 
9224
 
 
9225
# Object file suffix (normally "o").
 
9226
objext="$ac_objext"
 
9227
 
 
9228
# Old archive suffix (normally "a").
 
9229
libext="$libext"
 
9230
 
 
9231
# Shared library suffix (normally ".so").
 
9232
shrext_cmds='$shrext_cmds'
 
9233
 
 
9234
# Executable file suffix (normally "").
 
9235
exeext="$exeext"
 
9236
 
 
9237
# Additional compiler flags for building library objects.
 
9238
pic_flag=$lt_lt_prog_compiler_pic
 
9239
pic_mode=$pic_mode
 
9240
 
 
9241
# What is the maximum length of a command?
 
9242
max_cmd_len=$lt_cv_sys_max_cmd_len
 
9243
 
 
9244
# Does compiler simultaneously support -c and -o options?
 
9245
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
 
9246
 
 
9247
# Must we lock files when doing compilation ?
 
9248
need_locks=$lt_need_locks
 
9249
 
 
9250
# Do we need the lib prefix for modules?
 
9251
need_lib_prefix=$need_lib_prefix
 
9252
 
 
9253
# Do we need a version for libraries?
 
9254
need_version=$need_version
 
9255
 
 
9256
# Whether dlopen is supported.
 
9257
dlopen_support=$enable_dlopen
 
9258
 
 
9259
# Whether dlopen of programs is supported.
 
9260
dlopen_self=$enable_dlopen_self
 
9261
 
 
9262
# Whether dlopen of statically linked programs is supported.
 
9263
dlopen_self_static=$enable_dlopen_self_static
 
9264
 
 
9265
# Compiler flag to prevent dynamic linking.
 
9266
link_static_flag=$lt_lt_prog_compiler_static
 
9267
 
 
9268
# Compiler flag to turn off builtin functions.
 
9269
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
 
9270
 
 
9271
# Compiler flag to allow reflexive dlopens.
 
9272
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
 
9273
 
 
9274
# Compiler flag to generate shared objects directly from archives.
 
9275
whole_archive_flag_spec=$lt_whole_archive_flag_spec
 
9276
 
 
9277
# Compiler flag to generate thread-safe objects.
 
9278
thread_safe_flag_spec=$lt_thread_safe_flag_spec
 
9279
 
 
9280
# Library versioning type.
 
9281
version_type=$version_type
 
9282
 
 
9283
# Format of library name prefix.
 
9284
libname_spec=$lt_libname_spec
 
9285
 
 
9286
# List of archive names.  First name is the real one, the rest are links.
 
9287
# The last name is the one that the linker finds with -lNAME.
 
9288
library_names_spec=$lt_library_names_spec
 
9289
 
 
9290
# The coded name of the library, if different from the real name.
 
9291
soname_spec=$lt_soname_spec
 
9292
 
 
9293
# Commands used to build and install an old-style archive.
 
9294
RANLIB=$lt_RANLIB
 
9295
old_archive_cmds=$lt_old_archive_cmds
 
9296
old_postinstall_cmds=$lt_old_postinstall_cmds
 
9297
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
9298
 
 
9299
# Create an old-style archive from a shared archive.
 
9300
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
 
9301
 
 
9302
# Create a temporary old-style archive to link instead of a shared archive.
 
9303
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
 
9304
 
 
9305
# Commands used to build and install a shared archive.
 
9306
archive_cmds=$lt_archive_cmds
 
9307
archive_expsym_cmds=$lt_archive_expsym_cmds
 
9308
postinstall_cmds=$lt_postinstall_cmds
 
9309
postuninstall_cmds=$lt_postuninstall_cmds
 
9310
 
 
9311
# Commands used to build a loadable module (assumed same as above if empty)
 
9312
module_cmds=$lt_module_cmds
 
9313
module_expsym_cmds=$lt_module_expsym_cmds
 
9314
 
 
9315
# Commands to strip libraries.
 
9316
old_striplib=$lt_old_striplib
 
9317
striplib=$lt_striplib
 
9318
 
 
9319
# Dependencies to place before the objects being linked to create a
 
9320
# shared library.
 
9321
predep_objects=$lt_predep_objects
 
9322
 
 
9323
# Dependencies to place after the objects being linked to create a
 
9324
# shared library.
 
9325
postdep_objects=$lt_postdep_objects
 
9326
 
 
9327
# Dependencies to place before the objects being linked to create a
 
9328
# shared library.
 
9329
predeps=$lt_predeps
 
9330
 
 
9331
# Dependencies to place after the objects being linked to create a
 
9332
# shared library.
 
9333
postdeps=$lt_postdeps
 
9334
 
 
9335
# The library search path used internally by the compiler when linking
 
9336
# a shared library.
 
9337
compiler_lib_search_path=$lt_compiler_lib_search_path
 
9338
 
 
9339
# Method to check whether dependent libraries are shared objects.
 
9340
deplibs_check_method=$lt_deplibs_check_method
 
9341
 
 
9342
# Command to use when deplibs_check_method == file_magic.
 
9343
file_magic_cmd=$lt_file_magic_cmd
 
9344
 
 
9345
# Flag that allows shared libraries with undefined symbols to be built.
 
9346
allow_undefined_flag=$lt_allow_undefined_flag
 
9347
 
 
9348
# Flag that forces no undefined symbols.
 
9349
no_undefined_flag=$lt_no_undefined_flag
 
9350
 
 
9351
# Commands used to finish a libtool library installation in a directory.
 
9352
finish_cmds=$lt_finish_cmds
 
9353
 
 
9354
# Same as above, but a single script fragment to be evaled but not shown.
 
9355
finish_eval=$lt_finish_eval
 
9356
 
 
9357
# Take the output of nm and produce a listing of raw symbols and C names.
 
9358
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
9359
 
 
9360
# Transform the output of nm in a proper C declaration
 
9361
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
9362
 
 
9363
# Transform the output of nm in a C name address pair
 
9364
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
9365
 
 
9366
# This is the shared library runtime path variable.
 
9367
runpath_var=$runpath_var
 
9368
 
 
9369
# This is the shared library path variable.
 
9370
shlibpath_var=$shlibpath_var
 
9371
 
 
9372
# Is shlibpath searched before the hard-coded library search path?
 
9373
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
9374
 
 
9375
# How to hardcode a shared library path into an executable.
 
9376
hardcode_action=$hardcode_action
 
9377
 
 
9378
# Whether we should hardcode library paths into libraries.
 
9379
hardcode_into_libs=$hardcode_into_libs
 
9380
 
 
9381
# Flag to hardcode \$libdir into a binary during linking.
 
9382
# This must work even if \$libdir does not exist.
 
9383
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
 
9384
 
 
9385
# If ld is used when linking, flag to hardcode \$libdir into
 
9386
# a binary during linking. This must work even if \$libdir does
 
9387
# not exist.
 
9388
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
 
9389
 
 
9390
# Whether we need a single -rpath flag with a separated argument.
 
9391
hardcode_libdir_separator=$lt_hardcode_libdir_separator
 
9392
 
 
9393
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
 
9394
# resulting binary.
 
9395
hardcode_direct=$hardcode_direct
 
9396
 
 
9397
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
9398
# resulting binary.
 
9399
hardcode_minus_L=$hardcode_minus_L
 
9400
 
 
9401
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
9402
# the resulting binary.
 
9403
hardcode_shlibpath_var=$hardcode_shlibpath_var
 
9404
 
 
9405
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
9406
# and all subsequent libraries and executables linked against it.
 
9407
hardcode_automatic=$hardcode_automatic
 
9408
 
 
9409
# Variables whose values should be saved in libtool wrapper scripts and
 
9410
# restored at relink time.
 
9411
variables_saved_for_relink="$variables_saved_for_relink"
 
9412
 
 
9413
# Whether libtool must link a program against all its dependency libraries.
 
9414
link_all_deplibs=$link_all_deplibs
 
9415
 
 
9416
# Compile-time system search path for libraries
 
9417
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
9418
 
 
9419
# Run-time system search path for libraries
 
9420
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
9421
 
 
9422
# Fix the shell variable \$srcfile for the compiler.
 
9423
fix_srcfile_path="$fix_srcfile_path"
 
9424
 
 
9425
# Set to yes if exported symbols are required.
 
9426
always_export_symbols=$always_export_symbols
 
9427
 
 
9428
# The commands to list exported symbols.
 
9429
export_symbols_cmds=$lt_export_symbols_cmds
 
9430
 
 
9431
# The commands to extract the exported symbol list from a shared archive.
 
9432
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
9433
 
 
9434
# Symbols that should not be listed in the preloaded symbols.
 
9435
exclude_expsyms=$lt_exclude_expsyms
 
9436
 
 
9437
# Symbols that must always be exported.
 
9438
include_expsyms=$lt_include_expsyms
 
9439
 
 
9440
# ### END LIBTOOL CONFIG
 
9441
 
 
9442
__EOF__
 
9443
 
 
9444
 
 
9445
  case $host_os in
 
9446
  aix3*)
 
9447
    cat <<\EOF >> "$cfgfile"
 
9448
 
 
9449
# AIX sometimes has problems with the GCC collect2 program.  For some
 
9450
# reason, if we set the COLLECT_NAMES environment variable, the problems
 
9451
# vanish in a puff of smoke.
 
9452
if test "X${COLLECT_NAMES+set}" != Xset; then
 
9453
  COLLECT_NAMES=
 
9454
  export COLLECT_NAMES
 
9455
fi
 
9456
EOF
 
9457
    ;;
 
9458
  esac
 
9459
 
 
9460
  # We use sed instead of cat because bash on DJGPP gets confused if
 
9461
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
 
9462
  # text mode, it properly converts lines to CR/LF.  This bash problem
 
9463
  # is reportedly fixed, but why not run on old versions too?
 
9464
  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
 
9465
 
 
9466
  mv -f "$cfgfile" "$ofile" || \
 
9467
    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
 
9468
  chmod +x "$ofile"
 
9469
 
 
9470
else
 
9471
  # If there is no Makefile yet, we rely on a make rule to execute
 
9472
  # `config.status --recheck' to rerun these tests and create the
 
9473
  # libtool script then.
 
9474
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
 
9475
  if test -f "$ltmain_in"; then
 
9476
    test -f Makefile && make "$ltmain"
 
9477
  fi
 
9478
fi
 
9479
 
 
9480
 
 
9481
ac_ext=c
 
9482
ac_cpp='$CPP $CPPFLAGS'
 
9483
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
9484
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
9485
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
9486
 
 
9487
CC="$lt_save_CC"
 
9488
 
 
9489
 
 
9490
# Check whether --with-tags or --without-tags was given.
 
9491
if test "${with_tags+set}" = set; then
 
9492
  withval="$with_tags"
 
9493
  tagnames="$withval"
 
9494
fi;
 
9495
 
 
9496
if test -f "$ltmain" && test -n "$tagnames"; then
 
9497
  if test ! -f "${ofile}"; then
 
9498
    { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
 
9499
echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
 
9500
  fi
 
9501
 
 
9502
  if test -z "$LTCC"; then
 
9503
    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
 
9504
    if test -z "$LTCC"; then
 
9505
      { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
 
9506
echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
 
9507
    else
 
9508
      { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
 
9509
echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
 
9510
    fi
 
9511
  fi
 
9512
 
 
9513
  # Extract list of available tagged configurations in $ofile.
 
9514
  # Note that this assumes the entire list is on one line.
 
9515
  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
 
9516
 
 
9517
  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
9518
  for tagname in $tagnames; do
 
9519
    IFS="$lt_save_ifs"
 
9520
    # Check whether tagname contains only valid characters
 
9521
    case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
 
9522
    "") ;;
 
9523
    *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
 
9524
echo "$as_me: error: invalid tag name: $tagname" >&2;}
 
9525
   { (exit 1); exit 1; }; }
 
9526
        ;;
 
9527
    esac
 
9528
 
 
9529
    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
 
9530
    then
 
9531
      { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
 
9532
echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
 
9533
   { (exit 1); exit 1; }; }
 
9534
    fi
 
9535
 
 
9536
    # Update the list of available tags.
 
9537
    if test -n "$tagname"; then
 
9538
      echo appending configuration tag \"$tagname\" to $ofile
 
9539
 
 
9540
      case $tagname in
 
9541
      CXX)
 
9542
        if test -n "$CXX" && test "X$CXX" != "Xno"; then
 
9543
          ac_ext=cc
 
9544
ac_cpp='$CXXCPP $CPPFLAGS'
 
9545
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
9546
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
9547
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
9548
 
 
9549
 
 
9550
 
 
9551
 
 
9552
archive_cmds_need_lc_CXX=no
 
9553
allow_undefined_flag_CXX=
 
9554
always_export_symbols_CXX=no
 
9555
archive_expsym_cmds_CXX=
 
9556
export_dynamic_flag_spec_CXX=
 
9557
hardcode_direct_CXX=no
 
9558
hardcode_libdir_flag_spec_CXX=
 
9559
hardcode_libdir_flag_spec_ld_CXX=
 
9560
hardcode_libdir_separator_CXX=
 
9561
hardcode_minus_L_CXX=no
 
9562
hardcode_automatic_CXX=no
 
9563
module_cmds_CXX=
 
9564
module_expsym_cmds_CXX=
 
9565
link_all_deplibs_CXX=unknown
 
9566
old_archive_cmds_CXX=$old_archive_cmds
 
9567
no_undefined_flag_CXX=
 
9568
whole_archive_flag_spec_CXX=
 
9569
enable_shared_with_static_runtimes_CXX=no
 
9570
 
 
9571
# Dependencies to place before and after the object being linked:
 
9572
predep_objects_CXX=
 
9573
postdep_objects_CXX=
 
9574
predeps_CXX=
 
9575
postdeps_CXX=
 
9576
compiler_lib_search_path_CXX=
 
9577
 
 
9578
# Source file extension for C++ test sources.
 
9579
ac_ext=cc
 
9580
 
 
9581
# Object file extension for compiled C++ test sources.
 
9582
objext=o
 
9583
objext_CXX=$objext
 
9584
 
 
9585
# Code to be used in simple compile tests
 
9586
lt_simple_compile_test_code="int some_variable = 0;\n"
 
9587
 
 
9588
# Code to be used in simple link tests
 
9589
lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
 
9590
 
 
9591
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
9592
 
 
9593
# If no C compiler was specified, use CC.
 
9594
LTCC=${LTCC-"$CC"}
 
9595
 
 
9596
# Allow CC to be a program name with arguments.
 
9597
compiler=$CC
 
9598
 
 
9599
 
 
9600
# Allow CC to be a program name with arguments.
 
9601
lt_save_CC=$CC
 
9602
lt_save_LD=$LD
 
9603
lt_save_GCC=$GCC
 
9604
GCC=$GXX
 
9605
lt_save_with_gnu_ld=$with_gnu_ld
 
9606
lt_save_path_LD=$lt_cv_path_LD
 
9607
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
 
9608
  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
 
9609
else
 
9610
  unset lt_cv_prog_gnu_ld
 
9611
fi
 
9612
if test -n "${lt_cv_path_LDCXX+set}"; then
 
9613
  lt_cv_path_LD=$lt_cv_path_LDCXX
 
9614
else
 
9615
  unset lt_cv_path_LD
 
9616
fi
 
9617
test -z "${LDCXX+set}" || LD=$LDCXX
 
9618
CC=${CXX-"c++"}
 
9619
compiler=$CC
 
9620
compiler_CXX=$CC
 
9621
cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
 
9622
 
 
9623
# We don't want -fno-exception wen compiling C++ code, so set the
 
9624
# no_builtin_flag separately
 
9625
if test "$GXX" = yes; then
 
9626
  lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
 
9627
else
 
9628
  lt_prog_compiler_no_builtin_flag_CXX=
 
9629
fi
 
9630
 
 
9631
if test "$GXX" = yes; then
 
9632
  # Set up default GNU C++ configuration
 
9633
 
 
9634
 
 
9635
# Check whether --with-gnu-ld or --without-gnu-ld was given.
 
9636
if test "${with_gnu_ld+set}" = set; then
 
9637
  withval="$with_gnu_ld"
 
9638
  test "$withval" = no || with_gnu_ld=yes
 
9639
else
 
9640
  with_gnu_ld=no
 
9641
fi;
 
9642
ac_prog=ld
 
9643
if test "$GCC" = yes; then
 
9644
  # Check if gcc -print-prog-name=ld gives a path.
 
9645
  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
 
9646
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
 
9647
  case $host in
 
9648
  *-*-mingw*)
 
9649
    # gcc leaves a trailing carriage return which upsets mingw
 
9650
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
 
9651
  *)
 
9652
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
 
9653
  esac
 
9654
  case $ac_prog in
 
9655
    # Accept absolute paths.
 
9656
    [\\/]* | ?:[\\/]*)
 
9657
      re_direlt='/[^/][^/]*/\.\./'
 
9658
      # Canonicalize the pathname of ld
 
9659
      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
 
9660
      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
 
9661
        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
 
9662
      done
 
9663
      test -z "$LD" && LD="$ac_prog"
 
9664
      ;;
 
9665
  "")
 
9666
    # If it fails, then pretend we aren't using GCC.
 
9667
    ac_prog=ld
 
9668
    ;;
 
9669
  *)
 
9670
    # If it is relative, then search for the first ld in PATH.
 
9671
    with_gnu_ld=unknown
 
9672
    ;;
 
9673
  esac
 
9674
elif test "$with_gnu_ld" = yes; then
 
9675
  echo "$as_me:$LINENO: checking for GNU ld" >&5
 
9676
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
 
9677
else
 
9678
  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
 
9679
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
 
9680
fi
 
9681
if test "${lt_cv_path_LD+set}" = set; then
 
9682
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9683
else
 
9684
  if test -z "$LD"; then
 
9685
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
9686
  for ac_dir in $PATH; do
 
9687
    IFS="$lt_save_ifs"
 
9688
    test -z "$ac_dir" && ac_dir=.
 
9689
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
 
9690
      lt_cv_path_LD="$ac_dir/$ac_prog"
 
9691
      # Check to see if the program is GNU ld.  I'd rather use --version,
 
9692
      # but apparently some GNU ld's only accept -v.
 
9693
      # Break only if it was the GNU/non-GNU ld that we prefer.
 
9694
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
 
9695
      *GNU* | *'with BFD'*)
 
9696
        test "$with_gnu_ld" != no && break
 
9697
        ;;
 
9698
      *)
 
9699
        test "$with_gnu_ld" != yes && break
 
9700
        ;;
 
9701
      esac
 
9702
    fi
 
9703
  done
 
9704
  IFS="$lt_save_ifs"
 
9705
else
 
9706
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
 
9707
fi
 
9708
fi
 
9709
 
 
9710
LD="$lt_cv_path_LD"
 
9711
if test -n "$LD"; then
 
9712
  echo "$as_me:$LINENO: result: $LD" >&5
 
9713
echo "${ECHO_T}$LD" >&6
 
9714
else
 
9715
  echo "$as_me:$LINENO: result: no" >&5
 
9716
echo "${ECHO_T}no" >&6
 
9717
fi
 
9718
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
 
9719
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
 
9720
   { (exit 1); exit 1; }; }
 
9721
echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
 
9722
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
 
9723
if test "${lt_cv_prog_gnu_ld+set}" = set; then
 
9724
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9725
else
 
9726
  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
 
9727
case `$LD -v 2>&1 </dev/null` in
 
9728
*GNU* | *'with BFD'*)
 
9729
  lt_cv_prog_gnu_ld=yes
 
9730
  ;;
 
9731
*)
 
9732
  lt_cv_prog_gnu_ld=no
 
9733
  ;;
 
9734
esac
 
9735
fi
 
9736
echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
 
9737
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
 
9738
with_gnu_ld=$lt_cv_prog_gnu_ld
 
9739
 
 
9740
 
 
9741
 
 
9742
  # Check if GNU C++ uses GNU ld as the underlying linker, since the
 
9743
  # archiving commands below assume that GNU ld is being used.
 
9744
  if test "$with_gnu_ld" = yes; then
 
9745
    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
9746
    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'
 
9747
 
 
9748
    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
 
9749
    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
9750
 
 
9751
    # If archive_cmds runs LD, not CC, wlarc should be empty
 
9752
    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
 
9753
    #     investigate it a little bit more. (MM)
 
9754
    wlarc='${wl}'
 
9755
 
 
9756
    # ancient GNU ld didn't support --whole-archive et. al.
 
9757
    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
 
9758
        grep 'no-whole-archive' > /dev/null; then
 
9759
      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
9760
    else
 
9761
      whole_archive_flag_spec_CXX=
 
9762
    fi
 
9763
  else
 
9764
    with_gnu_ld=no
 
9765
    wlarc=
 
9766
 
 
9767
    # A generic and very simple default shared library creation
 
9768
    # command for GNU C++ for the case where it uses the native
 
9769
    # linker, instead of GNU ld.  If possible, this setting should
 
9770
    # overridden to take advantage of the native linker features on
 
9771
    # the platform it is being used on.
 
9772
    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
 
9773
  fi
 
9774
 
 
9775
  # Commands to make compiler produce verbose output that lists
 
9776
  # what "hidden" libraries, object files and flags are used when
 
9777
  # linking a shared library.
 
9778
  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
 
9779
 
 
9780
else
 
9781
  GXX=no
 
9782
  with_gnu_ld=no
 
9783
  wlarc=
 
9784
fi
 
9785
 
 
9786
# PORTME: fill in a description of your system's C++ link characteristics
 
9787
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
9788
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
 
9789
ld_shlibs_CXX=yes
 
9790
case $host_os in
 
9791
  aix3*)
 
9792
    # FIXME: insert proper C++ library support
 
9793
    ld_shlibs_CXX=no
 
9794
    ;;
 
9795
  aix4* | aix5*)
 
9796
    if test "$host_cpu" = ia64; then
 
9797
      # On IA64, the linker does run time linking by default, so we don't
 
9798
      # have to do anything special.
 
9799
      aix_use_runtimelinking=no
 
9800
      exp_sym_flag='-Bexport'
 
9801
      no_entry_flag=""
 
9802
    else
 
9803
      aix_use_runtimelinking=no
 
9804
 
 
9805
      # Test if we are trying to use run time linking or normal
 
9806
      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
9807
      # need to do runtime linking.
 
9808
      case $host_os in aix4.[23]|aix4.[23].*|aix5*)
 
9809
        for ld_flag in $LDFLAGS; do
 
9810
          case $ld_flag in
 
9811
          *-brtl*)
 
9812
            aix_use_runtimelinking=yes
 
9813
            break
 
9814
            ;;
 
9815
          esac
 
9816
        done
 
9817
      esac
 
9818
 
 
9819
      exp_sym_flag='-bexport'
 
9820
      no_entry_flag='-bnoentry'
 
9821
    fi
 
9822
 
 
9823
    # When large executables or shared objects are built, AIX ld can
 
9824
    # have problems creating the table of contents.  If linking a library
 
9825
    # or program results in "error TOC overflow" add -mminimal-toc to
 
9826
    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
9827
    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
9828
 
 
9829
    archive_cmds_CXX=''
 
9830
    hardcode_direct_CXX=yes
 
9831
    hardcode_libdir_separator_CXX=':'
 
9832
    link_all_deplibs_CXX=yes
 
9833
 
 
9834
    if test "$GXX" = yes; then
 
9835
      case $host_os in aix4.012|aix4.012.*)
 
9836
      # We only want to do this on AIX 4.2 and lower, the check
 
9837
      # below for broken collect2 doesn't work under 4.3+
 
9838
        collect2name=`${CC} -print-prog-name=collect2`
 
9839
        if test -f "$collect2name" && \
 
9840
           strings "$collect2name" | grep resolve_lib_name >/dev/null
 
9841
        then
 
9842
          # We have reworked collect2
 
9843
          hardcode_direct_CXX=yes
 
9844
        else
 
9845
          # We have old collect2
 
9846
          hardcode_direct_CXX=unsupported
 
9847
          # It fails to find uninstalled libraries when the uninstalled
 
9848
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
9849
          # to unsupported forces relinking
 
9850
          hardcode_minus_L_CXX=yes
 
9851
          hardcode_libdir_flag_spec_CXX='-L$libdir'
 
9852
          hardcode_libdir_separator_CXX=
 
9853
        fi
 
9854
      esac
 
9855
      shared_flag='-shared'
 
9856
    else
 
9857
      # not using gcc
 
9858
      if test "$host_cpu" = ia64; then
 
9859
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
9860
        # chokes on -Wl,-G. The following line is correct:
 
9861
        shared_flag='-G'
 
9862
      else
 
9863
        if test "$aix_use_runtimelinking" = yes; then
 
9864
          shared_flag='${wl}-G'
 
9865
        else
 
9866
          shared_flag='${wl}-bM:SRE'
 
9867
        fi
 
9868
      fi
 
9869
    fi
 
9870
 
 
9871
    # It seems that -bexpall does not export symbols beginning with
 
9872
    # underscore (_), so it is better to generate a list of symbols to export.
 
9873
    always_export_symbols_CXX=yes
 
9874
    if test "$aix_use_runtimelinking" = yes; then
 
9875
      # Warning - without using the other runtime loading flags (-brtl),
 
9876
      # -berok will link without error, but may produce a broken library.
 
9877
      allow_undefined_flag_CXX='-berok'
 
9878
      # Determine the default libpath from the value encoded in an empty executable.
 
9879
      cat >conftest.$ac_ext <<_ACEOF
 
9880
/* confdefs.h.  */
 
9881
_ACEOF
 
9882
cat confdefs.h >>conftest.$ac_ext
 
9883
cat >>conftest.$ac_ext <<_ACEOF
 
9884
/* end confdefs.h.  */
 
9885
 
 
9886
int
 
9887
main ()
 
9888
{
 
9889
 
 
9890
  ;
 
9891
  return 0;
 
9892
}
 
9893
_ACEOF
 
9894
rm -f conftest.$ac_objext conftest$ac_exeext
 
9895
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
9896
  (eval $ac_link) 2>conftest.er1
 
9897
  ac_status=$?
 
9898
  grep -v '^ *+' conftest.er1 >conftest.err
 
9899
  rm -f conftest.er1
 
9900
  cat conftest.err >&5
 
9901
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9902
  (exit $ac_status); } &&
 
9903
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
9904
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9905
  (eval $ac_try) 2>&5
 
9906
  ac_status=$?
 
9907
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9908
  (exit $ac_status); }; } &&
 
9909
         { ac_try='test -s conftest$ac_exeext'
 
9910
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9911
  (eval $ac_try) 2>&5
 
9912
  ac_status=$?
 
9913
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9914
  (exit $ac_status); }; }; then
 
9915
 
 
9916
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
9917
}'`
 
9918
# Check for a 64-bit object if we didn't find anything.
 
9919
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; }
 
9920
}'`; fi
 
9921
else
 
9922
  echo "$as_me: failed program was:" >&5
 
9923
sed 's/^/| /' conftest.$ac_ext >&5
 
9924
 
 
9925
fi
 
9926
rm -f conftest.err conftest.$ac_objext \
 
9927
      conftest$ac_exeext conftest.$ac_ext
 
9928
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
9929
 
 
9930
      hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
 
9931
 
 
9932
      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"
 
9933
     else
 
9934
      if test "$host_cpu" = ia64; then
 
9935
        hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
 
9936
        allow_undefined_flag_CXX="-z nodefs"
 
9937
        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"
 
9938
      else
 
9939
        # Determine the default libpath from the value encoded in an empty executable.
 
9940
        cat >conftest.$ac_ext <<_ACEOF
 
9941
/* confdefs.h.  */
 
9942
_ACEOF
 
9943
cat confdefs.h >>conftest.$ac_ext
 
9944
cat >>conftest.$ac_ext <<_ACEOF
 
9945
/* end confdefs.h.  */
 
9946
 
 
9947
int
 
9948
main ()
 
9949
{
 
9950
 
 
9951
  ;
 
9952
  return 0;
 
9953
}
 
9954
_ACEOF
 
9955
rm -f conftest.$ac_objext conftest$ac_exeext
 
9956
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
9957
  (eval $ac_link) 2>conftest.er1
 
9958
  ac_status=$?
 
9959
  grep -v '^ *+' conftest.er1 >conftest.err
 
9960
  rm -f conftest.er1
 
9961
  cat conftest.err >&5
 
9962
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9963
  (exit $ac_status); } &&
 
9964
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
9965
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9966
  (eval $ac_try) 2>&5
 
9967
  ac_status=$?
 
9968
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9969
  (exit $ac_status); }; } &&
 
9970
         { ac_try='test -s conftest$ac_exeext'
 
9971
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9972
  (eval $ac_try) 2>&5
 
9973
  ac_status=$?
 
9974
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9975
  (exit $ac_status); }; }; then
 
9976
 
 
9977
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
9978
}'`
 
9979
# Check for a 64-bit object if we didn't find anything.
 
9980
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; }
 
9981
}'`; fi
 
9982
else
 
9983
  echo "$as_me: failed program was:" >&5
 
9984
sed 's/^/| /' conftest.$ac_ext >&5
 
9985
 
 
9986
fi
 
9987
rm -f conftest.err conftest.$ac_objext \
 
9988
      conftest$ac_exeext conftest.$ac_ext
 
9989
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
9990
 
 
9991
        hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
 
9992
        # Warning - without using the other run time loading flags,
 
9993
        # -berok will link without error, but may produce a broken library.
 
9994
        no_undefined_flag_CXX=' ${wl}-bernotok'
 
9995
        allow_undefined_flag_CXX=' ${wl}-berok'
 
9996
        # -bexpall does not export symbols beginning with underscore (_)
 
9997
        always_export_symbols_CXX=yes
 
9998
        # Exported symbols can be pulled into shared objects from archives
 
9999
        whole_archive_flag_spec_CXX=' '
 
10000
        archive_cmds_need_lc_CXX=yes
 
10001
        # This is similar to how AIX traditionally builds it's shared libraries.
 
10002
        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'
 
10003
      fi
 
10004
    fi
 
10005
    ;;
 
10006
  chorus*)
 
10007
    case $cc_basename in
 
10008
      *)
 
10009
        # FIXME: insert proper C++ library support
 
10010
        ld_shlibs_CXX=no
 
10011
        ;;
 
10012
    esac
 
10013
    ;;
 
10014
 
 
10015
  cygwin* | mingw* | pw32*)
 
10016
    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
 
10017
    # as there is no search path for DLLs.
 
10018
    hardcode_libdir_flag_spec_CXX='-L$libdir'
 
10019
    allow_undefined_flag_CXX=unsupported
 
10020
    always_export_symbols_CXX=no
 
10021
    enable_shared_with_static_runtimes_CXX=yes
 
10022
 
 
10023
    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
 
10024
      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'
 
10025
      # If the export-symbols file already is a .def file (1st line
 
10026
      # is EXPORTS), use it as is; otherwise, prepend...
 
10027
      archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
10028
        cp $export_symbols $output_objdir/$soname.def;
 
10029
      else
 
10030
        echo EXPORTS > $output_objdir/$soname.def;
 
10031
        cat $export_symbols >> $output_objdir/$soname.def;
 
10032
      fi~
 
10033
      $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'
 
10034
    else
 
10035
      ld_shlibs_CXX=no
 
10036
    fi
 
10037
  ;;
 
10038
 
 
10039
  darwin* | rhapsody*)
 
10040
  if test "$GXX" = yes; then
 
10041
    archive_cmds_need_lc_CXX=no
 
10042
    case "$host_os" in
 
10043
    rhapsody* | darwin1.[012])
 
10044
      allow_undefined_flag_CXX='-undefined suppress'
 
10045
      ;;
 
10046
    *) # Darwin 1.3 on
 
10047
      if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
10048
        allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
 
10049
      else
 
10050
        case ${MACOSX_DEPLOYMENT_TARGET} in
 
10051
          10.[012])
 
10052
            allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
 
10053
            ;;
 
10054
          10.*)
 
10055
            allow_undefined_flag_CXX='-undefined dynamic_lookup'
 
10056
            ;;
 
10057
        esac
 
10058
      fi
 
10059
      ;;
 
10060
    esac
 
10061
    lt_int_apple_cc_single_mod=no
 
10062
    output_verbose_link_cmd='echo'
 
10063
    if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
 
10064
      lt_int_apple_cc_single_mod=yes
 
10065
    fi
 
10066
    if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
10067
      archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
10068
    else
 
10069
      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'
 
10070
    fi
 
10071
    module_cmds_CXX='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
10072
 
 
10073
    # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
 
10074
    if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
10075
      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}'
 
10076
    else
 
10077
      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}'
 
10078
    fi
 
10079
    module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
10080
    hardcode_direct_CXX=no
 
10081
    hardcode_automatic_CXX=yes
 
10082
    hardcode_shlibpath_var_CXX=unsupported
 
10083
    whole_archive_flag_spec_CXX='-all_load $convenience'
 
10084
    link_all_deplibs_CXX=yes
 
10085
  else
 
10086
    ld_shlibs_CXX=no
 
10087
  fi
 
10088
    ;;
 
10089
 
 
10090
  dgux*)
 
10091
    case $cc_basename in
 
10092
      ec++)
 
10093
        # FIXME: insert proper C++ library support
 
10094
        ld_shlibs_CXX=no
 
10095
        ;;
 
10096
      ghcx)
 
10097
        # Green Hills C++ Compiler
 
10098
        # FIXME: insert proper C++ library support
 
10099
        ld_shlibs_CXX=no
 
10100
        ;;
 
10101
      *)
 
10102
        # FIXME: insert proper C++ library support
 
10103
        ld_shlibs_CXX=no
 
10104
        ;;
 
10105
    esac
 
10106
    ;;
 
10107
  freebsd12*)
 
10108
    # C++ shared libraries reported to be fairly broken before switch to ELF
 
10109
    ld_shlibs_CXX=no
 
10110
    ;;
 
10111
  freebsd-elf*)
 
10112
    archive_cmds_need_lc_CXX=no
 
10113
    ;;
 
10114
  freebsd* | kfreebsd*-gnu)
 
10115
    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
 
10116
    # conventions
 
10117
    ld_shlibs_CXX=yes
 
10118
    ;;
 
10119
  gnu*)
 
10120
    ;;
 
10121
  hpux9*)
 
10122
    hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
 
10123
    hardcode_libdir_separator_CXX=:
 
10124
    export_dynamic_flag_spec_CXX='${wl}-E'
 
10125
    hardcode_direct_CXX=yes
 
10126
    hardcode_minus_L_CXX=yes # Not in the search PATH,
 
10127
                                # but as the default
 
10128
                                # location of the library.
 
10129
 
 
10130
    case $cc_basename in
 
10131
    CC)
 
10132
      # FIXME: insert proper C++ library support
 
10133
      ld_shlibs_CXX=no
 
10134
      ;;
 
10135
    aCC)
 
10136
      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'
 
10137
      # Commands to make compiler produce verbose output that lists
 
10138
      # what "hidden" libraries, object files and flags are used when
 
10139
      # linking a shared library.
 
10140
      #
 
10141
      # There doesn't appear to be a way to prevent this compiler from
 
10142
      # explicitly linking system object files so we need to strip them
 
10143
      # from the output so that they don't get included in the library
 
10144
      # dependencies.
 
10145
      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'
 
10146
      ;;
 
10147
    *)
 
10148
      if test "$GXX" = yes; then
 
10149
        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'
 
10150
      else
 
10151
        # FIXME: insert proper C++ library support
 
10152
        ld_shlibs_CXX=no
 
10153
      fi
 
10154
      ;;
 
10155
    esac
 
10156
    ;;
 
10157
  hpux10*|hpux11*)
 
10158
    if test $with_gnu_ld = no; then
 
10159
      case "$host_cpu" in
 
10160
      hppa*64*)
 
10161
        hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
 
10162
        hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
 
10163
        hardcode_libdir_separator_CXX=:
 
10164
        ;;
 
10165
      ia64*)
 
10166
        hardcode_libdir_flag_spec_CXX='-L$libdir'
 
10167
        ;;
 
10168
      *)
 
10169
        hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
 
10170
        hardcode_libdir_separator_CXX=:
 
10171
        export_dynamic_flag_spec_CXX='${wl}-E'
 
10172
        ;;
 
10173
      esac
 
10174
    fi
 
10175
    case "$host_cpu" in
 
10176
    hppa*64*)
 
10177
      hardcode_direct_CXX=no
 
10178
      hardcode_shlibpath_var_CXX=no
 
10179
      ;;
 
10180
    ia64*)
 
10181
      hardcode_direct_CXX=no
 
10182
      hardcode_shlibpath_var_CXX=no
 
10183
      hardcode_minus_L_CXX=yes # Not in the search PATH,
 
10184
                                              # but as the default
 
10185
                                              # location of the library.
 
10186
      ;;
 
10187
    *)
 
10188
      hardcode_direct_CXX=yes
 
10189
      hardcode_minus_L_CXX=yes # Not in the search PATH,
 
10190
                                              # but as the default
 
10191
                                              # location of the library.
 
10192
      ;;
 
10193
    esac
 
10194
 
 
10195
    case $cc_basename in
 
10196
      CC)
 
10197
        # FIXME: insert proper C++ library support
 
10198
        ld_shlibs_CXX=no
 
10199
        ;;
 
10200
      aCC)
 
10201
        case "$host_cpu" in
 
10202
        hppa*64*|ia64*)
 
10203
          archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
 
10204
          ;;
 
10205
        *)
 
10206
          archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
10207
          ;;
 
10208
        esac
 
10209
        # Commands to make compiler produce verbose output that lists
 
10210
        # what "hidden" libraries, object files and flags are used when
 
10211
        # linking a shared library.
 
10212
        #
 
10213
        # There doesn't appear to be a way to prevent this compiler from
 
10214
        # explicitly linking system object files so we need to strip them
 
10215
        # from the output so that they don't get included in the library
 
10216
        # dependencies.
 
10217
        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'
 
10218
        ;;
 
10219
      *)
 
10220
        if test "$GXX" = yes; then
 
10221
          if test $with_gnu_ld = no; then
 
10222
            case "$host_cpu" in
 
10223
            ia64*|hppa*64*)
 
10224
              archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
 
10225
              ;;
 
10226
            *)
 
10227
              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'
 
10228
              ;;
 
10229
            esac
 
10230
          fi
 
10231
        else
 
10232
          # FIXME: insert proper C++ library support
 
10233
          ld_shlibs_CXX=no
 
10234
        fi
 
10235
        ;;
 
10236
    esac
 
10237
    ;;
 
10238
  irix5* | irix6*)
 
10239
    case $cc_basename in
 
10240
      CC)
 
10241
        # SGI C++
 
10242
        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'
 
10243
 
 
10244
        # Archives containing C++ object files must be created using
 
10245
        # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
 
10246
        # necessary to make sure instantiated templates are included
 
10247
        # in the archive.
 
10248
        old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
 
10249
        ;;
 
10250
      *)
 
10251
        if test "$GXX" = yes; then
 
10252
          if test "$with_gnu_ld" = no; then
 
10253
            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'
 
10254
          else
 
10255
            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'
 
10256
          fi
 
10257
        fi
 
10258
        link_all_deplibs_CXX=yes
 
10259
        ;;
 
10260
    esac
 
10261
    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
10262
    hardcode_libdir_separator_CXX=:
 
10263
    ;;
 
10264
  linux*)
 
10265
    case $cc_basename in
 
10266
      KCC)
 
10267
        # Kuck and Associates, Inc. (KAI) C++ Compiler
 
10268
 
 
10269
        # KCC will only create a shared library if the output file
 
10270
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
 
10271
        # to its proper name (with version) after linking.
 
10272
        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'
 
10273
        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'
 
10274
        # Commands to make compiler produce verbose output that lists
 
10275
        # what "hidden" libraries, object files and flags are used when
 
10276
        # linking a shared library.
 
10277
        #
 
10278
        # There doesn't appear to be a way to prevent this compiler from
 
10279
        # explicitly linking system object files so we need to strip them
 
10280
        # from the output so that they don't get included in the library
 
10281
        # dependencies.
 
10282
        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'
 
10283
 
 
10284
        hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
 
10285
        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
10286
 
 
10287
        # Archives containing C++ object files must be created using
 
10288
        # "CC -Bstatic", where "CC" is the KAI C++ compiler.
 
10289
        old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
 
10290
        ;;
 
10291
      icpc)
 
10292
        # Intel C++
 
10293
        with_gnu_ld=yes
 
10294
        archive_cmds_need_lc_CXX=no
 
10295
        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
10296
        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'
 
10297
        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
10298
        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
10299
        whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
 
10300
        ;;
 
10301
      cxx)
 
10302
        # Compaq C++
 
10303
        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
10304
        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'
 
10305
 
 
10306
        runpath_var=LD_RUN_PATH
 
10307
        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
 
10308
        hardcode_libdir_separator_CXX=:
 
10309
 
 
10310
        # Commands to make compiler produce verbose output that lists
 
10311
        # what "hidden" libraries, object files and flags are used when
 
10312
        # linking a shared library.
 
10313
        #
 
10314
        # There doesn't appear to be a way to prevent this compiler from
 
10315
        # explicitly linking system object files so we need to strip them
 
10316
        # from the output so that they don't get included in the library
 
10317
        # dependencies.
 
10318
        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'
 
10319
        ;;
 
10320
    esac
 
10321
    ;;
 
10322
  lynxos*)
 
10323
    # FIXME: insert proper C++ library support
 
10324
    ld_shlibs_CXX=no
 
10325
    ;;
 
10326
  m88k*)
 
10327
    # FIXME: insert proper C++ library support
 
10328
    ld_shlibs_CXX=no
 
10329
    ;;
 
10330
  mvs*)
 
10331
    case $cc_basename in
 
10332
      cxx)
 
10333
        # FIXME: insert proper C++ library support
 
10334
        ld_shlibs_CXX=no
 
10335
        ;;
 
10336
      *)
 
10337
        # FIXME: insert proper C++ library support
 
10338
        ld_shlibs_CXX=no
 
10339
        ;;
 
10340
    esac
 
10341
    ;;
 
10342
  netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
 
10343
    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
10344
      archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
 
10345
      wlarc=
 
10346
      hardcode_libdir_flag_spec_CXX='-R$libdir'
 
10347
      hardcode_direct_CXX=yes
 
10348
      hardcode_shlibpath_var_CXX=no
 
10349
    fi
 
10350
    # Workaround some broken pre-1.5 toolchains
 
10351
    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
 
10352
    ;;
 
10353
  osf3*)
 
10354
    case $cc_basename in
 
10355
      KCC)
 
10356
        # Kuck and Associates, Inc. (KAI) C++ Compiler
 
10357
 
 
10358
        # KCC will only create a shared library if the output file
 
10359
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
 
10360
        # to its proper name (with version) after linking.
 
10361
        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'
 
10362
 
 
10363
        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
10364
        hardcode_libdir_separator_CXX=:
 
10365
 
 
10366
        # Archives containing C++ object files must be created using
 
10367
        # "CC -Bstatic", where "CC" is the KAI C++ compiler.
 
10368
        old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
 
10369
 
 
10370
        ;;
 
10371
      RCC)
 
10372
        # Rational C++ 2.4.1
 
10373
        # FIXME: insert proper C++ library support
 
10374
        ld_shlibs_CXX=no
 
10375
        ;;
 
10376
      cxx)
 
10377
        allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
 
10378
        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'
 
10379
 
 
10380
        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
10381
        hardcode_libdir_separator_CXX=:
 
10382
 
 
10383
        # Commands to make compiler produce verbose output that lists
 
10384
        # what "hidden" libraries, object files and flags are used when
 
10385
        # linking a shared library.
 
10386
        #
 
10387
        # There doesn't appear to be a way to prevent this compiler from
 
10388
        # explicitly linking system object files so we need to strip them
 
10389
        # from the output so that they don't get included in the library
 
10390
        # dependencies.
 
10391
        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'
 
10392
        ;;
 
10393
      *)
 
10394
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
 
10395
          allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
 
10396
          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'
 
10397
 
 
10398
          hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
10399
          hardcode_libdir_separator_CXX=:
 
10400
 
 
10401
          # Commands to make compiler produce verbose output that lists
 
10402
          # what "hidden" libraries, object files and flags are used when
 
10403
          # linking a shared library.
 
10404
          output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
 
10405
 
 
10406
        else
 
10407
          # FIXME: insert proper C++ library support
 
10408
          ld_shlibs_CXX=no
 
10409
        fi
 
10410
        ;;
 
10411
    esac
 
10412
    ;;
 
10413
  osf4* | osf5*)
 
10414
    case $cc_basename in
 
10415
      KCC)
 
10416
        # Kuck and Associates, Inc. (KAI) C++ Compiler
 
10417
 
 
10418
        # KCC will only create a shared library if the output file
 
10419
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
 
10420
        # to its proper name (with version) after linking.
 
10421
        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'
 
10422
 
 
10423
        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
10424
        hardcode_libdir_separator_CXX=:
 
10425
 
 
10426
        # Archives containing C++ object files must be created using
 
10427
        # the KAI C++ compiler.
 
10428
        old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
 
10429
        ;;
 
10430
      RCC)
 
10431
        # Rational C++ 2.4.1
 
10432
        # FIXME: insert proper C++ library support
 
10433
        ld_shlibs_CXX=no
 
10434
        ;;
 
10435
      cxx)
 
10436
        allow_undefined_flag_CXX=' -expect_unresolved \*'
 
10437
        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'
 
10438
        archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
 
10439
          echo "-hidden">> $lib.exp~
 
10440
          $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~
 
10441
          $rm $lib.exp'
 
10442
 
 
10443
        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
 
10444
        hardcode_libdir_separator_CXX=:
 
10445
 
 
10446
        # Commands to make compiler produce verbose output that lists
 
10447
        # what "hidden" libraries, object files and flags are used when
 
10448
        # linking a shared library.
 
10449
        #
 
10450
        # There doesn't appear to be a way to prevent this compiler from
 
10451
        # explicitly linking system object files so we need to strip them
 
10452
        # from the output so that they don't get included in the library
 
10453
        # dependencies.
 
10454
        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'
 
10455
        ;;
 
10456
      *)
 
10457
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
 
10458
          allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
 
10459
         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'
 
10460
 
 
10461
          hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
10462
          hardcode_libdir_separator_CXX=:
 
10463
 
 
10464
          # Commands to make compiler produce verbose output that lists
 
10465
          # what "hidden" libraries, object files and flags are used when
 
10466
          # linking a shared library.
 
10467
          output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
 
10468
 
 
10469
        else
 
10470
          # FIXME: insert proper C++ library support
 
10471
          ld_shlibs_CXX=no
 
10472
        fi
 
10473
        ;;
 
10474
    esac
 
10475
    ;;
 
10476
  psos*)
 
10477
    # FIXME: insert proper C++ library support
 
10478
    ld_shlibs_CXX=no
 
10479
    ;;
 
10480
  sco*)
 
10481
    archive_cmds_need_lc_CXX=no
 
10482
    case $cc_basename in
 
10483
      CC)
 
10484
        # FIXME: insert proper C++ library support
 
10485
        ld_shlibs_CXX=no
 
10486
        ;;
 
10487
      *)
 
10488
        # FIXME: insert proper C++ library support
 
10489
        ld_shlibs_CXX=no
 
10490
        ;;
 
10491
    esac
 
10492
    ;;
 
10493
  sunos4*)
 
10494
    case $cc_basename in
 
10495
      CC)
 
10496
        # Sun C++ 4.x
 
10497
        # FIXME: insert proper C++ library support
 
10498
        ld_shlibs_CXX=no
 
10499
        ;;
 
10500
      lcc)
 
10501
        # Lucid
 
10502
        # FIXME: insert proper C++ library support
 
10503
        ld_shlibs_CXX=no
 
10504
        ;;
 
10505
      *)
 
10506
        # FIXME: insert proper C++ library support
 
10507
        ld_shlibs_CXX=no
 
10508
        ;;
 
10509
    esac
 
10510
    ;;
 
10511
  solaris*)
 
10512
    case $cc_basename in
 
10513
      CC)
 
10514
        # Sun C++ 4.2, 5.x and Centerline C++
 
10515
        no_undefined_flag_CXX=' -zdefs'
 
10516
        archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
10517
        archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
10518
        $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'
 
10519
 
 
10520
        hardcode_libdir_flag_spec_CXX='-R$libdir'
 
10521
        hardcode_shlibpath_var_CXX=no
 
10522
        case $host_os in
 
10523
          solaris2.0-5 | solaris2.0-5.*) ;;
 
10524
          *)
 
10525
            # The C++ compiler is used as linker so we must use $wl
 
10526
            # flag to pass the commands to the underlying system
 
10527
            # linker.
 
10528
            # Supported since Solaris 2.6 (maybe 2.5.1?)
 
10529
            whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
 
10530
            ;;
 
10531
        esac
 
10532
        link_all_deplibs_CXX=yes
 
10533
 
 
10534
        # Commands to make compiler produce verbose output that lists
 
10535
        # what "hidden" libraries, object files and flags are used when
 
10536
        # linking a shared library.
 
10537
        #
 
10538
        # There doesn't appear to be a way to prevent this compiler from
 
10539
        # explicitly linking system object files so we need to strip them
 
10540
        # from the output so that they don't get included in the library
 
10541
        # dependencies.
 
10542
        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'
 
10543
 
 
10544
        # Archives containing C++ object files must be created using
 
10545
        # "CC -xar", where "CC" is the Sun C++ compiler.  This is
 
10546
        # necessary to make sure instantiated templates are included
 
10547
        # in the archive.
 
10548
        old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
 
10549
        ;;
 
10550
      gcx)
 
10551
        # Green Hills C++ Compiler
 
10552
        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
10553
 
 
10554
        # The C++ compiler must be used to create the archive.
 
10555
        old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
 
10556
        ;;
 
10557
      *)
 
10558
        # GNU C++ compiler with Solaris linker
 
10559
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
 
10560
          no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
 
10561
          if $CC --version | grep -v '^2\.7' > /dev/null; then
 
10562
            archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
10563
            archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
10564
                $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
 
10565
 
 
10566
            # Commands to make compiler produce verbose output that lists
 
10567
            # what "hidden" libraries, object files and flags are used when
 
10568
            # linking a shared library.
 
10569
            output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
 
10570
          else
 
10571
            # g++ 2.7 appears to require `-G' NOT `-shared' on this
 
10572
            # platform.
 
10573
            archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
10574
            archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
10575
                $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
 
10576
 
 
10577
            # Commands to make compiler produce verbose output that lists
 
10578
            # what "hidden" libraries, object files and flags are used when
 
10579
            # linking a shared library.
 
10580
            output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
 
10581
          fi
 
10582
 
 
10583
          hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
 
10584
        fi
 
10585
        ;;
 
10586
    esac
 
10587
    ;;
 
10588
  sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
 
10589
    archive_cmds_need_lc_CXX=no
 
10590
    ;;
 
10591
  tandem*)
 
10592
    case $cc_basename in
 
10593
      NCC)
 
10594
        # NonStop-UX NCC 3.20
 
10595
        # FIXME: insert proper C++ library support
 
10596
        ld_shlibs_CXX=no
 
10597
        ;;
 
10598
      *)
 
10599
        # FIXME: insert proper C++ library support
 
10600
        ld_shlibs_CXX=no
 
10601
        ;;
 
10602
    esac
 
10603
    ;;
 
10604
  vxworks*)
 
10605
    # FIXME: insert proper C++ library support
 
10606
    ld_shlibs_CXX=no
 
10607
    ;;
 
10608
  *)
 
10609
    # FIXME: insert proper C++ library support
 
10610
    ld_shlibs_CXX=no
 
10611
    ;;
 
10612
esac
 
10613
echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
 
10614
echo "${ECHO_T}$ld_shlibs_CXX" >&6
 
10615
test "$ld_shlibs_CXX" = no && can_build_shared=no
 
10616
 
 
10617
GCC_CXX="$GXX"
 
10618
LD_CXX="$LD"
 
10619
 
 
10620
 
 
10621
cat > conftest.$ac_ext <<EOF
 
10622
class Foo
 
10623
{
 
10624
public:
 
10625
  Foo (void) { a = 0; }
 
10626
private:
 
10627
  int a;
 
10628
};
 
10629
EOF
 
10630
 
 
10631
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
10632
  (eval $ac_compile) 2>&5
 
10633
  ac_status=$?
 
10634
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10635
  (exit $ac_status); }; then
 
10636
  # Parse the compiler output and extract the necessary
 
10637
  # objects, libraries and library flags.
 
10638
 
 
10639
  # Sentinel used to keep track of whether or not we are before
 
10640
  # the conftest object file.
 
10641
  pre_test_object_deps_done=no
 
10642
 
 
10643
  # The `*' in the case matches for architectures that use `case' in
 
10644
  # $output_verbose_cmd can trigger glob expansion during the loop
 
10645
  # eval without this substitution.
 
10646
  output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
 
10647
 
 
10648
  for p in `eval $output_verbose_link_cmd`; do
 
10649
    case $p in
 
10650
 
 
10651
    -L* | -R* | -l*)
 
10652
       # Some compilers place space between "-{L,R}" and the path.
 
10653
       # Remove the space.
 
10654
       if test $p = "-L" \
 
10655
          || test $p = "-R"; then
 
10656
         prev=$p
 
10657
         continue
 
10658
       else
 
10659
         prev=
 
10660
       fi
 
10661
 
 
10662
       if test "$pre_test_object_deps_done" = no; then
 
10663
         case $p in
 
10664
         -L* | -R*)
 
10665
           # Internal compiler library paths should come after those
 
10666
           # provided the user.  The postdeps already come after the
 
10667
           # user supplied libs so there is no need to process them.
 
10668
           if test -z "$compiler_lib_search_path_CXX"; then
 
10669
             compiler_lib_search_path_CXX="${prev}${p}"
 
10670
           else
 
10671
             compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
 
10672
           fi
 
10673
           ;;
 
10674
         # The "-l" case would never come before the object being
 
10675
         # linked, so don't bother handling this case.
 
10676
         esac
 
10677
       else
 
10678
         if test -z "$postdeps_CXX"; then
 
10679
           postdeps_CXX="${prev}${p}"
 
10680
         else
 
10681
           postdeps_CXX="${postdeps_CXX} ${prev}${p}"
 
10682
         fi
 
10683
       fi
 
10684
       ;;
 
10685
 
 
10686
    *.$objext)
 
10687
       # This assumes that the test object file only shows up
 
10688
       # once in the compiler output.
 
10689
       if test "$p" = "conftest.$objext"; then
 
10690
         pre_test_object_deps_done=yes
 
10691
         continue
 
10692
       fi
 
10693
 
 
10694
       if test "$pre_test_object_deps_done" = no; then
 
10695
         if test -z "$predep_objects_CXX"; then
 
10696
           predep_objects_CXX="$p"
 
10697
         else
 
10698
           predep_objects_CXX="$predep_objects_CXX $p"
 
10699
         fi
 
10700
       else
 
10701
         if test -z "$postdep_objects_CXX"; then
 
10702
           postdep_objects_CXX="$p"
 
10703
         else
 
10704
           postdep_objects_CXX="$postdep_objects_CXX $p"
 
10705
         fi
 
10706
       fi
 
10707
       ;;
 
10708
 
 
10709
    *) ;; # Ignore the rest.
 
10710
 
 
10711
    esac
 
10712
  done
 
10713
 
 
10714
  # Clean up.
 
10715
  rm -f a.out a.exe
 
10716
else
 
10717
  echo "libtool.m4: error: problem compiling CXX test program"
 
10718
fi
 
10719
 
 
10720
$rm -f confest.$objext
 
10721
 
 
10722
case " $postdeps_CXX " in
 
10723
*" -lc "*) archive_cmds_need_lc_CXX=no ;;
 
10724
esac
 
10725
 
 
10726
lt_prog_compiler_wl_CXX=
 
10727
lt_prog_compiler_pic_CXX=
 
10728
lt_prog_compiler_static_CXX=
 
10729
 
 
10730
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
 
10731
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
 
10732
 
 
10733
  # C++ specific cases for pic, static, wl, etc.
 
10734
  if test "$GXX" = yes; then
 
10735
    lt_prog_compiler_wl_CXX='-Wl,'
 
10736
    lt_prog_compiler_static_CXX='-static'
 
10737
 
 
10738
    case $host_os in
 
10739
    aix*)
 
10740
      # All AIX code is PIC.
 
10741
      if test "$host_cpu" = ia64; then
 
10742
        # AIX 5 now supports IA64 processor
 
10743
        lt_prog_compiler_static_CXX='-Bstatic'
 
10744
      fi
 
10745
      ;;
 
10746
    amigaos*)
 
10747
      # FIXME: we need at least 68020 code to build shared libraries, but
 
10748
      # adding the `-m68020' flag to GCC prevents building anything better,
 
10749
      # like `-m68040'.
 
10750
      lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
 
10751
      ;;
 
10752
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
10753
      # PIC is the default for these OSes.
 
10754
      ;;
 
10755
    mingw* | os2* | pw32*)
 
10756
      # This hack is so that the source file can tell whether it is being
 
10757
      # built for inclusion in a dll (and should export symbols for example).
 
10758
      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
 
10759
      ;;
 
10760
    darwin* | rhapsody*)
 
10761
      # PIC is the default on this platform
 
10762
      # Common symbols not allowed in MH_DYLIB files
 
10763
      lt_prog_compiler_pic_CXX='-fno-common'
 
10764
      ;;
 
10765
    *djgpp*)
 
10766
      # DJGPP does not support shared libraries at all
 
10767
      lt_prog_compiler_pic_CXX=
 
10768
      ;;
 
10769
    sysv4*MP*)
 
10770
      if test -d /usr/nec; then
 
10771
        lt_prog_compiler_pic_CXX=-Kconform_pic
 
10772
      fi
 
10773
      ;;
 
10774
    hpux*)
 
10775
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
10776
      # not for PA HP-UX.
 
10777
      case "$host_cpu" in
 
10778
      hppa*64*|ia64*)
 
10779
        ;;
 
10780
      *)
 
10781
        lt_prog_compiler_pic_CXX='-fPIC'
 
10782
        ;;
 
10783
      esac
 
10784
      ;;
 
10785
    *)
 
10786
      lt_prog_compiler_pic_CXX='-fPIC'
 
10787
      ;;
 
10788
    esac
 
10789
  else
 
10790
    case $host_os in
 
10791
      aix4* | aix5*)
 
10792
        # All AIX code is PIC.
 
10793
        if test "$host_cpu" = ia64; then
 
10794
          # AIX 5 now supports IA64 processor
 
10795
          lt_prog_compiler_static_CXX='-Bstatic'
 
10796
        else
 
10797
          lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
 
10798
        fi
 
10799
        ;;
 
10800
      chorus*)
 
10801
        case $cc_basename in
 
10802
        cxch68)
 
10803
          # Green Hills C++ Compiler
 
10804
          # _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"
 
10805
          ;;
 
10806
        esac
 
10807
        ;;
 
10808
      dgux*)
 
10809
        case $cc_basename in
 
10810
          ec++)
 
10811
            lt_prog_compiler_pic_CXX='-KPIC'
 
10812
            ;;
 
10813
          ghcx)
 
10814
            # Green Hills C++ Compiler
 
10815
            lt_prog_compiler_pic_CXX='-pic'
 
10816
            ;;
 
10817
          *)
 
10818
            ;;
 
10819
        esac
 
10820
        ;;
 
10821
      freebsd* | kfreebsd*-gnu)
 
10822
        # FreeBSD uses GNU C++
 
10823
        ;;
 
10824
      hpux9* | hpux10* | hpux11*)
 
10825
        case $cc_basename in
 
10826
          CC)
 
10827
            lt_prog_compiler_wl_CXX='-Wl,'
 
10828
            lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
 
10829
            if test "$host_cpu" != ia64; then
 
10830
              lt_prog_compiler_pic_CXX='+Z'
 
10831
            fi
 
10832
            ;;
 
10833
          aCC)
 
10834
            lt_prog_compiler_wl_CXX='-Wl,'
 
10835
            lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
 
10836
            case "$host_cpu" in
 
10837
            hppa*64*|ia64*)
 
10838
              # +Z the default
 
10839
              ;;
 
10840
            *)
 
10841
              lt_prog_compiler_pic_CXX='+Z'
 
10842
              ;;
 
10843
            esac
 
10844
            ;;
 
10845
          *)
 
10846
            ;;
 
10847
        esac
 
10848
        ;;
 
10849
      irix5* | irix6* | nonstopux*)
 
10850
        case $cc_basename in
 
10851
          CC)
 
10852
            lt_prog_compiler_wl_CXX='-Wl,'
 
10853
            lt_prog_compiler_static_CXX='-non_shared'
 
10854
            # CC pic flag -KPIC is the default.
 
10855
            ;;
 
10856
          *)
 
10857
            ;;
 
10858
        esac
 
10859
        ;;
 
10860
      linux*)
 
10861
        case $cc_basename in
 
10862
          KCC)
 
10863
            # KAI C++ Compiler
 
10864
            lt_prog_compiler_wl_CXX='--backend -Wl,'
 
10865
            lt_prog_compiler_pic_CXX='-fPIC'
 
10866
            ;;
 
10867
          icpc)
 
10868
            # Intel C++
 
10869
            lt_prog_compiler_wl_CXX='-Wl,'
 
10870
            lt_prog_compiler_pic_CXX='-KPIC'
 
10871
            lt_prog_compiler_static_CXX='-static'
 
10872
            ;;
 
10873
          cxx)
 
10874
            # Compaq C++
 
10875
            # Make sure the PIC flag is empty.  It appears that all Alpha
 
10876
            # Linux and Compaq Tru64 Unix objects are PIC.
 
10877
            lt_prog_compiler_pic_CXX=
 
10878
            lt_prog_compiler_static_CXX='-non_shared'
 
10879
            ;;
 
10880
          *)
 
10881
            ;;
 
10882
        esac
 
10883
        ;;
 
10884
      lynxos*)
 
10885
        ;;
 
10886
      m88k*)
 
10887
        ;;
 
10888
      mvs*)
 
10889
        case $cc_basename in
 
10890
          cxx)
 
10891
            lt_prog_compiler_pic_CXX='-W c,exportall'
 
10892
            ;;
 
10893
          *)
 
10894
            ;;
 
10895
        esac
 
10896
        ;;
 
10897
      netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
 
10898
        ;;
 
10899
      osf3* | osf4* | osf5*)
 
10900
        case $cc_basename in
 
10901
          KCC)
 
10902
            lt_prog_compiler_wl_CXX='--backend -Wl,'
 
10903
            ;;
 
10904
          RCC)
 
10905
            # Rational C++ 2.4.1
 
10906
            lt_prog_compiler_pic_CXX='-pic'
 
10907
            ;;
 
10908
          cxx)
 
10909
            # Digital/Compaq C++
 
10910
            lt_prog_compiler_wl_CXX='-Wl,'
 
10911
            # Make sure the PIC flag is empty.  It appears that all Alpha
 
10912
            # Linux and Compaq Tru64 Unix objects are PIC.
 
10913
            lt_prog_compiler_pic_CXX=
 
10914
            lt_prog_compiler_static_CXX='-non_shared'
 
10915
            ;;
 
10916
          *)
 
10917
            ;;
 
10918
        esac
 
10919
        ;;
 
10920
      psos*)
 
10921
        ;;
 
10922
      sco*)
 
10923
        case $cc_basename in
 
10924
          CC)
 
10925
            lt_prog_compiler_pic_CXX='-fPIC'
 
10926
            ;;
 
10927
          *)
 
10928
            ;;
 
10929
        esac
 
10930
        ;;
 
10931
      solaris*)
 
10932
        case $cc_basename in
 
10933
          CC)
 
10934
            # Sun C++ 4.2, 5.x and Centerline C++
 
10935
            lt_prog_compiler_pic_CXX='-KPIC'
 
10936
            lt_prog_compiler_static_CXX='-Bstatic'
 
10937
            lt_prog_compiler_wl_CXX='-Qoption ld '
 
10938
            ;;
 
10939
          gcx)
 
10940
            # Green Hills C++ Compiler
 
10941
            lt_prog_compiler_pic_CXX='-PIC'
 
10942
            ;;
 
10943
          *)
 
10944
            ;;
 
10945
        esac
 
10946
        ;;
 
10947
      sunos4*)
 
10948
        case $cc_basename in
 
10949
          CC)
 
10950
            # Sun C++ 4.x
 
10951
            lt_prog_compiler_pic_CXX='-pic'
 
10952
            lt_prog_compiler_static_CXX='-Bstatic'
 
10953
            ;;
 
10954
          lcc)
 
10955
            # Lucid
 
10956
            lt_prog_compiler_pic_CXX='-pic'
 
10957
            ;;
 
10958
          *)
 
10959
            ;;
 
10960
        esac
 
10961
        ;;
 
10962
      tandem*)
 
10963
        case $cc_basename in
 
10964
          NCC)
 
10965
            # NonStop-UX NCC 3.20
 
10966
            lt_prog_compiler_pic_CXX='-KPIC'
 
10967
            ;;
 
10968
          *)
 
10969
            ;;
 
10970
        esac
 
10971
        ;;
 
10972
      unixware*)
 
10973
        ;;
 
10974
      vxworks*)
 
10975
        ;;
 
10976
      *)
 
10977
        lt_prog_compiler_can_build_shared_CXX=no
 
10978
        ;;
 
10979
    esac
 
10980
  fi
 
10981
 
 
10982
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
 
10983
echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
 
10984
 
 
10985
#
 
10986
# Check to make sure the PIC flag actually works.
 
10987
#
 
10988
if test -n "$lt_prog_compiler_pic_CXX"; then
 
10989
 
 
10990
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
 
10991
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
 
10992
if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
 
10993
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10994
else
 
10995
  lt_prog_compiler_pic_works_CXX=no
 
10996
  ac_outfile=conftest.$ac_objext
 
10997
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
10998
   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
 
10999
   # Insert the option either (1) after the last *FLAGS variable, or
 
11000
   # (2) before a word containing "conftest.", or (3) at the end.
 
11001
   # Note that $ac_compile itself does not contain backslashes and begins
 
11002
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
11003
   # The option is referenced via a variable to avoid confusing sed.
 
11004
   lt_compile=`echo "$ac_compile" | $SED \
 
11005
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
11006
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
11007
   -e 's:$: $lt_compiler_flag:'`
 
11008
   (eval echo "\"\$as_me:11008: $lt_compile\"" >&5)
 
11009
   (eval "$lt_compile" 2>conftest.err)
 
11010
   ac_status=$?
 
11011
   cat conftest.err >&5
 
11012
   echo "$as_me:11012: \$? = $ac_status" >&5
 
11013
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
11014
     # The compiler can only warn and ignore the option if not recognized
 
11015
     # So say no if there are warnings
 
11016
     if test ! -s conftest.err; then
 
11017
       lt_prog_compiler_pic_works_CXX=yes
 
11018
     fi
 
11019
   fi
 
11020
   $rm conftest*
 
11021
 
 
11022
fi
 
11023
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
 
11024
echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
 
11025
 
 
11026
if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
 
11027
    case $lt_prog_compiler_pic_CXX in
 
11028
     "" | " "*) ;;
 
11029
     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
 
11030
     esac
 
11031
else
 
11032
    lt_prog_compiler_pic_CXX=
 
11033
     lt_prog_compiler_can_build_shared_CXX=no
 
11034
fi
 
11035
 
 
11036
fi
 
11037
case "$host_os" in
 
11038
  # For platforms which do not support PIC, -DPIC is meaningless:
 
11039
  *djgpp*)
 
11040
    lt_prog_compiler_pic_CXX=
 
11041
    ;;
 
11042
  *)
 
11043
    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
 
11044
    ;;
 
11045
esac
 
11046
 
 
11047
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
11048
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
 
11049
if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
 
11050
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11051
else
 
11052
  lt_cv_prog_compiler_c_o_CXX=no
 
11053
   $rm -r conftest 2>/dev/null
 
11054
   mkdir conftest
 
11055
   cd conftest
 
11056
   mkdir out
 
11057
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
11058
 
 
11059
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
11060
   # Insert the option either (1) after the last *FLAGS variable, or
 
11061
   # (2) before a word containing "conftest.", or (3) at the end.
 
11062
   # Note that $ac_compile itself does not contain backslashes and begins
 
11063
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
11064
   lt_compile=`echo "$ac_compile" | $SED \
 
11065
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
11066
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
11067
   -e 's:$: $lt_compiler_flag:'`
 
11068
   (eval echo "\"\$as_me:11068: $lt_compile\"" >&5)
 
11069
   (eval "$lt_compile" 2>out/conftest.err)
 
11070
   ac_status=$?
 
11071
   cat out/conftest.err >&5
 
11072
   echo "$as_me:11072: \$? = $ac_status" >&5
 
11073
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
11074
   then
 
11075
     # The compiler can only warn and ignore the option if not recognized
 
11076
     # So say no if there are warnings
 
11077
     if test ! -s out/conftest.err; then
 
11078
       lt_cv_prog_compiler_c_o_CXX=yes
 
11079
     fi
 
11080
   fi
 
11081
   chmod u+w .
 
11082
   $rm conftest*
 
11083
   # SGI C++ compiler will create directory out/ii_files/ for
 
11084
   # template instantiation
 
11085
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
 
11086
   $rm out/* && rmdir out
 
11087
   cd ..
 
11088
   rmdir conftest
 
11089
   $rm conftest*
 
11090
 
 
11091
fi
 
11092
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
 
11093
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
 
11094
 
 
11095
 
 
11096
hard_links="nottested"
 
11097
if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
 
11098
  # do not overwrite the value of need_locks provided by the user
 
11099
  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
 
11100
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
 
11101
  hard_links=yes
 
11102
  $rm conftest*
 
11103
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
11104
  touch conftest.a
 
11105
  ln conftest.a conftest.b 2>&5 || hard_links=no
 
11106
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
11107
  echo "$as_me:$LINENO: result: $hard_links" >&5
 
11108
echo "${ECHO_T}$hard_links" >&6
 
11109
  if test "$hard_links" = no; then
 
11110
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
 
11111
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
 
11112
    need_locks=warn
 
11113
  fi
 
11114
else
 
11115
  need_locks=no
 
11116
fi
 
11117
 
 
11118
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
11119
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
 
11120
 
 
11121
  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
11122
  case $host_os in
 
11123
  aix4* | aix5*)
 
11124
    # If we're using GNU nm, then we don't want the "-C" option.
 
11125
    # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
11126
    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
 
11127
      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'
 
11128
    else
 
11129
      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'
 
11130
    fi
 
11131
    ;;
 
11132
  pw32*)
 
11133
    export_symbols_cmds_CXX="$ltdll_cmds"
 
11134
  ;;
 
11135
  cygwin* | mingw*)
 
11136
    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
 
11137
  ;;
 
11138
  linux*)
 
11139
    link_all_deplibs_CXX=no
 
11140
  ;;
 
11141
  *)
 
11142
    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
11143
  ;;
 
11144
  esac
 
11145
 
 
11146
echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
 
11147
echo "${ECHO_T}$ld_shlibs_CXX" >&6
 
11148
test "$ld_shlibs_CXX" = no && can_build_shared=no
 
11149
 
 
11150
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
11151
if test "$GCC" = yes; then
 
11152
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
11153
fi
 
11154
 
 
11155
#
 
11156
# Do we need to explicitly link libc?
 
11157
#
 
11158
case "x$archive_cmds_need_lc_CXX" in
 
11159
x|xyes)
 
11160
  # Assume -lc should be added
 
11161
  archive_cmds_need_lc_CXX=yes
 
11162
 
 
11163
  if test "$enable_shared" = yes && test "$GCC" = yes; then
 
11164
    case $archive_cmds_CXX in
 
11165
    *'~'*)
 
11166
      # FIXME: we may have to deal with multi-command sequences.
 
11167
      ;;
 
11168
    '$CC '*)
 
11169
      # Test whether the compiler implicitly links with -lc since on some
 
11170
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
 
11171
      # to ld, don't add -lc before -lgcc.
 
11172
      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
 
11173
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
 
11174
      $rm conftest*
 
11175
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
11176
 
 
11177
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
11178
  (eval $ac_compile) 2>&5
 
11179
  ac_status=$?
 
11180
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11181
  (exit $ac_status); } 2>conftest.err; then
 
11182
        soname=conftest
 
11183
        lib=conftest
 
11184
        libobjs=conftest.$ac_objext
 
11185
        deplibs=
 
11186
        wl=$lt_prog_compiler_wl_CXX
 
11187
        compiler_flags=-v
 
11188
        linker_flags=-v
 
11189
        verstring=
 
11190
        output_objdir=.
 
11191
        libname=conftest
 
11192
        lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
 
11193
        allow_undefined_flag_CXX=
 
11194
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
 
11195
  (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
11196
  ac_status=$?
 
11197
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11198
  (exit $ac_status); }
 
11199
        then
 
11200
          archive_cmds_need_lc_CXX=no
 
11201
        else
 
11202
          archive_cmds_need_lc_CXX=yes
 
11203
        fi
 
11204
        allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
 
11205
      else
 
11206
        cat conftest.err 1>&5
 
11207
      fi
 
11208
      $rm conftest*
 
11209
      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
 
11210
echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
 
11211
      ;;
 
11212
    esac
 
11213
  fi
 
11214
  ;;
 
11215
esac
 
11216
 
 
11217
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
 
11218
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
 
11219
library_names_spec=
 
11220
libname_spec='lib$name'
 
11221
soname_spec=
 
11222
shrext_cmds=".so"
 
11223
postinstall_cmds=
 
11224
postuninstall_cmds=
 
11225
finish_cmds=
 
11226
finish_eval=
 
11227
shlibpath_var=
 
11228
shlibpath_overrides_runpath=unknown
 
11229
version_type=none
 
11230
dynamic_linker="$host_os ld.so"
 
11231
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
11232
if test "$GCC" = yes; then
 
11233
  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
11234
  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
 
11235
    # if the path contains ";" then we assume it to be the separator
 
11236
    # otherwise default to the standard path separator (i.e. ":") - it is
 
11237
    # assumed that no part of a normal pathname contains ";" but that should
 
11238
    # okay in the real world where ";" in dirpaths is itself problematic.
 
11239
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
11240
  else
 
11241
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
11242
  fi
 
11243
else
 
11244
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
 
11245
fi
 
11246
need_lib_prefix=unknown
 
11247
hardcode_into_libs=no
 
11248
 
 
11249
# when you set need_version to no, make sure it does not cause -set_version
 
11250
# flags to be left without arguments
 
11251
need_version=unknown
 
11252
 
 
11253
case $host_os in
 
11254
aix3*)
 
11255
  version_type=linux
 
11256
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
 
11257
  shlibpath_var=LIBPATH
 
11258
 
 
11259
  # AIX 3 has no versioning support, so we append a major version to the name.
 
11260
  soname_spec='${libname}${release}${shared_ext}$major'
 
11261
  ;;
 
11262
 
 
11263
aix4* | aix5*)
 
11264
  version_type=linux
 
11265
  need_lib_prefix=no
 
11266
  need_version=no
 
11267
  hardcode_into_libs=yes
 
11268
  if test "$host_cpu" = ia64; then
 
11269
    # AIX 5 supports IA64
 
11270
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
 
11271
    shlibpath_var=LD_LIBRARY_PATH
 
11272
  else
 
11273
    # With GCC up to 2.95.x, collect2 would create an import file
 
11274
    # for dependence libraries.  The import file would start with
 
11275
    # the line `#! .'.  This would cause the generated library to
 
11276
    # depend on `.', always an invalid library.  This was fixed in
 
11277
    # development snapshots of GCC prior to 3.0.
 
11278
    case $host_os in
 
11279
      aix4 | aix4.[01] | aix4.[01].*)
 
11280
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
11281
           echo ' yes '
 
11282
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
 
11283
        :
 
11284
      else
 
11285
        can_build_shared=no
 
11286
      fi
 
11287
      ;;
 
11288
    esac
 
11289
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 
11290
    # soname into executable. Probably we can add versioning support to
 
11291
    # collect2, so additional links can be useful in future.
 
11292
    if test "$aix_use_runtimelinking" = yes; then
 
11293
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
11294
      # instead of lib<name>.a to let people know that these are not
 
11295
      # typical AIX shared libraries.
 
11296
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
11297
    else
 
11298
      # We preserve .a as extension for shared libraries through AIX4.2
 
11299
      # and later when we are not doing run time linking.
 
11300
      library_names_spec='${libname}${release}.a $libname.a'
 
11301
      soname_spec='${libname}${release}${shared_ext}$major'
 
11302
    fi
 
11303
    shlibpath_var=LIBPATH
 
11304
  fi
 
11305
  ;;
 
11306
 
 
11307
amigaos*)
 
11308
  library_names_spec='$libname.ixlibrary $libname.a'
 
11309
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
11310
  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'
 
11311
  ;;
 
11312
 
 
11313
beos*)
 
11314
  library_names_spec='${libname}${shared_ext}'
 
11315
  dynamic_linker="$host_os ld.so"
 
11316
  shlibpath_var=LIBRARY_PATH
 
11317
  ;;
 
11318
 
 
11319
bsdi4*)
 
11320
  version_type=linux
 
11321
  need_version=no
 
11322
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
11323
  soname_spec='${libname}${release}${shared_ext}$major'
 
11324
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
11325
  shlibpath_var=LD_LIBRARY_PATH
 
11326
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
11327
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
11328
  # the default ld.so.conf also contains /usr/contrib/lib and
 
11329
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
11330
  # libtool to hard-code these into programs
 
11331
  ;;
 
11332
 
 
11333
cygwin* | mingw* | pw32*)
 
11334
  version_type=windows
 
11335
  shrext_cmds=".dll"
 
11336
  need_version=no
 
11337
  need_lib_prefix=no
 
11338
 
 
11339
  case $GCC,$host_os in
 
11340
  yes,cygwin* | yes,mingw* | yes,pw32*)
 
11341
    library_names_spec='$libname.dll.a'
 
11342
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
11343
    postinstall_cmds='base_file=`basename \${file}`~
 
11344
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
 
11345
      dldir=$destdir/`dirname \$dlpath`~
 
11346
      test -d \$dldir || mkdir -p \$dldir~
 
11347
      $install_prog $dir/$dlname \$dldir/$dlname'
 
11348
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
11349
      dlpath=$dir/\$dldll~
 
11350
       $rm \$dlpath'
 
11351
    shlibpath_overrides_runpath=yes
 
11352
 
 
11353
    case $host_os in
 
11354
    cygwin*)
 
11355
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 
11356
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
11357
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
 
11358
      ;;
 
11359
    mingw*)
 
11360
      # MinGW DLLs use traditional 'lib' prefix
 
11361
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
11362
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
11363
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
 
11364
        # It is most probably a Windows format PATH printed by
 
11365
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
 
11366
        # path with ; separators, and with drive letters. We can handle the
 
11367
        # drive letters (cygwin fileutils understands them), so leave them,
 
11368
        # especially as we might pass files found there to a mingw objdump,
 
11369
        # which wouldn't understand a cygwinified path. Ahh.
 
11370
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
11371
      else
 
11372
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
11373
      fi
 
11374
      ;;
 
11375
    pw32*)
 
11376
      # pw32 DLLs use 'pw' prefix rather than 'lib'
 
11377
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
 
11378
      ;;
 
11379
    esac
 
11380
    ;;
 
11381
 
 
11382
  *)
 
11383
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
11384
    ;;
 
11385
  esac
 
11386
  dynamic_linker='Win32 ld.exe'
 
11387
  # FIXME: first we should search . and the directory the executable is in
 
11388
  shlibpath_var=PATH
 
11389
  ;;
 
11390
 
 
11391
darwin* | rhapsody*)
 
11392
  dynamic_linker="$host_os dyld"
 
11393
  version_type=darwin
 
11394
  need_lib_prefix=no
 
11395
  need_version=no
 
11396
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
11397
  soname_spec='${libname}${release}${major}$shared_ext'
 
11398
  shlibpath_overrides_runpath=yes
 
11399
  shlibpath_var=DYLD_LIBRARY_PATH
 
11400
  shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
 
11401
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
 
11402
  if test "$GCC" = yes; then
 
11403
    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"`
 
11404
  else
 
11405
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
 
11406
  fi
 
11407
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 
11408
  ;;
 
11409
 
 
11410
dgux*)
 
11411
  version_type=linux
 
11412
  need_lib_prefix=no
 
11413
  need_version=no
 
11414
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
 
11415
  soname_spec='${libname}${release}${shared_ext}$major'
 
11416
  shlibpath_var=LD_LIBRARY_PATH
 
11417
  ;;
 
11418
 
 
11419
freebsd1*)
 
11420
  dynamic_linker=no
 
11421
  ;;
 
11422
 
 
11423
kfreebsd*-gnu)
 
11424
  version_type=linux
 
11425
  need_lib_prefix=no
 
11426
  need_version=no
 
11427
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
11428
  soname_spec='${libname}${release}${shared_ext}$major'
 
11429
  shlibpath_var=LD_LIBRARY_PATH
 
11430
  shlibpath_overrides_runpath=no
 
11431
  hardcode_into_libs=yes
 
11432
  dynamic_linker='GNU ld.so'
 
11433
  ;;
 
11434
 
 
11435
freebsd*)
 
11436
  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
 
11437
  version_type=freebsd-$objformat
 
11438
  case $version_type in
 
11439
    freebsd-elf*)
 
11440
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
11441
      need_version=no
 
11442
      need_lib_prefix=no
 
11443
      ;;
 
11444
    freebsd-*)
 
11445
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
 
11446
      need_version=yes
 
11447
      ;;
 
11448
  esac
 
11449
  shlibpath_var=LD_LIBRARY_PATH
 
11450
  case $host_os in
 
11451
  freebsd2*)
 
11452
    shlibpath_overrides_runpath=yes
 
11453
    ;;
 
11454
  freebsd3.01* | freebsdelf3.01*)
 
11455
    shlibpath_overrides_runpath=yes
 
11456
    hardcode_into_libs=yes
 
11457
    ;;
 
11458
  *) # from 3.2 on
 
11459
    shlibpath_overrides_runpath=no
 
11460
    hardcode_into_libs=yes
 
11461
    ;;
 
11462
  esac
 
11463
  ;;
 
11464
 
 
11465
gnu*)
 
11466
  version_type=linux
 
11467
  need_lib_prefix=no
 
11468
  need_version=no
 
11469
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
11470
  soname_spec='${libname}${release}${shared_ext}$major'
 
11471
  shlibpath_var=LD_LIBRARY_PATH
 
11472
  hardcode_into_libs=yes
 
11473
  ;;
 
11474
 
 
11475
hpux9* | hpux10* | hpux11*)
 
11476
  # Give a soname corresponding to the major version so that dld.sl refuses to
 
11477
  # link against other versions.
 
11478
  version_type=sunos
 
11479
  need_lib_prefix=no
 
11480
  need_version=no
 
11481
  case "$host_cpu" in
 
11482
  ia64*)
 
11483
    shrext_cmds='.so'
 
11484
    hardcode_into_libs=yes
 
11485
    dynamic_linker="$host_os dld.so"
 
11486
    shlibpath_var=LD_LIBRARY_PATH
 
11487
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
11488
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
11489
    soname_spec='${libname}${release}${shared_ext}$major'
 
11490
    if test "X$HPUX_IA64_MODE" = X32; then
 
11491
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 
11492
    else
 
11493
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 
11494
    fi
 
11495
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
11496
    ;;
 
11497
   hppa*64*)
 
11498
     shrext_cmds='.sl'
 
11499
     hardcode_into_libs=yes
 
11500
     dynamic_linker="$host_os dld.sl"
 
11501
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
11502
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
11503
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
11504
     soname_spec='${libname}${release}${shared_ext}$major'
 
11505
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
11506
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
11507
     ;;
 
11508
   *)
 
11509
    shrext_cmds='.sl'
 
11510
    dynamic_linker="$host_os dld.sl"
 
11511
    shlibpath_var=SHLIB_PATH
 
11512
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
11513
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
11514
    soname_spec='${libname}${release}${shared_ext}$major'
 
11515
    ;;
 
11516
  esac
 
11517
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
 
11518
  postinstall_cmds='chmod 555 $lib'
 
11519
  ;;
 
11520
 
 
11521
irix5* | irix6* | nonstopux*)
 
11522
  case $host_os in
 
11523
    nonstopux*) version_type=nonstopux ;;
 
11524
    *)
 
11525
        if test "$lt_cv_prog_gnu_ld" = yes; then
 
11526
                version_type=linux
 
11527
        else
 
11528
                version_type=irix
 
11529
        fi ;;
 
11530
  esac
 
11531
  need_lib_prefix=no
 
11532
  need_version=no
 
11533
  soname_spec='${libname}${release}${shared_ext}$major'
 
11534
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
 
11535
  case $host_os in
 
11536
  irix5* | nonstopux*)
 
11537
    libsuff= shlibsuff=
 
11538
    ;;
 
11539
  *)
 
11540
    case $LD in # libtool.m4 will add one of these switches to LD
 
11541
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 
11542
      libsuff= shlibsuff= libmagic=32-bit;;
 
11543
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 
11544
      libsuff=32 shlibsuff=N32 libmagic=N32;;
 
11545
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 
11546
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
11547
    *) libsuff= shlibsuff= libmagic=never-match;;
 
11548
    esac
 
11549
    ;;
 
11550
  esac
 
11551
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
11552
  shlibpath_overrides_runpath=no
 
11553
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
11554
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
11555
  hardcode_into_libs=yes
 
11556
  ;;
 
11557
 
 
11558
# No shared lib support for Linux oldld, aout, or coff.
 
11559
linux*oldld* | linux*aout* | linux*coff*)
 
11560
  dynamic_linker=no
 
11561
  ;;
 
11562
 
 
11563
# This must be Linux ELF.
 
11564
linux*)
 
11565
  version_type=linux
 
11566
  need_lib_prefix=no
 
11567
  need_version=no
 
11568
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
11569
  soname_spec='${libname}${release}${shared_ext}$major'
 
11570
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
11571
  shlibpath_var=LD_LIBRARY_PATH
 
11572
  shlibpath_overrides_runpath=no
 
11573
  # This implies no fast_install, which is unacceptable.
 
11574
  # Some rework will be needed to allow for fast_install
 
11575
  # before this can be enabled.
 
11576
  hardcode_into_libs=yes
 
11577
 
 
11578
  # Append ld.so.conf contents to the search path
 
11579
  if test -f /etc/ld.so.conf; then
 
11580
    lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
 
11581
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
 
11582
  fi
 
11583
 
 
11584
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
11585
  # powerpc, because MkLinux only supported shared libraries with the
 
11586
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
11587
  # most powerpc-linux boxes support dynamic linking these days and
 
11588
  # people can always --disable-shared, the test was removed, and we
 
11589
  # assume the GNU/Linux dynamic linker is in use.
 
11590
  dynamic_linker='GNU/Linux ld.so'
 
11591
  ;;
 
11592
 
 
11593
netbsdelf*-gnu)
 
11594
  version_type=linux
 
11595
  need_lib_prefix=no
 
11596
  need_version=no
 
11597
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
11598
  soname_spec='${libname}${release}${shared_ext}$major'
 
11599
  shlibpath_var=LD_LIBRARY_PATH
 
11600
  shlibpath_overrides_runpath=no
 
11601
  hardcode_into_libs=yes
 
11602
  dynamic_linker='NetBSD ld.elf_so'
 
11603
  ;;
 
11604
 
 
11605
knetbsd*-gnu)
 
11606
  version_type=linux
 
11607
  need_lib_prefix=no
 
11608
  need_version=no
 
11609
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
11610
  soname_spec='${libname}${release}${shared_ext}$major'
 
11611
  shlibpath_var=LD_LIBRARY_PATH
 
11612
  shlibpath_overrides_runpath=no
 
11613
  hardcode_into_libs=yes
 
11614
  dynamic_linker='GNU ld.so'
 
11615
  ;;
 
11616
 
 
11617
netbsd*)
 
11618
  version_type=sunos
 
11619
  need_lib_prefix=no
 
11620
  need_version=no
 
11621
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
11622
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
11623
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
11624
    dynamic_linker='NetBSD (a.out) ld.so'
 
11625
  else
 
11626
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
11627
    soname_spec='${libname}${release}${shared_ext}$major'
 
11628
    dynamic_linker='NetBSD ld.elf_so'
 
11629
  fi
 
11630
  shlibpath_var=LD_LIBRARY_PATH
 
11631
  shlibpath_overrides_runpath=yes
 
11632
  hardcode_into_libs=yes
 
11633
  ;;
 
11634
 
 
11635
newsos6)
 
11636
  version_type=linux
 
11637
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
11638
  shlibpath_var=LD_LIBRARY_PATH
 
11639
  shlibpath_overrides_runpath=yes
 
11640
  ;;
 
11641
 
 
11642
nto-qnx*)
 
11643
  version_type=linux
 
11644
  need_lib_prefix=no
 
11645
  need_version=no
 
11646
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
11647
  soname_spec='${libname}${release}${shared_ext}$major'
 
11648
  shlibpath_var=LD_LIBRARY_PATH
 
11649
  shlibpath_overrides_runpath=yes
 
11650
  ;;
 
11651
 
 
11652
openbsd*)
 
11653
  version_type=sunos
 
11654
  need_lib_prefix=no
 
11655
  need_version=yes
 
11656
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
11657
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
11658
  shlibpath_var=LD_LIBRARY_PATH
 
11659
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
11660
    case $host_os in
 
11661
      openbsd2.[89] | openbsd2.[89].*)
 
11662
        shlibpath_overrides_runpath=no
 
11663
        ;;
 
11664
      *)
 
11665
        shlibpath_overrides_runpath=yes
 
11666
        ;;
 
11667
      esac
 
11668
  else
 
11669
    shlibpath_overrides_runpath=yes
 
11670
  fi
 
11671
  ;;
 
11672
 
 
11673
os2*)
 
11674
  libname_spec='$name'
 
11675
  shrext_cmds=".dll"
 
11676
  need_lib_prefix=no
 
11677
  library_names_spec='$libname${shared_ext} $libname.a'
 
11678
  dynamic_linker='OS/2 ld.exe'
 
11679
  shlibpath_var=LIBPATH
 
11680
  ;;
 
11681
 
 
11682
osf3* | osf4* | osf5*)
 
11683
  version_type=osf
 
11684
  need_lib_prefix=no
 
11685
  need_version=no
 
11686
  soname_spec='${libname}${release}${shared_ext}$major'
 
11687
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
11688
  shlibpath_var=LD_LIBRARY_PATH
 
11689
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
11690
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
11691
  ;;
 
11692
 
 
11693
sco3.2v5*)
 
11694
  version_type=osf
 
11695
  soname_spec='${libname}${release}${shared_ext}$major'
 
11696
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
11697
  shlibpath_var=LD_LIBRARY_PATH
 
11698
  ;;
 
11699
 
 
11700
solaris*)
 
11701
  version_type=linux
 
11702
  need_lib_prefix=no
 
11703
  need_version=no
 
11704
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
11705
  soname_spec='${libname}${release}${shared_ext}$major'
 
11706
  shlibpath_var=LD_LIBRARY_PATH
 
11707
  shlibpath_overrides_runpath=yes
 
11708
  hardcode_into_libs=yes
 
11709
  # ldd complains unless libraries are executable
 
11710
  postinstall_cmds='chmod +x $lib'
 
11711
  ;;
 
11712
 
 
11713
sunos4*)
 
11714
  version_type=sunos
 
11715
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
11716
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
11717
  shlibpath_var=LD_LIBRARY_PATH
 
11718
  shlibpath_overrides_runpath=yes
 
11719
  if test "$with_gnu_ld" = yes; then
 
11720
    need_lib_prefix=no
 
11721
  fi
 
11722
  need_version=yes
 
11723
  ;;
 
11724
 
 
11725
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
11726
  version_type=linux
 
11727
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
11728
  soname_spec='${libname}${release}${shared_ext}$major'
 
11729
  shlibpath_var=LD_LIBRARY_PATH
 
11730
  case $host_vendor in
 
11731
    sni)
 
11732
      shlibpath_overrides_runpath=no
 
11733
      need_lib_prefix=no
 
11734
      export_dynamic_flag_spec='${wl}-Blargedynsym'
 
11735
      runpath_var=LD_RUN_PATH
 
11736
      ;;
 
11737
    siemens)
 
11738
      need_lib_prefix=no
 
11739
      ;;
 
11740
    motorola)
 
11741
      need_lib_prefix=no
 
11742
      need_version=no
 
11743
      shlibpath_overrides_runpath=no
 
11744
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
11745
      ;;
 
11746
  esac
 
11747
  ;;
 
11748
 
 
11749
sysv4*MP*)
 
11750
  if test -d /usr/nec ;then
 
11751
    version_type=linux
 
11752
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
 
11753
    soname_spec='$libname${shared_ext}.$major'
 
11754
    shlibpath_var=LD_LIBRARY_PATH
 
11755
  fi
 
11756
  ;;
 
11757
 
 
11758
uts4*)
 
11759
  version_type=linux
 
11760
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
11761
  soname_spec='${libname}${release}${shared_ext}$major'
 
11762
  shlibpath_var=LD_LIBRARY_PATH
 
11763
  ;;
 
11764
 
 
11765
*)
 
11766
  dynamic_linker=no
 
11767
  ;;
 
11768
esac
 
11769
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
 
11770
echo "${ECHO_T}$dynamic_linker" >&6
 
11771
test "$dynamic_linker" = no && can_build_shared=no
 
11772
 
 
11773
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
 
11774
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
 
11775
hardcode_action_CXX=
 
11776
if test -n "$hardcode_libdir_flag_spec_CXX" || \
 
11777
   test -n "$runpath_var CXX" || \
 
11778
   test "X$hardcode_automatic_CXX"="Xyes" ; then
 
11779
 
 
11780
  # We can hardcode non-existant directories.
 
11781
  if test "$hardcode_direct_CXX" != no &&
 
11782
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
 
11783
     # have to relink, otherwise we might link with an installed library
 
11784
     # when we should be linking with a yet-to-be-installed one
 
11785
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
 
11786
     test "$hardcode_minus_L_CXX" != no; then
 
11787
    # Linking always hardcodes the temporary library directory.
 
11788
    hardcode_action_CXX=relink
 
11789
  else
 
11790
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
 
11791
    hardcode_action_CXX=immediate
 
11792
  fi
 
11793
else
 
11794
  # We cannot hardcode anything, or else we can only hardcode existing
 
11795
  # directories.
 
11796
  hardcode_action_CXX=unsupported
 
11797
fi
 
11798
echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
 
11799
echo "${ECHO_T}$hardcode_action_CXX" >&6
 
11800
 
 
11801
if test "$hardcode_action_CXX" = relink; then
 
11802
  # Fast installation is not supported
 
11803
  enable_fast_install=no
 
11804
elif test "$shlibpath_overrides_runpath" = yes ||
 
11805
     test "$enable_shared" = no; then
 
11806
  # Fast installation is not necessary
 
11807
  enable_fast_install=needless
 
11808
fi
 
11809
 
 
11810
striplib=
 
11811
old_striplib=
 
11812
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
 
11813
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
 
11814
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
 
11815
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
 
11816
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
 
11817
  echo "$as_me:$LINENO: result: yes" >&5
 
11818
echo "${ECHO_T}yes" >&6
 
11819
else
 
11820
# FIXME - insert some real tests, host_os isn't really good enough
 
11821
  case $host_os in
 
11822
   darwin*)
 
11823
       if test -n "$STRIP" ; then
 
11824
         striplib="$STRIP -x"
 
11825
         echo "$as_me:$LINENO: result: yes" >&5
 
11826
echo "${ECHO_T}yes" >&6
 
11827
       else
 
11828
  echo "$as_me:$LINENO: result: no" >&5
 
11829
echo "${ECHO_T}no" >&6
 
11830
fi
 
11831
       ;;
 
11832
   *)
 
11833
  echo "$as_me:$LINENO: result: no" >&5
 
11834
echo "${ECHO_T}no" >&6
 
11835
    ;;
 
11836
  esac
 
11837
fi
 
11838
 
 
11839
if test "x$enable_dlopen" != xyes; then
 
11840
  enable_dlopen=unknown
 
11841
  enable_dlopen_self=unknown
 
11842
  enable_dlopen_self_static=unknown
 
11843
else
 
11844
  lt_cv_dlopen=no
 
11845
  lt_cv_dlopen_libs=
 
11846
 
 
11847
  case $host_os in
 
11848
  beos*)
 
11849
    lt_cv_dlopen="load_add_on"
 
11850
    lt_cv_dlopen_libs=
 
11851
    lt_cv_dlopen_self=yes
 
11852
    ;;
 
11853
 
 
11854
  mingw* | pw32*)
 
11855
    lt_cv_dlopen="LoadLibrary"
 
11856
    lt_cv_dlopen_libs=
 
11857
   ;;
 
11858
 
 
11859
  cygwin*)
 
11860
    lt_cv_dlopen="dlopen"
 
11861
    lt_cv_dlopen_libs=
 
11862
   ;;
 
11863
 
 
11864
  darwin*)
 
11865
  # if libdl is installed we need to link against it
 
11866
    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
11867
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
 
11868
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
 
11869
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11870
else
 
11871
  ac_check_lib_save_LIBS=$LIBS
 
11872
LIBS="-ldl  $LIBS"
 
11873
cat >conftest.$ac_ext <<_ACEOF
 
11874
/* confdefs.h.  */
 
11875
_ACEOF
 
11876
cat confdefs.h >>conftest.$ac_ext
 
11877
cat >>conftest.$ac_ext <<_ACEOF
 
11878
/* end confdefs.h.  */
 
11879
 
 
11880
/* Override any gcc2 internal prototype to avoid an error.  */
 
11881
#ifdef __cplusplus
 
11882
extern "C"
 
11883
#endif
 
11884
/* We use char because int might match the return type of a gcc2
 
11885
   builtin and then its argument prototype would still apply.  */
 
11886
char dlopen ();
 
11887
int
 
11888
main ()
 
11889
{
 
11890
dlopen ();
 
11891
  ;
 
11892
  return 0;
 
11893
}
 
11894
_ACEOF
 
11895
rm -f conftest.$ac_objext conftest$ac_exeext
 
11896
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
11897
  (eval $ac_link) 2>conftest.er1
 
11898
  ac_status=$?
 
11899
  grep -v '^ *+' conftest.er1 >conftest.err
 
11900
  rm -f conftest.er1
 
11901
  cat conftest.err >&5
 
11902
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11903
  (exit $ac_status); } &&
 
11904
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
11905
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
11906
  (eval $ac_try) 2>&5
 
11907
  ac_status=$?
 
11908
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11909
  (exit $ac_status); }; } &&
 
11910
         { ac_try='test -s conftest$ac_exeext'
 
11911
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
11912
  (eval $ac_try) 2>&5
 
11913
  ac_status=$?
 
11914
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11915
  (exit $ac_status); }; }; then
 
11916
  ac_cv_lib_dl_dlopen=yes
 
11917
else
 
11918
  echo "$as_me: failed program was:" >&5
 
11919
sed 's/^/| /' conftest.$ac_ext >&5
 
11920
 
 
11921
ac_cv_lib_dl_dlopen=no
 
11922
fi
 
11923
rm -f conftest.err conftest.$ac_objext \
 
11924
      conftest$ac_exeext conftest.$ac_ext
 
11925
LIBS=$ac_check_lib_save_LIBS
 
11926
fi
 
11927
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
11928
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
 
11929
if test $ac_cv_lib_dl_dlopen = yes; then
 
11930
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
11931
else
 
11932
 
 
11933
    lt_cv_dlopen="dyld"
 
11934
    lt_cv_dlopen_libs=
 
11935
    lt_cv_dlopen_self=yes
 
11936
 
 
11937
fi
 
11938
 
 
11939
   ;;
 
11940
 
 
11941
  *)
 
11942
    echo "$as_me:$LINENO: checking for shl_load" >&5
 
11943
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
 
11944
if test "${ac_cv_func_shl_load+set}" = set; then
 
11945
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11946
else
 
11947
  cat >conftest.$ac_ext <<_ACEOF
 
11948
/* confdefs.h.  */
 
11949
_ACEOF
 
11950
cat confdefs.h >>conftest.$ac_ext
 
11951
cat >>conftest.$ac_ext <<_ACEOF
 
11952
/* end confdefs.h.  */
 
11953
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
 
11954
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
11955
#define shl_load innocuous_shl_load
 
11956
 
 
11957
/* System header to define __stub macros and hopefully few prototypes,
 
11958
    which can conflict with char shl_load (); below.
 
11959
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
11960
    <limits.h> exists even on freestanding compilers.  */
 
11961
 
 
11962
#ifdef __STDC__
 
11963
# include <limits.h>
 
11964
#else
 
11965
# include <assert.h>
 
11966
#endif
 
11967
 
 
11968
#undef shl_load
 
11969
 
 
11970
/* Override any gcc2 internal prototype to avoid an error.  */
 
11971
#ifdef __cplusplus
 
11972
extern "C"
 
11973
{
 
11974
#endif
 
11975
/* We use char because int might match the return type of a gcc2
 
11976
   builtin and then its argument prototype would still apply.  */
 
11977
char shl_load ();
 
11978
/* The GNU C library defines this for functions which it implements
 
11979
    to always fail with ENOSYS.  Some functions are actually named
 
11980
    something starting with __ and the normal name is an alias.  */
 
11981
#if defined (__stub_shl_load) || defined (__stub___shl_load)
 
11982
choke me
 
11983
#else
 
11984
char (*f) () = shl_load;
 
11985
#endif
 
11986
#ifdef __cplusplus
 
11987
}
 
11988
#endif
 
11989
 
 
11990
int
 
11991
main ()
 
11992
{
 
11993
return f != shl_load;
 
11994
  ;
 
11995
  return 0;
 
11996
}
 
11997
_ACEOF
 
11998
rm -f conftest.$ac_objext conftest$ac_exeext
 
11999
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
12000
  (eval $ac_link) 2>conftest.er1
 
12001
  ac_status=$?
 
12002
  grep -v '^ *+' conftest.er1 >conftest.err
 
12003
  rm -f conftest.er1
 
12004
  cat conftest.err >&5
 
12005
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12006
  (exit $ac_status); } &&
 
12007
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
12008
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12009
  (eval $ac_try) 2>&5
 
12010
  ac_status=$?
 
12011
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12012
  (exit $ac_status); }; } &&
 
12013
         { ac_try='test -s conftest$ac_exeext'
 
12014
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12015
  (eval $ac_try) 2>&5
 
12016
  ac_status=$?
 
12017
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12018
  (exit $ac_status); }; }; then
 
12019
  ac_cv_func_shl_load=yes
 
12020
else
 
12021
  echo "$as_me: failed program was:" >&5
 
12022
sed 's/^/| /' conftest.$ac_ext >&5
 
12023
 
 
12024
ac_cv_func_shl_load=no
 
12025
fi
 
12026
rm -f conftest.err conftest.$ac_objext \
 
12027
      conftest$ac_exeext conftest.$ac_ext
 
12028
fi
 
12029
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
 
12030
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
 
12031
if test $ac_cv_func_shl_load = yes; then
 
12032
  lt_cv_dlopen="shl_load"
 
12033
else
 
12034
  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
 
12035
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
 
12036
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
 
12037
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12038
else
 
12039
  ac_check_lib_save_LIBS=$LIBS
 
12040
LIBS="-ldld  $LIBS"
 
12041
cat >conftest.$ac_ext <<_ACEOF
 
12042
/* confdefs.h.  */
 
12043
_ACEOF
 
12044
cat confdefs.h >>conftest.$ac_ext
 
12045
cat >>conftest.$ac_ext <<_ACEOF
 
12046
/* end confdefs.h.  */
 
12047
 
 
12048
/* Override any gcc2 internal prototype to avoid an error.  */
 
12049
#ifdef __cplusplus
 
12050
extern "C"
 
12051
#endif
 
12052
/* We use char because int might match the return type of a gcc2
 
12053
   builtin and then its argument prototype would still apply.  */
 
12054
char shl_load ();
 
12055
int
 
12056
main ()
 
12057
{
 
12058
shl_load ();
 
12059
  ;
 
12060
  return 0;
 
12061
}
 
12062
_ACEOF
 
12063
rm -f conftest.$ac_objext conftest$ac_exeext
 
12064
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
12065
  (eval $ac_link) 2>conftest.er1
 
12066
  ac_status=$?
 
12067
  grep -v '^ *+' conftest.er1 >conftest.err
 
12068
  rm -f conftest.er1
 
12069
  cat conftest.err >&5
 
12070
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12071
  (exit $ac_status); } &&
 
12072
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
12073
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12074
  (eval $ac_try) 2>&5
 
12075
  ac_status=$?
 
12076
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12077
  (exit $ac_status); }; } &&
 
12078
         { ac_try='test -s conftest$ac_exeext'
 
12079
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12080
  (eval $ac_try) 2>&5
 
12081
  ac_status=$?
 
12082
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12083
  (exit $ac_status); }; }; then
 
12084
  ac_cv_lib_dld_shl_load=yes
 
12085
else
 
12086
  echo "$as_me: failed program was:" >&5
 
12087
sed 's/^/| /' conftest.$ac_ext >&5
 
12088
 
 
12089
ac_cv_lib_dld_shl_load=no
 
12090
fi
 
12091
rm -f conftest.err conftest.$ac_objext \
 
12092
      conftest$ac_exeext conftest.$ac_ext
 
12093
LIBS=$ac_check_lib_save_LIBS
 
12094
fi
 
12095
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
 
12096
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
 
12097
if test $ac_cv_lib_dld_shl_load = yes; then
 
12098
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
 
12099
else
 
12100
  echo "$as_me:$LINENO: checking for dlopen" >&5
 
12101
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
 
12102
if test "${ac_cv_func_dlopen+set}" = set; then
 
12103
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12104
else
 
12105
  cat >conftest.$ac_ext <<_ACEOF
 
12106
/* confdefs.h.  */
 
12107
_ACEOF
 
12108
cat confdefs.h >>conftest.$ac_ext
 
12109
cat >>conftest.$ac_ext <<_ACEOF
 
12110
/* end confdefs.h.  */
 
12111
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
 
12112
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
12113
#define dlopen innocuous_dlopen
 
12114
 
 
12115
/* System header to define __stub macros and hopefully few prototypes,
 
12116
    which can conflict with char dlopen (); below.
 
12117
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
12118
    <limits.h> exists even on freestanding compilers.  */
 
12119
 
 
12120
#ifdef __STDC__
 
12121
# include <limits.h>
 
12122
#else
 
12123
# include <assert.h>
 
12124
#endif
 
12125
 
 
12126
#undef dlopen
 
12127
 
 
12128
/* Override any gcc2 internal prototype to avoid an error.  */
 
12129
#ifdef __cplusplus
 
12130
extern "C"
 
12131
{
 
12132
#endif
 
12133
/* We use char because int might match the return type of a gcc2
 
12134
   builtin and then its argument prototype would still apply.  */
 
12135
char dlopen ();
 
12136
/* The GNU C library defines this for functions which it implements
 
12137
    to always fail with ENOSYS.  Some functions are actually named
 
12138
    something starting with __ and the normal name is an alias.  */
 
12139
#if defined (__stub_dlopen) || defined (__stub___dlopen)
 
12140
choke me
 
12141
#else
 
12142
char (*f) () = dlopen;
 
12143
#endif
 
12144
#ifdef __cplusplus
 
12145
}
 
12146
#endif
 
12147
 
 
12148
int
 
12149
main ()
 
12150
{
 
12151
return f != dlopen;
 
12152
  ;
 
12153
  return 0;
 
12154
}
 
12155
_ACEOF
 
12156
rm -f conftest.$ac_objext conftest$ac_exeext
 
12157
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
12158
  (eval $ac_link) 2>conftest.er1
 
12159
  ac_status=$?
 
12160
  grep -v '^ *+' conftest.er1 >conftest.err
 
12161
  rm -f conftest.er1
 
12162
  cat conftest.err >&5
 
12163
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12164
  (exit $ac_status); } &&
 
12165
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
12166
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12167
  (eval $ac_try) 2>&5
 
12168
  ac_status=$?
 
12169
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12170
  (exit $ac_status); }; } &&
 
12171
         { ac_try='test -s conftest$ac_exeext'
 
12172
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12173
  (eval $ac_try) 2>&5
 
12174
  ac_status=$?
 
12175
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12176
  (exit $ac_status); }; }; then
 
12177
  ac_cv_func_dlopen=yes
 
12178
else
 
12179
  echo "$as_me: failed program was:" >&5
 
12180
sed 's/^/| /' conftest.$ac_ext >&5
 
12181
 
 
12182
ac_cv_func_dlopen=no
 
12183
fi
 
12184
rm -f conftest.err conftest.$ac_objext \
 
12185
      conftest$ac_exeext conftest.$ac_ext
 
12186
fi
 
12187
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
 
12188
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
 
12189
if test $ac_cv_func_dlopen = yes; then
 
12190
  lt_cv_dlopen="dlopen"
 
12191
else
 
12192
  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
12193
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
 
12194
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
 
12195
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12196
else
 
12197
  ac_check_lib_save_LIBS=$LIBS
 
12198
LIBS="-ldl  $LIBS"
 
12199
cat >conftest.$ac_ext <<_ACEOF
 
12200
/* confdefs.h.  */
 
12201
_ACEOF
 
12202
cat confdefs.h >>conftest.$ac_ext
 
12203
cat >>conftest.$ac_ext <<_ACEOF
 
12204
/* end confdefs.h.  */
 
12205
 
 
12206
/* Override any gcc2 internal prototype to avoid an error.  */
 
12207
#ifdef __cplusplus
 
12208
extern "C"
 
12209
#endif
 
12210
/* We use char because int might match the return type of a gcc2
 
12211
   builtin and then its argument prototype would still apply.  */
 
12212
char dlopen ();
 
12213
int
 
12214
main ()
 
12215
{
 
12216
dlopen ();
 
12217
  ;
 
12218
  return 0;
 
12219
}
 
12220
_ACEOF
 
12221
rm -f conftest.$ac_objext conftest$ac_exeext
 
12222
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
12223
  (eval $ac_link) 2>conftest.er1
 
12224
  ac_status=$?
 
12225
  grep -v '^ *+' conftest.er1 >conftest.err
 
12226
  rm -f conftest.er1
 
12227
  cat conftest.err >&5
 
12228
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12229
  (exit $ac_status); } &&
 
12230
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
12231
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12232
  (eval $ac_try) 2>&5
 
12233
  ac_status=$?
 
12234
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12235
  (exit $ac_status); }; } &&
 
12236
         { ac_try='test -s conftest$ac_exeext'
 
12237
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12238
  (eval $ac_try) 2>&5
 
12239
  ac_status=$?
 
12240
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12241
  (exit $ac_status); }; }; then
 
12242
  ac_cv_lib_dl_dlopen=yes
 
12243
else
 
12244
  echo "$as_me: failed program was:" >&5
 
12245
sed 's/^/| /' conftest.$ac_ext >&5
 
12246
 
 
12247
ac_cv_lib_dl_dlopen=no
 
12248
fi
 
12249
rm -f conftest.err conftest.$ac_objext \
 
12250
      conftest$ac_exeext conftest.$ac_ext
 
12251
LIBS=$ac_check_lib_save_LIBS
 
12252
fi
 
12253
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
12254
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
 
12255
if test $ac_cv_lib_dl_dlopen = yes; then
 
12256
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
12257
else
 
12258
  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
 
12259
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
 
12260
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
 
12261
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12262
else
 
12263
  ac_check_lib_save_LIBS=$LIBS
 
12264
LIBS="-lsvld  $LIBS"
 
12265
cat >conftest.$ac_ext <<_ACEOF
 
12266
/* confdefs.h.  */
 
12267
_ACEOF
 
12268
cat confdefs.h >>conftest.$ac_ext
 
12269
cat >>conftest.$ac_ext <<_ACEOF
 
12270
/* end confdefs.h.  */
 
12271
 
 
12272
/* Override any gcc2 internal prototype to avoid an error.  */
 
12273
#ifdef __cplusplus
 
12274
extern "C"
 
12275
#endif
 
12276
/* We use char because int might match the return type of a gcc2
 
12277
   builtin and then its argument prototype would still apply.  */
 
12278
char dlopen ();
 
12279
int
 
12280
main ()
 
12281
{
 
12282
dlopen ();
 
12283
  ;
 
12284
  return 0;
 
12285
}
 
12286
_ACEOF
 
12287
rm -f conftest.$ac_objext conftest$ac_exeext
 
12288
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
12289
  (eval $ac_link) 2>conftest.er1
 
12290
  ac_status=$?
 
12291
  grep -v '^ *+' conftest.er1 >conftest.err
 
12292
  rm -f conftest.er1
 
12293
  cat conftest.err >&5
 
12294
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12295
  (exit $ac_status); } &&
 
12296
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
12297
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12298
  (eval $ac_try) 2>&5
 
12299
  ac_status=$?
 
12300
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12301
  (exit $ac_status); }; } &&
 
12302
         { ac_try='test -s conftest$ac_exeext'
 
12303
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12304
  (eval $ac_try) 2>&5
 
12305
  ac_status=$?
 
12306
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12307
  (exit $ac_status); }; }; then
 
12308
  ac_cv_lib_svld_dlopen=yes
 
12309
else
 
12310
  echo "$as_me: failed program was:" >&5
 
12311
sed 's/^/| /' conftest.$ac_ext >&5
 
12312
 
 
12313
ac_cv_lib_svld_dlopen=no
 
12314
fi
 
12315
rm -f conftest.err conftest.$ac_objext \
 
12316
      conftest$ac_exeext conftest.$ac_ext
 
12317
LIBS=$ac_check_lib_save_LIBS
 
12318
fi
 
12319
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
 
12320
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
 
12321
if test $ac_cv_lib_svld_dlopen = yes; then
 
12322
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
 
12323
else
 
12324
  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
 
12325
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
 
12326
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
 
12327
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12328
else
 
12329
  ac_check_lib_save_LIBS=$LIBS
 
12330
LIBS="-ldld  $LIBS"
 
12331
cat >conftest.$ac_ext <<_ACEOF
 
12332
/* confdefs.h.  */
 
12333
_ACEOF
 
12334
cat confdefs.h >>conftest.$ac_ext
 
12335
cat >>conftest.$ac_ext <<_ACEOF
 
12336
/* end confdefs.h.  */
 
12337
 
 
12338
/* Override any gcc2 internal prototype to avoid an error.  */
 
12339
#ifdef __cplusplus
 
12340
extern "C"
 
12341
#endif
 
12342
/* We use char because int might match the return type of a gcc2
 
12343
   builtin and then its argument prototype would still apply.  */
 
12344
char dld_link ();
 
12345
int
 
12346
main ()
 
12347
{
 
12348
dld_link ();
 
12349
  ;
 
12350
  return 0;
 
12351
}
 
12352
_ACEOF
 
12353
rm -f conftest.$ac_objext conftest$ac_exeext
 
12354
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
12355
  (eval $ac_link) 2>conftest.er1
 
12356
  ac_status=$?
 
12357
  grep -v '^ *+' conftest.er1 >conftest.err
 
12358
  rm -f conftest.er1
 
12359
  cat conftest.err >&5
 
12360
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12361
  (exit $ac_status); } &&
 
12362
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
12363
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12364
  (eval $ac_try) 2>&5
 
12365
  ac_status=$?
 
12366
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12367
  (exit $ac_status); }; } &&
 
12368
         { ac_try='test -s conftest$ac_exeext'
 
12369
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12370
  (eval $ac_try) 2>&5
 
12371
  ac_status=$?
 
12372
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12373
  (exit $ac_status); }; }; then
 
12374
  ac_cv_lib_dld_dld_link=yes
 
12375
else
 
12376
  echo "$as_me: failed program was:" >&5
 
12377
sed 's/^/| /' conftest.$ac_ext >&5
 
12378
 
 
12379
ac_cv_lib_dld_dld_link=no
 
12380
fi
 
12381
rm -f conftest.err conftest.$ac_objext \
 
12382
      conftest$ac_exeext conftest.$ac_ext
 
12383
LIBS=$ac_check_lib_save_LIBS
 
12384
fi
 
12385
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
 
12386
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
 
12387
if test $ac_cv_lib_dld_dld_link = yes; then
 
12388
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
 
12389
fi
 
12390
 
 
12391
 
 
12392
fi
 
12393
 
 
12394
 
 
12395
fi
 
12396
 
 
12397
 
 
12398
fi
 
12399
 
 
12400
 
 
12401
fi
 
12402
 
 
12403
 
 
12404
fi
 
12405
 
 
12406
    ;;
 
12407
  esac
 
12408
 
 
12409
  if test "x$lt_cv_dlopen" != xno; then
 
12410
    enable_dlopen=yes
 
12411
  else
 
12412
    enable_dlopen=no
 
12413
  fi
 
12414
 
 
12415
  case $lt_cv_dlopen in
 
12416
  dlopen)
 
12417
    save_CPPFLAGS="$CPPFLAGS"
 
12418
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
 
12419
 
 
12420
    save_LDFLAGS="$LDFLAGS"
 
12421
    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
 
12422
 
 
12423
    save_LIBS="$LIBS"
 
12424
    LIBS="$lt_cv_dlopen_libs $LIBS"
 
12425
 
 
12426
    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
 
12427
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
 
12428
if test "${lt_cv_dlopen_self+set}" = set; then
 
12429
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12430
else
 
12431
          if test "$cross_compiling" = yes; then :
 
12432
  lt_cv_dlopen_self=cross
 
12433
else
 
12434
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
12435
  lt_status=$lt_dlunknown
 
12436
  cat > conftest.$ac_ext <<EOF
 
12437
#line 12437 "configure"
 
12438
#include "confdefs.h"
 
12439
 
 
12440
#if HAVE_DLFCN_H
 
12441
#include <dlfcn.h>
 
12442
#endif
 
12443
 
 
12444
#include <stdio.h>
 
12445
 
 
12446
#ifdef RTLD_GLOBAL
 
12447
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
12448
#else
 
12449
#  ifdef DL_GLOBAL
 
12450
#    define LT_DLGLOBAL         DL_GLOBAL
 
12451
#  else
 
12452
#    define LT_DLGLOBAL         0
 
12453
#  endif
 
12454
#endif
 
12455
 
 
12456
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
12457
   find out it does not work in some platform. */
 
12458
#ifndef LT_DLLAZY_OR_NOW
 
12459
#  ifdef RTLD_LAZY
 
12460
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
12461
#  else
 
12462
#    ifdef DL_LAZY
 
12463
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
12464
#    else
 
12465
#      ifdef RTLD_NOW
 
12466
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
12467
#      else
 
12468
#        ifdef DL_NOW
 
12469
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
12470
#        else
 
12471
#          define LT_DLLAZY_OR_NOW      0
 
12472
#        endif
 
12473
#      endif
 
12474
#    endif
 
12475
#  endif
 
12476
#endif
 
12477
 
 
12478
#ifdef __cplusplus
 
12479
extern "C" void exit (int);
 
12480
#endif
 
12481
 
 
12482
void fnord() { int i=42;}
 
12483
int main ()
 
12484
{
 
12485
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
12486
  int status = $lt_dlunknown;
 
12487
 
 
12488
  if (self)
 
12489
    {
 
12490
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
12491
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
12492
      /* dlclose (self); */
 
12493
    }
 
12494
 
 
12495
    exit (status);
 
12496
}
 
12497
EOF
 
12498
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
12499
  (eval $ac_link) 2>&5
 
12500
  ac_status=$?
 
12501
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12502
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
 
12503
    (./conftest; exit; ) 2>/dev/null
 
12504
    lt_status=$?
 
12505
    case x$lt_status in
 
12506
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
 
12507
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
 
12508
      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
 
12509
    esac
 
12510
  else :
 
12511
    # compilation failed
 
12512
    lt_cv_dlopen_self=no
 
12513
  fi
 
12514
fi
 
12515
rm -fr conftest*
 
12516
 
 
12517
 
 
12518
fi
 
12519
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
 
12520
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
 
12521
 
 
12522
    if test "x$lt_cv_dlopen_self" = xyes; then
 
12523
      LDFLAGS="$LDFLAGS $link_static_flag"
 
12524
      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
 
12525
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
 
12526
if test "${lt_cv_dlopen_self_static+set}" = set; then
 
12527
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12528
else
 
12529
          if test "$cross_compiling" = yes; then :
 
12530
  lt_cv_dlopen_self_static=cross
 
12531
else
 
12532
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
12533
  lt_status=$lt_dlunknown
 
12534
  cat > conftest.$ac_ext <<EOF
 
12535
#line 12535 "configure"
 
12536
#include "confdefs.h"
 
12537
 
 
12538
#if HAVE_DLFCN_H
 
12539
#include <dlfcn.h>
 
12540
#endif
 
12541
 
 
12542
#include <stdio.h>
 
12543
 
 
12544
#ifdef RTLD_GLOBAL
 
12545
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
12546
#else
 
12547
#  ifdef DL_GLOBAL
 
12548
#    define LT_DLGLOBAL         DL_GLOBAL
 
12549
#  else
 
12550
#    define LT_DLGLOBAL         0
 
12551
#  endif
 
12552
#endif
 
12553
 
 
12554
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
12555
   find out it does not work in some platform. */
 
12556
#ifndef LT_DLLAZY_OR_NOW
 
12557
#  ifdef RTLD_LAZY
 
12558
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
12559
#  else
 
12560
#    ifdef DL_LAZY
 
12561
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
12562
#    else
 
12563
#      ifdef RTLD_NOW
 
12564
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
12565
#      else
 
12566
#        ifdef DL_NOW
 
12567
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
12568
#        else
 
12569
#          define LT_DLLAZY_OR_NOW      0
 
12570
#        endif
 
12571
#      endif
 
12572
#    endif
 
12573
#  endif
 
12574
#endif
 
12575
 
 
12576
#ifdef __cplusplus
 
12577
extern "C" void exit (int);
 
12578
#endif
 
12579
 
 
12580
void fnord() { int i=42;}
 
12581
int main ()
 
12582
{
 
12583
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
12584
  int status = $lt_dlunknown;
 
12585
 
 
12586
  if (self)
 
12587
    {
 
12588
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
12589
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
12590
      /* dlclose (self); */
 
12591
    }
 
12592
 
 
12593
    exit (status);
 
12594
}
 
12595
EOF
 
12596
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
12597
  (eval $ac_link) 2>&5
 
12598
  ac_status=$?
 
12599
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12600
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
 
12601
    (./conftest; exit; ) 2>/dev/null
 
12602
    lt_status=$?
 
12603
    case x$lt_status in
 
12604
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
 
12605
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
 
12606
      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
 
12607
    esac
 
12608
  else :
 
12609
    # compilation failed
 
12610
    lt_cv_dlopen_self_static=no
 
12611
  fi
 
12612
fi
 
12613
rm -fr conftest*
 
12614
 
 
12615
 
 
12616
fi
 
12617
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
 
12618
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
 
12619
    fi
 
12620
 
 
12621
    CPPFLAGS="$save_CPPFLAGS"
 
12622
    LDFLAGS="$save_LDFLAGS"
 
12623
    LIBS="$save_LIBS"
 
12624
    ;;
 
12625
  esac
 
12626
 
 
12627
  case $lt_cv_dlopen_self in
 
12628
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
 
12629
  *) enable_dlopen_self=unknown ;;
 
12630
  esac
 
12631
 
 
12632
  case $lt_cv_dlopen_self_static in
 
12633
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
 
12634
  *) enable_dlopen_self_static=unknown ;;
 
12635
  esac
 
12636
fi
 
12637
 
 
12638
 
 
12639
# The else clause should only fire when bootstrapping the
 
12640
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
12641
# with your package, and you will get complaints that there are
 
12642
# no rules to generate ltmain.sh.
 
12643
if test -f "$ltmain"; then
 
12644
  # See if we are running on zsh, and set the options which allow our commands through
 
12645
  # without removal of \ escapes.
 
12646
  if test -n "${ZSH_VERSION+set}" ; then
 
12647
    setopt NO_GLOB_SUBST
 
12648
  fi
 
12649
  # Now quote all the things that may contain metacharacters while being
 
12650
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
12651
  # variables and quote the copies for generation of the libtool script.
 
12652
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
 
12653
    SED SHELL STRIP \
 
12654
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
12655
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
12656
    deplibs_check_method reload_flag reload_cmds need_locks \
 
12657
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
12658
    lt_cv_sys_global_symbol_to_c_name_address \
 
12659
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
12660
    old_postinstall_cmds old_postuninstall_cmds \
 
12661
    compiler_CXX \
 
12662
    CC_CXX \
 
12663
    LD_CXX \
 
12664
    lt_prog_compiler_wl_CXX \
 
12665
    lt_prog_compiler_pic_CXX \
 
12666
    lt_prog_compiler_static_CXX \
 
12667
    lt_prog_compiler_no_builtin_flag_CXX \
 
12668
    export_dynamic_flag_spec_CXX \
 
12669
    thread_safe_flag_spec_CXX \
 
12670
    whole_archive_flag_spec_CXX \
 
12671
    enable_shared_with_static_runtimes_CXX \
 
12672
    old_archive_cmds_CXX \
 
12673
    old_archive_from_new_cmds_CXX \
 
12674
    predep_objects_CXX \
 
12675
    postdep_objects_CXX \
 
12676
    predeps_CXX \
 
12677
    postdeps_CXX \
 
12678
    compiler_lib_search_path_CXX \
 
12679
    archive_cmds_CXX \
 
12680
    archive_expsym_cmds_CXX \
 
12681
    postinstall_cmds_CXX \
 
12682
    postuninstall_cmds_CXX \
 
12683
    old_archive_from_expsyms_cmds_CXX \
 
12684
    allow_undefined_flag_CXX \
 
12685
    no_undefined_flag_CXX \
 
12686
    export_symbols_cmds_CXX \
 
12687
    hardcode_libdir_flag_spec_CXX \
 
12688
    hardcode_libdir_flag_spec_ld_CXX \
 
12689
    hardcode_libdir_separator_CXX \
 
12690
    hardcode_automatic_CXX \
 
12691
    module_cmds_CXX \
 
12692
    module_expsym_cmds_CXX \
 
12693
    lt_cv_prog_compiler_c_o_CXX \
 
12694
    exclude_expsyms_CXX \
 
12695
    include_expsyms_CXX; do
 
12696
 
 
12697
    case $var in
 
12698
    old_archive_cmds_CXX | \
 
12699
    old_archive_from_new_cmds_CXX | \
 
12700
    archive_cmds_CXX | \
 
12701
    archive_expsym_cmds_CXX | \
 
12702
    module_cmds_CXX | \
 
12703
    module_expsym_cmds_CXX | \
 
12704
    old_archive_from_expsyms_cmds_CXX | \
 
12705
    export_symbols_cmds_CXX | \
 
12706
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
12707
    postinstall_cmds | postuninstall_cmds | \
 
12708
    old_postinstall_cmds | old_postuninstall_cmds | \
 
12709
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
12710
      # Double-quote double-evaled strings.
 
12711
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
12712
      ;;
 
12713
    *)
 
12714
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
12715
      ;;
 
12716
    esac
 
12717
  done
 
12718
 
 
12719
  case $lt_echo in
 
12720
  *'\$0 --fallback-echo"')
 
12721
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
 
12722
    ;;
 
12723
  esac
 
12724
 
 
12725
cfgfile="$ofile"
 
12726
 
 
12727
  cat <<__EOF__ >> "$cfgfile"
 
12728
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
 
12729
 
 
12730
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
12731
 
 
12732
# Shell to use when invoking shell scripts.
 
12733
SHELL=$lt_SHELL
 
12734
 
 
12735
# Whether or not to build shared libraries.
 
12736
build_libtool_libs=$enable_shared
 
12737
 
 
12738
# Whether or not to build static libraries.
 
12739
build_old_libs=$enable_static
 
12740
 
 
12741
# Whether or not to add -lc for building shared libraries.
 
12742
build_libtool_need_lc=$archive_cmds_need_lc_CXX
 
12743
 
 
12744
# Whether or not to disallow shared libs when runtime libs are static
 
12745
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
 
12746
 
 
12747
# Whether or not to optimize for fast installation.
 
12748
fast_install=$enable_fast_install
 
12749
 
 
12750
# The host system.
 
12751
host_alias=$host_alias
 
12752
host=$host
 
12753
 
 
12754
# An echo program that does not interpret backslashes.
 
12755
echo=$lt_echo
 
12756
 
 
12757
# The archiver.
 
12758
AR=$lt_AR
 
12759
AR_FLAGS=$lt_AR_FLAGS
 
12760
 
 
12761
# A C compiler.
 
12762
LTCC=$lt_LTCC
 
12763
 
 
12764
# A language-specific compiler.
 
12765
CC=$lt_compiler_CXX
 
12766
 
 
12767
# Is the compiler the GNU C compiler?
 
12768
with_gcc=$GCC_CXX
 
12769
 
 
12770
# An ERE matcher.
 
12771
EGREP=$lt_EGREP
 
12772
 
 
12773
# The linker used to build libraries.
 
12774
LD=$lt_LD_CXX
 
12775
 
 
12776
# Whether we need hard or soft links.
 
12777
LN_S=$lt_LN_S
 
12778
 
 
12779
# A BSD-compatible nm program.
 
12780
NM=$lt_NM
 
12781
 
 
12782
# A symbol stripping program
 
12783
STRIP=$lt_STRIP
 
12784
 
 
12785
# Used to examine libraries when file_magic_cmd begins "file"
 
12786
MAGIC_CMD=$MAGIC_CMD
 
12787
 
 
12788
# Used on cygwin: DLL creation program.
 
12789
DLLTOOL="$DLLTOOL"
 
12790
 
 
12791
# Used on cygwin: object dumper.
 
12792
OBJDUMP="$OBJDUMP"
 
12793
 
 
12794
# Used on cygwin: assembler.
 
12795
AS="$AS"
 
12796
 
 
12797
# The name of the directory that contains temporary libtool files.
 
12798
objdir=$objdir
 
12799
 
 
12800
# How to create reloadable object files.
 
12801
reload_flag=$lt_reload_flag
 
12802
reload_cmds=$lt_reload_cmds
 
12803
 
 
12804
# How to pass a linker flag through the compiler.
 
12805
wl=$lt_lt_prog_compiler_wl_CXX
 
12806
 
 
12807
# Object file suffix (normally "o").
 
12808
objext="$ac_objext"
 
12809
 
 
12810
# Old archive suffix (normally "a").
 
12811
libext="$libext"
 
12812
 
 
12813
# Shared library suffix (normally ".so").
 
12814
shrext_cmds='$shrext_cmds'
 
12815
 
 
12816
# Executable file suffix (normally "").
 
12817
exeext="$exeext"
 
12818
 
 
12819
# Additional compiler flags for building library objects.
 
12820
pic_flag=$lt_lt_prog_compiler_pic_CXX
 
12821
pic_mode=$pic_mode
 
12822
 
 
12823
# What is the maximum length of a command?
 
12824
max_cmd_len=$lt_cv_sys_max_cmd_len
 
12825
 
 
12826
# Does compiler simultaneously support -c and -o options?
 
12827
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
 
12828
 
 
12829
# Must we lock files when doing compilation ?
 
12830
need_locks=$lt_need_locks
 
12831
 
 
12832
# Do we need the lib prefix for modules?
 
12833
need_lib_prefix=$need_lib_prefix
 
12834
 
 
12835
# Do we need a version for libraries?
 
12836
need_version=$need_version
 
12837
 
 
12838
# Whether dlopen is supported.
 
12839
dlopen_support=$enable_dlopen
 
12840
 
 
12841
# Whether dlopen of programs is supported.
 
12842
dlopen_self=$enable_dlopen_self
 
12843
 
 
12844
# Whether dlopen of statically linked programs is supported.
 
12845
dlopen_self_static=$enable_dlopen_self_static
 
12846
 
 
12847
# Compiler flag to prevent dynamic linking.
 
12848
link_static_flag=$lt_lt_prog_compiler_static_CXX
 
12849
 
 
12850
# Compiler flag to turn off builtin functions.
 
12851
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
 
12852
 
 
12853
# Compiler flag to allow reflexive dlopens.
 
12854
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
 
12855
 
 
12856
# Compiler flag to generate shared objects directly from archives.
 
12857
whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
 
12858
 
 
12859
# Compiler flag to generate thread-safe objects.
 
12860
thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
 
12861
 
 
12862
# Library versioning type.
 
12863
version_type=$version_type
 
12864
 
 
12865
# Format of library name prefix.
 
12866
libname_spec=$lt_libname_spec
 
12867
 
 
12868
# List of archive names.  First name is the real one, the rest are links.
 
12869
# The last name is the one that the linker finds with -lNAME.
 
12870
library_names_spec=$lt_library_names_spec
 
12871
 
 
12872
# The coded name of the library, if different from the real name.
 
12873
soname_spec=$lt_soname_spec
 
12874
 
 
12875
# Commands used to build and install an old-style archive.
 
12876
RANLIB=$lt_RANLIB
 
12877
old_archive_cmds=$lt_old_archive_cmds_CXX
 
12878
old_postinstall_cmds=$lt_old_postinstall_cmds
 
12879
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
12880
 
 
12881
# Create an old-style archive from a shared archive.
 
12882
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
 
12883
 
 
12884
# Create a temporary old-style archive to link instead of a shared archive.
 
12885
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
 
12886
 
 
12887
# Commands used to build and install a shared archive.
 
12888
archive_cmds=$lt_archive_cmds_CXX
 
12889
archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
 
12890
postinstall_cmds=$lt_postinstall_cmds
 
12891
postuninstall_cmds=$lt_postuninstall_cmds
 
12892
 
 
12893
# Commands used to build a loadable module (assumed same as above if empty)
 
12894
module_cmds=$lt_module_cmds_CXX
 
12895
module_expsym_cmds=$lt_module_expsym_cmds_CXX
 
12896
 
 
12897
# Commands to strip libraries.
 
12898
old_striplib=$lt_old_striplib
 
12899
striplib=$lt_striplib
 
12900
 
 
12901
# Dependencies to place before the objects being linked to create a
 
12902
# shared library.
 
12903
predep_objects=$lt_predep_objects_CXX
 
12904
 
 
12905
# Dependencies to place after the objects being linked to create a
 
12906
# shared library.
 
12907
postdep_objects=$lt_postdep_objects_CXX
 
12908
 
 
12909
# Dependencies to place before the objects being linked to create a
 
12910
# shared library.
 
12911
predeps=$lt_predeps_CXX
 
12912
 
 
12913
# Dependencies to place after the objects being linked to create a
 
12914
# shared library.
 
12915
postdeps=$lt_postdeps_CXX
 
12916
 
 
12917
# The library search path used internally by the compiler when linking
 
12918
# a shared library.
 
12919
compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
 
12920
 
 
12921
# Method to check whether dependent libraries are shared objects.
 
12922
deplibs_check_method=$lt_deplibs_check_method
 
12923
 
 
12924
# Command to use when deplibs_check_method == file_magic.
 
12925
file_magic_cmd=$lt_file_magic_cmd
 
12926
 
 
12927
# Flag that allows shared libraries with undefined symbols to be built.
 
12928
allow_undefined_flag=$lt_allow_undefined_flag_CXX
 
12929
 
 
12930
# Flag that forces no undefined symbols.
 
12931
no_undefined_flag=$lt_no_undefined_flag_CXX
 
12932
 
 
12933
# Commands used to finish a libtool library installation in a directory.
 
12934
finish_cmds=$lt_finish_cmds
 
12935
 
 
12936
# Same as above, but a single script fragment to be evaled but not shown.
 
12937
finish_eval=$lt_finish_eval
 
12938
 
 
12939
# Take the output of nm and produce a listing of raw symbols and C names.
 
12940
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
12941
 
 
12942
# Transform the output of nm in a proper C declaration
 
12943
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
12944
 
 
12945
# Transform the output of nm in a C name address pair
 
12946
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
12947
 
 
12948
# This is the shared library runtime path variable.
 
12949
runpath_var=$runpath_var
 
12950
 
 
12951
# This is the shared library path variable.
 
12952
shlibpath_var=$shlibpath_var
 
12953
 
 
12954
# Is shlibpath searched before the hard-coded library search path?
 
12955
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
12956
 
 
12957
# How to hardcode a shared library path into an executable.
 
12958
hardcode_action=$hardcode_action_CXX
 
12959
 
 
12960
# Whether we should hardcode library paths into libraries.
 
12961
hardcode_into_libs=$hardcode_into_libs
 
12962
 
 
12963
# Flag to hardcode \$libdir into a binary during linking.
 
12964
# This must work even if \$libdir does not exist.
 
12965
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
 
12966
 
 
12967
# If ld is used when linking, flag to hardcode \$libdir into
 
12968
# a binary during linking. This must work even if \$libdir does
 
12969
# not exist.
 
12970
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
 
12971
 
 
12972
# Whether we need a single -rpath flag with a separated argument.
 
12973
hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
 
12974
 
 
12975
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
 
12976
# resulting binary.
 
12977
hardcode_direct=$hardcode_direct_CXX
 
12978
 
 
12979
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
12980
# resulting binary.
 
12981
hardcode_minus_L=$hardcode_minus_L_CXX
 
12982
 
 
12983
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
12984
# the resulting binary.
 
12985
hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
 
12986
 
 
12987
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
12988
# and all subsequent libraries and executables linked against it.
 
12989
hardcode_automatic=$hardcode_automatic_CXX
 
12990
 
 
12991
# Variables whose values should be saved in libtool wrapper scripts and
 
12992
# restored at relink time.
 
12993
variables_saved_for_relink="$variables_saved_for_relink"
 
12994
 
 
12995
# Whether libtool must link a program against all its dependency libraries.
 
12996
link_all_deplibs=$link_all_deplibs_CXX
 
12997
 
 
12998
# Compile-time system search path for libraries
 
12999
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
13000
 
 
13001
# Run-time system search path for libraries
 
13002
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
13003
 
 
13004
# Fix the shell variable \$srcfile for the compiler.
 
13005
fix_srcfile_path="$fix_srcfile_path_CXX"
 
13006
 
 
13007
# Set to yes if exported symbols are required.
 
13008
always_export_symbols=$always_export_symbols_CXX
 
13009
 
 
13010
# The commands to list exported symbols.
 
13011
export_symbols_cmds=$lt_export_symbols_cmds_CXX
 
13012
 
 
13013
# The commands to extract the exported symbol list from a shared archive.
 
13014
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
13015
 
 
13016
# Symbols that should not be listed in the preloaded symbols.
 
13017
exclude_expsyms=$lt_exclude_expsyms_CXX
 
13018
 
 
13019
# Symbols that must always be exported.
 
13020
include_expsyms=$lt_include_expsyms_CXX
 
13021
 
 
13022
# ### END LIBTOOL TAG CONFIG: $tagname
 
13023
 
 
13024
__EOF__
 
13025
 
 
13026
 
 
13027
else
 
13028
  # If there is no Makefile yet, we rely on a make rule to execute
 
13029
  # `config.status --recheck' to rerun these tests and create the
 
13030
  # libtool script then.
 
13031
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
 
13032
  if test -f "$ltmain_in"; then
 
13033
    test -f Makefile && make "$ltmain"
 
13034
  fi
 
13035
fi
 
13036
 
 
13037
 
 
13038
ac_ext=c
 
13039
ac_cpp='$CPP $CPPFLAGS'
 
13040
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
13041
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
13042
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
13043
 
 
13044
CC=$lt_save_CC
 
13045
LDCXX=$LD
 
13046
LD=$lt_save_LD
 
13047
GCC=$lt_save_GCC
 
13048
with_gnu_ldcxx=$with_gnu_ld
 
13049
with_gnu_ld=$lt_save_with_gnu_ld
 
13050
lt_cv_path_LDCXX=$lt_cv_path_LD
 
13051
lt_cv_path_LD=$lt_save_path_LD
 
13052
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
 
13053
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
 
13054
 
 
13055
        else
 
13056
          tagname=""
 
13057
        fi
 
13058
        ;;
 
13059
 
 
13060
      F77)
 
13061
        if test -n "$F77" && test "X$F77" != "Xno"; then
 
13062
 
 
13063
ac_ext=f
 
13064
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
 
13065
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
13066
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
 
13067
 
 
13068
 
 
13069
archive_cmds_need_lc_F77=no
 
13070
allow_undefined_flag_F77=
 
13071
always_export_symbols_F77=no
 
13072
archive_expsym_cmds_F77=
 
13073
export_dynamic_flag_spec_F77=
 
13074
hardcode_direct_F77=no
 
13075
hardcode_libdir_flag_spec_F77=
 
13076
hardcode_libdir_flag_spec_ld_F77=
 
13077
hardcode_libdir_separator_F77=
 
13078
hardcode_minus_L_F77=no
 
13079
hardcode_automatic_F77=no
 
13080
module_cmds_F77=
 
13081
module_expsym_cmds_F77=
 
13082
link_all_deplibs_F77=unknown
 
13083
old_archive_cmds_F77=$old_archive_cmds
 
13084
no_undefined_flag_F77=
 
13085
whole_archive_flag_spec_F77=
 
13086
enable_shared_with_static_runtimes_F77=no
 
13087
 
 
13088
# Source file extension for f77 test sources.
 
13089
ac_ext=f
 
13090
 
 
13091
# Object file extension for compiled f77 test sources.
 
13092
objext=o
 
13093
objext_F77=$objext
 
13094
 
 
13095
# Code to be used in simple compile tests
 
13096
lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
 
13097
 
 
13098
# Code to be used in simple link tests
 
13099
lt_simple_link_test_code="      program t\n      end\n"
 
13100
 
 
13101
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
13102
 
 
13103
# If no C compiler was specified, use CC.
 
13104
LTCC=${LTCC-"$CC"}
 
13105
 
 
13106
# Allow CC to be a program name with arguments.
 
13107
compiler=$CC
 
13108
 
 
13109
 
 
13110
# Allow CC to be a program name with arguments.
 
13111
lt_save_CC="$CC"
 
13112
CC=${F77-"f77"}
 
13113
compiler=$CC
 
13114
compiler_F77=$CC
 
13115
cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
 
13116
 
 
13117
echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
 
13118
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
 
13119
echo "$as_me:$LINENO: result: $can_build_shared" >&5
 
13120
echo "${ECHO_T}$can_build_shared" >&6
 
13121
 
 
13122
echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
 
13123
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
 
13124
test "$can_build_shared" = "no" && enable_shared=no
 
13125
 
 
13126
# On AIX, shared libraries and static libraries use the same namespace, and
 
13127
# are all built from PIC.
 
13128
case "$host_os" in
 
13129
aix3*)
 
13130
  test "$enable_shared" = yes && enable_static=no
 
13131
  if test -n "$RANLIB"; then
 
13132
    archive_cmds="$archive_cmds~\$RANLIB \$lib"
 
13133
    postinstall_cmds='$RANLIB $lib'
 
13134
  fi
 
13135
  ;;
 
13136
aix4* | aix5*)
 
13137
  test "$enable_shared" = yes && enable_static=no
 
13138
  ;;
 
13139
esac
 
13140
echo "$as_me:$LINENO: result: $enable_shared" >&5
 
13141
echo "${ECHO_T}$enable_shared" >&6
 
13142
 
 
13143
echo "$as_me:$LINENO: checking whether to build static libraries" >&5
 
13144
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
 
13145
# Make sure either enable_shared or enable_static is yes.
 
13146
test "$enable_shared" = yes || enable_static=yes
 
13147
echo "$as_me:$LINENO: result: $enable_static" >&5
 
13148
echo "${ECHO_T}$enable_static" >&6
 
13149
 
 
13150
test "$ld_shlibs_F77" = no && can_build_shared=no
 
13151
 
 
13152
GCC_F77="$G77"
 
13153
LD_F77="$LD"
 
13154
 
 
13155
lt_prog_compiler_wl_F77=
 
13156
lt_prog_compiler_pic_F77=
 
13157
lt_prog_compiler_static_F77=
 
13158
 
 
13159
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
 
13160
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
 
13161
 
 
13162
  if test "$GCC" = yes; then
 
13163
    lt_prog_compiler_wl_F77='-Wl,'
 
13164
    lt_prog_compiler_static_F77='-static'
 
13165
 
 
13166
    case $host_os in
 
13167
      aix*)
 
13168
      # All AIX code is PIC.
 
13169
      if test "$host_cpu" = ia64; then
 
13170
        # AIX 5 now supports IA64 processor
 
13171
        lt_prog_compiler_static_F77='-Bstatic'
 
13172
      fi
 
13173
      ;;
 
13174
 
 
13175
    amigaos*)
 
13176
      # FIXME: we need at least 68020 code to build shared libraries, but
 
13177
      # adding the `-m68020' flag to GCC prevents building anything better,
 
13178
      # like `-m68040'.
 
13179
      lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
 
13180
      ;;
 
13181
 
 
13182
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
13183
      # PIC is the default for these OSes.
 
13184
      ;;
 
13185
 
 
13186
    mingw* | pw32* | os2*)
 
13187
      # This hack is so that the source file can tell whether it is being
 
13188
      # built for inclusion in a dll (and should export symbols for example).
 
13189
      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
 
13190
      ;;
 
13191
 
 
13192
    darwin* | rhapsody*)
 
13193
      # PIC is the default on this platform
 
13194
      # Common symbols not allowed in MH_DYLIB files
 
13195
      lt_prog_compiler_pic_F77='-fno-common'
 
13196
      ;;
 
13197
 
 
13198
    msdosdjgpp*)
 
13199
      # Just because we use GCC doesn't mean we suddenly get shared libraries
 
13200
      # on systems that don't support them.
 
13201
      lt_prog_compiler_can_build_shared_F77=no
 
13202
      enable_shared=no
 
13203
      ;;
 
13204
 
 
13205
    sysv4*MP*)
 
13206
      if test -d /usr/nec; then
 
13207
        lt_prog_compiler_pic_F77=-Kconform_pic
 
13208
      fi
 
13209
      ;;
 
13210
 
 
13211
    hpux*)
 
13212
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
13213
      # not for PA HP-UX.
 
13214
      case "$host_cpu" in
 
13215
      hppa*64*|ia64*)
 
13216
        # +Z the default
 
13217
        ;;
 
13218
      *)
 
13219
        lt_prog_compiler_pic_F77='-fPIC'
 
13220
        ;;
 
13221
      esac
 
13222
      ;;
 
13223
 
 
13224
    *)
 
13225
      lt_prog_compiler_pic_F77='-fPIC'
 
13226
      ;;
 
13227
    esac
 
13228
  else
 
13229
    # PORTME Check for flag to pass linker flags through the system compiler.
 
13230
    case $host_os in
 
13231
    aix*)
 
13232
      lt_prog_compiler_wl_F77='-Wl,'
 
13233
      if test "$host_cpu" = ia64; then
 
13234
        # AIX 5 now supports IA64 processor
 
13235
        lt_prog_compiler_static_F77='-Bstatic'
 
13236
      else
 
13237
        lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
 
13238
      fi
 
13239
      ;;
 
13240
 
 
13241
    mingw* | pw32* | os2*)
 
13242
      # This hack is so that the source file can tell whether it is being
 
13243
      # built for inclusion in a dll (and should export symbols for example).
 
13244
      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
 
13245
      ;;
 
13246
 
 
13247
    hpux9* | hpux10* | hpux11*)
 
13248
      lt_prog_compiler_wl_F77='-Wl,'
 
13249
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
13250
      # not for PA HP-UX.
 
13251
      case "$host_cpu" in
 
13252
      hppa*64*|ia64*)
 
13253
        # +Z the default
 
13254
        ;;
 
13255
      *)
 
13256
        lt_prog_compiler_pic_F77='+Z'
 
13257
        ;;
 
13258
      esac
 
13259
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
 
13260
      lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
 
13261
      ;;
 
13262
 
 
13263
    irix5* | irix6* | nonstopux*)
 
13264
      lt_prog_compiler_wl_F77='-Wl,'
 
13265
      # PIC (with -KPIC) is the default.
 
13266
      lt_prog_compiler_static_F77='-non_shared'
 
13267
      ;;
 
13268
 
 
13269
    newsos6)
 
13270
      lt_prog_compiler_pic_F77='-KPIC'
 
13271
      lt_prog_compiler_static_F77='-Bstatic'
 
13272
      ;;
 
13273
 
 
13274
    linux*)
 
13275
      case $CC in
 
13276
      icc* | ecc*)
 
13277
        lt_prog_compiler_wl_F77='-Wl,'
 
13278
        lt_prog_compiler_pic_F77='-KPIC'
 
13279
        lt_prog_compiler_static_F77='-static'
 
13280
        ;;
 
13281
      ccc*)
 
13282
        lt_prog_compiler_wl_F77='-Wl,'
 
13283
        # All Alpha code is PIC.
 
13284
        lt_prog_compiler_static_F77='-non_shared'
 
13285
        ;;
 
13286
      esac
 
13287
      ;;
 
13288
 
 
13289
    osf3* | osf4* | osf5*)
 
13290
      lt_prog_compiler_wl_F77='-Wl,'
 
13291
      # All OSF/1 code is PIC.
 
13292
      lt_prog_compiler_static_F77='-non_shared'
 
13293
      ;;
 
13294
 
 
13295
    sco3.2v5*)
 
13296
      lt_prog_compiler_pic_F77='-Kpic'
 
13297
      lt_prog_compiler_static_F77='-dn'
 
13298
      ;;
 
13299
 
 
13300
    solaris*)
 
13301
      lt_prog_compiler_wl_F77='-Wl,'
 
13302
      lt_prog_compiler_pic_F77='-KPIC'
 
13303
      lt_prog_compiler_static_F77='-Bstatic'
 
13304
      ;;
 
13305
 
 
13306
    sunos4*)
 
13307
      lt_prog_compiler_wl_F77='-Qoption ld '
 
13308
      lt_prog_compiler_pic_F77='-PIC'
 
13309
      lt_prog_compiler_static_F77='-Bstatic'
 
13310
      ;;
 
13311
 
 
13312
    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
13313
      lt_prog_compiler_wl_F77='-Wl,'
 
13314
      lt_prog_compiler_pic_F77='-KPIC'
 
13315
      lt_prog_compiler_static_F77='-Bstatic'
 
13316
      ;;
 
13317
 
 
13318
    sysv4*MP*)
 
13319
      if test -d /usr/nec ;then
 
13320
        lt_prog_compiler_pic_F77='-Kconform_pic'
 
13321
        lt_prog_compiler_static_F77='-Bstatic'
 
13322
      fi
 
13323
      ;;
 
13324
 
 
13325
    uts4*)
 
13326
      lt_prog_compiler_pic_F77='-pic'
 
13327
      lt_prog_compiler_static_F77='-Bstatic'
 
13328
      ;;
 
13329
 
 
13330
    *)
 
13331
      lt_prog_compiler_can_build_shared_F77=no
 
13332
      ;;
 
13333
    esac
 
13334
  fi
 
13335
 
 
13336
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
 
13337
echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
 
13338
 
 
13339
#
 
13340
# Check to make sure the PIC flag actually works.
 
13341
#
 
13342
if test -n "$lt_prog_compiler_pic_F77"; then
 
13343
 
 
13344
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
 
13345
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
 
13346
if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
 
13347
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
13348
else
 
13349
  lt_prog_compiler_pic_works_F77=no
 
13350
  ac_outfile=conftest.$ac_objext
 
13351
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
13352
   lt_compiler_flag="$lt_prog_compiler_pic_F77"
 
13353
   # Insert the option either (1) after the last *FLAGS variable, or
 
13354
   # (2) before a word containing "conftest.", or (3) at the end.
 
13355
   # Note that $ac_compile itself does not contain backslashes and begins
 
13356
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
13357
   # The option is referenced via a variable to avoid confusing sed.
 
13358
   lt_compile=`echo "$ac_compile" | $SED \
 
13359
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
13360
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
13361
   -e 's:$: $lt_compiler_flag:'`
 
13362
   (eval echo "\"\$as_me:13362: $lt_compile\"" >&5)
 
13363
   (eval "$lt_compile" 2>conftest.err)
 
13364
   ac_status=$?
 
13365
   cat conftest.err >&5
 
13366
   echo "$as_me:13366: \$? = $ac_status" >&5
 
13367
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
13368
     # The compiler can only warn and ignore the option if not recognized
 
13369
     # So say no if there are warnings
 
13370
     if test ! -s conftest.err; then
 
13371
       lt_prog_compiler_pic_works_F77=yes
 
13372
     fi
 
13373
   fi
 
13374
   $rm conftest*
 
13375
 
 
13376
fi
 
13377
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
 
13378
echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
 
13379
 
 
13380
if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
 
13381
    case $lt_prog_compiler_pic_F77 in
 
13382
     "" | " "*) ;;
 
13383
     *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
 
13384
     esac
 
13385
else
 
13386
    lt_prog_compiler_pic_F77=
 
13387
     lt_prog_compiler_can_build_shared_F77=no
 
13388
fi
 
13389
 
 
13390
fi
 
13391
case "$host_os" in
 
13392
  # For platforms which do not support PIC, -DPIC is meaningless:
 
13393
  *djgpp*)
 
13394
    lt_prog_compiler_pic_F77=
 
13395
    ;;
 
13396
  *)
 
13397
    lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
 
13398
    ;;
 
13399
esac
 
13400
 
 
13401
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
13402
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
 
13403
if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
 
13404
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
13405
else
 
13406
  lt_cv_prog_compiler_c_o_F77=no
 
13407
   $rm -r conftest 2>/dev/null
 
13408
   mkdir conftest
 
13409
   cd conftest
 
13410
   mkdir out
 
13411
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
13412
 
 
13413
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
13414
   # Insert the option either (1) after the last *FLAGS variable, or
 
13415
   # (2) before a word containing "conftest.", or (3) at the end.
 
13416
   # Note that $ac_compile itself does not contain backslashes and begins
 
13417
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
13418
   lt_compile=`echo "$ac_compile" | $SED \
 
13419
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
13420
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
13421
   -e 's:$: $lt_compiler_flag:'`
 
13422
   (eval echo "\"\$as_me:13422: $lt_compile\"" >&5)
 
13423
   (eval "$lt_compile" 2>out/conftest.err)
 
13424
   ac_status=$?
 
13425
   cat out/conftest.err >&5
 
13426
   echo "$as_me:13426: \$? = $ac_status" >&5
 
13427
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
13428
   then
 
13429
     # The compiler can only warn and ignore the option if not recognized
 
13430
     # So say no if there are warnings
 
13431
     if test ! -s out/conftest.err; then
 
13432
       lt_cv_prog_compiler_c_o_F77=yes
 
13433
     fi
 
13434
   fi
 
13435
   chmod u+w .
 
13436
   $rm conftest*
 
13437
   # SGI C++ compiler will create directory out/ii_files/ for
 
13438
   # template instantiation
 
13439
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
 
13440
   $rm out/* && rmdir out
 
13441
   cd ..
 
13442
   rmdir conftest
 
13443
   $rm conftest*
 
13444
 
 
13445
fi
 
13446
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
 
13447
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
 
13448
 
 
13449
 
 
13450
hard_links="nottested"
 
13451
if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
 
13452
  # do not overwrite the value of need_locks provided by the user
 
13453
  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
 
13454
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
 
13455
  hard_links=yes
 
13456
  $rm conftest*
 
13457
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
13458
  touch conftest.a
 
13459
  ln conftest.a conftest.b 2>&5 || hard_links=no
 
13460
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
13461
  echo "$as_me:$LINENO: result: $hard_links" >&5
 
13462
echo "${ECHO_T}$hard_links" >&6
 
13463
  if test "$hard_links" = no; then
 
13464
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
 
13465
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
 
13466
    need_locks=warn
 
13467
  fi
 
13468
else
 
13469
  need_locks=no
 
13470
fi
 
13471
 
 
13472
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
13473
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
 
13474
 
 
13475
  runpath_var=
 
13476
  allow_undefined_flag_F77=
 
13477
  enable_shared_with_static_runtimes_F77=no
 
13478
  archive_cmds_F77=
 
13479
  archive_expsym_cmds_F77=
 
13480
  old_archive_From_new_cmds_F77=
 
13481
  old_archive_from_expsyms_cmds_F77=
 
13482
  export_dynamic_flag_spec_F77=
 
13483
  whole_archive_flag_spec_F77=
 
13484
  thread_safe_flag_spec_F77=
 
13485
  hardcode_libdir_flag_spec_F77=
 
13486
  hardcode_libdir_flag_spec_ld_F77=
 
13487
  hardcode_libdir_separator_F77=
 
13488
  hardcode_direct_F77=no
 
13489
  hardcode_minus_L_F77=no
 
13490
  hardcode_shlibpath_var_F77=unsupported
 
13491
  link_all_deplibs_F77=unknown
 
13492
  hardcode_automatic_F77=no
 
13493
  module_cmds_F77=
 
13494
  module_expsym_cmds_F77=
 
13495
  always_export_symbols_F77=no
 
13496
  export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
13497
  # include_expsyms should be a list of space-separated symbols to be *always*
 
13498
  # included in the symbol list
 
13499
  include_expsyms_F77=
 
13500
  # exclude_expsyms can be an extended regexp of symbols to exclude
 
13501
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
 
13502
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
 
13503
  # as well as any symbol that contains `d'.
 
13504
  exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
 
13505
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
 
13506
  # platforms (ab)use it in PIC code, but their linkers get confused if
 
13507
  # the symbol is explicitly referenced.  Since portable code cannot
 
13508
  # rely on this symbol name, it's probably fine to never include it in
 
13509
  # preloaded symbol tables.
 
13510
  extract_expsyms_cmds=
 
13511
 
 
13512
  case $host_os in
 
13513
  cygwin* | mingw* | pw32*)
 
13514
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
 
13515
    # When not using gcc, we currently assume that we are using
 
13516
    # Microsoft Visual C++.
 
13517
    if test "$GCC" != yes; then
 
13518
      with_gnu_ld=no
 
13519
    fi
 
13520
    ;;
 
13521
  openbsd*)
 
13522
    with_gnu_ld=no
 
13523
    ;;
 
13524
  esac
 
13525
 
 
13526
  ld_shlibs_F77=yes
 
13527
  if test "$with_gnu_ld" = yes; then
 
13528
    # If archive_cmds runs LD, not CC, wlarc should be empty
 
13529
    wlarc='${wl}'
 
13530
 
 
13531
    # See if GNU ld supports shared libraries.
 
13532
    case $host_os in
 
13533
    aix3* | aix4* | aix5*)
 
13534
      # On AIX/PPC, the GNU linker is very broken
 
13535
      if test "$host_cpu" != ia64; then
 
13536
        ld_shlibs_F77=no
 
13537
        cat <<EOF 1>&2
 
13538
 
 
13539
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
 
13540
*** to be unable to reliably create shared libraries on AIX.
 
13541
*** Therefore, libtool is disabling shared libraries support.  If you
 
13542
*** really care for shared libraries, you may want to modify your PATH
 
13543
*** so that a non-GNU linker is found, and then restart.
 
13544
 
 
13545
EOF
 
13546
      fi
 
13547
      ;;
 
13548
 
 
13549
    amigaos*)
 
13550
      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)'
 
13551
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
13552
      hardcode_minus_L_F77=yes
 
13553
 
 
13554
      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
 
13555
      # that the semantics of dynamic libraries on AmigaOS, at least up
 
13556
      # to version 4, is to share data among multiple programs linked
 
13557
      # with the same dynamic library.  Since this doesn't match the
 
13558
      # behavior of shared libraries on other platforms, we can't use
 
13559
      # them.
 
13560
      ld_shlibs_F77=no
 
13561
      ;;
 
13562
 
 
13563
    beos*)
 
13564
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
13565
        allow_undefined_flag_F77=unsupported
 
13566
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
13567
        # support --undefined.  This deserves some investigation.  FIXME
 
13568
        archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
13569
      else
 
13570
        ld_shlibs_F77=no
 
13571
      fi
 
13572
      ;;
 
13573
 
 
13574
    cygwin* | mingw* | pw32*)
 
13575
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
 
13576
      # as there is no search path for DLLs.
 
13577
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
13578
      allow_undefined_flag_F77=unsupported
 
13579
      always_export_symbols_F77=no
 
13580
      enable_shared_with_static_runtimes_F77=yes
 
13581
      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
 
13582
 
 
13583
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
 
13584
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
 
13585
        # If the export-symbols file already is a .def file (1st line
 
13586
        # is EXPORTS), use it as is; otherwise, prepend...
 
13587
        archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
13588
          cp $export_symbols $output_objdir/$soname.def;
 
13589
        else
 
13590
          echo EXPORTS > $output_objdir/$soname.def;
 
13591
          cat $export_symbols >> $output_objdir/$soname.def;
 
13592
        fi~
 
13593
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
 
13594
      else
 
13595
        ld_shlibs=no
 
13596
      fi
 
13597
      ;;
 
13598
 
 
13599
    netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
 
13600
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
13601
        archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
 
13602
        wlarc=
 
13603
      else
 
13604
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
13605
        archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
13606
      fi
 
13607
      ;;
 
13608
 
 
13609
    solaris* | sysv5*)
 
13610
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
 
13611
        ld_shlibs_F77=no
 
13612
        cat <<EOF 1>&2
 
13613
 
 
13614
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
 
13615
*** create shared libraries on Solaris systems.  Therefore, libtool
 
13616
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
13617
*** binutils to release 2.9.1 or newer.  Another option is to modify
 
13618
*** your PATH or compiler configuration so that the native linker is
 
13619
*** used, and then restart.
 
13620
 
 
13621
EOF
 
13622
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
13623
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
13624
        archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
13625
      else
 
13626
        ld_shlibs_F77=no
 
13627
      fi
 
13628
      ;;
 
13629
 
 
13630
    sunos4*)
 
13631
      archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
13632
      wlarc=
 
13633
      hardcode_direct_F77=yes
 
13634
      hardcode_shlibpath_var_F77=no
 
13635
      ;;
 
13636
 
 
13637
  linux*)
 
13638
    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
13639
        tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
13640
        archive_cmds_F77="$tmp_archive_cmds"
 
13641
      supports_anon_versioning=no
 
13642
      case `$LD -v 2>/dev/null` in
 
13643
        *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
 
13644
        *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
 
13645
        *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
 
13646
        *\ 2.11.*) ;; # other 2.11 versions
 
13647
        *) supports_anon_versioning=yes ;;
 
13648
      esac
 
13649
      if test $supports_anon_versioning = yes; then
 
13650
        archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
 
13651
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
13652
$echo "local: *; };" >> $output_objdir/$libname.ver~
 
13653
        $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
13654
      else
 
13655
        archive_expsym_cmds_F77="$tmp_archive_cmds"
 
13656
      fi
 
13657
      link_all_deplibs_F77=no
 
13658
    else
 
13659
      ld_shlibs_F77=no
 
13660
    fi
 
13661
    ;;
 
13662
 
 
13663
    *)
 
13664
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
13665
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
13666
        archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
13667
      else
 
13668
        ld_shlibs_F77=no
 
13669
      fi
 
13670
      ;;
 
13671
    esac
 
13672
 
 
13673
    if test "$ld_shlibs_F77" = yes; then
 
13674
      runpath_var=LD_RUN_PATH
 
13675
      hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
 
13676
      export_dynamic_flag_spec_F77='${wl}--export-dynamic'
 
13677
      # ancient GNU ld didn't support --whole-archive et. al.
 
13678
      if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
 
13679
        whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
13680
      else
 
13681
        whole_archive_flag_spec_F77=
 
13682
      fi
 
13683
    fi
 
13684
  else
 
13685
    # PORTME fill in a description of your system's linker (not GNU ld)
 
13686
    case $host_os in
 
13687
    aix3*)
 
13688
      allow_undefined_flag_F77=unsupported
 
13689
      always_export_symbols_F77=yes
 
13690
      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'
 
13691
      # Note: this linker hardcodes the directories in LIBPATH if there
 
13692
      # are no directories specified by -L.
 
13693
      hardcode_minus_L_F77=yes
 
13694
      if test "$GCC" = yes && test -z "$link_static_flag"; then
 
13695
        # Neither direct hardcoding nor static linking is supported with a
 
13696
        # broken collect2.
 
13697
        hardcode_direct_F77=unsupported
 
13698
      fi
 
13699
      ;;
 
13700
 
 
13701
    aix4* | aix5*)
 
13702
      if test "$host_cpu" = ia64; then
 
13703
        # On IA64, the linker does run time linking by default, so we don't
 
13704
        # have to do anything special.
 
13705
        aix_use_runtimelinking=no
 
13706
        exp_sym_flag='-Bexport'
 
13707
        no_entry_flag=""
 
13708
      else
 
13709
        # If we're using GNU nm, then we don't want the "-C" option.
 
13710
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
13711
        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
 
13712
          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'
 
13713
        else
 
13714
          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'
 
13715
        fi
 
13716
        aix_use_runtimelinking=no
 
13717
 
 
13718
        # Test if we are trying to use run time linking or normal
 
13719
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
13720
        # need to do runtime linking.
 
13721
        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
 
13722
          for ld_flag in $LDFLAGS; do
 
13723
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
 
13724
            aix_use_runtimelinking=yes
 
13725
            break
 
13726
          fi
 
13727
          done
 
13728
        esac
 
13729
 
 
13730
        exp_sym_flag='-bexport'
 
13731
        no_entry_flag='-bnoentry'
 
13732
      fi
 
13733
 
 
13734
      # When large executables or shared objects are built, AIX ld can
 
13735
      # have problems creating the table of contents.  If linking a library
 
13736
      # or program results in "error TOC overflow" add -mminimal-toc to
 
13737
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
13738
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
13739
 
 
13740
      archive_cmds_F77=''
 
13741
      hardcode_direct_F77=yes
 
13742
      hardcode_libdir_separator_F77=':'
 
13743
      link_all_deplibs_F77=yes
 
13744
 
 
13745
      if test "$GCC" = yes; then
 
13746
        case $host_os in aix4.012|aix4.012.*)
 
13747
        # We only want to do this on AIX 4.2 and lower, the check
 
13748
        # below for broken collect2 doesn't work under 4.3+
 
13749
          collect2name=`${CC} -print-prog-name=collect2`
 
13750
          if test -f "$collect2name" && \
 
13751
           strings "$collect2name" | grep resolve_lib_name >/dev/null
 
13752
          then
 
13753
          # We have reworked collect2
 
13754
          hardcode_direct_F77=yes
 
13755
          else
 
13756
          # We have old collect2
 
13757
          hardcode_direct_F77=unsupported
 
13758
          # It fails to find uninstalled libraries when the uninstalled
 
13759
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
13760
          # to unsupported forces relinking
 
13761
          hardcode_minus_L_F77=yes
 
13762
          hardcode_libdir_flag_spec_F77='-L$libdir'
 
13763
          hardcode_libdir_separator_F77=
 
13764
          fi
 
13765
        esac
 
13766
        shared_flag='-shared'
 
13767
      else
 
13768
        # not using gcc
 
13769
        if test "$host_cpu" = ia64; then
 
13770
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
13771
        # chokes on -Wl,-G. The following line is correct:
 
13772
          shared_flag='-G'
 
13773
        else
 
13774
        if test "$aix_use_runtimelinking" = yes; then
 
13775
            shared_flag='${wl}-G'
 
13776
          else
 
13777
            shared_flag='${wl}-bM:SRE'
 
13778
        fi
 
13779
        fi
 
13780
      fi
 
13781
 
 
13782
      # It seems that -bexpall does not export symbols beginning with
 
13783
      # underscore (_), so it is better to generate a list of symbols to export.
 
13784
      always_export_symbols_F77=yes
 
13785
      if test "$aix_use_runtimelinking" = yes; then
 
13786
        # Warning - without using the other runtime loading flags (-brtl),
 
13787
        # -berok will link without error, but may produce a broken library.
 
13788
        allow_undefined_flag_F77='-berok'
 
13789
       # Determine the default libpath from the value encoded in an empty executable.
 
13790
       cat >conftest.$ac_ext <<_ACEOF
 
13791
      program main
 
13792
 
 
13793
      end
 
13794
_ACEOF
 
13795
rm -f conftest.$ac_objext conftest$ac_exeext
 
13796
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
13797
  (eval $ac_link) 2>conftest.er1
 
13798
  ac_status=$?
 
13799
  grep -v '^ *+' conftest.er1 >conftest.err
 
13800
  rm -f conftest.er1
 
13801
  cat conftest.err >&5
 
13802
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13803
  (exit $ac_status); } &&
 
13804
         { ac_try='test -z "$ac_f77_werror_flag"                         || test ! -s conftest.err'
 
13805
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
13806
  (eval $ac_try) 2>&5
 
13807
  ac_status=$?
 
13808
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13809
  (exit $ac_status); }; } &&
 
13810
         { ac_try='test -s conftest$ac_exeext'
 
13811
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
13812
  (eval $ac_try) 2>&5
 
13813
  ac_status=$?
 
13814
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13815
  (exit $ac_status); }; }; then
 
13816
 
 
13817
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
13818
}'`
 
13819
# Check for a 64-bit object if we didn't find anything.
 
13820
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; }
 
13821
}'`; fi
 
13822
else
 
13823
  echo "$as_me: failed program was:" >&5
 
13824
sed 's/^/| /' conftest.$ac_ext >&5
 
13825
 
 
13826
fi
 
13827
rm -f conftest.err conftest.$ac_objext \
 
13828
      conftest$ac_exeext conftest.$ac_ext
 
13829
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
13830
 
 
13831
       hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
 
13832
        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"
 
13833
       else
 
13834
        if test "$host_cpu" = ia64; then
 
13835
          hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
 
13836
          allow_undefined_flag_F77="-z nodefs"
 
13837
          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"
 
13838
        else
 
13839
         # Determine the default libpath from the value encoded in an empty executable.
 
13840
         cat >conftest.$ac_ext <<_ACEOF
 
13841
      program main
 
13842
 
 
13843
      end
 
13844
_ACEOF
 
13845
rm -f conftest.$ac_objext conftest$ac_exeext
 
13846
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
13847
  (eval $ac_link) 2>conftest.er1
 
13848
  ac_status=$?
 
13849
  grep -v '^ *+' conftest.er1 >conftest.err
 
13850
  rm -f conftest.er1
 
13851
  cat conftest.err >&5
 
13852
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13853
  (exit $ac_status); } &&
 
13854
         { ac_try='test -z "$ac_f77_werror_flag"                         || test ! -s conftest.err'
 
13855
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
13856
  (eval $ac_try) 2>&5
 
13857
  ac_status=$?
 
13858
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13859
  (exit $ac_status); }; } &&
 
13860
         { ac_try='test -s conftest$ac_exeext'
 
13861
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
13862
  (eval $ac_try) 2>&5
 
13863
  ac_status=$?
 
13864
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13865
  (exit $ac_status); }; }; then
 
13866
 
 
13867
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
13868
}'`
 
13869
# Check for a 64-bit object if we didn't find anything.
 
13870
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; }
 
13871
}'`; fi
 
13872
else
 
13873
  echo "$as_me: failed program was:" >&5
 
13874
sed 's/^/| /' conftest.$ac_ext >&5
 
13875
 
 
13876
fi
 
13877
rm -f conftest.err conftest.$ac_objext \
 
13878
      conftest$ac_exeext conftest.$ac_ext
 
13879
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
13880
 
 
13881
         hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
 
13882
          # Warning - without using the other run time loading flags,
 
13883
          # -berok will link without error, but may produce a broken library.
 
13884
          no_undefined_flag_F77=' ${wl}-bernotok'
 
13885
          allow_undefined_flag_F77=' ${wl}-berok'
 
13886
          # -bexpall does not export symbols beginning with underscore (_)
 
13887
          always_export_symbols_F77=yes
 
13888
          # Exported symbols can be pulled into shared objects from archives
 
13889
          whole_archive_flag_spec_F77=' '
 
13890
          archive_cmds_need_lc_F77=yes
 
13891
          # This is similar to how AIX traditionally builds it's shared libraries.
 
13892
          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'
 
13893
        fi
 
13894
      fi
 
13895
      ;;
 
13896
 
 
13897
    amigaos*)
 
13898
      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)'
 
13899
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
13900
      hardcode_minus_L_F77=yes
 
13901
      # see comment about different semantics on the GNU ld section
 
13902
      ld_shlibs_F77=no
 
13903
      ;;
 
13904
 
 
13905
    bsdi4*)
 
13906
      export_dynamic_flag_spec_F77=-rdynamic
 
13907
      ;;
 
13908
 
 
13909
    cygwin* | mingw* | pw32*)
 
13910
      # When not using gcc, we currently assume that we are using
 
13911
      # Microsoft Visual C++.
 
13912
      # hardcode_libdir_flag_spec is actually meaningless, as there is
 
13913
      # no search path for DLLs.
 
13914
      hardcode_libdir_flag_spec_F77=' '
 
13915
      allow_undefined_flag_F77=unsupported
 
13916
      # Tell ltmain to make .lib files, not .a files.
 
13917
      libext=lib
 
13918
      # Tell ltmain to make .dll files, not .so files.
 
13919
      shrext_cmds=".dll"
 
13920
      # FIXME: Setting linknames here is a bad hack.
 
13921
      archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
 
13922
      # The linker will automatically build a .lib file if we build a DLL.
 
13923
      old_archive_From_new_cmds_F77='true'
 
13924
      # FIXME: Should let the user specify the lib program.
 
13925
      old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
 
13926
      fix_srcfile_path='`cygpath -w "$srcfile"`'
 
13927
      enable_shared_with_static_runtimes_F77=yes
 
13928
      ;;
 
13929
 
 
13930
    darwin* | rhapsody*)
 
13931
    if test "$GXX" = yes ; then
 
13932
      archive_cmds_need_lc_F77=no
 
13933
      case "$host_os" in
 
13934
      rhapsody* | darwin1.[012])
 
13935
        allow_undefined_flag_F77='-undefined suppress'
 
13936
        ;;
 
13937
      *) # Darwin 1.3 on
 
13938
      if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
13939
        allow_undefined_flag_F77='-flat_namespace -undefined suppress'
 
13940
      else
 
13941
        case ${MACOSX_DEPLOYMENT_TARGET} in
 
13942
          10.[012])
 
13943
            allow_undefined_flag_F77='-flat_namespace -undefined suppress'
 
13944
            ;;
 
13945
          10.*)
 
13946
            allow_undefined_flag_F77='-undefined dynamic_lookup'
 
13947
            ;;
 
13948
        esac
 
13949
      fi
 
13950
        ;;
 
13951
      esac
 
13952
        lt_int_apple_cc_single_mod=no
 
13953
        output_verbose_link_cmd='echo'
 
13954
        if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
 
13955
          lt_int_apple_cc_single_mod=yes
 
13956
        fi
 
13957
        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
13958
          archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
13959
        else
 
13960
        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'
 
13961
      fi
 
13962
      module_cmds_F77='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
13963
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
 
13964
        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
13965
          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}'
 
13966
        else
 
13967
          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}'
 
13968
        fi
 
13969
          module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
13970
      hardcode_direct_F77=no
 
13971
      hardcode_automatic_F77=yes
 
13972
      hardcode_shlibpath_var_F77=unsupported
 
13973
      whole_archive_flag_spec_F77='-all_load $convenience'
 
13974
      link_all_deplibs_F77=yes
 
13975
    else
 
13976
      ld_shlibs_F77=no
 
13977
    fi
 
13978
      ;;
 
13979
 
 
13980
    dgux*)
 
13981
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
13982
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
13983
      hardcode_shlibpath_var_F77=no
 
13984
      ;;
 
13985
 
 
13986
    freebsd1*)
 
13987
      ld_shlibs_F77=no
 
13988
      ;;
 
13989
 
 
13990
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
 
13991
    # support.  Future versions do this automatically, but an explicit c++rt0.o
 
13992
    # does not break anything, and helps significantly (at the cost of a little
 
13993
    # extra space).
 
13994
    freebsd2.2*)
 
13995
      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
 
13996
      hardcode_libdir_flag_spec_F77='-R$libdir'
 
13997
      hardcode_direct_F77=yes
 
13998
      hardcode_shlibpath_var_F77=no
 
13999
      ;;
 
14000
 
 
14001
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
 
14002
    freebsd2*)
 
14003
      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
14004
      hardcode_direct_F77=yes
 
14005
      hardcode_minus_L_F77=yes
 
14006
      hardcode_shlibpath_var_F77=no
 
14007
      ;;
 
14008
 
 
14009
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
 
14010
    freebsd* | kfreebsd*-gnu)
 
14011
      archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
 
14012
      hardcode_libdir_flag_spec_F77='-R$libdir'
 
14013
      hardcode_direct_F77=yes
 
14014
      hardcode_shlibpath_var_F77=no
 
14015
      ;;
 
14016
 
 
14017
    hpux9*)
 
14018
      if test "$GCC" = yes; then
 
14019
        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'
 
14020
      else
 
14021
        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'
 
14022
      fi
 
14023
      hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
 
14024
      hardcode_libdir_separator_F77=:
 
14025
      hardcode_direct_F77=yes
 
14026
 
 
14027
      # hardcode_minus_L: Not really in the search PATH,
 
14028
      # but as the default location of the library.
 
14029
      hardcode_minus_L_F77=yes
 
14030
      export_dynamic_flag_spec_F77='${wl}-E'
 
14031
      ;;
 
14032
 
 
14033
    hpux10* | hpux11*)
 
14034
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
14035
        case "$host_cpu" in
 
14036
        hppa*64*|ia64*)
 
14037
          archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
14038
          ;;
 
14039
        *)
 
14040
          archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
14041
          ;;
 
14042
        esac
 
14043
      else
 
14044
        case "$host_cpu" in
 
14045
        hppa*64*|ia64*)
 
14046
          archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
 
14047
          ;;
 
14048
        *)
 
14049
          archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
14050
          ;;
 
14051
        esac
 
14052
      fi
 
14053
      if test "$with_gnu_ld" = no; then
 
14054
        case "$host_cpu" in
 
14055
        hppa*64*)
 
14056
          hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
 
14057
          hardcode_libdir_flag_spec_ld_F77='+b $libdir'
 
14058
          hardcode_libdir_separator_F77=:
 
14059
          hardcode_direct_F77=no
 
14060
          hardcode_shlibpath_var_F77=no
 
14061
          ;;
 
14062
        ia64*)
 
14063
          hardcode_libdir_flag_spec_F77='-L$libdir'
 
14064
          hardcode_direct_F77=no
 
14065
          hardcode_shlibpath_var_F77=no
 
14066
 
 
14067
          # hardcode_minus_L: Not really in the search PATH,
 
14068
          # but as the default location of the library.
 
14069
          hardcode_minus_L_F77=yes
 
14070
          ;;
 
14071
        *)
 
14072
          hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
 
14073
          hardcode_libdir_separator_F77=:
 
14074
          hardcode_direct_F77=yes
 
14075
          export_dynamic_flag_spec_F77='${wl}-E'
 
14076
 
 
14077
          # hardcode_minus_L: Not really in the search PATH,
 
14078
          # but as the default location of the library.
 
14079
          hardcode_minus_L_F77=yes
 
14080
          ;;
 
14081
        esac
 
14082
      fi
 
14083
      ;;
 
14084
 
 
14085
    irix5* | irix6* | nonstopux*)
 
14086
      if test "$GCC" = yes; then
 
14087
        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'
 
14088
      else
 
14089
        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'
 
14090
        hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
 
14091
      fi
 
14092
      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
 
14093
      hardcode_libdir_separator_F77=:
 
14094
      link_all_deplibs_F77=yes
 
14095
      ;;
 
14096
 
 
14097
    netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
 
14098
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
14099
        archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
 
14100
      else
 
14101
        archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
 
14102
      fi
 
14103
      hardcode_libdir_flag_spec_F77='-R$libdir'
 
14104
      hardcode_direct_F77=yes
 
14105
      hardcode_shlibpath_var_F77=no
 
14106
      ;;
 
14107
 
 
14108
    newsos6)
 
14109
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
14110
      hardcode_direct_F77=yes
 
14111
      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
 
14112
      hardcode_libdir_separator_F77=:
 
14113
      hardcode_shlibpath_var_F77=no
 
14114
      ;;
 
14115
 
 
14116
    openbsd*)
 
14117
      hardcode_direct_F77=yes
 
14118
      hardcode_shlibpath_var_F77=no
 
14119
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
14120
        archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
14121
        hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
 
14122
        export_dynamic_flag_spec_F77='${wl}-E'
 
14123
      else
 
14124
       case $host_os in
 
14125
         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
 
14126
           archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
14127
           hardcode_libdir_flag_spec_F77='-R$libdir'
 
14128
           ;;
 
14129
         *)
 
14130
           archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
14131
           hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
 
14132
           ;;
 
14133
       esac
 
14134
      fi
 
14135
      ;;
 
14136
 
 
14137
    os2*)
 
14138
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
14139
      hardcode_minus_L_F77=yes
 
14140
      allow_undefined_flag_F77=unsupported
 
14141
      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'
 
14142
      old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
 
14143
      ;;
 
14144
 
 
14145
    osf3*)
 
14146
      if test "$GCC" = yes; then
 
14147
        allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
 
14148
        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'
 
14149
      else
 
14150
        allow_undefined_flag_F77=' -expect_unresolved \*'
 
14151
        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'
 
14152
      fi
 
14153
      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
 
14154
      hardcode_libdir_separator_F77=:
 
14155
      ;;
 
14156
 
 
14157
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
 
14158
      if test "$GCC" = yes; then
 
14159
        allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
 
14160
        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'
 
14161
        hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
 
14162
      else
 
14163
        allow_undefined_flag_F77=' -expect_unresolved \*'
 
14164
        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'
 
14165
        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~
 
14166
        $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'
 
14167
 
 
14168
        # Both c and cxx compiler support -rpath directly
 
14169
        hardcode_libdir_flag_spec_F77='-rpath $libdir'
 
14170
      fi
 
14171
      hardcode_libdir_separator_F77=:
 
14172
      ;;
 
14173
 
 
14174
    sco3.2v5*)
 
14175
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
14176
      hardcode_shlibpath_var_F77=no
 
14177
      export_dynamic_flag_spec_F77='${wl}-Bexport'
 
14178
      runpath_var=LD_RUN_PATH
 
14179
      hardcode_runpath_var=yes
 
14180
      ;;
 
14181
 
 
14182
    solaris*)
 
14183
      no_undefined_flag_F77=' -z text'
 
14184
      if test "$GCC" = yes; then
 
14185
        archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
14186
        archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
14187
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
 
14188
      else
 
14189
        archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
14190
        archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
14191
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
14192
      fi
 
14193
      hardcode_libdir_flag_spec_F77='-R$libdir'
 
14194
      hardcode_shlibpath_var_F77=no
 
14195
      case $host_os in
 
14196
      solaris2.[0-5] | solaris2.[0-5].*) ;;
 
14197
      *) # Supported since Solaris 2.6 (maybe 2.5.1?)
 
14198
        whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
 
14199
      esac
 
14200
      link_all_deplibs_F77=yes
 
14201
      ;;
 
14202
 
 
14203
    sunos4*)
 
14204
      if test "x$host_vendor" = xsequent; then
 
14205
        # Use $CC to link under sequent, because it throws in some extra .o
 
14206
        # files that make .init and .fini sections work.
 
14207
        archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
 
14208
      else
 
14209
        archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
 
14210
      fi
 
14211
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
14212
      hardcode_direct_F77=yes
 
14213
      hardcode_minus_L_F77=yes
 
14214
      hardcode_shlibpath_var_F77=no
 
14215
      ;;
 
14216
 
 
14217
    sysv4)
 
14218
      case $host_vendor in
 
14219
        sni)
 
14220
          archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
14221
          hardcode_direct_F77=yes # is this really true???
 
14222
        ;;
 
14223
        siemens)
 
14224
          ## LD is ld it makes a PLAMLIB
 
14225
          ## CC just makes a GrossModule.
 
14226
          archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
14227
          reload_cmds_F77='$CC -r -o $output$reload_objs'
 
14228
          hardcode_direct_F77=no
 
14229
        ;;
 
14230
        motorola)
 
14231
          archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
14232
          hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
 
14233
        ;;
 
14234
      esac
 
14235
      runpath_var='LD_RUN_PATH'
 
14236
      hardcode_shlibpath_var_F77=no
 
14237
      ;;
 
14238
 
 
14239
    sysv4.3*)
 
14240
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
14241
      hardcode_shlibpath_var_F77=no
 
14242
      export_dynamic_flag_spec_F77='-Bexport'
 
14243
      ;;
 
14244
 
 
14245
    sysv4*MP*)
 
14246
      if test -d /usr/nec; then
 
14247
        archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
14248
        hardcode_shlibpath_var_F77=no
 
14249
        runpath_var=LD_RUN_PATH
 
14250
        hardcode_runpath_var=yes
 
14251
        ld_shlibs_F77=yes
 
14252
      fi
 
14253
      ;;
 
14254
 
 
14255
    sysv4.2uw2*)
 
14256
      archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
14257
      hardcode_direct_F77=yes
 
14258
      hardcode_minus_L_F77=no
 
14259
      hardcode_shlibpath_var_F77=no
 
14260
      hardcode_runpath_var=yes
 
14261
      runpath_var=LD_RUN_PATH
 
14262
      ;;
 
14263
 
 
14264
   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
 
14265
      no_undefined_flag_F77='${wl}-z ${wl}text'
 
14266
      if test "$GCC" = yes; then
 
14267
        archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
14268
      else
 
14269
        archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
14270
      fi
 
14271
      runpath_var='LD_RUN_PATH'
 
14272
      hardcode_shlibpath_var_F77=no
 
14273
      ;;
 
14274
 
 
14275
    sysv5*)
 
14276
      no_undefined_flag_F77=' -z text'
 
14277
      # $CC -shared without GNU ld will not create a library from C++
 
14278
      # object files and a static libstdc++, better avoid it by now
 
14279
      archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
14280
      archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
14281
                $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
14282
      hardcode_libdir_flag_spec_F77=
 
14283
      hardcode_shlibpath_var_F77=no
 
14284
      runpath_var='LD_RUN_PATH'
 
14285
      ;;
 
14286
 
 
14287
    uts4*)
 
14288
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
14289
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
14290
      hardcode_shlibpath_var_F77=no
 
14291
      ;;
 
14292
 
 
14293
    *)
 
14294
      ld_shlibs_F77=no
 
14295
      ;;
 
14296
    esac
 
14297
  fi
 
14298
 
 
14299
echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
 
14300
echo "${ECHO_T}$ld_shlibs_F77" >&6
 
14301
test "$ld_shlibs_F77" = no && can_build_shared=no
 
14302
 
 
14303
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
14304
if test "$GCC" = yes; then
 
14305
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
14306
fi
 
14307
 
 
14308
#
 
14309
# Do we need to explicitly link libc?
 
14310
#
 
14311
case "x$archive_cmds_need_lc_F77" in
 
14312
x|xyes)
 
14313
  # Assume -lc should be added
 
14314
  archive_cmds_need_lc_F77=yes
 
14315
 
 
14316
  if test "$enable_shared" = yes && test "$GCC" = yes; then
 
14317
    case $archive_cmds_F77 in
 
14318
    *'~'*)
 
14319
      # FIXME: we may have to deal with multi-command sequences.
 
14320
      ;;
 
14321
    '$CC '*)
 
14322
      # Test whether the compiler implicitly links with -lc since on some
 
14323
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
 
14324
      # to ld, don't add -lc before -lgcc.
 
14325
      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
 
14326
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
 
14327
      $rm conftest*
 
14328
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
14329
 
 
14330
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
14331
  (eval $ac_compile) 2>&5
 
14332
  ac_status=$?
 
14333
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14334
  (exit $ac_status); } 2>conftest.err; then
 
14335
        soname=conftest
 
14336
        lib=conftest
 
14337
        libobjs=conftest.$ac_objext
 
14338
        deplibs=
 
14339
        wl=$lt_prog_compiler_wl_F77
 
14340
        compiler_flags=-v
 
14341
        linker_flags=-v
 
14342
        verstring=
 
14343
        output_objdir=.
 
14344
        libname=conftest
 
14345
        lt_save_allow_undefined_flag=$allow_undefined_flag_F77
 
14346
        allow_undefined_flag_F77=
 
14347
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
 
14348
  (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
14349
  ac_status=$?
 
14350
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14351
  (exit $ac_status); }
 
14352
        then
 
14353
          archive_cmds_need_lc_F77=no
 
14354
        else
 
14355
          archive_cmds_need_lc_F77=yes
 
14356
        fi
 
14357
        allow_undefined_flag_F77=$lt_save_allow_undefined_flag
 
14358
      else
 
14359
        cat conftest.err 1>&5
 
14360
      fi
 
14361
      $rm conftest*
 
14362
      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
 
14363
echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
 
14364
      ;;
 
14365
    esac
 
14366
  fi
 
14367
  ;;
 
14368
esac
 
14369
 
 
14370
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
 
14371
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
 
14372
library_names_spec=
 
14373
libname_spec='lib$name'
 
14374
soname_spec=
 
14375
shrext_cmds=".so"
 
14376
postinstall_cmds=
 
14377
postuninstall_cmds=
 
14378
finish_cmds=
 
14379
finish_eval=
 
14380
shlibpath_var=
 
14381
shlibpath_overrides_runpath=unknown
 
14382
version_type=none
 
14383
dynamic_linker="$host_os ld.so"
 
14384
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
14385
if test "$GCC" = yes; then
 
14386
  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
14387
  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
 
14388
    # if the path contains ";" then we assume it to be the separator
 
14389
    # otherwise default to the standard path separator (i.e. ":") - it is
 
14390
    # assumed that no part of a normal pathname contains ";" but that should
 
14391
    # okay in the real world where ";" in dirpaths is itself problematic.
 
14392
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
14393
  else
 
14394
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
14395
  fi
 
14396
else
 
14397
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
 
14398
fi
 
14399
need_lib_prefix=unknown
 
14400
hardcode_into_libs=no
 
14401
 
 
14402
# when you set need_version to no, make sure it does not cause -set_version
 
14403
# flags to be left without arguments
 
14404
need_version=unknown
 
14405
 
 
14406
case $host_os in
 
14407
aix3*)
 
14408
  version_type=linux
 
14409
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
 
14410
  shlibpath_var=LIBPATH
 
14411
 
 
14412
  # AIX 3 has no versioning support, so we append a major version to the name.
 
14413
  soname_spec='${libname}${release}${shared_ext}$major'
 
14414
  ;;
 
14415
 
 
14416
aix4* | aix5*)
 
14417
  version_type=linux
 
14418
  need_lib_prefix=no
 
14419
  need_version=no
 
14420
  hardcode_into_libs=yes
 
14421
  if test "$host_cpu" = ia64; then
 
14422
    # AIX 5 supports IA64
 
14423
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
 
14424
    shlibpath_var=LD_LIBRARY_PATH
 
14425
  else
 
14426
    # With GCC up to 2.95.x, collect2 would create an import file
 
14427
    # for dependence libraries.  The import file would start with
 
14428
    # the line `#! .'.  This would cause the generated library to
 
14429
    # depend on `.', always an invalid library.  This was fixed in
 
14430
    # development snapshots of GCC prior to 3.0.
 
14431
    case $host_os in
 
14432
      aix4 | aix4.[01] | aix4.[01].*)
 
14433
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
14434
           echo ' yes '
 
14435
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
 
14436
        :
 
14437
      else
 
14438
        can_build_shared=no
 
14439
      fi
 
14440
      ;;
 
14441
    esac
 
14442
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 
14443
    # soname into executable. Probably we can add versioning support to
 
14444
    # collect2, so additional links can be useful in future.
 
14445
    if test "$aix_use_runtimelinking" = yes; then
 
14446
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
14447
      # instead of lib<name>.a to let people know that these are not
 
14448
      # typical AIX shared libraries.
 
14449
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14450
    else
 
14451
      # We preserve .a as extension for shared libraries through AIX4.2
 
14452
      # and later when we are not doing run time linking.
 
14453
      library_names_spec='${libname}${release}.a $libname.a'
 
14454
      soname_spec='${libname}${release}${shared_ext}$major'
 
14455
    fi
 
14456
    shlibpath_var=LIBPATH
 
14457
  fi
 
14458
  ;;
 
14459
 
 
14460
amigaos*)
 
14461
  library_names_spec='$libname.ixlibrary $libname.a'
 
14462
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
14463
  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'
 
14464
  ;;
 
14465
 
 
14466
beos*)
 
14467
  library_names_spec='${libname}${shared_ext}'
 
14468
  dynamic_linker="$host_os ld.so"
 
14469
  shlibpath_var=LIBRARY_PATH
 
14470
  ;;
 
14471
 
 
14472
bsdi4*)
 
14473
  version_type=linux
 
14474
  need_version=no
 
14475
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14476
  soname_spec='${libname}${release}${shared_ext}$major'
 
14477
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
14478
  shlibpath_var=LD_LIBRARY_PATH
 
14479
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
14480
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
14481
  # the default ld.so.conf also contains /usr/contrib/lib and
 
14482
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
14483
  # libtool to hard-code these into programs
 
14484
  ;;
 
14485
 
 
14486
cygwin* | mingw* | pw32*)
 
14487
  version_type=windows
 
14488
  shrext_cmds=".dll"
 
14489
  need_version=no
 
14490
  need_lib_prefix=no
 
14491
 
 
14492
  case $GCC,$host_os in
 
14493
  yes,cygwin* | yes,mingw* | yes,pw32*)
 
14494
    library_names_spec='$libname.dll.a'
 
14495
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
14496
    postinstall_cmds='base_file=`basename \${file}`~
 
14497
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
 
14498
      dldir=$destdir/`dirname \$dlpath`~
 
14499
      test -d \$dldir || mkdir -p \$dldir~
 
14500
      $install_prog $dir/$dlname \$dldir/$dlname'
 
14501
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
14502
      dlpath=$dir/\$dldll~
 
14503
       $rm \$dlpath'
 
14504
    shlibpath_overrides_runpath=yes
 
14505
 
 
14506
    case $host_os in
 
14507
    cygwin*)
 
14508
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 
14509
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
14510
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
 
14511
      ;;
 
14512
    mingw*)
 
14513
      # MinGW DLLs use traditional 'lib' prefix
 
14514
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
14515
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
14516
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
 
14517
        # It is most probably a Windows format PATH printed by
 
14518
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
 
14519
        # path with ; separators, and with drive letters. We can handle the
 
14520
        # drive letters (cygwin fileutils understands them), so leave them,
 
14521
        # especially as we might pass files found there to a mingw objdump,
 
14522
        # which wouldn't understand a cygwinified path. Ahh.
 
14523
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
14524
      else
 
14525
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
14526
      fi
 
14527
      ;;
 
14528
    pw32*)
 
14529
      # pw32 DLLs use 'pw' prefix rather than 'lib'
 
14530
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
 
14531
      ;;
 
14532
    esac
 
14533
    ;;
 
14534
 
 
14535
  *)
 
14536
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
14537
    ;;
 
14538
  esac
 
14539
  dynamic_linker='Win32 ld.exe'
 
14540
  # FIXME: first we should search . and the directory the executable is in
 
14541
  shlibpath_var=PATH
 
14542
  ;;
 
14543
 
 
14544
darwin* | rhapsody*)
 
14545
  dynamic_linker="$host_os dyld"
 
14546
  version_type=darwin
 
14547
  need_lib_prefix=no
 
14548
  need_version=no
 
14549
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
14550
  soname_spec='${libname}${release}${major}$shared_ext'
 
14551
  shlibpath_overrides_runpath=yes
 
14552
  shlibpath_var=DYLD_LIBRARY_PATH
 
14553
  shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
 
14554
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
 
14555
  if test "$GCC" = yes; then
 
14556
    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"`
 
14557
  else
 
14558
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
 
14559
  fi
 
14560
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 
14561
  ;;
 
14562
 
 
14563
dgux*)
 
14564
  version_type=linux
 
14565
  need_lib_prefix=no
 
14566
  need_version=no
 
14567
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
 
14568
  soname_spec='${libname}${release}${shared_ext}$major'
 
14569
  shlibpath_var=LD_LIBRARY_PATH
 
14570
  ;;
 
14571
 
 
14572
freebsd1*)
 
14573
  dynamic_linker=no
 
14574
  ;;
 
14575
 
 
14576
kfreebsd*-gnu)
 
14577
  version_type=linux
 
14578
  need_lib_prefix=no
 
14579
  need_version=no
 
14580
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
14581
  soname_spec='${libname}${release}${shared_ext}$major'
 
14582
  shlibpath_var=LD_LIBRARY_PATH
 
14583
  shlibpath_overrides_runpath=no
 
14584
  hardcode_into_libs=yes
 
14585
  dynamic_linker='GNU ld.so'
 
14586
  ;;
 
14587
 
 
14588
freebsd*)
 
14589
  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
 
14590
  version_type=freebsd-$objformat
 
14591
  case $version_type in
 
14592
    freebsd-elf*)
 
14593
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
14594
      need_version=no
 
14595
      need_lib_prefix=no
 
14596
      ;;
 
14597
    freebsd-*)
 
14598
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
 
14599
      need_version=yes
 
14600
      ;;
 
14601
  esac
 
14602
  shlibpath_var=LD_LIBRARY_PATH
 
14603
  case $host_os in
 
14604
  freebsd2*)
 
14605
    shlibpath_overrides_runpath=yes
 
14606
    ;;
 
14607
  freebsd3.01* | freebsdelf3.01*)
 
14608
    shlibpath_overrides_runpath=yes
 
14609
    hardcode_into_libs=yes
 
14610
    ;;
 
14611
  *) # from 3.2 on
 
14612
    shlibpath_overrides_runpath=no
 
14613
    hardcode_into_libs=yes
 
14614
    ;;
 
14615
  esac
 
14616
  ;;
 
14617
 
 
14618
gnu*)
 
14619
  version_type=linux
 
14620
  need_lib_prefix=no
 
14621
  need_version=no
 
14622
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
14623
  soname_spec='${libname}${release}${shared_ext}$major'
 
14624
  shlibpath_var=LD_LIBRARY_PATH
 
14625
  hardcode_into_libs=yes
 
14626
  ;;
 
14627
 
 
14628
hpux9* | hpux10* | hpux11*)
 
14629
  # Give a soname corresponding to the major version so that dld.sl refuses to
 
14630
  # link against other versions.
 
14631
  version_type=sunos
 
14632
  need_lib_prefix=no
 
14633
  need_version=no
 
14634
  case "$host_cpu" in
 
14635
  ia64*)
 
14636
    shrext_cmds='.so'
 
14637
    hardcode_into_libs=yes
 
14638
    dynamic_linker="$host_os dld.so"
 
14639
    shlibpath_var=LD_LIBRARY_PATH
 
14640
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
14641
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14642
    soname_spec='${libname}${release}${shared_ext}$major'
 
14643
    if test "X$HPUX_IA64_MODE" = X32; then
 
14644
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 
14645
    else
 
14646
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 
14647
    fi
 
14648
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
14649
    ;;
 
14650
   hppa*64*)
 
14651
     shrext_cmds='.sl'
 
14652
     hardcode_into_libs=yes
 
14653
     dynamic_linker="$host_os dld.sl"
 
14654
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
14655
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
14656
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14657
     soname_spec='${libname}${release}${shared_ext}$major'
 
14658
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
14659
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
14660
     ;;
 
14661
   *)
 
14662
    shrext_cmds='.sl'
 
14663
    dynamic_linker="$host_os dld.sl"
 
14664
    shlibpath_var=SHLIB_PATH
 
14665
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
14666
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14667
    soname_spec='${libname}${release}${shared_ext}$major'
 
14668
    ;;
 
14669
  esac
 
14670
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
 
14671
  postinstall_cmds='chmod 555 $lib'
 
14672
  ;;
 
14673
 
 
14674
irix5* | irix6* | nonstopux*)
 
14675
  case $host_os in
 
14676
    nonstopux*) version_type=nonstopux ;;
 
14677
    *)
 
14678
        if test "$lt_cv_prog_gnu_ld" = yes; then
 
14679
                version_type=linux
 
14680
        else
 
14681
                version_type=irix
 
14682
        fi ;;
 
14683
  esac
 
14684
  need_lib_prefix=no
 
14685
  need_version=no
 
14686
  soname_spec='${libname}${release}${shared_ext}$major'
 
14687
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
 
14688
  case $host_os in
 
14689
  irix5* | nonstopux*)
 
14690
    libsuff= shlibsuff=
 
14691
    ;;
 
14692
  *)
 
14693
    case $LD in # libtool.m4 will add one of these switches to LD
 
14694
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 
14695
      libsuff= shlibsuff= libmagic=32-bit;;
 
14696
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 
14697
      libsuff=32 shlibsuff=N32 libmagic=N32;;
 
14698
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 
14699
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
14700
    *) libsuff= shlibsuff= libmagic=never-match;;
 
14701
    esac
 
14702
    ;;
 
14703
  esac
 
14704
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
14705
  shlibpath_overrides_runpath=no
 
14706
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
14707
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
14708
  hardcode_into_libs=yes
 
14709
  ;;
 
14710
 
 
14711
# No shared lib support for Linux oldld, aout, or coff.
 
14712
linux*oldld* | linux*aout* | linux*coff*)
 
14713
  dynamic_linker=no
 
14714
  ;;
 
14715
 
 
14716
# This must be Linux ELF.
 
14717
linux*)
 
14718
  version_type=linux
 
14719
  need_lib_prefix=no
 
14720
  need_version=no
 
14721
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14722
  soname_spec='${libname}${release}${shared_ext}$major'
 
14723
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
14724
  shlibpath_var=LD_LIBRARY_PATH
 
14725
  shlibpath_overrides_runpath=no
 
14726
  # This implies no fast_install, which is unacceptable.
 
14727
  # Some rework will be needed to allow for fast_install
 
14728
  # before this can be enabled.
 
14729
  hardcode_into_libs=yes
 
14730
 
 
14731
  # Append ld.so.conf contents to the search path
 
14732
  if test -f /etc/ld.so.conf; then
 
14733
    lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
 
14734
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
 
14735
  fi
 
14736
 
 
14737
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
14738
  # powerpc, because MkLinux only supported shared libraries with the
 
14739
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
14740
  # most powerpc-linux boxes support dynamic linking these days and
 
14741
  # people can always --disable-shared, the test was removed, and we
 
14742
  # assume the GNU/Linux dynamic linker is in use.
 
14743
  dynamic_linker='GNU/Linux ld.so'
 
14744
  ;;
 
14745
 
 
14746
netbsdelf*-gnu)
 
14747
  version_type=linux
 
14748
  need_lib_prefix=no
 
14749
  need_version=no
 
14750
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
14751
  soname_spec='${libname}${release}${shared_ext}$major'
 
14752
  shlibpath_var=LD_LIBRARY_PATH
 
14753
  shlibpath_overrides_runpath=no
 
14754
  hardcode_into_libs=yes
 
14755
  dynamic_linker='NetBSD ld.elf_so'
 
14756
  ;;
 
14757
 
 
14758
knetbsd*-gnu)
 
14759
  version_type=linux
 
14760
  need_lib_prefix=no
 
14761
  need_version=no
 
14762
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
14763
  soname_spec='${libname}${release}${shared_ext}$major'
 
14764
  shlibpath_var=LD_LIBRARY_PATH
 
14765
  shlibpath_overrides_runpath=no
 
14766
  hardcode_into_libs=yes
 
14767
  dynamic_linker='GNU ld.so'
 
14768
  ;;
 
14769
 
 
14770
netbsd*)
 
14771
  version_type=sunos
 
14772
  need_lib_prefix=no
 
14773
  need_version=no
 
14774
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
14775
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
14776
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
14777
    dynamic_linker='NetBSD (a.out) ld.so'
 
14778
  else
 
14779
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
14780
    soname_spec='${libname}${release}${shared_ext}$major'
 
14781
    dynamic_linker='NetBSD ld.elf_so'
 
14782
  fi
 
14783
  shlibpath_var=LD_LIBRARY_PATH
 
14784
  shlibpath_overrides_runpath=yes
 
14785
  hardcode_into_libs=yes
 
14786
  ;;
 
14787
 
 
14788
newsos6)
 
14789
  version_type=linux
 
14790
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14791
  shlibpath_var=LD_LIBRARY_PATH
 
14792
  shlibpath_overrides_runpath=yes
 
14793
  ;;
 
14794
 
 
14795
nto-qnx*)
 
14796
  version_type=linux
 
14797
  need_lib_prefix=no
 
14798
  need_version=no
 
14799
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14800
  soname_spec='${libname}${release}${shared_ext}$major'
 
14801
  shlibpath_var=LD_LIBRARY_PATH
 
14802
  shlibpath_overrides_runpath=yes
 
14803
  ;;
 
14804
 
 
14805
openbsd*)
 
14806
  version_type=sunos
 
14807
  need_lib_prefix=no
 
14808
  need_version=yes
 
14809
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
14810
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
14811
  shlibpath_var=LD_LIBRARY_PATH
 
14812
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
14813
    case $host_os in
 
14814
      openbsd2.[89] | openbsd2.[89].*)
 
14815
        shlibpath_overrides_runpath=no
 
14816
        ;;
 
14817
      *)
 
14818
        shlibpath_overrides_runpath=yes
 
14819
        ;;
 
14820
      esac
 
14821
  else
 
14822
    shlibpath_overrides_runpath=yes
 
14823
  fi
 
14824
  ;;
 
14825
 
 
14826
os2*)
 
14827
  libname_spec='$name'
 
14828
  shrext_cmds=".dll"
 
14829
  need_lib_prefix=no
 
14830
  library_names_spec='$libname${shared_ext} $libname.a'
 
14831
  dynamic_linker='OS/2 ld.exe'
 
14832
  shlibpath_var=LIBPATH
 
14833
  ;;
 
14834
 
 
14835
osf3* | osf4* | osf5*)
 
14836
  version_type=osf
 
14837
  need_lib_prefix=no
 
14838
  need_version=no
 
14839
  soname_spec='${libname}${release}${shared_ext}$major'
 
14840
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14841
  shlibpath_var=LD_LIBRARY_PATH
 
14842
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
14843
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
14844
  ;;
 
14845
 
 
14846
sco3.2v5*)
 
14847
  version_type=osf
 
14848
  soname_spec='${libname}${release}${shared_ext}$major'
 
14849
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14850
  shlibpath_var=LD_LIBRARY_PATH
 
14851
  ;;
 
14852
 
 
14853
solaris*)
 
14854
  version_type=linux
 
14855
  need_lib_prefix=no
 
14856
  need_version=no
 
14857
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14858
  soname_spec='${libname}${release}${shared_ext}$major'
 
14859
  shlibpath_var=LD_LIBRARY_PATH
 
14860
  shlibpath_overrides_runpath=yes
 
14861
  hardcode_into_libs=yes
 
14862
  # ldd complains unless libraries are executable
 
14863
  postinstall_cmds='chmod +x $lib'
 
14864
  ;;
 
14865
 
 
14866
sunos4*)
 
14867
  version_type=sunos
 
14868
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
14869
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
14870
  shlibpath_var=LD_LIBRARY_PATH
 
14871
  shlibpath_overrides_runpath=yes
 
14872
  if test "$with_gnu_ld" = yes; then
 
14873
    need_lib_prefix=no
 
14874
  fi
 
14875
  need_version=yes
 
14876
  ;;
 
14877
 
 
14878
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
14879
  version_type=linux
 
14880
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14881
  soname_spec='${libname}${release}${shared_ext}$major'
 
14882
  shlibpath_var=LD_LIBRARY_PATH
 
14883
  case $host_vendor in
 
14884
    sni)
 
14885
      shlibpath_overrides_runpath=no
 
14886
      need_lib_prefix=no
 
14887
      export_dynamic_flag_spec='${wl}-Blargedynsym'
 
14888
      runpath_var=LD_RUN_PATH
 
14889
      ;;
 
14890
    siemens)
 
14891
      need_lib_prefix=no
 
14892
      ;;
 
14893
    motorola)
 
14894
      need_lib_prefix=no
 
14895
      need_version=no
 
14896
      shlibpath_overrides_runpath=no
 
14897
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
14898
      ;;
 
14899
  esac
 
14900
  ;;
 
14901
 
 
14902
sysv4*MP*)
 
14903
  if test -d /usr/nec ;then
 
14904
    version_type=linux
 
14905
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
 
14906
    soname_spec='$libname${shared_ext}.$major'
 
14907
    shlibpath_var=LD_LIBRARY_PATH
 
14908
  fi
 
14909
  ;;
 
14910
 
 
14911
uts4*)
 
14912
  version_type=linux
 
14913
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14914
  soname_spec='${libname}${release}${shared_ext}$major'
 
14915
  shlibpath_var=LD_LIBRARY_PATH
 
14916
  ;;
 
14917
 
 
14918
*)
 
14919
  dynamic_linker=no
 
14920
  ;;
 
14921
esac
 
14922
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
 
14923
echo "${ECHO_T}$dynamic_linker" >&6
 
14924
test "$dynamic_linker" = no && can_build_shared=no
 
14925
 
 
14926
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
 
14927
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
 
14928
hardcode_action_F77=
 
14929
if test -n "$hardcode_libdir_flag_spec_F77" || \
 
14930
   test -n "$runpath_var F77" || \
 
14931
   test "X$hardcode_automatic_F77"="Xyes" ; then
 
14932
 
 
14933
  # We can hardcode non-existant directories.
 
14934
  if test "$hardcode_direct_F77" != no &&
 
14935
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
 
14936
     # have to relink, otherwise we might link with an installed library
 
14937
     # when we should be linking with a yet-to-be-installed one
 
14938
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
 
14939
     test "$hardcode_minus_L_F77" != no; then
 
14940
    # Linking always hardcodes the temporary library directory.
 
14941
    hardcode_action_F77=relink
 
14942
  else
 
14943
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
 
14944
    hardcode_action_F77=immediate
 
14945
  fi
 
14946
else
 
14947
  # We cannot hardcode anything, or else we can only hardcode existing
 
14948
  # directories.
 
14949
  hardcode_action_F77=unsupported
 
14950
fi
 
14951
echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
 
14952
echo "${ECHO_T}$hardcode_action_F77" >&6
 
14953
 
 
14954
if test "$hardcode_action_F77" = relink; then
 
14955
  # Fast installation is not supported
 
14956
  enable_fast_install=no
 
14957
elif test "$shlibpath_overrides_runpath" = yes ||
 
14958
     test "$enable_shared" = no; then
 
14959
  # Fast installation is not necessary
 
14960
  enable_fast_install=needless
 
14961
fi
 
14962
 
 
14963
striplib=
 
14964
old_striplib=
 
14965
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
 
14966
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
 
14967
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
 
14968
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
 
14969
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
 
14970
  echo "$as_me:$LINENO: result: yes" >&5
 
14971
echo "${ECHO_T}yes" >&6
 
14972
else
 
14973
# FIXME - insert some real tests, host_os isn't really good enough
 
14974
  case $host_os in
 
14975
   darwin*)
 
14976
       if test -n "$STRIP" ; then
 
14977
         striplib="$STRIP -x"
 
14978
         echo "$as_me:$LINENO: result: yes" >&5
 
14979
echo "${ECHO_T}yes" >&6
 
14980
       else
 
14981
  echo "$as_me:$LINENO: result: no" >&5
 
14982
echo "${ECHO_T}no" >&6
 
14983
fi
 
14984
       ;;
 
14985
   *)
 
14986
  echo "$as_me:$LINENO: result: no" >&5
 
14987
echo "${ECHO_T}no" >&6
 
14988
    ;;
 
14989
  esac
 
14990
fi
 
14991
 
 
14992
 
 
14993
 
 
14994
# The else clause should only fire when bootstrapping the
 
14995
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
14996
# with your package, and you will get complaints that there are
 
14997
# no rules to generate ltmain.sh.
 
14998
if test -f "$ltmain"; then
 
14999
  # See if we are running on zsh, and set the options which allow our commands through
 
15000
  # without removal of \ escapes.
 
15001
  if test -n "${ZSH_VERSION+set}" ; then
 
15002
    setopt NO_GLOB_SUBST
 
15003
  fi
 
15004
  # Now quote all the things that may contain metacharacters while being
 
15005
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
15006
  # variables and quote the copies for generation of the libtool script.
 
15007
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
 
15008
    SED SHELL STRIP \
 
15009
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
15010
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
15011
    deplibs_check_method reload_flag reload_cmds need_locks \
 
15012
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
15013
    lt_cv_sys_global_symbol_to_c_name_address \
 
15014
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
15015
    old_postinstall_cmds old_postuninstall_cmds \
 
15016
    compiler_F77 \
 
15017
    CC_F77 \
 
15018
    LD_F77 \
 
15019
    lt_prog_compiler_wl_F77 \
 
15020
    lt_prog_compiler_pic_F77 \
 
15021
    lt_prog_compiler_static_F77 \
 
15022
    lt_prog_compiler_no_builtin_flag_F77 \
 
15023
    export_dynamic_flag_spec_F77 \
 
15024
    thread_safe_flag_spec_F77 \
 
15025
    whole_archive_flag_spec_F77 \
 
15026
    enable_shared_with_static_runtimes_F77 \
 
15027
    old_archive_cmds_F77 \
 
15028
    old_archive_from_new_cmds_F77 \
 
15029
    predep_objects_F77 \
 
15030
    postdep_objects_F77 \
 
15031
    predeps_F77 \
 
15032
    postdeps_F77 \
 
15033
    compiler_lib_search_path_F77 \
 
15034
    archive_cmds_F77 \
 
15035
    archive_expsym_cmds_F77 \
 
15036
    postinstall_cmds_F77 \
 
15037
    postuninstall_cmds_F77 \
 
15038
    old_archive_from_expsyms_cmds_F77 \
 
15039
    allow_undefined_flag_F77 \
 
15040
    no_undefined_flag_F77 \
 
15041
    export_symbols_cmds_F77 \
 
15042
    hardcode_libdir_flag_spec_F77 \
 
15043
    hardcode_libdir_flag_spec_ld_F77 \
 
15044
    hardcode_libdir_separator_F77 \
 
15045
    hardcode_automatic_F77 \
 
15046
    module_cmds_F77 \
 
15047
    module_expsym_cmds_F77 \
 
15048
    lt_cv_prog_compiler_c_o_F77 \
 
15049
    exclude_expsyms_F77 \
 
15050
    include_expsyms_F77; do
 
15051
 
 
15052
    case $var in
 
15053
    old_archive_cmds_F77 | \
 
15054
    old_archive_from_new_cmds_F77 | \
 
15055
    archive_cmds_F77 | \
 
15056
    archive_expsym_cmds_F77 | \
 
15057
    module_cmds_F77 | \
 
15058
    module_expsym_cmds_F77 | \
 
15059
    old_archive_from_expsyms_cmds_F77 | \
 
15060
    export_symbols_cmds_F77 | \
 
15061
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
15062
    postinstall_cmds | postuninstall_cmds | \
 
15063
    old_postinstall_cmds | old_postuninstall_cmds | \
 
15064
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
15065
      # Double-quote double-evaled strings.
 
15066
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
15067
      ;;
 
15068
    *)
 
15069
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
15070
      ;;
 
15071
    esac
 
15072
  done
 
15073
 
 
15074
  case $lt_echo in
 
15075
  *'\$0 --fallback-echo"')
 
15076
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
 
15077
    ;;
 
15078
  esac
 
15079
 
 
15080
cfgfile="$ofile"
 
15081
 
 
15082
  cat <<__EOF__ >> "$cfgfile"
 
15083
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
 
15084
 
 
15085
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
15086
 
 
15087
# Shell to use when invoking shell scripts.
 
15088
SHELL=$lt_SHELL
 
15089
 
 
15090
# Whether or not to build shared libraries.
 
15091
build_libtool_libs=$enable_shared
 
15092
 
 
15093
# Whether or not to build static libraries.
 
15094
build_old_libs=$enable_static
 
15095
 
 
15096
# Whether or not to add -lc for building shared libraries.
 
15097
build_libtool_need_lc=$archive_cmds_need_lc_F77
 
15098
 
 
15099
# Whether or not to disallow shared libs when runtime libs are static
 
15100
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
 
15101
 
 
15102
# Whether or not to optimize for fast installation.
 
15103
fast_install=$enable_fast_install
 
15104
 
 
15105
# The host system.
 
15106
host_alias=$host_alias
 
15107
host=$host
 
15108
 
 
15109
# An echo program that does not interpret backslashes.
 
15110
echo=$lt_echo
 
15111
 
 
15112
# The archiver.
 
15113
AR=$lt_AR
 
15114
AR_FLAGS=$lt_AR_FLAGS
 
15115
 
 
15116
# A C compiler.
 
15117
LTCC=$lt_LTCC
 
15118
 
 
15119
# A language-specific compiler.
 
15120
CC=$lt_compiler_F77
 
15121
 
 
15122
# Is the compiler the GNU C compiler?
 
15123
with_gcc=$GCC_F77
 
15124
 
 
15125
# An ERE matcher.
 
15126
EGREP=$lt_EGREP
 
15127
 
 
15128
# The linker used to build libraries.
 
15129
LD=$lt_LD_F77
 
15130
 
 
15131
# Whether we need hard or soft links.
 
15132
LN_S=$lt_LN_S
 
15133
 
 
15134
# A BSD-compatible nm program.
 
15135
NM=$lt_NM
 
15136
 
 
15137
# A symbol stripping program
 
15138
STRIP=$lt_STRIP
 
15139
 
 
15140
# Used to examine libraries when file_magic_cmd begins "file"
 
15141
MAGIC_CMD=$MAGIC_CMD
 
15142
 
 
15143
# Used on cygwin: DLL creation program.
 
15144
DLLTOOL="$DLLTOOL"
 
15145
 
 
15146
# Used on cygwin: object dumper.
 
15147
OBJDUMP="$OBJDUMP"
 
15148
 
 
15149
# Used on cygwin: assembler.
 
15150
AS="$AS"
 
15151
 
 
15152
# The name of the directory that contains temporary libtool files.
 
15153
objdir=$objdir
 
15154
 
 
15155
# How to create reloadable object files.
 
15156
reload_flag=$lt_reload_flag
 
15157
reload_cmds=$lt_reload_cmds
 
15158
 
 
15159
# How to pass a linker flag through the compiler.
 
15160
wl=$lt_lt_prog_compiler_wl_F77
 
15161
 
 
15162
# Object file suffix (normally "o").
 
15163
objext="$ac_objext"
 
15164
 
 
15165
# Old archive suffix (normally "a").
 
15166
libext="$libext"
 
15167
 
 
15168
# Shared library suffix (normally ".so").
 
15169
shrext_cmds='$shrext_cmds'
 
15170
 
 
15171
# Executable file suffix (normally "").
 
15172
exeext="$exeext"
 
15173
 
 
15174
# Additional compiler flags for building library objects.
 
15175
pic_flag=$lt_lt_prog_compiler_pic_F77
 
15176
pic_mode=$pic_mode
 
15177
 
 
15178
# What is the maximum length of a command?
 
15179
max_cmd_len=$lt_cv_sys_max_cmd_len
 
15180
 
 
15181
# Does compiler simultaneously support -c and -o options?
 
15182
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
 
15183
 
 
15184
# Must we lock files when doing compilation ?
 
15185
need_locks=$lt_need_locks
 
15186
 
 
15187
# Do we need the lib prefix for modules?
 
15188
need_lib_prefix=$need_lib_prefix
 
15189
 
 
15190
# Do we need a version for libraries?
 
15191
need_version=$need_version
 
15192
 
 
15193
# Whether dlopen is supported.
 
15194
dlopen_support=$enable_dlopen
 
15195
 
 
15196
# Whether dlopen of programs is supported.
 
15197
dlopen_self=$enable_dlopen_self
 
15198
 
 
15199
# Whether dlopen of statically linked programs is supported.
 
15200
dlopen_self_static=$enable_dlopen_self_static
 
15201
 
 
15202
# Compiler flag to prevent dynamic linking.
 
15203
link_static_flag=$lt_lt_prog_compiler_static_F77
 
15204
 
 
15205
# Compiler flag to turn off builtin functions.
 
15206
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
 
15207
 
 
15208
# Compiler flag to allow reflexive dlopens.
 
15209
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
 
15210
 
 
15211
# Compiler flag to generate shared objects directly from archives.
 
15212
whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
 
15213
 
 
15214
# Compiler flag to generate thread-safe objects.
 
15215
thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
 
15216
 
 
15217
# Library versioning type.
 
15218
version_type=$version_type
 
15219
 
 
15220
# Format of library name prefix.
 
15221
libname_spec=$lt_libname_spec
 
15222
 
 
15223
# List of archive names.  First name is the real one, the rest are links.
 
15224
# The last name is the one that the linker finds with -lNAME.
 
15225
library_names_spec=$lt_library_names_spec
 
15226
 
 
15227
# The coded name of the library, if different from the real name.
 
15228
soname_spec=$lt_soname_spec
 
15229
 
 
15230
# Commands used to build and install an old-style archive.
 
15231
RANLIB=$lt_RANLIB
 
15232
old_archive_cmds=$lt_old_archive_cmds_F77
 
15233
old_postinstall_cmds=$lt_old_postinstall_cmds
 
15234
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
15235
 
 
15236
# Create an old-style archive from a shared archive.
 
15237
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
 
15238
 
 
15239
# Create a temporary old-style archive to link instead of a shared archive.
 
15240
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
 
15241
 
 
15242
# Commands used to build and install a shared archive.
 
15243
archive_cmds=$lt_archive_cmds_F77
 
15244
archive_expsym_cmds=$lt_archive_expsym_cmds_F77
 
15245
postinstall_cmds=$lt_postinstall_cmds
 
15246
postuninstall_cmds=$lt_postuninstall_cmds
 
15247
 
 
15248
# Commands used to build a loadable module (assumed same as above if empty)
 
15249
module_cmds=$lt_module_cmds_F77
 
15250
module_expsym_cmds=$lt_module_expsym_cmds_F77
 
15251
 
 
15252
# Commands to strip libraries.
 
15253
old_striplib=$lt_old_striplib
 
15254
striplib=$lt_striplib
 
15255
 
 
15256
# Dependencies to place before the objects being linked to create a
 
15257
# shared library.
 
15258
predep_objects=$lt_predep_objects_F77
 
15259
 
 
15260
# Dependencies to place after the objects being linked to create a
 
15261
# shared library.
 
15262
postdep_objects=$lt_postdep_objects_F77
 
15263
 
 
15264
# Dependencies to place before the objects being linked to create a
 
15265
# shared library.
 
15266
predeps=$lt_predeps_F77
 
15267
 
 
15268
# Dependencies to place after the objects being linked to create a
 
15269
# shared library.
 
15270
postdeps=$lt_postdeps_F77
 
15271
 
 
15272
# The library search path used internally by the compiler when linking
 
15273
# a shared library.
 
15274
compiler_lib_search_path=$lt_compiler_lib_search_path_F77
 
15275
 
 
15276
# Method to check whether dependent libraries are shared objects.
 
15277
deplibs_check_method=$lt_deplibs_check_method
 
15278
 
 
15279
# Command to use when deplibs_check_method == file_magic.
 
15280
file_magic_cmd=$lt_file_magic_cmd
 
15281
 
 
15282
# Flag that allows shared libraries with undefined symbols to be built.
 
15283
allow_undefined_flag=$lt_allow_undefined_flag_F77
 
15284
 
 
15285
# Flag that forces no undefined symbols.
 
15286
no_undefined_flag=$lt_no_undefined_flag_F77
 
15287
 
 
15288
# Commands used to finish a libtool library installation in a directory.
 
15289
finish_cmds=$lt_finish_cmds
 
15290
 
 
15291
# Same as above, but a single script fragment to be evaled but not shown.
 
15292
finish_eval=$lt_finish_eval
 
15293
 
 
15294
# Take the output of nm and produce a listing of raw symbols and C names.
 
15295
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
15296
 
 
15297
# Transform the output of nm in a proper C declaration
 
15298
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
15299
 
 
15300
# Transform the output of nm in a C name address pair
 
15301
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
15302
 
 
15303
# This is the shared library runtime path variable.
 
15304
runpath_var=$runpath_var
 
15305
 
 
15306
# This is the shared library path variable.
 
15307
shlibpath_var=$shlibpath_var
 
15308
 
 
15309
# Is shlibpath searched before the hard-coded library search path?
 
15310
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
15311
 
 
15312
# How to hardcode a shared library path into an executable.
 
15313
hardcode_action=$hardcode_action_F77
 
15314
 
 
15315
# Whether we should hardcode library paths into libraries.
 
15316
hardcode_into_libs=$hardcode_into_libs
 
15317
 
 
15318
# Flag to hardcode \$libdir into a binary during linking.
 
15319
# This must work even if \$libdir does not exist.
 
15320
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
 
15321
 
 
15322
# If ld is used when linking, flag to hardcode \$libdir into
 
15323
# a binary during linking. This must work even if \$libdir does
 
15324
# not exist.
 
15325
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
 
15326
 
 
15327
# Whether we need a single -rpath flag with a separated argument.
 
15328
hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
 
15329
 
 
15330
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
 
15331
# resulting binary.
 
15332
hardcode_direct=$hardcode_direct_F77
 
15333
 
 
15334
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
15335
# resulting binary.
 
15336
hardcode_minus_L=$hardcode_minus_L_F77
 
15337
 
 
15338
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
15339
# the resulting binary.
 
15340
hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
 
15341
 
 
15342
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
15343
# and all subsequent libraries and executables linked against it.
 
15344
hardcode_automatic=$hardcode_automatic_F77
 
15345
 
 
15346
# Variables whose values should be saved in libtool wrapper scripts and
 
15347
# restored at relink time.
 
15348
variables_saved_for_relink="$variables_saved_for_relink"
 
15349
 
 
15350
# Whether libtool must link a program against all its dependency libraries.
 
15351
link_all_deplibs=$link_all_deplibs_F77
 
15352
 
 
15353
# Compile-time system search path for libraries
 
15354
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
15355
 
 
15356
# Run-time system search path for libraries
 
15357
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
15358
 
 
15359
# Fix the shell variable \$srcfile for the compiler.
 
15360
fix_srcfile_path="$fix_srcfile_path_F77"
 
15361
 
 
15362
# Set to yes if exported symbols are required.
 
15363
always_export_symbols=$always_export_symbols_F77
 
15364
 
 
15365
# The commands to list exported symbols.
 
15366
export_symbols_cmds=$lt_export_symbols_cmds_F77
 
15367
 
 
15368
# The commands to extract the exported symbol list from a shared archive.
 
15369
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
15370
 
 
15371
# Symbols that should not be listed in the preloaded symbols.
 
15372
exclude_expsyms=$lt_exclude_expsyms_F77
 
15373
 
 
15374
# Symbols that must always be exported.
 
15375
include_expsyms=$lt_include_expsyms_F77
 
15376
 
 
15377
# ### END LIBTOOL TAG CONFIG: $tagname
 
15378
 
 
15379
__EOF__
 
15380
 
 
15381
 
 
15382
else
 
15383
  # If there is no Makefile yet, we rely on a make rule to execute
 
15384
  # `config.status --recheck' to rerun these tests and create the
 
15385
  # libtool script then.
 
15386
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
 
15387
  if test -f "$ltmain_in"; then
 
15388
    test -f Makefile && make "$ltmain"
 
15389
  fi
 
15390
fi
 
15391
 
 
15392
 
 
15393
ac_ext=c
 
15394
ac_cpp='$CPP $CPPFLAGS'
 
15395
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
15396
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
15397
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
15398
 
 
15399
CC="$lt_save_CC"
 
15400
 
 
15401
        else
 
15402
          tagname=""
 
15403
        fi
 
15404
        ;;
 
15405
 
 
15406
      GCJ)
 
15407
        if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
 
15408
 
 
15409
 
 
15410
 
 
15411
# Source file extension for Java test sources.
 
15412
ac_ext=java
 
15413
 
 
15414
# Object file extension for compiled Java test sources.
 
15415
objext=o
 
15416
objext_GCJ=$objext
 
15417
 
 
15418
# Code to be used in simple compile tests
 
15419
lt_simple_compile_test_code="class foo {}\n"
 
15420
 
 
15421
# Code to be used in simple link tests
 
15422
lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
 
15423
 
 
15424
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
15425
 
 
15426
# If no C compiler was specified, use CC.
 
15427
LTCC=${LTCC-"$CC"}
 
15428
 
 
15429
# Allow CC to be a program name with arguments.
 
15430
compiler=$CC
 
15431
 
 
15432
 
 
15433
# Allow CC to be a program name with arguments.
 
15434
lt_save_CC="$CC"
 
15435
CC=${GCJ-"gcj"}
 
15436
compiler=$CC
 
15437
compiler_GCJ=$CC
 
15438
 
 
15439
# GCJ did not exist at the time GCC didn't implicitly link libc in.
 
15440
archive_cmds_need_lc_GCJ=no
 
15441
 
 
15442
 
 
15443
lt_prog_compiler_no_builtin_flag_GCJ=
 
15444
 
 
15445
if test "$GCC" = yes; then
 
15446
  lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
 
15447
 
 
15448
 
 
15449
echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
 
15450
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
 
15451
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
 
15452
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
15453
else
 
15454
  lt_cv_prog_compiler_rtti_exceptions=no
 
15455
  ac_outfile=conftest.$ac_objext
 
15456
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
15457
   lt_compiler_flag="-fno-rtti -fno-exceptions"
 
15458
   # Insert the option either (1) after the last *FLAGS variable, or
 
15459
   # (2) before a word containing "conftest.", or (3) at the end.
 
15460
   # Note that $ac_compile itself does not contain backslashes and begins
 
15461
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
15462
   # The option is referenced via a variable to avoid confusing sed.
 
15463
   lt_compile=`echo "$ac_compile" | $SED \
 
15464
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
15465
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
15466
   -e 's:$: $lt_compiler_flag:'`
 
15467
   (eval echo "\"\$as_me:15467: $lt_compile\"" >&5)
 
15468
   (eval "$lt_compile" 2>conftest.err)
 
15469
   ac_status=$?
 
15470
   cat conftest.err >&5
 
15471
   echo "$as_me:15471: \$? = $ac_status" >&5
 
15472
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
15473
     # The compiler can only warn and ignore the option if not recognized
 
15474
     # So say no if there are warnings
 
15475
     if test ! -s conftest.err; then
 
15476
       lt_cv_prog_compiler_rtti_exceptions=yes
 
15477
     fi
 
15478
   fi
 
15479
   $rm conftest*
 
15480
 
 
15481
fi
 
15482
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
 
15483
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
 
15484
 
 
15485
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
 
15486
    lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
 
15487
else
 
15488
    :
 
15489
fi
 
15490
 
 
15491
fi
 
15492
 
 
15493
lt_prog_compiler_wl_GCJ=
 
15494
lt_prog_compiler_pic_GCJ=
 
15495
lt_prog_compiler_static_GCJ=
 
15496
 
 
15497
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
 
15498
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
 
15499
 
 
15500
  if test "$GCC" = yes; then
 
15501
    lt_prog_compiler_wl_GCJ='-Wl,'
 
15502
    lt_prog_compiler_static_GCJ='-static'
 
15503
 
 
15504
    case $host_os in
 
15505
      aix*)
 
15506
      # All AIX code is PIC.
 
15507
      if test "$host_cpu" = ia64; then
 
15508
        # AIX 5 now supports IA64 processor
 
15509
        lt_prog_compiler_static_GCJ='-Bstatic'
 
15510
      fi
 
15511
      ;;
 
15512
 
 
15513
    amigaos*)
 
15514
      # FIXME: we need at least 68020 code to build shared libraries, but
 
15515
      # adding the `-m68020' flag to GCC prevents building anything better,
 
15516
      # like `-m68040'.
 
15517
      lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
 
15518
      ;;
 
15519
 
 
15520
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
15521
      # PIC is the default for these OSes.
 
15522
      ;;
 
15523
 
 
15524
    mingw* | pw32* | os2*)
 
15525
      # This hack is so that the source file can tell whether it is being
 
15526
      # built for inclusion in a dll (and should export symbols for example).
 
15527
      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
 
15528
      ;;
 
15529
 
 
15530
    darwin* | rhapsody*)
 
15531
      # PIC is the default on this platform
 
15532
      # Common symbols not allowed in MH_DYLIB files
 
15533
      lt_prog_compiler_pic_GCJ='-fno-common'
 
15534
      ;;
 
15535
 
 
15536
    msdosdjgpp*)
 
15537
      # Just because we use GCC doesn't mean we suddenly get shared libraries
 
15538
      # on systems that don't support them.
 
15539
      lt_prog_compiler_can_build_shared_GCJ=no
 
15540
      enable_shared=no
 
15541
      ;;
 
15542
 
 
15543
    sysv4*MP*)
 
15544
      if test -d /usr/nec; then
 
15545
        lt_prog_compiler_pic_GCJ=-Kconform_pic
 
15546
      fi
 
15547
      ;;
 
15548
 
 
15549
    hpux*)
 
15550
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
15551
      # not for PA HP-UX.
 
15552
      case "$host_cpu" in
 
15553
      hppa*64*|ia64*)
 
15554
        # +Z the default
 
15555
        ;;
 
15556
      *)
 
15557
        lt_prog_compiler_pic_GCJ='-fPIC'
 
15558
        ;;
 
15559
      esac
 
15560
      ;;
 
15561
 
 
15562
    *)
 
15563
      lt_prog_compiler_pic_GCJ='-fPIC'
 
15564
      ;;
 
15565
    esac
 
15566
  else
 
15567
    # PORTME Check for flag to pass linker flags through the system compiler.
 
15568
    case $host_os in
 
15569
    aix*)
 
15570
      lt_prog_compiler_wl_GCJ='-Wl,'
 
15571
      if test "$host_cpu" = ia64; then
 
15572
        # AIX 5 now supports IA64 processor
 
15573
        lt_prog_compiler_static_GCJ='-Bstatic'
 
15574
      else
 
15575
        lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
 
15576
      fi
 
15577
      ;;
 
15578
 
 
15579
    mingw* | pw32* | os2*)
 
15580
      # This hack is so that the source file can tell whether it is being
 
15581
      # built for inclusion in a dll (and should export symbols for example).
 
15582
      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
 
15583
      ;;
 
15584
 
 
15585
    hpux9* | hpux10* | hpux11*)
 
15586
      lt_prog_compiler_wl_GCJ='-Wl,'
 
15587
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
15588
      # not for PA HP-UX.
 
15589
      case "$host_cpu" in
 
15590
      hppa*64*|ia64*)
 
15591
        # +Z the default
 
15592
        ;;
 
15593
      *)
 
15594
        lt_prog_compiler_pic_GCJ='+Z'
 
15595
        ;;
 
15596
      esac
 
15597
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
 
15598
      lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
 
15599
      ;;
 
15600
 
 
15601
    irix5* | irix6* | nonstopux*)
 
15602
      lt_prog_compiler_wl_GCJ='-Wl,'
 
15603
      # PIC (with -KPIC) is the default.
 
15604
      lt_prog_compiler_static_GCJ='-non_shared'
 
15605
      ;;
 
15606
 
 
15607
    newsos6)
 
15608
      lt_prog_compiler_pic_GCJ='-KPIC'
 
15609
      lt_prog_compiler_static_GCJ='-Bstatic'
 
15610
      ;;
 
15611
 
 
15612
    linux*)
 
15613
      case $CC in
 
15614
      icc* | ecc*)
 
15615
        lt_prog_compiler_wl_GCJ='-Wl,'
 
15616
        lt_prog_compiler_pic_GCJ='-KPIC'
 
15617
        lt_prog_compiler_static_GCJ='-static'
 
15618
        ;;
 
15619
      ccc*)
 
15620
        lt_prog_compiler_wl_GCJ='-Wl,'
 
15621
        # All Alpha code is PIC.
 
15622
        lt_prog_compiler_static_GCJ='-non_shared'
 
15623
        ;;
 
15624
      esac
 
15625
      ;;
 
15626
 
 
15627
    osf3* | osf4* | osf5*)
 
15628
      lt_prog_compiler_wl_GCJ='-Wl,'
 
15629
      # All OSF/1 code is PIC.
 
15630
      lt_prog_compiler_static_GCJ='-non_shared'
 
15631
      ;;
 
15632
 
 
15633
    sco3.2v5*)
 
15634
      lt_prog_compiler_pic_GCJ='-Kpic'
 
15635
      lt_prog_compiler_static_GCJ='-dn'
 
15636
      ;;
 
15637
 
 
15638
    solaris*)
 
15639
      lt_prog_compiler_wl_GCJ='-Wl,'
 
15640
      lt_prog_compiler_pic_GCJ='-KPIC'
 
15641
      lt_prog_compiler_static_GCJ='-Bstatic'
 
15642
      ;;
 
15643
 
 
15644
    sunos4*)
 
15645
      lt_prog_compiler_wl_GCJ='-Qoption ld '
 
15646
      lt_prog_compiler_pic_GCJ='-PIC'
 
15647
      lt_prog_compiler_static_GCJ='-Bstatic'
 
15648
      ;;
 
15649
 
 
15650
    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
15651
      lt_prog_compiler_wl_GCJ='-Wl,'
 
15652
      lt_prog_compiler_pic_GCJ='-KPIC'
 
15653
      lt_prog_compiler_static_GCJ='-Bstatic'
 
15654
      ;;
 
15655
 
 
15656
    sysv4*MP*)
 
15657
      if test -d /usr/nec ;then
 
15658
        lt_prog_compiler_pic_GCJ='-Kconform_pic'
 
15659
        lt_prog_compiler_static_GCJ='-Bstatic'
 
15660
      fi
 
15661
      ;;
 
15662
 
 
15663
    uts4*)
 
15664
      lt_prog_compiler_pic_GCJ='-pic'
 
15665
      lt_prog_compiler_static_GCJ='-Bstatic'
 
15666
      ;;
 
15667
 
 
15668
    *)
 
15669
      lt_prog_compiler_can_build_shared_GCJ=no
 
15670
      ;;
 
15671
    esac
 
15672
  fi
 
15673
 
 
15674
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
 
15675
echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
 
15676
 
 
15677
#
 
15678
# Check to make sure the PIC flag actually works.
 
15679
#
 
15680
if test -n "$lt_prog_compiler_pic_GCJ"; then
 
15681
 
 
15682
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
 
15683
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
 
15684
if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
 
15685
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
15686
else
 
15687
  lt_prog_compiler_pic_works_GCJ=no
 
15688
  ac_outfile=conftest.$ac_objext
 
15689
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
15690
   lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
 
15691
   # Insert the option either (1) after the last *FLAGS variable, or
 
15692
   # (2) before a word containing "conftest.", or (3) at the end.
 
15693
   # Note that $ac_compile itself does not contain backslashes and begins
 
15694
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
15695
   # The option is referenced via a variable to avoid confusing sed.
 
15696
   lt_compile=`echo "$ac_compile" | $SED \
 
15697
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
15698
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
15699
   -e 's:$: $lt_compiler_flag:'`
 
15700
   (eval echo "\"\$as_me:15700: $lt_compile\"" >&5)
 
15701
   (eval "$lt_compile" 2>conftest.err)
 
15702
   ac_status=$?
 
15703
   cat conftest.err >&5
 
15704
   echo "$as_me:15704: \$? = $ac_status" >&5
 
15705
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
15706
     # The compiler can only warn and ignore the option if not recognized
 
15707
     # So say no if there are warnings
 
15708
     if test ! -s conftest.err; then
 
15709
       lt_prog_compiler_pic_works_GCJ=yes
 
15710
     fi
 
15711
   fi
 
15712
   $rm conftest*
 
15713
 
 
15714
fi
 
15715
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
 
15716
echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
 
15717
 
 
15718
if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
 
15719
    case $lt_prog_compiler_pic_GCJ in
 
15720
     "" | " "*) ;;
 
15721
     *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
 
15722
     esac
 
15723
else
 
15724
    lt_prog_compiler_pic_GCJ=
 
15725
     lt_prog_compiler_can_build_shared_GCJ=no
 
15726
fi
 
15727
 
 
15728
fi
 
15729
case "$host_os" in
 
15730
  # For platforms which do not support PIC, -DPIC is meaningless:
 
15731
  *djgpp*)
 
15732
    lt_prog_compiler_pic_GCJ=
 
15733
    ;;
 
15734
  *)
 
15735
    lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
 
15736
    ;;
 
15737
esac
 
15738
 
 
15739
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
15740
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
 
15741
if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
 
15742
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
15743
else
 
15744
  lt_cv_prog_compiler_c_o_GCJ=no
 
15745
   $rm -r conftest 2>/dev/null
 
15746
   mkdir conftest
 
15747
   cd conftest
 
15748
   mkdir out
 
15749
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
15750
 
 
15751
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
15752
   # Insert the option either (1) after the last *FLAGS variable, or
 
15753
   # (2) before a word containing "conftest.", or (3) at the end.
 
15754
   # Note that $ac_compile itself does not contain backslashes and begins
 
15755
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
15756
   lt_compile=`echo "$ac_compile" | $SED \
 
15757
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
15758
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
15759
   -e 's:$: $lt_compiler_flag:'`
 
15760
   (eval echo "\"\$as_me:15760: $lt_compile\"" >&5)
 
15761
   (eval "$lt_compile" 2>out/conftest.err)
 
15762
   ac_status=$?
 
15763
   cat out/conftest.err >&5
 
15764
   echo "$as_me:15764: \$? = $ac_status" >&5
 
15765
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
15766
   then
 
15767
     # The compiler can only warn and ignore the option if not recognized
 
15768
     # So say no if there are warnings
 
15769
     if test ! -s out/conftest.err; then
 
15770
       lt_cv_prog_compiler_c_o_GCJ=yes
 
15771
     fi
 
15772
   fi
 
15773
   chmod u+w .
 
15774
   $rm conftest*
 
15775
   # SGI C++ compiler will create directory out/ii_files/ for
 
15776
   # template instantiation
 
15777
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
 
15778
   $rm out/* && rmdir out
 
15779
   cd ..
 
15780
   rmdir conftest
 
15781
   $rm conftest*
 
15782
 
 
15783
fi
 
15784
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
 
15785
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
 
15786
 
 
15787
 
 
15788
hard_links="nottested"
 
15789
if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
 
15790
  # do not overwrite the value of need_locks provided by the user
 
15791
  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
 
15792
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
 
15793
  hard_links=yes
 
15794
  $rm conftest*
 
15795
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
15796
  touch conftest.a
 
15797
  ln conftest.a conftest.b 2>&5 || hard_links=no
 
15798
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
15799
  echo "$as_me:$LINENO: result: $hard_links" >&5
 
15800
echo "${ECHO_T}$hard_links" >&6
 
15801
  if test "$hard_links" = no; then
 
15802
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
 
15803
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
 
15804
    need_locks=warn
 
15805
  fi
 
15806
else
 
15807
  need_locks=no
 
15808
fi
 
15809
 
 
15810
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
15811
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
 
15812
 
 
15813
  runpath_var=
 
15814
  allow_undefined_flag_GCJ=
 
15815
  enable_shared_with_static_runtimes_GCJ=no
 
15816
  archive_cmds_GCJ=
 
15817
  archive_expsym_cmds_GCJ=
 
15818
  old_archive_From_new_cmds_GCJ=
 
15819
  old_archive_from_expsyms_cmds_GCJ=
 
15820
  export_dynamic_flag_spec_GCJ=
 
15821
  whole_archive_flag_spec_GCJ=
 
15822
  thread_safe_flag_spec_GCJ=
 
15823
  hardcode_libdir_flag_spec_GCJ=
 
15824
  hardcode_libdir_flag_spec_ld_GCJ=
 
15825
  hardcode_libdir_separator_GCJ=
 
15826
  hardcode_direct_GCJ=no
 
15827
  hardcode_minus_L_GCJ=no
 
15828
  hardcode_shlibpath_var_GCJ=unsupported
 
15829
  link_all_deplibs_GCJ=unknown
 
15830
  hardcode_automatic_GCJ=no
 
15831
  module_cmds_GCJ=
 
15832
  module_expsym_cmds_GCJ=
 
15833
  always_export_symbols_GCJ=no
 
15834
  export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
15835
  # include_expsyms should be a list of space-separated symbols to be *always*
 
15836
  # included in the symbol list
 
15837
  include_expsyms_GCJ=
 
15838
  # exclude_expsyms can be an extended regexp of symbols to exclude
 
15839
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
 
15840
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
 
15841
  # as well as any symbol that contains `d'.
 
15842
  exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
 
15843
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
 
15844
  # platforms (ab)use it in PIC code, but their linkers get confused if
 
15845
  # the symbol is explicitly referenced.  Since portable code cannot
 
15846
  # rely on this symbol name, it's probably fine to never include it in
 
15847
  # preloaded symbol tables.
 
15848
  extract_expsyms_cmds=
 
15849
 
 
15850
  case $host_os in
 
15851
  cygwin* | mingw* | pw32*)
 
15852
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
 
15853
    # When not using gcc, we currently assume that we are using
 
15854
    # Microsoft Visual C++.
 
15855
    if test "$GCC" != yes; then
 
15856
      with_gnu_ld=no
 
15857
    fi
 
15858
    ;;
 
15859
  openbsd*)
 
15860
    with_gnu_ld=no
 
15861
    ;;
 
15862
  esac
 
15863
 
 
15864
  ld_shlibs_GCJ=yes
 
15865
  if test "$with_gnu_ld" = yes; then
 
15866
    # If archive_cmds runs LD, not CC, wlarc should be empty
 
15867
    wlarc='${wl}'
 
15868
 
 
15869
    # See if GNU ld supports shared libraries.
 
15870
    case $host_os in
 
15871
    aix3* | aix4* | aix5*)
 
15872
      # On AIX/PPC, the GNU linker is very broken
 
15873
      if test "$host_cpu" != ia64; then
 
15874
        ld_shlibs_GCJ=no
 
15875
        cat <<EOF 1>&2
 
15876
 
 
15877
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
 
15878
*** to be unable to reliably create shared libraries on AIX.
 
15879
*** Therefore, libtool is disabling shared libraries support.  If you
 
15880
*** really care for shared libraries, you may want to modify your PATH
 
15881
*** so that a non-GNU linker is found, and then restart.
 
15882
 
 
15883
EOF
 
15884
      fi
 
15885
      ;;
 
15886
 
 
15887
    amigaos*)
 
15888
      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)'
 
15889
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
15890
      hardcode_minus_L_GCJ=yes
 
15891
 
 
15892
      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
 
15893
      # that the semantics of dynamic libraries on AmigaOS, at least up
 
15894
      # to version 4, is to share data among multiple programs linked
 
15895
      # with the same dynamic library.  Since this doesn't match the
 
15896
      # behavior of shared libraries on other platforms, we can't use
 
15897
      # them.
 
15898
      ld_shlibs_GCJ=no
 
15899
      ;;
 
15900
 
 
15901
    beos*)
 
15902
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
15903
        allow_undefined_flag_GCJ=unsupported
 
15904
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
15905
        # support --undefined.  This deserves some investigation.  FIXME
 
15906
        archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
15907
      else
 
15908
        ld_shlibs_GCJ=no
 
15909
      fi
 
15910
      ;;
 
15911
 
 
15912
    cygwin* | mingw* | pw32*)
 
15913
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
 
15914
      # as there is no search path for DLLs.
 
15915
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
15916
      allow_undefined_flag_GCJ=unsupported
 
15917
      always_export_symbols_GCJ=no
 
15918
      enable_shared_with_static_runtimes_GCJ=yes
 
15919
      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
 
15920
 
 
15921
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
 
15922
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
 
15923
        # If the export-symbols file already is a .def file (1st line
 
15924
        # is EXPORTS), use it as is; otherwise, prepend...
 
15925
        archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
15926
          cp $export_symbols $output_objdir/$soname.def;
 
15927
        else
 
15928
          echo EXPORTS > $output_objdir/$soname.def;
 
15929
          cat $export_symbols >> $output_objdir/$soname.def;
 
15930
        fi~
 
15931
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
 
15932
      else
 
15933
        ld_shlibs=no
 
15934
      fi
 
15935
      ;;
 
15936
 
 
15937
    netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
 
15938
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
15939
        archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
 
15940
        wlarc=
 
15941
      else
 
15942
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
15943
        archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
15944
      fi
 
15945
      ;;
 
15946
 
 
15947
    solaris* | sysv5*)
 
15948
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
 
15949
        ld_shlibs_GCJ=no
 
15950
        cat <<EOF 1>&2
 
15951
 
 
15952
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
 
15953
*** create shared libraries on Solaris systems.  Therefore, libtool
 
15954
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
15955
*** binutils to release 2.9.1 or newer.  Another option is to modify
 
15956
*** your PATH or compiler configuration so that the native linker is
 
15957
*** used, and then restart.
 
15958
 
 
15959
EOF
 
15960
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
15961
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
15962
        archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
15963
      else
 
15964
        ld_shlibs_GCJ=no
 
15965
      fi
 
15966
      ;;
 
15967
 
 
15968
    sunos4*)
 
15969
      archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
15970
      wlarc=
 
15971
      hardcode_direct_GCJ=yes
 
15972
      hardcode_shlibpath_var_GCJ=no
 
15973
      ;;
 
15974
 
 
15975
  linux*)
 
15976
    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
15977
        tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
15978
        archive_cmds_GCJ="$tmp_archive_cmds"
 
15979
      supports_anon_versioning=no
 
15980
      case `$LD -v 2>/dev/null` in
 
15981
        *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
 
15982
        *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
 
15983
        *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
 
15984
        *\ 2.11.*) ;; # other 2.11 versions
 
15985
        *) supports_anon_versioning=yes ;;
 
15986
      esac
 
15987
      if test $supports_anon_versioning = yes; then
 
15988
        archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
 
15989
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
15990
$echo "local: *; };" >> $output_objdir/$libname.ver~
 
15991
        $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
15992
      else
 
15993
        archive_expsym_cmds_GCJ="$tmp_archive_cmds"
 
15994
      fi
 
15995
      link_all_deplibs_GCJ=no
 
15996
    else
 
15997
      ld_shlibs_GCJ=no
 
15998
    fi
 
15999
    ;;
 
16000
 
 
16001
    *)
 
16002
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
16003
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
16004
        archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
16005
      else
 
16006
        ld_shlibs_GCJ=no
 
16007
      fi
 
16008
      ;;
 
16009
    esac
 
16010
 
 
16011
    if test "$ld_shlibs_GCJ" = yes; then
 
16012
      runpath_var=LD_RUN_PATH
 
16013
      hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
 
16014
      export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
 
16015
      # ancient GNU ld didn't support --whole-archive et. al.
 
16016
      if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
 
16017
        whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
16018
      else
 
16019
        whole_archive_flag_spec_GCJ=
 
16020
      fi
 
16021
    fi
 
16022
  else
 
16023
    # PORTME fill in a description of your system's linker (not GNU ld)
 
16024
    case $host_os in
 
16025
    aix3*)
 
16026
      allow_undefined_flag_GCJ=unsupported
 
16027
      always_export_symbols_GCJ=yes
 
16028
      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'
 
16029
      # Note: this linker hardcodes the directories in LIBPATH if there
 
16030
      # are no directories specified by -L.
 
16031
      hardcode_minus_L_GCJ=yes
 
16032
      if test "$GCC" = yes && test -z "$link_static_flag"; then
 
16033
        # Neither direct hardcoding nor static linking is supported with a
 
16034
        # broken collect2.
 
16035
        hardcode_direct_GCJ=unsupported
 
16036
      fi
 
16037
      ;;
 
16038
 
 
16039
    aix4* | aix5*)
 
16040
      if test "$host_cpu" = ia64; then
 
16041
        # On IA64, the linker does run time linking by default, so we don't
 
16042
        # have to do anything special.
 
16043
        aix_use_runtimelinking=no
 
16044
        exp_sym_flag='-Bexport'
 
16045
        no_entry_flag=""
 
16046
      else
 
16047
        # If we're using GNU nm, then we don't want the "-C" option.
 
16048
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
16049
        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
 
16050
          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'
 
16051
        else
 
16052
          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'
 
16053
        fi
 
16054
        aix_use_runtimelinking=no
 
16055
 
 
16056
        # Test if we are trying to use run time linking or normal
 
16057
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
16058
        # need to do runtime linking.
 
16059
        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
 
16060
          for ld_flag in $LDFLAGS; do
 
16061
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
 
16062
            aix_use_runtimelinking=yes
 
16063
            break
 
16064
          fi
 
16065
          done
 
16066
        esac
 
16067
 
 
16068
        exp_sym_flag='-bexport'
 
16069
        no_entry_flag='-bnoentry'
 
16070
      fi
 
16071
 
 
16072
      # When large executables or shared objects are built, AIX ld can
 
16073
      # have problems creating the table of contents.  If linking a library
 
16074
      # or program results in "error TOC overflow" add -mminimal-toc to
 
16075
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
16076
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
16077
 
 
16078
      archive_cmds_GCJ=''
 
16079
      hardcode_direct_GCJ=yes
 
16080
      hardcode_libdir_separator_GCJ=':'
 
16081
      link_all_deplibs_GCJ=yes
 
16082
 
 
16083
      if test "$GCC" = yes; then
 
16084
        case $host_os in aix4.012|aix4.012.*)
 
16085
        # We only want to do this on AIX 4.2 and lower, the check
 
16086
        # below for broken collect2 doesn't work under 4.3+
 
16087
          collect2name=`${CC} -print-prog-name=collect2`
 
16088
          if test -f "$collect2name" && \
 
16089
           strings "$collect2name" | grep resolve_lib_name >/dev/null
 
16090
          then
 
16091
          # We have reworked collect2
 
16092
          hardcode_direct_GCJ=yes
 
16093
          else
 
16094
          # We have old collect2
 
16095
          hardcode_direct_GCJ=unsupported
 
16096
          # It fails to find uninstalled libraries when the uninstalled
 
16097
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
16098
          # to unsupported forces relinking
 
16099
          hardcode_minus_L_GCJ=yes
 
16100
          hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
16101
          hardcode_libdir_separator_GCJ=
 
16102
          fi
 
16103
        esac
 
16104
        shared_flag='-shared'
 
16105
      else
 
16106
        # not using gcc
 
16107
        if test "$host_cpu" = ia64; then
 
16108
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
16109
        # chokes on -Wl,-G. The following line is correct:
 
16110
          shared_flag='-G'
 
16111
        else
 
16112
        if test "$aix_use_runtimelinking" = yes; then
 
16113
            shared_flag='${wl}-G'
 
16114
          else
 
16115
            shared_flag='${wl}-bM:SRE'
 
16116
        fi
 
16117
        fi
 
16118
      fi
 
16119
 
 
16120
      # It seems that -bexpall does not export symbols beginning with
 
16121
      # underscore (_), so it is better to generate a list of symbols to export.
 
16122
      always_export_symbols_GCJ=yes
 
16123
      if test "$aix_use_runtimelinking" = yes; then
 
16124
        # Warning - without using the other runtime loading flags (-brtl),
 
16125
        # -berok will link without error, but may produce a broken library.
 
16126
        allow_undefined_flag_GCJ='-berok'
 
16127
       # Determine the default libpath from the value encoded in an empty executable.
 
16128
       cat >conftest.$ac_ext <<_ACEOF
 
16129
/* confdefs.h.  */
 
16130
_ACEOF
 
16131
cat confdefs.h >>conftest.$ac_ext
 
16132
cat >>conftest.$ac_ext <<_ACEOF
 
16133
/* end confdefs.h.  */
 
16134
 
 
16135
int
 
16136
main ()
 
16137
{
 
16138
 
 
16139
  ;
 
16140
  return 0;
 
16141
}
 
16142
_ACEOF
 
16143
rm -f conftest.$ac_objext conftest$ac_exeext
 
16144
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
16145
  (eval $ac_link) 2>conftest.er1
 
16146
  ac_status=$?
 
16147
  grep -v '^ *+' conftest.er1 >conftest.err
 
16148
  rm -f conftest.er1
 
16149
  cat conftest.err >&5
 
16150
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16151
  (exit $ac_status); } &&
 
16152
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
16153
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
16154
  (eval $ac_try) 2>&5
 
16155
  ac_status=$?
 
16156
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16157
  (exit $ac_status); }; } &&
 
16158
         { ac_try='test -s conftest$ac_exeext'
 
16159
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
16160
  (eval $ac_try) 2>&5
 
16161
  ac_status=$?
 
16162
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16163
  (exit $ac_status); }; }; then
 
16164
 
 
16165
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
16166
}'`
 
16167
# Check for a 64-bit object if we didn't find anything.
 
16168
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; }
 
16169
}'`; fi
 
16170
else
 
16171
  echo "$as_me: failed program was:" >&5
 
16172
sed 's/^/| /' conftest.$ac_ext >&5
 
16173
 
 
16174
fi
 
16175
rm -f conftest.err conftest.$ac_objext \
 
16176
      conftest$ac_exeext conftest.$ac_ext
 
16177
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
16178
 
 
16179
       hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
 
16180
        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"
 
16181
       else
 
16182
        if test "$host_cpu" = ia64; then
 
16183
          hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
 
16184
          allow_undefined_flag_GCJ="-z nodefs"
 
16185
          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"
 
16186
        else
 
16187
         # Determine the default libpath from the value encoded in an empty executable.
 
16188
         cat >conftest.$ac_ext <<_ACEOF
 
16189
/* confdefs.h.  */
 
16190
_ACEOF
 
16191
cat confdefs.h >>conftest.$ac_ext
 
16192
cat >>conftest.$ac_ext <<_ACEOF
 
16193
/* end confdefs.h.  */
 
16194
 
 
16195
int
 
16196
main ()
 
16197
{
 
16198
 
 
16199
  ;
 
16200
  return 0;
 
16201
}
 
16202
_ACEOF
 
16203
rm -f conftest.$ac_objext conftest$ac_exeext
 
16204
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
16205
  (eval $ac_link) 2>conftest.er1
 
16206
  ac_status=$?
 
16207
  grep -v '^ *+' conftest.er1 >conftest.err
 
16208
  rm -f conftest.er1
 
16209
  cat conftest.err >&5
 
16210
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16211
  (exit $ac_status); } &&
 
16212
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
16213
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
16214
  (eval $ac_try) 2>&5
 
16215
  ac_status=$?
 
16216
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16217
  (exit $ac_status); }; } &&
 
16218
         { ac_try='test -s conftest$ac_exeext'
 
16219
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
16220
  (eval $ac_try) 2>&5
 
16221
  ac_status=$?
 
16222
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16223
  (exit $ac_status); }; }; then
 
16224
 
 
16225
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
16226
}'`
 
16227
# Check for a 64-bit object if we didn't find anything.
 
16228
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; }
 
16229
}'`; fi
 
16230
else
 
16231
  echo "$as_me: failed program was:" >&5
 
16232
sed 's/^/| /' conftest.$ac_ext >&5
 
16233
 
 
16234
fi
 
16235
rm -f conftest.err conftest.$ac_objext \
 
16236
      conftest$ac_exeext conftest.$ac_ext
 
16237
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
16238
 
 
16239
         hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
 
16240
          # Warning - without using the other run time loading flags,
 
16241
          # -berok will link without error, but may produce a broken library.
 
16242
          no_undefined_flag_GCJ=' ${wl}-bernotok'
 
16243
          allow_undefined_flag_GCJ=' ${wl}-berok'
 
16244
          # -bexpall does not export symbols beginning with underscore (_)
 
16245
          always_export_symbols_GCJ=yes
 
16246
          # Exported symbols can be pulled into shared objects from archives
 
16247
          whole_archive_flag_spec_GCJ=' '
 
16248
          archive_cmds_need_lc_GCJ=yes
 
16249
          # This is similar to how AIX traditionally builds it's shared libraries.
 
16250
          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'
 
16251
        fi
 
16252
      fi
 
16253
      ;;
 
16254
 
 
16255
    amigaos*)
 
16256
      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)'
 
16257
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
16258
      hardcode_minus_L_GCJ=yes
 
16259
      # see comment about different semantics on the GNU ld section
 
16260
      ld_shlibs_GCJ=no
 
16261
      ;;
 
16262
 
 
16263
    bsdi4*)
 
16264
      export_dynamic_flag_spec_GCJ=-rdynamic
 
16265
      ;;
 
16266
 
 
16267
    cygwin* | mingw* | pw32*)
 
16268
      # When not using gcc, we currently assume that we are using
 
16269
      # Microsoft Visual C++.
 
16270
      # hardcode_libdir_flag_spec is actually meaningless, as there is
 
16271
      # no search path for DLLs.
 
16272
      hardcode_libdir_flag_spec_GCJ=' '
 
16273
      allow_undefined_flag_GCJ=unsupported
 
16274
      # Tell ltmain to make .lib files, not .a files.
 
16275
      libext=lib
 
16276
      # Tell ltmain to make .dll files, not .so files.
 
16277
      shrext_cmds=".dll"
 
16278
      # FIXME: Setting linknames here is a bad hack.
 
16279
      archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
 
16280
      # The linker will automatically build a .lib file if we build a DLL.
 
16281
      old_archive_From_new_cmds_GCJ='true'
 
16282
      # FIXME: Should let the user specify the lib program.
 
16283
      old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
 
16284
      fix_srcfile_path='`cygpath -w "$srcfile"`'
 
16285
      enable_shared_with_static_runtimes_GCJ=yes
 
16286
      ;;
 
16287
 
 
16288
    darwin* | rhapsody*)
 
16289
    if test "$GXX" = yes ; then
 
16290
      archive_cmds_need_lc_GCJ=no
 
16291
      case "$host_os" in
 
16292
      rhapsody* | darwin1.[012])
 
16293
        allow_undefined_flag_GCJ='-undefined suppress'
 
16294
        ;;
 
16295
      *) # Darwin 1.3 on
 
16296
      if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
16297
        allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
 
16298
      else
 
16299
        case ${MACOSX_DEPLOYMENT_TARGET} in
 
16300
          10.[012])
 
16301
            allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
 
16302
            ;;
 
16303
          10.*)
 
16304
            allow_undefined_flag_GCJ='-undefined dynamic_lookup'
 
16305
            ;;
 
16306
        esac
 
16307
      fi
 
16308
        ;;
 
16309
      esac
 
16310
        lt_int_apple_cc_single_mod=no
 
16311
        output_verbose_link_cmd='echo'
 
16312
        if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
 
16313
          lt_int_apple_cc_single_mod=yes
 
16314
        fi
 
16315
        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
16316
          archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
16317
        else
 
16318
        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'
 
16319
      fi
 
16320
      module_cmds_GCJ='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
16321
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
 
16322
        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
16323
          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}'
 
16324
        else
 
16325
          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}'
 
16326
        fi
 
16327
          module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
16328
      hardcode_direct_GCJ=no
 
16329
      hardcode_automatic_GCJ=yes
 
16330
      hardcode_shlibpath_var_GCJ=unsupported
 
16331
      whole_archive_flag_spec_GCJ='-all_load $convenience'
 
16332
      link_all_deplibs_GCJ=yes
 
16333
    else
 
16334
      ld_shlibs_GCJ=no
 
16335
    fi
 
16336
      ;;
 
16337
 
 
16338
    dgux*)
 
16339
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
16340
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
16341
      hardcode_shlibpath_var_GCJ=no
 
16342
      ;;
 
16343
 
 
16344
    freebsd1*)
 
16345
      ld_shlibs_GCJ=no
 
16346
      ;;
 
16347
 
 
16348
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
 
16349
    # support.  Future versions do this automatically, but an explicit c++rt0.o
 
16350
    # does not break anything, and helps significantly (at the cost of a little
 
16351
    # extra space).
 
16352
    freebsd2.2*)
 
16353
      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
 
16354
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
16355
      hardcode_direct_GCJ=yes
 
16356
      hardcode_shlibpath_var_GCJ=no
 
16357
      ;;
 
16358
 
 
16359
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
 
16360
    freebsd2*)
 
16361
      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
16362
      hardcode_direct_GCJ=yes
 
16363
      hardcode_minus_L_GCJ=yes
 
16364
      hardcode_shlibpath_var_GCJ=no
 
16365
      ;;
 
16366
 
 
16367
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
 
16368
    freebsd* | kfreebsd*-gnu)
 
16369
      archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
 
16370
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
16371
      hardcode_direct_GCJ=yes
 
16372
      hardcode_shlibpath_var_GCJ=no
 
16373
      ;;
 
16374
 
 
16375
    hpux9*)
 
16376
      if test "$GCC" = yes; then
 
16377
        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'
 
16378
      else
 
16379
        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'
 
16380
      fi
 
16381
      hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
 
16382
      hardcode_libdir_separator_GCJ=:
 
16383
      hardcode_direct_GCJ=yes
 
16384
 
 
16385
      # hardcode_minus_L: Not really in the search PATH,
 
16386
      # but as the default location of the library.
 
16387
      hardcode_minus_L_GCJ=yes
 
16388
      export_dynamic_flag_spec_GCJ='${wl}-E'
 
16389
      ;;
 
16390
 
 
16391
    hpux10* | hpux11*)
 
16392
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
16393
        case "$host_cpu" in
 
16394
        hppa*64*|ia64*)
 
16395
          archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
16396
          ;;
 
16397
        *)
 
16398
          archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
16399
          ;;
 
16400
        esac
 
16401
      else
 
16402
        case "$host_cpu" in
 
16403
        hppa*64*|ia64*)
 
16404
          archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
 
16405
          ;;
 
16406
        *)
 
16407
          archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
16408
          ;;
 
16409
        esac
 
16410
      fi
 
16411
      if test "$with_gnu_ld" = no; then
 
16412
        case "$host_cpu" in
 
16413
        hppa*64*)
 
16414
          hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
 
16415
          hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
 
16416
          hardcode_libdir_separator_GCJ=:
 
16417
          hardcode_direct_GCJ=no
 
16418
          hardcode_shlibpath_var_GCJ=no
 
16419
          ;;
 
16420
        ia64*)
 
16421
          hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
16422
          hardcode_direct_GCJ=no
 
16423
          hardcode_shlibpath_var_GCJ=no
 
16424
 
 
16425
          # hardcode_minus_L: Not really in the search PATH,
 
16426
          # but as the default location of the library.
 
16427
          hardcode_minus_L_GCJ=yes
 
16428
          ;;
 
16429
        *)
 
16430
          hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
 
16431
          hardcode_libdir_separator_GCJ=:
 
16432
          hardcode_direct_GCJ=yes
 
16433
          export_dynamic_flag_spec_GCJ='${wl}-E'
 
16434
 
 
16435
          # hardcode_minus_L: Not really in the search PATH,
 
16436
          # but as the default location of the library.
 
16437
          hardcode_minus_L_GCJ=yes
 
16438
          ;;
 
16439
        esac
 
16440
      fi
 
16441
      ;;
 
16442
 
 
16443
    irix5* | irix6* | nonstopux*)
 
16444
      if test "$GCC" = yes; then
 
16445
        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'
 
16446
      else
 
16447
        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'
 
16448
        hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
 
16449
      fi
 
16450
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
 
16451
      hardcode_libdir_separator_GCJ=:
 
16452
      link_all_deplibs_GCJ=yes
 
16453
      ;;
 
16454
 
 
16455
    netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
 
16456
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
16457
        archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
 
16458
      else
 
16459
        archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
 
16460
      fi
 
16461
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
16462
      hardcode_direct_GCJ=yes
 
16463
      hardcode_shlibpath_var_GCJ=no
 
16464
      ;;
 
16465
 
 
16466
    newsos6)
 
16467
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
16468
      hardcode_direct_GCJ=yes
 
16469
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
 
16470
      hardcode_libdir_separator_GCJ=:
 
16471
      hardcode_shlibpath_var_GCJ=no
 
16472
      ;;
 
16473
 
 
16474
    openbsd*)
 
16475
      hardcode_direct_GCJ=yes
 
16476
      hardcode_shlibpath_var_GCJ=no
 
16477
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
16478
        archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
16479
        hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
 
16480
        export_dynamic_flag_spec_GCJ='${wl}-E'
 
16481
      else
 
16482
       case $host_os in
 
16483
         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
 
16484
           archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
16485
           hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
16486
           ;;
 
16487
         *)
 
16488
           archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
16489
           hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
 
16490
           ;;
 
16491
       esac
 
16492
      fi
 
16493
      ;;
 
16494
 
 
16495
    os2*)
 
16496
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
16497
      hardcode_minus_L_GCJ=yes
 
16498
      allow_undefined_flag_GCJ=unsupported
 
16499
      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'
 
16500
      old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
 
16501
      ;;
 
16502
 
 
16503
    osf3*)
 
16504
      if test "$GCC" = yes; then
 
16505
        allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
 
16506
        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'
 
16507
      else
 
16508
        allow_undefined_flag_GCJ=' -expect_unresolved \*'
 
16509
        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'
 
16510
      fi
 
16511
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
 
16512
      hardcode_libdir_separator_GCJ=:
 
16513
      ;;
 
16514
 
 
16515
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
 
16516
      if test "$GCC" = yes; then
 
16517
        allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
 
16518
        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'
 
16519
        hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
 
16520
      else
 
16521
        allow_undefined_flag_GCJ=' -expect_unresolved \*'
 
16522
        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'
 
16523
        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~
 
16524
        $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'
 
16525
 
 
16526
        # Both c and cxx compiler support -rpath directly
 
16527
        hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
 
16528
      fi
 
16529
      hardcode_libdir_separator_GCJ=:
 
16530
      ;;
 
16531
 
 
16532
    sco3.2v5*)
 
16533
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
16534
      hardcode_shlibpath_var_GCJ=no
 
16535
      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
 
16536
      runpath_var=LD_RUN_PATH
 
16537
      hardcode_runpath_var=yes
 
16538
      ;;
 
16539
 
 
16540
    solaris*)
 
16541
      no_undefined_flag_GCJ=' -z text'
 
16542
      if test "$GCC" = yes; then
 
16543
        archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
16544
        archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
16545
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
 
16546
      else
 
16547
        archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
16548
        archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
16549
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
16550
      fi
 
16551
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
16552
      hardcode_shlibpath_var_GCJ=no
 
16553
      case $host_os in
 
16554
      solaris2.[0-5] | solaris2.[0-5].*) ;;
 
16555
      *) # Supported since Solaris 2.6 (maybe 2.5.1?)
 
16556
        whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
 
16557
      esac
 
16558
      link_all_deplibs_GCJ=yes
 
16559
      ;;
 
16560
 
 
16561
    sunos4*)
 
16562
      if test "x$host_vendor" = xsequent; then
 
16563
        # Use $CC to link under sequent, because it throws in some extra .o
 
16564
        # files that make .init and .fini sections work.
 
16565
        archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
 
16566
      else
 
16567
        archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
 
16568
      fi
 
16569
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
16570
      hardcode_direct_GCJ=yes
 
16571
      hardcode_minus_L_GCJ=yes
 
16572
      hardcode_shlibpath_var_GCJ=no
 
16573
      ;;
 
16574
 
 
16575
    sysv4)
 
16576
      case $host_vendor in
 
16577
        sni)
 
16578
          archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
16579
          hardcode_direct_GCJ=yes # is this really true???
 
16580
        ;;
 
16581
        siemens)
 
16582
          ## LD is ld it makes a PLAMLIB
 
16583
          ## CC just makes a GrossModule.
 
16584
          archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
16585
          reload_cmds_GCJ='$CC -r -o $output$reload_objs'
 
16586
          hardcode_direct_GCJ=no
 
16587
        ;;
 
16588
        motorola)
 
16589
          archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
16590
          hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
 
16591
        ;;
 
16592
      esac
 
16593
      runpath_var='LD_RUN_PATH'
 
16594
      hardcode_shlibpath_var_GCJ=no
 
16595
      ;;
 
16596
 
 
16597
    sysv4.3*)
 
16598
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
16599
      hardcode_shlibpath_var_GCJ=no
 
16600
      export_dynamic_flag_spec_GCJ='-Bexport'
 
16601
      ;;
 
16602
 
 
16603
    sysv4*MP*)
 
16604
      if test -d /usr/nec; then
 
16605
        archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
16606
        hardcode_shlibpath_var_GCJ=no
 
16607
        runpath_var=LD_RUN_PATH
 
16608
        hardcode_runpath_var=yes
 
16609
        ld_shlibs_GCJ=yes
 
16610
      fi
 
16611
      ;;
 
16612
 
 
16613
    sysv4.2uw2*)
 
16614
      archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
16615
      hardcode_direct_GCJ=yes
 
16616
      hardcode_minus_L_GCJ=no
 
16617
      hardcode_shlibpath_var_GCJ=no
 
16618
      hardcode_runpath_var=yes
 
16619
      runpath_var=LD_RUN_PATH
 
16620
      ;;
 
16621
 
 
16622
   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
 
16623
      no_undefined_flag_GCJ='${wl}-z ${wl}text'
 
16624
      if test "$GCC" = yes; then
 
16625
        archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
16626
      else
 
16627
        archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
16628
      fi
 
16629
      runpath_var='LD_RUN_PATH'
 
16630
      hardcode_shlibpath_var_GCJ=no
 
16631
      ;;
 
16632
 
 
16633
    sysv5*)
 
16634
      no_undefined_flag_GCJ=' -z text'
 
16635
      # $CC -shared without GNU ld will not create a library from C++
 
16636
      # object files and a static libstdc++, better avoid it by now
 
16637
      archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
16638
      archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
16639
                $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
16640
      hardcode_libdir_flag_spec_GCJ=
 
16641
      hardcode_shlibpath_var_GCJ=no
 
16642
      runpath_var='LD_RUN_PATH'
 
16643
      ;;
 
16644
 
 
16645
    uts4*)
 
16646
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
16647
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
16648
      hardcode_shlibpath_var_GCJ=no
 
16649
      ;;
 
16650
 
 
16651
    *)
 
16652
      ld_shlibs_GCJ=no
 
16653
      ;;
 
16654
    esac
 
16655
  fi
 
16656
 
 
16657
echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
 
16658
echo "${ECHO_T}$ld_shlibs_GCJ" >&6
 
16659
test "$ld_shlibs_GCJ" = no && can_build_shared=no
 
16660
 
 
16661
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
16662
if test "$GCC" = yes; then
 
16663
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
16664
fi
 
16665
 
 
16666
#
 
16667
# Do we need to explicitly link libc?
 
16668
#
 
16669
case "x$archive_cmds_need_lc_GCJ" in
 
16670
x|xyes)
 
16671
  # Assume -lc should be added
 
16672
  archive_cmds_need_lc_GCJ=yes
 
16673
 
 
16674
  if test "$enable_shared" = yes && test "$GCC" = yes; then
 
16675
    case $archive_cmds_GCJ in
 
16676
    *'~'*)
 
16677
      # FIXME: we may have to deal with multi-command sequences.
 
16678
      ;;
 
16679
    '$CC '*)
 
16680
      # Test whether the compiler implicitly links with -lc since on some
 
16681
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
 
16682
      # to ld, don't add -lc before -lgcc.
 
16683
      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
 
16684
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
 
16685
      $rm conftest*
 
16686
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
16687
 
 
16688
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
16689
  (eval $ac_compile) 2>&5
 
16690
  ac_status=$?
 
16691
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16692
  (exit $ac_status); } 2>conftest.err; then
 
16693
        soname=conftest
 
16694
        lib=conftest
 
16695
        libobjs=conftest.$ac_objext
 
16696
        deplibs=
 
16697
        wl=$lt_prog_compiler_wl_GCJ
 
16698
        compiler_flags=-v
 
16699
        linker_flags=-v
 
16700
        verstring=
 
16701
        output_objdir=.
 
16702
        libname=conftest
 
16703
        lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
 
16704
        allow_undefined_flag_GCJ=
 
16705
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
 
16706
  (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
16707
  ac_status=$?
 
16708
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16709
  (exit $ac_status); }
 
16710
        then
 
16711
          archive_cmds_need_lc_GCJ=no
 
16712
        else
 
16713
          archive_cmds_need_lc_GCJ=yes
 
16714
        fi
 
16715
        allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
 
16716
      else
 
16717
        cat conftest.err 1>&5
 
16718
      fi
 
16719
      $rm conftest*
 
16720
      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
 
16721
echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
 
16722
      ;;
 
16723
    esac
 
16724
  fi
 
16725
  ;;
 
16726
esac
 
16727
 
 
16728
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
 
16729
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
 
16730
library_names_spec=
 
16731
libname_spec='lib$name'
 
16732
soname_spec=
 
16733
shrext_cmds=".so"
 
16734
postinstall_cmds=
 
16735
postuninstall_cmds=
 
16736
finish_cmds=
 
16737
finish_eval=
 
16738
shlibpath_var=
 
16739
shlibpath_overrides_runpath=unknown
 
16740
version_type=none
 
16741
dynamic_linker="$host_os ld.so"
 
16742
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
16743
if test "$GCC" = yes; then
 
16744
  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
16745
  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
 
16746
    # if the path contains ";" then we assume it to be the separator
 
16747
    # otherwise default to the standard path separator (i.e. ":") - it is
 
16748
    # assumed that no part of a normal pathname contains ";" but that should
 
16749
    # okay in the real world where ";" in dirpaths is itself problematic.
 
16750
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
16751
  else
 
16752
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
16753
  fi
 
16754
else
 
16755
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
 
16756
fi
 
16757
need_lib_prefix=unknown
 
16758
hardcode_into_libs=no
 
16759
 
 
16760
# when you set need_version to no, make sure it does not cause -set_version
 
16761
# flags to be left without arguments
 
16762
need_version=unknown
 
16763
 
 
16764
case $host_os in
 
16765
aix3*)
 
16766
  version_type=linux
 
16767
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
 
16768
  shlibpath_var=LIBPATH
 
16769
 
 
16770
  # AIX 3 has no versioning support, so we append a major version to the name.
 
16771
  soname_spec='${libname}${release}${shared_ext}$major'
 
16772
  ;;
 
16773
 
 
16774
aix4* | aix5*)
 
16775
  version_type=linux
 
16776
  need_lib_prefix=no
 
16777
  need_version=no
 
16778
  hardcode_into_libs=yes
 
16779
  if test "$host_cpu" = ia64; then
 
16780
    # AIX 5 supports IA64
 
16781
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
 
16782
    shlibpath_var=LD_LIBRARY_PATH
 
16783
  else
 
16784
    # With GCC up to 2.95.x, collect2 would create an import file
 
16785
    # for dependence libraries.  The import file would start with
 
16786
    # the line `#! .'.  This would cause the generated library to
 
16787
    # depend on `.', always an invalid library.  This was fixed in
 
16788
    # development snapshots of GCC prior to 3.0.
 
16789
    case $host_os in
 
16790
      aix4 | aix4.[01] | aix4.[01].*)
 
16791
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
16792
           echo ' yes '
 
16793
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
 
16794
        :
 
16795
      else
 
16796
        can_build_shared=no
 
16797
      fi
 
16798
      ;;
 
16799
    esac
 
16800
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 
16801
    # soname into executable. Probably we can add versioning support to
 
16802
    # collect2, so additional links can be useful in future.
 
16803
    if test "$aix_use_runtimelinking" = yes; then
 
16804
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
16805
      # instead of lib<name>.a to let people know that these are not
 
16806
      # typical AIX shared libraries.
 
16807
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16808
    else
 
16809
      # We preserve .a as extension for shared libraries through AIX4.2
 
16810
      # and later when we are not doing run time linking.
 
16811
      library_names_spec='${libname}${release}.a $libname.a'
 
16812
      soname_spec='${libname}${release}${shared_ext}$major'
 
16813
    fi
 
16814
    shlibpath_var=LIBPATH
 
16815
  fi
 
16816
  ;;
 
16817
 
 
16818
amigaos*)
 
16819
  library_names_spec='$libname.ixlibrary $libname.a'
 
16820
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
16821
  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'
 
16822
  ;;
 
16823
 
 
16824
beos*)
 
16825
  library_names_spec='${libname}${shared_ext}'
 
16826
  dynamic_linker="$host_os ld.so"
 
16827
  shlibpath_var=LIBRARY_PATH
 
16828
  ;;
 
16829
 
 
16830
bsdi4*)
 
16831
  version_type=linux
 
16832
  need_version=no
 
16833
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16834
  soname_spec='${libname}${release}${shared_ext}$major'
 
16835
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
16836
  shlibpath_var=LD_LIBRARY_PATH
 
16837
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
16838
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
16839
  # the default ld.so.conf also contains /usr/contrib/lib and
 
16840
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
16841
  # libtool to hard-code these into programs
 
16842
  ;;
 
16843
 
 
16844
cygwin* | mingw* | pw32*)
 
16845
  version_type=windows
 
16846
  shrext_cmds=".dll"
 
16847
  need_version=no
 
16848
  need_lib_prefix=no
 
16849
 
 
16850
  case $GCC,$host_os in
 
16851
  yes,cygwin* | yes,mingw* | yes,pw32*)
 
16852
    library_names_spec='$libname.dll.a'
 
16853
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
16854
    postinstall_cmds='base_file=`basename \${file}`~
 
16855
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
 
16856
      dldir=$destdir/`dirname \$dlpath`~
 
16857
      test -d \$dldir || mkdir -p \$dldir~
 
16858
      $install_prog $dir/$dlname \$dldir/$dlname'
 
16859
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
16860
      dlpath=$dir/\$dldll~
 
16861
       $rm \$dlpath'
 
16862
    shlibpath_overrides_runpath=yes
 
16863
 
 
16864
    case $host_os in
 
16865
    cygwin*)
 
16866
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 
16867
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
16868
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
 
16869
      ;;
 
16870
    mingw*)
 
16871
      # MinGW DLLs use traditional 'lib' prefix
 
16872
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
16873
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
16874
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
 
16875
        # It is most probably a Windows format PATH printed by
 
16876
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
 
16877
        # path with ; separators, and with drive letters. We can handle the
 
16878
        # drive letters (cygwin fileutils understands them), so leave them,
 
16879
        # especially as we might pass files found there to a mingw objdump,
 
16880
        # which wouldn't understand a cygwinified path. Ahh.
 
16881
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
16882
      else
 
16883
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
16884
      fi
 
16885
      ;;
 
16886
    pw32*)
 
16887
      # pw32 DLLs use 'pw' prefix rather than 'lib'
 
16888
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
 
16889
      ;;
 
16890
    esac
 
16891
    ;;
 
16892
 
 
16893
  *)
 
16894
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
16895
    ;;
 
16896
  esac
 
16897
  dynamic_linker='Win32 ld.exe'
 
16898
  # FIXME: first we should search . and the directory the executable is in
 
16899
  shlibpath_var=PATH
 
16900
  ;;
 
16901
 
 
16902
darwin* | rhapsody*)
 
16903
  dynamic_linker="$host_os dyld"
 
16904
  version_type=darwin
 
16905
  need_lib_prefix=no
 
16906
  need_version=no
 
16907
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
16908
  soname_spec='${libname}${release}${major}$shared_ext'
 
16909
  shlibpath_overrides_runpath=yes
 
16910
  shlibpath_var=DYLD_LIBRARY_PATH
 
16911
  shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
 
16912
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
 
16913
  if test "$GCC" = yes; then
 
16914
    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"`
 
16915
  else
 
16916
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
 
16917
  fi
 
16918
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 
16919
  ;;
 
16920
 
 
16921
dgux*)
 
16922
  version_type=linux
 
16923
  need_lib_prefix=no
 
16924
  need_version=no
 
16925
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
 
16926
  soname_spec='${libname}${release}${shared_ext}$major'
 
16927
  shlibpath_var=LD_LIBRARY_PATH
 
16928
  ;;
 
16929
 
 
16930
freebsd1*)
 
16931
  dynamic_linker=no
 
16932
  ;;
 
16933
 
 
16934
kfreebsd*-gnu)
 
16935
  version_type=linux
 
16936
  need_lib_prefix=no
 
16937
  need_version=no
 
16938
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
16939
  soname_spec='${libname}${release}${shared_ext}$major'
 
16940
  shlibpath_var=LD_LIBRARY_PATH
 
16941
  shlibpath_overrides_runpath=no
 
16942
  hardcode_into_libs=yes
 
16943
  dynamic_linker='GNU ld.so'
 
16944
  ;;
 
16945
 
 
16946
freebsd*)
 
16947
  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
 
16948
  version_type=freebsd-$objformat
 
16949
  case $version_type in
 
16950
    freebsd-elf*)
 
16951
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
16952
      need_version=no
 
16953
      need_lib_prefix=no
 
16954
      ;;
 
16955
    freebsd-*)
 
16956
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
 
16957
      need_version=yes
 
16958
      ;;
 
16959
  esac
 
16960
  shlibpath_var=LD_LIBRARY_PATH
 
16961
  case $host_os in
 
16962
  freebsd2*)
 
16963
    shlibpath_overrides_runpath=yes
 
16964
    ;;
 
16965
  freebsd3.01* | freebsdelf3.01*)
 
16966
    shlibpath_overrides_runpath=yes
 
16967
    hardcode_into_libs=yes
 
16968
    ;;
 
16969
  *) # from 3.2 on
 
16970
    shlibpath_overrides_runpath=no
 
16971
    hardcode_into_libs=yes
 
16972
    ;;
 
16973
  esac
 
16974
  ;;
 
16975
 
 
16976
gnu*)
 
16977
  version_type=linux
 
16978
  need_lib_prefix=no
 
16979
  need_version=no
 
16980
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
16981
  soname_spec='${libname}${release}${shared_ext}$major'
 
16982
  shlibpath_var=LD_LIBRARY_PATH
 
16983
  hardcode_into_libs=yes
 
16984
  ;;
 
16985
 
 
16986
hpux9* | hpux10* | hpux11*)
 
16987
  # Give a soname corresponding to the major version so that dld.sl refuses to
 
16988
  # link against other versions.
 
16989
  version_type=sunos
 
16990
  need_lib_prefix=no
 
16991
  need_version=no
 
16992
  case "$host_cpu" in
 
16993
  ia64*)
 
16994
    shrext_cmds='.so'
 
16995
    hardcode_into_libs=yes
 
16996
    dynamic_linker="$host_os dld.so"
 
16997
    shlibpath_var=LD_LIBRARY_PATH
 
16998
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
16999
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17000
    soname_spec='${libname}${release}${shared_ext}$major'
 
17001
    if test "X$HPUX_IA64_MODE" = X32; then
 
17002
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 
17003
    else
 
17004
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 
17005
    fi
 
17006
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
17007
    ;;
 
17008
   hppa*64*)
 
17009
     shrext_cmds='.sl'
 
17010
     hardcode_into_libs=yes
 
17011
     dynamic_linker="$host_os dld.sl"
 
17012
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
17013
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
17014
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17015
     soname_spec='${libname}${release}${shared_ext}$major'
 
17016
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
17017
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
17018
     ;;
 
17019
   *)
 
17020
    shrext_cmds='.sl'
 
17021
    dynamic_linker="$host_os dld.sl"
 
17022
    shlibpath_var=SHLIB_PATH
 
17023
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
17024
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17025
    soname_spec='${libname}${release}${shared_ext}$major'
 
17026
    ;;
 
17027
  esac
 
17028
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
 
17029
  postinstall_cmds='chmod 555 $lib'
 
17030
  ;;
 
17031
 
 
17032
irix5* | irix6* | nonstopux*)
 
17033
  case $host_os in
 
17034
    nonstopux*) version_type=nonstopux ;;
 
17035
    *)
 
17036
        if test "$lt_cv_prog_gnu_ld" = yes; then
 
17037
                version_type=linux
 
17038
        else
 
17039
                version_type=irix
 
17040
        fi ;;
 
17041
  esac
 
17042
  need_lib_prefix=no
 
17043
  need_version=no
 
17044
  soname_spec='${libname}${release}${shared_ext}$major'
 
17045
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
 
17046
  case $host_os in
 
17047
  irix5* | nonstopux*)
 
17048
    libsuff= shlibsuff=
 
17049
    ;;
 
17050
  *)
 
17051
    case $LD in # libtool.m4 will add one of these switches to LD
 
17052
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 
17053
      libsuff= shlibsuff= libmagic=32-bit;;
 
17054
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 
17055
      libsuff=32 shlibsuff=N32 libmagic=N32;;
 
17056
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 
17057
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
17058
    *) libsuff= shlibsuff= libmagic=never-match;;
 
17059
    esac
 
17060
    ;;
 
17061
  esac
 
17062
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
17063
  shlibpath_overrides_runpath=no
 
17064
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
17065
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
17066
  hardcode_into_libs=yes
 
17067
  ;;
 
17068
 
 
17069
# No shared lib support for Linux oldld, aout, or coff.
 
17070
linux*oldld* | linux*aout* | linux*coff*)
 
17071
  dynamic_linker=no
 
17072
  ;;
 
17073
 
 
17074
# This must be Linux ELF.
 
17075
linux*)
 
17076
  version_type=linux
 
17077
  need_lib_prefix=no
 
17078
  need_version=no
 
17079
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17080
  soname_spec='${libname}${release}${shared_ext}$major'
 
17081
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
17082
  shlibpath_var=LD_LIBRARY_PATH
 
17083
  shlibpath_overrides_runpath=no
 
17084
  # This implies no fast_install, which is unacceptable.
 
17085
  # Some rework will be needed to allow for fast_install
 
17086
  # before this can be enabled.
 
17087
  hardcode_into_libs=yes
 
17088
 
 
17089
  # Append ld.so.conf contents to the search path
 
17090
  if test -f /etc/ld.so.conf; then
 
17091
    lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
 
17092
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
 
17093
  fi
 
17094
 
 
17095
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
17096
  # powerpc, because MkLinux only supported shared libraries with the
 
17097
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
17098
  # most powerpc-linux boxes support dynamic linking these days and
 
17099
  # people can always --disable-shared, the test was removed, and we
 
17100
  # assume the GNU/Linux dynamic linker is in use.
 
17101
  dynamic_linker='GNU/Linux ld.so'
 
17102
  ;;
 
17103
 
 
17104
netbsdelf*-gnu)
 
17105
  version_type=linux
 
17106
  need_lib_prefix=no
 
17107
  need_version=no
 
17108
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
17109
  soname_spec='${libname}${release}${shared_ext}$major'
 
17110
  shlibpath_var=LD_LIBRARY_PATH
 
17111
  shlibpath_overrides_runpath=no
 
17112
  hardcode_into_libs=yes
 
17113
  dynamic_linker='NetBSD ld.elf_so'
 
17114
  ;;
 
17115
 
 
17116
knetbsd*-gnu)
 
17117
  version_type=linux
 
17118
  need_lib_prefix=no
 
17119
  need_version=no
 
17120
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
17121
  soname_spec='${libname}${release}${shared_ext}$major'
 
17122
  shlibpath_var=LD_LIBRARY_PATH
 
17123
  shlibpath_overrides_runpath=no
 
17124
  hardcode_into_libs=yes
 
17125
  dynamic_linker='GNU ld.so'
 
17126
  ;;
 
17127
 
 
17128
netbsd*)
 
17129
  version_type=sunos
 
17130
  need_lib_prefix=no
 
17131
  need_version=no
 
17132
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
17133
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
17134
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
17135
    dynamic_linker='NetBSD (a.out) ld.so'
 
17136
  else
 
17137
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
17138
    soname_spec='${libname}${release}${shared_ext}$major'
 
17139
    dynamic_linker='NetBSD ld.elf_so'
 
17140
  fi
 
17141
  shlibpath_var=LD_LIBRARY_PATH
 
17142
  shlibpath_overrides_runpath=yes
 
17143
  hardcode_into_libs=yes
 
17144
  ;;
 
17145
 
 
17146
newsos6)
 
17147
  version_type=linux
 
17148
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17149
  shlibpath_var=LD_LIBRARY_PATH
 
17150
  shlibpath_overrides_runpath=yes
 
17151
  ;;
 
17152
 
 
17153
nto-qnx*)
 
17154
  version_type=linux
 
17155
  need_lib_prefix=no
 
17156
  need_version=no
 
17157
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17158
  soname_spec='${libname}${release}${shared_ext}$major'
 
17159
  shlibpath_var=LD_LIBRARY_PATH
 
17160
  shlibpath_overrides_runpath=yes
 
17161
  ;;
 
17162
 
 
17163
openbsd*)
 
17164
  version_type=sunos
 
17165
  need_lib_prefix=no
 
17166
  need_version=yes
 
17167
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
17168
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
17169
  shlibpath_var=LD_LIBRARY_PATH
 
17170
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
17171
    case $host_os in
 
17172
      openbsd2.[89] | openbsd2.[89].*)
 
17173
        shlibpath_overrides_runpath=no
 
17174
        ;;
 
17175
      *)
 
17176
        shlibpath_overrides_runpath=yes
 
17177
        ;;
 
17178
      esac
 
17179
  else
 
17180
    shlibpath_overrides_runpath=yes
 
17181
  fi
 
17182
  ;;
 
17183
 
 
17184
os2*)
 
17185
  libname_spec='$name'
 
17186
  shrext_cmds=".dll"
 
17187
  need_lib_prefix=no
 
17188
  library_names_spec='$libname${shared_ext} $libname.a'
 
17189
  dynamic_linker='OS/2 ld.exe'
 
17190
  shlibpath_var=LIBPATH
 
17191
  ;;
 
17192
 
 
17193
osf3* | osf4* | osf5*)
 
17194
  version_type=osf
 
17195
  need_lib_prefix=no
 
17196
  need_version=no
 
17197
  soname_spec='${libname}${release}${shared_ext}$major'
 
17198
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17199
  shlibpath_var=LD_LIBRARY_PATH
 
17200
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
17201
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
17202
  ;;
 
17203
 
 
17204
sco3.2v5*)
 
17205
  version_type=osf
 
17206
  soname_spec='${libname}${release}${shared_ext}$major'
 
17207
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17208
  shlibpath_var=LD_LIBRARY_PATH
 
17209
  ;;
 
17210
 
 
17211
solaris*)
 
17212
  version_type=linux
 
17213
  need_lib_prefix=no
 
17214
  need_version=no
 
17215
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17216
  soname_spec='${libname}${release}${shared_ext}$major'
 
17217
  shlibpath_var=LD_LIBRARY_PATH
 
17218
  shlibpath_overrides_runpath=yes
 
17219
  hardcode_into_libs=yes
 
17220
  # ldd complains unless libraries are executable
 
17221
  postinstall_cmds='chmod +x $lib'
 
17222
  ;;
 
17223
 
 
17224
sunos4*)
 
17225
  version_type=sunos
 
17226
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
17227
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
17228
  shlibpath_var=LD_LIBRARY_PATH
 
17229
  shlibpath_overrides_runpath=yes
 
17230
  if test "$with_gnu_ld" = yes; then
 
17231
    need_lib_prefix=no
 
17232
  fi
 
17233
  need_version=yes
 
17234
  ;;
 
17235
 
 
17236
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
17237
  version_type=linux
 
17238
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17239
  soname_spec='${libname}${release}${shared_ext}$major'
 
17240
  shlibpath_var=LD_LIBRARY_PATH
 
17241
  case $host_vendor in
 
17242
    sni)
 
17243
      shlibpath_overrides_runpath=no
 
17244
      need_lib_prefix=no
 
17245
      export_dynamic_flag_spec='${wl}-Blargedynsym'
 
17246
      runpath_var=LD_RUN_PATH
 
17247
      ;;
 
17248
    siemens)
 
17249
      need_lib_prefix=no
 
17250
      ;;
 
17251
    motorola)
 
17252
      need_lib_prefix=no
 
17253
      need_version=no
 
17254
      shlibpath_overrides_runpath=no
 
17255
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
17256
      ;;
 
17257
  esac
 
17258
  ;;
 
17259
 
 
17260
sysv4*MP*)
 
17261
  if test -d /usr/nec ;then
 
17262
    version_type=linux
 
17263
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
 
17264
    soname_spec='$libname${shared_ext}.$major'
 
17265
    shlibpath_var=LD_LIBRARY_PATH
 
17266
  fi
 
17267
  ;;
 
17268
 
 
17269
uts4*)
 
17270
  version_type=linux
 
17271
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17272
  soname_spec='${libname}${release}${shared_ext}$major'
 
17273
  shlibpath_var=LD_LIBRARY_PATH
 
17274
  ;;
 
17275
 
 
17276
*)
 
17277
  dynamic_linker=no
 
17278
  ;;
 
17279
esac
 
17280
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
 
17281
echo "${ECHO_T}$dynamic_linker" >&6
 
17282
test "$dynamic_linker" = no && can_build_shared=no
 
17283
 
 
17284
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
 
17285
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
 
17286
hardcode_action_GCJ=
 
17287
if test -n "$hardcode_libdir_flag_spec_GCJ" || \
 
17288
   test -n "$runpath_var GCJ" || \
 
17289
   test "X$hardcode_automatic_GCJ"="Xyes" ; then
 
17290
 
 
17291
  # We can hardcode non-existant directories.
 
17292
  if test "$hardcode_direct_GCJ" != no &&
 
17293
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
 
17294
     # have to relink, otherwise we might link with an installed library
 
17295
     # when we should be linking with a yet-to-be-installed one
 
17296
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
 
17297
     test "$hardcode_minus_L_GCJ" != no; then
 
17298
    # Linking always hardcodes the temporary library directory.
 
17299
    hardcode_action_GCJ=relink
 
17300
  else
 
17301
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
 
17302
    hardcode_action_GCJ=immediate
 
17303
  fi
 
17304
else
 
17305
  # We cannot hardcode anything, or else we can only hardcode existing
 
17306
  # directories.
 
17307
  hardcode_action_GCJ=unsupported
 
17308
fi
 
17309
echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
 
17310
echo "${ECHO_T}$hardcode_action_GCJ" >&6
 
17311
 
 
17312
if test "$hardcode_action_GCJ" = relink; then
 
17313
  # Fast installation is not supported
 
17314
  enable_fast_install=no
 
17315
elif test "$shlibpath_overrides_runpath" = yes ||
 
17316
     test "$enable_shared" = no; then
 
17317
  # Fast installation is not necessary
 
17318
  enable_fast_install=needless
 
17319
fi
 
17320
 
 
17321
striplib=
 
17322
old_striplib=
 
17323
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
 
17324
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
 
17325
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
 
17326
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
 
17327
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
 
17328
  echo "$as_me:$LINENO: result: yes" >&5
 
17329
echo "${ECHO_T}yes" >&6
 
17330
else
 
17331
# FIXME - insert some real tests, host_os isn't really good enough
 
17332
  case $host_os in
 
17333
   darwin*)
 
17334
       if test -n "$STRIP" ; then
 
17335
         striplib="$STRIP -x"
 
17336
         echo "$as_me:$LINENO: result: yes" >&5
 
17337
echo "${ECHO_T}yes" >&6
 
17338
       else
 
17339
  echo "$as_me:$LINENO: result: no" >&5
 
17340
echo "${ECHO_T}no" >&6
 
17341
fi
 
17342
       ;;
 
17343
   *)
 
17344
  echo "$as_me:$LINENO: result: no" >&5
 
17345
echo "${ECHO_T}no" >&6
 
17346
    ;;
 
17347
  esac
 
17348
fi
 
17349
 
 
17350
if test "x$enable_dlopen" != xyes; then
 
17351
  enable_dlopen=unknown
 
17352
  enable_dlopen_self=unknown
 
17353
  enable_dlopen_self_static=unknown
 
17354
else
 
17355
  lt_cv_dlopen=no
 
17356
  lt_cv_dlopen_libs=
 
17357
 
 
17358
  case $host_os in
 
17359
  beos*)
 
17360
    lt_cv_dlopen="load_add_on"
 
17361
    lt_cv_dlopen_libs=
 
17362
    lt_cv_dlopen_self=yes
 
17363
    ;;
 
17364
 
 
17365
  mingw* | pw32*)
 
17366
    lt_cv_dlopen="LoadLibrary"
 
17367
    lt_cv_dlopen_libs=
 
17368
   ;;
 
17369
 
 
17370
  cygwin*)
 
17371
    lt_cv_dlopen="dlopen"
 
17372
    lt_cv_dlopen_libs=
 
17373
   ;;
 
17374
 
 
17375
  darwin*)
 
17376
  # if libdl is installed we need to link against it
 
17377
    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
17378
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
 
17379
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
 
17380
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
17381
else
 
17382
  ac_check_lib_save_LIBS=$LIBS
 
17383
LIBS="-ldl  $LIBS"
 
17384
cat >conftest.$ac_ext <<_ACEOF
 
17385
/* confdefs.h.  */
 
17386
_ACEOF
 
17387
cat confdefs.h >>conftest.$ac_ext
 
17388
cat >>conftest.$ac_ext <<_ACEOF
 
17389
/* end confdefs.h.  */
 
17390
 
 
17391
/* Override any gcc2 internal prototype to avoid an error.  */
 
17392
#ifdef __cplusplus
 
17393
extern "C"
 
17394
#endif
 
17395
/* We use char because int might match the return type of a gcc2
 
17396
   builtin and then its argument prototype would still apply.  */
 
17397
char dlopen ();
 
17398
int
 
17399
main ()
 
17400
{
 
17401
dlopen ();
 
17402
  ;
 
17403
  return 0;
 
17404
}
 
17405
_ACEOF
 
17406
rm -f conftest.$ac_objext conftest$ac_exeext
 
17407
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
17408
  (eval $ac_link) 2>conftest.er1
 
17409
  ac_status=$?
 
17410
  grep -v '^ *+' conftest.er1 >conftest.err
 
17411
  rm -f conftest.er1
 
17412
  cat conftest.err >&5
 
17413
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17414
  (exit $ac_status); } &&
 
17415
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
17416
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
17417
  (eval $ac_try) 2>&5
 
17418
  ac_status=$?
 
17419
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17420
  (exit $ac_status); }; } &&
 
17421
         { ac_try='test -s conftest$ac_exeext'
 
17422
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
17423
  (eval $ac_try) 2>&5
 
17424
  ac_status=$?
 
17425
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17426
  (exit $ac_status); }; }; then
 
17427
  ac_cv_lib_dl_dlopen=yes
 
17428
else
 
17429
  echo "$as_me: failed program was:" >&5
 
17430
sed 's/^/| /' conftest.$ac_ext >&5
 
17431
 
 
17432
ac_cv_lib_dl_dlopen=no
 
17433
fi
 
17434
rm -f conftest.err conftest.$ac_objext \
 
17435
      conftest$ac_exeext conftest.$ac_ext
 
17436
LIBS=$ac_check_lib_save_LIBS
 
17437
fi
 
17438
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
17439
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
 
17440
if test $ac_cv_lib_dl_dlopen = yes; then
 
17441
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
17442
else
 
17443
 
 
17444
    lt_cv_dlopen="dyld"
 
17445
    lt_cv_dlopen_libs=
 
17446
    lt_cv_dlopen_self=yes
 
17447
 
 
17448
fi
 
17449
 
 
17450
   ;;
 
17451
 
 
17452
  *)
 
17453
    echo "$as_me:$LINENO: checking for shl_load" >&5
 
17454
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
 
17455
if test "${ac_cv_func_shl_load+set}" = set; then
 
17456
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
17457
else
 
17458
  cat >conftest.$ac_ext <<_ACEOF
 
17459
/* confdefs.h.  */
 
17460
_ACEOF
 
17461
cat confdefs.h >>conftest.$ac_ext
 
17462
cat >>conftest.$ac_ext <<_ACEOF
 
17463
/* end confdefs.h.  */
 
17464
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
 
17465
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
17466
#define shl_load innocuous_shl_load
 
17467
 
 
17468
/* System header to define __stub macros and hopefully few prototypes,
 
17469
    which can conflict with char shl_load (); below.
 
17470
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
17471
    <limits.h> exists even on freestanding compilers.  */
 
17472
 
 
17473
#ifdef __STDC__
 
17474
# include <limits.h>
 
17475
#else
 
17476
# include <assert.h>
 
17477
#endif
 
17478
 
 
17479
#undef shl_load
 
17480
 
 
17481
/* Override any gcc2 internal prototype to avoid an error.  */
 
17482
#ifdef __cplusplus
 
17483
extern "C"
 
17484
{
 
17485
#endif
 
17486
/* We use char because int might match the return type of a gcc2
 
17487
   builtin and then its argument prototype would still apply.  */
 
17488
char shl_load ();
 
17489
/* The GNU C library defines this for functions which it implements
 
17490
    to always fail with ENOSYS.  Some functions are actually named
 
17491
    something starting with __ and the normal name is an alias.  */
 
17492
#if defined (__stub_shl_load) || defined (__stub___shl_load)
 
17493
choke me
 
17494
#else
 
17495
char (*f) () = shl_load;
 
17496
#endif
 
17497
#ifdef __cplusplus
 
17498
}
 
17499
#endif
 
17500
 
 
17501
int
 
17502
main ()
 
17503
{
 
17504
return f != shl_load;
 
17505
  ;
 
17506
  return 0;
 
17507
}
 
17508
_ACEOF
 
17509
rm -f conftest.$ac_objext conftest$ac_exeext
 
17510
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
17511
  (eval $ac_link) 2>conftest.er1
 
17512
  ac_status=$?
 
17513
  grep -v '^ *+' conftest.er1 >conftest.err
 
17514
  rm -f conftest.er1
 
17515
  cat conftest.err >&5
 
17516
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17517
  (exit $ac_status); } &&
 
17518
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
17519
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
17520
  (eval $ac_try) 2>&5
 
17521
  ac_status=$?
 
17522
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17523
  (exit $ac_status); }; } &&
 
17524
         { ac_try='test -s conftest$ac_exeext'
 
17525
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
17526
  (eval $ac_try) 2>&5
 
17527
  ac_status=$?
 
17528
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17529
  (exit $ac_status); }; }; then
 
17530
  ac_cv_func_shl_load=yes
 
17531
else
 
17532
  echo "$as_me: failed program was:" >&5
 
17533
sed 's/^/| /' conftest.$ac_ext >&5
 
17534
 
 
17535
ac_cv_func_shl_load=no
 
17536
fi
 
17537
rm -f conftest.err conftest.$ac_objext \
 
17538
      conftest$ac_exeext conftest.$ac_ext
 
17539
fi
 
17540
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
 
17541
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
 
17542
if test $ac_cv_func_shl_load = yes; then
 
17543
  lt_cv_dlopen="shl_load"
 
17544
else
 
17545
  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
 
17546
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
 
17547
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
 
17548
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
17549
else
 
17550
  ac_check_lib_save_LIBS=$LIBS
 
17551
LIBS="-ldld  $LIBS"
 
17552
cat >conftest.$ac_ext <<_ACEOF
 
17553
/* confdefs.h.  */
 
17554
_ACEOF
 
17555
cat confdefs.h >>conftest.$ac_ext
 
17556
cat >>conftest.$ac_ext <<_ACEOF
 
17557
/* end confdefs.h.  */
 
17558
 
 
17559
/* Override any gcc2 internal prototype to avoid an error.  */
 
17560
#ifdef __cplusplus
 
17561
extern "C"
 
17562
#endif
 
17563
/* We use char because int might match the return type of a gcc2
 
17564
   builtin and then its argument prototype would still apply.  */
 
17565
char shl_load ();
 
17566
int
 
17567
main ()
 
17568
{
 
17569
shl_load ();
 
17570
  ;
 
17571
  return 0;
 
17572
}
 
17573
_ACEOF
 
17574
rm -f conftest.$ac_objext conftest$ac_exeext
 
17575
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
17576
  (eval $ac_link) 2>conftest.er1
 
17577
  ac_status=$?
 
17578
  grep -v '^ *+' conftest.er1 >conftest.err
 
17579
  rm -f conftest.er1
 
17580
  cat conftest.err >&5
 
17581
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17582
  (exit $ac_status); } &&
 
17583
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
17584
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
17585
  (eval $ac_try) 2>&5
 
17586
  ac_status=$?
 
17587
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17588
  (exit $ac_status); }; } &&
 
17589
         { ac_try='test -s conftest$ac_exeext'
 
17590
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
17591
  (eval $ac_try) 2>&5
 
17592
  ac_status=$?
 
17593
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17594
  (exit $ac_status); }; }; then
 
17595
  ac_cv_lib_dld_shl_load=yes
 
17596
else
 
17597
  echo "$as_me: failed program was:" >&5
 
17598
sed 's/^/| /' conftest.$ac_ext >&5
 
17599
 
 
17600
ac_cv_lib_dld_shl_load=no
 
17601
fi
 
17602
rm -f conftest.err conftest.$ac_objext \
 
17603
      conftest$ac_exeext conftest.$ac_ext
 
17604
LIBS=$ac_check_lib_save_LIBS
 
17605
fi
 
17606
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
 
17607
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
 
17608
if test $ac_cv_lib_dld_shl_load = yes; then
 
17609
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
 
17610
else
 
17611
  echo "$as_me:$LINENO: checking for dlopen" >&5
 
17612
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
 
17613
if test "${ac_cv_func_dlopen+set}" = set; then
 
17614
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
17615
else
 
17616
  cat >conftest.$ac_ext <<_ACEOF
 
17617
/* confdefs.h.  */
 
17618
_ACEOF
 
17619
cat confdefs.h >>conftest.$ac_ext
 
17620
cat >>conftest.$ac_ext <<_ACEOF
 
17621
/* end confdefs.h.  */
 
17622
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
 
17623
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
17624
#define dlopen innocuous_dlopen
 
17625
 
 
17626
/* System header to define __stub macros and hopefully few prototypes,
 
17627
    which can conflict with char dlopen (); below.
 
17628
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
17629
    <limits.h> exists even on freestanding compilers.  */
 
17630
 
 
17631
#ifdef __STDC__
 
17632
# include <limits.h>
 
17633
#else
 
17634
# include <assert.h>
 
17635
#endif
 
17636
 
 
17637
#undef dlopen
 
17638
 
 
17639
/* Override any gcc2 internal prototype to avoid an error.  */
 
17640
#ifdef __cplusplus
 
17641
extern "C"
 
17642
{
 
17643
#endif
 
17644
/* We use char because int might match the return type of a gcc2
 
17645
   builtin and then its argument prototype would still apply.  */
 
17646
char dlopen ();
 
17647
/* The GNU C library defines this for functions which it implements
 
17648
    to always fail with ENOSYS.  Some functions are actually named
 
17649
    something starting with __ and the normal name is an alias.  */
 
17650
#if defined (__stub_dlopen) || defined (__stub___dlopen)
 
17651
choke me
 
17652
#else
 
17653
char (*f) () = dlopen;
 
17654
#endif
 
17655
#ifdef __cplusplus
 
17656
}
 
17657
#endif
 
17658
 
 
17659
int
 
17660
main ()
 
17661
{
 
17662
return f != dlopen;
 
17663
  ;
 
17664
  return 0;
 
17665
}
 
17666
_ACEOF
 
17667
rm -f conftest.$ac_objext conftest$ac_exeext
 
17668
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
17669
  (eval $ac_link) 2>conftest.er1
 
17670
  ac_status=$?
 
17671
  grep -v '^ *+' conftest.er1 >conftest.err
 
17672
  rm -f conftest.er1
 
17673
  cat conftest.err >&5
 
17674
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17675
  (exit $ac_status); } &&
 
17676
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
17677
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
17678
  (eval $ac_try) 2>&5
 
17679
  ac_status=$?
 
17680
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17681
  (exit $ac_status); }; } &&
 
17682
         { ac_try='test -s conftest$ac_exeext'
 
17683
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
17684
  (eval $ac_try) 2>&5
 
17685
  ac_status=$?
 
17686
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17687
  (exit $ac_status); }; }; then
 
17688
  ac_cv_func_dlopen=yes
 
17689
else
 
17690
  echo "$as_me: failed program was:" >&5
 
17691
sed 's/^/| /' conftest.$ac_ext >&5
 
17692
 
 
17693
ac_cv_func_dlopen=no
 
17694
fi
 
17695
rm -f conftest.err conftest.$ac_objext \
 
17696
      conftest$ac_exeext conftest.$ac_ext
 
17697
fi
 
17698
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
 
17699
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
 
17700
if test $ac_cv_func_dlopen = yes; then
 
17701
  lt_cv_dlopen="dlopen"
 
17702
else
 
17703
  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
17704
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
 
17705
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
 
17706
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
17707
else
 
17708
  ac_check_lib_save_LIBS=$LIBS
 
17709
LIBS="-ldl  $LIBS"
 
17710
cat >conftest.$ac_ext <<_ACEOF
 
17711
/* confdefs.h.  */
 
17712
_ACEOF
 
17713
cat confdefs.h >>conftest.$ac_ext
 
17714
cat >>conftest.$ac_ext <<_ACEOF
 
17715
/* end confdefs.h.  */
 
17716
 
 
17717
/* Override any gcc2 internal prototype to avoid an error.  */
 
17718
#ifdef __cplusplus
 
17719
extern "C"
 
17720
#endif
 
17721
/* We use char because int might match the return type of a gcc2
 
17722
   builtin and then its argument prototype would still apply.  */
 
17723
char dlopen ();
 
17724
int
 
17725
main ()
 
17726
{
 
17727
dlopen ();
 
17728
  ;
 
17729
  return 0;
 
17730
}
 
17731
_ACEOF
 
17732
rm -f conftest.$ac_objext conftest$ac_exeext
 
17733
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
17734
  (eval $ac_link) 2>conftest.er1
 
17735
  ac_status=$?
 
17736
  grep -v '^ *+' conftest.er1 >conftest.err
 
17737
  rm -f conftest.er1
 
17738
  cat conftest.err >&5
 
17739
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17740
  (exit $ac_status); } &&
 
17741
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
17742
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
17743
  (eval $ac_try) 2>&5
 
17744
  ac_status=$?
 
17745
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17746
  (exit $ac_status); }; } &&
 
17747
         { ac_try='test -s conftest$ac_exeext'
 
17748
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
17749
  (eval $ac_try) 2>&5
 
17750
  ac_status=$?
 
17751
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17752
  (exit $ac_status); }; }; then
 
17753
  ac_cv_lib_dl_dlopen=yes
 
17754
else
 
17755
  echo "$as_me: failed program was:" >&5
 
17756
sed 's/^/| /' conftest.$ac_ext >&5
 
17757
 
 
17758
ac_cv_lib_dl_dlopen=no
 
17759
fi
 
17760
rm -f conftest.err conftest.$ac_objext \
 
17761
      conftest$ac_exeext conftest.$ac_ext
 
17762
LIBS=$ac_check_lib_save_LIBS
 
17763
fi
 
17764
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
17765
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
 
17766
if test $ac_cv_lib_dl_dlopen = yes; then
 
17767
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
17768
else
 
17769
  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
 
17770
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
 
17771
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
 
17772
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
17773
else
 
17774
  ac_check_lib_save_LIBS=$LIBS
 
17775
LIBS="-lsvld  $LIBS"
 
17776
cat >conftest.$ac_ext <<_ACEOF
 
17777
/* confdefs.h.  */
 
17778
_ACEOF
 
17779
cat confdefs.h >>conftest.$ac_ext
 
17780
cat >>conftest.$ac_ext <<_ACEOF
 
17781
/* end confdefs.h.  */
 
17782
 
 
17783
/* Override any gcc2 internal prototype to avoid an error.  */
 
17784
#ifdef __cplusplus
 
17785
extern "C"
 
17786
#endif
 
17787
/* We use char because int might match the return type of a gcc2
 
17788
   builtin and then its argument prototype would still apply.  */
 
17789
char dlopen ();
 
17790
int
 
17791
main ()
 
17792
{
 
17793
dlopen ();
 
17794
  ;
 
17795
  return 0;
 
17796
}
 
17797
_ACEOF
 
17798
rm -f conftest.$ac_objext conftest$ac_exeext
 
17799
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
17800
  (eval $ac_link) 2>conftest.er1
 
17801
  ac_status=$?
 
17802
  grep -v '^ *+' conftest.er1 >conftest.err
 
17803
  rm -f conftest.er1
 
17804
  cat conftest.err >&5
 
17805
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17806
  (exit $ac_status); } &&
 
17807
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
17808
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
17809
  (eval $ac_try) 2>&5
 
17810
  ac_status=$?
 
17811
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17812
  (exit $ac_status); }; } &&
 
17813
         { ac_try='test -s conftest$ac_exeext'
 
17814
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
17815
  (eval $ac_try) 2>&5
 
17816
  ac_status=$?
 
17817
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17818
  (exit $ac_status); }; }; then
 
17819
  ac_cv_lib_svld_dlopen=yes
 
17820
else
 
17821
  echo "$as_me: failed program was:" >&5
 
17822
sed 's/^/| /' conftest.$ac_ext >&5
 
17823
 
 
17824
ac_cv_lib_svld_dlopen=no
 
17825
fi
 
17826
rm -f conftest.err conftest.$ac_objext \
 
17827
      conftest$ac_exeext conftest.$ac_ext
 
17828
LIBS=$ac_check_lib_save_LIBS
 
17829
fi
 
17830
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
 
17831
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
 
17832
if test $ac_cv_lib_svld_dlopen = yes; then
 
17833
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
 
17834
else
 
17835
  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
 
17836
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
 
17837
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
 
17838
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
17839
else
 
17840
  ac_check_lib_save_LIBS=$LIBS
 
17841
LIBS="-ldld  $LIBS"
 
17842
cat >conftest.$ac_ext <<_ACEOF
 
17843
/* confdefs.h.  */
 
17844
_ACEOF
 
17845
cat confdefs.h >>conftest.$ac_ext
 
17846
cat >>conftest.$ac_ext <<_ACEOF
 
17847
/* end confdefs.h.  */
 
17848
 
 
17849
/* Override any gcc2 internal prototype to avoid an error.  */
 
17850
#ifdef __cplusplus
 
17851
extern "C"
 
17852
#endif
 
17853
/* We use char because int might match the return type of a gcc2
 
17854
   builtin and then its argument prototype would still apply.  */
 
17855
char dld_link ();
 
17856
int
 
17857
main ()
 
17858
{
 
17859
dld_link ();
 
17860
  ;
 
17861
  return 0;
 
17862
}
 
17863
_ACEOF
 
17864
rm -f conftest.$ac_objext conftest$ac_exeext
 
17865
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
17866
  (eval $ac_link) 2>conftest.er1
 
17867
  ac_status=$?
 
17868
  grep -v '^ *+' conftest.er1 >conftest.err
 
17869
  rm -f conftest.er1
 
17870
  cat conftest.err >&5
 
17871
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17872
  (exit $ac_status); } &&
 
17873
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
17874
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
17875
  (eval $ac_try) 2>&5
 
17876
  ac_status=$?
 
17877
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17878
  (exit $ac_status); }; } &&
 
17879
         { ac_try='test -s conftest$ac_exeext'
 
17880
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
17881
  (eval $ac_try) 2>&5
 
17882
  ac_status=$?
 
17883
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17884
  (exit $ac_status); }; }; then
 
17885
  ac_cv_lib_dld_dld_link=yes
 
17886
else
 
17887
  echo "$as_me: failed program was:" >&5
 
17888
sed 's/^/| /' conftest.$ac_ext >&5
 
17889
 
 
17890
ac_cv_lib_dld_dld_link=no
 
17891
fi
 
17892
rm -f conftest.err conftest.$ac_objext \
 
17893
      conftest$ac_exeext conftest.$ac_ext
 
17894
LIBS=$ac_check_lib_save_LIBS
 
17895
fi
 
17896
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
 
17897
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
 
17898
if test $ac_cv_lib_dld_dld_link = yes; then
 
17899
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
 
17900
fi
 
17901
 
 
17902
 
 
17903
fi
 
17904
 
 
17905
 
 
17906
fi
 
17907
 
 
17908
 
 
17909
fi
 
17910
 
 
17911
 
 
17912
fi
 
17913
 
 
17914
 
 
17915
fi
 
17916
 
 
17917
    ;;
 
17918
  esac
 
17919
 
 
17920
  if test "x$lt_cv_dlopen" != xno; then
 
17921
    enable_dlopen=yes
 
17922
  else
 
17923
    enable_dlopen=no
 
17924
  fi
 
17925
 
 
17926
  case $lt_cv_dlopen in
 
17927
  dlopen)
 
17928
    save_CPPFLAGS="$CPPFLAGS"
 
17929
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
 
17930
 
 
17931
    save_LDFLAGS="$LDFLAGS"
 
17932
    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
 
17933
 
 
17934
    save_LIBS="$LIBS"
 
17935
    LIBS="$lt_cv_dlopen_libs $LIBS"
 
17936
 
 
17937
    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
 
17938
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
 
17939
if test "${lt_cv_dlopen_self+set}" = set; then
 
17940
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
17941
else
 
17942
          if test "$cross_compiling" = yes; then :
 
17943
  lt_cv_dlopen_self=cross
 
17944
else
 
17945
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
17946
  lt_status=$lt_dlunknown
 
17947
  cat > conftest.$ac_ext <<EOF
 
17948
#line 17948 "configure"
 
17949
#include "confdefs.h"
 
17950
 
 
17951
#if HAVE_DLFCN_H
 
17952
#include <dlfcn.h>
 
17953
#endif
 
17954
 
 
17955
#include <stdio.h>
 
17956
 
 
17957
#ifdef RTLD_GLOBAL
 
17958
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
17959
#else
 
17960
#  ifdef DL_GLOBAL
 
17961
#    define LT_DLGLOBAL         DL_GLOBAL
 
17962
#  else
 
17963
#    define LT_DLGLOBAL         0
 
17964
#  endif
 
17965
#endif
 
17966
 
 
17967
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
17968
   find out it does not work in some platform. */
 
17969
#ifndef LT_DLLAZY_OR_NOW
 
17970
#  ifdef RTLD_LAZY
 
17971
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
17972
#  else
 
17973
#    ifdef DL_LAZY
 
17974
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
17975
#    else
 
17976
#      ifdef RTLD_NOW
 
17977
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
17978
#      else
 
17979
#        ifdef DL_NOW
 
17980
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
17981
#        else
 
17982
#          define LT_DLLAZY_OR_NOW      0
 
17983
#        endif
 
17984
#      endif
 
17985
#    endif
 
17986
#  endif
 
17987
#endif
 
17988
 
 
17989
#ifdef __cplusplus
 
17990
extern "C" void exit (int);
 
17991
#endif
 
17992
 
 
17993
void fnord() { int i=42;}
 
17994
int main ()
 
17995
{
 
17996
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
17997
  int status = $lt_dlunknown;
 
17998
 
 
17999
  if (self)
 
18000
    {
 
18001
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
18002
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
18003
      /* dlclose (self); */
 
18004
    }
 
18005
 
 
18006
    exit (status);
 
18007
}
 
18008
EOF
 
18009
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
18010
  (eval $ac_link) 2>&5
 
18011
  ac_status=$?
 
18012
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18013
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
 
18014
    (./conftest; exit; ) 2>/dev/null
 
18015
    lt_status=$?
 
18016
    case x$lt_status in
 
18017
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
 
18018
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
 
18019
      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
 
18020
    esac
 
18021
  else :
 
18022
    # compilation failed
 
18023
    lt_cv_dlopen_self=no
 
18024
  fi
 
18025
fi
 
18026
rm -fr conftest*
 
18027
 
 
18028
 
 
18029
fi
 
18030
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
 
18031
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
 
18032
 
 
18033
    if test "x$lt_cv_dlopen_self" = xyes; then
 
18034
      LDFLAGS="$LDFLAGS $link_static_flag"
 
18035
      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
 
18036
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
 
18037
if test "${lt_cv_dlopen_self_static+set}" = set; then
 
18038
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
18039
else
 
18040
          if test "$cross_compiling" = yes; then :
 
18041
  lt_cv_dlopen_self_static=cross
 
18042
else
 
18043
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
18044
  lt_status=$lt_dlunknown
 
18045
  cat > conftest.$ac_ext <<EOF
 
18046
#line 18046 "configure"
 
18047
#include "confdefs.h"
 
18048
 
 
18049
#if HAVE_DLFCN_H
 
18050
#include <dlfcn.h>
 
18051
#endif
 
18052
 
 
18053
#include <stdio.h>
 
18054
 
 
18055
#ifdef RTLD_GLOBAL
 
18056
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
18057
#else
 
18058
#  ifdef DL_GLOBAL
 
18059
#    define LT_DLGLOBAL         DL_GLOBAL
 
18060
#  else
 
18061
#    define LT_DLGLOBAL         0
 
18062
#  endif
 
18063
#endif
 
18064
 
 
18065
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
18066
   find out it does not work in some platform. */
 
18067
#ifndef LT_DLLAZY_OR_NOW
 
18068
#  ifdef RTLD_LAZY
 
18069
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
18070
#  else
 
18071
#    ifdef DL_LAZY
 
18072
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
18073
#    else
 
18074
#      ifdef RTLD_NOW
 
18075
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
18076
#      else
 
18077
#        ifdef DL_NOW
 
18078
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
18079
#        else
 
18080
#          define LT_DLLAZY_OR_NOW      0
 
18081
#        endif
 
18082
#      endif
 
18083
#    endif
 
18084
#  endif
 
18085
#endif
 
18086
 
 
18087
#ifdef __cplusplus
 
18088
extern "C" void exit (int);
 
18089
#endif
 
18090
 
 
18091
void fnord() { int i=42;}
 
18092
int main ()
 
18093
{
 
18094
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
18095
  int status = $lt_dlunknown;
 
18096
 
 
18097
  if (self)
 
18098
    {
 
18099
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
18100
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
18101
      /* dlclose (self); */
 
18102
    }
 
18103
 
 
18104
    exit (status);
 
18105
}
 
18106
EOF
 
18107
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
18108
  (eval $ac_link) 2>&5
 
18109
  ac_status=$?
 
18110
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18111
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
 
18112
    (./conftest; exit; ) 2>/dev/null
 
18113
    lt_status=$?
 
18114
    case x$lt_status in
 
18115
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
 
18116
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
 
18117
      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
 
18118
    esac
 
18119
  else :
 
18120
    # compilation failed
 
18121
    lt_cv_dlopen_self_static=no
 
18122
  fi
 
18123
fi
 
18124
rm -fr conftest*
 
18125
 
 
18126
 
 
18127
fi
 
18128
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
 
18129
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
 
18130
    fi
 
18131
 
 
18132
    CPPFLAGS="$save_CPPFLAGS"
 
18133
    LDFLAGS="$save_LDFLAGS"
 
18134
    LIBS="$save_LIBS"
 
18135
    ;;
 
18136
  esac
 
18137
 
 
18138
  case $lt_cv_dlopen_self in
 
18139
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
 
18140
  *) enable_dlopen_self=unknown ;;
 
18141
  esac
 
18142
 
 
18143
  case $lt_cv_dlopen_self_static in
 
18144
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
 
18145
  *) enable_dlopen_self_static=unknown ;;
 
18146
  esac
 
18147
fi
 
18148
 
 
18149
 
 
18150
# The else clause should only fire when bootstrapping the
 
18151
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
18152
# with your package, and you will get complaints that there are
 
18153
# no rules to generate ltmain.sh.
 
18154
if test -f "$ltmain"; then
 
18155
  # See if we are running on zsh, and set the options which allow our commands through
 
18156
  # without removal of \ escapes.
 
18157
  if test -n "${ZSH_VERSION+set}" ; then
 
18158
    setopt NO_GLOB_SUBST
 
18159
  fi
 
18160
  # Now quote all the things that may contain metacharacters while being
 
18161
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
18162
  # variables and quote the copies for generation of the libtool script.
 
18163
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
 
18164
    SED SHELL STRIP \
 
18165
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
18166
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
18167
    deplibs_check_method reload_flag reload_cmds need_locks \
 
18168
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
18169
    lt_cv_sys_global_symbol_to_c_name_address \
 
18170
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
18171
    old_postinstall_cmds old_postuninstall_cmds \
 
18172
    compiler_GCJ \
 
18173
    CC_GCJ \
 
18174
    LD_GCJ \
 
18175
    lt_prog_compiler_wl_GCJ \
 
18176
    lt_prog_compiler_pic_GCJ \
 
18177
    lt_prog_compiler_static_GCJ \
 
18178
    lt_prog_compiler_no_builtin_flag_GCJ \
 
18179
    export_dynamic_flag_spec_GCJ \
 
18180
    thread_safe_flag_spec_GCJ \
 
18181
    whole_archive_flag_spec_GCJ \
 
18182
    enable_shared_with_static_runtimes_GCJ \
 
18183
    old_archive_cmds_GCJ \
 
18184
    old_archive_from_new_cmds_GCJ \
 
18185
    predep_objects_GCJ \
 
18186
    postdep_objects_GCJ \
 
18187
    predeps_GCJ \
 
18188
    postdeps_GCJ \
 
18189
    compiler_lib_search_path_GCJ \
 
18190
    archive_cmds_GCJ \
 
18191
    archive_expsym_cmds_GCJ \
 
18192
    postinstall_cmds_GCJ \
 
18193
    postuninstall_cmds_GCJ \
 
18194
    old_archive_from_expsyms_cmds_GCJ \
 
18195
    allow_undefined_flag_GCJ \
 
18196
    no_undefined_flag_GCJ \
 
18197
    export_symbols_cmds_GCJ \
 
18198
    hardcode_libdir_flag_spec_GCJ \
 
18199
    hardcode_libdir_flag_spec_ld_GCJ \
 
18200
    hardcode_libdir_separator_GCJ \
 
18201
    hardcode_automatic_GCJ \
 
18202
    module_cmds_GCJ \
 
18203
    module_expsym_cmds_GCJ \
 
18204
    lt_cv_prog_compiler_c_o_GCJ \
 
18205
    exclude_expsyms_GCJ \
 
18206
    include_expsyms_GCJ; do
 
18207
 
 
18208
    case $var in
 
18209
    old_archive_cmds_GCJ | \
 
18210
    old_archive_from_new_cmds_GCJ | \
 
18211
    archive_cmds_GCJ | \
 
18212
    archive_expsym_cmds_GCJ | \
 
18213
    module_cmds_GCJ | \
 
18214
    module_expsym_cmds_GCJ | \
 
18215
    old_archive_from_expsyms_cmds_GCJ | \
 
18216
    export_symbols_cmds_GCJ | \
 
18217
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
18218
    postinstall_cmds | postuninstall_cmds | \
 
18219
    old_postinstall_cmds | old_postuninstall_cmds | \
 
18220
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
18221
      # Double-quote double-evaled strings.
 
18222
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
18223
      ;;
 
18224
    *)
 
18225
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
18226
      ;;
 
18227
    esac
 
18228
  done
 
18229
 
 
18230
  case $lt_echo in
 
18231
  *'\$0 --fallback-echo"')
 
18232
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
 
18233
    ;;
 
18234
  esac
 
18235
 
 
18236
cfgfile="$ofile"
 
18237
 
 
18238
  cat <<__EOF__ >> "$cfgfile"
 
18239
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
 
18240
 
 
18241
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
18242
 
 
18243
# Shell to use when invoking shell scripts.
 
18244
SHELL=$lt_SHELL
 
18245
 
 
18246
# Whether or not to build shared libraries.
 
18247
build_libtool_libs=$enable_shared
 
18248
 
 
18249
# Whether or not to build static libraries.
 
18250
build_old_libs=$enable_static
 
18251
 
 
18252
# Whether or not to add -lc for building shared libraries.
 
18253
build_libtool_need_lc=$archive_cmds_need_lc_GCJ
 
18254
 
 
18255
# Whether or not to disallow shared libs when runtime libs are static
 
18256
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
 
18257
 
 
18258
# Whether or not to optimize for fast installation.
 
18259
fast_install=$enable_fast_install
 
18260
 
 
18261
# The host system.
 
18262
host_alias=$host_alias
 
18263
host=$host
 
18264
 
 
18265
# An echo program that does not interpret backslashes.
 
18266
echo=$lt_echo
 
18267
 
 
18268
# The archiver.
 
18269
AR=$lt_AR
 
18270
AR_FLAGS=$lt_AR_FLAGS
 
18271
 
 
18272
# A C compiler.
 
18273
LTCC=$lt_LTCC
 
18274
 
 
18275
# A language-specific compiler.
 
18276
CC=$lt_compiler_GCJ
 
18277
 
 
18278
# Is the compiler the GNU C compiler?
 
18279
with_gcc=$GCC_GCJ
 
18280
 
 
18281
# An ERE matcher.
 
18282
EGREP=$lt_EGREP
 
18283
 
 
18284
# The linker used to build libraries.
 
18285
LD=$lt_LD_GCJ
 
18286
 
 
18287
# Whether we need hard or soft links.
 
18288
LN_S=$lt_LN_S
 
18289
 
 
18290
# A BSD-compatible nm program.
 
18291
NM=$lt_NM
 
18292
 
 
18293
# A symbol stripping program
 
18294
STRIP=$lt_STRIP
 
18295
 
 
18296
# Used to examine libraries when file_magic_cmd begins "file"
 
18297
MAGIC_CMD=$MAGIC_CMD
 
18298
 
 
18299
# Used on cygwin: DLL creation program.
 
18300
DLLTOOL="$DLLTOOL"
 
18301
 
 
18302
# Used on cygwin: object dumper.
 
18303
OBJDUMP="$OBJDUMP"
 
18304
 
 
18305
# Used on cygwin: assembler.
 
18306
AS="$AS"
 
18307
 
 
18308
# The name of the directory that contains temporary libtool files.
 
18309
objdir=$objdir
 
18310
 
 
18311
# How to create reloadable object files.
 
18312
reload_flag=$lt_reload_flag
 
18313
reload_cmds=$lt_reload_cmds
 
18314
 
 
18315
# How to pass a linker flag through the compiler.
 
18316
wl=$lt_lt_prog_compiler_wl_GCJ
 
18317
 
 
18318
# Object file suffix (normally "o").
 
18319
objext="$ac_objext"
 
18320
 
 
18321
# Old archive suffix (normally "a").
 
18322
libext="$libext"
 
18323
 
 
18324
# Shared library suffix (normally ".so").
 
18325
shrext_cmds='$shrext_cmds'
 
18326
 
 
18327
# Executable file suffix (normally "").
 
18328
exeext="$exeext"
 
18329
 
 
18330
# Additional compiler flags for building library objects.
 
18331
pic_flag=$lt_lt_prog_compiler_pic_GCJ
 
18332
pic_mode=$pic_mode
 
18333
 
 
18334
# What is the maximum length of a command?
 
18335
max_cmd_len=$lt_cv_sys_max_cmd_len
 
18336
 
 
18337
# Does compiler simultaneously support -c and -o options?
 
18338
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
 
18339
 
 
18340
# Must we lock files when doing compilation ?
 
18341
need_locks=$lt_need_locks
 
18342
 
 
18343
# Do we need the lib prefix for modules?
 
18344
need_lib_prefix=$need_lib_prefix
 
18345
 
 
18346
# Do we need a version for libraries?
 
18347
need_version=$need_version
 
18348
 
 
18349
# Whether dlopen is supported.
 
18350
dlopen_support=$enable_dlopen
 
18351
 
 
18352
# Whether dlopen of programs is supported.
 
18353
dlopen_self=$enable_dlopen_self
 
18354
 
 
18355
# Whether dlopen of statically linked programs is supported.
 
18356
dlopen_self_static=$enable_dlopen_self_static
 
18357
 
 
18358
# Compiler flag to prevent dynamic linking.
 
18359
link_static_flag=$lt_lt_prog_compiler_static_GCJ
 
18360
 
 
18361
# Compiler flag to turn off builtin functions.
 
18362
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
 
18363
 
 
18364
# Compiler flag to allow reflexive dlopens.
 
18365
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
 
18366
 
 
18367
# Compiler flag to generate shared objects directly from archives.
 
18368
whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
 
18369
 
 
18370
# Compiler flag to generate thread-safe objects.
 
18371
thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
 
18372
 
 
18373
# Library versioning type.
 
18374
version_type=$version_type
 
18375
 
 
18376
# Format of library name prefix.
 
18377
libname_spec=$lt_libname_spec
 
18378
 
 
18379
# List of archive names.  First name is the real one, the rest are links.
 
18380
# The last name is the one that the linker finds with -lNAME.
 
18381
library_names_spec=$lt_library_names_spec
 
18382
 
 
18383
# The coded name of the library, if different from the real name.
 
18384
soname_spec=$lt_soname_spec
 
18385
 
 
18386
# Commands used to build and install an old-style archive.
 
18387
RANLIB=$lt_RANLIB
 
18388
old_archive_cmds=$lt_old_archive_cmds_GCJ
 
18389
old_postinstall_cmds=$lt_old_postinstall_cmds
 
18390
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
18391
 
 
18392
# Create an old-style archive from a shared archive.
 
18393
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
 
18394
 
 
18395
# Create a temporary old-style archive to link instead of a shared archive.
 
18396
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
 
18397
 
 
18398
# Commands used to build and install a shared archive.
 
18399
archive_cmds=$lt_archive_cmds_GCJ
 
18400
archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
 
18401
postinstall_cmds=$lt_postinstall_cmds
 
18402
postuninstall_cmds=$lt_postuninstall_cmds
 
18403
 
 
18404
# Commands used to build a loadable module (assumed same as above if empty)
 
18405
module_cmds=$lt_module_cmds_GCJ
 
18406
module_expsym_cmds=$lt_module_expsym_cmds_GCJ
 
18407
 
 
18408
# Commands to strip libraries.
 
18409
old_striplib=$lt_old_striplib
 
18410
striplib=$lt_striplib
 
18411
 
 
18412
# Dependencies to place before the objects being linked to create a
 
18413
# shared library.
 
18414
predep_objects=$lt_predep_objects_GCJ
 
18415
 
 
18416
# Dependencies to place after the objects being linked to create a
 
18417
# shared library.
 
18418
postdep_objects=$lt_postdep_objects_GCJ
 
18419
 
 
18420
# Dependencies to place before the objects being linked to create a
 
18421
# shared library.
 
18422
predeps=$lt_predeps_GCJ
 
18423
 
 
18424
# Dependencies to place after the objects being linked to create a
 
18425
# shared library.
 
18426
postdeps=$lt_postdeps_GCJ
 
18427
 
 
18428
# The library search path used internally by the compiler when linking
 
18429
# a shared library.
 
18430
compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
 
18431
 
 
18432
# Method to check whether dependent libraries are shared objects.
 
18433
deplibs_check_method=$lt_deplibs_check_method
 
18434
 
 
18435
# Command to use when deplibs_check_method == file_magic.
 
18436
file_magic_cmd=$lt_file_magic_cmd
 
18437
 
 
18438
# Flag that allows shared libraries with undefined symbols to be built.
 
18439
allow_undefined_flag=$lt_allow_undefined_flag_GCJ
 
18440
 
 
18441
# Flag that forces no undefined symbols.
 
18442
no_undefined_flag=$lt_no_undefined_flag_GCJ
 
18443
 
 
18444
# Commands used to finish a libtool library installation in a directory.
 
18445
finish_cmds=$lt_finish_cmds
 
18446
 
 
18447
# Same as above, but a single script fragment to be evaled but not shown.
 
18448
finish_eval=$lt_finish_eval
 
18449
 
 
18450
# Take the output of nm and produce a listing of raw symbols and C names.
 
18451
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
18452
 
 
18453
# Transform the output of nm in a proper C declaration
 
18454
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
18455
 
 
18456
# Transform the output of nm in a C name address pair
 
18457
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
18458
 
 
18459
# This is the shared library runtime path variable.
 
18460
runpath_var=$runpath_var
 
18461
 
 
18462
# This is the shared library path variable.
 
18463
shlibpath_var=$shlibpath_var
 
18464
 
 
18465
# Is shlibpath searched before the hard-coded library search path?
 
18466
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
18467
 
 
18468
# How to hardcode a shared library path into an executable.
 
18469
hardcode_action=$hardcode_action_GCJ
 
18470
 
 
18471
# Whether we should hardcode library paths into libraries.
 
18472
hardcode_into_libs=$hardcode_into_libs
 
18473
 
 
18474
# Flag to hardcode \$libdir into a binary during linking.
 
18475
# This must work even if \$libdir does not exist.
 
18476
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
 
18477
 
 
18478
# If ld is used when linking, flag to hardcode \$libdir into
 
18479
# a binary during linking. This must work even if \$libdir does
 
18480
# not exist.
 
18481
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
 
18482
 
 
18483
# Whether we need a single -rpath flag with a separated argument.
 
18484
hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
 
18485
 
 
18486
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
 
18487
# resulting binary.
 
18488
hardcode_direct=$hardcode_direct_GCJ
 
18489
 
 
18490
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
18491
# resulting binary.
 
18492
hardcode_minus_L=$hardcode_minus_L_GCJ
 
18493
 
 
18494
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
18495
# the resulting binary.
 
18496
hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
 
18497
 
 
18498
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
18499
# and all subsequent libraries and executables linked against it.
 
18500
hardcode_automatic=$hardcode_automatic_GCJ
 
18501
 
 
18502
# Variables whose values should be saved in libtool wrapper scripts and
 
18503
# restored at relink time.
 
18504
variables_saved_for_relink="$variables_saved_for_relink"
 
18505
 
 
18506
# Whether libtool must link a program against all its dependency libraries.
 
18507
link_all_deplibs=$link_all_deplibs_GCJ
 
18508
 
 
18509
# Compile-time system search path for libraries
 
18510
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
18511
 
 
18512
# Run-time system search path for libraries
 
18513
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
18514
 
 
18515
# Fix the shell variable \$srcfile for the compiler.
 
18516
fix_srcfile_path="$fix_srcfile_path_GCJ"
 
18517
 
 
18518
# Set to yes if exported symbols are required.
 
18519
always_export_symbols=$always_export_symbols_GCJ
 
18520
 
 
18521
# The commands to list exported symbols.
 
18522
export_symbols_cmds=$lt_export_symbols_cmds_GCJ
 
18523
 
 
18524
# The commands to extract the exported symbol list from a shared archive.
 
18525
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
18526
 
 
18527
# Symbols that should not be listed in the preloaded symbols.
 
18528
exclude_expsyms=$lt_exclude_expsyms_GCJ
 
18529
 
 
18530
# Symbols that must always be exported.
 
18531
include_expsyms=$lt_include_expsyms_GCJ
 
18532
 
 
18533
# ### END LIBTOOL TAG CONFIG: $tagname
 
18534
 
 
18535
__EOF__
 
18536
 
 
18537
 
 
18538
else
 
18539
  # If there is no Makefile yet, we rely on a make rule to execute
 
18540
  # `config.status --recheck' to rerun these tests and create the
 
18541
  # libtool script then.
 
18542
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
 
18543
  if test -f "$ltmain_in"; then
 
18544
    test -f Makefile && make "$ltmain"
 
18545
  fi
 
18546
fi
 
18547
 
 
18548
 
 
18549
ac_ext=c
 
18550
ac_cpp='$CPP $CPPFLAGS'
 
18551
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
18552
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
18553
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
18554
 
 
18555
CC="$lt_save_CC"
 
18556
 
 
18557
        else
 
18558
          tagname=""
 
18559
        fi
 
18560
        ;;
 
18561
 
 
18562
      RC)
 
18563
 
 
18564
 
 
18565
 
 
18566
# Source file extension for RC test sources.
 
18567
ac_ext=rc
 
18568
 
 
18569
# Object file extension for compiled RC test sources.
 
18570
objext=o
 
18571
objext_RC=$objext
 
18572
 
 
18573
# Code to be used in simple compile tests
 
18574
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
 
18575
 
 
18576
# Code to be used in simple link tests
 
18577
lt_simple_link_test_code="$lt_simple_compile_test_code"
 
18578
 
 
18579
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
18580
 
 
18581
# If no C compiler was specified, use CC.
 
18582
LTCC=${LTCC-"$CC"}
 
18583
 
 
18584
# Allow CC to be a program name with arguments.
 
18585
compiler=$CC
 
18586
 
 
18587
 
 
18588
# Allow CC to be a program name with arguments.
 
18589
lt_save_CC="$CC"
 
18590
CC=${RC-"windres"}
 
18591
compiler=$CC
 
18592
compiler_RC=$CC
 
18593
lt_cv_prog_compiler_c_o_RC=yes
 
18594
 
 
18595
# The else clause should only fire when bootstrapping the
 
18596
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
18597
# with your package, and you will get complaints that there are
 
18598
# no rules to generate ltmain.sh.
 
18599
if test -f "$ltmain"; then
 
18600
  # See if we are running on zsh, and set the options which allow our commands through
 
18601
  # without removal of \ escapes.
 
18602
  if test -n "${ZSH_VERSION+set}" ; then
 
18603
    setopt NO_GLOB_SUBST
 
18604
  fi
 
18605
  # Now quote all the things that may contain metacharacters while being
 
18606
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
18607
  # variables and quote the copies for generation of the libtool script.
 
18608
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
 
18609
    SED SHELL STRIP \
 
18610
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
18611
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
18612
    deplibs_check_method reload_flag reload_cmds need_locks \
 
18613
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
18614
    lt_cv_sys_global_symbol_to_c_name_address \
 
18615
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
18616
    old_postinstall_cmds old_postuninstall_cmds \
 
18617
    compiler_RC \
 
18618
    CC_RC \
 
18619
    LD_RC \
 
18620
    lt_prog_compiler_wl_RC \
 
18621
    lt_prog_compiler_pic_RC \
 
18622
    lt_prog_compiler_static_RC \
 
18623
    lt_prog_compiler_no_builtin_flag_RC \
 
18624
    export_dynamic_flag_spec_RC \
 
18625
    thread_safe_flag_spec_RC \
 
18626
    whole_archive_flag_spec_RC \
 
18627
    enable_shared_with_static_runtimes_RC \
 
18628
    old_archive_cmds_RC \
 
18629
    old_archive_from_new_cmds_RC \
 
18630
    predep_objects_RC \
 
18631
    postdep_objects_RC \
 
18632
    predeps_RC \
 
18633
    postdeps_RC \
 
18634
    compiler_lib_search_path_RC \
 
18635
    archive_cmds_RC \
 
18636
    archive_expsym_cmds_RC \
 
18637
    postinstall_cmds_RC \
 
18638
    postuninstall_cmds_RC \
 
18639
    old_archive_from_expsyms_cmds_RC \
 
18640
    allow_undefined_flag_RC \
 
18641
    no_undefined_flag_RC \
 
18642
    export_symbols_cmds_RC \
 
18643
    hardcode_libdir_flag_spec_RC \
 
18644
    hardcode_libdir_flag_spec_ld_RC \
 
18645
    hardcode_libdir_separator_RC \
 
18646
    hardcode_automatic_RC \
 
18647
    module_cmds_RC \
 
18648
    module_expsym_cmds_RC \
 
18649
    lt_cv_prog_compiler_c_o_RC \
 
18650
    exclude_expsyms_RC \
 
18651
    include_expsyms_RC; do
 
18652
 
 
18653
    case $var in
 
18654
    old_archive_cmds_RC | \
 
18655
    old_archive_from_new_cmds_RC | \
 
18656
    archive_cmds_RC | \
 
18657
    archive_expsym_cmds_RC | \
 
18658
    module_cmds_RC | \
 
18659
    module_expsym_cmds_RC | \
 
18660
    old_archive_from_expsyms_cmds_RC | \
 
18661
    export_symbols_cmds_RC | \
 
18662
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
18663
    postinstall_cmds | postuninstall_cmds | \
 
18664
    old_postinstall_cmds | old_postuninstall_cmds | \
 
18665
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
18666
      # Double-quote double-evaled strings.
 
18667
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
18668
      ;;
 
18669
    *)
 
18670
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
18671
      ;;
 
18672
    esac
 
18673
  done
 
18674
 
 
18675
  case $lt_echo in
 
18676
  *'\$0 --fallback-echo"')
 
18677
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
 
18678
    ;;
 
18679
  esac
 
18680
 
 
18681
cfgfile="$ofile"
 
18682
 
 
18683
  cat <<__EOF__ >> "$cfgfile"
 
18684
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
 
18685
 
 
18686
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
18687
 
 
18688
# Shell to use when invoking shell scripts.
 
18689
SHELL=$lt_SHELL
 
18690
 
 
18691
# Whether or not to build shared libraries.
 
18692
build_libtool_libs=$enable_shared
 
18693
 
 
18694
# Whether or not to build static libraries.
 
18695
build_old_libs=$enable_static
 
18696
 
 
18697
# Whether or not to add -lc for building shared libraries.
 
18698
build_libtool_need_lc=$archive_cmds_need_lc_RC
 
18699
 
 
18700
# Whether or not to disallow shared libs when runtime libs are static
 
18701
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
 
18702
 
 
18703
# Whether or not to optimize for fast installation.
 
18704
fast_install=$enable_fast_install
 
18705
 
 
18706
# The host system.
 
18707
host_alias=$host_alias
 
18708
host=$host
 
18709
 
 
18710
# An echo program that does not interpret backslashes.
 
18711
echo=$lt_echo
 
18712
 
 
18713
# The archiver.
 
18714
AR=$lt_AR
 
18715
AR_FLAGS=$lt_AR_FLAGS
 
18716
 
 
18717
# A C compiler.
 
18718
LTCC=$lt_LTCC
 
18719
 
 
18720
# A language-specific compiler.
 
18721
CC=$lt_compiler_RC
 
18722
 
 
18723
# Is the compiler the GNU C compiler?
 
18724
with_gcc=$GCC_RC
 
18725
 
 
18726
# An ERE matcher.
 
18727
EGREP=$lt_EGREP
 
18728
 
 
18729
# The linker used to build libraries.
 
18730
LD=$lt_LD_RC
 
18731
 
 
18732
# Whether we need hard or soft links.
 
18733
LN_S=$lt_LN_S
 
18734
 
 
18735
# A BSD-compatible nm program.
 
18736
NM=$lt_NM
 
18737
 
 
18738
# A symbol stripping program
 
18739
STRIP=$lt_STRIP
 
18740
 
 
18741
# Used to examine libraries when file_magic_cmd begins "file"
 
18742
MAGIC_CMD=$MAGIC_CMD
 
18743
 
 
18744
# Used on cygwin: DLL creation program.
 
18745
DLLTOOL="$DLLTOOL"
 
18746
 
 
18747
# Used on cygwin: object dumper.
 
18748
OBJDUMP="$OBJDUMP"
 
18749
 
 
18750
# Used on cygwin: assembler.
 
18751
AS="$AS"
 
18752
 
 
18753
# The name of the directory that contains temporary libtool files.
 
18754
objdir=$objdir
 
18755
 
 
18756
# How to create reloadable object files.
 
18757
reload_flag=$lt_reload_flag
 
18758
reload_cmds=$lt_reload_cmds
 
18759
 
 
18760
# How to pass a linker flag through the compiler.
 
18761
wl=$lt_lt_prog_compiler_wl_RC
 
18762
 
 
18763
# Object file suffix (normally "o").
 
18764
objext="$ac_objext"
 
18765
 
 
18766
# Old archive suffix (normally "a").
 
18767
libext="$libext"
 
18768
 
 
18769
# Shared library suffix (normally ".so").
 
18770
shrext_cmds='$shrext_cmds'
 
18771
 
 
18772
# Executable file suffix (normally "").
 
18773
exeext="$exeext"
 
18774
 
 
18775
# Additional compiler flags for building library objects.
 
18776
pic_flag=$lt_lt_prog_compiler_pic_RC
 
18777
pic_mode=$pic_mode
 
18778
 
 
18779
# What is the maximum length of a command?
 
18780
max_cmd_len=$lt_cv_sys_max_cmd_len
 
18781
 
 
18782
# Does compiler simultaneously support -c and -o options?
 
18783
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
 
18784
 
 
18785
# Must we lock files when doing compilation ?
 
18786
need_locks=$lt_need_locks
 
18787
 
 
18788
# Do we need the lib prefix for modules?
 
18789
need_lib_prefix=$need_lib_prefix
 
18790
 
 
18791
# Do we need a version for libraries?
 
18792
need_version=$need_version
 
18793
 
 
18794
# Whether dlopen is supported.
 
18795
dlopen_support=$enable_dlopen
 
18796
 
 
18797
# Whether dlopen of programs is supported.
 
18798
dlopen_self=$enable_dlopen_self
 
18799
 
 
18800
# Whether dlopen of statically linked programs is supported.
 
18801
dlopen_self_static=$enable_dlopen_self_static
 
18802
 
 
18803
# Compiler flag to prevent dynamic linking.
 
18804
link_static_flag=$lt_lt_prog_compiler_static_RC
 
18805
 
 
18806
# Compiler flag to turn off builtin functions.
 
18807
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
 
18808
 
 
18809
# Compiler flag to allow reflexive dlopens.
 
18810
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
 
18811
 
 
18812
# Compiler flag to generate shared objects directly from archives.
 
18813
whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
 
18814
 
 
18815
# Compiler flag to generate thread-safe objects.
 
18816
thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
 
18817
 
 
18818
# Library versioning type.
 
18819
version_type=$version_type
 
18820
 
 
18821
# Format of library name prefix.
 
18822
libname_spec=$lt_libname_spec
 
18823
 
 
18824
# List of archive names.  First name is the real one, the rest are links.
 
18825
# The last name is the one that the linker finds with -lNAME.
 
18826
library_names_spec=$lt_library_names_spec
 
18827
 
 
18828
# The coded name of the library, if different from the real name.
 
18829
soname_spec=$lt_soname_spec
 
18830
 
 
18831
# Commands used to build and install an old-style archive.
 
18832
RANLIB=$lt_RANLIB
 
18833
old_archive_cmds=$lt_old_archive_cmds_RC
 
18834
old_postinstall_cmds=$lt_old_postinstall_cmds
 
18835
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
18836
 
 
18837
# Create an old-style archive from a shared archive.
 
18838
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
 
18839
 
 
18840
# Create a temporary old-style archive to link instead of a shared archive.
 
18841
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
 
18842
 
 
18843
# Commands used to build and install a shared archive.
 
18844
archive_cmds=$lt_archive_cmds_RC
 
18845
archive_expsym_cmds=$lt_archive_expsym_cmds_RC
 
18846
postinstall_cmds=$lt_postinstall_cmds
 
18847
postuninstall_cmds=$lt_postuninstall_cmds
 
18848
 
 
18849
# Commands used to build a loadable module (assumed same as above if empty)
 
18850
module_cmds=$lt_module_cmds_RC
 
18851
module_expsym_cmds=$lt_module_expsym_cmds_RC
 
18852
 
 
18853
# Commands to strip libraries.
 
18854
old_striplib=$lt_old_striplib
 
18855
striplib=$lt_striplib
 
18856
 
 
18857
# Dependencies to place before the objects being linked to create a
 
18858
# shared library.
 
18859
predep_objects=$lt_predep_objects_RC
 
18860
 
 
18861
# Dependencies to place after the objects being linked to create a
 
18862
# shared library.
 
18863
postdep_objects=$lt_postdep_objects_RC
 
18864
 
 
18865
# Dependencies to place before the objects being linked to create a
 
18866
# shared library.
 
18867
predeps=$lt_predeps_RC
 
18868
 
 
18869
# Dependencies to place after the objects being linked to create a
 
18870
# shared library.
 
18871
postdeps=$lt_postdeps_RC
 
18872
 
 
18873
# The library search path used internally by the compiler when linking
 
18874
# a shared library.
 
18875
compiler_lib_search_path=$lt_compiler_lib_search_path_RC
 
18876
 
 
18877
# Method to check whether dependent libraries are shared objects.
 
18878
deplibs_check_method=$lt_deplibs_check_method
 
18879
 
 
18880
# Command to use when deplibs_check_method == file_magic.
 
18881
file_magic_cmd=$lt_file_magic_cmd
 
18882
 
 
18883
# Flag that allows shared libraries with undefined symbols to be built.
 
18884
allow_undefined_flag=$lt_allow_undefined_flag_RC
 
18885
 
 
18886
# Flag that forces no undefined symbols.
 
18887
no_undefined_flag=$lt_no_undefined_flag_RC
 
18888
 
 
18889
# Commands used to finish a libtool library installation in a directory.
 
18890
finish_cmds=$lt_finish_cmds
 
18891
 
 
18892
# Same as above, but a single script fragment to be evaled but not shown.
 
18893
finish_eval=$lt_finish_eval
 
18894
 
 
18895
# Take the output of nm and produce a listing of raw symbols and C names.
 
18896
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
18897
 
 
18898
# Transform the output of nm in a proper C declaration
 
18899
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
18900
 
 
18901
# Transform the output of nm in a C name address pair
 
18902
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
18903
 
 
18904
# This is the shared library runtime path variable.
 
18905
runpath_var=$runpath_var
 
18906
 
 
18907
# This is the shared library path variable.
 
18908
shlibpath_var=$shlibpath_var
 
18909
 
 
18910
# Is shlibpath searched before the hard-coded library search path?
 
18911
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
18912
 
 
18913
# How to hardcode a shared library path into an executable.
 
18914
hardcode_action=$hardcode_action_RC
 
18915
 
 
18916
# Whether we should hardcode library paths into libraries.
 
18917
hardcode_into_libs=$hardcode_into_libs
 
18918
 
 
18919
# Flag to hardcode \$libdir into a binary during linking.
 
18920
# This must work even if \$libdir does not exist.
 
18921
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
 
18922
 
 
18923
# If ld is used when linking, flag to hardcode \$libdir into
 
18924
# a binary during linking. This must work even if \$libdir does
 
18925
# not exist.
 
18926
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
 
18927
 
 
18928
# Whether we need a single -rpath flag with a separated argument.
 
18929
hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
 
18930
 
 
18931
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
 
18932
# resulting binary.
 
18933
hardcode_direct=$hardcode_direct_RC
 
18934
 
 
18935
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
18936
# resulting binary.
 
18937
hardcode_minus_L=$hardcode_minus_L_RC
 
18938
 
 
18939
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
18940
# the resulting binary.
 
18941
hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
 
18942
 
 
18943
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
18944
# and all subsequent libraries and executables linked against it.
 
18945
hardcode_automatic=$hardcode_automatic_RC
 
18946
 
 
18947
# Variables whose values should be saved in libtool wrapper scripts and
 
18948
# restored at relink time.
 
18949
variables_saved_for_relink="$variables_saved_for_relink"
 
18950
 
 
18951
# Whether libtool must link a program against all its dependency libraries.
 
18952
link_all_deplibs=$link_all_deplibs_RC
 
18953
 
 
18954
# Compile-time system search path for libraries
 
18955
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
18956
 
 
18957
# Run-time system search path for libraries
 
18958
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
18959
 
 
18960
# Fix the shell variable \$srcfile for the compiler.
 
18961
fix_srcfile_path="$fix_srcfile_path_RC"
 
18962
 
 
18963
# Set to yes if exported symbols are required.
 
18964
always_export_symbols=$always_export_symbols_RC
 
18965
 
 
18966
# The commands to list exported symbols.
 
18967
export_symbols_cmds=$lt_export_symbols_cmds_RC
 
18968
 
 
18969
# The commands to extract the exported symbol list from a shared archive.
 
18970
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
18971
 
 
18972
# Symbols that should not be listed in the preloaded symbols.
 
18973
exclude_expsyms=$lt_exclude_expsyms_RC
 
18974
 
 
18975
# Symbols that must always be exported.
 
18976
include_expsyms=$lt_include_expsyms_RC
 
18977
 
 
18978
# ### END LIBTOOL TAG CONFIG: $tagname
 
18979
 
 
18980
__EOF__
 
18981
 
 
18982
 
 
18983
else
 
18984
  # If there is no Makefile yet, we rely on a make rule to execute
 
18985
  # `config.status --recheck' to rerun these tests and create the
 
18986
  # libtool script then.
 
18987
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
 
18988
  if test -f "$ltmain_in"; then
 
18989
    test -f Makefile && make "$ltmain"
 
18990
  fi
 
18991
fi
 
18992
 
 
18993
 
 
18994
ac_ext=c
 
18995
ac_cpp='$CPP $CPPFLAGS'
 
18996
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
18997
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
18998
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
18999
 
 
19000
CC="$lt_save_CC"
 
19001
 
 
19002
        ;;
 
19003
 
 
19004
      *)
 
19005
        { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
 
19006
echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
 
19007
   { (exit 1); exit 1; }; }
 
19008
        ;;
 
19009
      esac
 
19010
 
 
19011
      # Append the new tag name to the list of available tags.
 
19012
      if test -n "$tagname" ; then
 
19013
      available_tags="$available_tags $tagname"
 
19014
    fi
 
19015
    fi
 
19016
  done
 
19017
  IFS="$lt_save_ifs"
 
19018
 
 
19019
  # Now substitute the updated list of available tags.
 
19020
  if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
 
19021
    mv "${ofile}T" "$ofile"
 
19022
    chmod +x "$ofile"
 
19023
  else
 
19024
    rm -f "${ofile}T"
 
19025
    { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
 
19026
echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
 
19027
   { (exit 1); exit 1; }; }
 
19028
  fi
 
19029
fi
 
19030
 
 
19031
 
 
19032
 
 
19033
# This can be used to rebuild libtool when needed
 
19034
LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
 
19035
 
 
19036
# Always use our own libtool.
 
19037
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
 
19038
 
 
19039
# Prevent multiple expansion
 
19040
 
 
19041
 
 
19042
 
 
19043
 
 
19044
 
 
19045
 
 
19046
 
 
19047
 
 
19048
 
 
19049
 
 
19050
 
 
19051
 
 
19052
 
 
19053
 
 
19054
 
 
19055
 
 
19056
 
 
19057
 
 
19058
 
 
19059
 
 
19060
 
 
19061
###########################################################################
 
19062
 
 
19063
LIBCTL_VERSION=$PACKAGE_VERSION
 
19064
 
 
19065
cat >>confdefs.h <<_ACEOF
 
19066
#define LIBCTL_VERSION "$LIBCTL_VERSION"
 
19067
_ACEOF
 
19068
 
 
19069
 
 
19070
 
 
19071
LIBCTL_MAJOR_VERSION=`echo $LIBCTL_VERSION |cut -d. -f1`
 
19072
LIBCTL_MINOR_VERSION=`echo $LIBCTL_VERSION |cut -d. -f2`
 
19073
LIBCTL_BUGFIX_VERSION=`echo $LIBCTL_VERSION |cut -d. -f3`
 
19074
test "x$LIBCTL_BUGFIX_VERSION" = x && LIBCTL_BUGFIX_VERSION=0
 
19075
 
 
19076
cat >>confdefs.h <<_ACEOF
 
19077
#define LIBCTL_MAJOR_VERSION $LIBCTL_MAJOR_VERSION
 
19078
_ACEOF
 
19079
 
 
19080
 
 
19081
cat >>confdefs.h <<_ACEOF
 
19082
#define LIBCTL_MINOR_VERSION $LIBCTL_MINOR_VERSION
 
19083
_ACEOF
 
19084
 
 
19085
 
 
19086
cat >>confdefs.h <<_ACEOF
 
19087
#define LIBCTL_BUGFIX_VERSION $LIBCTL_BUGFIX_VERSION
 
19088
_ACEOF
 
19089
 
 
19090
 
 
19091
###########################################################################
 
19092
 
 
19093
# Checks for programs.
 
19094
ac_ext=c
 
19095
ac_cpp='$CPP $CPPFLAGS'
 
19096
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
19097
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
19098
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
19099
if test -n "$ac_tool_prefix"; then
 
19100
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
 
19101
set dummy ${ac_tool_prefix}gcc; ac_word=$2
 
19102
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
19103
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
19104
if test "${ac_cv_prog_CC+set}" = set; then
 
19105
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
19106
else
 
19107
  if test -n "$CC"; then
 
19108
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
19109
else
 
19110
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
19111
for as_dir in $PATH
 
19112
do
 
19113
  IFS=$as_save_IFS
 
19114
  test -z "$as_dir" && as_dir=.
 
19115
  for ac_exec_ext in '' $ac_executable_extensions; do
 
19116
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
19117
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
 
19118
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
19119
    break 2
 
19120
  fi
 
19121
done
 
19122
done
 
19123
 
 
19124
fi
 
19125
fi
 
19126
CC=$ac_cv_prog_CC
 
19127
if test -n "$CC"; then
 
19128
  echo "$as_me:$LINENO: result: $CC" >&5
 
19129
echo "${ECHO_T}$CC" >&6
 
19130
else
 
19131
  echo "$as_me:$LINENO: result: no" >&5
 
19132
echo "${ECHO_T}no" >&6
 
19133
fi
 
19134
 
 
19135
fi
 
19136
if test -z "$ac_cv_prog_CC"; then
 
19137
  ac_ct_CC=$CC
 
19138
  # Extract the first word of "gcc", so it can be a program name with args.
 
19139
set dummy gcc; ac_word=$2
 
19140
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
19141
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
19142
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
19143
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
19144
else
 
19145
  if test -n "$ac_ct_CC"; then
 
19146
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
19147
else
 
19148
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
19149
for as_dir in $PATH
 
19150
do
 
19151
  IFS=$as_save_IFS
 
19152
  test -z "$as_dir" && as_dir=.
 
19153
  for ac_exec_ext in '' $ac_executable_extensions; do
 
19154
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
19155
    ac_cv_prog_ac_ct_CC="gcc"
 
19156
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
19157
    break 2
 
19158
  fi
 
19159
done
 
19160
done
 
19161
 
 
19162
fi
 
19163
fi
 
19164
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
19165
if test -n "$ac_ct_CC"; then
 
19166
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
19167
echo "${ECHO_T}$ac_ct_CC" >&6
 
19168
else
 
19169
  echo "$as_me:$LINENO: result: no" >&5
 
19170
echo "${ECHO_T}no" >&6
 
19171
fi
 
19172
 
 
19173
  CC=$ac_ct_CC
 
19174
else
 
19175
  CC="$ac_cv_prog_CC"
 
19176
fi
 
19177
 
 
19178
if test -z "$CC"; then
 
19179
  if test -n "$ac_tool_prefix"; then
 
19180
  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
 
19181
set dummy ${ac_tool_prefix}cc; ac_word=$2
 
19182
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
19183
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
19184
if test "${ac_cv_prog_CC+set}" = set; then
 
19185
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
19186
else
 
19187
  if test -n "$CC"; then
 
19188
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
19189
else
 
19190
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
19191
for as_dir in $PATH
 
19192
do
 
19193
  IFS=$as_save_IFS
 
19194
  test -z "$as_dir" && as_dir=.
 
19195
  for ac_exec_ext in '' $ac_executable_extensions; do
 
19196
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
19197
    ac_cv_prog_CC="${ac_tool_prefix}cc"
 
19198
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
19199
    break 2
 
19200
  fi
 
19201
done
 
19202
done
 
19203
 
 
19204
fi
 
19205
fi
 
19206
CC=$ac_cv_prog_CC
 
19207
if test -n "$CC"; then
 
19208
  echo "$as_me:$LINENO: result: $CC" >&5
 
19209
echo "${ECHO_T}$CC" >&6
 
19210
else
 
19211
  echo "$as_me:$LINENO: result: no" >&5
 
19212
echo "${ECHO_T}no" >&6
 
19213
fi
 
19214
 
 
19215
fi
 
19216
if test -z "$ac_cv_prog_CC"; then
 
19217
  ac_ct_CC=$CC
 
19218
  # Extract the first word of "cc", so it can be a program name with args.
 
19219
set dummy cc; ac_word=$2
 
19220
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
19221
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
19222
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
19223
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
19224
else
 
19225
  if test -n "$ac_ct_CC"; then
 
19226
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
19227
else
 
19228
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
19229
for as_dir in $PATH
 
19230
do
 
19231
  IFS=$as_save_IFS
 
19232
  test -z "$as_dir" && as_dir=.
 
19233
  for ac_exec_ext in '' $ac_executable_extensions; do
 
19234
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
19235
    ac_cv_prog_ac_ct_CC="cc"
 
19236
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
19237
    break 2
 
19238
  fi
 
19239
done
 
19240
done
 
19241
 
 
19242
fi
 
19243
fi
 
19244
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
19245
if test -n "$ac_ct_CC"; then
 
19246
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
19247
echo "${ECHO_T}$ac_ct_CC" >&6
 
19248
else
 
19249
  echo "$as_me:$LINENO: result: no" >&5
 
19250
echo "${ECHO_T}no" >&6
 
19251
fi
 
19252
 
 
19253
  CC=$ac_ct_CC
 
19254
else
 
19255
  CC="$ac_cv_prog_CC"
 
19256
fi
 
19257
 
 
19258
fi
 
19259
if test -z "$CC"; then
 
19260
  # Extract the first word of "cc", so it can be a program name with args.
 
19261
set dummy cc; ac_word=$2
 
19262
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
19263
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
19264
if test "${ac_cv_prog_CC+set}" = set; then
 
19265
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
19266
else
 
19267
  if test -n "$CC"; then
 
19268
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
19269
else
 
19270
  ac_prog_rejected=no
 
19271
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
19272
for as_dir in $PATH
 
19273
do
 
19274
  IFS=$as_save_IFS
 
19275
  test -z "$as_dir" && as_dir=.
 
19276
  for ac_exec_ext in '' $ac_executable_extensions; do
 
19277
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
19278
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
 
19279
       ac_prog_rejected=yes
 
19280
       continue
 
19281
     fi
 
19282
    ac_cv_prog_CC="cc"
 
19283
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
19284
    break 2
 
19285
  fi
 
19286
done
 
19287
done
 
19288
 
 
19289
if test $ac_prog_rejected = yes; then
 
19290
  # We found a bogon in the path, so make sure we never use it.
 
19291
  set dummy $ac_cv_prog_CC
 
19292
  shift
 
19293
  if test $# != 0; then
 
19294
    # We chose a different compiler from the bogus one.
 
19295
    # However, it has the same basename, so the bogon will be chosen
 
19296
    # first if we set CC to just the basename; use the full file name.
 
19297
    shift
 
19298
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
 
19299
  fi
 
19300
fi
 
19301
fi
 
19302
fi
 
19303
CC=$ac_cv_prog_CC
 
19304
if test -n "$CC"; then
 
19305
  echo "$as_me:$LINENO: result: $CC" >&5
 
19306
echo "${ECHO_T}$CC" >&6
 
19307
else
 
19308
  echo "$as_me:$LINENO: result: no" >&5
 
19309
echo "${ECHO_T}no" >&6
 
19310
fi
 
19311
 
 
19312
fi
 
19313
if test -z "$CC"; then
 
19314
  if test -n "$ac_tool_prefix"; then
 
19315
  for ac_prog in cl
 
19316
  do
 
19317
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
19318
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
19319
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
19320
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
19321
if test "${ac_cv_prog_CC+set}" = set; then
 
19322
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
19323
else
 
19324
  if test -n "$CC"; then
 
19325
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
19326
else
 
19327
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
19328
for as_dir in $PATH
 
19329
do
 
19330
  IFS=$as_save_IFS
 
19331
  test -z "$as_dir" && as_dir=.
 
19332
  for ac_exec_ext in '' $ac_executable_extensions; do
 
19333
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
19334
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
 
19335
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
19336
    break 2
 
19337
  fi
 
19338
done
 
19339
done
 
19340
 
 
19341
fi
 
19342
fi
 
19343
CC=$ac_cv_prog_CC
 
19344
if test -n "$CC"; then
 
19345
  echo "$as_me:$LINENO: result: $CC" >&5
 
19346
echo "${ECHO_T}$CC" >&6
 
19347
else
 
19348
  echo "$as_me:$LINENO: result: no" >&5
 
19349
echo "${ECHO_T}no" >&6
 
19350
fi
 
19351
 
 
19352
    test -n "$CC" && break
 
19353
  done
 
19354
fi
 
19355
if test -z "$CC"; then
 
19356
  ac_ct_CC=$CC
 
19357
  for ac_prog in cl
 
19358
do
 
19359
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
19360
set dummy $ac_prog; ac_word=$2
 
19361
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
19362
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
19363
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
19364
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
19365
else
 
19366
  if test -n "$ac_ct_CC"; then
 
19367
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
19368
else
 
19369
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
19370
for as_dir in $PATH
 
19371
do
 
19372
  IFS=$as_save_IFS
 
19373
  test -z "$as_dir" && as_dir=.
 
19374
  for ac_exec_ext in '' $ac_executable_extensions; do
 
19375
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
19376
    ac_cv_prog_ac_ct_CC="$ac_prog"
 
19377
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
19378
    break 2
 
19379
  fi
 
19380
done
 
19381
done
 
19382
 
 
19383
fi
 
19384
fi
 
19385
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
19386
if test -n "$ac_ct_CC"; then
 
19387
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
19388
echo "${ECHO_T}$ac_ct_CC" >&6
 
19389
else
 
19390
  echo "$as_me:$LINENO: result: no" >&5
 
19391
echo "${ECHO_T}no" >&6
 
19392
fi
 
19393
 
 
19394
  test -n "$ac_ct_CC" && break
 
19395
done
 
19396
 
 
19397
  CC=$ac_ct_CC
 
19398
fi
 
19399
 
 
19400
fi
 
19401
 
 
19402
 
 
19403
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
 
19404
See \`config.log' for more details." >&5
 
19405
echo "$as_me: error: no acceptable C compiler found in \$PATH
 
19406
See \`config.log' for more details." >&2;}
 
19407
   { (exit 1); exit 1; }; }
 
19408
 
 
19409
# Provide some information about the compiler.
 
19410
echo "$as_me:$LINENO:" \
 
19411
     "checking for C compiler version" >&5
 
19412
ac_compiler=`set X $ac_compile; echo $2`
 
19413
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
 
19414
  (eval $ac_compiler --version </dev/null >&5) 2>&5
 
19415
  ac_status=$?
 
19416
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19417
  (exit $ac_status); }
 
19418
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
 
19419
  (eval $ac_compiler -v </dev/null >&5) 2>&5
 
19420
  ac_status=$?
 
19421
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19422
  (exit $ac_status); }
 
19423
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
 
19424
  (eval $ac_compiler -V </dev/null >&5) 2>&5
 
19425
  ac_status=$?
 
19426
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19427
  (exit $ac_status); }
 
19428
 
 
19429
echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
 
19430
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
 
19431
if test "${ac_cv_c_compiler_gnu+set}" = set; then
 
19432
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
19433
else
 
19434
  cat >conftest.$ac_ext <<_ACEOF
 
19435
/* confdefs.h.  */
 
19436
_ACEOF
 
19437
cat confdefs.h >>conftest.$ac_ext
 
19438
cat >>conftest.$ac_ext <<_ACEOF
 
19439
/* end confdefs.h.  */
 
19440
 
 
19441
int
 
19442
main ()
 
19443
{
 
19444
#ifndef __GNUC__
 
19445
       choke me
 
19446
#endif
 
19447
 
 
19448
  ;
 
19449
  return 0;
 
19450
}
 
19451
_ACEOF
 
19452
rm -f conftest.$ac_objext
 
19453
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
19454
  (eval $ac_compile) 2>conftest.er1
 
19455
  ac_status=$?
 
19456
  grep -v '^ *+' conftest.er1 >conftest.err
 
19457
  rm -f conftest.er1
 
19458
  cat conftest.err >&5
 
19459
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19460
  (exit $ac_status); } &&
 
19461
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
19462
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19463
  (eval $ac_try) 2>&5
 
19464
  ac_status=$?
 
19465
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19466
  (exit $ac_status); }; } &&
 
19467
         { ac_try='test -s conftest.$ac_objext'
 
19468
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19469
  (eval $ac_try) 2>&5
 
19470
  ac_status=$?
 
19471
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19472
  (exit $ac_status); }; }; then
 
19473
  ac_compiler_gnu=yes
 
19474
else
 
19475
  echo "$as_me: failed program was:" >&5
 
19476
sed 's/^/| /' conftest.$ac_ext >&5
 
19477
 
 
19478
ac_compiler_gnu=no
 
19479
fi
 
19480
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
19481
ac_cv_c_compiler_gnu=$ac_compiler_gnu
 
19482
 
 
19483
fi
 
19484
echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
 
19485
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
 
19486
GCC=`test $ac_compiler_gnu = yes && echo yes`
 
19487
ac_test_CFLAGS=${CFLAGS+set}
 
19488
ac_save_CFLAGS=$CFLAGS
 
19489
CFLAGS="-g"
 
19490
echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
 
19491
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
 
19492
if test "${ac_cv_prog_cc_g+set}" = set; then
 
19493
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
19494
else
 
19495
  cat >conftest.$ac_ext <<_ACEOF
 
19496
/* confdefs.h.  */
 
19497
_ACEOF
 
19498
cat confdefs.h >>conftest.$ac_ext
 
19499
cat >>conftest.$ac_ext <<_ACEOF
 
19500
/* end confdefs.h.  */
 
19501
 
 
19502
int
 
19503
main ()
 
19504
{
 
19505
 
 
19506
  ;
 
19507
  return 0;
 
19508
}
 
19509
_ACEOF
 
19510
rm -f conftest.$ac_objext
 
19511
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
19512
  (eval $ac_compile) 2>conftest.er1
 
19513
  ac_status=$?
 
19514
  grep -v '^ *+' conftest.er1 >conftest.err
 
19515
  rm -f conftest.er1
 
19516
  cat conftest.err >&5
 
19517
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19518
  (exit $ac_status); } &&
 
19519
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
19520
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19521
  (eval $ac_try) 2>&5
 
19522
  ac_status=$?
 
19523
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19524
  (exit $ac_status); }; } &&
 
19525
         { ac_try='test -s conftest.$ac_objext'
 
19526
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19527
  (eval $ac_try) 2>&5
 
19528
  ac_status=$?
 
19529
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19530
  (exit $ac_status); }; }; then
 
19531
  ac_cv_prog_cc_g=yes
 
19532
else
 
19533
  echo "$as_me: failed program was:" >&5
 
19534
sed 's/^/| /' conftest.$ac_ext >&5
 
19535
 
 
19536
ac_cv_prog_cc_g=no
 
19537
fi
 
19538
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
19539
fi
 
19540
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
 
19541
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
 
19542
if test "$ac_test_CFLAGS" = set; then
 
19543
  CFLAGS=$ac_save_CFLAGS
 
19544
elif test $ac_cv_prog_cc_g = yes; then
 
19545
  if test "$GCC" = yes; then
 
19546
    CFLAGS="-g -O2"
 
19547
  else
 
19548
    CFLAGS="-g"
 
19549
  fi
 
19550
else
 
19551
  if test "$GCC" = yes; then
 
19552
    CFLAGS="-O2"
 
19553
  else
 
19554
    CFLAGS=
 
19555
  fi
 
19556
fi
 
19557
echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
 
19558
echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
 
19559
if test "${ac_cv_prog_cc_stdc+set}" = set; then
 
19560
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
19561
else
 
19562
  ac_cv_prog_cc_stdc=no
 
19563
ac_save_CC=$CC
 
19564
cat >conftest.$ac_ext <<_ACEOF
 
19565
/* confdefs.h.  */
 
19566
_ACEOF
 
19567
cat confdefs.h >>conftest.$ac_ext
 
19568
cat >>conftest.$ac_ext <<_ACEOF
 
19569
/* end confdefs.h.  */
 
19570
#include <stdarg.h>
 
19571
#include <stdio.h>
 
19572
#include <sys/types.h>
 
19573
#include <sys/stat.h>
 
19574
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
 
19575
struct buf { int x; };
 
19576
FILE * (*rcsopen) (struct buf *, struct stat *, int);
 
19577
static char *e (p, i)
 
19578
     char **p;
 
19579
     int i;
 
19580
{
 
19581
  return p[i];
 
19582
}
 
19583
static char *f (char * (*g) (char **, int), char **p, ...)
 
19584
{
 
19585
  char *s;
 
19586
  va_list v;
 
19587
  va_start (v,p);
 
19588
  s = g (p, va_arg (v,int));
 
19589
  va_end (v);
 
19590
  return s;
 
19591
}
 
19592
 
 
19593
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
 
19594
   function prototypes and stuff, but not '\xHH' hex character constants.
 
19595
   These don't provoke an error unfortunately, instead are silently treated
 
19596
   as 'x'.  The following induces an error, until -std1 is added to get
 
19597
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
 
19598
   array size at least.  It's necessary to write '\x00'==0 to get something
 
19599
   that's true only with -std1.  */
 
19600
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
 
19601
 
 
19602
int test (int i, double x);
 
19603
struct s1 {int (*f) (int a);};
 
19604
struct s2 {int (*f) (double a);};
 
19605
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
 
19606
int argc;
 
19607
char **argv;
 
19608
int
 
19609
main ()
 
19610
{
 
19611
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
 
19612
  ;
 
19613
  return 0;
 
19614
}
 
19615
_ACEOF
 
19616
# Don't try gcc -ansi; that turns off useful extensions and
 
19617
# breaks some systems' header files.
 
19618
# AIX                   -qlanglvl=ansi
 
19619
# Ultrix and OSF/1      -std1
 
19620
# HP-UX 10.20 and later -Ae
 
19621
# HP-UX older versions  -Aa -D_HPUX_SOURCE
 
19622
# SVR4                  -Xc -D__EXTENSIONS__
 
19623
for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
 
19624
do
 
19625
  CC="$ac_save_CC $ac_arg"
 
19626
  rm -f conftest.$ac_objext
 
19627
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
19628
  (eval $ac_compile) 2>conftest.er1
 
19629
  ac_status=$?
 
19630
  grep -v '^ *+' conftest.er1 >conftest.err
 
19631
  rm -f conftest.er1
 
19632
  cat conftest.err >&5
 
19633
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19634
  (exit $ac_status); } &&
 
19635
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
19636
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19637
  (eval $ac_try) 2>&5
 
19638
  ac_status=$?
 
19639
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19640
  (exit $ac_status); }; } &&
 
19641
         { ac_try='test -s conftest.$ac_objext'
 
19642
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19643
  (eval $ac_try) 2>&5
 
19644
  ac_status=$?
 
19645
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19646
  (exit $ac_status); }; }; then
 
19647
  ac_cv_prog_cc_stdc=$ac_arg
 
19648
break
 
19649
else
 
19650
  echo "$as_me: failed program was:" >&5
 
19651
sed 's/^/| /' conftest.$ac_ext >&5
 
19652
 
 
19653
fi
 
19654
rm -f conftest.err conftest.$ac_objext
 
19655
done
 
19656
rm -f conftest.$ac_ext conftest.$ac_objext
 
19657
CC=$ac_save_CC
 
19658
 
 
19659
fi
 
19660
 
 
19661
case "x$ac_cv_prog_cc_stdc" in
 
19662
  x|xno)
 
19663
    echo "$as_me:$LINENO: result: none needed" >&5
 
19664
echo "${ECHO_T}none needed" >&6 ;;
 
19665
  *)
 
19666
    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
 
19667
echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
 
19668
    CC="$CC $ac_cv_prog_cc_stdc" ;;
 
19669
esac
 
19670
 
 
19671
# Some people use a C++ compiler to compile C.  Since we use `exit',
 
19672
# in C++ we need to declare it.  In case someone uses the same compiler
 
19673
# for both compiling C and C++ we need to have the C++ compiler decide
 
19674
# the declaration of exit, since it's the most demanding environment.
 
19675
cat >conftest.$ac_ext <<_ACEOF
 
19676
#ifndef __cplusplus
 
19677
  choke me
 
19678
#endif
 
19679
_ACEOF
 
19680
rm -f conftest.$ac_objext
 
19681
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
19682
  (eval $ac_compile) 2>conftest.er1
 
19683
  ac_status=$?
 
19684
  grep -v '^ *+' conftest.er1 >conftest.err
 
19685
  rm -f conftest.er1
 
19686
  cat conftest.err >&5
 
19687
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19688
  (exit $ac_status); } &&
 
19689
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
19690
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19691
  (eval $ac_try) 2>&5
 
19692
  ac_status=$?
 
19693
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19694
  (exit $ac_status); }; } &&
 
19695
         { ac_try='test -s conftest.$ac_objext'
 
19696
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19697
  (eval $ac_try) 2>&5
 
19698
  ac_status=$?
 
19699
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19700
  (exit $ac_status); }; }; then
 
19701
  for ac_declaration in \
 
19702
   '' \
 
19703
   'extern "C" void std::exit (int) throw (); using std::exit;' \
 
19704
   'extern "C" void std::exit (int); using std::exit;' \
 
19705
   'extern "C" void exit (int) throw ();' \
 
19706
   'extern "C" void exit (int);' \
 
19707
   'void exit (int);'
 
19708
do
 
19709
  cat >conftest.$ac_ext <<_ACEOF
 
19710
/* confdefs.h.  */
 
19711
_ACEOF
 
19712
cat confdefs.h >>conftest.$ac_ext
 
19713
cat >>conftest.$ac_ext <<_ACEOF
 
19714
/* end confdefs.h.  */
 
19715
$ac_declaration
 
19716
#include <stdlib.h>
 
19717
int
 
19718
main ()
 
19719
{
 
19720
exit (42);
 
19721
  ;
 
19722
  return 0;
 
19723
}
 
19724
_ACEOF
 
19725
rm -f conftest.$ac_objext
 
19726
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
19727
  (eval $ac_compile) 2>conftest.er1
 
19728
  ac_status=$?
 
19729
  grep -v '^ *+' conftest.er1 >conftest.err
 
19730
  rm -f conftest.er1
 
19731
  cat conftest.err >&5
 
19732
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19733
  (exit $ac_status); } &&
 
19734
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
19735
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19736
  (eval $ac_try) 2>&5
 
19737
  ac_status=$?
 
19738
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19739
  (exit $ac_status); }; } &&
 
19740
         { ac_try='test -s conftest.$ac_objext'
 
19741
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19742
  (eval $ac_try) 2>&5
 
19743
  ac_status=$?
 
19744
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19745
  (exit $ac_status); }; }; then
 
19746
  :
 
19747
else
 
19748
  echo "$as_me: failed program was:" >&5
 
19749
sed 's/^/| /' conftest.$ac_ext >&5
 
19750
 
 
19751
continue
 
19752
fi
 
19753
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
19754
  cat >conftest.$ac_ext <<_ACEOF
 
19755
/* confdefs.h.  */
 
19756
_ACEOF
 
19757
cat confdefs.h >>conftest.$ac_ext
 
19758
cat >>conftest.$ac_ext <<_ACEOF
 
19759
/* end confdefs.h.  */
 
19760
$ac_declaration
 
19761
int
 
19762
main ()
 
19763
{
 
19764
exit (42);
 
19765
  ;
 
19766
  return 0;
 
19767
}
 
19768
_ACEOF
 
19769
rm -f conftest.$ac_objext
 
19770
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
19771
  (eval $ac_compile) 2>conftest.er1
 
19772
  ac_status=$?
 
19773
  grep -v '^ *+' conftest.er1 >conftest.err
 
19774
  rm -f conftest.er1
 
19775
  cat conftest.err >&5
 
19776
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19777
  (exit $ac_status); } &&
 
19778
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
19779
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19780
  (eval $ac_try) 2>&5
 
19781
  ac_status=$?
 
19782
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19783
  (exit $ac_status); }; } &&
 
19784
         { ac_try='test -s conftest.$ac_objext'
 
19785
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19786
  (eval $ac_try) 2>&5
 
19787
  ac_status=$?
 
19788
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19789
  (exit $ac_status); }; }; then
 
19790
  break
 
19791
else
 
19792
  echo "$as_me: failed program was:" >&5
 
19793
sed 's/^/| /' conftest.$ac_ext >&5
 
19794
 
 
19795
fi
 
19796
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
19797
done
 
19798
rm -f conftest*
 
19799
if test -n "$ac_declaration"; then
 
19800
  echo '#ifdef __cplusplus' >>confdefs.h
 
19801
  echo $ac_declaration      >>confdefs.h
 
19802
  echo '#endif'             >>confdefs.h
 
19803
fi
 
19804
 
 
19805
else
 
19806
  echo "$as_me: failed program was:" >&5
 
19807
sed 's/^/| /' conftest.$ac_ext >&5
 
19808
 
 
19809
fi
 
19810
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
19811
ac_ext=c
 
19812
ac_cpp='$CPP $CPPFLAGS'
 
19813
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
19814
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
19815
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
19816
 
 
19817
depcc="$CC"   am_compiler_list=
 
19818
 
 
19819
echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
 
19820
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
 
19821
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
 
19822
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
19823
else
 
19824
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
 
19825
  # We make a subdir and do the tests there.  Otherwise we can end up
 
19826
  # making bogus files that we don't know about and never remove.  For
 
19827
  # instance it was reported that on HP-UX the gcc test will end up
 
19828
  # making a dummy file named `D' -- because `-MD' means `put the output
 
19829
  # in D'.
 
19830
  mkdir conftest.dir
 
19831
  # Copy depcomp to subdir because otherwise we won't find it if we're
 
19832
  # using a relative directory.
 
19833
  cp "$am_depcomp" conftest.dir
 
19834
  cd conftest.dir
 
19835
  # We will build objects and dependencies in a subdirectory because
 
19836
  # it helps to detect inapplicable dependency modes.  For instance
 
19837
  # both Tru64's cc and ICC support -MD to output dependencies as a
 
19838
  # side effect of compilation, but ICC will put the dependencies in
 
19839
  # the current directory while Tru64 will put them in the object
 
19840
  # directory.
 
19841
  mkdir sub
 
19842
 
 
19843
  am_cv_CC_dependencies_compiler_type=none
 
19844
  if test "$am_compiler_list" = ""; then
 
19845
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
 
19846
  fi
 
19847
  for depmode in $am_compiler_list; do
 
19848
    # Setup a source with many dependencies, because some compilers
 
19849
    # like to wrap large dependency lists on column 80 (with \), and
 
19850
    # we should not choose a depcomp mode which is confused by this.
 
19851
    #
 
19852
    # We need to recreate these files for each test, as the compiler may
 
19853
    # overwrite some of them when testing with obscure command lines.
 
19854
    # This happens at least with the AIX C compiler.
 
19855
    : > sub/conftest.c
 
19856
    for i in 1 2 3 4 5 6; do
 
19857
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
 
19858
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
 
19859
      # Solaris 8's {/usr,}/bin/sh.
 
19860
      touch sub/conftst$i.h
 
19861
    done
 
19862
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
 
19863
 
 
19864
    case $depmode in
 
19865
    nosideeffect)
 
19866
      # after this tag, mechanisms are not by side-effect, so they'll
 
19867
      # only be used when explicitly requested
 
19868
      if test "x$enable_dependency_tracking" = xyes; then
 
19869
        continue
 
19870
      else
 
19871
        break
 
19872
      fi
 
19873
      ;;
 
19874
    none) break ;;
 
19875
    esac
 
19876
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
 
19877
    # mode.  It turns out that the SunPro C++ compiler does not properly
 
19878
    # handle `-M -o', and we need to detect this.
 
19879
    if depmode=$depmode \
 
19880
       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
 
19881
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
 
19882
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
 
19883
         >/dev/null 2>conftest.err &&
 
19884
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
 
19885
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
 
19886
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
 
19887
      # icc doesn't choke on unknown options, it will just issue warnings
 
19888
      # or remarks (even with -Werror).  So we grep stderr for any message
 
19889
      # that says an option was ignored or not supported.
 
19890
      # When given -MP, icc 7.0 and 7.1 complain thusly:
 
19891
      #   icc: Command line warning: ignoring option '-M'; no argument required
 
19892
      # The diagnosis changed in icc 8.0:
 
19893
      #   icc: Command line remark: option '-MP' not supported
 
19894
      if (grep 'ignoring option' conftest.err ||
 
19895
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
 
19896
        am_cv_CC_dependencies_compiler_type=$depmode
 
19897
        break
 
19898
      fi
 
19899
    fi
 
19900
  done
 
19901
 
 
19902
  cd ..
 
19903
  rm -rf conftest.dir
 
19904
else
 
19905
  am_cv_CC_dependencies_compiler_type=none
 
19906
fi
 
19907
 
 
19908
fi
 
19909
echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
 
19910
echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
 
19911
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
 
19912
 
 
19913
 
 
19914
 
 
19915
if
 
19916
  test "x$enable_dependency_tracking" != xno \
 
19917
  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
 
19918
  am__fastdepCC_TRUE=
 
19919
  am__fastdepCC_FALSE='#'
 
19920
else
 
19921
  am__fastdepCC_TRUE='#'
 
19922
  am__fastdepCC_FALSE=
 
19923
fi
 
19924
 
 
19925
 
2357
19926
 
2358
19927
for ac_prog in indent gindent
2359
19928
do
2399
19968
 
2400
19969
 
2401
19970
# check how to transform the name of the installed program:
2402
 
test "$program_prefix" != NONE &&
2403
 
  program_transform_name="s,^,$program_prefix,;$program_transform_name"
2404
 
# Use a double $ so make ignores it.
2405
 
test "$program_suffix" != NONE &&
2406
 
  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
2407
 
# Double any \ or $.  echo might interpret backslashes.
2408
 
# By default was `s,x,x', remove it if useless.
2409
 
cat <<\_ACEOF >conftest.sed
2410
 
s/[\\$]/&&/g;s/;s,x,x,$//
2411
 
_ACEOF
2412
 
program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2413
 
rm conftest.sed
2414
 
 
2415
19971
 
2416
19972
# Check whether --enable-debug or --disable-debug was given.
2417
19973
if test "${enable_debug+set}" = set; then
2429
19985
 
2430
19986
fi
2431
19987
 
2432
 
# Make sure we can run config.sub.
2433
 
$ac_config_sub sun4 >/dev/null 2>&1 ||
2434
 
  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
2435
 
echo "$as_me: error: cannot run $ac_config_sub" >&2;}
2436
 
   { (exit 1); exit 1; }; }
2437
 
 
2438
 
echo "$as_me:$LINENO: checking build system type" >&5
2439
 
echo $ECHO_N "checking build system type... $ECHO_C" >&6
2440
 
if test "${ac_cv_build+set}" = set; then
2441
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
2442
 
else
2443
 
  ac_cv_build_alias=$build_alias
2444
 
test -z "$ac_cv_build_alias" &&
2445
 
  ac_cv_build_alias=`$ac_config_guess`
2446
 
test -z "$ac_cv_build_alias" &&
2447
 
  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2448
 
echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2449
 
   { (exit 1); exit 1; }; }
2450
 
ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
2451
 
  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
2452
 
echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
2453
 
   { (exit 1); exit 1; }; }
2454
 
 
2455
 
fi
2456
 
echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2457
 
echo "${ECHO_T}$ac_cv_build" >&6
2458
 
build=$ac_cv_build
2459
 
build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2460
 
build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2461
 
build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2462
 
 
2463
 
 
2464
 
echo "$as_me:$LINENO: checking host system type" >&5
2465
 
echo $ECHO_N "checking host system type... $ECHO_C" >&6
2466
 
if test "${ac_cv_host+set}" = set; then
2467
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
2468
 
else
2469
 
  ac_cv_host_alias=$host_alias
2470
 
test -z "$ac_cv_host_alias" &&
2471
 
  ac_cv_host_alias=$ac_cv_build_alias
2472
 
ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
2473
 
  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
2474
 
echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
2475
 
   { (exit 1); exit 1; }; }
2476
 
 
2477
 
fi
2478
 
echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2479
 
echo "${ECHO_T}$ac_cv_host" >&6
2480
 
host=$ac_cv_host
2481
 
host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2482
 
host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2483
 
host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2484
 
 
2485
 
 
2486
 
 
2487
19988
# Checks for header files.
2488
 
 
2489
 
ac_ext=c
2490
 
ac_cpp='$CPP $CPPFLAGS'
2491
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2492
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2493
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2494
 
echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2495
 
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2496
 
# On Suns, sometimes $CPP names a directory.
2497
 
if test -n "$CPP" && test -d "$CPP"; then
2498
 
  CPP=
2499
 
fi
2500
 
if test -z "$CPP"; then
2501
 
  if test "${ac_cv_prog_CPP+set}" = set; then
2502
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
2503
 
else
2504
 
      # Double quotes because CPP needs to be expanded
2505
 
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2506
 
    do
2507
 
      ac_preproc_ok=false
2508
 
for ac_c_preproc_warn_flag in '' yes
2509
 
do
2510
 
  # Use a header file that comes with gcc, so configuring glibc
2511
 
  # with a fresh cross-compiler works.
2512
 
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2513
 
  # <limits.h> exists even on freestanding compilers.
2514
 
  # On the NeXT, cc -E runs the code through the compiler's parser,
2515
 
  # not just through cpp. "Syntax error" is here to catch this case.
2516
 
  cat >conftest.$ac_ext <<_ACEOF
2517
 
#line $LINENO "configure"
2518
 
/* confdefs.h.  */
2519
 
_ACEOF
2520
 
cat confdefs.h >>conftest.$ac_ext
2521
 
cat >>conftest.$ac_ext <<_ACEOF
2522
 
/* end confdefs.h.  */
2523
 
#ifdef __STDC__
2524
 
# include <limits.h>
2525
 
#else
2526
 
# include <assert.h>
2527
 
#endif
2528
 
                     Syntax error
2529
 
_ACEOF
2530
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2531
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2532
 
  ac_status=$?
2533
 
  grep -v '^ *+' conftest.er1 >conftest.err
2534
 
  rm -f conftest.er1
2535
 
  cat conftest.err >&5
2536
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2537
 
  (exit $ac_status); } >/dev/null; then
2538
 
  if test -s conftest.err; then
2539
 
    ac_cpp_err=$ac_c_preproc_warn_flag
2540
 
  else
2541
 
    ac_cpp_err=
2542
 
  fi
2543
 
else
2544
 
  ac_cpp_err=yes
2545
 
fi
2546
 
if test -z "$ac_cpp_err"; then
2547
 
  :
2548
 
else
2549
 
  echo "$as_me: failed program was:" >&5
2550
 
sed 's/^/| /' conftest.$ac_ext >&5
2551
 
 
2552
 
  # Broken: fails on valid input.
2553
 
continue
2554
 
fi
2555
 
rm -f conftest.err conftest.$ac_ext
2556
 
 
2557
 
  # OK, works on sane cases.  Now check whether non-existent headers
2558
 
  # can be detected and how.
2559
 
  cat >conftest.$ac_ext <<_ACEOF
2560
 
#line $LINENO "configure"
2561
 
/* confdefs.h.  */
2562
 
_ACEOF
2563
 
cat confdefs.h >>conftest.$ac_ext
2564
 
cat >>conftest.$ac_ext <<_ACEOF
2565
 
/* end confdefs.h.  */
2566
 
#include <ac_nonexistent.h>
2567
 
_ACEOF
2568
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2569
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2570
 
  ac_status=$?
2571
 
  grep -v '^ *+' conftest.er1 >conftest.err
2572
 
  rm -f conftest.er1
2573
 
  cat conftest.err >&5
2574
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2575
 
  (exit $ac_status); } >/dev/null; then
2576
 
  if test -s conftest.err; then
2577
 
    ac_cpp_err=$ac_c_preproc_warn_flag
2578
 
  else
2579
 
    ac_cpp_err=
2580
 
  fi
2581
 
else
2582
 
  ac_cpp_err=yes
2583
 
fi
2584
 
if test -z "$ac_cpp_err"; then
2585
 
  # Broken: success on invalid input.
2586
 
continue
2587
 
else
2588
 
  echo "$as_me: failed program was:" >&5
2589
 
sed 's/^/| /' conftest.$ac_ext >&5
2590
 
 
2591
 
  # Passes both tests.
2592
 
ac_preproc_ok=:
2593
 
break
2594
 
fi
2595
 
rm -f conftest.err conftest.$ac_ext
2596
 
 
2597
 
done
2598
 
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2599
 
rm -f conftest.err conftest.$ac_ext
2600
 
if $ac_preproc_ok; then
2601
 
  break
2602
 
fi
2603
 
 
2604
 
    done
2605
 
    ac_cv_prog_CPP=$CPP
2606
 
 
2607
 
fi
2608
 
  CPP=$ac_cv_prog_CPP
2609
 
else
2610
 
  ac_cv_prog_CPP=$CPP
2611
 
fi
2612
 
echo "$as_me:$LINENO: result: $CPP" >&5
2613
 
echo "${ECHO_T}$CPP" >&6
2614
 
ac_preproc_ok=false
2615
 
for ac_c_preproc_warn_flag in '' yes
2616
 
do
2617
 
  # Use a header file that comes with gcc, so configuring glibc
2618
 
  # with a fresh cross-compiler works.
2619
 
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2620
 
  # <limits.h> exists even on freestanding compilers.
2621
 
  # On the NeXT, cc -E runs the code through the compiler's parser,
2622
 
  # not just through cpp. "Syntax error" is here to catch this case.
2623
 
  cat >conftest.$ac_ext <<_ACEOF
2624
 
#line $LINENO "configure"
2625
 
/* confdefs.h.  */
2626
 
_ACEOF
2627
 
cat confdefs.h >>conftest.$ac_ext
2628
 
cat >>conftest.$ac_ext <<_ACEOF
2629
 
/* end confdefs.h.  */
2630
 
#ifdef __STDC__
2631
 
# include <limits.h>
2632
 
#else
2633
 
# include <assert.h>
2634
 
#endif
2635
 
                     Syntax error
2636
 
_ACEOF
2637
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2638
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2639
 
  ac_status=$?
2640
 
  grep -v '^ *+' conftest.er1 >conftest.err
2641
 
  rm -f conftest.er1
2642
 
  cat conftest.err >&5
2643
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2644
 
  (exit $ac_status); } >/dev/null; then
2645
 
  if test -s conftest.err; then
2646
 
    ac_cpp_err=$ac_c_preproc_warn_flag
2647
 
  else
2648
 
    ac_cpp_err=
2649
 
  fi
2650
 
else
2651
 
  ac_cpp_err=yes
2652
 
fi
2653
 
if test -z "$ac_cpp_err"; then
2654
 
  :
2655
 
else
2656
 
  echo "$as_me: failed program was:" >&5
2657
 
sed 's/^/| /' conftest.$ac_ext >&5
2658
 
 
2659
 
  # Broken: fails on valid input.
2660
 
continue
2661
 
fi
2662
 
rm -f conftest.err conftest.$ac_ext
2663
 
 
2664
 
  # OK, works on sane cases.  Now check whether non-existent headers
2665
 
  # can be detected and how.
2666
 
  cat >conftest.$ac_ext <<_ACEOF
2667
 
#line $LINENO "configure"
2668
 
/* confdefs.h.  */
2669
 
_ACEOF
2670
 
cat confdefs.h >>conftest.$ac_ext
2671
 
cat >>conftest.$ac_ext <<_ACEOF
2672
 
/* end confdefs.h.  */
2673
 
#include <ac_nonexistent.h>
2674
 
_ACEOF
2675
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2676
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2677
 
  ac_status=$?
2678
 
  grep -v '^ *+' conftest.er1 >conftest.err
2679
 
  rm -f conftest.er1
2680
 
  cat conftest.err >&5
2681
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2682
 
  (exit $ac_status); } >/dev/null; then
2683
 
  if test -s conftest.err; then
2684
 
    ac_cpp_err=$ac_c_preproc_warn_flag
2685
 
  else
2686
 
    ac_cpp_err=
2687
 
  fi
2688
 
else
2689
 
  ac_cpp_err=yes
2690
 
fi
2691
 
if test -z "$ac_cpp_err"; then
2692
 
  # Broken: success on invalid input.
2693
 
continue
2694
 
else
2695
 
  echo "$as_me: failed program was:" >&5
2696
 
sed 's/^/| /' conftest.$ac_ext >&5
2697
 
 
2698
 
  # Passes both tests.
2699
 
ac_preproc_ok=:
2700
 
break
2701
 
fi
2702
 
rm -f conftest.err conftest.$ac_ext
2703
 
 
2704
 
done
2705
 
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2706
 
rm -f conftest.err conftest.$ac_ext
2707
 
if $ac_preproc_ok; then
2708
 
  :
2709
 
else
2710
 
  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2711
 
See \`config.log' for more details." >&5
2712
 
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2713
 
See \`config.log' for more details." >&2;}
2714
 
   { (exit 1); exit 1; }; }
2715
 
fi
2716
 
 
2717
 
ac_ext=c
2718
 
ac_cpp='$CPP $CPPFLAGS'
2719
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2720
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2721
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2722
 
 
2723
 
 
2724
 
echo "$as_me:$LINENO: checking for egrep" >&5
2725
 
echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2726
 
if test "${ac_cv_prog_egrep+set}" = set; then
2727
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
2728
 
else
2729
 
  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2730
 
    then ac_cv_prog_egrep='grep -E'
2731
 
    else ac_cv_prog_egrep='egrep'
2732
 
    fi
2733
 
fi
2734
 
echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2735
 
echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2736
 
 EGREP=$ac_cv_prog_egrep
2737
 
 
2738
 
 
2739
19989
echo "$as_me:$LINENO: checking for ANSI C header files" >&5
2740
19990
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2741
19991
if test "${ac_cv_header_stdc+set}" = set; then
2742
19992
  echo $ECHO_N "(cached) $ECHO_C" >&6
2743
19993
else
2744
19994
  cat >conftest.$ac_ext <<_ACEOF
2745
 
#line $LINENO "configure"
2746
19995
/* confdefs.h.  */
2747
19996
_ACEOF
2748
19997
cat confdefs.h >>conftest.$ac_ext
2763
20012
_ACEOF
2764
20013
rm -f conftest.$ac_objext
2765
20014
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2766
 
  (eval $ac_compile) 2>&5
 
20015
  (eval $ac_compile) 2>conftest.er1
2767
20016
  ac_status=$?
 
20017
  grep -v '^ *+' conftest.er1 >conftest.err
 
20018
  rm -f conftest.er1
 
20019
  cat conftest.err >&5
2768
20020
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2769
20021
  (exit $ac_status); } &&
2770
 
         { ac_try='test -s conftest.$ac_objext'
 
20022
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
20023
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20024
  (eval $ac_try) 2>&5
 
20025
  ac_status=$?
 
20026
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20027
  (exit $ac_status); }; } &&
 
20028
         { ac_try='test -s conftest.$ac_objext'
2771
20029
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2772
20030
  (eval $ac_try) 2>&5
2773
20031
  ac_status=$?
2780
20038
 
2781
20039
ac_cv_header_stdc=no
2782
20040
fi
2783
 
rm -f conftest.$ac_objext conftest.$ac_ext
 
20041
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2784
20042
 
2785
20043
if test $ac_cv_header_stdc = yes; then
2786
20044
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2787
20045
  cat >conftest.$ac_ext <<_ACEOF
2788
 
#line $LINENO "configure"
2789
20046
/* confdefs.h.  */
2790
20047
_ACEOF
2791
20048
cat confdefs.h >>conftest.$ac_ext
2807
20064
if test $ac_cv_header_stdc = yes; then
2808
20065
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2809
20066
  cat >conftest.$ac_ext <<_ACEOF
2810
 
#line $LINENO "configure"
2811
20067
/* confdefs.h.  */
2812
20068
_ACEOF
2813
20069
cat confdefs.h >>conftest.$ac_ext
2832
20088
  :
2833
20089
else
2834
20090
  cat >conftest.$ac_ext <<_ACEOF
2835
 
#line $LINENO "configure"
2836
20091
/* confdefs.h.  */
2837
20092
_ACEOF
2838
20093
cat confdefs.h >>conftest.$ac_ext
2844
20099
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2845
20100
#else
2846
20101
# define ISLOWER(c) \
2847
 
                   (('a' <= (c) && (c) <= 'i') \
2848
 
                     || ('j' <= (c) && (c) <= 'r') \
2849
 
                     || ('s' <= (c) && (c) <= 'z'))
 
20102
                   (('a' <= (c) && (c) <= 'i') \
 
20103
                     || ('j' <= (c) && (c) <= 'r') \
 
20104
                     || ('s' <= (c) && (c) <= 'z'))
2850
20105
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
2851
20106
#endif
2852
20107
 
2857
20112
  int i;
2858
20113
  for (i = 0; i < 256; i++)
2859
20114
    if (XOR (islower (i), ISLOWER (i))
2860
 
        || toupper (i) != TOUPPER (i))
 
20115
        || toupper (i) != TOUPPER (i))
2861
20116
      exit(2);
2862
20117
  exit (0);
2863
20118
}
2882
20137
( exit $ac_status )
2883
20138
ac_cv_header_stdc=no
2884
20139
fi
2885
 
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
20140
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2886
20141
fi
2887
20142
fi
2888
20143
fi
2992
20247
  ac_check_lib_save_LIBS=$LIBS
2993
20248
LIBS="-lm  $LIBS"
2994
20249
cat >conftest.$ac_ext <<_ACEOF
2995
 
#line $LINENO "configure"
2996
20250
/* confdefs.h.  */
2997
20251
_ACEOF
2998
20252
cat confdefs.h >>conftest.$ac_ext
3016
20270
_ACEOF
3017
20271
rm -f conftest.$ac_objext conftest$ac_exeext
3018
20272
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3019
 
  (eval $ac_link) 2>&5
 
20273
  (eval $ac_link) 2>conftest.er1
3020
20274
  ac_status=$?
 
20275
  grep -v '^ *+' conftest.er1 >conftest.err
 
20276
  rm -f conftest.er1
 
20277
  cat conftest.err >&5
3021
20278
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3022
20279
  (exit $ac_status); } &&
3023
 
         { ac_try='test -s conftest$ac_exeext'
 
20280
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
20281
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20282
  (eval $ac_try) 2>&5
 
20283
  ac_status=$?
 
20284
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20285
  (exit $ac_status); }; } &&
 
20286
         { ac_try='test -s conftest$ac_exeext'
3024
20287
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3025
20288
  (eval $ac_try) 2>&5
3026
20289
  ac_status=$?
3033
20296
 
3034
20297
ac_cv_lib_m_sqrt=no
3035
20298
fi
3036
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
20299
rm -f conftest.err conftest.$ac_objext \
 
20300
      conftest$ac_exeext conftest.$ac_ext
3037
20301
LIBS=$ac_check_lib_save_LIBS
3038
20302
fi
3039
20303
echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
3056
20320
  ac_check_lib_save_LIBS=$LIBS
3057
20321
LIBS="-lreadline  $LIBS"
3058
20322
cat >conftest.$ac_ext <<_ACEOF
3059
 
#line $LINENO "configure"
3060
20323
/* confdefs.h.  */
3061
20324
_ACEOF
3062
20325
cat confdefs.h >>conftest.$ac_ext
3080
20343
_ACEOF
3081
20344
rm -f conftest.$ac_objext conftest$ac_exeext
3082
20345
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3083
 
  (eval $ac_link) 2>&5
 
20346
  (eval $ac_link) 2>conftest.er1
3084
20347
  ac_status=$?
 
20348
  grep -v '^ *+' conftest.er1 >conftest.err
 
20349
  rm -f conftest.er1
 
20350
  cat conftest.err >&5
3085
20351
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3086
20352
  (exit $ac_status); } &&
3087
 
         { ac_try='test -s conftest$ac_exeext'
 
20353
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
20354
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20355
  (eval $ac_try) 2>&5
 
20356
  ac_status=$?
 
20357
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20358
  (exit $ac_status); }; } &&
 
20359
         { ac_try='test -s conftest$ac_exeext'
3088
20360
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3089
20361
  (eval $ac_try) 2>&5
3090
20362
  ac_status=$?
3097
20369
 
3098
20370
ac_cv_lib_readline_readline=no
3099
20371
fi
3100
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
20372
rm -f conftest.err conftest.$ac_objext \
 
20373
      conftest$ac_exeext conftest.$ac_ext
3101
20374
LIBS=$ac_check_lib_save_LIBS
3102
20375
fi
3103
20376
echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5
3120
20393
  ac_check_lib_save_LIBS=$LIBS
3121
20394
LIBS="-ldl  $LIBS"
3122
20395
cat >conftest.$ac_ext <<_ACEOF
3123
 
#line $LINENO "configure"
3124
20396
/* confdefs.h.  */
3125
20397
_ACEOF
3126
20398
cat confdefs.h >>conftest.$ac_ext
3144
20416
_ACEOF
3145
20417
rm -f conftest.$ac_objext conftest$ac_exeext
3146
20418
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3147
 
  (eval $ac_link) 2>&5
 
20419
  (eval $ac_link) 2>conftest.er1
3148
20420
  ac_status=$?
 
20421
  grep -v '^ *+' conftest.er1 >conftest.err
 
20422
  rm -f conftest.er1
 
20423
  cat conftest.err >&5
3149
20424
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3150
20425
  (exit $ac_status); } &&
3151
 
         { ac_try='test -s conftest$ac_exeext'
 
20426
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
20427
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20428
  (eval $ac_try) 2>&5
 
20429
  ac_status=$?
 
20430
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20431
  (exit $ac_status); }; } &&
 
20432
         { ac_try='test -s conftest$ac_exeext'
3152
20433
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3153
20434
  (eval $ac_try) 2>&5
3154
20435
  ac_status=$?
3161
20442
 
3162
20443
ac_cv_lib_dl_dlopen=no
3163
20444
fi
3164
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
20445
rm -f conftest.err conftest.$ac_objext \
 
20446
      conftest$ac_exeext conftest.$ac_ext
3165
20447
LIBS=$ac_check_lib_save_LIBS
3166
20448
fi
3167
20449
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
3184
20466
  ac_check_lib_save_LIBS=$LIBS
3185
20467
LIBS="-lguile  $LIBS"
3186
20468
cat >conftest.$ac_ext <<_ACEOF
3187
 
#line $LINENO "configure"
3188
20469
/* confdefs.h.  */
3189
20470
_ACEOF
3190
20471
cat confdefs.h >>conftest.$ac_ext
3208
20489
_ACEOF
3209
20490
rm -f conftest.$ac_objext conftest$ac_exeext
3210
20491
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3211
 
  (eval $ac_link) 2>&5
 
20492
  (eval $ac_link) 2>conftest.er1
3212
20493
  ac_status=$?
 
20494
  grep -v '^ *+' conftest.er1 >conftest.err
 
20495
  rm -f conftest.er1
 
20496
  cat conftest.err >&5
3213
20497
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3214
20498
  (exit $ac_status); } &&
3215
 
         { ac_try='test -s conftest$ac_exeext'
 
20499
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
20500
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20501
  (eval $ac_try) 2>&5
 
20502
  ac_status=$?
 
20503
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20504
  (exit $ac_status); }; } &&
 
20505
         { ac_try='test -s conftest$ac_exeext'
3216
20506
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3217
20507
  (eval $ac_try) 2>&5
3218
20508
  ac_status=$?
3225
20515
 
3226
20516
ac_cv_lib_guile_gh_eval_str=no
3227
20517
fi
3228
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
20518
rm -f conftest.err conftest.$ac_objext \
 
20519
      conftest$ac_exeext conftest.$ac_ext
3229
20520
LIBS=$ac_check_lib_save_LIBS
3230
20521
fi
3231
20522
echo "$as_me:$LINENO: result: $ac_cv_lib_guile_gh_eval_str" >&5
3244
20535
echo "$as_me:$LINENO: checking if linking to guile works" >&5
3245
20536
echo $ECHO_N "checking if linking to guile works... $ECHO_C" >&6
3246
20537
cat >conftest.$ac_ext <<_ACEOF
3247
 
#line $LINENO "configure"
3248
20538
/* confdefs.h.  */
3249
20539
_ACEOF
3250
20540
cat confdefs.h >>conftest.$ac_ext
3268
20558
_ACEOF
3269
20559
rm -f conftest.$ac_objext conftest$ac_exeext
3270
20560
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3271
 
  (eval $ac_link) 2>&5
 
20561
  (eval $ac_link) 2>conftest.er1
3272
20562
  ac_status=$?
 
20563
  grep -v '^ *+' conftest.er1 >conftest.err
 
20564
  rm -f conftest.er1
 
20565
  cat conftest.err >&5
3273
20566
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3274
20567
  (exit $ac_status); } &&
3275
 
         { ac_try='test -s conftest$ac_exeext'
 
20568
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
20569
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20570
  (eval $ac_try) 2>&5
 
20571
  ac_status=$?
 
20572
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20573
  (exit $ac_status); }; } &&
 
20574
         { ac_try='test -s conftest$ac_exeext'
3276
20575
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3277
20576
  (eval $ac_try) 2>&5
3278
20577
  ac_status=$?
3292
20591
   { (exit 1); exit 1; }; }
3293
20592
 
3294
20593
fi
3295
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
20594
rm -f conftest.err conftest.$ac_objext \
 
20595
      conftest$ac_exeext conftest.$ac_ext
3296
20596
 
3297
20597
###########################################################################
3298
20598
 
3302
20602
echo $ECHO_N "checking for gh_load... $ECHO_C" >&6
3303
20603
ok=yes
3304
20604
cat >conftest.$ac_ext <<_ACEOF
3305
 
#line $LINENO "configure"
3306
20605
/* confdefs.h.  */
3307
20606
_ACEOF
3308
20607
cat confdefs.h >>conftest.$ac_ext
3320
20619
_ACEOF
3321
20620
rm -f conftest.$ac_objext conftest$ac_exeext
3322
20621
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3323
 
  (eval $ac_link) 2>&5
 
20622
  (eval $ac_link) 2>conftest.er1
3324
20623
  ac_status=$?
 
20624
  grep -v '^ *+' conftest.er1 >conftest.err
 
20625
  rm -f conftest.er1
 
20626
  cat conftest.err >&5
3325
20627
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3326
20628
  (exit $ac_status); } &&
3327
 
         { ac_try='test -s conftest$ac_exeext'
 
20629
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
20630
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20631
  (eval $ac_try) 2>&5
 
20632
  ac_status=$?
 
20633
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20634
  (exit $ac_status); }; } &&
 
20635
         { ac_try='test -s conftest$ac_exeext'
3328
20636
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3329
20637
  (eval $ac_try) 2>&5
3330
20638
  ac_status=$?
3341
20649
 
3342
20650
ok=no
3343
20651
fi
3344
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
20652
rm -f conftest.err conftest.$ac_objext \
 
20653
      conftest$ac_exeext conftest.$ac_ext
3345
20654
echo "$as_me:$LINENO: result: $ok" >&5
3346
20655
echo "${ECHO_T}$ok" >&6
3347
20656
 
3349
20658
echo $ECHO_N "checking for gh_bool2scm... $ECHO_C" >&6
3350
20659
ok=yes
3351
20660
cat >conftest.$ac_ext <<_ACEOF
3352
 
#line $LINENO "configure"
3353
20661
/* confdefs.h.  */
3354
20662
_ACEOF
3355
20663
cat confdefs.h >>conftest.$ac_ext
3367
20675
_ACEOF
3368
20676
rm -f conftest.$ac_objext conftest$ac_exeext
3369
20677
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3370
 
  (eval $ac_link) 2>&5
 
20678
  (eval $ac_link) 2>conftest.er1
3371
20679
  ac_status=$?
 
20680
  grep -v '^ *+' conftest.er1 >conftest.err
 
20681
  rm -f conftest.er1
 
20682
  cat conftest.err >&5
3372
20683
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3373
20684
  (exit $ac_status); } &&
3374
 
         { ac_try='test -s conftest$ac_exeext'
 
20685
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
20686
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20687
  (eval $ac_try) 2>&5
 
20688
  ac_status=$?
 
20689
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20690
  (exit $ac_status); }; } &&
 
20691
         { ac_try='test -s conftest$ac_exeext'
3375
20692
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3376
20693
  (eval $ac_try) 2>&5
3377
20694
  ac_status=$?
3388
20705
 
3389
20706
ok=no
3390
20707
fi
3391
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
20708
rm -f conftest.err conftest.$ac_objext \
 
20709
      conftest$ac_exeext conftest.$ac_ext
3392
20710
echo "$as_me:$LINENO: result: $ok" >&5
3393
20711
echo "${ECHO_T}$ok" >&6
3394
20712
 
3396
20714
echo $ECHO_N "checking for gh_vector_ref... $ECHO_C" >&6
3397
20715
ok=yes
3398
20716
cat >conftest.$ac_ext <<_ACEOF
3399
 
#line $LINENO "configure"
3400
20717
/* confdefs.h.  */
3401
20718
_ACEOF
3402
20719
cat confdefs.h >>conftest.$ac_ext
3414
20731
_ACEOF
3415
20732
rm -f conftest.$ac_objext conftest$ac_exeext
3416
20733
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3417
 
  (eval $ac_link) 2>&5
 
20734
  (eval $ac_link) 2>conftest.er1
3418
20735
  ac_status=$?
 
20736
  grep -v '^ *+' conftest.er1 >conftest.err
 
20737
  rm -f conftest.er1
 
20738
  cat conftest.err >&5
3419
20739
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3420
20740
  (exit $ac_status); } &&
3421
 
         { ac_try='test -s conftest$ac_exeext'
 
20741
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
20742
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20743
  (eval $ac_try) 2>&5
 
20744
  ac_status=$?
 
20745
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20746
  (exit $ac_status); }; } &&
 
20747
         { ac_try='test -s conftest$ac_exeext'
3422
20748
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3423
20749
  (eval $ac_try) 2>&5
3424
20750
  ac_status=$?
3435
20761
 
3436
20762
ok=no
3437
20763
fi
3438
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
20764
rm -f conftest.err conftest.$ac_objext \
 
20765
      conftest$ac_exeext conftest.$ac_ext
3439
20766
echo "$as_me:$LINENO: result: $ok" >&5
3440
20767
echo "${ECHO_T}$ok" >&6
3441
20768
 
3443
20770
echo $ECHO_N "checking for gh_list_ref... $ECHO_C" >&6
3444
20771
ok=yes
3445
20772
cat >conftest.$ac_ext <<_ACEOF
3446
 
#line $LINENO "configure"
3447
20773
/* confdefs.h.  */
3448
20774
_ACEOF
3449
20775
cat confdefs.h >>conftest.$ac_ext
3461
20787
_ACEOF
3462
20788
rm -f conftest.$ac_objext conftest$ac_exeext
3463
20789
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3464
 
  (eval $ac_link) 2>&5
 
20790
  (eval $ac_link) 2>conftest.er1
3465
20791
  ac_status=$?
 
20792
  grep -v '^ *+' conftest.er1 >conftest.err
 
20793
  rm -f conftest.er1
 
20794
  cat conftest.err >&5
3466
20795
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3467
20796
  (exit $ac_status); } &&
3468
 
         { ac_try='test -s conftest$ac_exeext'
 
20797
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
20798
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20799
  (eval $ac_try) 2>&5
 
20800
  ac_status=$?
 
20801
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20802
  (exit $ac_status); }; } &&
 
20803
         { ac_try='test -s conftest$ac_exeext'
3469
20804
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3470
20805
  (eval $ac_try) 2>&5
3471
20806
  ac_status=$?
3482
20817
 
3483
20818
ok=no
3484
20819
fi
3485
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
20820
rm -f conftest.err conftest.$ac_objext \
 
20821
      conftest$ac_exeext conftest.$ac_ext
3486
20822
echo "$as_me:$LINENO: result: $ok" >&5
3487
20823
echo "${ECHO_T}$ok" >&6
3488
20824
 
3490
20826
echo $ECHO_N "checking for gh_length... $ECHO_C" >&6
3491
20827
ok=yes
3492
20828
cat >conftest.$ac_ext <<_ACEOF
3493
 
#line $LINENO "configure"
3494
20829
/* confdefs.h.  */
3495
20830
_ACEOF
3496
20831
cat confdefs.h >>conftest.$ac_ext
3508
20843
_ACEOF
3509
20844
rm -f conftest.$ac_objext conftest$ac_exeext
3510
20845
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3511
 
  (eval $ac_link) 2>&5
 
20846
  (eval $ac_link) 2>conftest.er1
3512
20847
  ac_status=$?
 
20848
  grep -v '^ *+' conftest.er1 >conftest.err
 
20849
  rm -f conftest.er1
 
20850
  cat conftest.err >&5
3513
20851
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3514
20852
  (exit $ac_status); } &&
3515
 
         { ac_try='test -s conftest$ac_exeext'
 
20853
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
20854
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20855
  (eval $ac_try) 2>&5
 
20856
  ac_status=$?
 
20857
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20858
  (exit $ac_status); }; } &&
 
20859
         { ac_try='test -s conftest$ac_exeext'
3516
20860
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3517
20861
  (eval $ac_try) 2>&5
3518
20862
  ac_status=$?
3529
20873
 
3530
20874
ok=no
3531
20875
fi
3532
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
20876
rm -f conftest.err conftest.$ac_objext \
 
20877
      conftest$ac_exeext conftest.$ac_ext
3533
20878
echo "$as_me:$LINENO: result: $ok" >&5
3534
20879
echo "${ECHO_T}$ok" >&6
3535
20880
 
3537
20882
echo $ECHO_N "checking for scm_flush_all_ports... $ECHO_C" >&6
3538
20883
ok=yes
3539
20884
cat >conftest.$ac_ext <<_ACEOF
3540
 
#line $LINENO "configure"
3541
20885
/* confdefs.h.  */
3542
20886
_ACEOF
3543
20887
cat confdefs.h >>conftest.$ac_ext
3555
20899
_ACEOF
3556
20900
rm -f conftest.$ac_objext conftest$ac_exeext
3557
20901
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3558
 
  (eval $ac_link) 2>&5
 
20902
  (eval $ac_link) 2>conftest.er1
3559
20903
  ac_status=$?
 
20904
  grep -v '^ *+' conftest.er1 >conftest.err
 
20905
  rm -f conftest.er1
 
20906
  cat conftest.err >&5
3560
20907
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3561
20908
  (exit $ac_status); } &&
3562
 
         { ac_try='test -s conftest$ac_exeext'
 
20909
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
20910
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20911
  (eval $ac_try) 2>&5
 
20912
  ac_status=$?
 
20913
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20914
  (exit $ac_status); }; } &&
 
20915
         { ac_try='test -s conftest$ac_exeext'
3563
20916
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3564
20917
  (eval $ac_try) 2>&5
3565
20918
  ac_status=$?
3576
20929
 
3577
20930
ok=no
3578
20931
fi
3579
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
20932
rm -f conftest.err conftest.$ac_objext \
 
20933
      conftest$ac_exeext conftest.$ac_ext
3580
20934
echo "$as_me:$LINENO: result: $ok" >&5
3581
20935
echo "${ECHO_T}$ok" >&6
3582
20936
 
3583
20937
 
3584
20938
 
3585
20939
 
3586
 
for ac_func in scm_make_complex scm_variable_set_x scm_c_lookup
 
20940
 
 
20941
for ac_func in scm_make_complex scm_variable_set_x scm_c_lookup scm_c_make_vector
3587
20942
do
3588
20943
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3589
20944
echo "$as_me:$LINENO: checking for $ac_func" >&5
3592
20947
  echo $ECHO_N "(cached) $ECHO_C" >&6
3593
20948
else
3594
20949
  cat >conftest.$ac_ext <<_ACEOF
3595
 
#line $LINENO "configure"
3596
20950
/* confdefs.h.  */
3597
20951
_ACEOF
3598
20952
cat confdefs.h >>conftest.$ac_ext
3599
20953
cat >>conftest.$ac_ext <<_ACEOF
3600
20954
/* end confdefs.h.  */
 
20955
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
20956
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
20957
#define $ac_func innocuous_$ac_func
 
20958
 
3601
20959
/* System header to define __stub macros and hopefully few prototypes,
3602
20960
    which can conflict with char $ac_func (); below.
3603
20961
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3604
20962
    <limits.h> exists even on freestanding compilers.  */
 
20963
 
3605
20964
#ifdef __STDC__
3606
20965
# include <limits.h>
3607
20966
#else
3608
20967
# include <assert.h>
3609
20968
#endif
 
20969
 
 
20970
#undef $ac_func
 
20971
 
3610
20972
/* Override any gcc2 internal prototype to avoid an error.  */
3611
20973
#ifdef __cplusplus
3612
20974
extern "C"
3637
20999
_ACEOF
3638
21000
rm -f conftest.$ac_objext conftest$ac_exeext
3639
21001
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3640
 
  (eval $ac_link) 2>&5
 
21002
  (eval $ac_link) 2>conftest.er1
3641
21003
  ac_status=$?
 
21004
  grep -v '^ *+' conftest.er1 >conftest.err
 
21005
  rm -f conftest.er1
 
21006
  cat conftest.err >&5
3642
21007
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3643
21008
  (exit $ac_status); } &&
3644
 
         { ac_try='test -s conftest$ac_exeext'
 
21009
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
21010
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21011
  (eval $ac_try) 2>&5
 
21012
  ac_status=$?
 
21013
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21014
  (exit $ac_status); }; } &&
 
21015
         { ac_try='test -s conftest$ac_exeext'
3645
21016
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3646
21017
  (eval $ac_try) 2>&5
3647
21018
  ac_status=$?
3654
21025
 
3655
21026
eval "$as_ac_var=no"
3656
21027
fi
3657
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
21028
rm -f conftest.err conftest.$ac_objext \
 
21029
      conftest$ac_exeext conftest.$ac_ext
3658
21030
fi
3659
21031
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3660
21032
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3671
21043
echo $ECHO_N "checking for SCM_COMPLEXP... $ECHO_C" >&6
3672
21044
ok=yes
3673
21045
cat >conftest.$ac_ext <<_ACEOF
3674
 
#line $LINENO "configure"
3675
21046
/* confdefs.h.  */
3676
21047
_ACEOF
3677
21048
cat confdefs.h >>conftest.$ac_ext
3689
21060
_ACEOF
3690
21061
rm -f conftest.$ac_objext conftest$ac_exeext
3691
21062
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3692
 
  (eval $ac_link) 2>&5
 
21063
  (eval $ac_link) 2>conftest.er1
3693
21064
  ac_status=$?
 
21065
  grep -v '^ *+' conftest.er1 >conftest.err
 
21066
  rm -f conftest.er1
 
21067
  cat conftest.err >&5
3694
21068
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3695
21069
  (exit $ac_status); } &&
3696
 
         { ac_try='test -s conftest$ac_exeext'
 
21070
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
21071
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21072
  (eval $ac_try) 2>&5
 
21073
  ac_status=$?
 
21074
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21075
  (exit $ac_status); }; } &&
 
21076
         { ac_try='test -s conftest$ac_exeext'
3697
21077
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3698
21078
  (eval $ac_try) 2>&5
3699
21079
  ac_status=$?
3710
21090
 
3711
21091
ok=no
3712
21092
fi
3713
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
21093
rm -f conftest.err conftest.$ac_objext \
 
21094
      conftest$ac_exeext conftest.$ac_ext
3714
21095
echo "$as_me:$LINENO: result: $ok" >&5
3715
21096
echo "${ECHO_T}$ok" >&6
3716
21097
 
3721
21102
  ok=no
3722
21103
else
3723
21104
  cat >conftest.$ac_ext <<_ACEOF
3724
 
#line $LINENO "configure"
3725
21105
/* confdefs.h.  */
3726
21106
_ACEOF
3727
21107
cat confdefs.h >>conftest.$ac_ext
3767
21147
( exit $ac_status )
3768
21148
ok=no
3769
21149
fi
3770
 
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
21150
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3771
21151
fi
3772
21152
echo "$as_me:$LINENO: result: $ok" >&5
3773
21153
echo "${ECHO_T}$ok" >&6
3780
21160
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
3781
21161
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3782
21162
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
3783
 
if test -n "$ac_tool_prefix"; then
3784
 
  for ac_prog in g77 f77 xlf frt pgf77 fl32 af77 fort77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 lf95 g95
3785
 
  do
3786
 
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3787
 
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3788
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
3789
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3790
 
if test "${ac_cv_prog_F77+set}" = set; then
3791
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
3792
 
else
3793
 
  if test -n "$F77"; then
3794
 
  ac_cv_prog_F77="$F77" # Let the user override the test.
3795
 
else
3796
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3797
 
for as_dir in $PATH
3798
 
do
3799
 
  IFS=$as_save_IFS
3800
 
  test -z "$as_dir" && as_dir=.
3801
 
  for ac_exec_ext in '' $ac_executable_extensions; do
3802
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3803
 
    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
3804
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3805
 
    break 2
3806
 
  fi
3807
 
done
3808
 
done
3809
 
 
3810
 
fi
3811
 
fi
3812
 
F77=$ac_cv_prog_F77
3813
 
if test -n "$F77"; then
3814
 
  echo "$as_me:$LINENO: result: $F77" >&5
3815
 
echo "${ECHO_T}$F77" >&6
3816
 
else
3817
 
  echo "$as_me:$LINENO: result: no" >&5
3818
 
echo "${ECHO_T}no" >&6
3819
 
fi
3820
 
 
3821
 
    test -n "$F77" && break
3822
 
  done
3823
 
fi
3824
 
if test -z "$F77"; then
3825
 
  ac_ct_F77=$F77
3826
 
  for ac_prog in g77 f77 xlf frt pgf77 fl32 af77 fort77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 lf95 g95
3827
 
do
3828
 
  # Extract the first word of "$ac_prog", so it can be a program name with args.
3829
 
set dummy $ac_prog; ac_word=$2
3830
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
3831
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3832
 
if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
3833
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
3834
 
else
3835
 
  if test -n "$ac_ct_F77"; then
3836
 
  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
3837
 
else
3838
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3839
 
for as_dir in $PATH
3840
 
do
3841
 
  IFS=$as_save_IFS
3842
 
  test -z "$as_dir" && as_dir=.
3843
 
  for ac_exec_ext in '' $ac_executable_extensions; do
3844
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3845
 
    ac_cv_prog_ac_ct_F77="$ac_prog"
3846
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3847
 
    break 2
3848
 
  fi
3849
 
done
3850
 
done
3851
 
 
3852
 
fi
3853
 
fi
3854
 
ac_ct_F77=$ac_cv_prog_ac_ct_F77
3855
 
if test -n "$ac_ct_F77"; then
3856
 
  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
3857
 
echo "${ECHO_T}$ac_ct_F77" >&6
3858
 
else
3859
 
  echo "$as_me:$LINENO: result: no" >&5
3860
 
echo "${ECHO_T}no" >&6
3861
 
fi
3862
 
 
3863
 
  test -n "$ac_ct_F77" && break
3864
 
done
3865
 
 
3866
 
  F77=$ac_ct_F77
3867
 
fi
3868
 
 
3869
 
 
3870
 
# Provide some information about the compiler.
3871
 
echo "$as_me:3871:" \
3872
 
     "checking for Fortran 77 compiler version" >&5
3873
 
ac_compiler=`set X $ac_compile; echo $2`
3874
 
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3875
 
  (eval $ac_compiler --version </dev/null >&5) 2>&5
3876
 
  ac_status=$?
3877
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3878
 
  (exit $ac_status); }
3879
 
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3880
 
  (eval $ac_compiler -v </dev/null >&5) 2>&5
3881
 
  ac_status=$?
3882
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3883
 
  (exit $ac_status); }
3884
 
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3885
 
  (eval $ac_compiler -V </dev/null >&5) 2>&5
3886
 
  ac_status=$?
3887
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3888
 
  (exit $ac_status); }
3889
 
 
3890
 
# If we don't use `.F' as extension, the preprocessor is not run on the
3891
 
# input file.
3892
 
ac_save_ext=$ac_ext
3893
 
ac_ext=F
3894
 
echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
3895
 
echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
3896
 
if test "${ac_cv_f77_compiler_gnu+set}" = set; then
3897
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
3898
 
else
3899
 
  cat >conftest.$ac_ext <<_ACEOF
3900
 
      program main
3901
 
#ifndef __GNUC__
3902
 
       choke me
3903
 
#endif
3904
 
 
3905
 
      end
3906
 
_ACEOF
3907
 
rm -f conftest.$ac_objext
3908
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3909
 
  (eval $ac_compile) 2>&5
3910
 
  ac_status=$?
3911
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3912
 
  (exit $ac_status); } &&
3913
 
         { ac_try='test -s conftest.$ac_objext'
3914
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3915
 
  (eval $ac_try) 2>&5
3916
 
  ac_status=$?
3917
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3918
 
  (exit $ac_status); }; }; then
3919
 
  ac_compiler_gnu=yes
3920
 
else
3921
 
  echo "$as_me: failed program was:" >&5
3922
 
sed 's/^/| /' conftest.$ac_ext >&5
3923
 
 
3924
 
ac_compiler_gnu=no
3925
 
fi
3926
 
rm -f conftest.$ac_objext conftest.$ac_ext
3927
 
ac_cv_f77_compiler_gnu=$ac_compiler_gnu
3928
 
 
3929
 
fi
3930
 
echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
3931
 
echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
3932
 
ac_ext=$ac_save_ext
3933
 
G77=`test $ac_compiler_gnu = yes && echo yes`
3934
 
ac_test_FFLAGS=${FFLAGS+set}
3935
 
ac_save_FFLAGS=$FFLAGS
3936
 
FFLAGS=
3937
 
echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
3938
 
echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
3939
 
if test "${ac_cv_prog_f77_g+set}" = set; then
3940
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
3941
 
else
3942
 
  FFLAGS=-g
3943
 
cat >conftest.$ac_ext <<_ACEOF
3944
 
      program main
3945
 
 
3946
 
      end
3947
 
_ACEOF
3948
 
rm -f conftest.$ac_objext
3949
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3950
 
  (eval $ac_compile) 2>&5
3951
 
  ac_status=$?
3952
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3953
 
  (exit $ac_status); } &&
3954
 
         { ac_try='test -s conftest.$ac_objext'
3955
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3956
 
  (eval $ac_try) 2>&5
3957
 
  ac_status=$?
3958
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3959
 
  (exit $ac_status); }; }; then
3960
 
  ac_cv_prog_f77_g=yes
3961
 
else
3962
 
  echo "$as_me: failed program was:" >&5
3963
 
sed 's/^/| /' conftest.$ac_ext >&5
3964
 
 
3965
 
ac_cv_prog_f77_g=no
3966
 
fi
3967
 
rm -f conftest.$ac_objext conftest.$ac_ext
3968
 
 
3969
 
fi
3970
 
echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
3971
 
echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
3972
 
if test "$ac_test_FFLAGS" = set; then
3973
 
  FFLAGS=$ac_save_FFLAGS
3974
 
elif test $ac_cv_prog_f77_g = yes; then
3975
 
  if test "$G77" = yes; then
3976
 
    FFLAGS="-g -O2"
3977
 
  else
3978
 
    FFLAGS="-g"
3979
 
  fi
3980
 
else
3981
 
  if test "$G77" = yes; then
3982
 
    FFLAGS="-O2"
3983
 
  else
3984
 
    FFLAGS=
3985
 
  fi
3986
 
fi
3987
 
ac_ext=f
3988
 
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
3989
 
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3990
 
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
3991
 
 
3992
 
 
3993
 
ac_ext=f
3994
 
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
3995
 
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3996
 
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
3997
21163
echo "$as_me:$LINENO: checking how to get verbose linking output from $F77" >&5
3998
21164
echo $ECHO_N "checking how to get verbose linking output from $F77... $ECHO_C" >&6
3999
21165
if test "${ac_cv_prog_f77_v+set}" = set; then
4000
21166
  echo $ECHO_N "(cached) $ECHO_C" >&6
4001
21167
else
4002
 
 
4003
 
cat >conftest.$ac_ext <<_ACEOF
 
21168
  cat >conftest.$ac_ext <<_ACEOF
4004
21169
      program main
4005
21170
 
4006
21171
      end
4007
21172
_ACEOF
4008
21173
rm -f conftest.$ac_objext
4009
21174
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4010
 
  (eval $ac_compile) 2>&5
 
21175
  (eval $ac_compile) 2>conftest.er1
4011
21176
  ac_status=$?
 
21177
  grep -v '^ *+' conftest.er1 >conftest.err
 
21178
  rm -f conftest.er1
 
21179
  cat conftest.err >&5
4012
21180
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4013
21181
  (exit $ac_status); } &&
4014
 
         { ac_try='test -s conftest.$ac_objext'
 
21182
         { ac_try='test -z "$ac_f77_werror_flag"                         || test ! -s conftest.err'
 
21183
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21184
  (eval $ac_try) 2>&5
 
21185
  ac_status=$?
 
21186
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21187
  (exit $ac_status); }; } &&
 
21188
         { ac_try='test -s conftest.$ac_objext'
4015
21189
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4016
21190
  (eval $ac_try) 2>&5
4017
21191
  ac_status=$?
4020
21194
  ac_cv_prog_f77_v=
4021
21195
# Try some options frequently used verbose output
4022
21196
for ac_verb in -v -verbose --verbose -V -\#\#\#; do
4023
 
  ac_ext=f
4024
 
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4025
 
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4026
 
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4027
 
 
4028
 
cat >conftest.$ac_ext <<_ACEOF
 
21197
  cat >conftest.$ac_ext <<_ACEOF
4029
21198
      program main
4030
21199
 
4031
21200
      end
4032
21201
_ACEOF
4033
21202
 
4034
21203
# Compile and link our simple test program by passing a flag (argument
4035
 
# 1 to this macro) to the Fortran 77 compiler in order to get
4036
 
# "verbose" output that we can then parse for the Fortran 77 linker
 
21204
# 1 to this macro) to the Fortran compiler in order to get
 
21205
# "verbose" output that we can then parse for the Fortran linker
4037
21206
# flags.
4038
21207
ac_save_FFLAGS=$FFLAGS
4039
21208
FFLAGS="$FFLAGS $ac_verb"
4040
 
(eval echo $as_me:4040: \"$ac_link\") >&5
 
21209
(eval echo $as_me:21209: \"$ac_link\") >&5
4041
21210
ac_f77_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'`
4042
21211
echo "$ac_f77_v_output" >&5
4043
21212
FFLAGS=$ac_save_FFLAGS
4044
21213
 
4045
21214
rm -f conftest*
4046
 
ac_ext=f
4047
 
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4048
 
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4049
 
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4050
 
 
4051
 
# If we are using xlf then replace all the commas with spaces.
4052
 
if echo $ac_f77_v_output | grep xlfentry >/dev/null 2>&1; then
4053
 
  ac_f77_v_output=`echo $ac_f77_v_output | sed 's/,/ /g'`
4054
 
fi
4055
21215
 
4056
21216
# On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where
4057
21217
# /foo, /bar, and /baz are search directories for the Fortran linker.
4060
21220
        grep 'LPATH is:' |
4061
21221
        sed 's,.*LPATH is\(: *[^ ]*\).*,\1,;s,: */, -L/,g'` $ac_f77_v_output"
4062
21222
 
4063
 
# If we are using Cray Fortran then delete quotes.
4064
 
# Use "\"" instead of '"' for font-lock-mode.
4065
 
# FIXME: a more general fix for quoted arguments with spaces?
4066
 
if echo $ac_f77_v_output | grep cft90 >/dev/null 2>&1; then
4067
 
  ac_f77_v_output=`echo $ac_f77_v_output | sed "s/\"//g"`
4068
 
fi
 
21223
case $ac_f77_v_output in
 
21224
  # If we are using xlf then replace all the commas with spaces.
 
21225
  *xlfentry*)
 
21226
    ac_f77_v_output=`echo $ac_f77_v_output | sed 's/,/ /g'` ;;
 
21227
 
 
21228
  # With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted
 
21229
  # $LIBS confuse us, and the libraries appear later in the output anyway).
 
21230
  *mGLOB_options_string*)
 
21231
    ac_f77_v_output=`echo $ac_f77_v_output | sed 's/\"-mGLOB[^\"]*\"/ /g'` ;;
 
21232
 
 
21233
  # If we are using Cray Fortran then delete quotes.
 
21234
  # Use "\"" instead of '"' for font-lock-mode.
 
21235
  # FIXME: a more general fix for quoted arguments with spaces?
 
21236
  *cft90*)
 
21237
    ac_f77_v_output=`echo $ac_f77_v_output | sed "s/\"//g"` ;;
 
21238
esac
 
21239
 
 
21240
 
4069
21241
  # look for -l* and *.a constructs in the output
4070
21242
  for ac_arg in $ac_f77_v_output; do
4071
21243
     case $ac_arg in
4086
21258
{ echo "$as_me:$LINENO: WARNING: compilation failed" >&5
4087
21259
echo "$as_me: WARNING: compilation failed" >&2;}
4088
21260
fi
4089
 
rm -f conftest.$ac_objext conftest.$ac_ext
 
21261
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4090
21262
 
4091
21263
fi
4092
21264
echo "$as_me:$LINENO: result: $ac_cv_prog_f77_v" >&5
4093
21265
echo "${ECHO_T}$ac_cv_prog_f77_v" >&6
4094
 
echo "$as_me:$LINENO: checking for Fortran 77 libraries" >&5
4095
 
echo $ECHO_N "checking for Fortran 77 libraries... $ECHO_C" >&6
4096
 
if test "${ac_cv_flibs+set}" = set; then
 
21266
echo "$as_me:$LINENO: checking for Fortran libraries of $F77" >&5
 
21267
echo $ECHO_N "checking for Fortran libraries of $F77... $ECHO_C" >&6
 
21268
if test "${ac_cv_f77_libs+set}" = set; then
4097
21269
  echo $ECHO_N "(cached) $ECHO_C" >&6
4098
21270
else
4099
21271
  if test "x$FLIBS" != "x"; then
4100
 
  ac_cv_flibs="$FLIBS" # Let the user override the test.
 
21272
  ac_cv_f77_libs="$FLIBS" # Let the user override the test.
4101
21273
else
4102
21274
 
4103
 
ac_ext=f
4104
 
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4105
 
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4106
 
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4107
 
 
4108
21275
cat >conftest.$ac_ext <<_ACEOF
4109
21276
      program main
4110
21277
 
4112
21279
_ACEOF
4113
21280
 
4114
21281
# Compile and link our simple test program by passing a flag (argument
4115
 
# 1 to this macro) to the Fortran 77 compiler in order to get
4116
 
# "verbose" output that we can then parse for the Fortran 77 linker
 
21282
# 1 to this macro) to the Fortran compiler in order to get
 
21283
# "verbose" output that we can then parse for the Fortran linker
4117
21284
# flags.
4118
21285
ac_save_FFLAGS=$FFLAGS
4119
21286
FFLAGS="$FFLAGS $ac_cv_prog_f77_v"
4120
 
(eval echo $as_me:4120: \"$ac_link\") >&5
 
21287
(eval echo $as_me:21287: \"$ac_link\") >&5
4121
21288
ac_f77_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'`
4122
21289
echo "$ac_f77_v_output" >&5
4123
21290
FFLAGS=$ac_save_FFLAGS
4124
21291
 
4125
21292
rm -f conftest*
4126
 
ac_ext=f
4127
 
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4128
 
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4129
 
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4130
 
 
4131
 
# If we are using xlf then replace all the commas with spaces.
4132
 
if echo $ac_f77_v_output | grep xlfentry >/dev/null 2>&1; then
4133
 
  ac_f77_v_output=`echo $ac_f77_v_output | sed 's/,/ /g'`
4134
 
fi
4135
21293
 
4136
21294
# On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where
4137
21295
# /foo, /bar, and /baz are search directories for the Fortran linker.
4140
21298
        grep 'LPATH is:' |
4141
21299
        sed 's,.*LPATH is\(: *[^ ]*\).*,\1,;s,: */, -L/,g'` $ac_f77_v_output"
4142
21300
 
4143
 
# If we are using Cray Fortran then delete quotes.
4144
 
# Use "\"" instead of '"' for font-lock-mode.
4145
 
# FIXME: a more general fix for quoted arguments with spaces?
4146
 
if echo $ac_f77_v_output | grep cft90 >/dev/null 2>&1; then
4147
 
  ac_f77_v_output=`echo $ac_f77_v_output | sed "s/\"//g"`
4148
 
fi
4149
 
 
4150
 
ac_cv_flibs=
 
21301
case $ac_f77_v_output in
 
21302
  # If we are using xlf then replace all the commas with spaces.
 
21303
  *xlfentry*)
 
21304
    ac_f77_v_output=`echo $ac_f77_v_output | sed 's/,/ /g'` ;;
 
21305
 
 
21306
  # With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted
 
21307
  # $LIBS confuse us, and the libraries appear later in the output anyway).
 
21308
  *mGLOB_options_string*)
 
21309
    ac_f77_v_output=`echo $ac_f77_v_output | sed 's/\"-mGLOB[^\"]*\"/ /g'` ;;
 
21310
 
 
21311
  # If we are using Cray Fortran then delete quotes.
 
21312
  # Use "\"" instead of '"' for font-lock-mode.
 
21313
  # FIXME: a more general fix for quoted arguments with spaces?
 
21314
  *cft90*)
 
21315
    ac_f77_v_output=`echo $ac_f77_v_output | sed "s/\"//g"` ;;
 
21316
esac
 
21317
 
 
21318
 
 
21319
 
 
21320
ac_cv_f77_libs=
4151
21321
 
4152
21322
# Save positional arguments (if any)
4153
21323
ac_save_positional="$@"
4159
21329
  case $ac_arg in
4160
21330
        [\\/]*.a | ?:[\\/]*.a)
4161
21331
            ac_exists=false
4162
 
  for ac_i in $ac_cv_flibs; do
 
21332
  for ac_i in $ac_cv_f77_libs; do
4163
21333
    if test x"$ac_arg" = x"$ac_i"; then
4164
21334
      ac_exists=true
4165
21335
      break
4169
21339
  if test x"$ac_exists" = xtrue; then
4170
21340
  :
4171
21341
else
4172
 
  ac_cv_flibs="$ac_cv_flibs $ac_arg"
 
21342
  ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
4173
21343
fi
4174
21344
 
4175
21345
          ;;
4176
21346
        -bI:*)
4177
21347
            ac_exists=false
4178
 
  for ac_i in $ac_cv_flibs; do
 
21348
  for ac_i in $ac_cv_f77_libs; do
4179
21349
    if test x"$ac_arg" = x"$ac_i"; then
4180
21350
      ac_exists=true
4181
21351
      break
4187
21357
else
4188
21358
  if test "$ac_compiler_gnu" = yes; then
4189
21359
  for ac_link_opt in $ac_arg; do
4190
 
    ac_cv_flibs="$ac_cv_flibs -Xlinker $ac_link_opt"
 
21360
    ac_cv_f77_libs="$ac_cv_f77_libs -Xlinker $ac_link_opt"
4191
21361
  done
4192
21362
else
4193
 
  ac_cv_flibs="$ac_cv_flibs $ac_arg"
 
21363
  ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
4194
21364
fi
4195
21365
fi
4196
21366
 
4197
21367
          ;;
4198
21368
          # Ignore these flags.
4199
 
        -lang* | -lcrt0.o | -lc | -lgcc | -libmil | -LANG:=*)
 
21369
        -lang* | -lcrt*.o | -lc | -lgcc | -libmil | -LANG:=*)
4200
21370
          ;;
4201
21371
        -lkernel32)
4202
 
          test x"$CYGWIN" != xyes && ac_cv_flibs="$ac_cv_flibs $ac_arg"
 
21372
          test x"$CYGWIN" != xyes && ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
4203
21373
          ;;
4204
21374
        -[LRuY])
4205
21375
          # These flags, when seen by themselves, take an argument.
4206
21376
          # We remove the space between option and argument and re-iterate
4207
21377
          # unless we find an empty arg or a new option (starting with -)
4208
21378
          case $2 in
4209
 
             "" | -*);;
4210
 
             *)
 
21379
             "" | -*);;
 
21380
             *)
4211
21381
                ac_arg="$ac_arg$2"
4212
21382
                shift; shift
4213
21383
                set X $ac_arg "$@"
4217
21387
        -YP,*)
4218
21388
          for ac_j in `echo $ac_arg | sed -e 's/-YP,/-L/;s/:/ -L/g'`; do
4219
21389
              ac_exists=false
4220
 
  for ac_i in $ac_cv_flibs; do
 
21390
  for ac_i in $ac_cv_f77_libs; do
4221
21391
    if test x"$ac_j" = x"$ac_i"; then
4222
21392
      ac_exists=true
4223
21393
      break
4228
21398
  :
4229
21399
else
4230
21400
  ac_arg="$ac_arg $ac_j"
4231
 
                               ac_cv_flibs="$ac_cv_flibs $ac_j"
 
21401
                               ac_cv_f77_libs="$ac_cv_f77_libs $ac_j"
4232
21402
fi
4233
21403
 
4234
21404
          done
4235
21405
          ;;
4236
21406
        -[lLR]*)
4237
21407
            ac_exists=false
4238
 
  for ac_i in $ac_cv_flibs; do
 
21408
  for ac_i in $ac_cv_f77_libs; do
4239
21409
    if test x"$ac_arg" = x"$ac_i"; then
4240
21410
      ac_exists=true
4241
21411
      break
4245
21415
  if test x"$ac_exists" = xtrue; then
4246
21416
  :
4247
21417
else
4248
 
  ac_cv_flibs="$ac_cv_flibs $ac_arg"
 
21418
  ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
4249
21419
fi
4250
21420
 
4251
21421
          ;;
4265
21435
      test "x$ac_ld_run_path" != x &&
4266
21436
        if test "$ac_compiler_gnu" = yes; then
4267
21437
  for ac_link_opt in $ac_ld_run_path; do
4268
 
    ac_cv_flibs="$ac_cv_flibs -Xlinker $ac_link_opt"
 
21438
    ac_cv_f77_libs="$ac_cv_f77_libs -Xlinker $ac_link_opt"
4269
21439
  done
4270
21440
else
4271
 
  ac_cv_flibs="$ac_cv_flibs $ac_ld_run_path"
 
21441
  ac_cv_f77_libs="$ac_cv_f77_libs $ac_ld_run_path"
4272
21442
fi
4273
21443
      ;;
4274
21444
esac
4275
 
fi # test "x$FLIBS" = "x"
 
21445
fi # test "x$[]_AC_LANG_PREFIX[]LIBS" = "x"
4276
21446
 
4277
21447
fi
4278
 
echo "$as_me:$LINENO: result: $ac_cv_flibs" >&5
4279
 
echo "${ECHO_T}$ac_cv_flibs" >&6
4280
 
FLIBS="$ac_cv_flibs"
 
21448
echo "$as_me:$LINENO: result: $ac_cv_f77_libs" >&5
 
21449
echo "${ECHO_T}$ac_cv_f77_libs" >&6
 
21450
FLIBS="$ac_cv_f77_libs"
 
21451
 
4281
21452
 
4282
21453
ac_ext=c
4283
21454
ac_cpp='$CPP $CPPFLAGS'
4285
21456
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4286
21457
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4287
21458
 
 
21459
ac_ext=f
 
21460
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
 
21461
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
21462
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4288
21463
 
4289
 
echo "$as_me:$LINENO: checking for dummy main to link with Fortran 77 libraries" >&5
4290
 
echo $ECHO_N "checking for dummy main to link with Fortran 77 libraries... $ECHO_C" >&6
 
21464
echo "$as_me:$LINENO: checking for dummy main to link with Fortran libraries" >&5
 
21465
echo $ECHO_N "checking for dummy main to link with Fortran libraries... $ECHO_C" >&6
4291
21466
if test "${ac_cv_f77_dummy_main+set}" = set; then
4292
21467
  echo $ECHO_N "(cached) $ECHO_C" >&6
4293
21468
else
4294
 
  ac_ext=c
4295
 
ac_cpp='$CPP $CPPFLAGS'
4296
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4297
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4298
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4299
 
 ac_f77_dm_save_LIBS=$LIBS
 
21469
  ac_f77_dm_save_LIBS=$LIBS
4300
21470
 LIBS="$LIBS $FLIBS"
 
21471
 ac_fortran_dm_var=F77_DUMMY_MAIN
 
21472
 ac_ext=c
 
21473
ac_cpp='$CPP $CPPFLAGS'
 
21474
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
21475
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
21476
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4301
21477
 
4302
21478
 # First, try linking without a dummy main:
4303
21479
 cat >conftest.$ac_ext <<_ACEOF
4304
 
#line $LINENO "configure"
4305
21480
/* confdefs.h.  */
4306
21481
_ACEOF
4307
21482
cat confdefs.h >>conftest.$ac_ext
4309
21484
/* end confdefs.h.  */
4310
21485
 
4311
21486
#ifdef F77_DUMMY_MAIN
 
21487
 
4312
21488
#  ifdef __cplusplus
4313
21489
     extern "C"
4314
21490
#  endif
4315
21491
   int F77_DUMMY_MAIN() { return 1; }
 
21492
 
4316
21493
#endif
4317
21494
int
4318
21495
main ()
4324
21501
_ACEOF
4325
21502
rm -f conftest.$ac_objext conftest$ac_exeext
4326
21503
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4327
 
  (eval $ac_link) 2>&5
 
21504
  (eval $ac_link) 2>conftest.er1
4328
21505
  ac_status=$?
 
21506
  grep -v '^ *+' conftest.er1 >conftest.err
 
21507
  rm -f conftest.er1
 
21508
  cat conftest.err >&5
4329
21509
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4330
21510
  (exit $ac_status); } &&
4331
 
         { ac_try='test -s conftest$ac_exeext'
 
21511
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
21512
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21513
  (eval $ac_try) 2>&5
 
21514
  ac_status=$?
 
21515
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21516
  (exit $ac_status); }; } &&
 
21517
         { ac_try='test -s conftest$ac_exeext'
4332
21518
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4333
21519
  (eval $ac_try) 2>&5
4334
21520
  ac_status=$?
4335
21521
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4336
21522
  (exit $ac_status); }; }; then
4337
 
  ac_cv_f77_dummy_main=none
 
21523
  ac_cv_fortran_dummy_main=none
4338
21524
else
4339
21525
  echo "$as_me: failed program was:" >&5
4340
21526
sed 's/^/| /' conftest.$ac_ext >&5
4341
21527
 
4342
 
ac_cv_f77_dummy_main=unknown
 
21528
ac_cv_fortran_dummy_main=unknown
4343
21529
fi
4344
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
21530
rm -f conftest.err conftest.$ac_objext \
 
21531
      conftest$ac_exeext conftest.$ac_ext
4345
21532
 
4346
 
 if test $ac_cv_f77_dummy_main = unknown; then
 
21533
 if test $ac_cv_fortran_dummy_main = unknown; then
4347
21534
   for ac_func in MAIN__ MAIN_ __main MAIN _MAIN __MAIN main_ main__ _main; do
4348
21535
     cat >conftest.$ac_ext <<_ACEOF
4349
 
#line $LINENO "configure"
4350
21536
/* confdefs.h.  */
4351
21537
_ACEOF
4352
21538
cat confdefs.h >>conftest.$ac_ext
4353
21539
cat >>conftest.$ac_ext <<_ACEOF
4354
21540
/* end confdefs.h.  */
4355
 
#define F77_DUMMY_MAIN $ac_func
 
21541
#define $ac_fortran_dm_var $ac_func
4356
21542
#ifdef F77_DUMMY_MAIN
 
21543
 
4357
21544
#  ifdef __cplusplus
4358
21545
     extern "C"
4359
21546
#  endif
4360
21547
   int F77_DUMMY_MAIN() { return 1; }
 
21548
 
4361
21549
#endif
4362
21550
int
4363
21551
main ()
4369
21557
_ACEOF
4370
21558
rm -f conftest.$ac_objext conftest$ac_exeext
4371
21559
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4372
 
  (eval $ac_link) 2>&5
 
21560
  (eval $ac_link) 2>conftest.er1
4373
21561
  ac_status=$?
 
21562
  grep -v '^ *+' conftest.er1 >conftest.err
 
21563
  rm -f conftest.er1
 
21564
  cat conftest.err >&5
4374
21565
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4375
21566
  (exit $ac_status); } &&
4376
 
         { ac_try='test -s conftest$ac_exeext'
 
21567
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
21568
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21569
  (eval $ac_try) 2>&5
 
21570
  ac_status=$?
 
21571
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21572
  (exit $ac_status); }; } &&
 
21573
         { ac_try='test -s conftest$ac_exeext'
4377
21574
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4378
21575
  (eval $ac_try) 2>&5
4379
21576
  ac_status=$?
4380
21577
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4381
21578
  (exit $ac_status); }; }; then
4382
 
  ac_cv_f77_dummy_main=$ac_func; break
 
21579
  ac_cv_fortran_dummy_main=$ac_func; break
4383
21580
else
4384
21581
  echo "$as_me: failed program was:" >&5
4385
21582
sed 's/^/| /' conftest.$ac_ext >&5
4386
21583
 
4387
21584
fi
4388
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
21585
rm -f conftest.err conftest.$ac_objext \
 
21586
      conftest$ac_exeext conftest.$ac_ext
4389
21587
   done
4390
21588
 fi
 
21589
 ac_ext=f
 
21590
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
 
21591
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
21592
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
 
21593
 ac_cv_f77_dummy_main=$ac_cv_fortran_dummy_main
4391
21594
 rm -f conftest*
4392
21595
 LIBS=$ac_f77_dm_save_LIBS
4393
 
 ac_ext=c
4394
 
ac_cpp='$CPP $CPPFLAGS'
4395
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4396
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4397
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4398
21596
 
4399
21597
fi
4400
21598
echo "$as_me:$LINENO: result: $ac_cv_f77_dummy_main" >&5
4407
21605
#define F77_DUMMY_MAIN $F77_DUMMY_MAIN
4408
21606
_ACEOF
4409
21607
 
 
21608
  if test "x$ac_cv_fc_dummy_main" = "x$ac_cv_f77_dummy_main"; then
 
21609
 
 
21610
cat >>confdefs.h <<\_ACEOF
 
21611
#define FC_DUMMY_MAIN_EQ_F77 1
 
21612
_ACEOF
 
21613
 
 
21614
  fi
4410
21615
fi
4411
21616
else
4412
 
  { echo "$as_me:$LINENO: WARNING: Fortran wrapper functions will not be included" >&5
4413
 
echo "$as_me: WARNING: Fortran wrapper functions will not be included" >&2;}
 
21617
  { { echo "$as_me:$LINENO: error: linking to Fortran libraries from C fails
 
21618
See \`config.log' for more details." >&5
 
21619
echo "$as_me: error: linking to Fortran libraries from C fails
 
21620
See \`config.log' for more details." >&2;}
 
21621
   { (exit 1); exit 1; }; }
4414
21622
fi
4415
21623
 
4416
21624
 
4417
 
echo "$as_me:$LINENO: checking for Fortran 77 name-mangling scheme" >&5
4418
 
echo $ECHO_N "checking for Fortran 77 name-mangling scheme... $ECHO_C" >&6
 
21625
ac_ext=c
 
21626
ac_cpp='$CPP $CPPFLAGS'
 
21627
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
21628
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
21629
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
21630
 
 
21631
ac_ext=f
 
21632
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
 
21633
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
21634
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
 
21635
echo "$as_me:$LINENO: checking for Fortran name-mangling scheme" >&5
 
21636
echo $ECHO_N "checking for Fortran name-mangling scheme... $ECHO_C" >&6
4419
21637
if test "${ac_cv_f77_mangling+set}" = set; then
4420
21638
  echo $ECHO_N "(cached) $ECHO_C" >&6
4421
21639
else
4422
 
  ac_ext=f
4423
 
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4424
 
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4425
 
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4426
 
cat >conftest.$ac_ext <<_ACEOF
 
21640
  cat >conftest.$ac_ext <<_ACEOF
4427
21641
      subroutine foobar()
4428
21642
      return
4429
21643
      end
4433
21647
_ACEOF
4434
21648
rm -f conftest.$ac_objext
4435
21649
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4436
 
  (eval $ac_compile) 2>&5
 
21650
  (eval $ac_compile) 2>conftest.er1
4437
21651
  ac_status=$?
 
21652
  grep -v '^ *+' conftest.er1 >conftest.err
 
21653
  rm -f conftest.er1
 
21654
  cat conftest.err >&5
4438
21655
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4439
21656
  (exit $ac_status); } &&
4440
 
         { ac_try='test -s conftest.$ac_objext'
 
21657
         { ac_try='test -z "$ac_f77_werror_flag"                         || test ! -s conftest.err'
 
21658
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21659
  (eval $ac_try) 2>&5
 
21660
  ac_status=$?
 
21661
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21662
  (exit $ac_status); }; } &&
 
21663
         { ac_try='test -s conftest.$ac_objext'
4441
21664
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4442
21665
  (eval $ac_try) 2>&5
4443
21666
  ac_status=$?
4444
21667
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4445
21668
  (exit $ac_status); }; }; then
4446
 
  mv conftest.$ac_objext cf77_test.$ac_objext
4447
 
 
4448
 
  ac_ext=c
4449
 
ac_cpp='$CPP $CPPFLAGS'
4450
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4451
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4452
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
21669
  mv conftest.$ac_objext cfortran_test.$ac_objext
4453
21670
 
4454
21671
  ac_save_LIBS=$LIBS
4455
 
  LIBS="cf77_test.$ac_objext $LIBS $FLIBS"
 
21672
  LIBS="cfortran_test.$ac_objext $LIBS $FLIBS"
4456
21673
 
 
21674
  ac_ext=c
 
21675
ac_cpp='$CPP $CPPFLAGS'
 
21676
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
21677
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
21678
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4457
21679
  ac_success=no
4458
21680
  for ac_foobar in foobar FOOBAR; do
4459
21681
    for ac_underscore in "" "_"; do
4460
21682
      ac_func="$ac_foobar$ac_underscore"
4461
21683
      cat >conftest.$ac_ext <<_ACEOF
4462
 
#line $LINENO "configure"
4463
21684
/* confdefs.h.  */
4464
21685
_ACEOF
4465
21686
cat confdefs.h >>conftest.$ac_ext
4474
21695
   builtin and then its argument prototype would still apply.  */
4475
21696
char $ac_func ();
4476
21697
#ifdef F77_DUMMY_MAIN
 
21698
 
4477
21699
#  ifdef __cplusplus
4478
21700
     extern "C"
4479
21701
#  endif
4480
21702
   int F77_DUMMY_MAIN() { return 1; }
 
21703
 
4481
21704
#endif
4482
21705
int
4483
21706
main ()
4489
21712
_ACEOF
4490
21713
rm -f conftest.$ac_objext conftest$ac_exeext
4491
21714
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4492
 
  (eval $ac_link) 2>&5
 
21715
  (eval $ac_link) 2>conftest.er1
4493
21716
  ac_status=$?
 
21717
  grep -v '^ *+' conftest.er1 >conftest.err
 
21718
  rm -f conftest.er1
 
21719
  cat conftest.err >&5
4494
21720
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4495
21721
  (exit $ac_status); } &&
4496
 
         { ac_try='test -s conftest$ac_exeext'
 
21722
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
21723
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21724
  (eval $ac_try) 2>&5
 
21725
  ac_status=$?
 
21726
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21727
  (exit $ac_status); }; } &&
 
21728
         { ac_try='test -s conftest$ac_exeext'
4497
21729
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4498
21730
  (eval $ac_try) 2>&5
4499
21731
  ac_status=$?
4505
21737
sed 's/^/| /' conftest.$ac_ext >&5
4506
21738
 
4507
21739
fi
4508
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
21740
rm -f conftest.err conftest.$ac_objext \
 
21741
      conftest$ac_exeext conftest.$ac_ext
4509
21742
    done
4510
21743
  done
 
21744
  ac_ext=f
 
21745
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
 
21746
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
21747
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4511
21748
 
4512
21749
  if test "$ac_success" = "yes"; then
4513
21750
     case $ac_foobar in
4514
 
        foobar)
4515
 
           ac_case=lower
4516
 
           ac_foo_bar=foo_bar
4517
 
           ;;
4518
 
        FOOBAR)
4519
 
           ac_case=upper
4520
 
           ac_foo_bar=FOO_BAR
4521
 
           ;;
 
21751
        foobar)
 
21752
           ac_case=lower
 
21753
           ac_foo_bar=foo_bar
 
21754
           ;;
 
21755
        FOOBAR)
 
21756
           ac_case=upper
 
21757
           ac_foo_bar=FOO_BAR
 
21758
           ;;
4522
21759
     esac
4523
21760
 
 
21761
     ac_ext=c
 
21762
ac_cpp='$CPP $CPPFLAGS'
 
21763
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
21764
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
21765
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4524
21766
     ac_success_extra=no
4525
21767
     for ac_extra in "" "_"; do
4526
 
        ac_func="$ac_foo_bar$ac_underscore$ac_extra"
4527
 
        cat >conftest.$ac_ext <<_ACEOF
4528
 
#line $LINENO "configure"
 
21768
        ac_func="$ac_foo_bar$ac_underscore$ac_extra"
 
21769
        cat >conftest.$ac_ext <<_ACEOF
4529
21770
/* confdefs.h.  */
4530
21771
_ACEOF
4531
21772
cat confdefs.h >>conftest.$ac_ext
4540
21781
   builtin and then its argument prototype would still apply.  */
4541
21782
char $ac_func ();
4542
21783
#ifdef F77_DUMMY_MAIN
 
21784
 
4543
21785
#  ifdef __cplusplus
4544
21786
     extern "C"
4545
21787
#  endif
4546
21788
   int F77_DUMMY_MAIN() { return 1; }
 
21789
 
4547
21790
#endif
4548
21791
int
4549
21792
main ()
4555
21798
_ACEOF
4556
21799
rm -f conftest.$ac_objext conftest$ac_exeext
4557
21800
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4558
 
  (eval $ac_link) 2>&5
 
21801
  (eval $ac_link) 2>conftest.er1
4559
21802
  ac_status=$?
 
21803
  grep -v '^ *+' conftest.er1 >conftest.err
 
21804
  rm -f conftest.er1
 
21805
  cat conftest.err >&5
4560
21806
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4561
21807
  (exit $ac_status); } &&
4562
 
         { ac_try='test -s conftest$ac_exeext'
 
21808
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
21809
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21810
  (eval $ac_try) 2>&5
 
21811
  ac_status=$?
 
21812
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21813
  (exit $ac_status); }; } &&
 
21814
         { ac_try='test -s conftest$ac_exeext'
4563
21815
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4564
21816
  (eval $ac_try) 2>&5
4565
21817
  ac_status=$?
4571
21823
sed 's/^/| /' conftest.$ac_ext >&5
4572
21824
 
4573
21825
fi
4574
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
21826
rm -f conftest.err conftest.$ac_objext \
 
21827
      conftest$ac_exeext conftest.$ac_ext
4575
21828
     done
 
21829
     ac_ext=f
 
21830
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
 
21831
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
21832
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4576
21833
 
4577
21834
     if test "$ac_success_extra" = "yes"; then
4578
21835
        ac_cv_f77_mangling="$ac_case case"
4594
21851
  fi
4595
21852
 
4596
21853
  LIBS=$ac_save_LIBS
4597
 
  ac_ext=f
4598
 
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4599
 
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4600
 
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4601
 
  rm -f cf77_test* conftest*
 
21854
  rm -f cfortran_test* conftest*
4602
21855
else
4603
21856
  echo "$as_me: failed program was:" >&5
4604
21857
sed 's/^/| /' conftest.$ac_ext >&5
4609
21862
See \`config.log' for more details." >&2;}
4610
21863
   { (exit 1); exit 1; }; }
4611
21864
fi
4612
 
rm -f conftest.$ac_objext conftest.$ac_ext
4613
 
ac_ext=c
4614
 
ac_cpp='$CPP $CPPFLAGS'
4615
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4616
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4617
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
21865
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4618
21866
 
4619
21867
fi
4620
21868
echo "$as_me:$LINENO: result: $ac_cv_f77_mangling" >&5
4621
21869
echo "${ECHO_T}$ac_cv_f77_mangling" >&6
4622
21870
 
 
21871
ac_ext=c
 
21872
ac_cpp='$CPP $CPPFLAGS'
 
21873
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
21874
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
21875
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
21876
 
 
21877
ac_ext=f
 
21878
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
 
21879
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
21880
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4623
21881
 
4624
21882
 
4625
21883
case $ac_cv_f77_mangling in
4696
21954
_ACEOF
4697
21955
 ;;
4698
21956
  *)
4699
 
          { echo "$as_me:$LINENO: WARNING: unknown Fortran 77 name-mangling scheme" >&5
4700
 
echo "$as_me: WARNING: unknown Fortran 77 name-mangling scheme" >&2;}
 
21957
          { echo "$as_me:$LINENO: WARNING: unknown Fortran name-mangling scheme" >&5
 
21958
echo "$as_me: WARNING: unknown Fortran name-mangling scheme" >&2;}
4701
21959
          ;;
4702
21960
esac
4703
21961
 
4704
 
 
4705
 
###########################################################################
4706
 
 
4707
 
# Add libctl and libgeom -I/-L/-l flags to CPPFLAGS/LDFLAGS/LIBS,
4708
 
# so that examples/Makefile.in can be used as-is for other programs.
4709
 
# (The flags need to go first so that they'll take precedence over
4710
 
# any previously-installed version of libctl.)
4711
 
 
4712
 
CPPFLAGS="-I`pwd`/$srcdir/base -I`pwd`/$srcdir/utils $CPPFLAGS"
4713
 
LDFLAGS="-L`pwd`/$srcdir/base $LDFLAGS"
4714
 
 
4715
 
###########################################################################
4716
 
 
4717
 
LIBCTL_DIR="`pwd`/$srcdir"
4718
 
 
4719
 
 
4720
 
GEN_CTL_IO="`pwd`/$srcdir/utils/gen-ctl-io"
4721
 
 
4722
 
 
4723
 
                                                  ac_config_files="$ac_config_files Makefile base/Makefile utils/Makefile examples/Makefile utils/gen-ctl-io"
 
21962
ac_ext=c
 
21963
ac_cpp='$CPP $CPPFLAGS'
 
21964
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
21965
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
21966
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
21967
 
 
21968
 
 
21969
###########################################################################
 
21970
# Check for C99 complex-number support, for cintegrate.c
 
21971
 
 
21972
 
 
21973
for ac_header in complex.h
 
21974
do
 
21975
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
21976
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
21977
  echo "$as_me:$LINENO: checking for $ac_header" >&5
 
21978
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
21979
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
21980
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
21981
fi
 
21982
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
21983
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
21984
else
 
21985
  # Is the header compilable?
 
21986
echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
21987
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
21988
cat >conftest.$ac_ext <<_ACEOF
 
21989
/* confdefs.h.  */
 
21990
_ACEOF
 
21991
cat confdefs.h >>conftest.$ac_ext
 
21992
cat >>conftest.$ac_ext <<_ACEOF
 
21993
/* end confdefs.h.  */
 
21994
$ac_includes_default
 
21995
#include <$ac_header>
 
21996
_ACEOF
 
21997
rm -f conftest.$ac_objext
 
21998
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
21999
  (eval $ac_compile) 2>conftest.er1
 
22000
  ac_status=$?
 
22001
  grep -v '^ *+' conftest.er1 >conftest.err
 
22002
  rm -f conftest.er1
 
22003
  cat conftest.err >&5
 
22004
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22005
  (exit $ac_status); } &&
 
22006
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
22007
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22008
  (eval $ac_try) 2>&5
 
22009
  ac_status=$?
 
22010
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22011
  (exit $ac_status); }; } &&
 
22012
         { ac_try='test -s conftest.$ac_objext'
 
22013
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22014
  (eval $ac_try) 2>&5
 
22015
  ac_status=$?
 
22016
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22017
  (exit $ac_status); }; }; then
 
22018
  ac_header_compiler=yes
 
22019
else
 
22020
  echo "$as_me: failed program was:" >&5
 
22021
sed 's/^/| /' conftest.$ac_ext >&5
 
22022
 
 
22023
ac_header_compiler=no
 
22024
fi
 
22025
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
22026
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
22027
echo "${ECHO_T}$ac_header_compiler" >&6
 
22028
 
 
22029
# Is the header present?
 
22030
echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
22031
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
22032
cat >conftest.$ac_ext <<_ACEOF
 
22033
/* confdefs.h.  */
 
22034
_ACEOF
 
22035
cat confdefs.h >>conftest.$ac_ext
 
22036
cat >>conftest.$ac_ext <<_ACEOF
 
22037
/* end confdefs.h.  */
 
22038
#include <$ac_header>
 
22039
_ACEOF
 
22040
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
22041
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
22042
  ac_status=$?
 
22043
  grep -v '^ *+' conftest.er1 >conftest.err
 
22044
  rm -f conftest.er1
 
22045
  cat conftest.err >&5
 
22046
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22047
  (exit $ac_status); } >/dev/null; then
 
22048
  if test -s conftest.err; then
 
22049
    ac_cpp_err=$ac_c_preproc_warn_flag
 
22050
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
22051
  else
 
22052
    ac_cpp_err=
 
22053
  fi
 
22054
else
 
22055
  ac_cpp_err=yes
 
22056
fi
 
22057
if test -z "$ac_cpp_err"; then
 
22058
  ac_header_preproc=yes
 
22059
else
 
22060
  echo "$as_me: failed program was:" >&5
 
22061
sed 's/^/| /' conftest.$ac_ext >&5
 
22062
 
 
22063
  ac_header_preproc=no
 
22064
fi
 
22065
rm -f conftest.err conftest.$ac_ext
 
22066
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
22067
echo "${ECHO_T}$ac_header_preproc" >&6
 
22068
 
 
22069
# So?  What about this header?
 
22070
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
22071
  yes:no: )
 
22072
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
22073
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
22074
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
22075
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
22076
    ac_header_preproc=yes
 
22077
    ;;
 
22078
  no:yes:* )
 
22079
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
22080
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
22081
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
22082
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
22083
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
22084
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
22085
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
22086
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
22087
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
22088
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
22089
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
22090
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
22091
    (
 
22092
      cat <<\_ASBOX
 
22093
## ----------------------------------- ##
 
22094
## Report this to stevenj@alum.mit.edu ##
 
22095
## ----------------------------------- ##
 
22096
_ASBOX
 
22097
    ) |
 
22098
      sed "s/^/$as_me: WARNING:     /" >&2
 
22099
    ;;
 
22100
esac
 
22101
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
22102
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
22103
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
22104
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
22105
else
 
22106
  eval "$as_ac_Header=\$ac_header_preproc"
 
22107
fi
 
22108
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
22109
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
22110
 
 
22111
fi
 
22112
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
22113
  cat >>confdefs.h <<_ACEOF
 
22114
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
22115
_ACEOF
 
22116
 
 
22117
fi
 
22118
 
 
22119
done
 
22120
 
 
22121
echo "$as_me:$LINENO: checking for C complex keyword" >&5
 
22122
echo $ECHO_N "checking for C complex keyword... $ECHO_C" >&6
 
22123
if test "${acx_cv_c_complex+set}" = set; then
 
22124
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
22125
else
 
22126
  acx_cv_c_complex=unsupported
 
22127
  for acx_kw in complex _Complex __complex__; do
 
22128
    cat >conftest.$ac_ext <<_ACEOF
 
22129
/* confdefs.h.  */
 
22130
_ACEOF
 
22131
cat confdefs.h >>conftest.$ac_ext
 
22132
cat >>conftest.$ac_ext <<_ACEOF
 
22133
/* end confdefs.h.  */
 
22134
#include <complex.h>
 
22135
#ifdef F77_DUMMY_MAIN
 
22136
 
 
22137
#  ifdef __cplusplus
 
22138
     extern "C"
 
22139
#  endif
 
22140
   int F77_DUMMY_MAIN() { return 1; }
 
22141
 
 
22142
#endif
 
22143
int
 
22144
main ()
 
22145
{
 
22146
float $acx_kw foo;
 
22147
  ;
 
22148
  return 0;
 
22149
}
 
22150
_ACEOF
 
22151
rm -f conftest.$ac_objext
 
22152
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
22153
  (eval $ac_compile) 2>conftest.er1
 
22154
  ac_status=$?
 
22155
  grep -v '^ *+' conftest.er1 >conftest.err
 
22156
  rm -f conftest.er1
 
22157
  cat conftest.err >&5
 
22158
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22159
  (exit $ac_status); } &&
 
22160
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
22161
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22162
  (eval $ac_try) 2>&5
 
22163
  ac_status=$?
 
22164
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22165
  (exit $ac_status); }; } &&
 
22166
         { ac_try='test -s conftest.$ac_objext'
 
22167
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22168
  (eval $ac_try) 2>&5
 
22169
  ac_status=$?
 
22170
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22171
  (exit $ac_status); }; }; then
 
22172
  acx_cv_c_complex=$acx_kw; break
 
22173
else
 
22174
  echo "$as_me: failed program was:" >&5
 
22175
sed 's/^/| /' conftest.$ac_ext >&5
 
22176
 
 
22177
fi
 
22178
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
22179
  done
 
22180
 
 
22181
fi
 
22182
echo "$as_me:$LINENO: result: $acx_cv_c_complex" >&5
 
22183
echo "${ECHO_T}$acx_cv_c_complex" >&6
 
22184
 
 
22185
if test "$acx_cv_c_complex" = "unsupported"; then
 
22186
   { echo "$as_me:$LINENO: WARNING: C doesn't support complex numbers; disabling complex integration." >&5
 
22187
echo "$as_me: WARNING: C doesn't support complex numbers; disabling complex integration." >&2;}
 
22188
else
 
22189
 
 
22190
cat >>confdefs.h <<\_ACEOF
 
22191
#define CTL_HAS_COMPLEX_INTEGRATION 1
 
22192
_ACEOF
 
22193
 
 
22194
fi
 
22195
 
 
22196
###########################################################################
 
22197
 
 
22198
libctl_dir=$srcdir
 
22199
case $libctl_dir in .*) libctl_dir=`pwd`/$libctl_dir ;; esac
 
22200
 
 
22201
LIBCTL_DIR="$libctl_dir"
 
22202
 
 
22203
 
 
22204
GEN_CTL_IO="`pwd`/utils/gen-ctl-io"
 
22205
 
 
22206
 
 
22207
# On IRIX, basename/dirname functions require -lgen
 
22208
 
 
22209
echo "$as_me:$LINENO: checking for basename in -lgen" >&5
 
22210
echo $ECHO_N "checking for basename in -lgen... $ECHO_C" >&6
 
22211
if test "${ac_cv_lib_gen_basename+set}" = set; then
 
22212
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
22213
else
 
22214
  ac_check_lib_save_LIBS=$LIBS
 
22215
LIBS="-lgen  $LIBS"
 
22216
cat >conftest.$ac_ext <<_ACEOF
 
22217
/* confdefs.h.  */
 
22218
_ACEOF
 
22219
cat confdefs.h >>conftest.$ac_ext
 
22220
cat >>conftest.$ac_ext <<_ACEOF
 
22221
/* end confdefs.h.  */
 
22222
 
 
22223
/* Override any gcc2 internal prototype to avoid an error.  */
 
22224
#ifdef __cplusplus
 
22225
extern "C"
 
22226
#endif
 
22227
/* We use char because int might match the return type of a gcc2
 
22228
   builtin and then its argument prototype would still apply.  */
 
22229
char basename ();
 
22230
#ifdef F77_DUMMY_MAIN
 
22231
 
 
22232
#  ifdef __cplusplus
 
22233
     extern "C"
 
22234
#  endif
 
22235
   int F77_DUMMY_MAIN() { return 1; }
 
22236
 
 
22237
#endif
 
22238
int
 
22239
main ()
 
22240
{
 
22241
basename ();
 
22242
  ;
 
22243
  return 0;
 
22244
}
 
22245
_ACEOF
 
22246
rm -f conftest.$ac_objext conftest$ac_exeext
 
22247
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
22248
  (eval $ac_link) 2>conftest.er1
 
22249
  ac_status=$?
 
22250
  grep -v '^ *+' conftest.er1 >conftest.err
 
22251
  rm -f conftest.er1
 
22252
  cat conftest.err >&5
 
22253
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22254
  (exit $ac_status); } &&
 
22255
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
22256
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22257
  (eval $ac_try) 2>&5
 
22258
  ac_status=$?
 
22259
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22260
  (exit $ac_status); }; } &&
 
22261
         { ac_try='test -s conftest$ac_exeext'
 
22262
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22263
  (eval $ac_try) 2>&5
 
22264
  ac_status=$?
 
22265
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22266
  (exit $ac_status); }; }; then
 
22267
  ac_cv_lib_gen_basename=yes
 
22268
else
 
22269
  echo "$as_me: failed program was:" >&5
 
22270
sed 's/^/| /' conftest.$ac_ext >&5
 
22271
 
 
22272
ac_cv_lib_gen_basename=no
 
22273
fi
 
22274
rm -f conftest.err conftest.$ac_objext \
 
22275
      conftest$ac_exeext conftest.$ac_ext
 
22276
LIBS=$ac_check_lib_save_LIBS
 
22277
fi
 
22278
echo "$as_me:$LINENO: result: $ac_cv_lib_gen_basename" >&5
 
22279
echo "${ECHO_T}$ac_cv_lib_gen_basename" >&6
 
22280
if test $ac_cv_lib_gen_basename = yes; then
 
22281
  cat >>confdefs.h <<_ACEOF
 
22282
#define HAVE_LIBGEN 1
 
22283
_ACEOF
 
22284
 
 
22285
  LIBS="-lgen $LIBS"
 
22286
 
 
22287
fi
 
22288
 
 
22289
 
 
22290
###########################################################################
 
22291
 
 
22292
                                                  ac_config_files="$ac_config_files Makefile src/Makefile utils/Makefile examples/Makefile examples/example.scm"
 
22293
 
 
22294
          ac_config_files="$ac_config_files utils/gen-ctl-io"
4724
22295
 
4725
22296
cat >confcache <<\_ACEOF
4726
22297
# This file is a shell script that caches the results of configure
4750
22321
      # `set' does not quote correctly, so add quotes (double-quote
4751
22322
      # substitution turns \\\\ into \\, and sed turns \\ into \).
4752
22323
      sed -n \
4753
 
        "s/'/'\\\\''/g;
4754
 
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
 
22324
        "s/'/'\\\\''/g;
 
22325
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4755
22326
      ;;
4756
22327
    *)
4757
22328
      # `set' quotes correctly as required by POSIX, so do not add quotes.
4758
22329
      sed -n \
4759
 
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
 
22330
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
4760
22331
      ;;
4761
22332
    esac;
4762
22333
} |
4786
22357
# trailing colons and then remove the whole line if VPATH becomes empty
4787
22358
# (actually we leave an empty line to preserve line numbers).
4788
22359
if test "x$srcdir" = x.; then
4789
 
  ac_vpsub='/^[         ]*VPATH[        ]*=/{
 
22360
  ac_vpsub='/^[  ]*VPATH[        ]*=/{
4790
22361
s/:*\$(srcdir):*/:/;
4791
22362
s/:*\${srcdir}:*/:/;
4792
22363
s/:*@srcdir@:*/:/;
4793
 
s/^\([^=]*=[    ]*\):*/\1/;
 
22364
s/^\([^=]*=[     ]*\):*/\1/;
4794
22365
s/:*$//;
4795
 
s/^[^=]*=[      ]*$//;
 
22366
s/^[^=]*=[       ]*$//;
4796
22367
}'
4797
22368
fi
4798
22369
 
4803
22374
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
4804
22375
  # 1. Remove the extension, and $U if already installed.
4805
22376
  ac_i=`echo "$ac_i" |
4806
 
         sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
 
22377
         sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
4807
22378
  # 2. Add them.
4808
22379
  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
4809
22380
  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
4813
22384
LTLIBOBJS=$ac_ltlibobjs
4814
22385
 
4815
22386
 
 
22387
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
 
22388
  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
 
22389
Usually this means the macro was only invoked conditionally." >&5
 
22390
echo "$as_me: error: conditional \"AMDEP\" was never defined.
 
22391
Usually this means the macro was only invoked conditionally." >&2;}
 
22392
   { (exit 1); exit 1; }; }
 
22393
fi
 
22394
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
 
22395
  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
 
22396
Usually this means the macro was only invoked conditionally." >&5
 
22397
echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
 
22398
Usually this means the macro was only invoked conditionally." >&2;}
 
22399
   { (exit 1); exit 1; }; }
 
22400
fi
 
22401
if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
 
22402
  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
 
22403
Usually this means the macro was only invoked conditionally." >&5
 
22404
echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
 
22405
Usually this means the macro was only invoked conditionally." >&2;}
 
22406
   { (exit 1); exit 1; }; }
 
22407
fi
 
22408
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
 
22409
  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
 
22410
Usually this means the macro was only invoked conditionally." >&5
 
22411
echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
 
22412
Usually this means the macro was only invoked conditionally." >&2;}
 
22413
   { (exit 1); exit 1; }; }
 
22414
fi
4816
22415
 
4817
22416
: ${CONFIG_STATUS=./config.status}
4818
22417
ac_clean_files_save=$ac_clean_files
4847
22446
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
4848
22447
  set -o posix
4849
22448
fi
 
22449
DUALCASE=1; export DUALCASE # for MKS sh
4850
22450
 
4851
22451
# Support unset when possible.
4852
 
if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
 
22452
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4853
22453
  as_unset=unset
4854
22454
else
4855
22455
  as_unset=false
4868
22468
  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
4869
22469
  LC_TELEPHONE LC_TIME
4870
22470
do
4871
 
  if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
 
22471
  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
4872
22472
    eval $as_var=C; export $as_var
4873
22473
  else
4874
22474
    $as_unset $as_var
5047
22647
if mkdir -p . 2>/dev/null; then
5048
22648
  as_mkdir_p=:
5049
22649
else
 
22650
  test -d ./-p && rmdir ./-p
5050
22651
  as_mkdir_p=false
5051
22652
fi
5052
22653
 
5053
22654
as_executable_p="test -f"
5054
22655
 
5055
22656
# Sed expression to map a string onto a valid CPP name.
5056
 
as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
 
22657
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
5057
22658
 
5058
22659
# Sed expression to map a string onto a valid variable name.
5059
 
as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
 
22660
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
5060
22661
 
5061
22662
 
5062
22663
# IFS
5082
22683
} >&5
5083
22684
cat >&5 <<_CSEOF
5084
22685
 
5085
 
This file was extended by $as_me, which was
5086
 
generated by GNU Autoconf 2.57.  Invocation command line was
 
22686
This file was extended by libctl $as_me 3.0.1, which was
 
22687
generated by GNU Autoconf 2.59.  Invocation command line was
5087
22688
 
5088
22689
  CONFIG_FILES    = $CONFIG_FILES
5089
22690
  CONFIG_HEADERS  = $CONFIG_HEADERS
5127
22728
  -d, --debug      don't remove temporary files
5128
22729
      --recheck    update $as_me by reconfiguring in the same conditions
5129
22730
  --file=FILE[:TEMPLATE]
5130
 
                   instantiate the configuration file FILE
 
22731
                   instantiate the configuration file FILE
5131
22732
  --header=FILE[:TEMPLATE]
5132
 
                   instantiate the configuration header FILE
 
22733
                   instantiate the configuration header FILE
5133
22734
 
5134
22735
Configuration files:
5135
22736
$config_files
5137
22738
Configuration headers:
5138
22739
$config_headers
5139
22740
 
 
22741
Configuration commands:
 
22742
$config_commands
 
22743
 
5140
22744
Report bugs to <bug-autoconf@gnu.org>."
5141
22745
_ACEOF
5142
22746
 
5143
22747
cat >>$CONFIG_STATUS <<_ACEOF
5144
22748
ac_cs_version="\\
5145
 
config.status
5146
 
configured by $0, generated by GNU Autoconf 2.57,
 
22749
libctl config.status 3.0.1
 
22750
configured by $0, generated by GNU Autoconf 2.59,
5147
22751
  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
5148
22752
 
5149
 
Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
5150
 
Free Software Foundation, Inc.
 
22753
Copyright (C) 2003 Free Software Foundation, Inc.
5151
22754
This config.status script is free software; the Free Software Foundation
5152
22755
gives unlimited permission to copy, distribute and modify it."
5153
22756
srcdir=$srcdir
5237
22840
 
5238
22841
_ACEOF
5239
22842
 
5240
 
 
 
22843
cat >>$CONFIG_STATUS <<_ACEOF
 
22844
#
 
22845
# INIT-COMMANDS section.
 
22846
#
 
22847
 
 
22848
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
 
22849
 
 
22850
_ACEOF
5241
22851
 
5242
22852
 
5243
22853
 
5247
22857
  case "$ac_config_target" in
5248
22858
  # Handling of arguments.
5249
22859
  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
5250
 
  "base/Makefile" ) CONFIG_FILES="$CONFIG_FILES base/Makefile" ;;
 
22860
  "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
5251
22861
  "utils/Makefile" ) CONFIG_FILES="$CONFIG_FILES utils/Makefile" ;;
5252
22862
  "examples/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
 
22863
  "examples/example.scm" ) CONFIG_FILES="$CONFIG_FILES examples/example.scm" ;;
5253
22864
  "utils/gen-ctl-io" ) CONFIG_FILES="$CONFIG_FILES utils/gen-ctl-io" ;;
5254
 
  "base/ctl.h" ) CONFIG_HEADERS="$CONFIG_HEADERS base/ctl.h" ;;
5255
 
  "base/f77_func.h" ) CONFIG_HEADERS="$CONFIG_HEADERS base/f77_func.h" ;;
 
22865
  "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
 
22866
  "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
 
22867
  "src/ctl.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/ctl.h" ;;
5256
22868
  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
5257
22869
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
5258
22870
   { (exit 1); exit 1; }; };;
5266
22878
if $ac_need_defaults; then
5267
22879
  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
5268
22880
  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
 
22881
  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
5269
22882
fi
5270
22883
 
5271
22884
# Have a temporary directory for convenience.  Make it in the build tree
5337
22950
s,@ECHO_N@,$ECHO_N,;t t
5338
22951
s,@ECHO_T@,$ECHO_T,;t t
5339
22952
s,@LIBS@,$LIBS,;t t
5340
 
s,@LIBCTL_VERSION@,$LIBCTL_VERSION,;t t
5341
 
s,@CC@,$CC,;t t
5342
 
s,@CFLAGS@,$CFLAGS,;t t
5343
 
s,@LDFLAGS@,$LDFLAGS,;t t
5344
 
s,@CPPFLAGS@,$CPPFLAGS,;t t
5345
 
s,@ac_ct_CC@,$ac_ct_CC,;t t
5346
 
s,@EXEEXT@,$EXEEXT,;t t
5347
 
s,@OBJEXT@,$OBJEXT,;t t
5348
 
s,@SET_MAKE@,$SET_MAKE,;t t
5349
22953
s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
5350
22954
s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
5351
22955
s,@INSTALL_DATA@,$INSTALL_DATA,;t t
5352
 
s,@RANLIB@,$RANLIB,;t t
5353
 
s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
5354
 
s,@INDENT@,$INDENT,;t t
 
22956
s,@CYGPATH_W@,$CYGPATH_W,;t t
 
22957
s,@PACKAGE@,$PACKAGE,;t t
 
22958
s,@VERSION@,$VERSION,;t t
 
22959
s,@ACLOCAL@,$ACLOCAL,;t t
 
22960
s,@AUTOCONF@,$AUTOCONF,;t t
 
22961
s,@AUTOMAKE@,$AUTOMAKE,;t t
 
22962
s,@AUTOHEADER@,$AUTOHEADER,;t t
 
22963
s,@MAKEINFO@,$MAKEINFO,;t t
 
22964
s,@install_sh@,$install_sh,;t t
 
22965
s,@STRIP@,$STRIP,;t t
 
22966
s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
 
22967
s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
 
22968
s,@mkdir_p@,$mkdir_p,;t t
 
22969
s,@AWK@,$AWK,;t t
 
22970
s,@SET_MAKE@,$SET_MAKE,;t t
 
22971
s,@am__leading_dot@,$am__leading_dot,;t t
 
22972
s,@AMTAR@,$AMTAR,;t t
 
22973
s,@am__tar@,$am__tar,;t t
 
22974
s,@am__untar@,$am__untar,;t t
 
22975
s,@SHARED_VERSION_INFO@,$SHARED_VERSION_INFO,;t t
5355
22976
s,@build@,$build,;t t
5356
22977
s,@build_cpu@,$build_cpu,;t t
5357
22978
s,@build_vendor@,$build_vendor,;t t
5360
22981
s,@host_cpu@,$host_cpu,;t t
5361
22982
s,@host_vendor@,$host_vendor,;t t
5362
22983
s,@host_os@,$host_os,;t t
 
22984
s,@CC@,$CC,;t t
 
22985
s,@CFLAGS@,$CFLAGS,;t t
 
22986
s,@LDFLAGS@,$LDFLAGS,;t t
 
22987
s,@CPPFLAGS@,$CPPFLAGS,;t t
 
22988
s,@ac_ct_CC@,$ac_ct_CC,;t t
 
22989
s,@EXEEXT@,$EXEEXT,;t t
 
22990
s,@OBJEXT@,$OBJEXT,;t t
 
22991
s,@DEPDIR@,$DEPDIR,;t t
 
22992
s,@am__include@,$am__include,;t t
 
22993
s,@am__quote@,$am__quote,;t t
 
22994
s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
 
22995
s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
 
22996
s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
 
22997
s,@CCDEPMODE@,$CCDEPMODE,;t t
 
22998
s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
 
22999
s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
 
23000
s,@EGREP@,$EGREP,;t t
 
23001
s,@LN_S@,$LN_S,;t t
 
23002
s,@ECHO@,$ECHO,;t t
 
23003
s,@AR@,$AR,;t t
 
23004
s,@ac_ct_AR@,$ac_ct_AR,;t t
 
23005
s,@RANLIB@,$RANLIB,;t t
 
23006
s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
5363
23007
s,@CPP@,$CPP,;t t
5364
 
s,@EGREP@,$EGREP,;t t
5365
 
s,@guile_ok@,$guile_ok,;t t
5366
 
s,@HAVE_GUILE_CONFIG@,$HAVE_GUILE_CONFIG,;t t
 
23008
s,@CXX@,$CXX,;t t
 
23009
s,@CXXFLAGS@,$CXXFLAGS,;t t
 
23010
s,@ac_ct_CXX@,$ac_ct_CXX,;t t
 
23011
s,@CXXDEPMODE@,$CXXDEPMODE,;t t
 
23012
s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
 
23013
s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
 
23014
s,@CXXCPP@,$CXXCPP,;t t
5367
23015
s,@F77@,$F77,;t t
5368
23016
s,@FFLAGS@,$FFLAGS,;t t
5369
23017
s,@ac_ct_F77@,$ac_ct_F77,;t t
 
23018
s,@LIBTOOL@,$LIBTOOL,;t t
 
23019
s,@LIBCTL_VERSION@,$LIBCTL_VERSION,;t t
 
23020
s,@INDENT@,$INDENT,;t t
 
23021
s,@guile_ok@,$guile_ok,;t t
 
23022
s,@HAVE_GUILE_CONFIG@,$HAVE_GUILE_CONFIG,;t t
5370
23023
s,@FLIBS@,$FLIBS,;t t
5371
23024
s,@LIBCTL_DIR@,$LIBCTL_DIR,;t t
5372
23025
s,@GEN_CTL_IO@,$GEN_CTL_IO,;t t
5401
23054
      (echo ':t
5402
23055
  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
5403
23056
      if test -z "$ac_sed_cmds"; then
5404
 
        ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
 
23057
        ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
5405
23058
      else
5406
 
        ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
 
23059
        ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
5407
23060
      fi
5408
23061
      ac_sed_frag=`expr $ac_sed_frag + 1`
5409
23062
      ac_beg=$ac_end
5421
23074
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5422
23075
  case $ac_file in
5423
23076
  - | *:- | *:-:* ) # input from stdin
5424
 
        cat >$tmp/stdin
5425
 
        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5426
 
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
 
23077
        cat >$tmp/stdin
 
23078
        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
 
23079
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5427
23080
  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5428
 
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
 
23081
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5429
23082
  * )   ac_file_in=$ac_file.in ;;
5430
23083
  esac
5431
23084
 
5432
23085
  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
5433
23086
  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
5434
23087
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5435
 
         X"$ac_file" : 'X\(//\)[^/]' \| \
5436
 
         X"$ac_file" : 'X\(//\)$' \| \
5437
 
         X"$ac_file" : 'X\(/\)' \| \
5438
 
         .     : '\(.\)' 2>/dev/null ||
 
23088
         X"$ac_file" : 'X\(//\)[^/]' \| \
 
23089
         X"$ac_file" : 'X\(//\)$' \| \
 
23090
         X"$ac_file" : 'X\(/\)' \| \
 
23091
         .     : '\(.\)' 2>/dev/null ||
5439
23092
echo X"$ac_file" |
5440
23093
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5441
23094
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5451
23104
      as_dirs="$as_dir $as_dirs"
5452
23105
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
5453
23106
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5454
 
         X"$as_dir" : 'X\(//\)[^/]' \| \
5455
 
         X"$as_dir" : 'X\(//\)$' \| \
5456
 
         X"$as_dir" : 'X\(/\)' \| \
5457
 
         .     : '\(.\)' 2>/dev/null ||
 
23107
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
23108
         X"$as_dir" : 'X\(//\)$' \| \
 
23109
         X"$as_dir" : 'X\(/\)' \| \
 
23110
         .     : '\(.\)' 2>/dev/null ||
5458
23111
echo X"$as_dir" |
5459
23112
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5460
23113
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5492
23145
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
5493
23146
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
5494
23147
esac
5495
 
# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
5496
 
# absolute.
5497
 
ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
5498
 
ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
5499
 
ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
5500
 
ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
 
23148
 
 
23149
# Do not use `cd foo && pwd` to compute absolute paths, because
 
23150
# the directories may not exist.
 
23151
case `pwd` in
 
23152
.) ac_abs_builddir="$ac_dir";;
 
23153
*)
 
23154
  case "$ac_dir" in
 
23155
  .) ac_abs_builddir=`pwd`;;
 
23156
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
 
23157
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
 
23158
  esac;;
 
23159
esac
 
23160
case $ac_abs_builddir in
 
23161
.) ac_abs_top_builddir=${ac_top_builddir}.;;
 
23162
*)
 
23163
  case ${ac_top_builddir}. in
 
23164
  .) ac_abs_top_builddir=$ac_abs_builddir;;
 
23165
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
 
23166
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
 
23167
  esac;;
 
23168
esac
 
23169
case $ac_abs_builddir in
 
23170
.) ac_abs_srcdir=$ac_srcdir;;
 
23171
*)
 
23172
  case $ac_srcdir in
 
23173
  .) ac_abs_srcdir=$ac_abs_builddir;;
 
23174
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
 
23175
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
 
23176
  esac;;
 
23177
esac
 
23178
case $ac_abs_builddir in
 
23179
.) ac_abs_top_srcdir=$ac_top_srcdir;;
 
23180
*)
 
23181
  case $ac_top_srcdir in
 
23182
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
 
23183
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
 
23184
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
 
23185
  esac;;
 
23186
esac
5501
23187
 
5502
23188
 
5503
23189
  case $INSTALL in
5505
23191
  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
5506
23192
  esac
5507
23193
 
5508
 
  if test x"$ac_file" != x-; then
5509
 
    { echo "$as_me:$LINENO: creating $ac_file" >&5
5510
 
echo "$as_me: creating $ac_file" >&6;}
5511
 
    rm -f "$ac_file"
5512
 
  fi
5513
23194
  # Let's still pretend it is `configure' which instantiates (i.e., don't
5514
23195
  # use $as_me), people would be surprised to read:
5515
23196
  #    /* config.h.  Generated by config.status.  */
5519
23200
    configure_input="$ac_file.  "
5520
23201
  fi
5521
23202
  configure_input=$configure_input"Generated from `echo $ac_file_in |
5522
 
                                     sed 's,.*/,,'` by configure."
 
23203
                                     sed 's,.*/,,'` by configure."
5523
23204
 
5524
23205
  # First look for the input files in the build tree, otherwise in the
5525
23206
  # src tree.
5528
23209
      case $f in
5529
23210
      -) echo $tmp/stdin ;;
5530
23211
      [\\/$]*)
5531
 
         # Absolute (can't be DOS-style, as IFS=:)
5532
 
         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
 
23212
         # Absolute (can't be DOS-style, as IFS=:)
 
23213
         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5533
23214
echo "$as_me: error: cannot find input file: $f" >&2;}
5534
23215
   { (exit 1); exit 1; }; }
5535
 
         echo $f;;
 
23216
         echo "$f";;
5536
23217
      *) # Relative
5537
 
         if test -f "$f"; then
5538
 
           # Build tree
5539
 
           echo $f
5540
 
         elif test -f "$srcdir/$f"; then
5541
 
           # Source tree
5542
 
           echo $srcdir/$f
5543
 
         else
5544
 
           # /dev/null tree
5545
 
           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
 
23218
         if test -f "$f"; then
 
23219
           # Build tree
 
23220
           echo "$f"
 
23221
         elif test -f "$srcdir/$f"; then
 
23222
           # Source tree
 
23223
           echo "$srcdir/$f"
 
23224
         else
 
23225
           # /dev/null tree
 
23226
           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5546
23227
echo "$as_me: error: cannot find input file: $f" >&2;}
5547
23228
   { (exit 1); exit 1; }; }
5548
 
         fi;;
 
23229
         fi;;
5549
23230
      esac
5550
23231
    done` || { (exit 1); exit 1; }
 
23232
 
 
23233
  if test x"$ac_file" != x-; then
 
23234
    { echo "$as_me:$LINENO: creating $ac_file" >&5
 
23235
echo "$as_me: creating $ac_file" >&6;}
 
23236
    rm -f "$ac_file"
 
23237
  fi
5551
23238
_ACEOF
5552
23239
cat >>$CONFIG_STATUS <<_ACEOF
5553
23240
  sed "$ac_vpsub
5575
23262
    rm -f $tmp/out
5576
23263
  fi
5577
23264
 
 
23265
  # Run the commands associated with the file.
 
23266
  case $ac_file in
 
23267
    utils/gen-ctl-io ) chmod u+x utils/gen-ctl-io ;;
 
23268
  esac
5578
23269
done
5579
23270
_ACEOF
5580
23271
cat >>$CONFIG_STATUS <<\_ACEOF
5587
23278
# NAME is the cpp macro being defined and VALUE is the value it is being given.
5588
23279
#
5589
23280
# ac_d sets the value in "#define NAME VALUE" lines.
5590
 
ac_dA='s,^\([   ]*\)#\([        ]*define[       ][      ]*\)'
5591
 
ac_dB='[        ].*$,\1#\2'
 
23281
ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
 
23282
ac_dB='[         ].*$,\1#\2'
5592
23283
ac_dC=' '
5593
23284
ac_dD=',;t'
5594
23285
# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
5595
 
ac_uA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
 
23286
ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
5596
23287
ac_uB='$,\1#\2define\3'
5597
23288
ac_uC=' '
5598
23289
ac_uD=',;t'
5601
23292
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5602
23293
  case $ac_file in
5603
23294
  - | *:- | *:-:* ) # input from stdin
5604
 
        cat >$tmp/stdin
5605
 
        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5606
 
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
 
23295
        cat >$tmp/stdin
 
23296
        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
 
23297
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5607
23298
  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5608
 
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
 
23299
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5609
23300
  * )   ac_file_in=$ac_file.in ;;
5610
23301
  esac
5611
23302
 
5619
23310
      case $f in
5620
23311
      -) echo $tmp/stdin ;;
5621
23312
      [\\/$]*)
5622
 
         # Absolute (can't be DOS-style, as IFS=:)
5623
 
         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
 
23313
         # Absolute (can't be DOS-style, as IFS=:)
 
23314
         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5624
23315
echo "$as_me: error: cannot find input file: $f" >&2;}
5625
23316
   { (exit 1); exit 1; }; }
5626
 
         echo $f;;
 
23317
         # Do quote $f, to prevent DOS paths from being IFS'd.
 
23318
         echo "$f";;
5627
23319
      *) # Relative
5628
 
         if test -f "$f"; then
5629
 
           # Build tree
5630
 
           echo $f
5631
 
         elif test -f "$srcdir/$f"; then
5632
 
           # Source tree
5633
 
           echo $srcdir/$f
5634
 
         else
5635
 
           # /dev/null tree
5636
 
           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
 
23320
         if test -f "$f"; then
 
23321
           # Build tree
 
23322
           echo "$f"
 
23323
         elif test -f "$srcdir/$f"; then
 
23324
           # Source tree
 
23325
           echo "$srcdir/$f"
 
23326
         else
 
23327
           # /dev/null tree
 
23328
           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5637
23329
echo "$as_me: error: cannot find input file: $f" >&2;}
5638
23330
   { (exit 1); exit 1; }; }
5639
 
         fi;;
 
23331
         fi;;
5640
23332
      esac
5641
23333
    done` || { (exit 1); exit 1; }
5642
23334
  # Remove the trailing spaces.
5643
 
  sed 's/[      ]*$//' $ac_file_inputs >$tmp/in
 
23335
  sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
5644
23336
 
5645
23337
_ACEOF
5646
23338
 
5663
23355
s,[\\$`],\\&,g
5664
23356
t clear
5665
23357
: clear
5666
 
s,^[    ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
 
23358
s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
5667
23359
t end
5668
 
s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
 
23360
s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
5669
23361
: end
5670
23362
_ACEOF
5671
23363
# If some macros were called several times there might be several times
5679
23371
# example, in the case of _POSIX_SOURCE, which is predefined and required
5680
23372
# on some systems where configure will not decide to define it.
5681
23373
cat >>conftest.undefs <<\_ACEOF
5682
 
s,^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
 
23374
s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
5683
23375
_ACEOF
5684
23376
 
5685
23377
# Break up conftest.defines because some shells have a limit on the size
5686
23378
# of here documents, and old seds have small limits too (100 cmds).
5687
23379
echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
5688
 
echo '  if grep "^[     ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
 
23380
echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
5689
23381
echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
5690
23382
echo '  :' >>$CONFIG_STATUS
5691
23383
rm -f conftest.tail
5694
23386
  # Write a limited-size here document to $tmp/defines.sed.
5695
23387
  echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
5696
23388
  # Speed up: don't consider the non `#define' lines.
5697
 
  echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
 
23389
  echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
5698
23390
  # Work around the forget-to-reset-the-flag bug.
5699
23391
  echo 't clr' >>$CONFIG_STATUS
5700
23392
  echo ': clr' >>$CONFIG_STATUS
5721
23413
  # Write a limited-size here document to $tmp/undefs.sed.
5722
23414
  echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
5723
23415
  # Speed up: don't consider the non `#undef'
5724
 
  echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
 
23416
  echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
5725
23417
  # Work around the forget-to-reset-the-flag bug.
5726
23418
  echo 't clr' >>$CONFIG_STATUS
5727
23419
  echo ': clr' >>$CONFIG_STATUS
5755
23447
    else
5756
23448
      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
5757
23449
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5758
 
         X"$ac_file" : 'X\(//\)[^/]' \| \
5759
 
         X"$ac_file" : 'X\(//\)$' \| \
5760
 
         X"$ac_file" : 'X\(/\)' \| \
5761
 
         .     : '\(.\)' 2>/dev/null ||
 
23450
         X"$ac_file" : 'X\(//\)[^/]' \| \
 
23451
         X"$ac_file" : 'X\(//\)$' \| \
 
23452
         X"$ac_file" : 'X\(/\)' \| \
 
23453
         .     : '\(.\)' 2>/dev/null ||
5762
23454
echo X"$ac_file" |
5763
23455
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5764
23456
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5774
23466
      as_dirs="$as_dir $as_dirs"
5775
23467
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
5776
23468
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5777
 
         X"$as_dir" : 'X\(//\)[^/]' \| \
5778
 
         X"$as_dir" : 'X\(//\)$' \| \
5779
 
         X"$as_dir" : 'X\(/\)' \| \
5780
 
         .     : '\(.\)' 2>/dev/null ||
 
23469
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
23470
         X"$as_dir" : 'X\(//\)$' \| \
 
23471
         X"$as_dir" : 'X\(/\)' \| \
 
23472
         .     : '\(.\)' 2>/dev/null ||
5781
23473
echo X"$as_dir" |
5782
23474
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5783
23475
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5797
23489
    cat $tmp/config.h
5798
23490
    rm -f $tmp/config.h
5799
23491
  fi
 
23492
# Compute $ac_file's index in $config_headers.
 
23493
_am_stamp_count=1
 
23494
for _am_header in $config_headers :; do
 
23495
  case $_am_header in
 
23496
    $ac_file | $ac_file:* )
 
23497
      break ;;
 
23498
    * )
 
23499
      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
 
23500
  esac
 
23501
done
 
23502
echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
 
23503
$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
23504
         X$ac_file : 'X\(//\)[^/]' \| \
 
23505
         X$ac_file : 'X\(//\)$' \| \
 
23506
         X$ac_file : 'X\(/\)' \| \
 
23507
         .     : '\(.\)' 2>/dev/null ||
 
23508
echo X$ac_file |
 
23509
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
23510
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
23511
          /^X\(\/\/\)$/{ s//\1/; q; }
 
23512
          /^X\(\/\).*/{ s//\1/; q; }
 
23513
          s/.*/./; q'`/stamp-h$_am_stamp_count
 
23514
done
 
23515
_ACEOF
 
23516
cat >>$CONFIG_STATUS <<\_ACEOF
 
23517
 
 
23518
#
 
23519
# CONFIG_COMMANDS section.
 
23520
#
 
23521
for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
 
23522
  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
 
23523
  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
 
23524
  ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
 
23525
$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
23526
         X"$ac_dest" : 'X\(//\)[^/]' \| \
 
23527
         X"$ac_dest" : 'X\(//\)$' \| \
 
23528
         X"$ac_dest" : 'X\(/\)' \| \
 
23529
         .     : '\(.\)' 2>/dev/null ||
 
23530
echo X"$ac_dest" |
 
23531
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
23532
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
23533
          /^X\(\/\/\)$/{ s//\1/; q; }
 
23534
          /^X\(\/\).*/{ s//\1/; q; }
 
23535
          s/.*/./; q'`
 
23536
  { if $as_mkdir_p; then
 
23537
    mkdir -p "$ac_dir"
 
23538
  else
 
23539
    as_dir="$ac_dir"
 
23540
    as_dirs=
 
23541
    while test ! -d "$as_dir"; do
 
23542
      as_dirs="$as_dir $as_dirs"
 
23543
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
 
23544
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
23545
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
23546
         X"$as_dir" : 'X\(//\)$' \| \
 
23547
         X"$as_dir" : 'X\(/\)' \| \
 
23548
         .     : '\(.\)' 2>/dev/null ||
 
23549
echo X"$as_dir" |
 
23550
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
23551
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
23552
          /^X\(\/\/\)$/{ s//\1/; q; }
 
23553
          /^X\(\/\).*/{ s//\1/; q; }
 
23554
          s/.*/./; q'`
 
23555
    done
 
23556
    test ! -n "$as_dirs" || mkdir $as_dirs
 
23557
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
 
23558
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
 
23559
   { (exit 1); exit 1; }; }; }
 
23560
 
 
23561
  ac_builddir=.
 
23562
 
 
23563
if test "$ac_dir" != .; then
 
23564
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
 
23565
  # A "../" for each directory in $ac_dir_suffix.
 
23566
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
 
23567
else
 
23568
  ac_dir_suffix= ac_top_builddir=
 
23569
fi
 
23570
 
 
23571
case $srcdir in
 
23572
  .)  # No --srcdir option.  We are building in place.
 
23573
    ac_srcdir=.
 
23574
    if test -z "$ac_top_builddir"; then
 
23575
       ac_top_srcdir=.
 
23576
    else
 
23577
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
 
23578
    fi ;;
 
23579
  [\\/]* | ?:[\\/]* )  # Absolute path.
 
23580
    ac_srcdir=$srcdir$ac_dir_suffix;
 
23581
    ac_top_srcdir=$srcdir ;;
 
23582
  *) # Relative path.
 
23583
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
 
23584
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
 
23585
esac
 
23586
 
 
23587
# Do not use `cd foo && pwd` to compute absolute paths, because
 
23588
# the directories may not exist.
 
23589
case `pwd` in
 
23590
.) ac_abs_builddir="$ac_dir";;
 
23591
*)
 
23592
  case "$ac_dir" in
 
23593
  .) ac_abs_builddir=`pwd`;;
 
23594
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
 
23595
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
 
23596
  esac;;
 
23597
esac
 
23598
case $ac_abs_builddir in
 
23599
.) ac_abs_top_builddir=${ac_top_builddir}.;;
 
23600
*)
 
23601
  case ${ac_top_builddir}. in
 
23602
  .) ac_abs_top_builddir=$ac_abs_builddir;;
 
23603
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
 
23604
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
 
23605
  esac;;
 
23606
esac
 
23607
case $ac_abs_builddir in
 
23608
.) ac_abs_srcdir=$ac_srcdir;;
 
23609
*)
 
23610
  case $ac_srcdir in
 
23611
  .) ac_abs_srcdir=$ac_abs_builddir;;
 
23612
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
 
23613
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
 
23614
  esac;;
 
23615
esac
 
23616
case $ac_abs_builddir in
 
23617
.) ac_abs_top_srcdir=$ac_top_srcdir;;
 
23618
*)
 
23619
  case $ac_top_srcdir in
 
23620
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
 
23621
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
 
23622
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
 
23623
  esac;;
 
23624
esac
 
23625
 
 
23626
 
 
23627
  { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
 
23628
echo "$as_me: executing $ac_dest commands" >&6;}
 
23629
  case $ac_dest in
 
23630
    depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
 
23631
  # Strip MF so we end up with the name of the file.
 
23632
  mf=`echo "$mf" | sed -e 's/:.*$//'`
 
23633
  # Check whether this is an Automake generated Makefile or not.
 
23634
  # We used to match only the files named `Makefile.in', but
 
23635
  # some people rename them; so instead we look at the file content.
 
23636
  # Grep'ing the first line is not enough: some people post-process
 
23637
  # each Makefile.in and add a new line on top of each file to say so.
 
23638
  # So let's grep whole file.
 
23639
  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
 
23640
    dirpart=`(dirname "$mf") 2>/dev/null ||
 
23641
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
23642
         X"$mf" : 'X\(//\)[^/]' \| \
 
23643
         X"$mf" : 'X\(//\)$' \| \
 
23644
         X"$mf" : 'X\(/\)' \| \
 
23645
         .     : '\(.\)' 2>/dev/null ||
 
23646
echo X"$mf" |
 
23647
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
23648
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
23649
          /^X\(\/\/\)$/{ s//\1/; q; }
 
23650
          /^X\(\/\).*/{ s//\1/; q; }
 
23651
          s/.*/./; q'`
 
23652
  else
 
23653
    continue
 
23654
  fi
 
23655
  # Extract the definition of DEPDIR, am__include, and am__quote
 
23656
  # from the Makefile without running `make'.
 
23657
  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
 
23658
  test -z "$DEPDIR" && continue
 
23659
  am__include=`sed -n 's/^am__include = //p' < "$mf"`
 
23660
  test -z "am__include" && continue
 
23661
  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
 
23662
  # When using ansi2knr, U may be empty or an underscore; expand it
 
23663
  U=`sed -n 's/^U = //p' < "$mf"`
 
23664
  # Find all dependency output files, they are included files with
 
23665
  # $(DEPDIR) in their names.  We invoke sed twice because it is the
 
23666
  # simplest approach to changing $(DEPDIR) to its actual value in the
 
23667
  # expansion.
 
23668
  for file in `sed -n "
 
23669
    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
 
23670
       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
 
23671
    # Make sure the directory exists.
 
23672
    test -f "$dirpart/$file" && continue
 
23673
    fdir=`(dirname "$file") 2>/dev/null ||
 
23674
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
23675
         X"$file" : 'X\(//\)[^/]' \| \
 
23676
         X"$file" : 'X\(//\)$' \| \
 
23677
         X"$file" : 'X\(/\)' \| \
 
23678
         .     : '\(.\)' 2>/dev/null ||
 
23679
echo X"$file" |
 
23680
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
23681
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
23682
          /^X\(\/\/\)$/{ s//\1/; q; }
 
23683
          /^X\(\/\).*/{ s//\1/; q; }
 
23684
          s/.*/./; q'`
 
23685
    { if $as_mkdir_p; then
 
23686
    mkdir -p $dirpart/$fdir
 
23687
  else
 
23688
    as_dir=$dirpart/$fdir
 
23689
    as_dirs=
 
23690
    while test ! -d "$as_dir"; do
 
23691
      as_dirs="$as_dir $as_dirs"
 
23692
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
 
23693
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
23694
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
23695
         X"$as_dir" : 'X\(//\)$' \| \
 
23696
         X"$as_dir" : 'X\(/\)' \| \
 
23697
         .     : '\(.\)' 2>/dev/null ||
 
23698
echo X"$as_dir" |
 
23699
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
23700
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
23701
          /^X\(\/\/\)$/{ s//\1/; q; }
 
23702
          /^X\(\/\).*/{ s//\1/; q; }
 
23703
          s/.*/./; q'`
 
23704
    done
 
23705
    test ! -n "$as_dirs" || mkdir $as_dirs
 
23706
  fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
 
23707
echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
 
23708
   { (exit 1); exit 1; }; }; }
 
23709
 
 
23710
    # echo "creating $dirpart/$file"
 
23711
    echo '# dummy' > "$dirpart/$file"
 
23712
  done
 
23713
done
 
23714
 ;;
 
23715
  esac
5800
23716
done
5801
23717
_ACEOF
5802
23718