~ubuntu-branches/debian/squeeze/protobuf/squeeze

« back to all changes in this revision

Viewing changes to configure

  • Committer: Bazaar Package Importer
  • Author(s): Julien Cristau
  • Date: 2009-06-02 16:19:00 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20090602161900-vm176i3ryt35yk91
Tags: 2.0.3-2.2
* Non-maintainer upload.
* Fix FTBFS from -2.1: don't fail when we can't clean up the java build,
  such as when openjdk isn't installed.
* Disable parallel builds, because libtool is made of fail (if binary-arch
  and build-indep run concurrently, we relink a library while it's being
  used; that doesn't work so well).

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.59 for protobuf 2.0.0beta.
 
3
# Generated by GNU Autoconf 2.59 for protobuf 2.0.3.
4
4
#
5
5
# Report bugs to <protobuf@googlegroups.com>.
6
6
#
247
247
# Check that we are running under the correct shell.
248
248
SHELL=${CONFIG_SHELL-/bin/sh}
249
249
 
250
 
case X$ECHO in
 
250
case X$lt_ECHO in
251
251
X*--fallback-echo)
252
252
  # Remove one level of quotation (which was required for Make).
253
 
  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
 
253
  ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
254
254
  ;;
255
255
esac
256
256
 
257
 
echo=${ECHO-echo}
 
257
ECHO=${lt_ECHO-echo}
258
258
if test "X$1" = X--no-reexec; then
259
259
  # Discard the --no-reexec flag, and continue.
260
260
  shift
261
261
elif test "X$1" = X--fallback-echo; then
262
262
  # Avoid inline document here, it may be left over
263
263
  :
264
 
elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
265
 
  # Yippee, $echo works!
 
264
elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
 
265
  # Yippee, $ECHO works!
266
266
  :
267
267
else
268
268
  # Restart under the correct shell.
272
272
if test "X$1" = X--fallback-echo; then
273
273
  # used as fallback echo
274
274
  shift
275
 
  cat <<EOF
 
275
  cat <<_LT_EOF
276
276
$*
277
 
EOF
 
277
_LT_EOF
278
278
  exit 0
279
279
fi
280
280
 
282
282
# if CDPATH is set.
283
283
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
284
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
 
285
if test -z "$lt_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
         { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
 
292
      then
 
293
        break
 
294
      fi
 
295
    done
 
296
  fi
 
297
 
 
298
  if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
 
299
     echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
 
300
     test "X$echo_testing_string" = "X$echo_test_string"; then
 
301
    :
 
302
  else
 
303
    # The Solaris, AIX, and Digital Unix default echo programs unquote
 
304
    # backslashes.  This makes it impossible to quote backslashes using
 
305
    #   echo "$something" | sed 's/\\/\\\\/g'
 
306
    #
 
307
    # So, first we look for a working echo in the user's PATH.
 
308
 
 
309
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
310
    for dir in $PATH /usr/ucb; do
 
311
      IFS="$lt_save_ifs"
 
312
      if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
 
313
         test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
 
314
         echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
 
315
         test "X$echo_testing_string" = "X$echo_test_string"; then
 
316
        ECHO="$dir/echo"
 
317
        break
 
318
      fi
 
319
    done
312
320
    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
321
 
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"
 
322
    if test "X$ECHO" = Xecho; then
 
323
      # We didn't find a better echo, so look for alternatives.
 
324
      if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
 
325
         echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
 
326
         test "X$echo_testing_string" = "X$echo_test_string"; then
 
327
        # This shell has a builtin print -r that does the trick.
 
328
        ECHO='print -r'
 
329
      elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
 
330
           test "X$CONFIG_SHELL" != X/bin/ksh; then
 
331
        # If we have ksh, try running configure again with it.
 
332
        ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
 
333
        export ORIGINAL_CONFIG_SHELL
 
334
        CONFIG_SHELL=/bin/ksh
 
335
        export CONFIG_SHELL
 
336
        exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
360
337
      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
 
338
        # Try using printf.
 
339
        ECHO='printf %s\n'
 
340
        if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
 
341
           echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
 
342
           test "X$echo_testing_string" = "X$echo_test_string"; then
 
343
          # Cool, printf works
 
344
          :
 
345
        elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
 
346
             test "X$echo_testing_string" = 'X\t' &&
 
347
             echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
 
348
             test "X$echo_testing_string" = "X$echo_test_string"; then
 
349
          CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
 
350
          export CONFIG_SHELL
 
351
          SHELL="$CONFIG_SHELL"
 
352
          export SHELL
 
353
          ECHO="$CONFIG_SHELL $0 --fallback-echo"
 
354
        elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
 
355
             test "X$echo_testing_string" = 'X\t' &&
 
356
             echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
 
357
             test "X$echo_testing_string" = "X$echo_test_string"; then
 
358
          ECHO="$CONFIG_SHELL $0 --fallback-echo"
 
359
        else
 
360
          # maybe with a smaller string...
 
361
          prev=:
 
362
 
 
363
          for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
 
364
            if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
 
365
            then
 
366
              break
 
367
            fi
 
368
            prev="$cmd"
 
369
          done
 
370
 
 
371
          if test "$prev" != 'sed 50q "$0"'; then
 
372
            echo_test_string=`eval $prev`
 
373
            export echo_test_string
 
374
            exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
 
375
          else
 
376
            # Oops.  We lost completely, so just stick with echo.
 
377
            ECHO=echo
368
378
          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
 
379
        fi
380
380
      fi
381
381
    fi
382
382
  fi
383
383
fi
384
 
fi
385
384
 
386
385
# Copy echo and quote the copy suitably for passing to libtool from
387
386
# 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"
 
387
lt_ECHO=$ECHO
 
388
if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
 
389
   lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
391
390
fi
392
391
 
393
392
 
394
393
 
395
394
 
396
 
tagnames=${tagnames+${tagnames},}CXX
397
 
 
398
 
tagnames=${tagnames+${tagnames},}F77
399
 
 
400
395
# Name of the host.
401
396
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
402
397
# so uname gets run too.
423
418
# Identity of this package.
424
419
PACKAGE_NAME='protobuf'
425
420
PACKAGE_TARNAME='protobuf'
426
 
PACKAGE_VERSION='2.0.0beta'
427
 
PACKAGE_STRING='protobuf 2.0.0beta'
 
421
PACKAGE_VERSION='2.0.3'
 
422
PACKAGE_STRING='protobuf 2.0.3'
428
423
PACKAGE_BUGREPORT='protobuf@googlegroups.com'
429
424
 
430
425
ac_unique_file="src/google/protobuf/message.cc"
465
460
# include <unistd.h>
466
461
#endif"
467
462
 
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 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 CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE build build_cpu build_vendor build_os host host_cpu host_vendor host_os EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL GCC_TRUE GCC_FALSE LIBOBJS POW_LIB acx_pthread_config PTHREAD_CC PTHREAD_LIBS PTHREAD_CFLAGS LTLIBOBJS'
 
463
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 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 CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CPP EGREP LIBTOOL build build_cpu build_vendor build_os host host_cpu host_vendor host_os SED FGREP GREP LD DUMPBIN ac_ct_DUMPBIN NM LN_S AR ac_ct_AR RANLIB ac_ct_RANLIB lt_ECHO DSYMUTIL ac_ct_DSYMUTIL NMEDIT ac_ct_NMEDIT LIPO ac_ct_LIPO OTOOL ac_ct_OTOOL OTOOL64 ac_ct_OTOOL64 CXXCPP GCC_TRUE GCC_FALSE LIBOBJS POW_LIB acx_pthread_config PTHREAD_CC PTHREAD_LIBS PTHREAD_CFLAGS LTLIBOBJS'
469
464
ac_subst_files=''
470
465
 
471
466
# Initialize some variables set by options.
938
933
ac_env_CXXCPP_value=$CXXCPP
939
934
ac_cv_env_CXXCPP_set=${CXXCPP+set}
940
935
ac_cv_env_CXXCPP_value=$CXXCPP
941
 
ac_env_F77_set=${F77+set}
942
 
ac_env_F77_value=$F77
943
 
ac_cv_env_F77_set=${F77+set}
944
 
ac_cv_env_F77_value=$F77
945
 
ac_env_FFLAGS_set=${FFLAGS+set}
946
 
ac_env_FFLAGS_value=$FFLAGS
947
 
ac_cv_env_FFLAGS_set=${FFLAGS+set}
948
 
ac_cv_env_FFLAGS_value=$FFLAGS
949
936
 
950
937
#
951
938
# Report the --help message.
954
941
  # Omit some internal or obsolete options to make the list less imposing.
955
942
  # This message is too long to be a string in the A/UX 3.1 sh.
956
943
  cat <<_ACEOF
957
 
\`configure' configures protobuf 2.0.0beta to adapt to many kinds of systems.
 
944
\`configure' configures protobuf 2.0.3 to adapt to many kinds of systems.
958
945
 
959
946
Usage: $0 [OPTION]... [VAR=VALUE]...
960
947
 
1020
1007
 
1021
1008
if test -n "$ac_init_help"; then
1022
1009
  case $ac_init_help in
1023
 
     short | recursive ) echo "Configuration of protobuf 2.0.0beta:";;
 
1010
     short | recursive ) echo "Configuration of protobuf 2.0.3:";;
1024
1011
   esac
1025
1012
  cat <<\_ACEOF
1026
1013
 
1040
1027
Optional Packages:
1041
1028
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1042
1029
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1043
 
  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1044
1030
  --with-pic              try to use only PIC/non-PIC objects [default=use
1045
1031
                          both]
1046
 
  --with-tags[=TAGS]
1047
 
                          include additional configurations [automatic]
 
1032
  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1048
1033
 
1049
1034
Some influential environment variables:
1050
1035
  CC          C compiler command
1057
1042
  CXXFLAGS    C++ compiler flags
1058
1043
  CPP         C preprocessor
1059
1044
  CXXCPP      C++ preprocessor
1060
 
  F77         Fortran 77 compiler command
1061
 
  FFLAGS      Fortran 77 compiler flags
1062
1045
 
1063
1046
Use these variables to override the choices made by `configure' or to help
1064
1047
it to find libraries and programs with nonstandard names/locations.
1159
1142
test -n "$ac_init_help" && exit 0
1160
1143
if $ac_init_version; then
1161
1144
  cat <<\_ACEOF
1162
 
protobuf configure 2.0.0beta
 
1145
protobuf configure 2.0.3
1163
1146
generated by GNU Autoconf 2.59
1164
1147
 
1165
1148
Copyright (C) 2003 Free Software Foundation, Inc.
1173
1156
This file contains any messages produced by compilers while
1174
1157
running configure, to aid debugging if configure makes a mistake.
1175
1158
 
1176
 
It was created by protobuf $as_me 2.0.0beta, which was
 
1159
It was created by protobuf $as_me 2.0.3, which was
1177
1160
generated by GNU Autoconf 2.59.  Invocation command line was
1178
1161
 
1179
1162
  $ $0 $@
1513
1496
 
1514
1497
          ac_config_headers="$ac_config_headers config.h"
1515
1498
 
 
1499
case m4 in
 
1500
  [\\/]* | ?:[\\/]* ) ac_macro_dir=m4         ;;
 
1501
  *)                      ac_macro_dir=$srcdir/m4 ;;
 
1502
esac
 
1503
if test -d "$ac_macro_dir"; then :
 
1504
else
 
1505
  { { echo "$as_me:$LINENO: error: cannot find macro directory \`m4'" >&5
 
1506
echo "$as_me: error: cannot find macro directory \`m4'" >&2;}
 
1507
   { (exit 1); exit 1; }; }
 
1508
fi
 
1509
 
1516
1510
am__api_version="1.9"
1517
1511
ac_aux_dir=
1518
1512
for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1820
1814
 
1821
1815
# Define the identity of the package.
1822
1816
 PACKAGE='protobuf'
1823
 
 VERSION='2.0.0beta'
 
1817
 VERSION='2.0.3'
1824
1818
 
1825
1819
 
1826
1820
cat >>confdefs.h <<_ACEOF
3510
3504
fi
3511
3505
 
3512
3506
 
3513
 
# Check whether --enable-shared or --disable-shared was given.
3514
 
if test "${enable_shared+set}" = set; then
3515
 
  enableval="$enable_shared"
3516
 
  p=${PACKAGE-default}
3517
 
    case $enableval in
3518
 
    yes) enable_shared=yes ;;
3519
 
    no) enable_shared=no ;;
3520
 
    *)
3521
 
      enable_shared=no
3522
 
      # Look at the argument we got.  We use all the common list separators.
3523
 
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3524
 
      for pkg in $enableval; do
3525
 
        IFS="$lt_save_ifs"
3526
 
        if test "X$pkg" = "X$p"; then
3527
 
          enable_shared=yes
3528
 
        fi
3529
 
      done
3530
 
      IFS="$lt_save_ifs"
3531
 
      ;;
3532
 
    esac
3533
 
else
3534
 
  enable_shared=yes
3535
 
fi;
3536
 
 
3537
 
# Check whether --enable-static or --disable-static was given.
3538
 
if test "${enable_static+set}" = set; then
3539
 
  enableval="$enable_static"
3540
 
  p=${PACKAGE-default}
3541
 
    case $enableval in
3542
 
    yes) enable_static=yes ;;
3543
 
    no) enable_static=no ;;
3544
 
    *)
3545
 
     enable_static=no
3546
 
      # Look at the argument we got.  We use all the common list separators.
3547
 
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3548
 
      for pkg in $enableval; do
3549
 
        IFS="$lt_save_ifs"
3550
 
        if test "X$pkg" = "X$p"; then
3551
 
          enable_static=yes
3552
 
        fi
3553
 
      done
3554
 
      IFS="$lt_save_ifs"
3555
 
      ;;
3556
 
    esac
3557
 
else
3558
 
  enable_static=yes
3559
 
fi;
3560
 
 
3561
 
# Check whether --enable-fast-install or --disable-fast-install was given.
3562
 
if test "${enable_fast_install+set}" = set; then
3563
 
  enableval="$enable_fast_install"
3564
 
  p=${PACKAGE-default}
3565
 
    case $enableval in
3566
 
    yes) enable_fast_install=yes ;;
3567
 
    no) enable_fast_install=no ;;
3568
 
    *)
3569
 
      enable_fast_install=no
3570
 
      # Look at the argument we got.  We use all the common list separators.
3571
 
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3572
 
      for pkg in $enableval; do
3573
 
        IFS="$lt_save_ifs"
3574
 
        if test "X$pkg" = "X$p"; then
3575
 
          enable_fast_install=yes
3576
 
        fi
3577
 
      done
3578
 
      IFS="$lt_save_ifs"
3579
 
      ;;
3580
 
    esac
3581
 
else
3582
 
  enable_fast_install=yes
3583
 
fi;
 
3507
 
 
3508
cat >>confdefs.h <<\_ACEOF
 
3509
#define _GNU_SOURCE 1
 
3510
_ACEOF
 
3511
 
 
3512
 
 
3513
 
 
3514
ac_ext=c
 
3515
ac_cpp='$CPP $CPPFLAGS'
 
3516
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
3517
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
3518
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
3519
echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
 
3520
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
 
3521
# On Suns, sometimes $CPP names a directory.
 
3522
if test -n "$CPP" && test -d "$CPP"; then
 
3523
  CPP=
 
3524
fi
 
3525
if test -z "$CPP"; then
 
3526
  if test "${ac_cv_prog_CPP+set}" = set; then
 
3527
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3528
else
 
3529
      # Double quotes because CPP needs to be expanded
 
3530
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
 
3531
    do
 
3532
      ac_preproc_ok=false
 
3533
for ac_c_preproc_warn_flag in '' yes
 
3534
do
 
3535
  # Use a header file that comes with gcc, so configuring glibc
 
3536
  # with a fresh cross-compiler works.
 
3537
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
3538
  # <limits.h> exists even on freestanding compilers.
 
3539
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
3540
  # not just through cpp. "Syntax error" is here to catch this case.
 
3541
  cat >conftest.$ac_ext <<_ACEOF
 
3542
/* confdefs.h.  */
 
3543
_ACEOF
 
3544
cat confdefs.h >>conftest.$ac_ext
 
3545
cat >>conftest.$ac_ext <<_ACEOF
 
3546
/* end confdefs.h.  */
 
3547
#ifdef __STDC__
 
3548
# include <limits.h>
 
3549
#else
 
3550
# include <assert.h>
 
3551
#endif
 
3552
                     Syntax error
 
3553
_ACEOF
 
3554
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
3555
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
3556
  ac_status=$?
 
3557
  grep -v '^ *+' conftest.er1 >conftest.err
 
3558
  rm -f conftest.er1
 
3559
  cat conftest.err >&5
 
3560
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3561
  (exit $ac_status); } >/dev/null; then
 
3562
  if test -s conftest.err; then
 
3563
    ac_cpp_err=$ac_c_preproc_warn_flag
 
3564
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
3565
  else
 
3566
    ac_cpp_err=
 
3567
  fi
 
3568
else
 
3569
  ac_cpp_err=yes
 
3570
fi
 
3571
if test -z "$ac_cpp_err"; then
 
3572
  :
 
3573
else
 
3574
  echo "$as_me: failed program was:" >&5
 
3575
sed 's/^/| /' conftest.$ac_ext >&5
 
3576
 
 
3577
  # Broken: fails on valid input.
 
3578
continue
 
3579
fi
 
3580
rm -f conftest.err conftest.$ac_ext
 
3581
 
 
3582
  # OK, works on sane cases.  Now check whether non-existent headers
 
3583
  # can be detected and how.
 
3584
  cat >conftest.$ac_ext <<_ACEOF
 
3585
/* confdefs.h.  */
 
3586
_ACEOF
 
3587
cat confdefs.h >>conftest.$ac_ext
 
3588
cat >>conftest.$ac_ext <<_ACEOF
 
3589
/* end confdefs.h.  */
 
3590
#include <ac_nonexistent.h>
 
3591
_ACEOF
 
3592
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
3593
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
3594
  ac_status=$?
 
3595
  grep -v '^ *+' conftest.er1 >conftest.err
 
3596
  rm -f conftest.er1
 
3597
  cat conftest.err >&5
 
3598
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3599
  (exit $ac_status); } >/dev/null; then
 
3600
  if test -s conftest.err; then
 
3601
    ac_cpp_err=$ac_c_preproc_warn_flag
 
3602
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
3603
  else
 
3604
    ac_cpp_err=
 
3605
  fi
 
3606
else
 
3607
  ac_cpp_err=yes
 
3608
fi
 
3609
if test -z "$ac_cpp_err"; then
 
3610
  # Broken: success on invalid input.
 
3611
continue
 
3612
else
 
3613
  echo "$as_me: failed program was:" >&5
 
3614
sed 's/^/| /' conftest.$ac_ext >&5
 
3615
 
 
3616
  # Passes both tests.
 
3617
ac_preproc_ok=:
 
3618
break
 
3619
fi
 
3620
rm -f conftest.err conftest.$ac_ext
 
3621
 
 
3622
done
 
3623
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
3624
rm -f conftest.err conftest.$ac_ext
 
3625
if $ac_preproc_ok; then
 
3626
  break
 
3627
fi
 
3628
 
 
3629
    done
 
3630
    ac_cv_prog_CPP=$CPP
 
3631
 
 
3632
fi
 
3633
  CPP=$ac_cv_prog_CPP
 
3634
else
 
3635
  ac_cv_prog_CPP=$CPP
 
3636
fi
 
3637
echo "$as_me:$LINENO: result: $CPP" >&5
 
3638
echo "${ECHO_T}$CPP" >&6
 
3639
ac_preproc_ok=false
 
3640
for ac_c_preproc_warn_flag in '' yes
 
3641
do
 
3642
  # Use a header file that comes with gcc, so configuring glibc
 
3643
  # with a fresh cross-compiler works.
 
3644
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
3645
  # <limits.h> exists even on freestanding compilers.
 
3646
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
3647
  # not just through cpp. "Syntax error" is here to catch this case.
 
3648
  cat >conftest.$ac_ext <<_ACEOF
 
3649
/* confdefs.h.  */
 
3650
_ACEOF
 
3651
cat confdefs.h >>conftest.$ac_ext
 
3652
cat >>conftest.$ac_ext <<_ACEOF
 
3653
/* end confdefs.h.  */
 
3654
#ifdef __STDC__
 
3655
# include <limits.h>
 
3656
#else
 
3657
# include <assert.h>
 
3658
#endif
 
3659
                     Syntax error
 
3660
_ACEOF
 
3661
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
3662
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
3663
  ac_status=$?
 
3664
  grep -v '^ *+' conftest.er1 >conftest.err
 
3665
  rm -f conftest.er1
 
3666
  cat conftest.err >&5
 
3667
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3668
  (exit $ac_status); } >/dev/null; then
 
3669
  if test -s conftest.err; then
 
3670
    ac_cpp_err=$ac_c_preproc_warn_flag
 
3671
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
3672
  else
 
3673
    ac_cpp_err=
 
3674
  fi
 
3675
else
 
3676
  ac_cpp_err=yes
 
3677
fi
 
3678
if test -z "$ac_cpp_err"; then
 
3679
  :
 
3680
else
 
3681
  echo "$as_me: failed program was:" >&5
 
3682
sed 's/^/| /' conftest.$ac_ext >&5
 
3683
 
 
3684
  # Broken: fails on valid input.
 
3685
continue
 
3686
fi
 
3687
rm -f conftest.err conftest.$ac_ext
 
3688
 
 
3689
  # OK, works on sane cases.  Now check whether non-existent headers
 
3690
  # can be detected and how.
 
3691
  cat >conftest.$ac_ext <<_ACEOF
 
3692
/* confdefs.h.  */
 
3693
_ACEOF
 
3694
cat confdefs.h >>conftest.$ac_ext
 
3695
cat >>conftest.$ac_ext <<_ACEOF
 
3696
/* end confdefs.h.  */
 
3697
#include <ac_nonexistent.h>
 
3698
_ACEOF
 
3699
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
3700
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
3701
  ac_status=$?
 
3702
  grep -v '^ *+' conftest.er1 >conftest.err
 
3703
  rm -f conftest.er1
 
3704
  cat conftest.err >&5
 
3705
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3706
  (exit $ac_status); } >/dev/null; then
 
3707
  if test -s conftest.err; then
 
3708
    ac_cpp_err=$ac_c_preproc_warn_flag
 
3709
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
3710
  else
 
3711
    ac_cpp_err=
 
3712
  fi
 
3713
else
 
3714
  ac_cpp_err=yes
 
3715
fi
 
3716
if test -z "$ac_cpp_err"; then
 
3717
  # Broken: success on invalid input.
 
3718
continue
 
3719
else
 
3720
  echo "$as_me: failed program was:" >&5
 
3721
sed 's/^/| /' conftest.$ac_ext >&5
 
3722
 
 
3723
  # Passes both tests.
 
3724
ac_preproc_ok=:
 
3725
break
 
3726
fi
 
3727
rm -f conftest.err conftest.$ac_ext
 
3728
 
 
3729
done
 
3730
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
3731
rm -f conftest.err conftest.$ac_ext
 
3732
if $ac_preproc_ok; then
 
3733
  :
 
3734
else
 
3735
  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
 
3736
See \`config.log' for more details." >&5
 
3737
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
 
3738
See \`config.log' for more details." >&2;}
 
3739
   { (exit 1); exit 1; }; }
 
3740
fi
 
3741
 
 
3742
ac_ext=c
 
3743
ac_cpp='$CPP $CPPFLAGS'
 
3744
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
3745
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
3746
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
3747
 
 
3748
 
 
3749
echo "$as_me:$LINENO: checking for egrep" >&5
 
3750
echo $ECHO_N "checking for egrep... $ECHO_C" >&6
 
3751
if test "${ac_cv_prog_egrep+set}" = set; then
 
3752
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3753
else
 
3754
  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
 
3755
    then ac_cv_prog_egrep='grep -E'
 
3756
    else ac_cv_prog_egrep='egrep'
 
3757
    fi
 
3758
fi
 
3759
echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
 
3760
echo "${ECHO_T}$ac_cv_prog_egrep" >&6
 
3761
 EGREP=$ac_cv_prog_egrep
 
3762
 
 
3763
 
 
3764
 
 
3765
echo "$as_me:$LINENO: checking for AIX" >&5
 
3766
echo $ECHO_N "checking for AIX... $ECHO_C" >&6
 
3767
cat >conftest.$ac_ext <<_ACEOF
 
3768
/* confdefs.h.  */
 
3769
_ACEOF
 
3770
cat confdefs.h >>conftest.$ac_ext
 
3771
cat >>conftest.$ac_ext <<_ACEOF
 
3772
/* end confdefs.h.  */
 
3773
#ifdef _AIX
 
3774
  yes
 
3775
#endif
 
3776
 
 
3777
_ACEOF
 
3778
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
3779
  $EGREP "yes" >/dev/null 2>&1; then
 
3780
  echo "$as_me:$LINENO: result: yes" >&5
 
3781
echo "${ECHO_T}yes" >&6
 
3782
cat >>confdefs.h <<\_ACEOF
 
3783
#define _ALL_SOURCE 1
 
3784
_ACEOF
 
3785
 
 
3786
else
 
3787
  echo "$as_me:$LINENO: result: no" >&5
 
3788
echo "${ECHO_T}no" >&6
 
3789
fi
 
3790
rm -f conftest*
 
3791
 
 
3792
 
 
3793
echo "$as_me:$LINENO: checking for ANSI C header files" >&5
 
3794
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
 
3795
if test "${ac_cv_header_stdc+set}" = set; then
 
3796
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3797
else
 
3798
  cat >conftest.$ac_ext <<_ACEOF
 
3799
/* confdefs.h.  */
 
3800
_ACEOF
 
3801
cat confdefs.h >>conftest.$ac_ext
 
3802
cat >>conftest.$ac_ext <<_ACEOF
 
3803
/* end confdefs.h.  */
 
3804
#include <stdlib.h>
 
3805
#include <stdarg.h>
 
3806
#include <string.h>
 
3807
#include <float.h>
 
3808
 
 
3809
int
 
3810
main ()
 
3811
{
 
3812
 
 
3813
  ;
 
3814
  return 0;
 
3815
}
 
3816
_ACEOF
 
3817
rm -f conftest.$ac_objext
 
3818
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3819
  (eval $ac_compile) 2>conftest.er1
 
3820
  ac_status=$?
 
3821
  grep -v '^ *+' conftest.er1 >conftest.err
 
3822
  rm -f conftest.er1
 
3823
  cat conftest.err >&5
 
3824
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3825
  (exit $ac_status); } &&
 
3826
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
3827
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3828
  (eval $ac_try) 2>&5
 
3829
  ac_status=$?
 
3830
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3831
  (exit $ac_status); }; } &&
 
3832
         { ac_try='test -s conftest.$ac_objext'
 
3833
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3834
  (eval $ac_try) 2>&5
 
3835
  ac_status=$?
 
3836
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3837
  (exit $ac_status); }; }; then
 
3838
  ac_cv_header_stdc=yes
 
3839
else
 
3840
  echo "$as_me: failed program was:" >&5
 
3841
sed 's/^/| /' conftest.$ac_ext >&5
 
3842
 
 
3843
ac_cv_header_stdc=no
 
3844
fi
 
3845
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
3846
 
 
3847
if test $ac_cv_header_stdc = yes; then
 
3848
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
 
3849
  cat >conftest.$ac_ext <<_ACEOF
 
3850
/* confdefs.h.  */
 
3851
_ACEOF
 
3852
cat confdefs.h >>conftest.$ac_ext
 
3853
cat >>conftest.$ac_ext <<_ACEOF
 
3854
/* end confdefs.h.  */
 
3855
#include <string.h>
 
3856
 
 
3857
_ACEOF
 
3858
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
3859
  $EGREP "memchr" >/dev/null 2>&1; then
 
3860
  :
 
3861
else
 
3862
  ac_cv_header_stdc=no
 
3863
fi
 
3864
rm -f conftest*
 
3865
 
 
3866
fi
 
3867
 
 
3868
if test $ac_cv_header_stdc = yes; then
 
3869
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
 
3870
  cat >conftest.$ac_ext <<_ACEOF
 
3871
/* confdefs.h.  */
 
3872
_ACEOF
 
3873
cat confdefs.h >>conftest.$ac_ext
 
3874
cat >>conftest.$ac_ext <<_ACEOF
 
3875
/* end confdefs.h.  */
 
3876
#include <stdlib.h>
 
3877
 
 
3878
_ACEOF
 
3879
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
3880
  $EGREP "free" >/dev/null 2>&1; then
 
3881
  :
 
3882
else
 
3883
  ac_cv_header_stdc=no
 
3884
fi
 
3885
rm -f conftest*
 
3886
 
 
3887
fi
 
3888
 
 
3889
if test $ac_cv_header_stdc = yes; then
 
3890
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
 
3891
  if test "$cross_compiling" = yes; then
 
3892
  :
 
3893
else
 
3894
  cat >conftest.$ac_ext <<_ACEOF
 
3895
/* confdefs.h.  */
 
3896
_ACEOF
 
3897
cat confdefs.h >>conftest.$ac_ext
 
3898
cat >>conftest.$ac_ext <<_ACEOF
 
3899
/* end confdefs.h.  */
 
3900
#include <ctype.h>
 
3901
#if ((' ' & 0x0FF) == 0x020)
 
3902
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
 
3903
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
 
3904
#else
 
3905
# define ISLOWER(c) \
 
3906
                   (('a' <= (c) && (c) <= 'i') \
 
3907
                     || ('j' <= (c) && (c) <= 'r') \
 
3908
                     || ('s' <= (c) && (c) <= 'z'))
 
3909
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
 
3910
#endif
 
3911
 
 
3912
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
 
3913
int
 
3914
main ()
 
3915
{
 
3916
  int i;
 
3917
  for (i = 0; i < 256; i++)
 
3918
    if (XOR (islower (i), ISLOWER (i))
 
3919
        || toupper (i) != TOUPPER (i))
 
3920
      exit(2);
 
3921
  exit (0);
 
3922
}
 
3923
_ACEOF
 
3924
rm -f conftest$ac_exeext
 
3925
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
3926
  (eval $ac_link) 2>&5
 
3927
  ac_status=$?
 
3928
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3929
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
3930
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3931
  (eval $ac_try) 2>&5
 
3932
  ac_status=$?
 
3933
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3934
  (exit $ac_status); }; }; then
 
3935
  :
 
3936
else
 
3937
  echo "$as_me: program exited with status $ac_status" >&5
 
3938
echo "$as_me: failed program was:" >&5
 
3939
sed 's/^/| /' conftest.$ac_ext >&5
 
3940
 
 
3941
( exit $ac_status )
 
3942
ac_cv_header_stdc=no
 
3943
fi
 
3944
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
3945
fi
 
3946
fi
 
3947
fi
 
3948
echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
 
3949
echo "${ECHO_T}$ac_cv_header_stdc" >&6
 
3950
if test $ac_cv_header_stdc = yes; then
 
3951
 
 
3952
cat >>confdefs.h <<\_ACEOF
 
3953
#define STDC_HEADERS 1
 
3954
_ACEOF
 
3955
 
 
3956
fi
 
3957
 
 
3958
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
 
3959
 
 
3960
 
 
3961
 
 
3962
 
 
3963
 
 
3964
 
 
3965
 
 
3966
 
 
3967
 
 
3968
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
 
3969
                  inttypes.h stdint.h unistd.h
 
3970
do
 
3971
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
3972
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
3973
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
3974
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
3975
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3976
else
 
3977
  cat >conftest.$ac_ext <<_ACEOF
 
3978
/* confdefs.h.  */
 
3979
_ACEOF
 
3980
cat confdefs.h >>conftest.$ac_ext
 
3981
cat >>conftest.$ac_ext <<_ACEOF
 
3982
/* end confdefs.h.  */
 
3983
$ac_includes_default
 
3984
 
 
3985
#include <$ac_header>
 
3986
_ACEOF
 
3987
rm -f conftest.$ac_objext
 
3988
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3989
  (eval $ac_compile) 2>conftest.er1
 
3990
  ac_status=$?
 
3991
  grep -v '^ *+' conftest.er1 >conftest.err
 
3992
  rm -f conftest.er1
 
3993
  cat conftest.err >&5
 
3994
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3995
  (exit $ac_status); } &&
 
3996
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
3997
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3998
  (eval $ac_try) 2>&5
 
3999
  ac_status=$?
 
4000
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4001
  (exit $ac_status); }; } &&
 
4002
         { ac_try='test -s conftest.$ac_objext'
 
4003
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4004
  (eval $ac_try) 2>&5
 
4005
  ac_status=$?
 
4006
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4007
  (exit $ac_status); }; }; then
 
4008
  eval "$as_ac_Header=yes"
 
4009
else
 
4010
  echo "$as_me: failed program was:" >&5
 
4011
sed 's/^/| /' conftest.$ac_ext >&5
 
4012
 
 
4013
eval "$as_ac_Header=no"
 
4014
fi
 
4015
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
4016
fi
 
4017
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
4018
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
4019
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
4020
  cat >>confdefs.h <<_ACEOF
 
4021
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
4022
_ACEOF
 
4023
 
 
4024
fi
 
4025
 
 
4026
done
 
4027
 
 
4028
 
 
4029
if test "${ac_cv_header_minix_config_h+set}" = set; then
 
4030
  echo "$as_me:$LINENO: checking for minix/config.h" >&5
 
4031
echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
 
4032
if test "${ac_cv_header_minix_config_h+set}" = set; then
 
4033
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4034
fi
 
4035
echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
 
4036
echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
 
4037
else
 
4038
  # Is the header compilable?
 
4039
echo "$as_me:$LINENO: checking minix/config.h usability" >&5
 
4040
echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6
 
4041
cat >conftest.$ac_ext <<_ACEOF
 
4042
/* confdefs.h.  */
 
4043
_ACEOF
 
4044
cat confdefs.h >>conftest.$ac_ext
 
4045
cat >>conftest.$ac_ext <<_ACEOF
 
4046
/* end confdefs.h.  */
 
4047
$ac_includes_default
 
4048
#include <minix/config.h>
 
4049
_ACEOF
 
4050
rm -f conftest.$ac_objext
 
4051
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4052
  (eval $ac_compile) 2>conftest.er1
 
4053
  ac_status=$?
 
4054
  grep -v '^ *+' conftest.er1 >conftest.err
 
4055
  rm -f conftest.er1
 
4056
  cat conftest.err >&5
 
4057
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4058
  (exit $ac_status); } &&
 
4059
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
4060
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4061
  (eval $ac_try) 2>&5
 
4062
  ac_status=$?
 
4063
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4064
  (exit $ac_status); }; } &&
 
4065
         { ac_try='test -s conftest.$ac_objext'
 
4066
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4067
  (eval $ac_try) 2>&5
 
4068
  ac_status=$?
 
4069
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4070
  (exit $ac_status); }; }; then
 
4071
  ac_header_compiler=yes
 
4072
else
 
4073
  echo "$as_me: failed program was:" >&5
 
4074
sed 's/^/| /' conftest.$ac_ext >&5
 
4075
 
 
4076
ac_header_compiler=no
 
4077
fi
 
4078
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
4079
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
4080
echo "${ECHO_T}$ac_header_compiler" >&6
 
4081
 
 
4082
# Is the header present?
 
4083
echo "$as_me:$LINENO: checking minix/config.h presence" >&5
 
4084
echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6
 
4085
cat >conftest.$ac_ext <<_ACEOF
 
4086
/* confdefs.h.  */
 
4087
_ACEOF
 
4088
cat confdefs.h >>conftest.$ac_ext
 
4089
cat >>conftest.$ac_ext <<_ACEOF
 
4090
/* end confdefs.h.  */
 
4091
#include <minix/config.h>
 
4092
_ACEOF
 
4093
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
4094
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
4095
  ac_status=$?
 
4096
  grep -v '^ *+' conftest.er1 >conftest.err
 
4097
  rm -f conftest.er1
 
4098
  cat conftest.err >&5
 
4099
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4100
  (exit $ac_status); } >/dev/null; then
 
4101
  if test -s conftest.err; then
 
4102
    ac_cpp_err=$ac_c_preproc_warn_flag
 
4103
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
4104
  else
 
4105
    ac_cpp_err=
 
4106
  fi
 
4107
else
 
4108
  ac_cpp_err=yes
 
4109
fi
 
4110
if test -z "$ac_cpp_err"; then
 
4111
  ac_header_preproc=yes
 
4112
else
 
4113
  echo "$as_me: failed program was:" >&5
 
4114
sed 's/^/| /' conftest.$ac_ext >&5
 
4115
 
 
4116
  ac_header_preproc=no
 
4117
fi
 
4118
rm -f conftest.err conftest.$ac_ext
 
4119
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
4120
echo "${ECHO_T}$ac_header_preproc" >&6
 
4121
 
 
4122
# So?  What about this header?
 
4123
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
4124
  yes:no: )
 
4125
    { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
 
4126
echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
4127
    { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
 
4128
echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
 
4129
    ac_header_preproc=yes
 
4130
    ;;
 
4131
  no:yes:* )
 
4132
    { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
 
4133
echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
 
4134
    { echo "$as_me:$LINENO: WARNING: minix/config.h:     check for missing prerequisite headers?" >&5
 
4135
echo "$as_me: WARNING: minix/config.h:     check for missing prerequisite headers?" >&2;}
 
4136
    { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
 
4137
echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
 
4138
    { echo "$as_me:$LINENO: WARNING: minix/config.h:     section \"Present But Cannot Be Compiled\"" >&5
 
4139
echo "$as_me: WARNING: minix/config.h:     section \"Present But Cannot Be Compiled\"" >&2;}
 
4140
    { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
 
4141
echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
 
4142
    { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
 
4143
echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
 
4144
    (
 
4145
      cat <<\_ASBOX
 
4146
## ---------------------------------------- ##
 
4147
## Report this to protobuf@googlegroups.com ##
 
4148
## ---------------------------------------- ##
 
4149
_ASBOX
 
4150
    ) |
 
4151
      sed "s/^/$as_me: WARNING:     /" >&2
 
4152
    ;;
 
4153
esac
 
4154
echo "$as_me:$LINENO: checking for minix/config.h" >&5
 
4155
echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
 
4156
if test "${ac_cv_header_minix_config_h+set}" = set; then
 
4157
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4158
else
 
4159
  ac_cv_header_minix_config_h=$ac_header_preproc
 
4160
fi
 
4161
echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
 
4162
echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
 
4163
 
 
4164
fi
 
4165
if test $ac_cv_header_minix_config_h = yes; then
 
4166
  MINIX=yes
 
4167
else
 
4168
  MINIX=
 
4169
fi
 
4170
 
 
4171
 
 
4172
if test "$MINIX" = yes; then
 
4173
 
 
4174
cat >>confdefs.h <<\_ACEOF
 
4175
#define _POSIX_SOURCE 1
 
4176
_ACEOF
 
4177
 
 
4178
 
 
4179
cat >>confdefs.h <<\_ACEOF
 
4180
#define _POSIX_1_SOURCE 2
 
4181
_ACEOF
 
4182
 
 
4183
 
 
4184
cat >>confdefs.h <<\_ACEOF
 
4185
#define _MINIX 1
 
4186
_ACEOF
 
4187
 
 
4188
fi
 
4189
 
 
4190
 
 
4191
 
 
4192
 
 
4193
 
 
4194
 
 
4195
 
 
4196
 
 
4197
 
 
4198
 
 
4199
 
 
4200
 
 
4201
    echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
 
4202
echo $ECHO_N "checking whether it is safe to define __EXTENSIONS__... $ECHO_C" >&6
 
4203
if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
 
4204
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4205
else
 
4206
  cat >conftest.$ac_ext <<_ACEOF
 
4207
/* confdefs.h.  */
 
4208
_ACEOF
 
4209
cat confdefs.h >>conftest.$ac_ext
 
4210
cat >>conftest.$ac_ext <<_ACEOF
 
4211
/* end confdefs.h.  */
 
4212
 
 
4213
#           define __EXTENSIONS__ 1
 
4214
            $ac_includes_default
 
4215
int
 
4216
main ()
 
4217
{
 
4218
 
 
4219
  ;
 
4220
  return 0;
 
4221
}
 
4222
_ACEOF
 
4223
rm -f conftest.$ac_objext
 
4224
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4225
  (eval $ac_compile) 2>conftest.er1
 
4226
  ac_status=$?
 
4227
  grep -v '^ *+' conftest.er1 >conftest.err
 
4228
  rm -f conftest.er1
 
4229
  cat conftest.err >&5
 
4230
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4231
  (exit $ac_status); } &&
 
4232
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
4233
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4234
  (eval $ac_try) 2>&5
 
4235
  ac_status=$?
 
4236
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4237
  (exit $ac_status); }; } &&
 
4238
         { ac_try='test -s conftest.$ac_objext'
 
4239
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4240
  (eval $ac_try) 2>&5
 
4241
  ac_status=$?
 
4242
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4243
  (exit $ac_status); }; }; then
 
4244
  ac_cv_safe_to_define___extensions__=yes
 
4245
else
 
4246
  echo "$as_me: failed program was:" >&5
 
4247
sed 's/^/| /' conftest.$ac_ext >&5
 
4248
 
 
4249
ac_cv_safe_to_define___extensions__=no
 
4250
fi
 
4251
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
4252
fi
 
4253
echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
 
4254
echo "${ECHO_T}$ac_cv_safe_to_define___extensions__" >&6
 
4255
    test $ac_cv_safe_to_define___extensions__ = yes &&
 
4256
      cat >>confdefs.h <<\_ACEOF
 
4257
#define __EXTENSIONS__ 1
 
4258
_ACEOF
 
4259
 
 
4260
    cat >>confdefs.h <<\_ACEOF
 
4261
#define _POSIX_PTHREAD_SEMANTICS 1
 
4262
_ACEOF
 
4263
 
 
4264
    cat >>confdefs.h <<\_ACEOF
 
4265
#define _TANDEM_SOURCE 1
 
4266
_ACEOF
 
4267
 
 
4268
 
 
4269
 
 
4270
case `pwd` in
 
4271
  *\ * | *\     *)
 
4272
    { echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
 
4273
echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
 
4274
esac
 
4275
 
 
4276
 
 
4277
 
 
4278
macro_version='2.2.4'
 
4279
macro_revision='1.2976'
 
4280
 
 
4281
 
 
4282
 
 
4283
 
 
4284
 
 
4285
 
 
4286
 
 
4287
 
 
4288
 
 
4289
 
 
4290
 
 
4291
 
 
4292
 
 
4293
ltmain="$ac_aux_dir/ltmain.sh"
3584
4294
 
3585
4295
# Make sure we can run config.sub.
3586
4296
$ac_config_sub sun4 >/dev/null 2>&1 ||
3656
4366
    done
3657
4367
  done
3658
4368
done
 
4369
IFS=$as_save_IFS
3659
4370
lt_ac_max=0
3660
4371
lt_ac_count=0
3661
4372
# Add /usr/xpg4/bin/sed as it is typically found on Solaris
3690
4401
fi
3691
4402
 
3692
4403
SED=$lt_cv_path_SED
 
4404
 
3693
4405
echo "$as_me:$LINENO: result: $SED" >&5
3694
4406
echo "${ECHO_T}$SED" >&6
3695
4407
 
3696
 
echo "$as_me:$LINENO: checking for egrep" >&5
3697
 
echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3698
 
if test "${ac_cv_prog_egrep+set}" = set; then
 
4408
test -z "$SED" && SED=sed
 
4409
Xsed="$SED -e 1s/^X//"
 
4410
 
 
4411
 
 
4412
 
 
4413
 
 
4414
 
 
4415
 
 
4416
 
 
4417
 
 
4418
 
 
4419
 
 
4420
 
 
4421
echo "$as_me:$LINENO: checking for fgrep" >&5
 
4422
echo $ECHO_N "checking for fgrep... $ECHO_C" >&6
 
4423
if test "${ac_cv_prog_fgrep+set}" = set; then
3699
4424
  echo $ECHO_N "(cached) $ECHO_C" >&6
3700
4425
else
3701
 
  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3702
 
    then ac_cv_prog_egrep='grep -E'
3703
 
    else ac_cv_prog_egrep='egrep'
 
4426
  if echo 'ab*c' | (grep -F 'ab*c') >/dev/null 2>&1
 
4427
    then ac_cv_prog_fgrep='grep -F'
 
4428
    else ac_cv_prog_fgrep='fgrep'
3704
4429
    fi
3705
4430
fi
3706
 
echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3707
 
echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3708
 
 EGREP=$ac_cv_prog_egrep
 
4431
echo "$as_me:$LINENO: result: $ac_cv_prog_fgrep" >&5
 
4432
echo "${ECHO_T}$ac_cv_prog_fgrep" >&6
 
4433
 FGREP=$ac_cv_prog_fgrep
 
4434
 
 
4435
 
 
4436
test -z "$GREP" && GREP=grep
 
4437
 
 
4438
 
 
4439
 
 
4440
 
 
4441
 
 
4442
 
 
4443
 
 
4444
 
 
4445
 
 
4446
 
 
4447
 
 
4448
 
 
4449
 
 
4450
 
 
4451
 
 
4452
 
3709
4453
 
3710
4454
 
3711
4455
 
3733
4477
    [\\/]* | ?:[\\/]*)
3734
4478
      re_direlt='/[^/][^/]*/\.\./'
3735
4479
      # Canonicalize the pathname of ld
3736
 
      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3737
 
      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3738
 
        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
 
4480
      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
 
4481
      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
 
4482
        ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
3739
4483
      done
3740
4484
      test -z "$LD" && LD="$ac_prog"
3741
4485
      ;;
3815
4559
with_gnu_ld=$lt_cv_prog_gnu_ld
3816
4560
 
3817
4561
 
3818
 
echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3819
 
echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3820
 
if test "${lt_cv_ld_reload_flag+set}" = set; then
3821
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
3822
 
else
3823
 
  lt_cv_ld_reload_flag='-r'
3824
 
fi
3825
 
echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3826
 
echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3827
 
reload_flag=$lt_cv_ld_reload_flag
3828
 
case $reload_flag in
3829
 
"" | " "*) ;;
3830
 
*) reload_flag=" $reload_flag" ;;
3831
 
esac
3832
 
reload_cmds='$LD$reload_flag -o $output$reload_objs'
3833
 
case $host_os in
3834
 
  darwin*)
3835
 
    if test "$GCC" = yes; then
3836
 
      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
3837
 
    else
3838
 
      reload_cmds='$LD$reload_flag -o $output$reload_objs'
3839
 
    fi
3840
 
    ;;
3841
 
esac
3842
 
 
3843
 
echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3844
 
echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
 
4562
 
 
4563
 
 
4564
 
 
4565
 
 
4566
 
 
4567
 
 
4568
 
 
4569
echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
 
4570
echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6
3845
4571
if test "${lt_cv_path_NM+set}" = set; then
3846
4572
  echo $ECHO_N "(cached) $ECHO_C" >&6
3847
4573
else
3886
4612
    done
3887
4613
    IFS="$lt_save_ifs"
3888
4614
  done
3889
 
  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
 
4615
  : ${lt_cv_path_NM=no}
3890
4616
fi
3891
4617
fi
3892
4618
echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3893
4619
echo "${ECHO_T}$lt_cv_path_NM" >&6
3894
 
NM="$lt_cv_path_NM"
 
4620
if test "$lt_cv_path_NM" != "no"; then
 
4621
  NM="$lt_cv_path_NM"
 
4622
else
 
4623
  # Didn't find any BSD compatible name lister, look for dumpbin.
 
4624
  if test -n "$ac_tool_prefix"; then
 
4625
  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
 
4626
  do
 
4627
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
4628
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
4629
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
4630
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
4631
if test "${ac_cv_prog_DUMPBIN+set}" = set; then
 
4632
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4633
else
 
4634
  if test -n "$DUMPBIN"; then
 
4635
  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
 
4636
else
 
4637
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4638
for as_dir in $PATH
 
4639
do
 
4640
  IFS=$as_save_IFS
 
4641
  test -z "$as_dir" && as_dir=.
 
4642
  for ac_exec_ext in '' $ac_executable_extensions; do
 
4643
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
4644
    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
 
4645
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4646
    break 2
 
4647
  fi
 
4648
done
 
4649
done
 
4650
 
 
4651
fi
 
4652
fi
 
4653
DUMPBIN=$ac_cv_prog_DUMPBIN
 
4654
if test -n "$DUMPBIN"; then
 
4655
  echo "$as_me:$LINENO: result: $DUMPBIN" >&5
 
4656
echo "${ECHO_T}$DUMPBIN" >&6
 
4657
else
 
4658
  echo "$as_me:$LINENO: result: no" >&5
 
4659
echo "${ECHO_T}no" >&6
 
4660
fi
 
4661
 
 
4662
    test -n "$DUMPBIN" && break
 
4663
  done
 
4664
fi
 
4665
if test -z "$DUMPBIN"; then
 
4666
  ac_ct_DUMPBIN=$DUMPBIN
 
4667
  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
 
4668
do
 
4669
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
4670
set dummy $ac_prog; ac_word=$2
 
4671
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
4672
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
4673
if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
 
4674
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4675
else
 
4676
  if test -n "$ac_ct_DUMPBIN"; then
 
4677
  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
 
4678
else
 
4679
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4680
for as_dir in $PATH
 
4681
do
 
4682
  IFS=$as_save_IFS
 
4683
  test -z "$as_dir" && as_dir=.
 
4684
  for ac_exec_ext in '' $ac_executable_extensions; do
 
4685
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
4686
    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
 
4687
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4688
    break 2
 
4689
  fi
 
4690
done
 
4691
done
 
4692
 
 
4693
fi
 
4694
fi
 
4695
ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
 
4696
if test -n "$ac_ct_DUMPBIN"; then
 
4697
  echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
 
4698
echo "${ECHO_T}$ac_ct_DUMPBIN" >&6
 
4699
else
 
4700
  echo "$as_me:$LINENO: result: no" >&5
 
4701
echo "${ECHO_T}no" >&6
 
4702
fi
 
4703
 
 
4704
  test -n "$ac_ct_DUMPBIN" && break
 
4705
done
 
4706
test -n "$ac_ct_DUMPBIN" || ac_ct_DUMPBIN=":"
 
4707
 
 
4708
  DUMPBIN=$ac_ct_DUMPBIN
 
4709
fi
 
4710
 
 
4711
 
 
4712
  if test "$DUMPBIN" != ":"; then
 
4713
    NM="$DUMPBIN"
 
4714
  fi
 
4715
fi
 
4716
test -z "$NM" && NM=nm
 
4717
 
 
4718
 
 
4719
 
 
4720
 
 
4721
 
 
4722
 
 
4723
echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
 
4724
echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6
 
4725
if test "${lt_cv_nm_interface+set}" = set; then
 
4726
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4727
else
 
4728
  lt_cv_nm_interface="BSD nm"
 
4729
  echo "int some_variable = 0;" > conftest.$ac_ext
 
4730
  (eval echo "\"\$as_me:4730: $ac_compile\"" >&5)
 
4731
  (eval "$ac_compile" 2>conftest.err)
 
4732
  cat conftest.err >&5
 
4733
  (eval echo "\"\$as_me:4733: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
 
4734
  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
 
4735
  cat conftest.err >&5
 
4736
  (eval echo "\"\$as_me:4736: output\"" >&5)
 
4737
  cat conftest.out >&5
 
4738
  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
 
4739
    lt_cv_nm_interface="MS dumpbin"
 
4740
  fi
 
4741
  rm -f conftest*
 
4742
fi
 
4743
echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
 
4744
echo "${ECHO_T}$lt_cv_nm_interface" >&6
3895
4745
 
3896
4746
echo "$as_me:$LINENO: checking whether ln -s works" >&5
3897
4747
echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3904
4754
echo "${ECHO_T}no, using $LN_S" >&6
3905
4755
fi
3906
4756
 
3907
 
echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3908
 
echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
 
4757
# find the maximum length of command line arguments
 
4758
echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
 
4759
echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
 
4760
if test "${lt_cv_sys_max_cmd_len+set}" = set; then
 
4761
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4762
else
 
4763
    i=0
 
4764
  teststring="ABCD"
 
4765
 
 
4766
  case $build_os in
 
4767
  msdosdjgpp*)
 
4768
    # On DJGPP, this test can blow up pretty badly due to problems in libc
 
4769
    # (any single argument exceeding 2000 bytes causes a buffer overrun
 
4770
    # during glob expansion).  Even if it were fixed, the result of this
 
4771
    # check would be larger than it should be.
 
4772
    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
 
4773
    ;;
 
4774
 
 
4775
  gnu*)
 
4776
    # Under GNU Hurd, this test is not required because there is
 
4777
    # no limit to the length of command line arguments.
 
4778
    # Libtool will interpret -1 as no limit whatsoever
 
4779
    lt_cv_sys_max_cmd_len=-1;
 
4780
    ;;
 
4781
 
 
4782
  cygwin* | mingw*)
 
4783
    # On Win9x/ME, this test blows up -- it succeeds, but takes
 
4784
    # about 5 minutes as the teststring grows exponentially.
 
4785
    # Worse, since 9x/ME are not pre-emptively multitasking,
 
4786
    # you end up with a "frozen" computer, even though with patience
 
4787
    # the test eventually succeeds (with a max line length of 256k).
 
4788
    # Instead, let's just punt: use the minimum linelength reported by
 
4789
    # all of the supported platforms: 8192 (on NT/2K/XP).
 
4790
    lt_cv_sys_max_cmd_len=8192;
 
4791
    ;;
 
4792
 
 
4793
  amigaos*)
 
4794
    # On AmigaOS with pdksh, this test takes hours, literally.
 
4795
    # So we just punt and use a minimum line length of 8192.
 
4796
    lt_cv_sys_max_cmd_len=8192;
 
4797
    ;;
 
4798
 
 
4799
  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
 
4800
    # This has been around since 386BSD, at least.  Likely further.
 
4801
    if test -x /sbin/sysctl; then
 
4802
      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
 
4803
    elif test -x /usr/sbin/sysctl; then
 
4804
      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
 
4805
    else
 
4806
      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
 
4807
    fi
 
4808
    # And add a safety zone
 
4809
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
 
4810
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
 
4811
    ;;
 
4812
 
 
4813
  interix*)
 
4814
    # We know the value 262144 and hardcode it with a safety zone (like BSD)
 
4815
    lt_cv_sys_max_cmd_len=196608
 
4816
    ;;
 
4817
 
 
4818
  osf*)
 
4819
    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
 
4820
    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
 
4821
    # nice to cause kernel panics so lets avoid the loop below.
 
4822
    # First set a reasonable default.
 
4823
    lt_cv_sys_max_cmd_len=16384
 
4824
    #
 
4825
    if test -x /sbin/sysconfig; then
 
4826
      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
 
4827
        *1*) lt_cv_sys_max_cmd_len=-1 ;;
 
4828
      esac
 
4829
    fi
 
4830
    ;;
 
4831
  sco3.2v5*)
 
4832
    lt_cv_sys_max_cmd_len=102400
 
4833
    ;;
 
4834
  sysv5* | sco5v6* | sysv4.2uw2*)
 
4835
    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
 
4836
    if test -n "$kargmax"; then
 
4837
      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
 
4838
    else
 
4839
      lt_cv_sys_max_cmd_len=32768
 
4840
    fi
 
4841
    ;;
 
4842
  *)
 
4843
    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
 
4844
    if test -n "$lt_cv_sys_max_cmd_len"; then
 
4845
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
 
4846
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
 
4847
    else
 
4848
      # Make teststring a little bigger before we do anything with it.
 
4849
      # a 1K string should be a reasonable start.
 
4850
      for i in 1 2 3 4 5 6 7 8 ; do
 
4851
        teststring=$teststring$teststring
 
4852
      done
 
4853
      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
 
4854
      # If test is not a shell built-in, we'll probably end up computing a
 
4855
      # maximum length that is only half of the actual maximum length, but
 
4856
      # we can't tell.
 
4857
      while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
 
4858
                 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
 
4859
              test $i != 17 # 1/2 MB should be enough
 
4860
      do
 
4861
        i=`expr $i + 1`
 
4862
        teststring=$teststring$teststring
 
4863
      done
 
4864
      # Only check the string length outside the loop.
 
4865
      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
 
4866
      teststring=
 
4867
      # Add a significant safety factor because C++ compilers can tack on
 
4868
      # massive amounts of additional arguments before passing them to the
 
4869
      # linker.  It appears as though 1/2 is a usable value.
 
4870
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
 
4871
    fi
 
4872
    ;;
 
4873
  esac
 
4874
 
 
4875
fi
 
4876
 
 
4877
if test -n $lt_cv_sys_max_cmd_len ; then
 
4878
  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
 
4879
echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
 
4880
else
 
4881
  echo "$as_me:$LINENO: result: none" >&5
 
4882
echo "${ECHO_T}none" >&6
 
4883
fi
 
4884
max_cmd_len=$lt_cv_sys_max_cmd_len
 
4885
 
 
4886
 
 
4887
 
 
4888
 
 
4889
 
 
4890
 
 
4891
: ${CP="cp -f"}
 
4892
: ${MV="mv -f"}
 
4893
: ${RM="rm -f"}
 
4894
 
 
4895
echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
 
4896
echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6
 
4897
# Try some XSI features
 
4898
xsi_shell=no
 
4899
( _lt_dummy="a/b/c"
 
4900
  test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
 
4901
      = c,a/b,, \
 
4902
    && eval 'test $(( 1 + 1 )) -eq 2 \
 
4903
    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
 
4904
  && xsi_shell=yes
 
4905
echo "$as_me:$LINENO: result: $xsi_shell" >&5
 
4906
echo "${ECHO_T}$xsi_shell" >&6
 
4907
 
 
4908
 
 
4909
echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
 
4910
echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6
 
4911
lt_shell_append=no
 
4912
( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
 
4913
    >/dev/null 2>&1 \
 
4914
  && lt_shell_append=yes
 
4915
echo "$as_me:$LINENO: result: $lt_shell_append" >&5
 
4916
echo "${ECHO_T}$lt_shell_append" >&6
 
4917
 
 
4918
 
 
4919
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
 
4920
  lt_unset=unset
 
4921
else
 
4922
  lt_unset=false
 
4923
fi
 
4924
 
 
4925
 
 
4926
 
 
4927
 
 
4928
 
 
4929
# test EBCDIC or ASCII
 
4930
case `echo X|tr X '\101'` in
 
4931
 A) # ASCII based system
 
4932
    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
 
4933
  lt_SP2NL='tr \040 \012'
 
4934
  lt_NL2SP='tr \015\012 \040\040'
 
4935
  ;;
 
4936
 *) # EBCDIC based system
 
4937
  lt_SP2NL='tr \100 \n'
 
4938
  lt_NL2SP='tr \r\n \100\100'
 
4939
  ;;
 
4940
esac
 
4941
 
 
4942
 
 
4943
 
 
4944
 
 
4945
 
 
4946
 
 
4947
 
 
4948
 
 
4949
 
 
4950
echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
 
4951
echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
 
4952
if test "${lt_cv_ld_reload_flag+set}" = set; then
 
4953
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4954
else
 
4955
  lt_cv_ld_reload_flag='-r'
 
4956
fi
 
4957
echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
 
4958
echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
 
4959
reload_flag=$lt_cv_ld_reload_flag
 
4960
case $reload_flag in
 
4961
"" | " "*) ;;
 
4962
*) reload_flag=" $reload_flag" ;;
 
4963
esac
 
4964
reload_cmds='$LD$reload_flag -o $output$reload_objs'
 
4965
case $host_os in
 
4966
  darwin*)
 
4967
    if test "$GCC" = yes; then
 
4968
      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
 
4969
    else
 
4970
      reload_cmds='$LD$reload_flag -o $output$reload_objs'
 
4971
    fi
 
4972
    ;;
 
4973
esac
 
4974
 
 
4975
 
 
4976
 
 
4977
 
 
4978
 
 
4979
 
 
4980
 
 
4981
 
 
4982
 
 
4983
 
 
4984
echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
 
4985
echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6
3909
4986
if test "${lt_cv_deplibs_check_method+set}" = set; then
3910
4987
  echo $ECHO_N "(cached) $ECHO_C" >&6
3911
4988
else
3924
5001
# whether `pass_all' will *always* work, you probably want this one.
3925
5002
 
3926
5003
case $host_os in
3927
 
aix4* | aix5*)
 
5004
aix[4-9]*)
3928
5005
  lt_cv_deplibs_check_method=pass_all
3929
5006
  ;;
3930
5007
 
3946
5023
 
3947
5024
mingw* | pw32*)
3948
5025
  # Base MSYS/MinGW do not provide the 'file' command needed by
3949
 
  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
3950
 
  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3951
 
  lt_cv_file_magic_cmd='$OBJDUMP -f'
 
5026
  # func_win32_libid shell function, so use a weaker test based on 'objdump',
 
5027
  # unless we find 'file', for example because we are cross-compiling.
 
5028
  if ( file / ) >/dev/null 2>&1; then
 
5029
    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
 
5030
    lt_cv_file_magic_cmd='func_win32_libid'
 
5031
  else
 
5032
    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
 
5033
    lt_cv_file_magic_cmd='$OBJDUMP -f'
 
5034
  fi
3952
5035
  ;;
3953
5036
 
3954
5037
darwin* | rhapsody*)
3955
5038
  lt_cv_deplibs_check_method=pass_all
3956
5039
  ;;
3957
5040
 
3958
 
freebsd* | kfreebsd*-gnu | dragonfly*)
3959
 
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
 
5041
freebsd* | dragonfly*)
 
5042
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
3960
5043
    case $host_cpu in
3961
5044
    i*86 )
3962
5045
      # Not sure whether the presence of OpenBSD here was a mistake.
3993
5076
  esac
3994
5077
  ;;
3995
5078
 
3996
 
interix3*)
 
5079
interix[3-9]*)
3997
5080
  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
3998
5081
  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
3999
5082
  ;;
4009
5092
  ;;
4010
5093
 
4011
5094
# This must be Linux ELF.
4012
 
linux*)
 
5095
linux* | k*bsd*-gnu)
4013
5096
  lt_cv_deplibs_check_method=pass_all
4014
5097
  ;;
4015
5098
 
4016
 
netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
4017
 
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
 
5099
netbsd*)
 
5100
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4018
5101
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4019
5102
  else
4020
5103
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4027
5110
  lt_cv_file_magic_test_file=/usr/lib/libnls.so
4028
5111
  ;;
4029
5112
 
4030
 
nto-qnx*)
4031
 
  lt_cv_deplibs_check_method=unknown
 
5113
*nto* | *qnx*)
 
5114
  lt_cv_deplibs_check_method=pass_all
4032
5115
  ;;
4033
5116
 
4034
5117
openbsd*)
4035
 
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
5118
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4036
5119
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4037
5120
  else
4038
5121
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4043
5126
  lt_cv_deplibs_check_method=pass_all
4044
5127
  ;;
4045
5128
 
 
5129
rdos*)
 
5130
  lt_cv_deplibs_check_method=pass_all
 
5131
  ;;
 
5132
 
4046
5133
solaris*)
4047
5134
  lt_cv_deplibs_check_method=pass_all
4048
5135
  ;;
4049
5136
 
 
5137
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
5138
  lt_cv_deplibs_check_method=pass_all
 
5139
  ;;
 
5140
 
4050
5141
sysv4 | sysv4.3*)
4051
5142
  case $host_vendor in
4052
5143
  motorola)
4074
5165
  esac
4075
5166
  ;;
4076
5167
 
4077
 
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
5168
tpf*)
4078
5169
  lt_cv_deplibs_check_method=pass_all
4079
5170
  ;;
4080
5171
esac
4089
5180
 
4090
5181
 
4091
5182
 
 
5183
 
 
5184
 
 
5185
 
 
5186
 
 
5187
 
 
5188
 
 
5189
 
 
5190
 
 
5191
if test -n "$ac_tool_prefix"; then
 
5192
  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
 
5193
set dummy ${ac_tool_prefix}ar; ac_word=$2
 
5194
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5195
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
5196
if test "${ac_cv_prog_AR+set}" = set; then
 
5197
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5198
else
 
5199
  if test -n "$AR"; then
 
5200
  ac_cv_prog_AR="$AR" # Let the user override the test.
 
5201
else
 
5202
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5203
for as_dir in $PATH
 
5204
do
 
5205
  IFS=$as_save_IFS
 
5206
  test -z "$as_dir" && as_dir=.
 
5207
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5208
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
5209
    ac_cv_prog_AR="${ac_tool_prefix}ar"
 
5210
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5211
    break 2
 
5212
  fi
 
5213
done
 
5214
done
 
5215
 
 
5216
fi
 
5217
fi
 
5218
AR=$ac_cv_prog_AR
 
5219
if test -n "$AR"; then
 
5220
  echo "$as_me:$LINENO: result: $AR" >&5
 
5221
echo "${ECHO_T}$AR" >&6
 
5222
else
 
5223
  echo "$as_me:$LINENO: result: no" >&5
 
5224
echo "${ECHO_T}no" >&6
 
5225
fi
 
5226
 
 
5227
fi
 
5228
if test -z "$ac_cv_prog_AR"; then
 
5229
  ac_ct_AR=$AR
 
5230
  # Extract the first word of "ar", so it can be a program name with args.
 
5231
set dummy ar; ac_word=$2
 
5232
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5233
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
5234
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
 
5235
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5236
else
 
5237
  if test -n "$ac_ct_AR"; then
 
5238
  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
 
5239
else
 
5240
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5241
for as_dir in $PATH
 
5242
do
 
5243
  IFS=$as_save_IFS
 
5244
  test -z "$as_dir" && as_dir=.
 
5245
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5246
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
5247
    ac_cv_prog_ac_ct_AR="ar"
 
5248
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5249
    break 2
 
5250
  fi
 
5251
done
 
5252
done
 
5253
 
 
5254
  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
 
5255
fi
 
5256
fi
 
5257
ac_ct_AR=$ac_cv_prog_ac_ct_AR
 
5258
if test -n "$ac_ct_AR"; then
 
5259
  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
 
5260
echo "${ECHO_T}$ac_ct_AR" >&6
 
5261
else
 
5262
  echo "$as_me:$LINENO: result: no" >&5
 
5263
echo "${ECHO_T}no" >&6
 
5264
fi
 
5265
 
 
5266
  AR=$ac_ct_AR
 
5267
else
 
5268
  AR="$ac_cv_prog_AR"
 
5269
fi
 
5270
 
 
5271
test -z "$AR" && AR=ar
 
5272
test -z "$AR_FLAGS" && AR_FLAGS=cru
 
5273
 
 
5274
 
 
5275
 
 
5276
 
 
5277
 
 
5278
 
 
5279
 
 
5280
 
 
5281
 
 
5282
 
 
5283
 
 
5284
if test -n "$ac_tool_prefix"; then
 
5285
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
 
5286
set dummy ${ac_tool_prefix}strip; ac_word=$2
 
5287
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5288
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
5289
if test "${ac_cv_prog_STRIP+set}" = set; then
 
5290
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5291
else
 
5292
  if test -n "$STRIP"; then
 
5293
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
 
5294
else
 
5295
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5296
for as_dir in $PATH
 
5297
do
 
5298
  IFS=$as_save_IFS
 
5299
  test -z "$as_dir" && as_dir=.
 
5300
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5301
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
5302
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
 
5303
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5304
    break 2
 
5305
  fi
 
5306
done
 
5307
done
 
5308
 
 
5309
fi
 
5310
fi
 
5311
STRIP=$ac_cv_prog_STRIP
 
5312
if test -n "$STRIP"; then
 
5313
  echo "$as_me:$LINENO: result: $STRIP" >&5
 
5314
echo "${ECHO_T}$STRIP" >&6
 
5315
else
 
5316
  echo "$as_me:$LINENO: result: no" >&5
 
5317
echo "${ECHO_T}no" >&6
 
5318
fi
 
5319
 
 
5320
fi
 
5321
if test -z "$ac_cv_prog_STRIP"; then
 
5322
  ac_ct_STRIP=$STRIP
 
5323
  # Extract the first word of "strip", so it can be a program name with args.
 
5324
set dummy strip; ac_word=$2
 
5325
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5326
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
5327
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
 
5328
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5329
else
 
5330
  if test -n "$ac_ct_STRIP"; then
 
5331
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
 
5332
else
 
5333
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5334
for as_dir in $PATH
 
5335
do
 
5336
  IFS=$as_save_IFS
 
5337
  test -z "$as_dir" && as_dir=.
 
5338
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5339
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
5340
    ac_cv_prog_ac_ct_STRIP="strip"
 
5341
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5342
    break 2
 
5343
  fi
 
5344
done
 
5345
done
 
5346
 
 
5347
  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
 
5348
fi
 
5349
fi
 
5350
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
 
5351
if test -n "$ac_ct_STRIP"; then
 
5352
  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
 
5353
echo "${ECHO_T}$ac_ct_STRIP" >&6
 
5354
else
 
5355
  echo "$as_me:$LINENO: result: no" >&5
 
5356
echo "${ECHO_T}no" >&6
 
5357
fi
 
5358
 
 
5359
  STRIP=$ac_ct_STRIP
 
5360
else
 
5361
  STRIP="$ac_cv_prog_STRIP"
 
5362
fi
 
5363
 
 
5364
test -z "$STRIP" && STRIP=:
 
5365
 
 
5366
 
 
5367
 
 
5368
 
 
5369
 
 
5370
 
 
5371
if test -n "$ac_tool_prefix"; then
 
5372
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
 
5373
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
 
5374
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5375
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
5376
if test "${ac_cv_prog_RANLIB+set}" = set; then
 
5377
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5378
else
 
5379
  if test -n "$RANLIB"; then
 
5380
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
 
5381
else
 
5382
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5383
for as_dir in $PATH
 
5384
do
 
5385
  IFS=$as_save_IFS
 
5386
  test -z "$as_dir" && as_dir=.
 
5387
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5388
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
5389
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
 
5390
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5391
    break 2
 
5392
  fi
 
5393
done
 
5394
done
 
5395
 
 
5396
fi
 
5397
fi
 
5398
RANLIB=$ac_cv_prog_RANLIB
 
5399
if test -n "$RANLIB"; then
 
5400
  echo "$as_me:$LINENO: result: $RANLIB" >&5
 
5401
echo "${ECHO_T}$RANLIB" >&6
 
5402
else
 
5403
  echo "$as_me:$LINENO: result: no" >&5
 
5404
echo "${ECHO_T}no" >&6
 
5405
fi
 
5406
 
 
5407
fi
 
5408
if test -z "$ac_cv_prog_RANLIB"; then
 
5409
  ac_ct_RANLIB=$RANLIB
 
5410
  # Extract the first word of "ranlib", so it can be a program name with args.
 
5411
set dummy ranlib; ac_word=$2
 
5412
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5413
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
5414
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
 
5415
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5416
else
 
5417
  if test -n "$ac_ct_RANLIB"; then
 
5418
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
 
5419
else
 
5420
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5421
for as_dir in $PATH
 
5422
do
 
5423
  IFS=$as_save_IFS
 
5424
  test -z "$as_dir" && as_dir=.
 
5425
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5426
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
5427
    ac_cv_prog_ac_ct_RANLIB="ranlib"
 
5428
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5429
    break 2
 
5430
  fi
 
5431
done
 
5432
done
 
5433
 
 
5434
  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
 
5435
fi
 
5436
fi
 
5437
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
 
5438
if test -n "$ac_ct_RANLIB"; then
 
5439
  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
 
5440
echo "${ECHO_T}$ac_ct_RANLIB" >&6
 
5441
else
 
5442
  echo "$as_me:$LINENO: result: no" >&5
 
5443
echo "${ECHO_T}no" >&6
 
5444
fi
 
5445
 
 
5446
  RANLIB=$ac_ct_RANLIB
 
5447
else
 
5448
  RANLIB="$ac_cv_prog_RANLIB"
 
5449
fi
 
5450
 
 
5451
test -z "$RANLIB" && RANLIB=:
 
5452
 
 
5453
 
 
5454
 
 
5455
 
 
5456
 
 
5457
 
 
5458
# Determine commands to create old-style static archives.
 
5459
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
 
5460
old_postinstall_cmds='chmod 644 $oldlib'
 
5461
old_postuninstall_cmds=
 
5462
 
 
5463
if test -n "$RANLIB"; then
 
5464
  case $host_os in
 
5465
  openbsd*)
 
5466
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
 
5467
    ;;
 
5468
  *)
 
5469
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
 
5470
    ;;
 
5471
  esac
 
5472
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
 
5473
fi
 
5474
 
 
5475
 
 
5476
 
 
5477
 
 
5478
 
 
5479
 
 
5480
 
 
5481
 
 
5482
 
 
5483
 
 
5484
 
 
5485
 
 
5486
 
 
5487
 
 
5488
 
 
5489
 
 
5490
 
 
5491
 
 
5492
 
 
5493
 
 
5494
 
 
5495
 
 
5496
 
 
5497
 
 
5498
 
 
5499
 
 
5500
 
 
5501
 
 
5502
 
 
5503
 
 
5504
 
 
5505
 
 
5506
 
 
5507
 
4092
5508
# If no C compiler was specified, use CC.
4093
5509
LTCC=${LTCC-"$CC"}
4094
5510
 
4099
5515
compiler=$CC
4100
5516
 
4101
5517
 
4102
 
# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4103
 
if test "${enable_libtool_lock+set}" = set; then
4104
 
  enableval="$enable_libtool_lock"
4105
 
 
4106
 
fi;
4107
 
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4108
 
 
4109
 
# Some flags need to be propagated to the compiler or linker for good
4110
 
# libtool support.
4111
 
case $host in
4112
 
ia64-*-hpux*)
4113
 
  # Find out which ABI we are using.
4114
 
  echo 'int i;' > conftest.$ac_ext
4115
 
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4116
 
  (eval $ac_compile) 2>&5
4117
 
  ac_status=$?
4118
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4119
 
  (exit $ac_status); }; then
4120
 
    case `/usr/bin/file conftest.$ac_objext` in
4121
 
    *ELF-32*)
4122
 
      HPUX_IA64_MODE="32"
4123
 
      ;;
4124
 
    *ELF-64*)
4125
 
      HPUX_IA64_MODE="64"
4126
 
      ;;
4127
 
    esac
4128
 
  fi
4129
 
  rm -rf conftest*
4130
 
  ;;
4131
 
*-*-irix6*)
4132
 
  # Find out which ABI we are using.
4133
 
  echo '#line 4133 "configure"' > conftest.$ac_ext
4134
 
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4135
 
  (eval $ac_compile) 2>&5
4136
 
  ac_status=$?
4137
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4138
 
  (exit $ac_status); }; then
4139
 
   if test "$lt_cv_prog_gnu_ld" = yes; then
4140
 
    case `/usr/bin/file conftest.$ac_objext` in
4141
 
    *32-bit*)
4142
 
      LD="${LD-ld} -melf32bsmip"
4143
 
      ;;
4144
 
    *N32*)
4145
 
      LD="${LD-ld} -melf32bmipn32"
4146
 
      ;;
4147
 
    *64-bit*)
4148
 
      LD="${LD-ld} -melf64bmip"
4149
 
      ;;
4150
 
    esac
4151
 
   else
4152
 
    case `/usr/bin/file conftest.$ac_objext` in
4153
 
    *32-bit*)
4154
 
      LD="${LD-ld} -32"
4155
 
      ;;
4156
 
    *N32*)
4157
 
      LD="${LD-ld} -n32"
4158
 
      ;;
4159
 
    *64-bit*)
4160
 
      LD="${LD-ld} -64"
4161
 
      ;;
4162
 
    esac
4163
 
   fi
4164
 
  fi
4165
 
  rm -rf conftest*
4166
 
  ;;
4167
 
 
4168
 
x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4169
 
  # Find out which ABI we are using.
4170
 
  echo 'int i;' > conftest.$ac_ext
4171
 
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4172
 
  (eval $ac_compile) 2>&5
4173
 
  ac_status=$?
4174
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4175
 
  (exit $ac_status); }; then
4176
 
    case `/usr/bin/file conftest.o` in
4177
 
    *32-bit*)
4178
 
      case $host in
4179
 
        x86_64-*linux*)
4180
 
          LD="${LD-ld} -m elf_i386"
4181
 
          ;;
4182
 
        ppc64-*linux*|powerpc64-*linux*)
4183
 
          LD="${LD-ld} -m elf32ppclinux"
4184
 
          ;;
4185
 
        s390x-*linux*)
4186
 
          LD="${LD-ld} -m elf_s390"
4187
 
          ;;
4188
 
        sparc64-*linux*)
4189
 
          LD="${LD-ld} -m elf32_sparc"
4190
 
          ;;
4191
 
      esac
4192
 
      ;;
4193
 
    *64-bit*)
4194
 
      case $host in
4195
 
        x86_64-*linux*)
4196
 
          LD="${LD-ld} -m elf_x86_64"
4197
 
          ;;
4198
 
        ppc*-*linux*|powerpc*-*linux*)
4199
 
          LD="${LD-ld} -m elf64ppc"
4200
 
          ;;
4201
 
        s390*-*linux*)
4202
 
          LD="${LD-ld} -m elf64_s390"
4203
 
          ;;
4204
 
        sparc*-*linux*)
4205
 
          LD="${LD-ld} -m elf64_sparc"
4206
 
          ;;
4207
 
      esac
4208
 
      ;;
4209
 
    esac
4210
 
  fi
4211
 
  rm -rf conftest*
4212
 
  ;;
4213
 
 
4214
 
*-*-sco3.2v5*)
4215
 
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4216
 
  SAVE_CFLAGS="$CFLAGS"
4217
 
  CFLAGS="$CFLAGS -belf"
4218
 
  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4219
 
echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4220
 
if test "${lt_cv_cc_needs_belf+set}" = set; then
4221
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4222
 
else
4223
 
  ac_ext=c
4224
 
ac_cpp='$CPP $CPPFLAGS'
4225
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4226
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4227
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4228
 
 
4229
 
     cat >conftest.$ac_ext <<_ACEOF
4230
 
/* confdefs.h.  */
4231
 
_ACEOF
4232
 
cat confdefs.h >>conftest.$ac_ext
4233
 
cat >>conftest.$ac_ext <<_ACEOF
4234
 
/* end confdefs.h.  */
4235
 
 
4236
 
int
4237
 
main ()
4238
 
{
4239
 
 
4240
 
  ;
4241
 
  return 0;
4242
 
}
4243
 
_ACEOF
4244
 
rm -f conftest.$ac_objext conftest$ac_exeext
4245
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4246
 
  (eval $ac_link) 2>conftest.er1
4247
 
  ac_status=$?
4248
 
  grep -v '^ *+' conftest.er1 >conftest.err
4249
 
  rm -f conftest.er1
4250
 
  cat conftest.err >&5
4251
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4252
 
  (exit $ac_status); } &&
4253
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4254
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4255
 
  (eval $ac_try) 2>&5
4256
 
  ac_status=$?
4257
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4258
 
  (exit $ac_status); }; } &&
4259
 
         { ac_try='test -s conftest$ac_exeext'
4260
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4261
 
  (eval $ac_try) 2>&5
4262
 
  ac_status=$?
4263
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4264
 
  (exit $ac_status); }; }; then
4265
 
  lt_cv_cc_needs_belf=yes
4266
 
else
4267
 
  echo "$as_me: failed program was:" >&5
4268
 
sed 's/^/| /' conftest.$ac_ext >&5
4269
 
 
4270
 
lt_cv_cc_needs_belf=no
4271
 
fi
4272
 
rm -f conftest.err conftest.$ac_objext \
4273
 
      conftest$ac_exeext conftest.$ac_ext
4274
 
     ac_ext=c
4275
 
ac_cpp='$CPP $CPPFLAGS'
4276
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4277
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4278
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4279
 
 
4280
 
fi
4281
 
echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4282
 
echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4283
 
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4284
 
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4285
 
    CFLAGS="$SAVE_CFLAGS"
4286
 
  fi
4287
 
  ;;
4288
 
sparc*-*solaris*)
4289
 
  # Find out which ABI we are using.
4290
 
  echo 'int i;' > conftest.$ac_ext
4291
 
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4292
 
  (eval $ac_compile) 2>&5
4293
 
  ac_status=$?
4294
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4295
 
  (exit $ac_status); }; then
4296
 
    case `/usr/bin/file conftest.o` in
4297
 
    *64-bit*)
4298
 
      case $lt_cv_prog_gnu_ld in
4299
 
      yes*) LD="${LD-ld} -m elf64_sparc" ;;
4300
 
      *)    LD="${LD-ld} -64" ;;
4301
 
      esac
4302
 
      ;;
4303
 
    esac
4304
 
  fi
4305
 
  rm -rf conftest*
4306
 
  ;;
4307
 
 
4308
 
 
4309
 
esac
4310
 
 
4311
 
need_locks="$enable_libtool_lock"
4312
 
 
4313
 
 
4314
 
ac_ext=c
4315
 
ac_cpp='$CPP $CPPFLAGS'
4316
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4317
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4318
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4319
 
echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4320
 
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4321
 
# On Suns, sometimes $CPP names a directory.
4322
 
if test -n "$CPP" && test -d "$CPP"; then
4323
 
  CPP=
4324
 
fi
4325
 
if test -z "$CPP"; then
4326
 
  if test "${ac_cv_prog_CPP+set}" = set; then
4327
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4328
 
else
4329
 
      # Double quotes because CPP needs to be expanded
4330
 
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4331
 
    do
4332
 
      ac_preproc_ok=false
4333
 
for ac_c_preproc_warn_flag in '' yes
4334
 
do
4335
 
  # Use a header file that comes with gcc, so configuring glibc
4336
 
  # with a fresh cross-compiler works.
4337
 
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4338
 
  # <limits.h> exists even on freestanding compilers.
4339
 
  # On the NeXT, cc -E runs the code through the compiler's parser,
4340
 
  # not just through cpp. "Syntax error" is here to catch this case.
4341
 
  cat >conftest.$ac_ext <<_ACEOF
4342
 
/* confdefs.h.  */
4343
 
_ACEOF
4344
 
cat confdefs.h >>conftest.$ac_ext
4345
 
cat >>conftest.$ac_ext <<_ACEOF
4346
 
/* end confdefs.h.  */
4347
 
#ifdef __STDC__
4348
 
# include <limits.h>
4349
 
#else
4350
 
# include <assert.h>
4351
 
#endif
4352
 
                     Syntax error
4353
 
_ACEOF
4354
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4355
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4356
 
  ac_status=$?
4357
 
  grep -v '^ *+' conftest.er1 >conftest.err
4358
 
  rm -f conftest.er1
4359
 
  cat conftest.err >&5
4360
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4361
 
  (exit $ac_status); } >/dev/null; then
4362
 
  if test -s conftest.err; then
4363
 
    ac_cpp_err=$ac_c_preproc_warn_flag
4364
 
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4365
 
  else
4366
 
    ac_cpp_err=
4367
 
  fi
4368
 
else
4369
 
  ac_cpp_err=yes
4370
 
fi
4371
 
if test -z "$ac_cpp_err"; then
4372
 
  :
4373
 
else
4374
 
  echo "$as_me: failed program was:" >&5
4375
 
sed 's/^/| /' conftest.$ac_ext >&5
4376
 
 
4377
 
  # Broken: fails on valid input.
4378
 
continue
4379
 
fi
4380
 
rm -f conftest.err conftest.$ac_ext
4381
 
 
4382
 
  # OK, works on sane cases.  Now check whether non-existent headers
4383
 
  # can be detected and how.
4384
 
  cat >conftest.$ac_ext <<_ACEOF
4385
 
/* confdefs.h.  */
4386
 
_ACEOF
4387
 
cat confdefs.h >>conftest.$ac_ext
4388
 
cat >>conftest.$ac_ext <<_ACEOF
4389
 
/* end confdefs.h.  */
4390
 
#include <ac_nonexistent.h>
4391
 
_ACEOF
4392
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4393
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4394
 
  ac_status=$?
4395
 
  grep -v '^ *+' conftest.er1 >conftest.err
4396
 
  rm -f conftest.er1
4397
 
  cat conftest.err >&5
4398
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4399
 
  (exit $ac_status); } >/dev/null; then
4400
 
  if test -s conftest.err; then
4401
 
    ac_cpp_err=$ac_c_preproc_warn_flag
4402
 
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4403
 
  else
4404
 
    ac_cpp_err=
4405
 
  fi
4406
 
else
4407
 
  ac_cpp_err=yes
4408
 
fi
4409
 
if test -z "$ac_cpp_err"; then
4410
 
  # Broken: success on invalid input.
4411
 
continue
4412
 
else
4413
 
  echo "$as_me: failed program was:" >&5
4414
 
sed 's/^/| /' conftest.$ac_ext >&5
4415
 
 
4416
 
  # Passes both tests.
4417
 
ac_preproc_ok=:
4418
 
break
4419
 
fi
4420
 
rm -f conftest.err conftest.$ac_ext
4421
 
 
4422
 
done
4423
 
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4424
 
rm -f conftest.err conftest.$ac_ext
4425
 
if $ac_preproc_ok; then
4426
 
  break
4427
 
fi
4428
 
 
4429
 
    done
4430
 
    ac_cv_prog_CPP=$CPP
4431
 
 
4432
 
fi
4433
 
  CPP=$ac_cv_prog_CPP
4434
 
else
4435
 
  ac_cv_prog_CPP=$CPP
4436
 
fi
4437
 
echo "$as_me:$LINENO: result: $CPP" >&5
4438
 
echo "${ECHO_T}$CPP" >&6
4439
 
ac_preproc_ok=false
4440
 
for ac_c_preproc_warn_flag in '' yes
4441
 
do
4442
 
  # Use a header file that comes with gcc, so configuring glibc
4443
 
  # with a fresh cross-compiler works.
4444
 
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4445
 
  # <limits.h> exists even on freestanding compilers.
4446
 
  # On the NeXT, cc -E runs the code through the compiler's parser,
4447
 
  # not just through cpp. "Syntax error" is here to catch this case.
4448
 
  cat >conftest.$ac_ext <<_ACEOF
4449
 
/* confdefs.h.  */
4450
 
_ACEOF
4451
 
cat confdefs.h >>conftest.$ac_ext
4452
 
cat >>conftest.$ac_ext <<_ACEOF
4453
 
/* end confdefs.h.  */
4454
 
#ifdef __STDC__
4455
 
# include <limits.h>
4456
 
#else
4457
 
# include <assert.h>
4458
 
#endif
4459
 
                     Syntax error
4460
 
_ACEOF
4461
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4462
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4463
 
  ac_status=$?
4464
 
  grep -v '^ *+' conftest.er1 >conftest.err
4465
 
  rm -f conftest.er1
4466
 
  cat conftest.err >&5
4467
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4468
 
  (exit $ac_status); } >/dev/null; then
4469
 
  if test -s conftest.err; then
4470
 
    ac_cpp_err=$ac_c_preproc_warn_flag
4471
 
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4472
 
  else
4473
 
    ac_cpp_err=
4474
 
  fi
4475
 
else
4476
 
  ac_cpp_err=yes
4477
 
fi
4478
 
if test -z "$ac_cpp_err"; then
4479
 
  :
4480
 
else
4481
 
  echo "$as_me: failed program was:" >&5
4482
 
sed 's/^/| /' conftest.$ac_ext >&5
4483
 
 
4484
 
  # Broken: fails on valid input.
4485
 
continue
4486
 
fi
4487
 
rm -f conftest.err conftest.$ac_ext
4488
 
 
4489
 
  # OK, works on sane cases.  Now check whether non-existent headers
4490
 
  # can be detected and how.
4491
 
  cat >conftest.$ac_ext <<_ACEOF
4492
 
/* confdefs.h.  */
4493
 
_ACEOF
4494
 
cat confdefs.h >>conftest.$ac_ext
4495
 
cat >>conftest.$ac_ext <<_ACEOF
4496
 
/* end confdefs.h.  */
4497
 
#include <ac_nonexistent.h>
4498
 
_ACEOF
4499
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4500
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4501
 
  ac_status=$?
4502
 
  grep -v '^ *+' conftest.er1 >conftest.err
4503
 
  rm -f conftest.er1
4504
 
  cat conftest.err >&5
4505
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4506
 
  (exit $ac_status); } >/dev/null; then
4507
 
  if test -s conftest.err; then
4508
 
    ac_cpp_err=$ac_c_preproc_warn_flag
4509
 
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4510
 
  else
4511
 
    ac_cpp_err=
4512
 
  fi
4513
 
else
4514
 
  ac_cpp_err=yes
4515
 
fi
4516
 
if test -z "$ac_cpp_err"; then
4517
 
  # Broken: success on invalid input.
4518
 
continue
4519
 
else
4520
 
  echo "$as_me: failed program was:" >&5
4521
 
sed 's/^/| /' conftest.$ac_ext >&5
4522
 
 
4523
 
  # Passes both tests.
4524
 
ac_preproc_ok=:
4525
 
break
4526
 
fi
4527
 
rm -f conftest.err conftest.$ac_ext
4528
 
 
4529
 
done
4530
 
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4531
 
rm -f conftest.err conftest.$ac_ext
4532
 
if $ac_preproc_ok; then
4533
 
  :
4534
 
else
4535
 
  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4536
 
See \`config.log' for more details." >&5
4537
 
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4538
 
See \`config.log' for more details." >&2;}
4539
 
   { (exit 1); exit 1; }; }
4540
 
fi
4541
 
 
4542
 
ac_ext=c
4543
 
ac_cpp='$CPP $CPPFLAGS'
4544
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4545
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4546
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4547
 
 
4548
 
 
4549
 
echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4550
 
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4551
 
if test "${ac_cv_header_stdc+set}" = set; then
4552
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4553
 
else
4554
 
  cat >conftest.$ac_ext <<_ACEOF
4555
 
/* confdefs.h.  */
4556
 
_ACEOF
4557
 
cat confdefs.h >>conftest.$ac_ext
4558
 
cat >>conftest.$ac_ext <<_ACEOF
4559
 
/* end confdefs.h.  */
4560
 
#include <stdlib.h>
4561
 
#include <stdarg.h>
4562
 
#include <string.h>
4563
 
#include <float.h>
4564
 
 
4565
 
int
4566
 
main ()
4567
 
{
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_c_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_cv_header_stdc=yes
4595
 
else
4596
 
  echo "$as_me: failed program was:" >&5
4597
 
sed 's/^/| /' conftest.$ac_ext >&5
4598
 
 
4599
 
ac_cv_header_stdc=no
4600
 
fi
4601
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4602
 
 
4603
 
if test $ac_cv_header_stdc = yes; then
4604
 
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4605
 
  cat >conftest.$ac_ext <<_ACEOF
4606
 
/* confdefs.h.  */
4607
 
_ACEOF
4608
 
cat confdefs.h >>conftest.$ac_ext
4609
 
cat >>conftest.$ac_ext <<_ACEOF
4610
 
/* end confdefs.h.  */
4611
 
#include <string.h>
4612
 
 
4613
 
_ACEOF
4614
 
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4615
 
  $EGREP "memchr" >/dev/null 2>&1; then
4616
 
  :
4617
 
else
4618
 
  ac_cv_header_stdc=no
4619
 
fi
4620
 
rm -f conftest*
4621
 
 
4622
 
fi
4623
 
 
4624
 
if test $ac_cv_header_stdc = yes; then
4625
 
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4626
 
  cat >conftest.$ac_ext <<_ACEOF
4627
 
/* confdefs.h.  */
4628
 
_ACEOF
4629
 
cat confdefs.h >>conftest.$ac_ext
4630
 
cat >>conftest.$ac_ext <<_ACEOF
4631
 
/* end confdefs.h.  */
4632
 
#include <stdlib.h>
4633
 
 
4634
 
_ACEOF
4635
 
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4636
 
  $EGREP "free" >/dev/null 2>&1; then
4637
 
  :
4638
 
else
4639
 
  ac_cv_header_stdc=no
4640
 
fi
4641
 
rm -f conftest*
4642
 
 
4643
 
fi
4644
 
 
4645
 
if test $ac_cv_header_stdc = yes; then
4646
 
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4647
 
  if test "$cross_compiling" = yes; then
4648
 
  :
4649
 
else
4650
 
  cat >conftest.$ac_ext <<_ACEOF
4651
 
/* confdefs.h.  */
4652
 
_ACEOF
4653
 
cat confdefs.h >>conftest.$ac_ext
4654
 
cat >>conftest.$ac_ext <<_ACEOF
4655
 
/* end confdefs.h.  */
4656
 
#include <ctype.h>
4657
 
#if ((' ' & 0x0FF) == 0x020)
4658
 
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4659
 
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4660
 
#else
4661
 
# define ISLOWER(c) \
4662
 
                   (('a' <= (c) && (c) <= 'i') \
4663
 
                     || ('j' <= (c) && (c) <= 'r') \
4664
 
                     || ('s' <= (c) && (c) <= 'z'))
4665
 
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4666
 
#endif
4667
 
 
4668
 
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4669
 
int
4670
 
main ()
4671
 
{
4672
 
  int i;
4673
 
  for (i = 0; i < 256; i++)
4674
 
    if (XOR (islower (i), ISLOWER (i))
4675
 
        || toupper (i) != TOUPPER (i))
4676
 
      exit(2);
4677
 
  exit (0);
4678
 
}
4679
 
_ACEOF
4680
 
rm -f conftest$ac_exeext
4681
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4682
 
  (eval $ac_link) 2>&5
4683
 
  ac_status=$?
4684
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4685
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4686
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4687
 
  (eval $ac_try) 2>&5
4688
 
  ac_status=$?
4689
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4690
 
  (exit $ac_status); }; }; then
4691
 
  :
4692
 
else
4693
 
  echo "$as_me: program exited with status $ac_status" >&5
4694
 
echo "$as_me: failed program was:" >&5
4695
 
sed 's/^/| /' conftest.$ac_ext >&5
4696
 
 
4697
 
( exit $ac_status )
4698
 
ac_cv_header_stdc=no
4699
 
fi
4700
 
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4701
 
fi
4702
 
fi
4703
 
fi
4704
 
echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4705
 
echo "${ECHO_T}$ac_cv_header_stdc" >&6
4706
 
if test $ac_cv_header_stdc = yes; then
4707
 
 
4708
 
cat >>confdefs.h <<\_ACEOF
4709
 
#define STDC_HEADERS 1
4710
 
_ACEOF
4711
 
 
4712
 
fi
4713
 
 
4714
 
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4715
 
 
4716
 
 
4717
 
 
4718
 
 
4719
 
 
4720
 
 
4721
 
 
4722
 
 
4723
 
 
4724
 
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4725
 
                  inttypes.h stdint.h unistd.h
4726
 
do
4727
 
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4728
 
echo "$as_me:$LINENO: checking for $ac_header" >&5
4729
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4730
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
4731
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4732
 
else
4733
 
  cat >conftest.$ac_ext <<_ACEOF
4734
 
/* confdefs.h.  */
4735
 
_ACEOF
4736
 
cat confdefs.h >>conftest.$ac_ext
4737
 
cat >>conftest.$ac_ext <<_ACEOF
4738
 
/* end confdefs.h.  */
4739
 
$ac_includes_default
4740
 
 
4741
 
#include <$ac_header>
4742
 
_ACEOF
4743
 
rm -f conftest.$ac_objext
4744
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4745
 
  (eval $ac_compile) 2>conftest.er1
4746
 
  ac_status=$?
4747
 
  grep -v '^ *+' conftest.er1 >conftest.err
4748
 
  rm -f conftest.er1
4749
 
  cat conftest.err >&5
4750
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4751
 
  (exit $ac_status); } &&
4752
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4753
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4754
 
  (eval $ac_try) 2>&5
4755
 
  ac_status=$?
4756
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4757
 
  (exit $ac_status); }; } &&
4758
 
         { ac_try='test -s conftest.$ac_objext'
4759
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4760
 
  (eval $ac_try) 2>&5
4761
 
  ac_status=$?
4762
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4763
 
  (exit $ac_status); }; }; then
4764
 
  eval "$as_ac_Header=yes"
4765
 
else
4766
 
  echo "$as_me: failed program was:" >&5
4767
 
sed 's/^/| /' conftest.$ac_ext >&5
4768
 
 
4769
 
eval "$as_ac_Header=no"
4770
 
fi
4771
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4772
 
fi
4773
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4774
 
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4775
 
if test `eval echo '${'$as_ac_Header'}'` = yes; then
4776
 
  cat >>confdefs.h <<_ACEOF
4777
 
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4778
 
_ACEOF
4779
 
 
4780
 
fi
4781
 
 
4782
 
done
4783
 
 
4784
 
 
4785
 
 
4786
 
for ac_header in dlfcn.h
4787
 
do
4788
 
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4789
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
4790
 
  echo "$as_me:$LINENO: checking for $ac_header" >&5
4791
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4792
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
4793
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4794
 
fi
4795
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4796
 
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4797
 
else
4798
 
  # Is the header compilable?
4799
 
echo "$as_me:$LINENO: checking $ac_header usability" >&5
4800
 
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4801
 
cat >conftest.$ac_ext <<_ACEOF
4802
 
/* confdefs.h.  */
4803
 
_ACEOF
4804
 
cat confdefs.h >>conftest.$ac_ext
4805
 
cat >>conftest.$ac_ext <<_ACEOF
4806
 
/* end confdefs.h.  */
4807
 
$ac_includes_default
4808
 
#include <$ac_header>
4809
 
_ACEOF
4810
 
rm -f conftest.$ac_objext
4811
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4812
 
  (eval $ac_compile) 2>conftest.er1
4813
 
  ac_status=$?
4814
 
  grep -v '^ *+' conftest.er1 >conftest.err
4815
 
  rm -f conftest.er1
4816
 
  cat conftest.err >&5
4817
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4818
 
  (exit $ac_status); } &&
4819
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4820
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4821
 
  (eval $ac_try) 2>&5
4822
 
  ac_status=$?
4823
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4824
 
  (exit $ac_status); }; } &&
4825
 
         { ac_try='test -s conftest.$ac_objext'
4826
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4827
 
  (eval $ac_try) 2>&5
4828
 
  ac_status=$?
4829
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4830
 
  (exit $ac_status); }; }; then
4831
 
  ac_header_compiler=yes
4832
 
else
4833
 
  echo "$as_me: failed program was:" >&5
4834
 
sed 's/^/| /' conftest.$ac_ext >&5
4835
 
 
4836
 
ac_header_compiler=no
4837
 
fi
4838
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4839
 
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4840
 
echo "${ECHO_T}$ac_header_compiler" >&6
4841
 
 
4842
 
# Is the header present?
4843
 
echo "$as_me:$LINENO: checking $ac_header presence" >&5
4844
 
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4845
 
cat >conftest.$ac_ext <<_ACEOF
4846
 
/* confdefs.h.  */
4847
 
_ACEOF
4848
 
cat confdefs.h >>conftest.$ac_ext
4849
 
cat >>conftest.$ac_ext <<_ACEOF
4850
 
/* end confdefs.h.  */
4851
 
#include <$ac_header>
4852
 
_ACEOF
4853
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4854
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4855
 
  ac_status=$?
4856
 
  grep -v '^ *+' conftest.er1 >conftest.err
4857
 
  rm -f conftest.er1
4858
 
  cat conftest.err >&5
4859
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4860
 
  (exit $ac_status); } >/dev/null; then
4861
 
  if test -s conftest.err; then
4862
 
    ac_cpp_err=$ac_c_preproc_warn_flag
4863
 
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4864
 
  else
4865
 
    ac_cpp_err=
4866
 
  fi
4867
 
else
4868
 
  ac_cpp_err=yes
4869
 
fi
4870
 
if test -z "$ac_cpp_err"; then
4871
 
  ac_header_preproc=yes
4872
 
else
4873
 
  echo "$as_me: failed program was:" >&5
4874
 
sed 's/^/| /' conftest.$ac_ext >&5
4875
 
 
4876
 
  ac_header_preproc=no
4877
 
fi
4878
 
rm -f conftest.err conftest.$ac_ext
4879
 
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4880
 
echo "${ECHO_T}$ac_header_preproc" >&6
4881
 
 
4882
 
# So?  What about this header?
4883
 
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4884
 
  yes:no: )
4885
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4886
 
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4887
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4888
 
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4889
 
    ac_header_preproc=yes
4890
 
    ;;
4891
 
  no:yes:* )
4892
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4893
 
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4894
 
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4895
 
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4896
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4897
 
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4898
 
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4899
 
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4900
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4901
 
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4902
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4903
 
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4904
 
    (
4905
 
      cat <<\_ASBOX
4906
 
## ---------------------------------------- ##
4907
 
## Report this to protobuf@googlegroups.com ##
4908
 
## ---------------------------------------- ##
4909
 
_ASBOX
4910
 
    ) |
4911
 
      sed "s/^/$as_me: WARNING:     /" >&2
4912
 
    ;;
4913
 
esac
4914
 
echo "$as_me:$LINENO: checking for $ac_header" >&5
4915
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4916
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
4917
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4918
 
else
4919
 
  eval "$as_ac_Header=\$ac_header_preproc"
4920
 
fi
4921
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4922
 
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4923
 
 
4924
 
fi
4925
 
if test `eval echo '${'$as_ac_Header'}'` = yes; then
4926
 
  cat >>confdefs.h <<_ACEOF
4927
 
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4928
 
_ACEOF
4929
 
 
4930
 
fi
4931
 
 
4932
 
done
4933
 
 
4934
 
 
4935
 
 
4936
 
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
4937
 
    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
4938
 
    (test "X$CXX" != "Xg++"))) ; then
4939
 
  ac_ext=cc
4940
 
ac_cpp='$CXXCPP $CPPFLAGS'
4941
 
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4942
 
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4943
 
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4944
 
echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4945
 
echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4946
 
if test -z "$CXXCPP"; then
4947
 
  if test "${ac_cv_prog_CXXCPP+set}" = set; then
4948
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4949
 
else
4950
 
      # Double quotes because CXXCPP needs to be expanded
4951
 
    for CXXCPP in "$CXX -E" "/lib/cpp"
4952
 
    do
4953
 
      ac_preproc_ok=false
4954
 
for ac_cxx_preproc_warn_flag in '' yes
4955
 
do
4956
 
  # Use a header file that comes with gcc, so configuring glibc
4957
 
  # with a fresh cross-compiler works.
4958
 
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4959
 
  # <limits.h> exists even on freestanding compilers.
4960
 
  # On the NeXT, cc -E runs the code through the compiler's parser,
4961
 
  # not just through cpp. "Syntax error" is here to catch this case.
4962
 
  cat >conftest.$ac_ext <<_ACEOF
4963
 
/* confdefs.h.  */
4964
 
_ACEOF
4965
 
cat confdefs.h >>conftest.$ac_ext
4966
 
cat >>conftest.$ac_ext <<_ACEOF
4967
 
/* end confdefs.h.  */
4968
 
#ifdef __STDC__
4969
 
# include <limits.h>
4970
 
#else
4971
 
# include <assert.h>
4972
 
#endif
4973
 
                     Syntax error
4974
 
_ACEOF
4975
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4976
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4977
 
  ac_status=$?
4978
 
  grep -v '^ *+' conftest.er1 >conftest.err
4979
 
  rm -f conftest.er1
4980
 
  cat conftest.err >&5
4981
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4982
 
  (exit $ac_status); } >/dev/null; then
4983
 
  if test -s conftest.err; then
4984
 
    ac_cpp_err=$ac_cxx_preproc_warn_flag
4985
 
    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4986
 
  else
4987
 
    ac_cpp_err=
4988
 
  fi
4989
 
else
4990
 
  ac_cpp_err=yes
4991
 
fi
4992
 
if test -z "$ac_cpp_err"; then
4993
 
  :
4994
 
else
4995
 
  echo "$as_me: failed program was:" >&5
4996
 
sed 's/^/| /' conftest.$ac_ext >&5
4997
 
 
4998
 
  # Broken: fails on valid input.
4999
 
continue
5000
 
fi
5001
 
rm -f conftest.err conftest.$ac_ext
5002
 
 
5003
 
  # OK, works on sane cases.  Now check whether non-existent headers
5004
 
  # can be detected and how.
5005
 
  cat >conftest.$ac_ext <<_ACEOF
5006
 
/* confdefs.h.  */
5007
 
_ACEOF
5008
 
cat confdefs.h >>conftest.$ac_ext
5009
 
cat >>conftest.$ac_ext <<_ACEOF
5010
 
/* end confdefs.h.  */
5011
 
#include <ac_nonexistent.h>
5012
 
_ACEOF
5013
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5014
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5015
 
  ac_status=$?
5016
 
  grep -v '^ *+' conftest.er1 >conftest.err
5017
 
  rm -f conftest.er1
5018
 
  cat conftest.err >&5
5019
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5020
 
  (exit $ac_status); } >/dev/null; then
5021
 
  if test -s conftest.err; then
5022
 
    ac_cpp_err=$ac_cxx_preproc_warn_flag
5023
 
    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5024
 
  else
5025
 
    ac_cpp_err=
5026
 
  fi
5027
 
else
5028
 
  ac_cpp_err=yes
5029
 
fi
5030
 
if test -z "$ac_cpp_err"; then
5031
 
  # Broken: success on invalid input.
5032
 
continue
5033
 
else
5034
 
  echo "$as_me: failed program was:" >&5
5035
 
sed 's/^/| /' conftest.$ac_ext >&5
5036
 
 
5037
 
  # Passes both tests.
5038
 
ac_preproc_ok=:
5039
 
break
5040
 
fi
5041
 
rm -f conftest.err conftest.$ac_ext
5042
 
 
5043
 
done
5044
 
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5045
 
rm -f conftest.err conftest.$ac_ext
5046
 
if $ac_preproc_ok; then
5047
 
  break
5048
 
fi
5049
 
 
5050
 
    done
5051
 
    ac_cv_prog_CXXCPP=$CXXCPP
5052
 
 
5053
 
fi
5054
 
  CXXCPP=$ac_cv_prog_CXXCPP
5055
 
else
5056
 
  ac_cv_prog_CXXCPP=$CXXCPP
5057
 
fi
5058
 
echo "$as_me:$LINENO: result: $CXXCPP" >&5
5059
 
echo "${ECHO_T}$CXXCPP" >&6
5060
 
ac_preproc_ok=false
5061
 
for ac_cxx_preproc_warn_flag in '' yes
5062
 
do
5063
 
  # Use a header file that comes with gcc, so configuring glibc
5064
 
  # with a fresh cross-compiler works.
5065
 
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5066
 
  # <limits.h> exists even on freestanding compilers.
5067
 
  # On the NeXT, cc -E runs the code through the compiler's parser,
5068
 
  # not just through cpp. "Syntax error" is here to catch this case.
5069
 
  cat >conftest.$ac_ext <<_ACEOF
5070
 
/* confdefs.h.  */
5071
 
_ACEOF
5072
 
cat confdefs.h >>conftest.$ac_ext
5073
 
cat >>conftest.$ac_ext <<_ACEOF
5074
 
/* end confdefs.h.  */
5075
 
#ifdef __STDC__
5076
 
# include <limits.h>
5077
 
#else
5078
 
# include <assert.h>
5079
 
#endif
5080
 
                     Syntax error
5081
 
_ACEOF
5082
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5083
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5084
 
  ac_status=$?
5085
 
  grep -v '^ *+' conftest.er1 >conftest.err
5086
 
  rm -f conftest.er1
5087
 
  cat conftest.err >&5
5088
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5089
 
  (exit $ac_status); } >/dev/null; then
5090
 
  if test -s conftest.err; then
5091
 
    ac_cpp_err=$ac_cxx_preproc_warn_flag
5092
 
    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5093
 
  else
5094
 
    ac_cpp_err=
5095
 
  fi
5096
 
else
5097
 
  ac_cpp_err=yes
5098
 
fi
5099
 
if test -z "$ac_cpp_err"; then
5100
 
  :
5101
 
else
5102
 
  echo "$as_me: failed program was:" >&5
5103
 
sed 's/^/| /' conftest.$ac_ext >&5
5104
 
 
5105
 
  # Broken: fails on valid input.
5106
 
continue
5107
 
fi
5108
 
rm -f conftest.err conftest.$ac_ext
5109
 
 
5110
 
  # OK, works on sane cases.  Now check whether non-existent headers
5111
 
  # can be detected and how.
5112
 
  cat >conftest.$ac_ext <<_ACEOF
5113
 
/* confdefs.h.  */
5114
 
_ACEOF
5115
 
cat confdefs.h >>conftest.$ac_ext
5116
 
cat >>conftest.$ac_ext <<_ACEOF
5117
 
/* end confdefs.h.  */
5118
 
#include <ac_nonexistent.h>
5119
 
_ACEOF
5120
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5121
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5122
 
  ac_status=$?
5123
 
  grep -v '^ *+' conftest.er1 >conftest.err
5124
 
  rm -f conftest.er1
5125
 
  cat conftest.err >&5
5126
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5127
 
  (exit $ac_status); } >/dev/null; then
5128
 
  if test -s conftest.err; then
5129
 
    ac_cpp_err=$ac_cxx_preproc_warn_flag
5130
 
    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5131
 
  else
5132
 
    ac_cpp_err=
5133
 
  fi
5134
 
else
5135
 
  ac_cpp_err=yes
5136
 
fi
5137
 
if test -z "$ac_cpp_err"; then
5138
 
  # Broken: success on invalid input.
5139
 
continue
5140
 
else
5141
 
  echo "$as_me: failed program was:" >&5
5142
 
sed 's/^/| /' conftest.$ac_ext >&5
5143
 
 
5144
 
  # Passes both tests.
5145
 
ac_preproc_ok=:
5146
 
break
5147
 
fi
5148
 
rm -f conftest.err conftest.$ac_ext
5149
 
 
5150
 
done
5151
 
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5152
 
rm -f conftest.err conftest.$ac_ext
5153
 
if $ac_preproc_ok; then
5154
 
  :
5155
 
else
5156
 
  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5157
 
See \`config.log' for more details." >&5
5158
 
echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5159
 
See \`config.log' for more details." >&2;}
5160
 
   { (exit 1); exit 1; }; }
5161
 
fi
5162
 
 
5163
 
ac_ext=cc
5164
 
ac_cpp='$CXXCPP $CPPFLAGS'
5165
 
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5166
 
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5167
 
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5168
 
 
5169
 
fi
5170
 
 
5171
 
 
5172
 
ac_ext=f
5173
 
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5174
 
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5175
 
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5176
 
if test -n "$ac_tool_prefix"; then
5177
 
  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5178
 
  do
5179
 
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5180
 
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5181
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
5182
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5183
 
if test "${ac_cv_prog_F77+set}" = set; then
5184
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
5185
 
else
5186
 
  if test -n "$F77"; then
5187
 
  ac_cv_prog_F77="$F77" # Let the user override the test.
5188
 
else
5189
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5190
 
for as_dir in $PATH
5191
 
do
5192
 
  IFS=$as_save_IFS
5193
 
  test -z "$as_dir" && as_dir=.
5194
 
  for ac_exec_ext in '' $ac_executable_extensions; do
5195
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5196
 
    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5197
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5198
 
    break 2
5199
 
  fi
5200
 
done
5201
 
done
5202
 
 
5203
 
fi
5204
 
fi
5205
 
F77=$ac_cv_prog_F77
5206
 
if test -n "$F77"; then
5207
 
  echo "$as_me:$LINENO: result: $F77" >&5
5208
 
echo "${ECHO_T}$F77" >&6
5209
 
else
5210
 
  echo "$as_me:$LINENO: result: no" >&5
5211
 
echo "${ECHO_T}no" >&6
5212
 
fi
5213
 
 
5214
 
    test -n "$F77" && break
5215
 
  done
5216
 
fi
5217
 
if test -z "$F77"; then
5218
 
  ac_ct_F77=$F77
5219
 
  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5220
 
do
5221
 
  # Extract the first word of "$ac_prog", so it can be a program name with args.
5222
 
set dummy $ac_prog; ac_word=$2
5223
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
5224
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5225
 
if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5226
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
5227
 
else
5228
 
  if test -n "$ac_ct_F77"; then
5229
 
  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5230
 
else
5231
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5232
 
for as_dir in $PATH
5233
 
do
5234
 
  IFS=$as_save_IFS
5235
 
  test -z "$as_dir" && as_dir=.
5236
 
  for ac_exec_ext in '' $ac_executable_extensions; do
5237
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5238
 
    ac_cv_prog_ac_ct_F77="$ac_prog"
5239
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5240
 
    break 2
5241
 
  fi
5242
 
done
5243
 
done
5244
 
 
5245
 
fi
5246
 
fi
5247
 
ac_ct_F77=$ac_cv_prog_ac_ct_F77
5248
 
if test -n "$ac_ct_F77"; then
5249
 
  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5250
 
echo "${ECHO_T}$ac_ct_F77" >&6
5251
 
else
5252
 
  echo "$as_me:$LINENO: result: no" >&5
5253
 
echo "${ECHO_T}no" >&6
5254
 
fi
5255
 
 
5256
 
  test -n "$ac_ct_F77" && break
5257
 
done
5258
 
 
5259
 
  F77=$ac_ct_F77
5260
 
fi
5261
 
 
5262
 
 
5263
 
# Provide some information about the compiler.
5264
 
echo "$as_me:5264:" \
5265
 
     "checking for Fortran 77 compiler version" >&5
5266
 
ac_compiler=`set X $ac_compile; echo $2`
5267
 
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5268
 
  (eval $ac_compiler --version </dev/null >&5) 2>&5
5269
 
  ac_status=$?
5270
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5271
 
  (exit $ac_status); }
5272
 
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5273
 
  (eval $ac_compiler -v </dev/null >&5) 2>&5
5274
 
  ac_status=$?
5275
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5276
 
  (exit $ac_status); }
5277
 
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5278
 
  (eval $ac_compiler -V </dev/null >&5) 2>&5
5279
 
  ac_status=$?
5280
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5281
 
  (exit $ac_status); }
5282
 
rm -f a.out
5283
 
 
5284
 
# If we don't use `.F' as extension, the preprocessor is not run on the
5285
 
# input file.  (Note that this only needs to work for GNU compilers.)
5286
 
ac_save_ext=$ac_ext
5287
 
ac_ext=F
5288
 
echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5289
 
echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5290
 
if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5291
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
5292
 
else
5293
 
  cat >conftest.$ac_ext <<_ACEOF
5294
 
      program main
5295
 
#ifndef __GNUC__
5296
 
       choke me
5297
 
#endif
5298
 
 
5299
 
      end
5300
 
_ACEOF
5301
 
rm -f conftest.$ac_objext
5302
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5303
 
  (eval $ac_compile) 2>conftest.er1
5304
 
  ac_status=$?
5305
 
  grep -v '^ *+' conftest.er1 >conftest.err
5306
 
  rm -f conftest.er1
5307
 
  cat conftest.err >&5
5308
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5309
 
  (exit $ac_status); } &&
5310
 
         { ac_try='test -z "$ac_f77_werror_flag"                         || test ! -s conftest.err'
5311
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5312
 
  (eval $ac_try) 2>&5
5313
 
  ac_status=$?
5314
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5315
 
  (exit $ac_status); }; } &&
5316
 
         { ac_try='test -s conftest.$ac_objext'
5317
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5318
 
  (eval $ac_try) 2>&5
5319
 
  ac_status=$?
5320
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5321
 
  (exit $ac_status); }; }; then
5322
 
  ac_compiler_gnu=yes
5323
 
else
5324
 
  echo "$as_me: failed program was:" >&5
5325
 
sed 's/^/| /' conftest.$ac_ext >&5
5326
 
 
5327
 
ac_compiler_gnu=no
5328
 
fi
5329
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5330
 
ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5331
 
 
5332
 
fi
5333
 
echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5334
 
echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5335
 
ac_ext=$ac_save_ext
5336
 
ac_test_FFLAGS=${FFLAGS+set}
5337
 
ac_save_FFLAGS=$FFLAGS
5338
 
FFLAGS=
5339
 
echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5340
 
echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5341
 
if test "${ac_cv_prog_f77_g+set}" = set; then
5342
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
5343
 
else
5344
 
  FFLAGS=-g
5345
 
cat >conftest.$ac_ext <<_ACEOF
5346
 
      program main
5347
 
 
5348
 
      end
5349
 
_ACEOF
5350
 
rm -f conftest.$ac_objext
5351
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5352
 
  (eval $ac_compile) 2>conftest.er1
5353
 
  ac_status=$?
5354
 
  grep -v '^ *+' conftest.er1 >conftest.err
5355
 
  rm -f conftest.er1
5356
 
  cat conftest.err >&5
5357
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5358
 
  (exit $ac_status); } &&
5359
 
         { ac_try='test -z "$ac_f77_werror_flag"                         || test ! -s conftest.err'
5360
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5361
 
  (eval $ac_try) 2>&5
5362
 
  ac_status=$?
5363
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5364
 
  (exit $ac_status); }; } &&
5365
 
         { ac_try='test -s conftest.$ac_objext'
5366
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5367
 
  (eval $ac_try) 2>&5
5368
 
  ac_status=$?
5369
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5370
 
  (exit $ac_status); }; }; then
5371
 
  ac_cv_prog_f77_g=yes
5372
 
else
5373
 
  echo "$as_me: failed program was:" >&5
5374
 
sed 's/^/| /' conftest.$ac_ext >&5
5375
 
 
5376
 
ac_cv_prog_f77_g=no
5377
 
fi
5378
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5379
 
 
5380
 
fi
5381
 
echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5382
 
echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5383
 
if test "$ac_test_FFLAGS" = set; then
5384
 
  FFLAGS=$ac_save_FFLAGS
5385
 
elif test $ac_cv_prog_f77_g = yes; then
5386
 
  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5387
 
    FFLAGS="-g -O2"
5388
 
  else
5389
 
    FFLAGS="-g"
5390
 
  fi
5391
 
else
5392
 
  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5393
 
    FFLAGS="-O2"
5394
 
  else
5395
 
    FFLAGS=
5396
 
  fi
5397
 
fi
5398
 
 
5399
 
G77=`test $ac_compiler_gnu = yes && echo yes`
5400
 
ac_ext=c
5401
 
ac_cpp='$CPP $CPPFLAGS'
5402
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5403
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5404
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5405
 
 
5406
 
 
5407
 
 
5408
 
# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5409
 
 
5410
 
# find the maximum length of command line arguments
5411
 
echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5412
 
echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5413
 
if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5414
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
5415
 
else
5416
 
    i=0
5417
 
  teststring="ABCD"
5418
 
 
5419
 
  case $build_os in
5420
 
  msdosdjgpp*)
5421
 
    # On DJGPP, this test can blow up pretty badly due to problems in libc
5422
 
    # (any single argument exceeding 2000 bytes causes a buffer overrun
5423
 
    # during glob expansion).  Even if it were fixed, the result of this
5424
 
    # check would be larger than it should be.
5425
 
    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5426
 
    ;;
5427
 
 
5428
 
  gnu*)
5429
 
    # Under GNU Hurd, this test is not required because there is
5430
 
    # no limit to the length of command line arguments.
5431
 
    # Libtool will interpret -1 as no limit whatsoever
5432
 
    lt_cv_sys_max_cmd_len=-1;
5433
 
    ;;
5434
 
 
5435
 
  cygwin* | mingw*)
5436
 
    # On Win9x/ME, this test blows up -- it succeeds, but takes
5437
 
    # about 5 minutes as the teststring grows exponentially.
5438
 
    # Worse, since 9x/ME are not pre-emptively multitasking,
5439
 
    # you end up with a "frozen" computer, even though with patience
5440
 
    # the test eventually succeeds (with a max line length of 256k).
5441
 
    # Instead, let's just punt: use the minimum linelength reported by
5442
 
    # all of the supported platforms: 8192 (on NT/2K/XP).
5443
 
    lt_cv_sys_max_cmd_len=8192;
5444
 
    ;;
5445
 
 
5446
 
  amigaos*)
5447
 
    # On AmigaOS with pdksh, this test takes hours, literally.
5448
 
    # So we just punt and use a minimum line length of 8192.
5449
 
    lt_cv_sys_max_cmd_len=8192;
5450
 
    ;;
5451
 
 
5452
 
  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5453
 
    # This has been around since 386BSD, at least.  Likely further.
5454
 
    if test -x /sbin/sysctl; then
5455
 
      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5456
 
    elif test -x /usr/sbin/sysctl; then
5457
 
      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5458
 
    else
5459
 
      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
5460
 
    fi
5461
 
    # And add a safety zone
5462
 
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5463
 
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5464
 
    ;;
5465
 
 
5466
 
  interix*)
5467
 
    # We know the value 262144 and hardcode it with a safety zone (like BSD)
5468
 
    lt_cv_sys_max_cmd_len=196608
5469
 
    ;;
5470
 
 
5471
 
  osf*)
5472
 
    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5473
 
    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5474
 
    # nice to cause kernel panics so lets avoid the loop below.
5475
 
    # First set a reasonable default.
5476
 
    lt_cv_sys_max_cmd_len=16384
5477
 
    #
5478
 
    if test -x /sbin/sysconfig; then
5479
 
      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5480
 
        *1*) lt_cv_sys_max_cmd_len=-1 ;;
5481
 
      esac
5482
 
    fi
5483
 
    ;;
5484
 
  sco3.2v5*)
5485
 
    lt_cv_sys_max_cmd_len=102400
5486
 
    ;;
5487
 
  sysv5* | sco5v6* | sysv4.2uw2*)
5488
 
    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5489
 
    if test -n "$kargmax"; then
5490
 
      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
5491
 
    else
5492
 
      lt_cv_sys_max_cmd_len=32768
5493
 
    fi
5494
 
    ;;
5495
 
  *)
5496
 
    # If test is not a shell built-in, we'll probably end up computing a
5497
 
    # maximum length that is only half of the actual maximum length, but
5498
 
    # we can't tell.
5499
 
    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5500
 
    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5501
 
               = "XX$teststring") >/dev/null 2>&1 &&
5502
 
            new_result=`expr "X$teststring" : ".*" 2>&1` &&
5503
 
            lt_cv_sys_max_cmd_len=$new_result &&
5504
 
            test $i != 17 # 1/2 MB should be enough
5505
 
    do
5506
 
      i=`expr $i + 1`
5507
 
      teststring=$teststring$teststring
5508
 
    done
5509
 
    teststring=
5510
 
    # Add a significant safety factor because C++ compilers can tack on massive
5511
 
    # amounts of additional arguments before passing them to the linker.
5512
 
    # It appears as though 1/2 is a usable value.
5513
 
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5514
 
    ;;
5515
 
  esac
5516
 
 
5517
 
fi
5518
 
 
5519
 
if test -n $lt_cv_sys_max_cmd_len ; then
5520
 
  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5521
 
echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5522
 
else
5523
 
  echo "$as_me:$LINENO: result: none" >&5
5524
 
echo "${ECHO_T}none" >&6
5525
 
fi
5526
 
 
5527
 
 
5528
 
 
5529
 
 
5530
5518
# Check for command to grab the raw symbol name followed by C symbol from nm.
5531
5519
echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5532
5520
echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5543
5531
# Regexp to match symbols that can be accessed directly from C.
5544
5532
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5545
5533
 
5546
 
# Transform an extracted symbol line into a proper C declaration
5547
 
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5548
 
 
5549
 
# Transform an extracted symbol line into symbol name and symbol address
5550
 
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'"
5551
 
 
5552
5534
# Define system-specific variables.
5553
5535
case $host_os in
5554
5536
aix*)
5557
5539
cygwin* | mingw* | pw32*)
5558
5540
  symcode='[ABCDGISTW]'
5559
5541
  ;;
5560
 
hpux*) # Its linker distinguishes data from code symbols
 
5542
hpux*)
5561
5543
  if test "$host_cpu" = ia64; then
5562
5544
    symcode='[ABCDEGRST]'
5563
5545
  fi
5564
 
  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5565
 
  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'"
5566
 
  ;;
5567
 
linux*)
5568
 
  if test "$host_cpu" = ia64; then
5569
 
    symcode='[ABCDGIRSTW]'
5570
 
    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5571
 
    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'"
5572
 
  fi
5573
5546
  ;;
5574
5547
irix* | nonstopux*)
5575
5548
  symcode='[BCDEGRST]'
5594
5567
  ;;
5595
5568
esac
5596
5569
 
 
5570
# If we're using GNU nm, then use its standard symbol codes.
 
5571
case `$NM -V 2>&1` in
 
5572
*GNU* | *'with BFD'*)
 
5573
  symcode='[ABCDGIRSTW]' ;;
 
5574
esac
 
5575
 
 
5576
# Transform an extracted symbol line into a proper C declaration.
 
5577
# Some systems (esp. on ia64) link data and code symbols differently,
 
5578
# so use this general approach.
 
5579
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
 
5580
 
 
5581
# Transform an extracted symbol line into symbol name and symbol address
 
5582
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
 
5583
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/  {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"lib\2\", (void *) \&\2},/p'"
 
5584
 
5597
5585
# Handle CRLF in mingw tool chain
5598
5586
opt_cr=
5599
5587
case $build_os in
5600
5588
mingw*)
5601
 
  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
 
5589
  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5602
5590
  ;;
5603
5591
esac
5604
5592
 
5605
 
# If we're using GNU nm, then use its standard symbol codes.
5606
 
case `$NM -V 2>&1` in
5607
 
*GNU* | *'with BFD'*)
5608
 
  symcode='[ABCDGIRSTW]' ;;
5609
 
esac
5610
 
 
5611
 
# Try without a prefix undercore, then with it.
 
5593
# Try without a prefix underscore, then with it.
5612
5594
for ac_symprfx in "" "_"; do
5613
5595
 
5614
5596
  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5615
5597
  symxfrm="\\1 $ac_symprfx\\2 \\2"
5616
5598
 
5617
5599
  # Write the raw and C identifiers.
5618
 
  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
 
5600
  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
 
5601
    # Fake it for dumpbin and say T for any non-static function
 
5602
    # and D for any global variable.
 
5603
    # Also find C++ and __fastcall symbols from MSVC++,
 
5604
    # which start with @ or ?.
 
5605
    lt_cv_sys_global_symbol_pipe="$AWK '"\
 
5606
"     {last_section=section; section=\$ 3};"\
 
5607
"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
 
5608
"     \$ 0!~/External *\|/{next};"\
 
5609
"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
 
5610
"     {if(hide[section]) next};"\
 
5611
"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
 
5612
"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
 
5613
"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
 
5614
"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
 
5615
"     ' prfx=^$ac_symprfx"
 
5616
  else
 
5617
    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
 
5618
  fi
5619
5619
 
5620
5620
  # Check to see that the pipe works correctly.
5621
5621
  pipe_works=no
5622
5622
 
5623
5623
  rm -f conftest*
5624
 
  cat > conftest.$ac_ext <<EOF
 
5624
  cat > conftest.$ac_ext <<_LT_EOF
5625
5625
#ifdef __cplusplus
5626
5626
extern "C" {
5627
5627
#endif
5628
5628
char nm_test_var;
5629
 
void nm_test_func(){}
 
5629
void nm_test_func(void);
 
5630
void nm_test_func(void){}
5630
5631
#ifdef __cplusplus
5631
5632
}
5632
5633
#endif
5633
5634
int main(){nm_test_var='a';nm_test_func();return(0);}
5634
 
EOF
 
5635
_LT_EOF
5635
5636
 
5636
5637
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5637
5638
  (eval $ac_compile) 2>&5
5653
5654
      fi
5654
5655
 
5655
5656
      # Make sure that we snagged all the symbols we need.
5656
 
      if grep ' nm_test_var$' "$nlist" >/dev/null; then
5657
 
        if grep ' nm_test_func$' "$nlist" >/dev/null; then
5658
 
          cat <<EOF > conftest.$ac_ext
 
5657
      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
 
5658
        if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
 
5659
          cat <<_LT_EOF > conftest.$ac_ext
5659
5660
#ifdef __cplusplus
5660
5661
extern "C" {
5661
5662
#endif
5662
5663
 
5663
 
EOF
 
5664
_LT_EOF
5664
5665
          # Now generate the symbol file.
5665
 
          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5666
 
 
5667
 
          cat <<EOF >> conftest.$ac_ext
5668
 
#if defined (__STDC__) && __STDC__
5669
 
# define lt_ptr_t void *
5670
 
#else
5671
 
# define lt_ptr_t char *
5672
 
# define const
5673
 
#endif
5674
 
 
5675
 
/* The mapping between symbol names and symbols. */
 
5666
          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
 
5667
 
 
5668
          cat <<_LT_EOF >> conftest.$ac_ext
 
5669
 
 
5670
/* The mapping between symbol names and symbols.  */
5676
5671
const struct {
5677
5672
  const char *name;
5678
 
  lt_ptr_t address;
 
5673
  void       *address;
5679
5674
}
5680
 
lt_preloaded_symbols[] =
 
5675
lt__PROGRAM__LTX_preloaded_symbols[] =
5681
5676
{
5682
 
EOF
5683
 
          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5684
 
          cat <<\EOF >> conftest.$ac_ext
5685
 
  {0, (lt_ptr_t) 0}
 
5677
  { "@PROGRAM@", (void *) 0 },
 
5678
_LT_EOF
 
5679
          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
 
5680
          cat <<\_LT_EOF >> conftest.$ac_ext
 
5681
  {0, (void *) 0}
5686
5682
};
5687
5683
 
 
5684
/* This works around a problem in FreeBSD linker */
 
5685
#ifdef FREEBSD_WORKAROUND
 
5686
static const void *lt_preloaded_setup() {
 
5687
  return lt__PROGRAM__LTX_preloaded_symbols;
 
5688
}
 
5689
#endif
 
5690
 
5688
5691
#ifdef __cplusplus
5689
5692
}
5690
5693
#endif
5691
 
EOF
 
5694
_LT_EOF
5692
5695
          # Now try linking the two files.
5693
5696
          mv conftest.$ac_objext conftstm.$ac_objext
5694
5697
          lt_save_LIBS="$LIBS"
5717
5720
    echo "$progname: failed program was:" >&5
5718
5721
    cat conftest.$ac_ext >&5
5719
5722
  fi
5720
 
  rm -f conftest* conftst*
 
5723
  rm -rf conftest* conftst*
5721
5724
 
5722
5725
  # Do not use the global_symbol_pipe unless it works.
5723
5726
  if test "$pipe_works" = yes; then
5740
5743
echo "${ECHO_T}ok" >&6
5741
5744
fi
5742
5745
 
 
5746
 
 
5747
 
 
5748
 
 
5749
 
 
5750
 
 
5751
 
 
5752
 
 
5753
 
 
5754
 
 
5755
 
 
5756
 
 
5757
 
 
5758
 
 
5759
 
 
5760
 
 
5761
 
 
5762
 
 
5763
 
 
5764
 
 
5765
 
 
5766
 
 
5767
# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
 
5768
if test "${enable_libtool_lock+set}" = set; then
 
5769
  enableval="$enable_libtool_lock"
 
5770
 
 
5771
fi;
 
5772
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
 
5773
 
 
5774
# Some flags need to be propagated to the compiler or linker for good
 
5775
# libtool support.
 
5776
case $host in
 
5777
ia64-*-hpux*)
 
5778
  # Find out which ABI we are using.
 
5779
  echo 'int i;' > conftest.$ac_ext
 
5780
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
5781
  (eval $ac_compile) 2>&5
 
5782
  ac_status=$?
 
5783
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5784
  (exit $ac_status); }; then
 
5785
    case `/usr/bin/file conftest.$ac_objext` in
 
5786
      *ELF-32*)
 
5787
        HPUX_IA64_MODE="32"
 
5788
        ;;
 
5789
      *ELF-64*)
 
5790
        HPUX_IA64_MODE="64"
 
5791
        ;;
 
5792
    esac
 
5793
  fi
 
5794
  rm -rf conftest*
 
5795
  ;;
 
5796
*-*-irix6*)
 
5797
  # Find out which ABI we are using.
 
5798
  echo '#line 5798 "configure"' > conftest.$ac_ext
 
5799
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
5800
  (eval $ac_compile) 2>&5
 
5801
  ac_status=$?
 
5802
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5803
  (exit $ac_status); }; then
 
5804
    if test "$lt_cv_prog_gnu_ld" = yes; then
 
5805
      case `/usr/bin/file conftest.$ac_objext` in
 
5806
        *32-bit*)
 
5807
          LD="${LD-ld} -melf32bsmip"
 
5808
          ;;
 
5809
        *N32*)
 
5810
          LD="${LD-ld} -melf32bmipn32"
 
5811
          ;;
 
5812
        *64-bit*)
 
5813
          LD="${LD-ld} -melf64bmip"
 
5814
        ;;
 
5815
      esac
 
5816
    else
 
5817
      case `/usr/bin/file conftest.$ac_objext` in
 
5818
        *32-bit*)
 
5819
          LD="${LD-ld} -32"
 
5820
          ;;
 
5821
        *N32*)
 
5822
          LD="${LD-ld} -n32"
 
5823
          ;;
 
5824
        *64-bit*)
 
5825
          LD="${LD-ld} -64"
 
5826
          ;;
 
5827
      esac
 
5828
    fi
 
5829
  fi
 
5830
  rm -rf conftest*
 
5831
  ;;
 
5832
 
 
5833
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
 
5834
s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
 
5835
  # Find out which ABI we are using.
 
5836
  echo 'int i;' > conftest.$ac_ext
 
5837
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
5838
  (eval $ac_compile) 2>&5
 
5839
  ac_status=$?
 
5840
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5841
  (exit $ac_status); }; then
 
5842
    case `/usr/bin/file conftest.o` in
 
5843
      *32-bit*)
 
5844
        case $host in
 
5845
          x86_64-*kfreebsd*-gnu)
 
5846
            LD="${LD-ld} -m elf_i386_fbsd"
 
5847
            ;;
 
5848
          x86_64-*linux*)
 
5849
            LD="${LD-ld} -m elf_i386"
 
5850
            ;;
 
5851
          ppc64-*linux*|powerpc64-*linux*)
 
5852
            LD="${LD-ld} -m elf32ppclinux"
 
5853
            ;;
 
5854
          s390x-*linux*)
 
5855
            LD="${LD-ld} -m elf_s390"
 
5856
            ;;
 
5857
          sparc64-*linux*)
 
5858
            LD="${LD-ld} -m elf32_sparc"
 
5859
            ;;
 
5860
        esac
 
5861
        ;;
 
5862
      *64-bit*)
 
5863
        case $host in
 
5864
          x86_64-*kfreebsd*-gnu)
 
5865
            LD="${LD-ld} -m elf_x86_64_fbsd"
 
5866
            ;;
 
5867
          x86_64-*linux*)
 
5868
            LD="${LD-ld} -m elf_x86_64"
 
5869
            ;;
 
5870
          ppc*-*linux*|powerpc*-*linux*)
 
5871
            LD="${LD-ld} -m elf64ppc"
 
5872
            ;;
 
5873
          s390*-*linux*|s390*-*tpf*)
 
5874
            LD="${LD-ld} -m elf64_s390"
 
5875
            ;;
 
5876
          sparc*-*linux*)
 
5877
            LD="${LD-ld} -m elf64_sparc"
 
5878
            ;;
 
5879
        esac
 
5880
        ;;
 
5881
    esac
 
5882
  fi
 
5883
  rm -rf conftest*
 
5884
  ;;
 
5885
 
 
5886
*-*-sco3.2v5*)
 
5887
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
 
5888
  SAVE_CFLAGS="$CFLAGS"
 
5889
  CFLAGS="$CFLAGS -belf"
 
5890
  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
 
5891
echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
 
5892
if test "${lt_cv_cc_needs_belf+set}" = set; then
 
5893
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5894
else
 
5895
  ac_ext=c
 
5896
ac_cpp='$CPP $CPPFLAGS'
 
5897
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
5898
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
5899
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
5900
 
 
5901
     cat >conftest.$ac_ext <<_ACEOF
 
5902
/* confdefs.h.  */
 
5903
_ACEOF
 
5904
cat confdefs.h >>conftest.$ac_ext
 
5905
cat >>conftest.$ac_ext <<_ACEOF
 
5906
/* end confdefs.h.  */
 
5907
 
 
5908
int
 
5909
main ()
 
5910
{
 
5911
 
 
5912
  ;
 
5913
  return 0;
 
5914
}
 
5915
_ACEOF
 
5916
rm -f conftest.$ac_objext conftest$ac_exeext
 
5917
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
5918
  (eval $ac_link) 2>conftest.er1
 
5919
  ac_status=$?
 
5920
  grep -v '^ *+' conftest.er1 >conftest.err
 
5921
  rm -f conftest.er1
 
5922
  cat conftest.err >&5
 
5923
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5924
  (exit $ac_status); } &&
 
5925
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
5926
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5927
  (eval $ac_try) 2>&5
 
5928
  ac_status=$?
 
5929
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5930
  (exit $ac_status); }; } &&
 
5931
         { ac_try='test -s conftest$ac_exeext'
 
5932
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5933
  (eval $ac_try) 2>&5
 
5934
  ac_status=$?
 
5935
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5936
  (exit $ac_status); }; }; then
 
5937
  lt_cv_cc_needs_belf=yes
 
5938
else
 
5939
  echo "$as_me: failed program was:" >&5
 
5940
sed 's/^/| /' conftest.$ac_ext >&5
 
5941
 
 
5942
lt_cv_cc_needs_belf=no
 
5943
fi
 
5944
rm -f conftest.err conftest.$ac_objext \
 
5945
      conftest$ac_exeext conftest.$ac_ext
 
5946
     ac_ext=c
 
5947
ac_cpp='$CPP $CPPFLAGS'
 
5948
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
5949
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
5950
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
5951
 
 
5952
fi
 
5953
echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
 
5954
echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
 
5955
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
 
5956
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
 
5957
    CFLAGS="$SAVE_CFLAGS"
 
5958
  fi
 
5959
  ;;
 
5960
sparc*-*solaris*)
 
5961
  # Find out which ABI we are using.
 
5962
  echo 'int i;' > conftest.$ac_ext
 
5963
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
5964
  (eval $ac_compile) 2>&5
 
5965
  ac_status=$?
 
5966
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5967
  (exit $ac_status); }; then
 
5968
    case `/usr/bin/file conftest.o` in
 
5969
    *64-bit*)
 
5970
      case $lt_cv_prog_gnu_ld in
 
5971
      yes*) LD="${LD-ld} -m elf64_sparc" ;;
 
5972
      *)
 
5973
        if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
 
5974
          LD="${LD-ld} -64"
 
5975
        fi
 
5976
        ;;
 
5977
      esac
 
5978
      ;;
 
5979
    esac
 
5980
  fi
 
5981
  rm -rf conftest*
 
5982
  ;;
 
5983
esac
 
5984
 
 
5985
need_locks="$enable_libtool_lock"
 
5986
 
 
5987
 
 
5988
  case $host_os in
 
5989
    rhapsody* | darwin*)
 
5990
    if test -n "$ac_tool_prefix"; then
 
5991
  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
 
5992
set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
 
5993
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5994
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
5995
if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
 
5996
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5997
else
 
5998
  if test -n "$DSYMUTIL"; then
 
5999
  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
 
6000
else
 
6001
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6002
for as_dir in $PATH
 
6003
do
 
6004
  IFS=$as_save_IFS
 
6005
  test -z "$as_dir" && as_dir=.
 
6006
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6007
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
6008
    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
 
6009
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6010
    break 2
 
6011
  fi
 
6012
done
 
6013
done
 
6014
 
 
6015
fi
 
6016
fi
 
6017
DSYMUTIL=$ac_cv_prog_DSYMUTIL
 
6018
if test -n "$DSYMUTIL"; then
 
6019
  echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
 
6020
echo "${ECHO_T}$DSYMUTIL" >&6
 
6021
else
 
6022
  echo "$as_me:$LINENO: result: no" >&5
 
6023
echo "${ECHO_T}no" >&6
 
6024
fi
 
6025
 
 
6026
fi
 
6027
if test -z "$ac_cv_prog_DSYMUTIL"; then
 
6028
  ac_ct_DSYMUTIL=$DSYMUTIL
 
6029
  # Extract the first word of "dsymutil", so it can be a program name with args.
 
6030
set dummy dsymutil; ac_word=$2
 
6031
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6032
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
6033
if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
 
6034
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6035
else
 
6036
  if test -n "$ac_ct_DSYMUTIL"; then
 
6037
  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
 
6038
else
 
6039
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6040
for as_dir in $PATH
 
6041
do
 
6042
  IFS=$as_save_IFS
 
6043
  test -z "$as_dir" && as_dir=.
 
6044
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6045
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
6046
    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
 
6047
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6048
    break 2
 
6049
  fi
 
6050
done
 
6051
done
 
6052
 
 
6053
  test -z "$ac_cv_prog_ac_ct_DSYMUTIL" && ac_cv_prog_ac_ct_DSYMUTIL=":"
 
6054
fi
 
6055
fi
 
6056
ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
 
6057
if test -n "$ac_ct_DSYMUTIL"; then
 
6058
  echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
 
6059
echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6
 
6060
else
 
6061
  echo "$as_me:$LINENO: result: no" >&5
 
6062
echo "${ECHO_T}no" >&6
 
6063
fi
 
6064
 
 
6065
  DSYMUTIL=$ac_ct_DSYMUTIL
 
6066
else
 
6067
  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
 
6068
fi
 
6069
 
 
6070
    if test -n "$ac_tool_prefix"; then
 
6071
  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
 
6072
set dummy ${ac_tool_prefix}nmedit; ac_word=$2
 
6073
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6074
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
6075
if test "${ac_cv_prog_NMEDIT+set}" = set; then
 
6076
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6077
else
 
6078
  if test -n "$NMEDIT"; then
 
6079
  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
 
6080
else
 
6081
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6082
for as_dir in $PATH
 
6083
do
 
6084
  IFS=$as_save_IFS
 
6085
  test -z "$as_dir" && as_dir=.
 
6086
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6087
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
6088
    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
 
6089
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6090
    break 2
 
6091
  fi
 
6092
done
 
6093
done
 
6094
 
 
6095
fi
 
6096
fi
 
6097
NMEDIT=$ac_cv_prog_NMEDIT
 
6098
if test -n "$NMEDIT"; then
 
6099
  echo "$as_me:$LINENO: result: $NMEDIT" >&5
 
6100
echo "${ECHO_T}$NMEDIT" >&6
 
6101
else
 
6102
  echo "$as_me:$LINENO: result: no" >&5
 
6103
echo "${ECHO_T}no" >&6
 
6104
fi
 
6105
 
 
6106
fi
 
6107
if test -z "$ac_cv_prog_NMEDIT"; then
 
6108
  ac_ct_NMEDIT=$NMEDIT
 
6109
  # Extract the first word of "nmedit", so it can be a program name with args.
 
6110
set dummy nmedit; ac_word=$2
 
6111
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6112
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
6113
if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
 
6114
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6115
else
 
6116
  if test -n "$ac_ct_NMEDIT"; then
 
6117
  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
 
6118
else
 
6119
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6120
for as_dir in $PATH
 
6121
do
 
6122
  IFS=$as_save_IFS
 
6123
  test -z "$as_dir" && as_dir=.
 
6124
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6125
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
6126
    ac_cv_prog_ac_ct_NMEDIT="nmedit"
 
6127
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6128
    break 2
 
6129
  fi
 
6130
done
 
6131
done
 
6132
 
 
6133
  test -z "$ac_cv_prog_ac_ct_NMEDIT" && ac_cv_prog_ac_ct_NMEDIT=":"
 
6134
fi
 
6135
fi
 
6136
ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
 
6137
if test -n "$ac_ct_NMEDIT"; then
 
6138
  echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
 
6139
echo "${ECHO_T}$ac_ct_NMEDIT" >&6
 
6140
else
 
6141
  echo "$as_me:$LINENO: result: no" >&5
 
6142
echo "${ECHO_T}no" >&6
 
6143
fi
 
6144
 
 
6145
  NMEDIT=$ac_ct_NMEDIT
 
6146
else
 
6147
  NMEDIT="$ac_cv_prog_NMEDIT"
 
6148
fi
 
6149
 
 
6150
    if test -n "$ac_tool_prefix"; then
 
6151
  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
 
6152
set dummy ${ac_tool_prefix}lipo; ac_word=$2
 
6153
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6154
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
6155
if test "${ac_cv_prog_LIPO+set}" = set; then
 
6156
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6157
else
 
6158
  if test -n "$LIPO"; then
 
6159
  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
 
6160
else
 
6161
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6162
for as_dir in $PATH
 
6163
do
 
6164
  IFS=$as_save_IFS
 
6165
  test -z "$as_dir" && as_dir=.
 
6166
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6167
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
6168
    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
 
6169
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6170
    break 2
 
6171
  fi
 
6172
done
 
6173
done
 
6174
 
 
6175
fi
 
6176
fi
 
6177
LIPO=$ac_cv_prog_LIPO
 
6178
if test -n "$LIPO"; then
 
6179
  echo "$as_me:$LINENO: result: $LIPO" >&5
 
6180
echo "${ECHO_T}$LIPO" >&6
 
6181
else
 
6182
  echo "$as_me:$LINENO: result: no" >&5
 
6183
echo "${ECHO_T}no" >&6
 
6184
fi
 
6185
 
 
6186
fi
 
6187
if test -z "$ac_cv_prog_LIPO"; then
 
6188
  ac_ct_LIPO=$LIPO
 
6189
  # Extract the first word of "lipo", so it can be a program name with args.
 
6190
set dummy lipo; ac_word=$2
 
6191
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6192
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
6193
if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
 
6194
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6195
else
 
6196
  if test -n "$ac_ct_LIPO"; then
 
6197
  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
 
6198
else
 
6199
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6200
for as_dir in $PATH
 
6201
do
 
6202
  IFS=$as_save_IFS
 
6203
  test -z "$as_dir" && as_dir=.
 
6204
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6205
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
6206
    ac_cv_prog_ac_ct_LIPO="lipo"
 
6207
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6208
    break 2
 
6209
  fi
 
6210
done
 
6211
done
 
6212
 
 
6213
  test -z "$ac_cv_prog_ac_ct_LIPO" && ac_cv_prog_ac_ct_LIPO=":"
 
6214
fi
 
6215
fi
 
6216
ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
 
6217
if test -n "$ac_ct_LIPO"; then
 
6218
  echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
 
6219
echo "${ECHO_T}$ac_ct_LIPO" >&6
 
6220
else
 
6221
  echo "$as_me:$LINENO: result: no" >&5
 
6222
echo "${ECHO_T}no" >&6
 
6223
fi
 
6224
 
 
6225
  LIPO=$ac_ct_LIPO
 
6226
else
 
6227
  LIPO="$ac_cv_prog_LIPO"
 
6228
fi
 
6229
 
 
6230
    if test -n "$ac_tool_prefix"; then
 
6231
  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
 
6232
set dummy ${ac_tool_prefix}otool; ac_word=$2
 
6233
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6234
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
6235
if test "${ac_cv_prog_OTOOL+set}" = set; then
 
6236
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6237
else
 
6238
  if test -n "$OTOOL"; then
 
6239
  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
 
6240
else
 
6241
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6242
for as_dir in $PATH
 
6243
do
 
6244
  IFS=$as_save_IFS
 
6245
  test -z "$as_dir" && as_dir=.
 
6246
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6247
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
6248
    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
 
6249
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6250
    break 2
 
6251
  fi
 
6252
done
 
6253
done
 
6254
 
 
6255
fi
 
6256
fi
 
6257
OTOOL=$ac_cv_prog_OTOOL
 
6258
if test -n "$OTOOL"; then
 
6259
  echo "$as_me:$LINENO: result: $OTOOL" >&5
 
6260
echo "${ECHO_T}$OTOOL" >&6
 
6261
else
 
6262
  echo "$as_me:$LINENO: result: no" >&5
 
6263
echo "${ECHO_T}no" >&6
 
6264
fi
 
6265
 
 
6266
fi
 
6267
if test -z "$ac_cv_prog_OTOOL"; then
 
6268
  ac_ct_OTOOL=$OTOOL
 
6269
  # Extract the first word of "otool", so it can be a program name with args.
 
6270
set dummy otool; ac_word=$2
 
6271
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6272
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
6273
if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
 
6274
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6275
else
 
6276
  if test -n "$ac_ct_OTOOL"; then
 
6277
  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
 
6278
else
 
6279
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6280
for as_dir in $PATH
 
6281
do
 
6282
  IFS=$as_save_IFS
 
6283
  test -z "$as_dir" && as_dir=.
 
6284
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6285
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
6286
    ac_cv_prog_ac_ct_OTOOL="otool"
 
6287
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6288
    break 2
 
6289
  fi
 
6290
done
 
6291
done
 
6292
 
 
6293
  test -z "$ac_cv_prog_ac_ct_OTOOL" && ac_cv_prog_ac_ct_OTOOL=":"
 
6294
fi
 
6295
fi
 
6296
ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
 
6297
if test -n "$ac_ct_OTOOL"; then
 
6298
  echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
 
6299
echo "${ECHO_T}$ac_ct_OTOOL" >&6
 
6300
else
 
6301
  echo "$as_me:$LINENO: result: no" >&5
 
6302
echo "${ECHO_T}no" >&6
 
6303
fi
 
6304
 
 
6305
  OTOOL=$ac_ct_OTOOL
 
6306
else
 
6307
  OTOOL="$ac_cv_prog_OTOOL"
 
6308
fi
 
6309
 
 
6310
    if test -n "$ac_tool_prefix"; then
 
6311
  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
 
6312
set dummy ${ac_tool_prefix}otool64; ac_word=$2
 
6313
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6314
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
6315
if test "${ac_cv_prog_OTOOL64+set}" = set; then
 
6316
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6317
else
 
6318
  if test -n "$OTOOL64"; then
 
6319
  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
 
6320
else
 
6321
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6322
for as_dir in $PATH
 
6323
do
 
6324
  IFS=$as_save_IFS
 
6325
  test -z "$as_dir" && as_dir=.
 
6326
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6327
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
6328
    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
 
6329
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6330
    break 2
 
6331
  fi
 
6332
done
 
6333
done
 
6334
 
 
6335
fi
 
6336
fi
 
6337
OTOOL64=$ac_cv_prog_OTOOL64
 
6338
if test -n "$OTOOL64"; then
 
6339
  echo "$as_me:$LINENO: result: $OTOOL64" >&5
 
6340
echo "${ECHO_T}$OTOOL64" >&6
 
6341
else
 
6342
  echo "$as_me:$LINENO: result: no" >&5
 
6343
echo "${ECHO_T}no" >&6
 
6344
fi
 
6345
 
 
6346
fi
 
6347
if test -z "$ac_cv_prog_OTOOL64"; then
 
6348
  ac_ct_OTOOL64=$OTOOL64
 
6349
  # Extract the first word of "otool64", so it can be a program name with args.
 
6350
set dummy otool64; ac_word=$2
 
6351
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6352
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
6353
if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
 
6354
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6355
else
 
6356
  if test -n "$ac_ct_OTOOL64"; then
 
6357
  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
 
6358
else
 
6359
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6360
for as_dir in $PATH
 
6361
do
 
6362
  IFS=$as_save_IFS
 
6363
  test -z "$as_dir" && as_dir=.
 
6364
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6365
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
6366
    ac_cv_prog_ac_ct_OTOOL64="otool64"
 
6367
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6368
    break 2
 
6369
  fi
 
6370
done
 
6371
done
 
6372
 
 
6373
  test -z "$ac_cv_prog_ac_ct_OTOOL64" && ac_cv_prog_ac_ct_OTOOL64=":"
 
6374
fi
 
6375
fi
 
6376
ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
 
6377
if test -n "$ac_ct_OTOOL64"; then
 
6378
  echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
 
6379
echo "${ECHO_T}$ac_ct_OTOOL64" >&6
 
6380
else
 
6381
  echo "$as_me:$LINENO: result: no" >&5
 
6382
echo "${ECHO_T}no" >&6
 
6383
fi
 
6384
 
 
6385
  OTOOL64=$ac_ct_OTOOL64
 
6386
else
 
6387
  OTOOL64="$ac_cv_prog_OTOOL64"
 
6388
fi
 
6389
 
 
6390
 
 
6391
 
 
6392
 
 
6393
 
 
6394
 
 
6395
 
 
6396
 
 
6397
 
 
6398
 
 
6399
 
 
6400
 
 
6401
 
 
6402
 
 
6403
 
 
6404
 
 
6405
 
 
6406
 
 
6407
 
 
6408
 
 
6409
 
 
6410
 
 
6411
 
 
6412
 
 
6413
 
 
6414
 
 
6415
 
 
6416
    echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
 
6417
echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6
 
6418
if test "${lt_cv_apple_cc_single_mod+set}" = set; then
 
6419
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6420
else
 
6421
  lt_cv_apple_cc_single_mod=no
 
6422
      if test -z "${LT_MULTI_MODULE}"; then
 
6423
        # By default we will add the -single_module flag. You can override
 
6424
        # by either setting the environment variable LT_MULTI_MODULE
 
6425
        # non-empty at configure time, or by adding -multi_module to the
 
6426
        # link flags.
 
6427
        rm -rf libconftest.dylib*
 
6428
        echo "int foo(void){return 1;}" > conftest.c
 
6429
        echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
 
6430
-dynamiclib -Wl,-single_module conftest.c" >&5
 
6431
        $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
 
6432
          -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
 
6433
        _lt_result=$?
 
6434
        if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
 
6435
          lt_cv_apple_cc_single_mod=yes
 
6436
        else
 
6437
          cat conftest.err >&5
 
6438
        fi
 
6439
        rm -rf libconftest.dylib*
 
6440
        rm -f conftest.*
 
6441
      fi
 
6442
fi
 
6443
echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
 
6444
echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6
 
6445
    echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
 
6446
echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6
 
6447
if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
 
6448
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6449
else
 
6450
  lt_cv_ld_exported_symbols_list=no
 
6451
      save_LDFLAGS=$LDFLAGS
 
6452
      echo "_main" > conftest.sym
 
6453
      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
 
6454
      cat >conftest.$ac_ext <<_ACEOF
 
6455
/* confdefs.h.  */
 
6456
_ACEOF
 
6457
cat confdefs.h >>conftest.$ac_ext
 
6458
cat >>conftest.$ac_ext <<_ACEOF
 
6459
/* end confdefs.h.  */
 
6460
 
 
6461
int
 
6462
main ()
 
6463
{
 
6464
 
 
6465
  ;
 
6466
  return 0;
 
6467
}
 
6468
_ACEOF
 
6469
rm -f conftest.$ac_objext conftest$ac_exeext
 
6470
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
6471
  (eval $ac_link) 2>conftest.er1
 
6472
  ac_status=$?
 
6473
  grep -v '^ *+' conftest.er1 >conftest.err
 
6474
  rm -f conftest.er1
 
6475
  cat conftest.err >&5
 
6476
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6477
  (exit $ac_status); } &&
 
6478
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
6479
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6480
  (eval $ac_try) 2>&5
 
6481
  ac_status=$?
 
6482
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6483
  (exit $ac_status); }; } &&
 
6484
         { ac_try='test -s conftest$ac_exeext'
 
6485
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6486
  (eval $ac_try) 2>&5
 
6487
  ac_status=$?
 
6488
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6489
  (exit $ac_status); }; }; then
 
6490
  lt_cv_ld_exported_symbols_list=yes
 
6491
else
 
6492
  echo "$as_me: failed program was:" >&5
 
6493
sed 's/^/| /' conftest.$ac_ext >&5
 
6494
 
 
6495
lt_cv_ld_exported_symbols_list=no
 
6496
fi
 
6497
rm -f conftest.err conftest.$ac_objext \
 
6498
      conftest$ac_exeext conftest.$ac_ext
 
6499
        LDFLAGS="$save_LDFLAGS"
 
6500
 
 
6501
fi
 
6502
echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
 
6503
echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6
 
6504
    case $host_os in
 
6505
    rhapsody* | darwin1.[012])
 
6506
      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
 
6507
    darwin1.*)
 
6508
      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
 
6509
    darwin*) # darwin 5.x on
 
6510
      # if running on 10.5 or later, the deployment target defaults
 
6511
      # to the OS version, if on x86, and 10.4, the deployment
 
6512
      # target defaults to 10.4. Don't you love it?
 
6513
      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
 
6514
        10.0,*86*-darwin8*|10.0,*-darwin[91]*)
 
6515
          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
 
6516
        10.[012]*)
 
6517
          _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
 
6518
        10.*)
 
6519
          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
 
6520
      esac
 
6521
    ;;
 
6522
  esac
 
6523
    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
 
6524
      _lt_dar_single_mod='$single_module'
 
6525
    fi
 
6526
    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
 
6527
      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
 
6528
    else
 
6529
      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
6530
    fi
 
6531
    if test "$DSYMUTIL" != ":"; then
 
6532
      _lt_dsymutil='~$DSYMUTIL $lib || :'
 
6533
    else
 
6534
      _lt_dsymutil=
 
6535
    fi
 
6536
    ;;
 
6537
  esac
 
6538
 
 
6539
 
 
6540
for ac_header in dlfcn.h
 
6541
do
 
6542
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
6543
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
6544
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
6545
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
6546
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6547
else
 
6548
  cat >conftest.$ac_ext <<_ACEOF
 
6549
/* confdefs.h.  */
 
6550
_ACEOF
 
6551
cat confdefs.h >>conftest.$ac_ext
 
6552
cat >>conftest.$ac_ext <<_ACEOF
 
6553
/* end confdefs.h.  */
 
6554
$ac_includes_default
 
6555
 
 
6556
#include <$ac_header>
 
6557
_ACEOF
 
6558
rm -f conftest.$ac_objext
 
6559
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
6560
  (eval $ac_compile) 2>conftest.er1
 
6561
  ac_status=$?
 
6562
  grep -v '^ *+' conftest.er1 >conftest.err
 
6563
  rm -f conftest.er1
 
6564
  cat conftest.err >&5
 
6565
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6566
  (exit $ac_status); } &&
 
6567
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
6568
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6569
  (eval $ac_try) 2>&5
 
6570
  ac_status=$?
 
6571
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6572
  (exit $ac_status); }; } &&
 
6573
         { ac_try='test -s conftest.$ac_objext'
 
6574
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6575
  (eval $ac_try) 2>&5
 
6576
  ac_status=$?
 
6577
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6578
  (exit $ac_status); }; }; then
 
6579
  eval "$as_ac_Header=yes"
 
6580
else
 
6581
  echo "$as_me: failed program was:" >&5
 
6582
sed 's/^/| /' conftest.$ac_ext >&5
 
6583
 
 
6584
eval "$as_ac_Header=no"
 
6585
fi
 
6586
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
6587
fi
 
6588
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
6589
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
6590
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
6591
  cat >>confdefs.h <<_ACEOF
 
6592
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
6593
_ACEOF
 
6594
 
 
6595
fi
 
6596
 
 
6597
done
 
6598
 
 
6599
 
 
6600
 
 
6601
ac_ext=cc
 
6602
ac_cpp='$CXXCPP $CPPFLAGS'
 
6603
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
6604
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
6605
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
6606
if test -n "$ac_tool_prefix"; then
 
6607
  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
 
6608
  do
 
6609
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
6610
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
6611
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6612
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
6613
if test "${ac_cv_prog_CXX+set}" = set; then
 
6614
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6615
else
 
6616
  if test -n "$CXX"; then
 
6617
  ac_cv_prog_CXX="$CXX" # Let the user override the test.
 
6618
else
 
6619
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6620
for as_dir in $PATH
 
6621
do
 
6622
  IFS=$as_save_IFS
 
6623
  test -z "$as_dir" && as_dir=.
 
6624
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6625
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
6626
    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
 
6627
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6628
    break 2
 
6629
  fi
 
6630
done
 
6631
done
 
6632
 
 
6633
fi
 
6634
fi
 
6635
CXX=$ac_cv_prog_CXX
 
6636
if test -n "$CXX"; then
 
6637
  echo "$as_me:$LINENO: result: $CXX" >&5
 
6638
echo "${ECHO_T}$CXX" >&6
 
6639
else
 
6640
  echo "$as_me:$LINENO: result: no" >&5
 
6641
echo "${ECHO_T}no" >&6
 
6642
fi
 
6643
 
 
6644
    test -n "$CXX" && break
 
6645
  done
 
6646
fi
 
6647
if test -z "$CXX"; then
 
6648
  ac_ct_CXX=$CXX
 
6649
  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
 
6650
do
 
6651
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
6652
set dummy $ac_prog; ac_word=$2
 
6653
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6654
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
6655
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
 
6656
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6657
else
 
6658
  if test -n "$ac_ct_CXX"; then
 
6659
  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
 
6660
else
 
6661
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6662
for as_dir in $PATH
 
6663
do
 
6664
  IFS=$as_save_IFS
 
6665
  test -z "$as_dir" && as_dir=.
 
6666
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6667
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
6668
    ac_cv_prog_ac_ct_CXX="$ac_prog"
 
6669
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6670
    break 2
 
6671
  fi
 
6672
done
 
6673
done
 
6674
 
 
6675
fi
 
6676
fi
 
6677
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
 
6678
if test -n "$ac_ct_CXX"; then
 
6679
  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
 
6680
echo "${ECHO_T}$ac_ct_CXX" >&6
 
6681
else
 
6682
  echo "$as_me:$LINENO: result: no" >&5
 
6683
echo "${ECHO_T}no" >&6
 
6684
fi
 
6685
 
 
6686
  test -n "$ac_ct_CXX" && break
 
6687
done
 
6688
test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
 
6689
 
 
6690
  CXX=$ac_ct_CXX
 
6691
fi
 
6692
 
 
6693
 
 
6694
# Provide some information about the compiler.
 
6695
echo "$as_me:$LINENO:" \
 
6696
     "checking for C++ compiler version" >&5
 
6697
ac_compiler=`set X $ac_compile; echo $2`
 
6698
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
 
6699
  (eval $ac_compiler --version </dev/null >&5) 2>&5
 
6700
  ac_status=$?
 
6701
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6702
  (exit $ac_status); }
 
6703
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
 
6704
  (eval $ac_compiler -v </dev/null >&5) 2>&5
 
6705
  ac_status=$?
 
6706
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6707
  (exit $ac_status); }
 
6708
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
 
6709
  (eval $ac_compiler -V </dev/null >&5) 2>&5
 
6710
  ac_status=$?
 
6711
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6712
  (exit $ac_status); }
 
6713
 
 
6714
echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
 
6715
echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
 
6716
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
 
6717
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6718
else
 
6719
  cat >conftest.$ac_ext <<_ACEOF
 
6720
/* confdefs.h.  */
 
6721
_ACEOF
 
6722
cat confdefs.h >>conftest.$ac_ext
 
6723
cat >>conftest.$ac_ext <<_ACEOF
 
6724
/* end confdefs.h.  */
 
6725
 
 
6726
int
 
6727
main ()
 
6728
{
 
6729
#ifndef __GNUC__
 
6730
       choke me
 
6731
#endif
 
6732
 
 
6733
  ;
 
6734
  return 0;
 
6735
}
 
6736
_ACEOF
 
6737
rm -f conftest.$ac_objext
 
6738
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
6739
  (eval $ac_compile) 2>conftest.er1
 
6740
  ac_status=$?
 
6741
  grep -v '^ *+' conftest.er1 >conftest.err
 
6742
  rm -f conftest.er1
 
6743
  cat conftest.err >&5
 
6744
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6745
  (exit $ac_status); } &&
 
6746
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
6747
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6748
  (eval $ac_try) 2>&5
 
6749
  ac_status=$?
 
6750
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6751
  (exit $ac_status); }; } &&
 
6752
         { ac_try='test -s conftest.$ac_objext'
 
6753
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6754
  (eval $ac_try) 2>&5
 
6755
  ac_status=$?
 
6756
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6757
  (exit $ac_status); }; }; then
 
6758
  ac_compiler_gnu=yes
 
6759
else
 
6760
  echo "$as_me: failed program was:" >&5
 
6761
sed 's/^/| /' conftest.$ac_ext >&5
 
6762
 
 
6763
ac_compiler_gnu=no
 
6764
fi
 
6765
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
6766
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
 
6767
 
 
6768
fi
 
6769
echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
 
6770
echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
 
6771
GXX=`test $ac_compiler_gnu = yes && echo yes`
 
6772
ac_test_CXXFLAGS=${CXXFLAGS+set}
 
6773
ac_save_CXXFLAGS=$CXXFLAGS
 
6774
CXXFLAGS="-g"
 
6775
echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
 
6776
echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
 
6777
if test "${ac_cv_prog_cxx_g+set}" = set; then
 
6778
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6779
else
 
6780
  cat >conftest.$ac_ext <<_ACEOF
 
6781
/* confdefs.h.  */
 
6782
_ACEOF
 
6783
cat confdefs.h >>conftest.$ac_ext
 
6784
cat >>conftest.$ac_ext <<_ACEOF
 
6785
/* end confdefs.h.  */
 
6786
 
 
6787
int
 
6788
main ()
 
6789
{
 
6790
 
 
6791
  ;
 
6792
  return 0;
 
6793
}
 
6794
_ACEOF
 
6795
rm -f conftest.$ac_objext
 
6796
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
6797
  (eval $ac_compile) 2>conftest.er1
 
6798
  ac_status=$?
 
6799
  grep -v '^ *+' conftest.er1 >conftest.err
 
6800
  rm -f conftest.er1
 
6801
  cat conftest.err >&5
 
6802
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6803
  (exit $ac_status); } &&
 
6804
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
6805
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6806
  (eval $ac_try) 2>&5
 
6807
  ac_status=$?
 
6808
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6809
  (exit $ac_status); }; } &&
 
6810
         { ac_try='test -s conftest.$ac_objext'
 
6811
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6812
  (eval $ac_try) 2>&5
 
6813
  ac_status=$?
 
6814
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6815
  (exit $ac_status); }; }; then
 
6816
  ac_cv_prog_cxx_g=yes
 
6817
else
 
6818
  echo "$as_me: failed program was:" >&5
 
6819
sed 's/^/| /' conftest.$ac_ext >&5
 
6820
 
 
6821
ac_cv_prog_cxx_g=no
 
6822
fi
 
6823
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
6824
fi
 
6825
echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
 
6826
echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
 
6827
if test "$ac_test_CXXFLAGS" = set; then
 
6828
  CXXFLAGS=$ac_save_CXXFLAGS
 
6829
elif test $ac_cv_prog_cxx_g = yes; then
 
6830
  if test "$GXX" = yes; then
 
6831
    CXXFLAGS="-g -O2"
 
6832
  else
 
6833
    CXXFLAGS="-g"
 
6834
  fi
 
6835
else
 
6836
  if test "$GXX" = yes; then
 
6837
    CXXFLAGS="-O2"
 
6838
  else
 
6839
    CXXFLAGS=
 
6840
  fi
 
6841
fi
 
6842
for ac_declaration in \
 
6843
   '' \
 
6844
   'extern "C" void std::exit (int) throw (); using std::exit;' \
 
6845
   'extern "C" void std::exit (int); using std::exit;' \
 
6846
   'extern "C" void exit (int) throw ();' \
 
6847
   'extern "C" void exit (int);' \
 
6848
   'void exit (int);'
 
6849
do
 
6850
  cat >conftest.$ac_ext <<_ACEOF
 
6851
/* confdefs.h.  */
 
6852
_ACEOF
 
6853
cat confdefs.h >>conftest.$ac_ext
 
6854
cat >>conftest.$ac_ext <<_ACEOF
 
6855
/* end confdefs.h.  */
 
6856
$ac_declaration
 
6857
#include <stdlib.h>
 
6858
int
 
6859
main ()
 
6860
{
 
6861
exit (42);
 
6862
  ;
 
6863
  return 0;
 
6864
}
 
6865
_ACEOF
 
6866
rm -f conftest.$ac_objext
 
6867
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
6868
  (eval $ac_compile) 2>conftest.er1
 
6869
  ac_status=$?
 
6870
  grep -v '^ *+' conftest.er1 >conftest.err
 
6871
  rm -f conftest.er1
 
6872
  cat conftest.err >&5
 
6873
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6874
  (exit $ac_status); } &&
 
6875
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
6876
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6877
  (eval $ac_try) 2>&5
 
6878
  ac_status=$?
 
6879
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6880
  (exit $ac_status); }; } &&
 
6881
         { ac_try='test -s conftest.$ac_objext'
 
6882
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6883
  (eval $ac_try) 2>&5
 
6884
  ac_status=$?
 
6885
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6886
  (exit $ac_status); }; }; then
 
6887
  :
 
6888
else
 
6889
  echo "$as_me: failed program was:" >&5
 
6890
sed 's/^/| /' conftest.$ac_ext >&5
 
6891
 
 
6892
continue
 
6893
fi
 
6894
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
6895
  cat >conftest.$ac_ext <<_ACEOF
 
6896
/* confdefs.h.  */
 
6897
_ACEOF
 
6898
cat confdefs.h >>conftest.$ac_ext
 
6899
cat >>conftest.$ac_ext <<_ACEOF
 
6900
/* end confdefs.h.  */
 
6901
$ac_declaration
 
6902
int
 
6903
main ()
 
6904
{
 
6905
exit (42);
 
6906
  ;
 
6907
  return 0;
 
6908
}
 
6909
_ACEOF
 
6910
rm -f conftest.$ac_objext
 
6911
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
6912
  (eval $ac_compile) 2>conftest.er1
 
6913
  ac_status=$?
 
6914
  grep -v '^ *+' conftest.er1 >conftest.err
 
6915
  rm -f conftest.er1
 
6916
  cat conftest.err >&5
 
6917
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6918
  (exit $ac_status); } &&
 
6919
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
6920
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6921
  (eval $ac_try) 2>&5
 
6922
  ac_status=$?
 
6923
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6924
  (exit $ac_status); }; } &&
 
6925
         { ac_try='test -s conftest.$ac_objext'
 
6926
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6927
  (eval $ac_try) 2>&5
 
6928
  ac_status=$?
 
6929
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6930
  (exit $ac_status); }; }; then
 
6931
  break
 
6932
else
 
6933
  echo "$as_me: failed program was:" >&5
 
6934
sed 's/^/| /' conftest.$ac_ext >&5
 
6935
 
 
6936
fi
 
6937
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
6938
done
 
6939
rm -f conftest*
 
6940
if test -n "$ac_declaration"; then
 
6941
  echo '#ifdef __cplusplus' >>confdefs.h
 
6942
  echo $ac_declaration      >>confdefs.h
 
6943
  echo '#endif'             >>confdefs.h
 
6944
fi
 
6945
 
 
6946
ac_ext=c
 
6947
ac_cpp='$CPP $CPPFLAGS'
 
6948
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
6949
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
6950
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
6951
 
 
6952
depcc="$CXX"  am_compiler_list=
 
6953
 
 
6954
echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
 
6955
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
 
6956
if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
 
6957
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6958
else
 
6959
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
 
6960
  # We make a subdir and do the tests there.  Otherwise we can end up
 
6961
  # making bogus files that we don't know about and never remove.  For
 
6962
  # instance it was reported that on HP-UX the gcc test will end up
 
6963
  # making a dummy file named `D' -- because `-MD' means `put the output
 
6964
  # in D'.
 
6965
  mkdir conftest.dir
 
6966
  # Copy depcomp to subdir because otherwise we won't find it if we're
 
6967
  # using a relative directory.
 
6968
  cp "$am_depcomp" conftest.dir
 
6969
  cd conftest.dir
 
6970
  # We will build objects and dependencies in a subdirectory because
 
6971
  # it helps to detect inapplicable dependency modes.  For instance
 
6972
  # both Tru64's cc and ICC support -MD to output dependencies as a
 
6973
  # side effect of compilation, but ICC will put the dependencies in
 
6974
  # the current directory while Tru64 will put them in the object
 
6975
  # directory.
 
6976
  mkdir sub
 
6977
 
 
6978
  am_cv_CXX_dependencies_compiler_type=none
 
6979
  if test "$am_compiler_list" = ""; then
 
6980
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
 
6981
  fi
 
6982
  for depmode in $am_compiler_list; do
 
6983
    # Setup a source with many dependencies, because some compilers
 
6984
    # like to wrap large dependency lists on column 80 (with \), and
 
6985
    # we should not choose a depcomp mode which is confused by this.
 
6986
    #
 
6987
    # We need to recreate these files for each test, as the compiler may
 
6988
    # overwrite some of them when testing with obscure command lines.
 
6989
    # This happens at least with the AIX C compiler.
 
6990
    : > sub/conftest.c
 
6991
    for i in 1 2 3 4 5 6; do
 
6992
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
 
6993
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
 
6994
      # Solaris 8's {/usr,}/bin/sh.
 
6995
      touch sub/conftst$i.h
 
6996
    done
 
6997
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
 
6998
 
 
6999
    case $depmode in
 
7000
    nosideeffect)
 
7001
      # after this tag, mechanisms are not by side-effect, so they'll
 
7002
      # only be used when explicitly requested
 
7003
      if test "x$enable_dependency_tracking" = xyes; then
 
7004
        continue
 
7005
      else
 
7006
        break
 
7007
      fi
 
7008
      ;;
 
7009
    none) break ;;
 
7010
    esac
 
7011
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
 
7012
    # mode.  It turns out that the SunPro C++ compiler does not properly
 
7013
    # handle `-M -o', and we need to detect this.
 
7014
    if depmode=$depmode \
 
7015
       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
 
7016
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
 
7017
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
 
7018
         >/dev/null 2>conftest.err &&
 
7019
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
 
7020
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
 
7021
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
 
7022
      # icc doesn't choke on unknown options, it will just issue warnings
 
7023
      # or remarks (even with -Werror).  So we grep stderr for any message
 
7024
      # that says an option was ignored or not supported.
 
7025
      # When given -MP, icc 7.0 and 7.1 complain thusly:
 
7026
      #   icc: Command line warning: ignoring option '-M'; no argument required
 
7027
      # The diagnosis changed in icc 8.0:
 
7028
      #   icc: Command line remark: option '-MP' not supported
 
7029
      if (grep 'ignoring option' conftest.err ||
 
7030
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
 
7031
        am_cv_CXX_dependencies_compiler_type=$depmode
 
7032
        break
 
7033
      fi
 
7034
    fi
 
7035
  done
 
7036
 
 
7037
  cd ..
 
7038
  rm -rf conftest.dir
 
7039
else
 
7040
  am_cv_CXX_dependencies_compiler_type=none
 
7041
fi
 
7042
 
 
7043
fi
 
7044
echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
 
7045
echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
 
7046
CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
 
7047
 
 
7048
 
 
7049
 
 
7050
if
 
7051
  test "x$enable_dependency_tracking" != xno \
 
7052
  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
 
7053
  am__fastdepCXX_TRUE=
 
7054
  am__fastdepCXX_FALSE='#'
 
7055
else
 
7056
  am__fastdepCXX_TRUE='#'
 
7057
  am__fastdepCXX_FALSE=
 
7058
fi
 
7059
 
 
7060
 
 
7061
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
 
7062
    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
 
7063
    (test "X$CXX" != "Xg++"))) ; then
 
7064
  ac_ext=cc
 
7065
ac_cpp='$CXXCPP $CPPFLAGS'
 
7066
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
7067
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
7068
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
7069
echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
 
7070
echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
 
7071
if test -z "$CXXCPP"; then
 
7072
  if test "${ac_cv_prog_CXXCPP+set}" = set; then
 
7073
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7074
else
 
7075
      # Double quotes because CXXCPP needs to be expanded
 
7076
    for CXXCPP in "$CXX -E" "/lib/cpp"
 
7077
    do
 
7078
      ac_preproc_ok=false
 
7079
for ac_cxx_preproc_warn_flag in '' yes
 
7080
do
 
7081
  # Use a header file that comes with gcc, so configuring glibc
 
7082
  # with a fresh cross-compiler works.
 
7083
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
7084
  # <limits.h> exists even on freestanding compilers.
 
7085
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
7086
  # not just through cpp. "Syntax error" is here to catch this case.
 
7087
  cat >conftest.$ac_ext <<_ACEOF
 
7088
/* confdefs.h.  */
 
7089
_ACEOF
 
7090
cat confdefs.h >>conftest.$ac_ext
 
7091
cat >>conftest.$ac_ext <<_ACEOF
 
7092
/* end confdefs.h.  */
 
7093
#ifdef __STDC__
 
7094
# include <limits.h>
 
7095
#else
 
7096
# include <assert.h>
 
7097
#endif
 
7098
                     Syntax error
 
7099
_ACEOF
 
7100
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
7101
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
7102
  ac_status=$?
 
7103
  grep -v '^ *+' conftest.er1 >conftest.err
 
7104
  rm -f conftest.er1
 
7105
  cat conftest.err >&5
 
7106
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7107
  (exit $ac_status); } >/dev/null; then
 
7108
  if test -s conftest.err; then
 
7109
    ac_cpp_err=$ac_cxx_preproc_warn_flag
 
7110
    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
 
7111
  else
 
7112
    ac_cpp_err=
 
7113
  fi
 
7114
else
 
7115
  ac_cpp_err=yes
 
7116
fi
 
7117
if test -z "$ac_cpp_err"; then
 
7118
  :
 
7119
else
 
7120
  echo "$as_me: failed program was:" >&5
 
7121
sed 's/^/| /' conftest.$ac_ext >&5
 
7122
 
 
7123
  # Broken: fails on valid input.
 
7124
continue
 
7125
fi
 
7126
rm -f conftest.err conftest.$ac_ext
 
7127
 
 
7128
  # OK, works on sane cases.  Now check whether non-existent headers
 
7129
  # can be detected and how.
 
7130
  cat >conftest.$ac_ext <<_ACEOF
 
7131
/* confdefs.h.  */
 
7132
_ACEOF
 
7133
cat confdefs.h >>conftest.$ac_ext
 
7134
cat >>conftest.$ac_ext <<_ACEOF
 
7135
/* end confdefs.h.  */
 
7136
#include <ac_nonexistent.h>
 
7137
_ACEOF
 
7138
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
7139
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
7140
  ac_status=$?
 
7141
  grep -v '^ *+' conftest.er1 >conftest.err
 
7142
  rm -f conftest.er1
 
7143
  cat conftest.err >&5
 
7144
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7145
  (exit $ac_status); } >/dev/null; then
 
7146
  if test -s conftest.err; then
 
7147
    ac_cpp_err=$ac_cxx_preproc_warn_flag
 
7148
    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
 
7149
  else
 
7150
    ac_cpp_err=
 
7151
  fi
 
7152
else
 
7153
  ac_cpp_err=yes
 
7154
fi
 
7155
if test -z "$ac_cpp_err"; then
 
7156
  # Broken: success on invalid input.
 
7157
continue
 
7158
else
 
7159
  echo "$as_me: failed program was:" >&5
 
7160
sed 's/^/| /' conftest.$ac_ext >&5
 
7161
 
 
7162
  # Passes both tests.
 
7163
ac_preproc_ok=:
 
7164
break
 
7165
fi
 
7166
rm -f conftest.err conftest.$ac_ext
 
7167
 
 
7168
done
 
7169
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
7170
rm -f conftest.err conftest.$ac_ext
 
7171
if $ac_preproc_ok; then
 
7172
  break
 
7173
fi
 
7174
 
 
7175
    done
 
7176
    ac_cv_prog_CXXCPP=$CXXCPP
 
7177
 
 
7178
fi
 
7179
  CXXCPP=$ac_cv_prog_CXXCPP
 
7180
else
 
7181
  ac_cv_prog_CXXCPP=$CXXCPP
 
7182
fi
 
7183
echo "$as_me:$LINENO: result: $CXXCPP" >&5
 
7184
echo "${ECHO_T}$CXXCPP" >&6
 
7185
ac_preproc_ok=false
 
7186
for ac_cxx_preproc_warn_flag in '' yes
 
7187
do
 
7188
  # Use a header file that comes with gcc, so configuring glibc
 
7189
  # with a fresh cross-compiler works.
 
7190
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
7191
  # <limits.h> exists even on freestanding compilers.
 
7192
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
7193
  # not just through cpp. "Syntax error" is here to catch this case.
 
7194
  cat >conftest.$ac_ext <<_ACEOF
 
7195
/* confdefs.h.  */
 
7196
_ACEOF
 
7197
cat confdefs.h >>conftest.$ac_ext
 
7198
cat >>conftest.$ac_ext <<_ACEOF
 
7199
/* end confdefs.h.  */
 
7200
#ifdef __STDC__
 
7201
# include <limits.h>
 
7202
#else
 
7203
# include <assert.h>
 
7204
#endif
 
7205
                     Syntax error
 
7206
_ACEOF
 
7207
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
7208
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
7209
  ac_status=$?
 
7210
  grep -v '^ *+' conftest.er1 >conftest.err
 
7211
  rm -f conftest.er1
 
7212
  cat conftest.err >&5
 
7213
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7214
  (exit $ac_status); } >/dev/null; then
 
7215
  if test -s conftest.err; then
 
7216
    ac_cpp_err=$ac_cxx_preproc_warn_flag
 
7217
    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
 
7218
  else
 
7219
    ac_cpp_err=
 
7220
  fi
 
7221
else
 
7222
  ac_cpp_err=yes
 
7223
fi
 
7224
if test -z "$ac_cpp_err"; then
 
7225
  :
 
7226
else
 
7227
  echo "$as_me: failed program was:" >&5
 
7228
sed 's/^/| /' conftest.$ac_ext >&5
 
7229
 
 
7230
  # Broken: fails on valid input.
 
7231
continue
 
7232
fi
 
7233
rm -f conftest.err conftest.$ac_ext
 
7234
 
 
7235
  # OK, works on sane cases.  Now check whether non-existent headers
 
7236
  # can be detected and how.
 
7237
  cat >conftest.$ac_ext <<_ACEOF
 
7238
/* confdefs.h.  */
 
7239
_ACEOF
 
7240
cat confdefs.h >>conftest.$ac_ext
 
7241
cat >>conftest.$ac_ext <<_ACEOF
 
7242
/* end confdefs.h.  */
 
7243
#include <ac_nonexistent.h>
 
7244
_ACEOF
 
7245
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
7246
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
7247
  ac_status=$?
 
7248
  grep -v '^ *+' conftest.er1 >conftest.err
 
7249
  rm -f conftest.er1
 
7250
  cat conftest.err >&5
 
7251
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7252
  (exit $ac_status); } >/dev/null; then
 
7253
  if test -s conftest.err; then
 
7254
    ac_cpp_err=$ac_cxx_preproc_warn_flag
 
7255
    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
 
7256
  else
 
7257
    ac_cpp_err=
 
7258
  fi
 
7259
else
 
7260
  ac_cpp_err=yes
 
7261
fi
 
7262
if test -z "$ac_cpp_err"; then
 
7263
  # Broken: success on invalid input.
 
7264
continue
 
7265
else
 
7266
  echo "$as_me: failed program was:" >&5
 
7267
sed 's/^/| /' conftest.$ac_ext >&5
 
7268
 
 
7269
  # Passes both tests.
 
7270
ac_preproc_ok=:
 
7271
break
 
7272
fi
 
7273
rm -f conftest.err conftest.$ac_ext
 
7274
 
 
7275
done
 
7276
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
7277
rm -f conftest.err conftest.$ac_ext
 
7278
if $ac_preproc_ok; then
 
7279
  :
 
7280
else
 
7281
  _lt_caught_CXX_error=yes
 
7282
fi
 
7283
 
 
7284
ac_ext=c
 
7285
ac_cpp='$CPP $CPPFLAGS'
 
7286
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
7287
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
7288
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
7289
 
 
7290
else
 
7291
  _lt_caught_CXX_error=yes
 
7292
fi
 
7293
 
 
7294
 
 
7295
 
 
7296
 
 
7297
 
 
7298
# Set options
 
7299
 
 
7300
 
 
7301
 
 
7302
        enable_dlopen=no
 
7303
 
 
7304
 
 
7305
  enable_win32_dll=no
 
7306
 
 
7307
 
 
7308
            # Check whether --enable-shared or --disable-shared was given.
 
7309
if test "${enable_shared+set}" = set; then
 
7310
  enableval="$enable_shared"
 
7311
  p=${PACKAGE-default}
 
7312
    case $enableval in
 
7313
    yes) enable_shared=yes ;;
 
7314
    no) enable_shared=no ;;
 
7315
    *)
 
7316
      enable_shared=no
 
7317
      # Look at the argument we got.  We use all the common list separators.
 
7318
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
7319
      for pkg in $enableval; do
 
7320
        IFS="$lt_save_ifs"
 
7321
        if test "X$pkg" = "X$p"; then
 
7322
          enable_shared=yes
 
7323
        fi
 
7324
      done
 
7325
      IFS="$lt_save_ifs"
 
7326
      ;;
 
7327
    esac
 
7328
else
 
7329
  enable_shared=yes
 
7330
fi;
 
7331
 
 
7332
 
 
7333
 
 
7334
 
 
7335
 
 
7336
 
 
7337
 
 
7338
 
 
7339
  # Check whether --enable-static or --disable-static was given.
 
7340
if test "${enable_static+set}" = set; then
 
7341
  enableval="$enable_static"
 
7342
  p=${PACKAGE-default}
 
7343
    case $enableval in
 
7344
    yes) enable_static=yes ;;
 
7345
    no) enable_static=no ;;
 
7346
    *)
 
7347
     enable_static=no
 
7348
      # Look at the argument we got.  We use all the common list separators.
 
7349
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
7350
      for pkg in $enableval; do
 
7351
        IFS="$lt_save_ifs"
 
7352
        if test "X$pkg" = "X$p"; then
 
7353
          enable_static=yes
 
7354
        fi
 
7355
      done
 
7356
      IFS="$lt_save_ifs"
 
7357
      ;;
 
7358
    esac
 
7359
else
 
7360
  enable_static=yes
 
7361
fi;
 
7362
 
 
7363
 
 
7364
 
 
7365
 
 
7366
 
 
7367
 
 
7368
 
 
7369
 
 
7370
 
 
7371
# Check whether --with-pic or --without-pic was given.
 
7372
if test "${with_pic+set}" = set; then
 
7373
  withval="$with_pic"
 
7374
  pic_mode="$withval"
 
7375
else
 
7376
  pic_mode=default
 
7377
fi;
 
7378
 
 
7379
test -z "$pic_mode" && pic_mode=default
 
7380
 
 
7381
 
 
7382
 
 
7383
 
 
7384
 
 
7385
 
 
7386
 
 
7387
  # Check whether --enable-fast-install or --disable-fast-install was given.
 
7388
if test "${enable_fast_install+set}" = set; then
 
7389
  enableval="$enable_fast_install"
 
7390
  p=${PACKAGE-default}
 
7391
    case $enableval in
 
7392
    yes) enable_fast_install=yes ;;
 
7393
    no) enable_fast_install=no ;;
 
7394
    *)
 
7395
      enable_fast_install=no
 
7396
      # Look at the argument we got.  We use all the common list separators.
 
7397
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
7398
      for pkg in $enableval; do
 
7399
        IFS="$lt_save_ifs"
 
7400
        if test "X$pkg" = "X$p"; then
 
7401
          enable_fast_install=yes
 
7402
        fi
 
7403
      done
 
7404
      IFS="$lt_save_ifs"
 
7405
      ;;
 
7406
    esac
 
7407
else
 
7408
  enable_fast_install=yes
 
7409
fi;
 
7410
 
 
7411
 
 
7412
 
 
7413
 
 
7414
 
 
7415
 
 
7416
 
 
7417
 
 
7418
 
 
7419
 
 
7420
# This can be used to rebuild libtool when needed
 
7421
LIBTOOL_DEPS="$ltmain"
 
7422
 
 
7423
# Always use our own libtool.
 
7424
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
 
7425
 
 
7426
 
 
7427
 
 
7428
 
 
7429
 
 
7430
 
 
7431
 
 
7432
 
 
7433
 
 
7434
 
 
7435
 
 
7436
 
 
7437
 
 
7438
 
 
7439
 
 
7440
 
 
7441
 
 
7442
 
 
7443
 
 
7444
 
 
7445
 
 
7446
 
 
7447
 
 
7448
 
 
7449
 
 
7450
test -z "$LN_S" && LN_S="ln -s"
 
7451
 
 
7452
 
 
7453
 
 
7454
 
 
7455
 
 
7456
 
 
7457
 
 
7458
 
 
7459
 
 
7460
 
 
7461
 
 
7462
 
 
7463
 
 
7464
 
 
7465
if test -n "${ZSH_VERSION+set}" ; then
 
7466
   setopt NO_GLOB_SUBST
 
7467
fi
 
7468
 
5743
7469
echo "$as_me:$LINENO: checking for objdir" >&5
5744
7470
echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5745
7471
if test "${lt_cv_objdir+set}" = set; then
5763
7489
 
5764
7490
 
5765
7491
 
 
7492
cat >>confdefs.h <<_ACEOF
 
7493
#define LT_OBJDIR "$lt_cv_objdir/"
 
7494
_ACEOF
 
7495
 
 
7496
 
 
7497
 
 
7498
 
 
7499
 
 
7500
 
 
7501
 
 
7502
 
 
7503
 
 
7504
 
 
7505
 
 
7506
 
 
7507
 
 
7508
 
 
7509
 
 
7510
 
 
7511
 
5766
7512
case $host_os in
5767
7513
aix3*)
5768
7514
  # AIX sometimes has problems with the GCC collect2 program.  For some
5777
7523
 
5778
7524
# Sed substitution that helps us do robust quoting.  It backslashifies
5779
7525
# metacharacters that are still active within double-quoted strings.
5780
 
Xsed='sed -e 1s/^X//'
5781
 
sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
 
7526
sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5782
7527
 
5783
7528
# Same as above, but do not quote variable references.
5784
 
double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
 
7529
double_quote_subst='s/\(["`\\]\)/\\\1/g'
5785
7530
 
5786
7531
# Sed substitution to delay expansion of an escaped shell variable in a
5787
7532
# double_quote_subst'ed string.
5788
7533
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5789
7534
 
 
7535
# Sed substitution to delay expansion of an escaped single quote.
 
7536
delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
 
7537
 
5790
7538
# Sed substitution to avoid accidental globbing in evaled expressions
5791
7539
no_glob_subst='s/\*/\\\*/g'
5792
7540
 
5793
 
# Constants:
5794
 
rm="rm -f"
5795
 
 
5796
7541
# Global variables:
5797
 
default_ofile=libtool
 
7542
ofile=libtool
5798
7543
can_build_shared=yes
5799
7544
 
5800
7545
# All known linkers require a `.a' archive for static linking (except MSVC,
5801
7546
# which needs '.lib').
5802
7547
libext=a
5803
 
ltmain="$ac_aux_dir/ltmain.sh"
5804
 
ofile="$default_ofile"
 
7548
 
5805
7549
with_gnu_ld="$lt_cv_prog_gnu_ld"
5806
7550
 
5807
 
if test -n "$ac_tool_prefix"; then
5808
 
  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5809
 
set dummy ${ac_tool_prefix}ar; ac_word=$2
5810
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
5811
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5812
 
if test "${ac_cv_prog_AR+set}" = set; then
5813
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
5814
 
else
5815
 
  if test -n "$AR"; then
5816
 
  ac_cv_prog_AR="$AR" # Let the user override the test.
5817
 
else
5818
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5819
 
for as_dir in $PATH
5820
 
do
5821
 
  IFS=$as_save_IFS
5822
 
  test -z "$as_dir" && as_dir=.
5823
 
  for ac_exec_ext in '' $ac_executable_extensions; do
5824
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5825
 
    ac_cv_prog_AR="${ac_tool_prefix}ar"
5826
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5827
 
    break 2
5828
 
  fi
5829
 
done
5830
 
done
5831
 
 
5832
 
fi
5833
 
fi
5834
 
AR=$ac_cv_prog_AR
5835
 
if test -n "$AR"; then
5836
 
  echo "$as_me:$LINENO: result: $AR" >&5
5837
 
echo "${ECHO_T}$AR" >&6
5838
 
else
5839
 
  echo "$as_me:$LINENO: result: no" >&5
5840
 
echo "${ECHO_T}no" >&6
5841
 
fi
5842
 
 
5843
 
fi
5844
 
if test -z "$ac_cv_prog_AR"; then
5845
 
  ac_ct_AR=$AR
5846
 
  # Extract the first word of "ar", so it can be a program name with args.
5847
 
set dummy ar; ac_word=$2
5848
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
5849
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5850
 
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5851
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
5852
 
else
5853
 
  if test -n "$ac_ct_AR"; then
5854
 
  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5855
 
else
5856
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5857
 
for as_dir in $PATH
5858
 
do
5859
 
  IFS=$as_save_IFS
5860
 
  test -z "$as_dir" && as_dir=.
5861
 
  for ac_exec_ext in '' $ac_executable_extensions; do
5862
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5863
 
    ac_cv_prog_ac_ct_AR="ar"
5864
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5865
 
    break 2
5866
 
  fi
5867
 
done
5868
 
done
5869
 
 
5870
 
  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5871
 
fi
5872
 
fi
5873
 
ac_ct_AR=$ac_cv_prog_ac_ct_AR
5874
 
if test -n "$ac_ct_AR"; then
5875
 
  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5876
 
echo "${ECHO_T}$ac_ct_AR" >&6
5877
 
else
5878
 
  echo "$as_me:$LINENO: result: no" >&5
5879
 
echo "${ECHO_T}no" >&6
5880
 
fi
5881
 
 
5882
 
  AR=$ac_ct_AR
5883
 
else
5884
 
  AR="$ac_cv_prog_AR"
5885
 
fi
5886
 
 
5887
 
if test -n "$ac_tool_prefix"; then
5888
 
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5889
 
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5890
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
5891
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5892
 
if test "${ac_cv_prog_RANLIB+set}" = set; then
5893
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
5894
 
else
5895
 
  if test -n "$RANLIB"; then
5896
 
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5897
 
else
5898
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5899
 
for as_dir in $PATH
5900
 
do
5901
 
  IFS=$as_save_IFS
5902
 
  test -z "$as_dir" && as_dir=.
5903
 
  for ac_exec_ext in '' $ac_executable_extensions; do
5904
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5905
 
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5906
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5907
 
    break 2
5908
 
  fi
5909
 
done
5910
 
done
5911
 
 
5912
 
fi
5913
 
fi
5914
 
RANLIB=$ac_cv_prog_RANLIB
5915
 
if test -n "$RANLIB"; then
5916
 
  echo "$as_me:$LINENO: result: $RANLIB" >&5
5917
 
echo "${ECHO_T}$RANLIB" >&6
5918
 
else
5919
 
  echo "$as_me:$LINENO: result: no" >&5
5920
 
echo "${ECHO_T}no" >&6
5921
 
fi
5922
 
 
5923
 
fi
5924
 
if test -z "$ac_cv_prog_RANLIB"; then
5925
 
  ac_ct_RANLIB=$RANLIB
5926
 
  # Extract the first word of "ranlib", so it can be a program name with args.
5927
 
set dummy ranlib; ac_word=$2
5928
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
5929
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5930
 
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5931
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
5932
 
else
5933
 
  if test -n "$ac_ct_RANLIB"; then
5934
 
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5935
 
else
5936
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5937
 
for as_dir in $PATH
5938
 
do
5939
 
  IFS=$as_save_IFS
5940
 
  test -z "$as_dir" && as_dir=.
5941
 
  for ac_exec_ext in '' $ac_executable_extensions; do
5942
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5943
 
    ac_cv_prog_ac_ct_RANLIB="ranlib"
5944
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5945
 
    break 2
5946
 
  fi
5947
 
done
5948
 
done
5949
 
 
5950
 
  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5951
 
fi
5952
 
fi
5953
 
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5954
 
if test -n "$ac_ct_RANLIB"; then
5955
 
  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5956
 
echo "${ECHO_T}$ac_ct_RANLIB" >&6
5957
 
else
5958
 
  echo "$as_me:$LINENO: result: no" >&5
5959
 
echo "${ECHO_T}no" >&6
5960
 
fi
5961
 
 
5962
 
  RANLIB=$ac_ct_RANLIB
5963
 
else
5964
 
  RANLIB="$ac_cv_prog_RANLIB"
5965
 
fi
5966
 
 
5967
 
if test -n "$ac_tool_prefix"; then
5968
 
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5969
 
set dummy ${ac_tool_prefix}strip; ac_word=$2
5970
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
5971
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5972
 
if test "${ac_cv_prog_STRIP+set}" = set; then
5973
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
5974
 
else
5975
 
  if test -n "$STRIP"; then
5976
 
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5977
 
else
5978
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5979
 
for as_dir in $PATH
5980
 
do
5981
 
  IFS=$as_save_IFS
5982
 
  test -z "$as_dir" && as_dir=.
5983
 
  for ac_exec_ext in '' $ac_executable_extensions; do
5984
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5985
 
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5986
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5987
 
    break 2
5988
 
  fi
5989
 
done
5990
 
done
5991
 
 
5992
 
fi
5993
 
fi
5994
 
STRIP=$ac_cv_prog_STRIP
5995
 
if test -n "$STRIP"; then
5996
 
  echo "$as_me:$LINENO: result: $STRIP" >&5
5997
 
echo "${ECHO_T}$STRIP" >&6
5998
 
else
5999
 
  echo "$as_me:$LINENO: result: no" >&5
6000
 
echo "${ECHO_T}no" >&6
6001
 
fi
6002
 
 
6003
 
fi
6004
 
if test -z "$ac_cv_prog_STRIP"; then
6005
 
  ac_ct_STRIP=$STRIP
6006
 
  # Extract the first word of "strip", so it can be a program name with args.
6007
 
set dummy strip; ac_word=$2
6008
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
6009
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6010
 
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6011
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6012
 
else
6013
 
  if test -n "$ac_ct_STRIP"; then
6014
 
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6015
 
else
6016
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6017
 
for as_dir in $PATH
6018
 
do
6019
 
  IFS=$as_save_IFS
6020
 
  test -z "$as_dir" && as_dir=.
6021
 
  for ac_exec_ext in '' $ac_executable_extensions; do
6022
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6023
 
    ac_cv_prog_ac_ct_STRIP="strip"
6024
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6025
 
    break 2
6026
 
  fi
6027
 
done
6028
 
done
6029
 
 
6030
 
  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6031
 
fi
6032
 
fi
6033
 
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6034
 
if test -n "$ac_ct_STRIP"; then
6035
 
  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6036
 
echo "${ECHO_T}$ac_ct_STRIP" >&6
6037
 
else
6038
 
  echo "$as_me:$LINENO: result: no" >&5
6039
 
echo "${ECHO_T}no" >&6
6040
 
fi
6041
 
 
6042
 
  STRIP=$ac_ct_STRIP
6043
 
else
6044
 
  STRIP="$ac_cv_prog_STRIP"
6045
 
fi
6046
 
 
6047
 
 
6048
7551
old_CC="$CC"
6049
7552
old_CFLAGS="$CFLAGS"
6050
7553
 
6051
7554
# Set sane defaults for various variables
6052
 
test -z "$AR" && AR=ar
6053
 
test -z "$AR_FLAGS" && AR_FLAGS=cru
6054
 
test -z "$AS" && AS=as
6055
7555
test -z "$CC" && CC=cc
6056
7556
test -z "$LTCC" && LTCC=$CC
6057
7557
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6058
 
test -z "$DLLTOOL" && DLLTOOL=dlltool
6059
7558
test -z "$LD" && LD=ld
6060
 
test -z "$LN_S" && LN_S="ln -s"
6061
 
test -z "$MAGIC_CMD" && MAGIC_CMD=file
6062
 
test -z "$NM" && NM=nm
6063
 
test -z "$SED" && SED=sed
6064
 
test -z "$OBJDUMP" && OBJDUMP=objdump
6065
 
test -z "$RANLIB" && RANLIB=:
6066
 
test -z "$STRIP" && STRIP=:
6067
7559
test -z "$ac_objext" && ac_objext=o
6068
7560
 
6069
 
# Determine commands to create old-style static archives.
6070
 
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6071
 
old_postinstall_cmds='chmod 644 $oldlib'
6072
 
old_postuninstall_cmds=
6073
 
 
6074
 
if test -n "$RANLIB"; then
6075
 
  case $host_os in
6076
 
  openbsd*)
6077
 
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6078
 
    ;;
6079
 
  *)
6080
 
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6081
 
    ;;
6082
 
  esac
6083
 
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6084
 
fi
6085
 
 
6086
7561
for cc_temp in $compiler""; do
6087
7562
  case $cc_temp in
6088
7563
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6091
7566
    *) break;;
6092
7567
  esac
6093
7568
done
6094
 
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
7569
cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6095
7570
 
6096
7571
 
6097
7572
# Only perform the check for file, if the check method requires it
 
7573
test -z "$MAGIC_CMD" && MAGIC_CMD=file
6098
7574
case $deplibs_check_method in
6099
7575
file_magic*)
6100
7576
  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6125
7601
            $EGREP "$file_magic_regex" > /dev/null; then
6126
7602
            :
6127
7603
          else
6128
 
            cat <<EOF 1>&2
 
7604
            cat <<_LT_EOF 1>&2
6129
7605
 
6130
7606
*** Warning: the command libtool uses to detect shared libraries,
6131
7607
*** $file_magic_cmd, produces output that libtool cannot recognize.
6136
7612
*** may want to report the problem to your system manager and/or to
6137
7613
*** bug-libtool@gnu.org
6138
7614
 
6139
 
EOF
 
7615
_LT_EOF
6140
7616
          fi ;;
6141
7617
        esac
6142
7618
      fi
6158
7634
echo "${ECHO_T}no" >&6
6159
7635
fi
6160
7636
 
 
7637
 
 
7638
 
 
7639
 
 
7640
 
6161
7641
if test -z "$lt_cv_path_MAGIC_CMD"; then
6162
7642
  if test -n "$ac_tool_prefix"; then
6163
7643
    echo "$as_me:$LINENO: checking for file" >&5
6187
7667
            $EGREP "$file_magic_regex" > /dev/null; then
6188
7668
            :
6189
7669
          else
6190
 
            cat <<EOF 1>&2
 
7670
            cat <<_LT_EOF 1>&2
6191
7671
 
6192
7672
*** Warning: the command libtool uses to detect shared libraries,
6193
7673
*** $file_magic_cmd, produces output that libtool cannot recognize.
6198
7678
*** may want to report the problem to your system manager and/or to
6199
7679
*** bug-libtool@gnu.org
6200
7680
 
6201
 
EOF
 
7681
_LT_EOF
6202
7682
          fi ;;
6203
7683
        esac
6204
7684
      fi
6220
7700
echo "${ECHO_T}no" >&6
6221
7701
fi
6222
7702
 
 
7703
 
6223
7704
  else
6224
7705
    MAGIC_CMD=:
6225
7706
  fi
6229
7710
  ;;
6230
7711
esac
6231
7712
 
6232
 
enable_dlopen=no
6233
 
enable_win32_dll=no
6234
 
 
6235
 
# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6236
 
if test "${enable_libtool_lock+set}" = set; then
6237
 
  enableval="$enable_libtool_lock"
6238
 
 
6239
 
fi;
6240
 
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6241
 
 
6242
 
 
6243
 
# Check whether --with-pic or --without-pic was given.
6244
 
if test "${with_pic+set}" = set; then
6245
 
  withval="$with_pic"
6246
 
  pic_mode="$withval"
6247
 
else
6248
 
  pic_mode=default
6249
 
fi;
6250
 
test -z "$pic_mode" && pic_mode=default
6251
 
 
6252
7713
# Use C for the default configuration in the libtool script
6253
 
tagname=
 
7714
 
6254
7715
lt_save_CC="$CC"
6255
7716
ac_ext=c
6256
7717
ac_cpp='$CPP $CPPFLAGS'
6267
7728
objext=$objext
6268
7729
 
6269
7730
# Code to be used in simple compile tests
6270
 
lt_simple_compile_test_code="int some_variable = 0;\n"
 
7731
lt_simple_compile_test_code="int some_variable = 0;"
6271
7732
 
6272
7733
# Code to be used in simple link tests
6273
 
lt_simple_link_test_code='int main(){return(0);}\n'
 
7734
lt_simple_link_test_code='int main(){return(0);}'
 
7735
 
 
7736
 
 
7737
 
 
7738
 
 
7739
 
6274
7740
 
6275
7741
 
6276
7742
# If no C compiler was specified, use CC.
6282
7748
# Allow CC to be a program name with arguments.
6283
7749
compiler=$CC
6284
7750
 
 
7751
# Save the default compiler, since it gets overwritten when the other
 
7752
# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
 
7753
compiler_DEFAULT=$CC
6285
7754
 
6286
7755
# save warnings/boilerplate of simple test code
6287
7756
ac_outfile=conftest.$ac_objext
6288
 
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
 
7757
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
6289
7758
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6290
7759
_lt_compiler_boilerplate=`cat conftest.err`
6291
 
$rm conftest*
 
7760
$RM conftest*
6292
7761
 
6293
7762
ac_outfile=conftest.$ac_objext
6294
 
printf "$lt_simple_link_test_code" >conftest.$ac_ext
 
7763
echo "$lt_simple_link_test_code" >conftest.$ac_ext
6295
7764
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6296
7765
_lt_linker_boilerplate=`cat conftest.err`
6297
 
$rm conftest*
6298
 
 
6299
 
 
 
7766
$RM -r conftest*
 
7767
 
 
7768
 
 
7769
## CAVEAT EMPTOR:
 
7770
## There is no encapsulation within the following macros, do not change
 
7771
## the running order or otherwise move them around unless you know exactly
 
7772
## what you are doing...
 
7773
if test -n "$compiler"; then
6300
7774
 
6301
7775
lt_prog_compiler_no_builtin_flag=
6302
7776
 
6303
7777
if test "$GCC" = yes; then
6304
7778
  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6305
7779
 
6306
 
 
6307
 
echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
 
7780
  echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6308
7781
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6309
7782
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6310
7783
  echo $ECHO_N "(cached) $ECHO_C" >&6
6311
7784
else
6312
7785
  lt_cv_prog_compiler_rtti_exceptions=no
6313
 
  ac_outfile=conftest.$ac_objext
6314
 
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
7786
   ac_outfile=conftest.$ac_objext
 
7787
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6315
7788
   lt_compiler_flag="-fno-rtti -fno-exceptions"
6316
7789
   # Insert the option either (1) after the last *FLAGS variable, or
6317
7790
   # (2) before a word containing "conftest.", or (3) at the end.
6322
7795
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6323
7796
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6324
7797
   -e 's:$: $lt_compiler_flag:'`
6325
 
   (eval echo "\"\$as_me:6325: $lt_compile\"" >&5)
 
7798
   (eval echo "\"\$as_me:7798: $lt_compile\"" >&5)
6326
7799
   (eval "$lt_compile" 2>conftest.err)
6327
7800
   ac_status=$?
6328
7801
   cat conftest.err >&5
6329
 
   echo "$as_me:6329: \$? = $ac_status" >&5
 
7802
   echo "$as_me:7802: \$? = $ac_status" >&5
6330
7803
   if (exit $ac_status) && test -s "$ac_outfile"; then
6331
7804
     # The compiler can only warn and ignore the option if not recognized
6332
7805
     # So say no if there are warnings other than the usual output.
6333
 
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
7806
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6334
7807
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6335
7808
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6336
7809
       lt_cv_prog_compiler_rtti_exceptions=yes
6337
7810
     fi
6338
7811
   fi
6339
 
   $rm conftest*
 
7812
   $RM conftest*
6340
7813
 
6341
7814
fi
6342
7815
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6350
7823
 
6351
7824
fi
6352
7825
 
6353
 
lt_prog_compiler_wl=
 
7826
 
 
7827
 
 
7828
 
 
7829
 
 
7830
 
 
7831
  lt_prog_compiler_wl=
6354
7832
lt_prog_compiler_pic=
6355
7833
lt_prog_compiler_static=
6356
7834
 
6371
7849
      ;;
6372
7850
 
6373
7851
    amigaos*)
6374
 
      # FIXME: we need at least 68020 code to build shared libraries, but
6375
 
      # adding the `-m68020' flag to GCC prevents building anything better,
6376
 
      # like `-m68040'.
6377
 
      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
 
7852
      case $host_cpu in
 
7853
      powerpc)
 
7854
            # see comment about AmigaOS4 .so support
 
7855
            lt_prog_compiler_pic='-fPIC'
 
7856
        ;;
 
7857
      m68k)
 
7858
            # FIXME: we need at least 68020 code to build shared libraries, but
 
7859
            # adding the `-m68020' flag to GCC prevents building anything better,
 
7860
            # like `-m68040'.
 
7861
            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
 
7862
        ;;
 
7863
      esac
6378
7864
      ;;
6379
7865
 
6380
 
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
7866
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6381
7867
      # PIC is the default for these OSes.
6382
7868
      ;;
6383
7869
 
6384
 
    mingw* | pw32* | os2*)
 
7870
    mingw* | cygwin* | pw32* | os2*)
6385
7871
      # This hack is so that the source file can tell whether it is being
6386
7872
      # built for inclusion in a dll (and should export symbols for example).
 
7873
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
 
7874
      # (--disable-auto-import) libraries
6387
7875
      lt_prog_compiler_pic='-DDLL_EXPORT'
6388
7876
      ;;
6389
7877
 
6393
7881
      lt_prog_compiler_pic='-fno-common'
6394
7882
      ;;
6395
7883
 
6396
 
    interix3*)
 
7884
    hpux*)
 
7885
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
7886
      # not for PA HP-UX.
 
7887
      case $host_cpu in
 
7888
      hppa*64*|ia64*)
 
7889
        # +Z the default
 
7890
        ;;
 
7891
      *)
 
7892
        lt_prog_compiler_pic='-fPIC'
 
7893
        ;;
 
7894
      esac
 
7895
      ;;
 
7896
 
 
7897
    interix[3-9]*)
6397
7898
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6398
7899
      # Instead, we relocate shared libraries at runtime.
6399
7900
      ;;
6405
7906
      enable_shared=no
6406
7907
      ;;
6407
7908
 
 
7909
    *nto* | *qnx*)
 
7910
      # QNX uses GNU C++, but need to define -shared option too, otherwise
 
7911
      # it will coredump.
 
7912
      lt_prog_compiler_pic='-fPIC -shared'
 
7913
      ;;
 
7914
 
6408
7915
    sysv4*MP*)
6409
7916
      if test -d /usr/nec; then
6410
7917
        lt_prog_compiler_pic=-Kconform_pic
6411
7918
      fi
6412
7919
      ;;
6413
7920
 
6414
 
    hpux*)
6415
 
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6416
 
      # not for PA HP-UX.
6417
 
      case $host_cpu in
6418
 
      hppa*64*|ia64*)
6419
 
        # +Z the default
6420
 
        ;;
6421
 
      *)
6422
 
        lt_prog_compiler_pic='-fPIC'
6423
 
        ;;
6424
 
      esac
6425
 
      ;;
6426
 
 
6427
7921
    *)
6428
7922
      lt_prog_compiler_pic='-fPIC'
6429
7923
      ;;
6440
7934
        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6441
7935
      fi
6442
7936
      ;;
6443
 
      darwin*)
6444
 
        # PIC is the default on this platform
6445
 
        # Common symbols not allowed in MH_DYLIB files
6446
 
       case $cc_basename in
6447
 
         xlc*)
6448
 
         lt_prog_compiler_pic='-qnocommon'
6449
 
         lt_prog_compiler_wl='-Wl,'
6450
 
         ;;
6451
 
       esac
6452
 
       ;;
6453
7937
 
6454
 
    mingw* | pw32* | os2*)
 
7938
    mingw* | cygwin* | pw32* | os2*)
6455
7939
      # This hack is so that the source file can tell whether it is being
6456
7940
      # built for inclusion in a dll (and should export symbols for example).
6457
7941
      lt_prog_compiler_pic='-DDLL_EXPORT'
6479
7963
      lt_prog_compiler_static='-non_shared'
6480
7964
      ;;
6481
7965
 
6482
 
    newsos6)
6483
 
      lt_prog_compiler_pic='-KPIC'
6484
 
      lt_prog_compiler_static='-Bstatic'
6485
 
      ;;
6486
 
 
6487
 
    linux*)
 
7966
    linux* | k*bsd*-gnu)
6488
7967
      case $cc_basename in
6489
 
      icc* | ecc*)
 
7968
      icc* | ecc* | ifort*)
6490
7969
        lt_prog_compiler_wl='-Wl,'
6491
7970
        lt_prog_compiler_pic='-KPIC'
6492
7971
        lt_prog_compiler_static='-static'
6503
7982
        # All Alpha code is PIC.
6504
7983
        lt_prog_compiler_static='-non_shared'
6505
7984
        ;;
 
7985
      xl*)
 
7986
        # IBM XL C 8.0/Fortran 10.1 on PPC
 
7987
        lt_prog_compiler_wl='-Wl,'
 
7988
        lt_prog_compiler_pic='-qpic'
 
7989
        lt_prog_compiler_static='-qstaticlink'
 
7990
        ;;
 
7991
      *)
 
7992
        case `$CC -V 2>&1 | sed 5q` in
 
7993
        *Sun\ C*)
 
7994
          # Sun C 5.9
 
7995
          lt_prog_compiler_pic='-KPIC'
 
7996
          lt_prog_compiler_static='-Bstatic'
 
7997
          lt_prog_compiler_wl='-Wl,'
 
7998
          ;;
 
7999
        *Sun\ F*)
 
8000
          # Sun Fortran 8.3 passes all unrecognized flags to the linker
 
8001
          lt_prog_compiler_pic='-KPIC'
 
8002
          lt_prog_compiler_static='-Bstatic'
 
8003
          lt_prog_compiler_wl=''
 
8004
          ;;
 
8005
        esac
 
8006
        ;;
6506
8007
      esac
6507
8008
      ;;
6508
8009
 
 
8010
    newsos6)
 
8011
      lt_prog_compiler_pic='-KPIC'
 
8012
      lt_prog_compiler_static='-Bstatic'
 
8013
      ;;
 
8014
 
 
8015
    *nto* | *qnx*)
 
8016
      # QNX uses GNU C++, but need to define -shared option too, otherwise
 
8017
      # it will coredump.
 
8018
      lt_prog_compiler_pic='-fPIC -shared'
 
8019
      ;;
 
8020
 
6509
8021
    osf3* | osf4* | osf5*)
6510
8022
      lt_prog_compiler_wl='-Wl,'
6511
8023
      # All OSF/1 code is PIC.
6512
8024
      lt_prog_compiler_static='-non_shared'
6513
8025
      ;;
6514
8026
 
 
8027
    rdos*)
 
8028
      lt_prog_compiler_static='-non_shared'
 
8029
      ;;
 
8030
 
6515
8031
    solaris*)
6516
8032
      lt_prog_compiler_pic='-KPIC'
6517
8033
      lt_prog_compiler_static='-Bstatic'
6564
8080
    esac
6565
8081
  fi
6566
8082
 
 
8083
case $host_os in
 
8084
  # For platforms which do not support PIC, -DPIC is meaningless:
 
8085
  *djgpp*)
 
8086
    lt_prog_compiler_pic=
 
8087
    ;;
 
8088
  *)
 
8089
    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
 
8090
    ;;
 
8091
esac
6567
8092
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6568
8093
echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6569
8094
 
 
8095
 
 
8096
 
 
8097
 
 
8098
 
 
8099
 
6570
8100
#
6571
8101
# Check to make sure the PIC flag actually works.
6572
8102
#
6573
8103
if test -n "$lt_prog_compiler_pic"; then
6574
 
 
6575
 
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
 
8104
  echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6576
8105
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6577
 
if test "${lt_prog_compiler_pic_works+set}" = set; then
 
8106
if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
6578
8107
  echo $ECHO_N "(cached) $ECHO_C" >&6
6579
8108
else
6580
 
  lt_prog_compiler_pic_works=no
6581
 
  ac_outfile=conftest.$ac_objext
6582
 
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
8109
  lt_cv_prog_compiler_pic_works=no
 
8110
   ac_outfile=conftest.$ac_objext
 
8111
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6583
8112
   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6584
8113
   # Insert the option either (1) after the last *FLAGS variable, or
6585
8114
   # (2) before a word containing "conftest.", or (3) at the end.
6590
8119
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6591
8120
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6592
8121
   -e 's:$: $lt_compiler_flag:'`
6593
 
   (eval echo "\"\$as_me:6593: $lt_compile\"" >&5)
 
8122
   (eval echo "\"\$as_me:8122: $lt_compile\"" >&5)
6594
8123
   (eval "$lt_compile" 2>conftest.err)
6595
8124
   ac_status=$?
6596
8125
   cat conftest.err >&5
6597
 
   echo "$as_me:6597: \$? = $ac_status" >&5
 
8126
   echo "$as_me:8126: \$? = $ac_status" >&5
6598
8127
   if (exit $ac_status) && test -s "$ac_outfile"; then
6599
8128
     # The compiler can only warn and ignore the option if not recognized
6600
8129
     # So say no if there are warnings other than the usual output.
6601
 
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
8130
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6602
8131
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6603
8132
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6604
 
       lt_prog_compiler_pic_works=yes
 
8133
       lt_cv_prog_compiler_pic_works=yes
6605
8134
     fi
6606
8135
   fi
6607
 
   $rm conftest*
 
8136
   $RM conftest*
6608
8137
 
6609
8138
fi
6610
 
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6611
 
echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
 
8139
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
 
8140
echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6
6612
8141
 
6613
 
if test x"$lt_prog_compiler_pic_works" = xyes; then
 
8142
if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
6614
8143
    case $lt_prog_compiler_pic in
6615
8144
     "" | " "*) ;;
6616
8145
     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6621
8150
fi
6622
8151
 
6623
8152
fi
6624
 
case $host_os in
6625
 
  # For platforms which do not support PIC, -DPIC is meaningless:
6626
 
  *djgpp*)
6627
 
    lt_prog_compiler_pic=
6628
 
    ;;
6629
 
  *)
6630
 
    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6631
 
    ;;
6632
 
esac
 
8153
 
 
8154
 
 
8155
 
 
8156
 
 
8157
 
6633
8158
 
6634
8159
#
6635
8160
# Check to make sure the static flag actually works.
6637
8162
wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
6638
8163
echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
6639
8164
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
6640
 
if test "${lt_prog_compiler_static_works+set}" = set; then
 
8165
if test "${lt_cv_prog_compiler_static_works+set}" = set; then
6641
8166
  echo $ECHO_N "(cached) $ECHO_C" >&6
6642
8167
else
6643
 
  lt_prog_compiler_static_works=no
 
8168
  lt_cv_prog_compiler_static_works=no
6644
8169
   save_LDFLAGS="$LDFLAGS"
6645
8170
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
6646
 
   printf "$lt_simple_link_test_code" > conftest.$ac_ext
 
8171
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
6647
8172
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6648
8173
     # The linker can only warn and ignore the option if not recognized
6649
8174
     # So say no if there are warnings
6650
8175
     if test -s conftest.err; then
6651
8176
       # Append any errors to the config.log.
6652
8177
       cat conftest.err 1>&5
6653
 
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
 
8178
       $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
6654
8179
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6655
8180
       if diff conftest.exp conftest.er2 >/dev/null; then
6656
 
         lt_prog_compiler_static_works=yes
 
8181
         lt_cv_prog_compiler_static_works=yes
6657
8182
       fi
6658
8183
     else
6659
 
       lt_prog_compiler_static_works=yes
 
8184
       lt_cv_prog_compiler_static_works=yes
6660
8185
     fi
6661
8186
   fi
6662
 
   $rm conftest*
 
8187
   $RM -r conftest*
6663
8188
   LDFLAGS="$save_LDFLAGS"
6664
8189
 
6665
8190
fi
6666
 
echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6667
 
echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
 
8191
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
 
8192
echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6
6668
8193
 
6669
 
if test x"$lt_prog_compiler_static_works" = xyes; then
 
8194
if test x"$lt_cv_prog_compiler_static_works" = xyes; then
6670
8195
    :
6671
8196
else
6672
8197
    lt_prog_compiler_static=
6673
8198
fi
6674
8199
 
6675
8200
 
6676
 
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6677
 
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6678
 
if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6679
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6680
 
else
6681
 
  lt_cv_prog_compiler_c_o=no
6682
 
   $rm -r conftest 2>/dev/null
6683
 
   mkdir conftest
6684
 
   cd conftest
6685
 
   mkdir out
6686
 
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6687
 
 
6688
 
   lt_compiler_flag="-o out/conftest2.$ac_objext"
6689
 
   # Insert the option either (1) after the last *FLAGS variable, or
6690
 
   # (2) before a word containing "conftest.", or (3) at the end.
6691
 
   # Note that $ac_compile itself does not contain backslashes and begins
6692
 
   # with a dollar sign (not a hyphen), so the echo should work correctly.
6693
 
   lt_compile=`echo "$ac_compile" | $SED \
6694
 
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6695
 
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6696
 
   -e 's:$: $lt_compiler_flag:'`
6697
 
   (eval echo "\"\$as_me:6697: $lt_compile\"" >&5)
6698
 
   (eval "$lt_compile" 2>out/conftest.err)
6699
 
   ac_status=$?
6700
 
   cat out/conftest.err >&5
6701
 
   echo "$as_me:6701: \$? = $ac_status" >&5
6702
 
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
6703
 
   then
6704
 
     # The compiler can only warn and ignore the option if not recognized
6705
 
     # So say no if there are warnings
6706
 
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
6707
 
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
6708
 
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
6709
 
       lt_cv_prog_compiler_c_o=yes
6710
 
     fi
6711
 
   fi
6712
 
   chmod u+w . 2>&5
6713
 
   $rm conftest*
6714
 
   # SGI C++ compiler will create directory out/ii_files/ for
6715
 
   # template instantiation
6716
 
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
6717
 
   $rm out/* && rmdir out
6718
 
   cd ..
6719
 
   rmdir conftest
6720
 
   $rm conftest*
6721
 
 
6722
 
fi
6723
 
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6724
 
echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
 
8201
 
 
8202
 
 
8203
 
 
8204
 
 
8205
 
 
8206
  echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
8207
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
 
8208
if test "${lt_cv_prog_compiler_c_o+set}" = set; then
 
8209
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8210
else
 
8211
  lt_cv_prog_compiler_c_o=no
 
8212
   $RM -r conftest 2>/dev/null
 
8213
   mkdir conftest
 
8214
   cd conftest
 
8215
   mkdir out
 
8216
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
8217
 
 
8218
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
8219
   # Insert the option either (1) after the last *FLAGS variable, or
 
8220
   # (2) before a word containing "conftest.", or (3) at the end.
 
8221
   # Note that $ac_compile itself does not contain backslashes and begins
 
8222
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
8223
   lt_compile=`echo "$ac_compile" | $SED \
 
8224
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
8225
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
8226
   -e 's:$: $lt_compiler_flag:'`
 
8227
   (eval echo "\"\$as_me:8227: $lt_compile\"" >&5)
 
8228
   (eval "$lt_compile" 2>out/conftest.err)
 
8229
   ac_status=$?
 
8230
   cat out/conftest.err >&5
 
8231
   echo "$as_me:8231: \$? = $ac_status" >&5
 
8232
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
8233
   then
 
8234
     # The compiler can only warn and ignore the option if not recognized
 
8235
     # So say no if there are warnings
 
8236
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
 
8237
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 
8238
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 
8239
       lt_cv_prog_compiler_c_o=yes
 
8240
     fi
 
8241
   fi
 
8242
   chmod u+w . 2>&5
 
8243
   $RM conftest*
 
8244
   # SGI C++ compiler will create directory out/ii_files/ for
 
8245
   # template instantiation
 
8246
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
 
8247
   $RM out/* && rmdir out
 
8248
   cd ..
 
8249
   $RM -r conftest
 
8250
   $RM conftest*
 
8251
 
 
8252
fi
 
8253
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
 
8254
echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
 
8255
 
 
8256
 
 
8257
 
 
8258
 
 
8259
 
 
8260
 
 
8261
  echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
8262
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
 
8263
if test "${lt_cv_prog_compiler_c_o+set}" = set; then
 
8264
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8265
else
 
8266
  lt_cv_prog_compiler_c_o=no
 
8267
   $RM -r conftest 2>/dev/null
 
8268
   mkdir conftest
 
8269
   cd conftest
 
8270
   mkdir out
 
8271
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
8272
 
 
8273
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
8274
   # Insert the option either (1) after the last *FLAGS variable, or
 
8275
   # (2) before a word containing "conftest.", or (3) at the end.
 
8276
   # Note that $ac_compile itself does not contain backslashes and begins
 
8277
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
8278
   lt_compile=`echo "$ac_compile" | $SED \
 
8279
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
8280
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
8281
   -e 's:$: $lt_compiler_flag:'`
 
8282
   (eval echo "\"\$as_me:8282: $lt_compile\"" >&5)
 
8283
   (eval "$lt_compile" 2>out/conftest.err)
 
8284
   ac_status=$?
 
8285
   cat out/conftest.err >&5
 
8286
   echo "$as_me:8286: \$? = $ac_status" >&5
 
8287
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
8288
   then
 
8289
     # The compiler can only warn and ignore the option if not recognized
 
8290
     # So say no if there are warnings
 
8291
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
 
8292
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 
8293
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 
8294
       lt_cv_prog_compiler_c_o=yes
 
8295
     fi
 
8296
   fi
 
8297
   chmod u+w . 2>&5
 
8298
   $RM conftest*
 
8299
   # SGI C++ compiler will create directory out/ii_files/ for
 
8300
   # template instantiation
 
8301
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
 
8302
   $RM out/* && rmdir out
 
8303
   cd ..
 
8304
   $RM -r conftest
 
8305
   $RM conftest*
 
8306
 
 
8307
fi
 
8308
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
 
8309
echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
 
8310
 
 
8311
 
6725
8312
 
6726
8313
 
6727
8314
hard_links="nottested"
6730
8317
  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6731
8318
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6732
8319
  hard_links=yes
6733
 
  $rm conftest*
 
8320
  $RM conftest*
6734
8321
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
6735
8322
  touch conftest.a
6736
8323
  ln conftest.a conftest.b 2>&5 || hard_links=no
6746
8333
  need_locks=no
6747
8334
fi
6748
8335
 
6749
 
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
8336
 
 
8337
 
 
8338
 
 
8339
 
 
8340
 
 
8341
  echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6750
8342
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6751
8343
 
6752
8344
  runpath_var=
6753
8345
  allow_undefined_flag=
6754
 
  enable_shared_with_static_runtimes=no
 
8346
  always_export_symbols=no
6755
8347
  archive_cmds=
6756
8348
  archive_expsym_cmds=
6757
 
  old_archive_From_new_cmds=
6758
 
  old_archive_from_expsyms_cmds=
 
8349
  compiler_needs_object=no
 
8350
  enable_shared_with_static_runtimes=no
6759
8351
  export_dynamic_flag_spec=
6760
 
  whole_archive_flag_spec=
6761
 
  thread_safe_flag_spec=
 
8352
  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
8353
  hardcode_automatic=no
 
8354
  hardcode_direct=no
 
8355
  hardcode_direct_absolute=no
6762
8356
  hardcode_libdir_flag_spec=
6763
8357
  hardcode_libdir_flag_spec_ld=
6764
8358
  hardcode_libdir_separator=
6765
 
  hardcode_direct=no
6766
8359
  hardcode_minus_L=no
6767
8360
  hardcode_shlibpath_var=unsupported
 
8361
  inherit_rpath=no
6768
8362
  link_all_deplibs=unknown
6769
 
  hardcode_automatic=no
6770
8363
  module_cmds=
6771
8364
  module_expsym_cmds=
6772
 
  always_export_symbols=no
6773
 
  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
8365
  old_archive_from_new_cmds=
 
8366
  old_archive_from_expsyms_cmds=
 
8367
  thread_safe_flag_spec=
 
8368
  whole_archive_flag_spec=
6774
8369
  # include_expsyms should be a list of space-separated symbols to be *always*
6775
8370
  # included in the symbol list
6776
8371
  include_expsyms=
6778
8373
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
6779
8374
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6780
8375
  # as well as any symbol that contains `d'.
6781
 
  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
 
8376
  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
6782
8377
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6783
8378
  # platforms (ab)use it in PIC code, but their linkers get confused if
6784
8379
  # the symbol is explicitly referenced.  Since portable code cannot
6785
8380
  # rely on this symbol name, it's probably fine to never include it in
6786
8381
  # preloaded symbol tables.
 
8382
  # Exclude shared library initialization/finalization symbols.
6787
8383
  extract_expsyms_cmds=
6788
 
  # Just being paranoid about ensuring that cc_basename is set.
6789
 
  for cc_temp in $compiler""; do
6790
 
  case $cc_temp in
6791
 
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6792
 
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6793
 
    \-*) ;;
6794
 
    *) break;;
6795
 
  esac
6796
 
done
6797
 
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6798
8384
 
6799
8385
  case $host_os in
6800
8386
  cygwin* | mingw* | pw32*)
6823
8409
    # are reset later if shared libraries are not supported. Putting them
6824
8410
    # here allows them to be overridden if necessary.
6825
8411
    runpath_var=LD_RUN_PATH
6826
 
    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
 
8412
    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6827
8413
    export_dynamic_flag_spec='${wl}--export-dynamic'
6828
8414
    # ancient GNU ld didn't support --whole-archive et. al.
6829
 
    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6830
 
        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6831
 
      else
6832
 
        whole_archive_flag_spec=
 
8415
    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
 
8416
      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
8417
    else
 
8418
      whole_archive_flag_spec=
6833
8419
    fi
6834
8420
    supports_anon_versioning=no
6835
 
    case `$LD -v 2>/dev/null` in
 
8421
    case `$LD -v 2>&1` in
6836
8422
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
6837
8423
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6838
8424
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6842
8428
 
6843
8429
    # See if GNU ld supports shared libraries.
6844
8430
    case $host_os in
6845
 
    aix3* | aix4* | aix5*)
 
8431
    aix[3-9]*)
6846
8432
      # On AIX/PPC, the GNU linker is very broken
6847
8433
      if test "$host_cpu" != ia64; then
6848
8434
        ld_shlibs=no
6849
 
        cat <<EOF 1>&2
 
8435
        cat <<_LT_EOF 1>&2
6850
8436
 
6851
8437
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
6852
8438
*** to be unable to reliably create shared libraries on AIX.
6854
8440
*** really care for shared libraries, you may want to modify your PATH
6855
8441
*** so that a non-GNU linker is found, and then restart.
6856
8442
 
6857
 
EOF
 
8443
_LT_EOF
6858
8444
      fi
6859
8445
      ;;
6860
8446
 
6861
8447
    amigaos*)
6862
 
      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)'
6863
 
      hardcode_libdir_flag_spec='-L$libdir'
6864
 
      hardcode_minus_L=yes
6865
 
 
6866
 
      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6867
 
      # that the semantics of dynamic libraries on AmigaOS, at least up
6868
 
      # to version 4, is to share data among multiple programs linked
6869
 
      # with the same dynamic library.  Since this doesn't match the
6870
 
      # behavior of shared libraries on other platforms, we can't use
6871
 
      # them.
6872
 
      ld_shlibs=no
 
8448
      case $host_cpu in
 
8449
      powerpc)
 
8450
            # see comment about AmigaOS4 .so support
 
8451
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
8452
            archive_expsym_cmds=''
 
8453
        ;;
 
8454
      m68k)
 
8455
            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)'
 
8456
            hardcode_libdir_flag_spec='-L$libdir'
 
8457
            hardcode_minus_L=yes
 
8458
        ;;
 
8459
      esac
6873
8460
      ;;
6874
8461
 
6875
8462
    beos*)
6876
 
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
8463
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
6877
8464
        allow_undefined_flag=unsupported
6878
8465
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6879
8466
        # support --undefined.  This deserves some investigation.  FIXME
6884
8471
      ;;
6885
8472
 
6886
8473
    cygwin* | mingw* | pw32*)
6887
 
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
 
8474
      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6888
8475
      # as there is no search path for DLLs.
6889
8476
      hardcode_libdir_flag_spec='-L$libdir'
6890
8477
      allow_undefined_flag=unsupported
6891
8478
      always_export_symbols=no
6892
8479
      enable_shared_with_static_runtimes=yes
6893
 
      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
 
8480
      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
6894
8481
 
6895
 
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
 
8482
      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
6896
8483
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
6897
8484
        # If the export-symbols file already is a .def file (1st line
6898
8485
        # is EXPORTS), use it as is; otherwise, prepend...
6908
8495
      fi
6909
8496
      ;;
6910
8497
 
6911
 
    interix3*)
 
8498
    interix[3-9]*)
6912
8499
      hardcode_direct=no
6913
8500
      hardcode_shlibpath_var=no
6914
8501
      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6923
8510
      archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
6924
8511
      ;;
6925
8512
 
6926
 
    linux*)
6927
 
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
8513
    gnu* | linux* | tpf* | k*bsd*-gnu)
 
8514
      tmp_diet=no
 
8515
      if test "$host_os" = linux-dietlibc; then
 
8516
        case $cc_basename in
 
8517
          diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
 
8518
        esac
 
8519
      fi
 
8520
      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
 
8521
         && test "$tmp_diet" = no
 
8522
      then
6928
8523
        tmp_addflag=
 
8524
        tmp_sharedflag='-shared'
6929
8525
        case $cc_basename,$host_cpu in
6930
 
        pgcc*)                          # Portland Group C compiler
6931
 
          whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
 
8526
        pgcc*)                          # Portland Group C compiler
 
8527
          whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
6932
8528
          tmp_addflag=' $pic_flag'
6933
8529
          ;;
6934
8530
        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
6935
 
          whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
 
8531
          whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
6936
8532
          tmp_addflag=' $pic_flag -Mnomain' ;;
6937
 
        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
 
8533
        ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
6938
8534
          tmp_addflag=' -i_dynamic' ;;
6939
8535
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
6940
8536
          tmp_addflag=' -i_dynamic -nofor_main' ;;
6941
8537
        ifc* | ifort*)                  # Intel Fortran compiler
6942
8538
          tmp_addflag=' -nofor_main' ;;
6943
 
        esac
6944
 
        archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6945
 
 
6946
 
        if test $supports_anon_versioning = yes; then
6947
 
          archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
6948
 
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6949
 
  $echo "local: *; };" >> $output_objdir/$libname.ver~
6950
 
          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6951
 
        fi
6952
 
        link_all_deplibs=no
 
8539
        xl[cC]*)                        # IBM XL C 8.0 on PPC (deal with xlf below)
 
8540
          tmp_sharedflag='-qmkshrobj'
 
8541
          tmp_addflag= ;;
 
8542
        esac
 
8543
        case `$CC -V 2>&1 | sed 5q` in
 
8544
        *Sun\ C*)                       # Sun C 5.9
 
8545
          whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
 
8546
          compiler_needs_object=yes
 
8547
          tmp_sharedflag='-G' ;;
 
8548
        *Sun\ F*)                       # Sun Fortran 8.3
 
8549
          tmp_sharedflag='-G' ;;
 
8550
        esac
 
8551
        archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
8552
 
 
8553
        if test "x$supports_anon_versioning" = xyes; then
 
8554
          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
 
8555
            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
8556
            echo "local: *; };" >> $output_objdir/$libname.ver~
 
8557
            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
8558
        fi
 
8559
 
 
8560
        case $cc_basename in
 
8561
        xlf*)
 
8562
          # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
 
8563
          whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
 
8564
          hardcode_libdir_flag_spec=
 
8565
          hardcode_libdir_flag_spec_ld='-rpath $libdir'
 
8566
          archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
 
8567
          if test "x$supports_anon_versioning" = xyes; then
 
8568
            archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
 
8569
              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
8570
              echo "local: *; };" >> $output_objdir/$libname.ver~
 
8571
              $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
 
8572
          fi
 
8573
          ;;
 
8574
        esac
6953
8575
      else
6954
 
        ld_shlibs=no
 
8576
        ld_shlibs=no
6955
8577
      fi
6956
8578
      ;;
6957
8579
 
6958
 
    netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
6959
 
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
8580
    netbsd*)
 
8581
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
6960
8582
        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6961
8583
        wlarc=
6962
8584
      else
6966
8588
      ;;
6967
8589
 
6968
8590
    solaris*)
6969
 
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
 
8591
      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
6970
8592
        ld_shlibs=no
6971
 
        cat <<EOF 1>&2
 
8593
        cat <<_LT_EOF 1>&2
6972
8594
 
6973
8595
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
6974
8596
*** create shared libraries on Solaris systems.  Therefore, libtool
6977
8599
*** your PATH or compiler configuration so that the native linker is
6978
8600
*** used, and then restart.
6979
8601
 
6980
 
EOF
6981
 
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
8602
_LT_EOF
 
8603
      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
6982
8604
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6983
8605
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6984
8606
      else
7002
8624
_LT_EOF
7003
8625
        ;;
7004
8626
        *)
7005
 
          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7006
 
            hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
7007
 
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
7008
 
            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
 
8627
          # For security reasons, it is highly recommended that you always
 
8628
          # use absolute paths for naming shared libraries, and exclude the
 
8629
          # DT_RUNPATH tag from executables and libraries.  But doing so
 
8630
          # requires that you compile everything twice, which is a pain.
 
8631
          if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
 
8632
            hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
8633
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
8634
            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7009
8635
          else
7010
8636
            ld_shlibs=no
7011
8637
          fi
7021
8647
      ;;
7022
8648
 
7023
8649
    *)
7024
 
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
8650
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7025
8651
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7026
8652
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7027
8653
      else
7053
8679
      fi
7054
8680
      ;;
7055
8681
 
7056
 
    aix4* | aix5*)
 
8682
    aix[4-9]*)
7057
8683
      if test "$host_cpu" = ia64; then
7058
8684
        # On IA64, the linker does run time linking by default, so we don't
7059
8685
        # have to do anything special.
7063
8689
      else
7064
8690
        # If we're using GNU nm, then we don't want the "-C" option.
7065
8691
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
7066
 
        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7067
 
          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'
 
8692
        if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
 
8693
          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'
7068
8694
        else
7069
 
          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'
 
8695
          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'
7070
8696
        fi
7071
8697
        aix_use_runtimelinking=no
7072
8698
 
7073
8699
        # Test if we are trying to use run time linking or normal
7074
8700
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7075
8701
        # need to do runtime linking.
7076
 
        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
 
8702
        case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
7077
8703
          for ld_flag in $LDFLAGS; do
7078
 
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7079
 
            aix_use_runtimelinking=yes
7080
 
            break
7081
 
          fi
 
8704
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
 
8705
            aix_use_runtimelinking=yes
 
8706
            break
 
8707
          fi
7082
8708
          done
7083
8709
          ;;
7084
8710
        esac
7095
8721
 
7096
8722
      archive_cmds=''
7097
8723
      hardcode_direct=yes
 
8724
      hardcode_direct_absolute=yes
7098
8725
      hardcode_libdir_separator=':'
7099
8726
      link_all_deplibs=yes
 
8727
      file_list_spec='${wl}-f,'
7100
8728
 
7101
8729
      if test "$GCC" = yes; then
7102
8730
        case $host_os in aix4.[012]|aix4.[012].*)
7103
8731
        # We only want to do this on AIX 4.2 and lower, the check
7104
8732
        # below for broken collect2 doesn't work under 4.3+
7105
8733
          collect2name=`${CC} -print-prog-name=collect2`
7106
 
          if test -f "$collect2name" && \
7107
 
           strings "$collect2name" | grep resolve_lib_name >/dev/null
 
8734
          if test -f "$collect2name" &&
 
8735
           strings "$collect2name" | $GREP resolve_lib_name >/dev/null
7108
8736
          then
7109
 
          # We have reworked collect2
7110
 
          hardcode_direct=yes
 
8737
          # We have reworked collect2
 
8738
          :
7111
8739
          else
7112
 
          # We have old collect2
7113
 
          hardcode_direct=unsupported
7114
 
          # It fails to find uninstalled libraries when the uninstalled
7115
 
          # path is not listed in the libpath.  Setting hardcode_minus_L
7116
 
          # to unsupported forces relinking
7117
 
          hardcode_minus_L=yes
7118
 
          hardcode_libdir_flag_spec='-L$libdir'
7119
 
          hardcode_libdir_separator=
 
8740
          # We have old collect2
 
8741
          hardcode_direct=unsupported
 
8742
          # It fails to find uninstalled libraries when the uninstalled
 
8743
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
8744
          # to unsupported forces relinking
 
8745
          hardcode_minus_L=yes
 
8746
          hardcode_libdir_flag_spec='-L$libdir'
 
8747
          hardcode_libdir_separator=
7120
8748
          fi
7121
8749
          ;;
7122
8750
        esac
7127
8755
      else
7128
8756
        # not using gcc
7129
8757
        if test "$host_cpu" = ia64; then
7130
 
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7131
 
        # chokes on -Wl,-G. The following line is correct:
 
8758
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
8759
        # chokes on -Wl,-G. The following line is correct:
7132
8760
          shared_flag='-G'
7133
8761
        else
7134
8762
          if test "$aix_use_runtimelinking" = yes; then
7146
8774
        # Warning - without using the other runtime loading flags (-brtl),
7147
8775
        # -berok will link without error, but may produce a broken library.
7148
8776
        allow_undefined_flag='-berok'
7149
 
       # Determine the default libpath from the value encoded in an empty executable.
7150
 
       cat >conftest.$ac_ext <<_ACEOF
 
8777
        # Determine the default libpath from the value encoded in an
 
8778
        # empty executable.
 
8779
        cat >conftest.$ac_ext <<_ACEOF
7151
8780
/* confdefs.h.  */
7152
8781
_ACEOF
7153
8782
cat confdefs.h >>conftest.$ac_ext
7184
8813
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7185
8814
  (exit $ac_status); }; }; then
7186
8815
 
7187
 
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7188
 
}'`
 
8816
lt_aix_libpath_sed='
 
8817
    /Import File Strings/,/^$/ {
 
8818
        /^0/ {
 
8819
            s/^0  *\(.*\)$/\1/
 
8820
            p
 
8821
        }
 
8822
    }'
 
8823
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7189
8824
# Check for a 64-bit object if we didn't find anything.
7190
 
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; }
7191
 
}'`; fi
 
8825
if test -z "$aix_libpath"; then
 
8826
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
8827
fi
7192
8828
else
7193
8829
  echo "$as_me: failed program was:" >&5
7194
8830
sed 's/^/| /' conftest.$ac_ext >&5
7198
8834
      conftest$ac_exeext conftest.$ac_ext
7199
8835
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7200
8836
 
7201
 
       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7202
 
        archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
7203
 
       else
 
8837
        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
 
8838
        archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
 
8839
      else
7204
8840
        if test "$host_cpu" = ia64; then
7205
8841
          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7206
8842
          allow_undefined_flag="-z nodefs"
7207
8843
          archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
7208
8844
        else
7209
 
         # Determine the default libpath from the value encoded in an empty executable.
 
8845
         # Determine the default libpath from the value encoded in an
 
8846
         # empty executable.
7210
8847
         cat >conftest.$ac_ext <<_ACEOF
7211
8848
/* confdefs.h.  */
7212
8849
_ACEOF
7244
8881
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7245
8882
  (exit $ac_status); }; }; then
7246
8883
 
7247
 
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7248
 
}'`
 
8884
lt_aix_libpath_sed='
 
8885
    /Import File Strings/,/^$/ {
 
8886
        /^0/ {
 
8887
            s/^0  *\(.*\)$/\1/
 
8888
            p
 
8889
        }
 
8890
    }'
 
8891
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7249
8892
# Check for a 64-bit object if we didn't find anything.
7250
 
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; }
7251
 
}'`; fi
 
8893
if test -z "$aix_libpath"; then
 
8894
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
8895
fi
7252
8896
else
7253
8897
  echo "$as_me: failed program was:" >&5
7254
8898
sed 's/^/| /' conftest.$ac_ext >&5
7273
8917
      ;;
7274
8918
 
7275
8919
    amigaos*)
7276
 
      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)'
7277
 
      hardcode_libdir_flag_spec='-L$libdir'
7278
 
      hardcode_minus_L=yes
7279
 
      # see comment about different semantics on the GNU ld section
7280
 
      ld_shlibs=no
 
8920
      case $host_cpu in
 
8921
      powerpc)
 
8922
            # see comment about AmigaOS4 .so support
 
8923
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
8924
            archive_expsym_cmds=''
 
8925
        ;;
 
8926
      m68k)
 
8927
            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)'
 
8928
            hardcode_libdir_flag_spec='-L$libdir'
 
8929
            hardcode_minus_L=yes
 
8930
        ;;
 
8931
      esac
7281
8932
      ;;
7282
8933
 
7283
8934
    bsdi[45]*)
7296
8947
      # Tell ltmain to make .dll files, not .so files.
7297
8948
      shrext_cmds=".dll"
7298
8949
      # FIXME: Setting linknames here is a bad hack.
7299
 
      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
 
8950
      archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
7300
8951
      # The linker will automatically build a .lib file if we build a DLL.
7301
 
      old_archive_From_new_cmds='true'
 
8952
      old_archive_from_new_cmds='true'
7302
8953
      # FIXME: Should let the user specify the lib program.
7303
 
      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
 
8954
      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
7304
8955
      fix_srcfile_path='`cygpath -w "$srcfile"`'
7305
8956
      enable_shared_with_static_runtimes=yes
7306
8957
      ;;
7307
8958
 
7308
8959
    darwin* | rhapsody*)
7309
 
      case $host_os in
7310
 
        rhapsody* | darwin1.[012])
7311
 
         allow_undefined_flag='${wl}-undefined ${wl}suppress'
7312
 
         ;;
7313
 
       *) # Darwin 1.3 on
7314
 
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7315
 
           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7316
 
         else
7317
 
           case ${MACOSX_DEPLOYMENT_TARGET} in
7318
 
             10.[012])
7319
 
               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7320
 
               ;;
7321
 
             10.*)
7322
 
               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7323
 
               ;;
7324
 
           esac
7325
 
         fi
7326
 
         ;;
7327
 
      esac
7328
 
      archive_cmds_need_lc=no
7329
 
      hardcode_direct=no
7330
 
      hardcode_automatic=yes
7331
 
      hardcode_shlibpath_var=unsupported
7332
 
      whole_archive_flag_spec=''
7333
 
      link_all_deplibs=yes
7334
 
    if test "$GCC" = yes ; then
7335
 
        output_verbose_link_cmd='echo'
7336
 
        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7337
 
      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7338
 
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7339
 
      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}'
7340
 
      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}'
7341
 
    else
7342
 
      case $cc_basename in
7343
 
        xlc*)
7344
 
         output_verbose_link_cmd='echo'
7345
 
         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
7346
 
         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7347
 
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7348
 
         archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7349
 
          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}'
7350
 
          ;;
7351
 
       *)
7352
 
         ld_shlibs=no
7353
 
          ;;
7354
 
      esac
7355
 
    fi
 
8960
 
 
8961
 
 
8962
  archive_cmds_need_lc=no
 
8963
  hardcode_direct=no
 
8964
  hardcode_automatic=yes
 
8965
  hardcode_shlibpath_var=unsupported
 
8966
  whole_archive_flag_spec=''
 
8967
  link_all_deplibs=yes
 
8968
  allow_undefined_flag="$_lt_dar_allow_undefined"
 
8969
  if test "$GCC" = "yes"; then
 
8970
    output_verbose_link_cmd=echo
 
8971
    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
 
8972
    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
 
8973
    archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
 
8974
    module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
 
8975
 
 
8976
  else
 
8977
  ld_shlibs=no
 
8978
  fi
 
8979
 
7356
8980
      ;;
7357
8981
 
7358
8982
    dgux*)
7392
9016
      hardcode_shlibpath_var=no
7393
9017
      ;;
7394
9018
 
7395
 
    # GNU/kFreeBSD uses gcc -shared to do shared libraries.
7396
 
    kfreebsd*-gnu)
7397
 
      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7398
 
      hardcode_libdir_flag_spec='-R$libdir'
7399
 
      hardcode_direct=yes
7400
 
      hardcode_shlibpath_var=no
7401
 
      link_all_deplibs=no
7402
 
      ;;
7403
 
 
7404
9019
    hpux9*)
7405
9020
      if test "$GCC" = yes; then
7406
 
        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'
 
9021
        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'
7407
9022
      else
7408
 
        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'
 
9023
        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'
7409
9024
      fi
7410
9025
      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7411
9026
      hardcode_libdir_separator=:
7425
9040
      fi
7426
9041
      if test "$with_gnu_ld" = no; then
7427
9042
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
9043
        hardcode_libdir_flag_spec_ld='+b $libdir'
7428
9044
        hardcode_libdir_separator=:
7429
 
 
7430
9045
        hardcode_direct=yes
 
9046
        hardcode_direct_absolute=yes
7431
9047
        export_dynamic_flag_spec='${wl}-E'
7432
 
 
7433
9048
        # hardcode_minus_L: Not really in the search PATH,
7434
9049
        # but as the default location of the library.
7435
9050
        hardcode_minus_L=yes
7468
9083
 
7469
9084
        case $host_cpu in
7470
9085
        hppa*64*|ia64*)
7471
 
          hardcode_libdir_flag_spec_ld='+b $libdir'
7472
9086
          hardcode_direct=no
7473
9087
          hardcode_shlibpath_var=no
7474
9088
          ;;
7475
9089
        *)
7476
9090
          hardcode_direct=yes
 
9091
          hardcode_direct_absolute=yes
7477
9092
          export_dynamic_flag_spec='${wl}-E'
7478
9093
 
7479
9094
          # hardcode_minus_L: Not really in the search PATH,
7486
9101
 
7487
9102
    irix5* | irix6* | nonstopux*)
7488
9103
      if test "$GCC" = yes; then
7489
 
        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'
 
9104
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
9105
        # Try to use the -exported_symbol ld option, if it does not
 
9106
        # work, assume that -exports_file does not work either and
 
9107
        # implicitly export all symbols.
 
9108
        save_LDFLAGS="$LDFLAGS"
 
9109
        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
 
9110
        cat >conftest.$ac_ext <<_ACEOF
 
9111
int foo(void) {}
 
9112
_ACEOF
 
9113
rm -f conftest.$ac_objext conftest$ac_exeext
 
9114
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
9115
  (eval $ac_link) 2>conftest.er1
 
9116
  ac_status=$?
 
9117
  grep -v '^ *+' conftest.er1 >conftest.err
 
9118
  rm -f conftest.er1
 
9119
  cat conftest.err >&5
 
9120
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9121
  (exit $ac_status); } &&
 
9122
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
9123
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9124
  (eval $ac_try) 2>&5
 
9125
  ac_status=$?
 
9126
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9127
  (exit $ac_status); }; } &&
 
9128
         { ac_try='test -s conftest$ac_exeext'
 
9129
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9130
  (eval $ac_try) 2>&5
 
9131
  ac_status=$?
 
9132
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9133
  (exit $ac_status); }; }; then
 
9134
  archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
 
9135
 
 
9136
else
 
9137
  echo "$as_me: failed program was:" >&5
 
9138
sed 's/^/| /' conftest.$ac_ext >&5
 
9139
 
 
9140
fi
 
9141
rm -f conftest.err conftest.$ac_objext \
 
9142
      conftest$ac_exeext conftest.$ac_ext
 
9143
        LDFLAGS="$save_LDFLAGS"
7490
9144
      else
7491
 
        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'
7492
 
        hardcode_libdir_flag_spec_ld='-rpath $libdir'
 
9145
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
 
9146
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
7493
9147
      fi
 
9148
      archive_cmds_need_lc='no'
7494
9149
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7495
9150
      hardcode_libdir_separator=:
 
9151
      inherit_rpath=yes
7496
9152
      link_all_deplibs=yes
7497
9153
      ;;
7498
9154
 
7499
 
    netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
7500
 
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
9155
    netbsd*)
 
9156
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
7501
9157
        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
7502
9158
      else
7503
9159
        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
7515
9171
      hardcode_shlibpath_var=no
7516
9172
      ;;
7517
9173
 
 
9174
    *nto* | *qnx*)
 
9175
      ;;
 
9176
 
7518
9177
    openbsd*)
7519
 
      hardcode_direct=yes
7520
 
      hardcode_shlibpath_var=no
7521
 
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7522
 
        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7523
 
        archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7524
 
        hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7525
 
        export_dynamic_flag_spec='${wl}-E'
 
9178
      if test -f /usr/libexec/ld.so; then
 
9179
        hardcode_direct=yes
 
9180
        hardcode_shlibpath_var=no
 
9181
        hardcode_direct_absolute=yes
 
9182
        if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
9183
          archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
9184
          archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
 
9185
          hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
 
9186
          export_dynamic_flag_spec='${wl}-E'
 
9187
        else
 
9188
          case $host_os in
 
9189
           openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
 
9190
             archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
9191
             hardcode_libdir_flag_spec='-R$libdir'
 
9192
             ;;
 
9193
           *)
 
9194
             archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
9195
             hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
 
9196
             ;;
 
9197
          esac
 
9198
        fi
7526
9199
      else
7527
 
       case $host_os in
7528
 
         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7529
 
           archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7530
 
           hardcode_libdir_flag_spec='-R$libdir'
7531
 
           ;;
7532
 
         *)
7533
 
           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7534
 
           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7535
 
           ;;
7536
 
       esac
 
9200
        ld_shlibs=no
7537
9201
      fi
7538
9202
      ;;
7539
9203
 
7541
9205
      hardcode_libdir_flag_spec='-L$libdir'
7542
9206
      hardcode_minus_L=yes
7543
9207
      allow_undefined_flag=unsupported
7544
 
      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'
7545
 
      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
 
9208
      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'
 
9209
      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7546
9210
      ;;
7547
9211
 
7548
9212
    osf3*)
7549
9213
      if test "$GCC" = yes; then
7550
9214
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7551
 
        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'
 
9215
        archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
7552
9216
      else
7553
9217
        allow_undefined_flag=' -expect_unresolved \*'
7554
 
        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'
 
9218
        archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
7555
9219
      fi
 
9220
      archive_cmds_need_lc='no'
7556
9221
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7557
9222
      hardcode_libdir_separator=:
7558
9223
      ;;
7560
9225
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
7561
9226
      if test "$GCC" = yes; then
7562
9227
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7563
 
        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'
 
9228
        archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
7564
9229
        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7565
9230
      else
7566
9231
        allow_undefined_flag=' -expect_unresolved \*'
7567
 
        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'
7568
 
        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7569
 
        $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
 
9232
        archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
 
9233
        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
 
9234
        $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
7570
9235
 
7571
9236
        # Both c and cxx compiler support -rpath directly
7572
9237
        hardcode_libdir_flag_spec='-rpath $libdir'
7573
9238
      fi
 
9239
      archive_cmds_need_lc='no'
7574
9240
      hardcode_libdir_separator=:
7575
9241
      ;;
7576
9242
 
7577
9243
    solaris*)
7578
 
      no_undefined_flag=' -z text'
 
9244
      no_undefined_flag=' -z defs'
7579
9245
      if test "$GCC" = yes; then
7580
9246
        wlarc='${wl}'
7581
 
        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7582
 
        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7583
 
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
 
9247
        archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9248
        archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
 
9249
          $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
7584
9250
      else
7585
 
        wlarc=''
7586
 
        archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7587
 
        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7588
 
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
9251
        case `$CC -V 2>&1` in
 
9252
        *"Compilers 5.0"*)
 
9253
          wlarc=''
 
9254
          archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
9255
          archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
 
9256
          $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
 
9257
          ;;
 
9258
        *)
 
9259
          wlarc='${wl}'
 
9260
          archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
 
9261
          archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
 
9262
          $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
 
9263
          ;;
 
9264
        esac
7589
9265
      fi
7590
9266
      hardcode_libdir_flag_spec='-R$libdir'
7591
9267
      hardcode_shlibpath_var=no
7592
9268
      case $host_os in
7593
9269
      solaris2.[0-5] | solaris2.[0-5].*) ;;
7594
9270
      *)
7595
 
        # The compiler driver will combine linker options so we
7596
 
        # cannot just pass the convience library names through
7597
 
        # without $wl, iff we do not link with $LD.
7598
 
        # Luckily, gcc supports the same syntax we need for Sun Studio.
7599
 
        # Supported since Solaris 2.6 (maybe 2.5.1?)
7600
 
        case $wlarc in
7601
 
        '')
7602
 
          whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7603
 
        *)
7604
 
          whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
7605
 
        esac ;;
 
9271
        # The compiler driver will combine and reorder linker options,
 
9272
        # but understands `-z linker_flag'.  GCC discards it without `$wl',
 
9273
        # but is careful enough not to reorder.
 
9274
        # Supported since Solaris 2.6 (maybe 2.5.1?)
 
9275
        if test "$GCC" = yes; then
 
9276
          whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
 
9277
        else
 
9278
          whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
 
9279
        fi
 
9280
        ;;
7606
9281
      esac
7607
9282
      link_all_deplibs=yes
7608
9283
      ;;
7659
9334
      fi
7660
9335
      ;;
7661
9336
 
7662
 
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
 
9337
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
7663
9338
      no_undefined_flag='${wl}-z,text'
7664
9339
      archive_cmds_need_lc=no
7665
9340
      hardcode_shlibpath_var=no
7685
9360
      allow_undefined_flag='${wl}-z,nodefs'
7686
9361
      archive_cmds_need_lc=no
7687
9362
      hardcode_shlibpath_var=no
7688
 
      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
 
9363
      hardcode_libdir_flag_spec='${wl}-R,$libdir'
7689
9364
      hardcode_libdir_separator=':'
7690
9365
      link_all_deplibs=yes
7691
9366
      export_dynamic_flag_spec='${wl}-Bexport'
7692
9367
      runpath_var='LD_RUN_PATH'
7693
9368
 
7694
9369
      if test "$GCC" = yes; then
7695
 
        archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7696
 
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9370
        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9371
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7697
9372
      else
7698
 
        archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7699
 
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9373
        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9374
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7700
9375
      fi
7701
9376
      ;;
7702
9377
 
7710
9385
      ld_shlibs=no
7711
9386
      ;;
7712
9387
    esac
 
9388
 
 
9389
    if test x$host_vendor = xsni; then
 
9390
      case $host in
 
9391
      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
9392
        export_dynamic_flag_spec='${wl}-Blargedynsym'
 
9393
        ;;
 
9394
      esac
 
9395
    fi
7713
9396
  fi
7714
9397
 
7715
9398
echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7716
9399
echo "${ECHO_T}$ld_shlibs" >&6
7717
9400
test "$ld_shlibs" = no && can_build_shared=no
7718
9401
 
 
9402
with_gnu_ld=$with_gnu_ld
 
9403
 
 
9404
 
 
9405
 
 
9406
 
 
9407
 
 
9408
 
 
9409
 
 
9410
 
 
9411
 
 
9412
 
 
9413
 
 
9414
 
 
9415
 
 
9416
 
 
9417
 
7719
9418
#
7720
9419
# Do we need to explicitly link libc?
7721
9420
#
7735
9434
      # to ld, don't add -lc before -lgcc.
7736
9435
      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7737
9436
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7738
 
      $rm conftest*
7739
 
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
9437
      $RM conftest*
 
9438
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7740
9439
 
7741
9440
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7742
9441
  (eval $ac_compile) 2>&5
7756
9455
        libname=conftest
7757
9456
        lt_save_allow_undefined_flag=$allow_undefined_flag
7758
9457
        allow_undefined_flag=
7759
 
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7760
 
  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
9458
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
 
9459
  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
7761
9460
  ac_status=$?
7762
9461
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7763
9462
  (exit $ac_status); }
7770
9469
      else
7771
9470
        cat conftest.err 1>&5
7772
9471
      fi
7773
 
      $rm conftest*
 
9472
      $RM conftest*
7774
9473
      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7775
9474
echo "${ECHO_T}$archive_cmds_need_lc" >&6
7776
9475
      ;;
7779
9478
  ;;
7780
9479
esac
7781
9480
 
7782
 
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
 
9481
 
 
9482
 
 
9483
 
 
9484
 
 
9485
 
 
9486
 
 
9487
 
 
9488
 
 
9489
 
 
9490
 
 
9491
 
 
9492
 
 
9493
 
 
9494
 
 
9495
 
 
9496
 
 
9497
 
 
9498
 
 
9499
 
 
9500
 
 
9501
 
 
9502
 
 
9503
 
 
9504
 
 
9505
 
 
9506
 
 
9507
 
 
9508
 
 
9509
 
 
9510
 
 
9511
 
 
9512
 
 
9513
 
 
9514
 
 
9515
 
 
9516
 
 
9517
 
 
9518
 
 
9519
 
 
9520
 
 
9521
 
 
9522
 
 
9523
 
 
9524
 
 
9525
 
 
9526
 
 
9527
 
 
9528
 
 
9529
 
 
9530
 
 
9531
 
 
9532
 
 
9533
 
 
9534
 
 
9535
 
 
9536
 
 
9537
 
 
9538
 
 
9539
 
 
9540
 
 
9541
 
 
9542
 
 
9543
 
 
9544
 
 
9545
 
 
9546
 
 
9547
 
 
9548
 
 
9549
 
 
9550
 
 
9551
 
 
9552
 
 
9553
 
 
9554
 
 
9555
 
 
9556
 
 
9557
 
 
9558
 
 
9559
 
 
9560
 
 
9561
 
 
9562
 
 
9563
 
 
9564
 
 
9565
 
 
9566
 
 
9567
 
 
9568
 
 
9569
 
 
9570
 
 
9571
 
 
9572
 
 
9573
 
 
9574
 
 
9575
 
 
9576
 
 
9577
 
 
9578
 
 
9579
 
 
9580
 
 
9581
 
 
9582
 
 
9583
 
 
9584
 
 
9585
 
 
9586
 
 
9587
 
 
9588
 
 
9589
 
 
9590
 
 
9591
 
 
9592
 
 
9593
 
 
9594
 
 
9595
 
 
9596
 
 
9597
 
 
9598
 
 
9599
 
 
9600
 
 
9601
 
 
9602
 
 
9603
 
 
9604
 
 
9605
 
 
9606
 
 
9607
 
 
9608
 
 
9609
 
 
9610
 
 
9611
 
 
9612
 
 
9613
 
 
9614
 
 
9615
 
 
9616
 
 
9617
 
 
9618
 
 
9619
 
 
9620
 
 
9621
 
 
9622
 
 
9623
 
 
9624
 
 
9625
 
 
9626
 
 
9627
 
 
9628
 
 
9629
 
 
9630
 
 
9631
 
 
9632
 
 
9633
 
 
9634
 
 
9635
 
 
9636
 
 
9637
  echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7783
9638
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
 
9639
 
 
9640
if test "$GCC" = yes; then
 
9641
  case $host_os in
 
9642
    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
 
9643
    *) lt_awk_arg="/^libraries:/" ;;
 
9644
  esac
 
9645
  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
9646
  if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
 
9647
    # if the path contains ";" then we assume it to be the separator
 
9648
    # otherwise default to the standard path separator (i.e. ":") - it is
 
9649
    # assumed that no part of a normal pathname contains ";" but that should
 
9650
    # okay in the real world where ";" in dirpaths is itself problematic.
 
9651
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
 
9652
  else
 
9653
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
9654
  fi
 
9655
  # Ok, now we have the path, separated by spaces, we can step through it
 
9656
  # and add multilib dir if necessary.
 
9657
  lt_tmp_lt_search_path_spec=
 
9658
  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
 
9659
  for lt_sys_path in $lt_search_path_spec; do
 
9660
    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
 
9661
      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
 
9662
    else
 
9663
      test -d "$lt_sys_path" && \
 
9664
        lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
 
9665
    fi
 
9666
  done
 
9667
  lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
 
9668
BEGIN {RS=" "; FS="/|\n";} {
 
9669
  lt_foo="";
 
9670
  lt_count=0;
 
9671
  for (lt_i = NF; lt_i > 0; lt_i--) {
 
9672
    if ($lt_i != "" && $lt_i != ".") {
 
9673
      if ($lt_i == "..") {
 
9674
        lt_count++;
 
9675
      } else {
 
9676
        if (lt_count == 0) {
 
9677
          lt_foo="/" $lt_i lt_foo;
 
9678
        } else {
 
9679
          lt_count--;
 
9680
        }
 
9681
      }
 
9682
    }
 
9683
  }
 
9684
  if (lt_foo != "") { lt_freq[lt_foo]++; }
 
9685
  if (lt_freq[lt_foo] == 1) { print lt_foo; }
 
9686
}'`
 
9687
  sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
 
9688
else
 
9689
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
 
9690
fi
7784
9691
library_names_spec=
7785
9692
libname_spec='lib$name'
7786
9693
soname_spec=
7794
9701
version_type=none
7795
9702
dynamic_linker="$host_os ld.so"
7796
9703
sys_lib_dlsearch_path_spec="/lib /usr/lib"
7797
 
if test "$GCC" = yes; then
7798
 
  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7799
 
  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7800
 
    # if the path contains ";" then we assume it to be the separator
7801
 
    # otherwise default to the standard path separator (i.e. ":") - it is
7802
 
    # assumed that no part of a normal pathname contains ";" but that should
7803
 
    # okay in the real world where ";" in dirpaths is itself problematic.
7804
 
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7805
 
  else
7806
 
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7807
 
  fi
7808
 
else
7809
 
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7810
 
fi
7811
9704
need_lib_prefix=unknown
7812
9705
hardcode_into_libs=no
7813
9706
 
7825
9718
  soname_spec='${libname}${release}${shared_ext}$major'
7826
9719
  ;;
7827
9720
 
7828
 
aix4* | aix5*)
 
9721
aix[4-9]*)
7829
9722
  version_type=linux
7830
9723
  need_lib_prefix=no
7831
9724
  need_version=no
7844
9737
      aix4 | aix4.[01] | aix4.[01].*)
7845
9738
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7846
9739
           echo ' yes '
7847
 
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
 
9740
           echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
7848
9741
        :
7849
9742
      else
7850
9743
        can_build_shared=no
7870
9763
  ;;
7871
9764
 
7872
9765
amigaos*)
7873
 
  library_names_spec='$libname.ixlibrary $libname.a'
7874
 
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
7875
 
  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'
 
9766
  case $host_cpu in
 
9767
  powerpc)
 
9768
    # Since July 2007 AmigaOS4 officially supports .so libraries.
 
9769
    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
 
9770
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9771
    ;;
 
9772
  m68k)
 
9773
    library_names_spec='$libname.ixlibrary $libname.a'
 
9774
    # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
9775
    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'
 
9776
    ;;
 
9777
  esac
7876
9778
  ;;
7877
9779
 
7878
9780
beos*)
7906
9808
    library_names_spec='$libname.dll.a'
7907
9809
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
7908
9810
    postinstall_cmds='base_file=`basename \${file}`~
7909
 
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
 
9811
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
7910
9812
      dldir=$destdir/`dirname \$dlpath`~
7911
9813
      test -d \$dldir || mkdir -p \$dldir~
7912
9814
      $install_prog $dir/$dlname \$dldir/$dlname~
7913
 
      chmod a+x \$dldir/$dlname'
 
9815
      chmod a+x \$dldir/$dlname~
 
9816
      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
 
9817
        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
 
9818
      fi'
7914
9819
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7915
9820
      dlpath=$dir/\$dldll~
7916
 
       $rm \$dlpath'
 
9821
       $RM \$dlpath'
7917
9822
    shlibpath_overrides_runpath=yes
7918
9823
 
7919
9824
    case $host_os in
7925
9830
    mingw*)
7926
9831
      # MinGW DLLs use traditional 'lib' prefix
7927
9832
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7928
 
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7929
 
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
 
9833
      sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
9834
      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
7930
9835
        # It is most probably a Windows format PATH printed by
7931
9836
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
7932
9837
        # path with ; separators, and with drive letters. We can handle the
7933
9838
        # drive letters (cygwin fileutils understands them), so leave them,
7934
9839
        # especially as we might pass files found there to a mingw objdump,
7935
9840
        # which wouldn't understand a cygwinified path. Ahh.
7936
 
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
9841
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7937
9842
      else
7938
 
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
9843
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7939
9844
      fi
7940
9845
      ;;
7941
9846
    pw32*)
7959
9864
  version_type=darwin
7960
9865
  need_lib_prefix=no
7961
9866
  need_version=no
7962
 
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
9867
  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7963
9868
  soname_spec='${libname}${release}${major}$shared_ext'
7964
9869
  shlibpath_overrides_runpath=yes
7965
9870
  shlibpath_var=DYLD_LIBRARY_PATH
7966
9871
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
7967
 
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7968
 
  if test "$GCC" = yes; then
7969
 
    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"`
7970
 
  else
7971
 
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
7972
 
  fi
 
9872
 
 
9873
  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
7973
9874
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7974
9875
  ;;
7975
9876
 
7986
9887
  dynamic_linker=no
7987
9888
  ;;
7988
9889
 
7989
 
kfreebsd*-gnu)
7990
 
  version_type=linux
7991
 
  need_lib_prefix=no
7992
 
  need_version=no
7993
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7994
 
  soname_spec='${libname}${release}${shared_ext}$major'
7995
 
  shlibpath_var=LD_LIBRARY_PATH
7996
 
  shlibpath_overrides_runpath=no
7997
 
  hardcode_into_libs=yes
7998
 
  dynamic_linker='GNU ld.so'
7999
 
  ;;
8000
 
 
8001
9890
freebsd* | dragonfly*)
8002
9891
  # DragonFly does not have aout.  When/if they implement a new
8003
9892
  # versioning mechanism, adjust this.
8035
9924
    shlibpath_overrides_runpath=no
8036
9925
    hardcode_into_libs=yes
8037
9926
    ;;
8038
 
  freebsd*) # from 4.6 on
 
9927
  *) # from 4.6 on, and DragonFly
8039
9928
    shlibpath_overrides_runpath=yes
8040
9929
    hardcode_into_libs=yes
8041
9930
    ;;
8074
9963
    fi
8075
9964
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8076
9965
    ;;
8077
 
   hppa*64*)
8078
 
     shrext_cmds='.sl'
8079
 
     hardcode_into_libs=yes
8080
 
     dynamic_linker="$host_os dld.sl"
8081
 
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8082
 
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8083
 
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8084
 
     soname_spec='${libname}${release}${shared_ext}$major'
8085
 
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8086
 
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8087
 
     ;;
8088
 
   *)
 
9966
  hppa*64*)
 
9967
    shrext_cmds='.sl'
 
9968
    hardcode_into_libs=yes
 
9969
    dynamic_linker="$host_os dld.sl"
 
9970
    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
9971
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
9972
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9973
    soname_spec='${libname}${release}${shared_ext}$major'
 
9974
    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
9975
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
9976
    ;;
 
9977
  *)
8089
9978
    shrext_cmds='.sl'
8090
9979
    dynamic_linker="$host_os dld.sl"
8091
9980
    shlibpath_var=SHLIB_PATH
8098
9987
  postinstall_cmds='chmod 555 $lib'
8099
9988
  ;;
8100
9989
 
8101
 
interix3*)
 
9990
interix[3-9]*)
8102
9991
  version_type=linux
8103
9992
  need_lib_prefix=no
8104
9993
  need_version=no
8153
10042
  ;;
8154
10043
 
8155
10044
# This must be Linux ELF.
8156
 
linux*)
 
10045
linux* | k*bsd*-gnu)
8157
10046
  version_type=linux
8158
10047
  need_lib_prefix=no
8159
10048
  need_version=no
8162
10051
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8163
10052
  shlibpath_var=LD_LIBRARY_PATH
8164
10053
  shlibpath_overrides_runpath=no
 
10054
  # Some binutils ld are patched to set DT_RUNPATH
 
10055
  save_LDFLAGS=$LDFLAGS
 
10056
  save_libdir=$libdir
 
10057
  eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
 
10058
       LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
 
10059
  cat >conftest.$ac_ext <<_ACEOF
 
10060
/* confdefs.h.  */
 
10061
_ACEOF
 
10062
cat confdefs.h >>conftest.$ac_ext
 
10063
cat >>conftest.$ac_ext <<_ACEOF
 
10064
/* end confdefs.h.  */
 
10065
 
 
10066
int
 
10067
main ()
 
10068
{
 
10069
 
 
10070
  ;
 
10071
  return 0;
 
10072
}
 
10073
_ACEOF
 
10074
rm -f conftest.$ac_objext conftest$ac_exeext
 
10075
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
10076
  (eval $ac_link) 2>conftest.er1
 
10077
  ac_status=$?
 
10078
  grep -v '^ *+' conftest.er1 >conftest.err
 
10079
  rm -f conftest.er1
 
10080
  cat conftest.err >&5
 
10081
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10082
  (exit $ac_status); } &&
 
10083
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
10084
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10085
  (eval $ac_try) 2>&5
 
10086
  ac_status=$?
 
10087
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10088
  (exit $ac_status); }; } &&
 
10089
         { ac_try='test -s conftest$ac_exeext'
 
10090
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10091
  (eval $ac_try) 2>&5
 
10092
  ac_status=$?
 
10093
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10094
  (exit $ac_status); }; }; then
 
10095
  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
 
10096
  shlibpath_overrides_runpath=yes
 
10097
fi
 
10098
 
 
10099
else
 
10100
  echo "$as_me: failed program was:" >&5
 
10101
sed 's/^/| /' conftest.$ac_ext >&5
 
10102
 
 
10103
fi
 
10104
rm -f conftest.err conftest.$ac_objext \
 
10105
      conftest$ac_exeext conftest.$ac_ext
 
10106
  LDFLAGS=$save_LDFLAGS
 
10107
  libdir=$save_libdir
 
10108
 
8165
10109
  # This implies no fast_install, which is unacceptable.
8166
10110
  # Some rework will be needed to allow for fast_install
8167
10111
  # before this can be enabled.
8169
10113
 
8170
10114
  # Append ld.so.conf contents to the search path
8171
10115
  if test -f /etc/ld.so.conf; then
8172
 
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
 
10116
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[       ]*hwcap[        ]/d;s/[:,      ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
8173
10117
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8174
10118
  fi
8175
10119
 
8182
10126
  dynamic_linker='GNU/Linux ld.so'
8183
10127
  ;;
8184
10128
 
8185
 
netbsdelf*-gnu)
8186
 
  version_type=linux
8187
 
  need_lib_prefix=no
8188
 
  need_version=no
8189
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8190
 
  soname_spec='${libname}${release}${shared_ext}$major'
8191
 
  shlibpath_var=LD_LIBRARY_PATH
8192
 
  shlibpath_overrides_runpath=no
8193
 
  hardcode_into_libs=yes
8194
 
  dynamic_linker='NetBSD ld.elf_so'
8195
 
  ;;
8196
 
 
8197
 
knetbsd*-gnu)
8198
 
  version_type=linux
8199
 
  need_lib_prefix=no
8200
 
  need_version=no
8201
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8202
 
  soname_spec='${libname}${release}${shared_ext}$major'
8203
 
  shlibpath_var=LD_LIBRARY_PATH
8204
 
  shlibpath_overrides_runpath=no
8205
 
  hardcode_into_libs=yes
8206
 
  dynamic_linker='GNU ld.so'
8207
 
  ;;
8208
 
 
8209
10129
netbsd*)
8210
10130
  version_type=sunos
8211
10131
  need_lib_prefix=no
8212
10132
  need_version=no
8213
 
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
10133
  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8214
10134
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8215
10135
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8216
10136
    dynamic_linker='NetBSD (a.out) ld.so'
8231
10151
  shlibpath_overrides_runpath=yes
8232
10152
  ;;
8233
10153
 
8234
 
nto-qnx*)
8235
 
  version_type=linux
 
10154
*nto* | *qnx*)
 
10155
  version_type=qnx
8236
10156
  need_lib_prefix=no
8237
10157
  need_version=no
8238
10158
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8239
10159
  soname_spec='${libname}${release}${shared_ext}$major'
8240
10160
  shlibpath_var=LD_LIBRARY_PATH
8241
 
  shlibpath_overrides_runpath=yes
 
10161
  shlibpath_overrides_runpath=no
 
10162
  hardcode_into_libs=yes
 
10163
  dynamic_linker='ldqnx.so'
8242
10164
  ;;
8243
10165
 
8244
10166
openbsd*)
8247
10169
  need_lib_prefix=no
8248
10170
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8249
10171
  case $host_os in
8250
 
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8251
 
    *)                         need_version=no  ;;
 
10172
    openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
 
10173
    *)                          need_version=no  ;;
8252
10174
  esac
8253
10175
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8254
10176
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8255
10177
  shlibpath_var=LD_LIBRARY_PATH
8256
 
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
10178
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8257
10179
    case $host_os in
8258
10180
      openbsd2.[89] | openbsd2.[89].*)
8259
10181
        shlibpath_overrides_runpath=no
8287
10209
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8288
10210
  ;;
8289
10211
 
 
10212
rdos*)
 
10213
  dynamic_linker=no
 
10214
  ;;
 
10215
 
8290
10216
solaris*)
8291
10217
  version_type=linux
8292
10218
  need_lib_prefix=no
8321
10247
    sni)
8322
10248
      shlibpath_overrides_runpath=no
8323
10249
      need_lib_prefix=no
8324
 
      export_dynamic_flag_spec='${wl}-Blargedynsym'
8325
10250
      runpath_var=LD_RUN_PATH
8326
10251
      ;;
8327
10252
    siemens)
8352
10277
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8353
10278
  soname_spec='${libname}${release}${shared_ext}$major'
8354
10279
  shlibpath_var=LD_LIBRARY_PATH
 
10280
  shlibpath_overrides_runpath=yes
8355
10281
  hardcode_into_libs=yes
8356
10282
  if test "$with_gnu_ld" = yes; then
8357
10283
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
8358
 
    shlibpath_overrides_runpath=no
8359
10284
  else
8360
10285
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
8361
 
    shlibpath_overrides_runpath=yes
8362
10286
    case $host_os in
8363
10287
      sco3.2v5*)
8364
10288
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
8368
10292
  sys_lib_dlsearch_path_spec='/usr/lib'
8369
10293
  ;;
8370
10294
 
 
10295
tpf*)
 
10296
  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
 
10297
  version_type=linux
 
10298
  need_lib_prefix=no
 
10299
  need_version=no
 
10300
  library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10301
  shlibpath_var=LD_LIBRARY_PATH
 
10302
  shlibpath_overrides_runpath=no
 
10303
  hardcode_into_libs=yes
 
10304
  ;;
 
10305
 
8371
10306
uts4*)
8372
10307
  version_type=linux
8373
10308
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8388
10323
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8389
10324
fi
8390
10325
 
8391
 
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
 
10326
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
 
10327
  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
 
10328
fi
 
10329
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
 
10330
  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
 
10331
fi
 
10332
 
 
10333
 
 
10334
 
 
10335
 
 
10336
 
 
10337
 
 
10338
 
 
10339
 
 
10340
 
 
10341
 
 
10342
 
 
10343
 
 
10344
 
 
10345
 
 
10346
 
 
10347
 
 
10348
 
 
10349
 
 
10350
 
 
10351
 
 
10352
 
 
10353
 
 
10354
 
 
10355
 
 
10356
 
 
10357
 
 
10358
 
 
10359
 
 
10360
 
 
10361
 
 
10362
 
 
10363
 
 
10364
 
 
10365
 
 
10366
 
 
10367
 
 
10368
 
 
10369
 
 
10370
 
 
10371
 
 
10372
 
 
10373
 
 
10374
 
 
10375
 
 
10376
 
 
10377
 
 
10378
 
 
10379
 
 
10380
 
 
10381
 
 
10382
 
 
10383
 
 
10384
 
 
10385
 
 
10386
 
 
10387
 
 
10388
 
 
10389
 
 
10390
 
 
10391
 
 
10392
 
 
10393
 
 
10394
 
 
10395
 
 
10396
 
 
10397
 
 
10398
 
 
10399
 
 
10400
 
 
10401
 
 
10402
 
 
10403
 
 
10404
 
 
10405
 
 
10406
 
 
10407
 
 
10408
 
 
10409
 
 
10410
 
 
10411
 
 
10412
 
 
10413
 
 
10414
 
 
10415
 
 
10416
 
 
10417
 
 
10418
 
 
10419
  echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8392
10420
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8393
10421
hardcode_action=
8394
 
if test -n "$hardcode_libdir_flag_spec" || \
8395
 
   test -n "$runpath_var" || \
 
10422
if test -n "$hardcode_libdir_flag_spec" ||
 
10423
   test -n "$runpath_var" ||
8396
10424
   test "X$hardcode_automatic" = "Xyes" ; then
8397
10425
 
8398
 
  # We can hardcode non-existant directories.
 
10426
  # We can hardcode non-existent directories.
8399
10427
  if test "$hardcode_direct" != no &&
8400
10428
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
8401
10429
     # have to relink, otherwise we might link with an installed library
8402
10430
     # when we should be linking with a yet-to-be-installed one
8403
 
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
 
10431
     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
8404
10432
     test "$hardcode_minus_L" != no; then
8405
10433
    # Linking always hardcodes the temporary library directory.
8406
10434
    hardcode_action=relink
8416
10444
echo "$as_me:$LINENO: result: $hardcode_action" >&5
8417
10445
echo "${ECHO_T}$hardcode_action" >&6
8418
10446
 
8419
 
if test "$hardcode_action" = relink; then
 
10447
if test "$hardcode_action" = relink ||
 
10448
   test "$inherit_rpath" = yes; then
8420
10449
  # Fast installation is not supported
8421
10450
  enable_fast_install=no
8422
10451
elif test "$shlibpath_overrides_runpath" = yes ||
8425
10454
  enable_fast_install=needless
8426
10455
fi
8427
10456
 
8428
 
striplib=
8429
 
old_striplib=
8430
 
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8431
 
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
8432
 
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8433
 
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8434
 
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8435
 
  echo "$as_me:$LINENO: result: yes" >&5
8436
 
echo "${ECHO_T}yes" >&6
8437
 
else
8438
 
# FIXME - insert some real tests, host_os isn't really good enough
8439
 
  case $host_os in
8440
 
   darwin*)
8441
 
       if test -n "$STRIP" ; then
8442
 
         striplib="$STRIP -x"
8443
 
         echo "$as_me:$LINENO: result: yes" >&5
8444
 
echo "${ECHO_T}yes" >&6
8445
 
       else
8446
 
  echo "$as_me:$LINENO: result: no" >&5
8447
 
echo "${ECHO_T}no" >&6
8448
 
fi
8449
 
       ;;
8450
 
   *)
8451
 
  echo "$as_me:$LINENO: result: no" >&5
8452
 
echo "${ECHO_T}no" >&6
8453
 
    ;;
8454
 
  esac
8455
 
fi
8456
 
 
8457
 
if test "x$enable_dlopen" != xyes; then
 
10457
 
 
10458
 
 
10459
 
 
10460
 
 
10461
 
 
10462
  if test "x$enable_dlopen" != xyes; then
8458
10463
  enable_dlopen=unknown
8459
10464
  enable_dlopen_self=unknown
8460
10465
  enable_dlopen_self_static=unknown
8472
10477
  mingw* | pw32*)
8473
10478
    lt_cv_dlopen="LoadLibrary"
8474
10479
    lt_cv_dlopen_libs=
8475
 
   ;;
 
10480
    ;;
8476
10481
 
8477
10482
  cygwin*)
8478
10483
    lt_cv_dlopen="dlopen"
8479
10484
    lt_cv_dlopen_libs=
8480
 
   ;;
 
10485
    ;;
8481
10486
 
8482
10487
  darwin*)
8483
10488
  # if libdl is installed we need to link against it
8554
10559
 
8555
10560
fi
8556
10561
 
8557
 
   ;;
 
10562
    ;;
8558
10563
 
8559
10564
  *)
8560
10565
    echo "$as_me:$LINENO: checking for shl_load" >&5
8713
10718
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8714
10719
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8715
10720
if test $ac_cv_lib_dld_shl_load = yes; then
8716
 
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
 
10721
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
8717
10722
else
8718
10723
  echo "$as_me:$LINENO: checking for dlopen" >&5
8719
10724
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
9003
11008
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9004
11009
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
9005
11010
if test $ac_cv_lib_dld_dld_link = yes; then
9006
 
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
 
11011
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
9007
11012
fi
9008
11013
 
9009
11014
 
9051
11056
else
9052
11057
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9053
11058
  lt_status=$lt_dlunknown
9054
 
  cat > conftest.$ac_ext <<EOF
9055
 
#line 9055 "configure"
 
11059
  cat > conftest.$ac_ext <<_LT_EOF
 
11060
#line 11060 "configure"
9056
11061
#include "confdefs.h"
9057
11062
 
9058
11063
#if HAVE_DLFCN_H
9114
11119
 
9115
11120
    exit (status);
9116
11121
}
9117
 
EOF
 
11122
_LT_EOF
9118
11123
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9119
11124
  (eval $ac_link) 2>&5
9120
11125
  ac_status=$?
9151
11156
else
9152
11157
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9153
11158
  lt_status=$lt_dlunknown
9154
 
  cat > conftest.$ac_ext <<EOF
9155
 
#line 9155 "configure"
 
11159
  cat > conftest.$ac_ext <<_LT_EOF
 
11160
#line 11160 "configure"
9156
11161
#include "confdefs.h"
9157
11162
 
9158
11163
#if HAVE_DLFCN_H
9214
11219
 
9215
11220
    exit (status);
9216
11221
}
9217
 
EOF
 
11222
_LT_EOF
9218
11223
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9219
11224
  (eval $ac_link) 2>&5
9220
11225
  ac_status=$?
9258
11263
fi
9259
11264
 
9260
11265
 
9261
 
# Report which library types will actually be built
9262
 
echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
 
11266
 
 
11267
 
 
11268
 
 
11269
 
 
11270
 
 
11271
 
 
11272
 
 
11273
 
 
11274
 
 
11275
 
 
11276
 
 
11277
 
 
11278
 
 
11279
 
 
11280
 
 
11281
striplib=
 
11282
old_striplib=
 
11283
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
 
11284
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
 
11285
if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
 
11286
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
 
11287
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
 
11288
  echo "$as_me:$LINENO: result: yes" >&5
 
11289
echo "${ECHO_T}yes" >&6
 
11290
else
 
11291
# FIXME - insert some real tests, host_os isn't really good enough
 
11292
  case $host_os in
 
11293
  darwin*)
 
11294
    if test -n "$STRIP" ; then
 
11295
      striplib="$STRIP -x"
 
11296
      old_striplib="$STRIP -S"
 
11297
      echo "$as_me:$LINENO: result: yes" >&5
 
11298
echo "${ECHO_T}yes" >&6
 
11299
    else
 
11300
      echo "$as_me:$LINENO: result: no" >&5
 
11301
echo "${ECHO_T}no" >&6
 
11302
    fi
 
11303
    ;;
 
11304
  *)
 
11305
    echo "$as_me:$LINENO: result: no" >&5
 
11306
echo "${ECHO_T}no" >&6
 
11307
    ;;
 
11308
  esac
 
11309
fi
 
11310
 
 
11311
 
 
11312
 
 
11313
 
 
11314
 
 
11315
 
 
11316
 
 
11317
 
 
11318
 
 
11319
 
 
11320
 
 
11321
 
 
11322
  # Report which library types will actually be built
 
11323
  echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9263
11324
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
9264
 
echo "$as_me:$LINENO: result: $can_build_shared" >&5
 
11325
  echo "$as_me:$LINENO: result: $can_build_shared" >&5
9265
11326
echo "${ECHO_T}$can_build_shared" >&6
9266
11327
 
9267
 
echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
 
11328
  echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9268
11329
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
9269
 
test "$can_build_shared" = "no" && enable_shared=no
9270
 
 
9271
 
# On AIX, shared libraries and static libraries use the same namespace, and
9272
 
# are all built from PIC.
9273
 
case $host_os in
9274
 
aix3*)
9275
 
  test "$enable_shared" = yes && enable_static=no
9276
 
  if test -n "$RANLIB"; then
9277
 
    archive_cmds="$archive_cmds~\$RANLIB \$lib"
9278
 
    postinstall_cmds='$RANLIB $lib'
9279
 
  fi
9280
 
  ;;
9281
 
 
9282
 
aix4* | aix5*)
9283
 
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
 
11330
  test "$can_build_shared" = "no" && enable_shared=no
 
11331
 
 
11332
  # On AIX, shared libraries and static libraries use the same namespace, and
 
11333
  # are all built from PIC.
 
11334
  case $host_os in
 
11335
  aix3*)
9284
11336
    test "$enable_shared" = yes && enable_static=no
9285
 
  fi
9286
 
    ;;
9287
 
esac
9288
 
echo "$as_me:$LINENO: result: $enable_shared" >&5
 
11337
    if test -n "$RANLIB"; then
 
11338
      archive_cmds="$archive_cmds~\$RANLIB \$lib"
 
11339
      postinstall_cmds='$RANLIB $lib'
 
11340
    fi
 
11341
    ;;
 
11342
 
 
11343
  aix[4-9]*)
 
11344
    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
 
11345
      test "$enable_shared" = yes && enable_static=no
 
11346
    fi
 
11347
    ;;
 
11348
  esac
 
11349
  echo "$as_me:$LINENO: result: $enable_shared" >&5
9289
11350
echo "${ECHO_T}$enable_shared" >&6
9290
11351
 
9291
 
echo "$as_me:$LINENO: checking whether to build static libraries" >&5
 
11352
  echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9292
11353
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9293
 
# Make sure either enable_shared or enable_static is yes.
9294
 
test "$enable_shared" = yes || enable_static=yes
9295
 
echo "$as_me:$LINENO: result: $enable_static" >&5
 
11354
  # Make sure either enable_shared or enable_static is yes.
 
11355
  test "$enable_shared" = yes || enable_static=yes
 
11356
  echo "$as_me:$LINENO: result: $enable_static" >&5
9296
11357
echo "${ECHO_T}$enable_static" >&6
9297
11358
 
9298
 
# The else clause should only fire when bootstrapping the
9299
 
# libtool distribution, otherwise you forgot to ship ltmain.sh
9300
 
# with your package, and you will get complaints that there are
9301
 
# no rules to generate ltmain.sh.
9302
 
if test -f "$ltmain"; then
9303
 
  # See if we are running on zsh, and set the options which allow our commands through
9304
 
  # without removal of \ escapes.
9305
 
  if test -n "${ZSH_VERSION+set}" ; then
9306
 
    setopt NO_GLOB_SUBST
9307
 
  fi
9308
 
  # Now quote all the things that may contain metacharacters while being
9309
 
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
9310
 
  # variables and quote the copies for generation of the libtool script.
9311
 
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
9312
 
    SED SHELL STRIP \
9313
 
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9314
 
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9315
 
    deplibs_check_method reload_flag reload_cmds need_locks \
9316
 
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9317
 
    lt_cv_sys_global_symbol_to_c_name_address \
9318
 
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9319
 
    old_postinstall_cmds old_postuninstall_cmds \
9320
 
    compiler \
9321
 
    CC \
9322
 
    LD \
9323
 
    lt_prog_compiler_wl \
9324
 
    lt_prog_compiler_pic \
9325
 
    lt_prog_compiler_static \
9326
 
    lt_prog_compiler_no_builtin_flag \
9327
 
    export_dynamic_flag_spec \
9328
 
    thread_safe_flag_spec \
9329
 
    whole_archive_flag_spec \
9330
 
    enable_shared_with_static_runtimes \
9331
 
    old_archive_cmds \
9332
 
    old_archive_from_new_cmds \
9333
 
    predep_objects \
9334
 
    postdep_objects \
9335
 
    predeps \
9336
 
    postdeps \
9337
 
    compiler_lib_search_path \
9338
 
    archive_cmds \
9339
 
    archive_expsym_cmds \
9340
 
    postinstall_cmds \
9341
 
    postuninstall_cmds \
9342
 
    old_archive_from_expsyms_cmds \
9343
 
    allow_undefined_flag \
9344
 
    no_undefined_flag \
9345
 
    export_symbols_cmds \
9346
 
    hardcode_libdir_flag_spec \
9347
 
    hardcode_libdir_flag_spec_ld \
9348
 
    hardcode_libdir_separator \
9349
 
    hardcode_automatic \
9350
 
    module_cmds \
9351
 
    module_expsym_cmds \
9352
 
    lt_cv_prog_compiler_c_o \
9353
 
    exclude_expsyms \
9354
 
    include_expsyms; do
9355
 
 
9356
 
    case $var in
9357
 
    old_archive_cmds | \
9358
 
    old_archive_from_new_cmds | \
9359
 
    archive_cmds | \
9360
 
    archive_expsym_cmds | \
9361
 
    module_cmds | \
9362
 
    module_expsym_cmds | \
9363
 
    old_archive_from_expsyms_cmds | \
9364
 
    export_symbols_cmds | \
9365
 
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
9366
 
    postinstall_cmds | postuninstall_cmds | \
9367
 
    old_postinstall_cmds | old_postuninstall_cmds | \
9368
 
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9369
 
      # Double-quote double-evaled strings.
9370
 
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9371
 
      ;;
9372
 
    *)
9373
 
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9374
 
      ;;
9375
 
    esac
9376
 
  done
9377
 
 
9378
 
  case $lt_echo in
9379
 
  *'\$0 --fallback-echo"')
9380
 
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9381
 
    ;;
9382
 
  esac
9383
 
 
9384
 
cfgfile="${ofile}T"
9385
 
  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9386
 
  $rm -f "$cfgfile"
9387
 
  { echo "$as_me:$LINENO: creating $ofile" >&5
9388
 
echo "$as_me: creating $ofile" >&6;}
9389
 
 
9390
 
  cat <<__EOF__ >> "$cfgfile"
9391
 
#! $SHELL
9392
 
 
9393
 
# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9394
 
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9395
 
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
9396
 
#
9397
 
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9398
 
# Free Software Foundation, Inc.
9399
 
#
9400
 
# This file is part of GNU Libtool:
9401
 
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9402
 
#
9403
 
# This program is free software; you can redistribute it and/or modify
9404
 
# it under the terms of the GNU General Public License as published by
9405
 
# the Free Software Foundation; either version 2 of the License, or
9406
 
# (at your option) any later version.
9407
 
#
9408
 
# This program is distributed in the hope that it will be useful, but
9409
 
# WITHOUT ANY WARRANTY; without even the implied warranty of
9410
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
9411
 
# General Public License for more details.
9412
 
#
9413
 
# You should have received a copy of the GNU General Public License
9414
 
# along with this program; if not, write to the Free Software
9415
 
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
9416
 
#
9417
 
# As a special exception to the GNU General Public License, if you
9418
 
# distribute this file as part of a program that contains a
9419
 
# configuration script generated by Autoconf, you may include it under
9420
 
# the same distribution terms that you use for the rest of that program.
9421
 
 
9422
 
# A sed program that does not truncate output.
9423
 
SED=$lt_SED
9424
 
 
9425
 
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
9426
 
Xsed="$SED -e 1s/^X//"
9427
 
 
9428
 
# The HP-UX ksh and POSIX shell print the target directory to stdout
9429
 
# if CDPATH is set.
9430
 
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9431
 
 
9432
 
# The names of the tagged configurations supported by this script.
9433
 
available_tags=
9434
 
 
9435
 
# ### BEGIN LIBTOOL CONFIG
9436
 
 
9437
 
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9438
 
 
9439
 
# Shell to use when invoking shell scripts.
9440
 
SHELL=$lt_SHELL
9441
 
 
9442
 
# Whether or not to build shared libraries.
9443
 
build_libtool_libs=$enable_shared
9444
 
 
9445
 
# Whether or not to build static libraries.
9446
 
build_old_libs=$enable_static
9447
 
 
9448
 
# Whether or not to add -lc for building shared libraries.
9449
 
build_libtool_need_lc=$archive_cmds_need_lc
9450
 
 
9451
 
# Whether or not to disallow shared libs when runtime libs are static
9452
 
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9453
 
 
9454
 
# Whether or not to optimize for fast installation.
9455
 
fast_install=$enable_fast_install
9456
 
 
9457
 
# The host system.
9458
 
host_alias=$host_alias
9459
 
host=$host
9460
 
host_os=$host_os
9461
 
 
9462
 
# The build system.
9463
 
build_alias=$build_alias
9464
 
build=$build
9465
 
build_os=$build_os
9466
 
 
9467
 
# An echo program that does not interpret backslashes.
9468
 
echo=$lt_echo
9469
 
 
9470
 
# The archiver.
9471
 
AR=$lt_AR
9472
 
AR_FLAGS=$lt_AR_FLAGS
9473
 
 
9474
 
# A C compiler.
9475
 
LTCC=$lt_LTCC
9476
 
 
9477
 
# LTCC compiler flags.
9478
 
LTCFLAGS=$lt_LTCFLAGS
9479
 
 
9480
 
# A language-specific compiler.
9481
 
CC=$lt_compiler
9482
 
 
9483
 
# Is the compiler the GNU C compiler?
9484
 
with_gcc=$GCC
9485
 
 
9486
 
# An ERE matcher.
9487
 
EGREP=$lt_EGREP
9488
 
 
9489
 
# The linker used to build libraries.
9490
 
LD=$lt_LD
9491
 
 
9492
 
# Whether we need hard or soft links.
9493
 
LN_S=$lt_LN_S
9494
 
 
9495
 
# A BSD-compatible nm program.
9496
 
NM=$lt_NM
9497
 
 
9498
 
# A symbol stripping program
9499
 
STRIP=$lt_STRIP
9500
 
 
9501
 
# Used to examine libraries when file_magic_cmd begins "file"
9502
 
MAGIC_CMD=$MAGIC_CMD
9503
 
 
9504
 
# Used on cygwin: DLL creation program.
9505
 
DLLTOOL="$DLLTOOL"
9506
 
 
9507
 
# Used on cygwin: object dumper.
9508
 
OBJDUMP="$OBJDUMP"
9509
 
 
9510
 
# Used on cygwin: assembler.
9511
 
AS="$AS"
9512
 
 
9513
 
# The name of the directory that contains temporary libtool files.
9514
 
objdir=$objdir
9515
 
 
9516
 
# How to create reloadable object files.
9517
 
reload_flag=$lt_reload_flag
9518
 
reload_cmds=$lt_reload_cmds
9519
 
 
9520
 
# How to pass a linker flag through the compiler.
9521
 
wl=$lt_lt_prog_compiler_wl
9522
 
 
9523
 
# Object file suffix (normally "o").
9524
 
objext="$ac_objext"
9525
 
 
9526
 
# Old archive suffix (normally "a").
9527
 
libext="$libext"
9528
 
 
9529
 
# Shared library suffix (normally ".so").
9530
 
shrext_cmds='$shrext_cmds'
9531
 
 
9532
 
# Executable file suffix (normally "").
9533
 
exeext="$exeext"
9534
 
 
9535
 
# Additional compiler flags for building library objects.
9536
 
pic_flag=$lt_lt_prog_compiler_pic
9537
 
pic_mode=$pic_mode
9538
 
 
9539
 
# What is the maximum length of a command?
9540
 
max_cmd_len=$lt_cv_sys_max_cmd_len
9541
 
 
9542
 
# Does compiler simultaneously support -c and -o options?
9543
 
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9544
 
 
9545
 
# Must we lock files when doing compilation?
9546
 
need_locks=$lt_need_locks
9547
 
 
9548
 
# Do we need the lib prefix for modules?
9549
 
need_lib_prefix=$need_lib_prefix
9550
 
 
9551
 
# Do we need a version for libraries?
9552
 
need_version=$need_version
9553
 
 
9554
 
# Whether dlopen is supported.
9555
 
dlopen_support=$enable_dlopen
9556
 
 
9557
 
# Whether dlopen of programs is supported.
9558
 
dlopen_self=$enable_dlopen_self
9559
 
 
9560
 
# Whether dlopen of statically linked programs is supported.
9561
 
dlopen_self_static=$enable_dlopen_self_static
9562
 
 
9563
 
# Compiler flag to prevent dynamic linking.
9564
 
link_static_flag=$lt_lt_prog_compiler_static
9565
 
 
9566
 
# Compiler flag to turn off builtin functions.
9567
 
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9568
 
 
9569
 
# Compiler flag to allow reflexive dlopens.
9570
 
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9571
 
 
9572
 
# Compiler flag to generate shared objects directly from archives.
9573
 
whole_archive_flag_spec=$lt_whole_archive_flag_spec
9574
 
 
9575
 
# Compiler flag to generate thread-safe objects.
9576
 
thread_safe_flag_spec=$lt_thread_safe_flag_spec
9577
 
 
9578
 
# Library versioning type.
9579
 
version_type=$version_type
9580
 
 
9581
 
# Format of library name prefix.
9582
 
libname_spec=$lt_libname_spec
9583
 
 
9584
 
# List of archive names.  First name is the real one, the rest are links.
9585
 
# The last name is the one that the linker finds with -lNAME.
9586
 
library_names_spec=$lt_library_names_spec
9587
 
 
9588
 
# The coded name of the library, if different from the real name.
9589
 
soname_spec=$lt_soname_spec
9590
 
 
9591
 
# Commands used to build and install an old-style archive.
9592
 
RANLIB=$lt_RANLIB
9593
 
old_archive_cmds=$lt_old_archive_cmds
9594
 
old_postinstall_cmds=$lt_old_postinstall_cmds
9595
 
old_postuninstall_cmds=$lt_old_postuninstall_cmds
9596
 
 
9597
 
# Create an old-style archive from a shared archive.
9598
 
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9599
 
 
9600
 
# Create a temporary old-style archive to link instead of a shared archive.
9601
 
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9602
 
 
9603
 
# Commands used to build and install a shared archive.
9604
 
archive_cmds=$lt_archive_cmds
9605
 
archive_expsym_cmds=$lt_archive_expsym_cmds
9606
 
postinstall_cmds=$lt_postinstall_cmds
9607
 
postuninstall_cmds=$lt_postuninstall_cmds
9608
 
 
9609
 
# Commands used to build a loadable module (assumed same as above if empty)
9610
 
module_cmds=$lt_module_cmds
9611
 
module_expsym_cmds=$lt_module_expsym_cmds
9612
 
 
9613
 
# Commands to strip libraries.
9614
 
old_striplib=$lt_old_striplib
9615
 
striplib=$lt_striplib
9616
 
 
9617
 
# Dependencies to place before the objects being linked to create a
9618
 
# shared library.
9619
 
predep_objects=$lt_predep_objects
9620
 
 
9621
 
# Dependencies to place after the objects being linked to create a
9622
 
# shared library.
9623
 
postdep_objects=$lt_postdep_objects
9624
 
 
9625
 
# Dependencies to place before the objects being linked to create a
9626
 
# shared library.
9627
 
predeps=$lt_predeps
9628
 
 
9629
 
# Dependencies to place after the objects being linked to create a
9630
 
# shared library.
9631
 
postdeps=$lt_postdeps
9632
 
 
9633
 
# The library search path used internally by the compiler when linking
9634
 
# a shared library.
9635
 
compiler_lib_search_path=$lt_compiler_lib_search_path
9636
 
 
9637
 
# Method to check whether dependent libraries are shared objects.
9638
 
deplibs_check_method=$lt_deplibs_check_method
9639
 
 
9640
 
# Command to use when deplibs_check_method == file_magic.
9641
 
file_magic_cmd=$lt_file_magic_cmd
9642
 
 
9643
 
# Flag that allows shared libraries with undefined symbols to be built.
9644
 
allow_undefined_flag=$lt_allow_undefined_flag
9645
 
 
9646
 
# Flag that forces no undefined symbols.
9647
 
no_undefined_flag=$lt_no_undefined_flag
9648
 
 
9649
 
# Commands used to finish a libtool library installation in a directory.
9650
 
finish_cmds=$lt_finish_cmds
9651
 
 
9652
 
# Same as above, but a single script fragment to be evaled but not shown.
9653
 
finish_eval=$lt_finish_eval
9654
 
 
9655
 
# Take the output of nm and produce a listing of raw symbols and C names.
9656
 
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9657
 
 
9658
 
# Transform the output of nm in a proper C declaration
9659
 
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9660
 
 
9661
 
# Transform the output of nm in a C name address pair
9662
 
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9663
 
 
9664
 
# This is the shared library runtime path variable.
9665
 
runpath_var=$runpath_var
9666
 
 
9667
 
# This is the shared library path variable.
9668
 
shlibpath_var=$shlibpath_var
9669
 
 
9670
 
# Is shlibpath searched before the hard-coded library search path?
9671
 
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9672
 
 
9673
 
# How to hardcode a shared library path into an executable.
9674
 
hardcode_action=$hardcode_action
9675
 
 
9676
 
# Whether we should hardcode library paths into libraries.
9677
 
hardcode_into_libs=$hardcode_into_libs
9678
 
 
9679
 
# Flag to hardcode \$libdir into a binary during linking.
9680
 
# This must work even if \$libdir does not exist.
9681
 
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9682
 
 
9683
 
# If ld is used when linking, flag to hardcode \$libdir into
9684
 
# a binary during linking. This must work even if \$libdir does
9685
 
# not exist.
9686
 
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9687
 
 
9688
 
# Whether we need a single -rpath flag with a separated argument.
9689
 
hardcode_libdir_separator=$lt_hardcode_libdir_separator
9690
 
 
9691
 
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9692
 
# resulting binary.
9693
 
hardcode_direct=$hardcode_direct
9694
 
 
9695
 
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9696
 
# resulting binary.
9697
 
hardcode_minus_L=$hardcode_minus_L
9698
 
 
9699
 
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9700
 
# the resulting binary.
9701
 
hardcode_shlibpath_var=$hardcode_shlibpath_var
9702
 
 
9703
 
# Set to yes if building a shared library automatically hardcodes DIR into the library
9704
 
# and all subsequent libraries and executables linked against it.
9705
 
hardcode_automatic=$hardcode_automatic
9706
 
 
9707
 
# Variables whose values should be saved in libtool wrapper scripts and
9708
 
# restored at relink time.
9709
 
variables_saved_for_relink="$variables_saved_for_relink"
9710
 
 
9711
 
# Whether libtool must link a program against all its dependency libraries.
9712
 
link_all_deplibs=$link_all_deplibs
9713
 
 
9714
 
# Compile-time system search path for libraries
9715
 
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9716
 
 
9717
 
# Run-time system search path for libraries
9718
 
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9719
 
 
9720
 
# Fix the shell variable \$srcfile for the compiler.
9721
 
fix_srcfile_path="$fix_srcfile_path"
9722
 
 
9723
 
# Set to yes if exported symbols are required.
9724
 
always_export_symbols=$always_export_symbols
9725
 
 
9726
 
# The commands to list exported symbols.
9727
 
export_symbols_cmds=$lt_export_symbols_cmds
9728
 
 
9729
 
# The commands to extract the exported symbol list from a shared archive.
9730
 
extract_expsyms_cmds=$lt_extract_expsyms_cmds
9731
 
 
9732
 
# Symbols that should not be listed in the preloaded symbols.
9733
 
exclude_expsyms=$lt_exclude_expsyms
9734
 
 
9735
 
# Symbols that must always be exported.
9736
 
include_expsyms=$lt_include_expsyms
9737
 
 
9738
 
# ### END LIBTOOL CONFIG
9739
 
 
9740
 
__EOF__
9741
 
 
9742
 
 
9743
 
  case $host_os in
9744
 
  aix3*)
9745
 
    cat <<\EOF >> "$cfgfile"
9746
 
 
9747
 
# AIX sometimes has problems with the GCC collect2 program.  For some
9748
 
# reason, if we set the COLLECT_NAMES environment variable, the problems
9749
 
# vanish in a puff of smoke.
9750
 
if test "X${COLLECT_NAMES+set}" != Xset; then
9751
 
  COLLECT_NAMES=
9752
 
  export COLLECT_NAMES
9753
 
fi
9754
 
EOF
9755
 
    ;;
9756
 
  esac
9757
 
 
9758
 
  # We use sed instead of cat because bash on DJGPP gets confused if
9759
 
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
9760
 
  # text mode, it properly converts lines to CR/LF.  This bash problem
9761
 
  # is reportedly fixed, but why not run on old versions too?
9762
 
  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9763
 
 
9764
 
  mv -f "$cfgfile" "$ofile" || \
9765
 
    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9766
 
  chmod +x "$ofile"
9767
 
 
9768
 
else
9769
 
  # If there is no Makefile yet, we rely on a make rule to execute
9770
 
  # `config.status --recheck' to rerun these tests and create the
9771
 
  # libtool script then.
9772
 
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
9773
 
  if test -f "$ltmain_in"; then
9774
 
    test -f Makefile && make "$ltmain"
9775
 
  fi
9776
 
fi
9777
 
 
9778
 
 
 
11359
 
 
11360
 
 
11361
 
 
11362
fi
9779
11363
ac_ext=c
9780
11364
ac_cpp='$CPP $CPPFLAGS'
9781
11365
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9785
11369
CC="$lt_save_CC"
9786
11370
 
9787
11371
 
9788
 
# Check whether --with-tags or --without-tags was given.
9789
 
if test "${with_tags+set}" = set; then
9790
 
  withval="$with_tags"
9791
 
  tagnames="$withval"
9792
 
fi;
9793
 
 
9794
 
if test -f "$ltmain" && test -n "$tagnames"; then
9795
 
  if test ! -f "${ofile}"; then
9796
 
    { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9797
 
echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9798
 
  fi
9799
 
 
9800
 
  if test -z "$LTCC"; then
9801
 
    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9802
 
    if test -z "$LTCC"; then
9803
 
      { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9804
 
echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9805
 
    else
9806
 
      { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9807
 
echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9808
 
    fi
9809
 
  fi
9810
 
  if test -z "$LTCFLAGS"; then
9811
 
    eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
9812
 
  fi
9813
 
 
9814
 
  # Extract list of available tagged configurations in $ofile.
9815
 
  # Note that this assumes the entire list is on one line.
9816
 
  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9817
 
 
9818
 
  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9819
 
  for tagname in $tagnames; do
9820
 
    IFS="$lt_save_ifs"
9821
 
    # Check whether tagname contains only valid characters
9822
 
    case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9823
 
    "") ;;
9824
 
    *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9825
 
echo "$as_me: error: invalid tag name: $tagname" >&2;}
9826
 
   { (exit 1); exit 1; }; }
9827
 
        ;;
9828
 
    esac
9829
 
 
9830
 
    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9831
 
    then
9832
 
      { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9833
 
echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9834
 
   { (exit 1); exit 1; }; }
9835
 
    fi
9836
 
 
9837
 
    # Update the list of available tags.
9838
 
    if test -n "$tagname"; then
9839
 
      echo appending configuration tag \"$tagname\" to $ofile
9840
 
 
9841
 
      case $tagname in
9842
 
      CXX)
9843
 
        if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
9844
 
            ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
9845
 
            (test "X$CXX" != "Xg++"))) ; then
9846
 
          ac_ext=cc
 
11372
ac_ext=cc
9847
11373
ac_cpp='$CXXCPP $CPPFLAGS'
9848
11374
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9849
11375
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9850
11376
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9851
11377
 
9852
 
 
9853
 
 
9854
 
 
9855
11378
archive_cmds_need_lc_CXX=no
9856
11379
allow_undefined_flag_CXX=
9857
11380
always_export_symbols_CXX=no
9858
11381
archive_expsym_cmds_CXX=
 
11382
compiler_needs_object_CXX=no
9859
11383
export_dynamic_flag_spec_CXX=
9860
11384
hardcode_direct_CXX=no
 
11385
hardcode_direct_absolute_CXX=no
9861
11386
hardcode_libdir_flag_spec_CXX=
9862
11387
hardcode_libdir_flag_spec_ld_CXX=
9863
11388
hardcode_libdir_separator_CXX=
9864
11389
hardcode_minus_L_CXX=no
9865
11390
hardcode_shlibpath_var_CXX=unsupported
9866
11391
hardcode_automatic_CXX=no
 
11392
inherit_rpath_CXX=no
9867
11393
module_cmds_CXX=
9868
11394
module_expsym_cmds_CXX=
9869
11395
link_all_deplibs_CXX=unknown
9872
11398
whole_archive_flag_spec_CXX=
9873
11399
enable_shared_with_static_runtimes_CXX=no
9874
11400
 
9875
 
# Dependencies to place before and after the object being linked:
9876
 
predep_objects_CXX=
9877
 
postdep_objects_CXX=
9878
 
predeps_CXX=
9879
 
postdeps_CXX=
9880
 
compiler_lib_search_path_CXX=
9881
 
 
9882
11401
# Source file extension for C++ test sources.
9883
11402
ac_ext=cpp
9884
11403
 
9886
11405
objext=o
9887
11406
objext_CXX=$objext
9888
11407
 
9889
 
# Code to be used in simple compile tests
9890
 
lt_simple_compile_test_code="int some_variable = 0;\n"
9891
 
 
9892
 
# Code to be used in simple link tests
9893
 
lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
9894
 
 
9895
 
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
11408
# No sense in running all these tests if we already determined that
 
11409
# the CXX compiler isn't working.  Some variables (like enable_shared)
 
11410
# are currently assumed to apply to all compilers on this platform,
 
11411
# and will be corrupted by setting them based on a non-working compiler.
 
11412
if test "$_lt_caught_CXX_error" != yes; then
 
11413
  # Code to be used in simple compile tests
 
11414
  lt_simple_compile_test_code="int some_variable = 0;"
 
11415
 
 
11416
  # Code to be used in simple link tests
 
11417
  lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
 
11418
 
 
11419
  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
11420
 
 
11421
 
 
11422
 
 
11423
 
 
11424
 
9896
11425
 
9897
11426
# If no C compiler was specified, use CC.
9898
11427
LTCC=${LTCC-"$CC"}
9904
11433
compiler=$CC
9905
11434
 
9906
11435
 
9907
 
# save warnings/boilerplate of simple test code
9908
 
ac_outfile=conftest.$ac_objext
9909
 
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
 
11436
  # save warnings/boilerplate of simple test code
 
11437
  ac_outfile=conftest.$ac_objext
 
11438
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9910
11439
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9911
11440
_lt_compiler_boilerplate=`cat conftest.err`
9912
 
$rm conftest*
 
11441
$RM conftest*
9913
11442
 
9914
 
ac_outfile=conftest.$ac_objext
9915
 
printf "$lt_simple_link_test_code" >conftest.$ac_ext
 
11443
  ac_outfile=conftest.$ac_objext
 
11444
echo "$lt_simple_link_test_code" >conftest.$ac_ext
9916
11445
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9917
11446
_lt_linker_boilerplate=`cat conftest.err`
9918
 
$rm conftest*
9919
 
 
9920
 
 
9921
 
# Allow CC to be a program name with arguments.
9922
 
lt_save_CC=$CC
9923
 
lt_save_LD=$LD
9924
 
lt_save_GCC=$GCC
9925
 
GCC=$GXX
9926
 
lt_save_with_gnu_ld=$with_gnu_ld
9927
 
lt_save_path_LD=$lt_cv_path_LD
9928
 
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9929
 
  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9930
 
else
9931
 
  $as_unset lt_cv_prog_gnu_ld
9932
 
fi
9933
 
if test -n "${lt_cv_path_LDCXX+set}"; then
9934
 
  lt_cv_path_LD=$lt_cv_path_LDCXX
9935
 
else
9936
 
  $as_unset lt_cv_path_LD
9937
 
fi
9938
 
test -z "${LDCXX+set}" || LD=$LDCXX
9939
 
CC=${CXX-"c++"}
9940
 
compiler=$CC
9941
 
compiler_CXX=$CC
9942
 
for cc_temp in $compiler""; do
 
11447
$RM -r conftest*
 
11448
 
 
11449
 
 
11450
  # Allow CC to be a program name with arguments.
 
11451
  lt_save_CC=$CC
 
11452
  lt_save_LD=$LD
 
11453
  lt_save_GCC=$GCC
 
11454
  GCC=$GXX
 
11455
  lt_save_with_gnu_ld=$with_gnu_ld
 
11456
  lt_save_path_LD=$lt_cv_path_LD
 
11457
  if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
 
11458
    lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
 
11459
  else
 
11460
    $as_unset lt_cv_prog_gnu_ld
 
11461
  fi
 
11462
  if test -n "${lt_cv_path_LDCXX+set}"; then
 
11463
    lt_cv_path_LD=$lt_cv_path_LDCXX
 
11464
  else
 
11465
    $as_unset lt_cv_path_LD
 
11466
  fi
 
11467
  test -z "${LDCXX+set}" || LD=$LDCXX
 
11468
  CC=${CXX-"c++"}
 
11469
  compiler=$CC
 
11470
  compiler_CXX=$CC
 
11471
  for cc_temp in $compiler""; do
9943
11472
  case $cc_temp in
9944
11473
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9945
11474
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9947
11476
    *) break;;
9948
11477
  esac
9949
11478
done
9950
 
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9951
 
 
9952
 
 
9953
 
# We don't want -fno-exception wen compiling C++ code, so set the
9954
 
# no_builtin_flag separately
9955
 
if test "$GXX" = yes; then
9956
 
  lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9957
 
else
9958
 
  lt_prog_compiler_no_builtin_flag_CXX=
9959
 
fi
9960
 
 
9961
 
if test "$GXX" = yes; then
9962
 
  # Set up default GNU C++ configuration
 
11479
cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
11480
 
 
11481
 
 
11482
  if test -n "$compiler"; then
 
11483
    # We don't want -fno-exception when compiling C++ code, so set the
 
11484
    # no_builtin_flag separately
 
11485
    if test "$GXX" = yes; then
 
11486
      lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
 
11487
    else
 
11488
      lt_prog_compiler_no_builtin_flag_CXX=
 
11489
    fi
 
11490
 
 
11491
    if test "$GXX" = yes; then
 
11492
      # Set up default GNU C++ configuration
 
11493
 
9963
11494
 
9964
11495
 
9965
11496
# Check whether --with-gnu-ld or --without-gnu-ld was given.
9986
11517
    [\\/]* | ?:[\\/]*)
9987
11518
      re_direlt='/[^/][^/]*/\.\./'
9988
11519
      # Canonicalize the pathname of ld
9989
 
      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9990
 
      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9991
 
        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
 
11520
      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
 
11521
      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
 
11522
        ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
9992
11523
      done
9993
11524
      test -z "$LD" && LD="$ac_prog"
9994
11525
      ;;
10069
11600
 
10070
11601
 
10071
11602
 
10072
 
  # Check if GNU C++ uses GNU ld as the underlying linker, since the
10073
 
  # archiving commands below assume that GNU ld is being used.
10074
 
  if test "$with_gnu_ld" = yes; then
10075
 
    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10076
 
    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'
10077
 
 
10078
 
    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10079
 
    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10080
 
 
10081
 
    # If archive_cmds runs LD, not CC, wlarc should be empty
10082
 
    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10083
 
    #     investigate it a little bit more. (MM)
10084
 
    wlarc='${wl}'
10085
 
 
10086
 
    # ancient GNU ld didn't support --whole-archive et. al.
10087
 
    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10088
 
        grep 'no-whole-archive' > /dev/null; then
10089
 
      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10090
 
    else
10091
 
      whole_archive_flag_spec_CXX=
10092
 
    fi
10093
 
  else
10094
 
    with_gnu_ld=no
10095
 
    wlarc=
10096
 
 
10097
 
    # A generic and very simple default shared library creation
10098
 
    # command for GNU C++ for the case where it uses the native
10099
 
    # linker, instead of GNU ld.  If possible, this setting should
10100
 
    # overridden to take advantage of the native linker features on
10101
 
    # the platform it is being used on.
10102
 
    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10103
 
  fi
10104
 
 
10105
 
  # Commands to make compiler produce verbose output that lists
10106
 
  # what "hidden" libraries, object files and flags are used when
10107
 
  # linking a shared library.
10108
 
  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10109
 
 
10110
 
else
10111
 
  GXX=no
10112
 
  with_gnu_ld=no
10113
 
  wlarc=
10114
 
fi
10115
 
 
10116
 
# PORTME: fill in a description of your system's C++ link characteristics
10117
 
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10118
 
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10119
 
ld_shlibs_CXX=yes
10120
 
case $host_os in
10121
 
  aix3*)
10122
 
    # FIXME: insert proper C++ library support
10123
 
    ld_shlibs_CXX=no
10124
 
    ;;
10125
 
  aix4* | aix5*)
10126
 
    if test "$host_cpu" = ia64; then
10127
 
      # On IA64, the linker does run time linking by default, so we don't
10128
 
      # have to do anything special.
10129
 
      aix_use_runtimelinking=no
10130
 
      exp_sym_flag='-Bexport'
10131
 
      no_entry_flag=""
10132
 
    else
10133
 
      aix_use_runtimelinking=no
10134
 
 
10135
 
      # Test if we are trying to use run time linking or normal
10136
 
      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10137
 
      # need to do runtime linking.
10138
 
      case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10139
 
        for ld_flag in $LDFLAGS; do
10140
 
          case $ld_flag in
10141
 
          *-brtl*)
10142
 
            aix_use_runtimelinking=yes
10143
 
            break
10144
 
            ;;
10145
 
          esac
10146
 
        done
10147
 
        ;;
10148
 
      esac
10149
 
 
10150
 
      exp_sym_flag='-bexport'
10151
 
      no_entry_flag='-bnoentry'
10152
 
    fi
10153
 
 
10154
 
    # When large executables or shared objects are built, AIX ld can
10155
 
    # have problems creating the table of contents.  If linking a library
10156
 
    # or program results in "error TOC overflow" add -mminimal-toc to
10157
 
    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10158
 
    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10159
 
 
10160
 
    archive_cmds_CXX=''
10161
 
    hardcode_direct_CXX=yes
10162
 
    hardcode_libdir_separator_CXX=':'
10163
 
    link_all_deplibs_CXX=yes
10164
 
 
10165
 
    if test "$GXX" = yes; then
10166
 
      case $host_os in aix4.[012]|aix4.[012].*)
10167
 
      # We only want to do this on AIX 4.2 and lower, the check
10168
 
      # below for broken collect2 doesn't work under 4.3+
10169
 
        collect2name=`${CC} -print-prog-name=collect2`
10170
 
        if test -f "$collect2name" && \
10171
 
           strings "$collect2name" | grep resolve_lib_name >/dev/null
10172
 
        then
10173
 
          # We have reworked collect2
10174
 
          hardcode_direct_CXX=yes
10175
 
        else
10176
 
          # We have old collect2
10177
 
          hardcode_direct_CXX=unsupported
10178
 
          # It fails to find uninstalled libraries when the uninstalled
10179
 
          # path is not listed in the libpath.  Setting hardcode_minus_L
10180
 
          # to unsupported forces relinking
10181
 
          hardcode_minus_L_CXX=yes
10182
 
          hardcode_libdir_flag_spec_CXX='-L$libdir'
10183
 
          hardcode_libdir_separator_CXX=
10184
 
        fi
10185
 
        ;;
10186
 
      esac
10187
 
      shared_flag='-shared'
10188
 
      if test "$aix_use_runtimelinking" = yes; then
10189
 
        shared_flag="$shared_flag "'${wl}-G'
10190
 
      fi
10191
 
    else
10192
 
      # not using gcc
10193
 
      if test "$host_cpu" = ia64; then
10194
 
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10195
 
        # chokes on -Wl,-G. The following line is correct:
10196
 
        shared_flag='-G'
10197
 
      else
10198
 
        if test "$aix_use_runtimelinking" = yes; then
10199
 
          shared_flag='${wl}-G'
10200
 
        else
10201
 
          shared_flag='${wl}-bM:SRE'
10202
 
        fi
10203
 
      fi
10204
 
    fi
10205
 
 
10206
 
    # It seems that -bexpall does not export symbols beginning with
10207
 
    # underscore (_), so it is better to generate a list of symbols to export.
10208
 
    always_export_symbols_CXX=yes
10209
 
    if test "$aix_use_runtimelinking" = yes; then
10210
 
      # Warning - without using the other runtime loading flags (-brtl),
10211
 
      # -berok will link without error, but may produce a broken library.
10212
 
      allow_undefined_flag_CXX='-berok'
10213
 
      # Determine the default libpath from the value encoded in an empty executable.
10214
 
      cat >conftest.$ac_ext <<_ACEOF
10215
 
/* confdefs.h.  */
10216
 
_ACEOF
10217
 
cat confdefs.h >>conftest.$ac_ext
10218
 
cat >>conftest.$ac_ext <<_ACEOF
10219
 
/* end confdefs.h.  */
10220
 
 
10221
 
int
10222
 
main ()
10223
 
{
10224
 
 
10225
 
  ;
10226
 
  return 0;
10227
 
}
10228
 
_ACEOF
10229
 
rm -f conftest.$ac_objext conftest$ac_exeext
10230
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10231
 
  (eval $ac_link) 2>conftest.er1
10232
 
  ac_status=$?
10233
 
  grep -v '^ *+' conftest.er1 >conftest.err
10234
 
  rm -f conftest.er1
10235
 
  cat conftest.err >&5
10236
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10237
 
  (exit $ac_status); } &&
10238
 
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
10239
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10240
 
  (eval $ac_try) 2>&5
10241
 
  ac_status=$?
10242
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10243
 
  (exit $ac_status); }; } &&
10244
 
         { ac_try='test -s conftest$ac_exeext'
10245
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10246
 
  (eval $ac_try) 2>&5
10247
 
  ac_status=$?
10248
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10249
 
  (exit $ac_status); }; }; then
10250
 
 
10251
 
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10252
 
}'`
10253
 
# Check for a 64-bit object if we didn't find anything.
10254
 
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; }
10255
 
}'`; fi
10256
 
else
10257
 
  echo "$as_me: failed program was:" >&5
10258
 
sed 's/^/| /' conftest.$ac_ext >&5
10259
 
 
10260
 
fi
10261
 
rm -f conftest.err conftest.$ac_objext \
10262
 
      conftest$ac_exeext conftest.$ac_ext
10263
 
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10264
 
 
10265
 
      hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10266
 
 
10267
 
      archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
10268
 
     else
10269
 
      if test "$host_cpu" = ia64; then
10270
 
        hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10271
 
        allow_undefined_flag_CXX="-z nodefs"
10272
 
        archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
10273
 
      else
10274
 
        # Determine the default libpath from the value encoded in an empty executable.
10275
 
        cat >conftest.$ac_ext <<_ACEOF
10276
 
/* confdefs.h.  */
10277
 
_ACEOF
10278
 
cat confdefs.h >>conftest.$ac_ext
10279
 
cat >>conftest.$ac_ext <<_ACEOF
10280
 
/* end confdefs.h.  */
10281
 
 
10282
 
int
10283
 
main ()
10284
 
{
10285
 
 
10286
 
  ;
10287
 
  return 0;
10288
 
}
10289
 
_ACEOF
10290
 
rm -f conftest.$ac_objext conftest$ac_exeext
10291
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10292
 
  (eval $ac_link) 2>conftest.er1
10293
 
  ac_status=$?
10294
 
  grep -v '^ *+' conftest.er1 >conftest.err
10295
 
  rm -f conftest.er1
10296
 
  cat conftest.err >&5
10297
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10298
 
  (exit $ac_status); } &&
10299
 
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
10300
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10301
 
  (eval $ac_try) 2>&5
10302
 
  ac_status=$?
10303
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10304
 
  (exit $ac_status); }; } &&
10305
 
         { ac_try='test -s conftest$ac_exeext'
10306
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10307
 
  (eval $ac_try) 2>&5
10308
 
  ac_status=$?
10309
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10310
 
  (exit $ac_status); }; }; then
10311
 
 
10312
 
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10313
 
}'`
10314
 
# Check for a 64-bit object if we didn't find anything.
10315
 
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; }
10316
 
}'`; fi
10317
 
else
10318
 
  echo "$as_me: failed program was:" >&5
10319
 
sed 's/^/| /' conftest.$ac_ext >&5
10320
 
 
10321
 
fi
10322
 
rm -f conftest.err conftest.$ac_objext \
10323
 
      conftest$ac_exeext conftest.$ac_ext
10324
 
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10325
 
 
10326
 
        hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10327
 
        # Warning - without using the other run time loading flags,
10328
 
        # -berok will link without error, but may produce a broken library.
10329
 
        no_undefined_flag_CXX=' ${wl}-bernotok'
10330
 
        allow_undefined_flag_CXX=' ${wl}-berok'
10331
 
        # Exported symbols can be pulled into shared objects from archives
10332
 
        whole_archive_flag_spec_CXX='$convenience'
10333
 
        archive_cmds_need_lc_CXX=yes
10334
 
        # This is similar to how AIX traditionally builds its shared libraries.
10335
 
        archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
10336
 
      fi
10337
 
    fi
10338
 
    ;;
10339
 
 
10340
 
  beos*)
10341
 
    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10342
 
      allow_undefined_flag_CXX=unsupported
10343
 
      # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10344
 
      # support --undefined.  This deserves some investigation.  FIXME
10345
 
      archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10346
 
    else
10347
 
      ld_shlibs_CXX=no
10348
 
    fi
10349
 
    ;;
10350
 
 
10351
 
  chorus*)
10352
 
    case $cc_basename in
10353
 
      *)
10354
 
        # FIXME: insert proper C++ library support
10355
 
        ld_shlibs_CXX=no
10356
 
        ;;
10357
 
    esac
10358
 
    ;;
10359
 
 
10360
 
  cygwin* | mingw* | pw32*)
10361
 
    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10362
 
    # as there is no search path for DLLs.
10363
 
    hardcode_libdir_flag_spec_CXX='-L$libdir'
10364
 
    allow_undefined_flag_CXX=unsupported
10365
 
    always_export_symbols_CXX=no
10366
 
    enable_shared_with_static_runtimes_CXX=yes
10367
 
 
10368
 
    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10369
 
      archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10370
 
      # If the export-symbols file already is a .def file (1st line
10371
 
      # is EXPORTS), use it as is; otherwise, prepend...
10372
 
      archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10373
 
        cp $export_symbols $output_objdir/$soname.def;
10374
 
      else
10375
 
        echo EXPORTS > $output_objdir/$soname.def;
10376
 
        cat $export_symbols >> $output_objdir/$soname.def;
10377
 
      fi~
10378
 
      $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10379
 
    else
10380
 
      ld_shlibs_CXX=no
10381
 
    fi
10382
 
  ;;
10383
 
      darwin* | rhapsody*)
10384
 
        case $host_os in
10385
 
        rhapsody* | darwin1.[012])
10386
 
         allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
10387
 
         ;;
10388
 
       *) # Darwin 1.3 on
10389
 
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10390
 
           allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10391
 
         else
10392
 
           case ${MACOSX_DEPLOYMENT_TARGET} in
10393
 
             10.[012])
10394
 
               allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10395
 
               ;;
10396
 
             10.*)
10397
 
               allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
10398
 
               ;;
10399
 
           esac
10400
 
         fi
10401
 
         ;;
10402
 
        esac
10403
 
      archive_cmds_need_lc_CXX=no
10404
 
      hardcode_direct_CXX=no
10405
 
      hardcode_automatic_CXX=yes
10406
 
      hardcode_shlibpath_var_CXX=unsupported
10407
 
      whole_archive_flag_spec_CXX=''
10408
 
      link_all_deplibs_CXX=yes
10409
 
 
10410
 
    if test "$GXX" = yes ; then
10411
 
      lt_int_apple_cc_single_mod=no
10412
 
      output_verbose_link_cmd='echo'
10413
 
      if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
10414
 
       lt_int_apple_cc_single_mod=yes
10415
 
      fi
10416
 
      if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10417
 
       archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10418
 
      else
10419
 
          archive_cmds_CXX='$CC -r -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'
 
11603
 
 
11604
 
 
11605
 
 
11606
 
 
11607
      # Check if GNU C++ uses GNU ld as the underlying linker, since the
 
11608
      # archiving commands below assume that GNU ld is being used.
 
11609
      if test "$with_gnu_ld" = yes; then
 
11610
        archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
11611
        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'
 
11612
 
 
11613
        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
11614
        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
11615
 
 
11616
        # If archive_cmds runs LD, not CC, wlarc should be empty
 
11617
        # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
 
11618
        #     investigate it a little bit more. (MM)
 
11619
        wlarc='${wl}'
 
11620
 
 
11621
        # ancient GNU ld didn't support --whole-archive et. al.
 
11622
        if eval "`$CC -print-prog-name=ld` --help 2>&1" |
 
11623
          $GREP 'no-whole-archive' > /dev/null; then
 
11624
          whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
11625
        else
 
11626
          whole_archive_flag_spec_CXX=
10420
11627
        fi
10421
 
        module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10422
 
        # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10423
 
          if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10424
 
            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}'
10425
 
          else
10426
 
            archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -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}'
10427
 
          fi
10428
 
            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}'
10429
11628
      else
10430
 
      case $cc_basename in
10431
 
        xlc*)
10432
 
         output_verbose_link_cmd='echo'
10433
 
          archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
10434
 
          module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10435
 
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10436
 
          archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10437
 
          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}'
10438
 
          ;;
10439
 
       *)
10440
 
         ld_shlibs_CXX=no
10441
 
          ;;
10442
 
      esac
 
11629
        with_gnu_ld=no
 
11630
        wlarc=
 
11631
 
 
11632
        # A generic and very simple default shared library creation
 
11633
        # command for GNU C++ for the case where it uses the native
 
11634
        # linker, instead of GNU ld.  If possible, this setting should
 
11635
        # overridden to take advantage of the native linker features on
 
11636
        # the platform it is being used on.
 
11637
        archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10443
11638
      fi
10444
 
        ;;
10445
 
 
10446
 
  dgux*)
10447
 
    case $cc_basename in
10448
 
      ec++*)
10449
 
        # FIXME: insert proper C++ library support
10450
 
        ld_shlibs_CXX=no
10451
 
        ;;
10452
 
      ghcx*)
10453
 
        # Green Hills C++ Compiler
10454
 
        # FIXME: insert proper C++ library support
10455
 
        ld_shlibs_CXX=no
10456
 
        ;;
10457
 
      *)
10458
 
        # FIXME: insert proper C++ library support
10459
 
        ld_shlibs_CXX=no
10460
 
        ;;
10461
 
    esac
10462
 
    ;;
10463
 
  freebsd[12]*)
10464
 
    # C++ shared libraries reported to be fairly broken before switch to ELF
10465
 
    ld_shlibs_CXX=no
10466
 
    ;;
10467
 
  freebsd-elf*)
10468
 
    archive_cmds_need_lc_CXX=no
10469
 
    ;;
10470
 
  freebsd* | kfreebsd*-gnu | dragonfly*)
10471
 
    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10472
 
    # conventions
10473
 
    ld_shlibs_CXX=yes
10474
 
    ;;
10475
 
  gnu*)
10476
 
    ;;
10477
 
  hpux9*)
10478
 
    hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10479
 
    hardcode_libdir_separator_CXX=:
10480
 
    export_dynamic_flag_spec_CXX='${wl}-E'
10481
 
    hardcode_direct_CXX=yes
10482
 
    hardcode_minus_L_CXX=yes # Not in the search PATH,
10483
 
                                # but as the default
10484
 
                                # location of the library.
10485
 
 
10486
 
    case $cc_basename in
10487
 
    CC*)
10488
 
      # FIXME: insert proper C++ library support
10489
 
      ld_shlibs_CXX=no
10490
 
      ;;
10491
 
    aCC*)
10492
 
      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'
 
11639
 
10493
11640
      # Commands to make compiler produce verbose output that lists
10494
11641
      # what "hidden" libraries, object files and flags are used when
10495
11642
      # linking a shared library.
10496
 
      #
10497
 
      # There doesn't appear to be a way to prevent this compiler from
10498
 
      # explicitly linking system object files so we need to strip them
10499
 
      # from the output so that they don't get included in the library
10500
 
      # dependencies.
10501
 
      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'
10502
 
      ;;
10503
 
    *)
10504
 
      if test "$GXX" = yes; then
10505
 
        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'
10506
 
      else
 
11643
      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
 
11644
 
 
11645
    else
 
11646
      GXX=no
 
11647
      with_gnu_ld=no
 
11648
      wlarc=
 
11649
    fi
 
11650
 
 
11651
    # PORTME: fill in a description of your system's C++ link characteristics
 
11652
    echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
11653
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
 
11654
    ld_shlibs_CXX=yes
 
11655
    case $host_os in
 
11656
      aix3*)
10507
11657
        # FIXME: insert proper C++ library support
10508
11658
        ld_shlibs_CXX=no
10509
 
      fi
10510
 
      ;;
10511
 
    esac
10512
 
    ;;
10513
 
  hpux10*|hpux11*)
10514
 
    if test $with_gnu_ld = no; then
10515
 
      hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10516
 
      hardcode_libdir_separator_CXX=:
10517
 
 
10518
 
      case $host_cpu in
10519
 
      hppa*64*|ia64*)
10520
 
        hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10521
 
        ;;
10522
 
      *)
 
11659
        ;;
 
11660
      aix[4-9]*)
 
11661
        if test "$host_cpu" = ia64; then
 
11662
          # On IA64, the linker does run time linking by default, so we don't
 
11663
          # have to do anything special.
 
11664
          aix_use_runtimelinking=no
 
11665
          exp_sym_flag='-Bexport'
 
11666
          no_entry_flag=""
 
11667
        else
 
11668
          aix_use_runtimelinking=no
 
11669
 
 
11670
          # Test if we are trying to use run time linking or normal
 
11671
          # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
11672
          # need to do runtime linking.
 
11673
          case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
 
11674
            for ld_flag in $LDFLAGS; do
 
11675
              case $ld_flag in
 
11676
              *-brtl*)
 
11677
                aix_use_runtimelinking=yes
 
11678
                break
 
11679
                ;;
 
11680
              esac
 
11681
            done
 
11682
            ;;
 
11683
          esac
 
11684
 
 
11685
          exp_sym_flag='-bexport'
 
11686
          no_entry_flag='-bnoentry'
 
11687
        fi
 
11688
 
 
11689
        # When large executables or shared objects are built, AIX ld can
 
11690
        # have problems creating the table of contents.  If linking a library
 
11691
        # or program results in "error TOC overflow" add -mminimal-toc to
 
11692
        # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
11693
        # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
11694
 
 
11695
        archive_cmds_CXX=''
 
11696
        hardcode_direct_CXX=yes
 
11697
        hardcode_direct_absolute_CXX=yes
 
11698
        hardcode_libdir_separator_CXX=':'
 
11699
        link_all_deplibs_CXX=yes
 
11700
        file_list_spec_CXX='${wl}-f,'
 
11701
 
 
11702
        if test "$GXX" = yes; then
 
11703
          case $host_os in aix4.[012]|aix4.[012].*)
 
11704
          # We only want to do this on AIX 4.2 and lower, the check
 
11705
          # below for broken collect2 doesn't work under 4.3+
 
11706
          collect2name=`${CC} -print-prog-name=collect2`
 
11707
          if test -f "$collect2name" &&
 
11708
             strings "$collect2name" | $GREP resolve_lib_name >/dev/null
 
11709
          then
 
11710
            # We have reworked collect2
 
11711
            :
 
11712
          else
 
11713
            # We have old collect2
 
11714
            hardcode_direct_CXX=unsupported
 
11715
            # It fails to find uninstalled libraries when the uninstalled
 
11716
            # path is not listed in the libpath.  Setting hardcode_minus_L
 
11717
            # to unsupported forces relinking
 
11718
            hardcode_minus_L_CXX=yes
 
11719
            hardcode_libdir_flag_spec_CXX='-L$libdir'
 
11720
            hardcode_libdir_separator_CXX=
 
11721
          fi
 
11722
          esac
 
11723
          shared_flag='-shared'
 
11724
          if test "$aix_use_runtimelinking" = yes; then
 
11725
            shared_flag="$shared_flag "'${wl}-G'
 
11726
          fi
 
11727
        else
 
11728
          # not using gcc
 
11729
          if test "$host_cpu" = ia64; then
 
11730
          # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
11731
          # chokes on -Wl,-G. The following line is correct:
 
11732
          shared_flag='-G'
 
11733
          else
 
11734
            if test "$aix_use_runtimelinking" = yes; then
 
11735
              shared_flag='${wl}-G'
 
11736
            else
 
11737
              shared_flag='${wl}-bM:SRE'
 
11738
            fi
 
11739
          fi
 
11740
        fi
 
11741
 
 
11742
        # It seems that -bexpall does not export symbols beginning with
 
11743
        # underscore (_), so it is better to generate a list of symbols to
 
11744
        # export.
 
11745
        always_export_symbols_CXX=yes
 
11746
        if test "$aix_use_runtimelinking" = yes; then
 
11747
          # Warning - without using the other runtime loading flags (-brtl),
 
11748
          # -berok will link without error, but may produce a broken library.
 
11749
          allow_undefined_flag_CXX='-berok'
 
11750
          # Determine the default libpath from the value encoded in an empty
 
11751
          # executable.
 
11752
          cat >conftest.$ac_ext <<_ACEOF
 
11753
/* confdefs.h.  */
 
11754
_ACEOF
 
11755
cat confdefs.h >>conftest.$ac_ext
 
11756
cat >>conftest.$ac_ext <<_ACEOF
 
11757
/* end confdefs.h.  */
 
11758
 
 
11759
int
 
11760
main ()
 
11761
{
 
11762
 
 
11763
  ;
 
11764
  return 0;
 
11765
}
 
11766
_ACEOF
 
11767
rm -f conftest.$ac_objext conftest$ac_exeext
 
11768
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
11769
  (eval $ac_link) 2>conftest.er1
 
11770
  ac_status=$?
 
11771
  grep -v '^ *+' conftest.er1 >conftest.err
 
11772
  rm -f conftest.er1
 
11773
  cat conftest.err >&5
 
11774
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11775
  (exit $ac_status); } &&
 
11776
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
11777
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
11778
  (eval $ac_try) 2>&5
 
11779
  ac_status=$?
 
11780
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11781
  (exit $ac_status); }; } &&
 
11782
         { ac_try='test -s conftest$ac_exeext'
 
11783
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
11784
  (eval $ac_try) 2>&5
 
11785
  ac_status=$?
 
11786
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11787
  (exit $ac_status); }; }; then
 
11788
 
 
11789
lt_aix_libpath_sed='
 
11790
    /Import File Strings/,/^$/ {
 
11791
        /^0/ {
 
11792
            s/^0  *\(.*\)$/\1/
 
11793
            p
 
11794
        }
 
11795
    }'
 
11796
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
11797
# Check for a 64-bit object if we didn't find anything.
 
11798
if test -z "$aix_libpath"; then
 
11799
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
11800
fi
 
11801
else
 
11802
  echo "$as_me: failed program was:" >&5
 
11803
sed 's/^/| /' conftest.$ac_ext >&5
 
11804
 
 
11805
fi
 
11806
rm -f conftest.err conftest.$ac_objext \
 
11807
      conftest$ac_exeext conftest.$ac_ext
 
11808
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
11809
 
 
11810
          hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
 
11811
 
 
11812
          archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
 
11813
        else
 
11814
          if test "$host_cpu" = ia64; then
 
11815
            hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
 
11816
            allow_undefined_flag_CXX="-z nodefs"
 
11817
            archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
 
11818
          else
 
11819
            # Determine the default libpath from the value encoded in an
 
11820
            # empty executable.
 
11821
            cat >conftest.$ac_ext <<_ACEOF
 
11822
/* confdefs.h.  */
 
11823
_ACEOF
 
11824
cat confdefs.h >>conftest.$ac_ext
 
11825
cat >>conftest.$ac_ext <<_ACEOF
 
11826
/* end confdefs.h.  */
 
11827
 
 
11828
int
 
11829
main ()
 
11830
{
 
11831
 
 
11832
  ;
 
11833
  return 0;
 
11834
}
 
11835
_ACEOF
 
11836
rm -f conftest.$ac_objext conftest$ac_exeext
 
11837
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
11838
  (eval $ac_link) 2>conftest.er1
 
11839
  ac_status=$?
 
11840
  grep -v '^ *+' conftest.er1 >conftest.err
 
11841
  rm -f conftest.er1
 
11842
  cat conftest.err >&5
 
11843
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11844
  (exit $ac_status); } &&
 
11845
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
11846
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
11847
  (eval $ac_try) 2>&5
 
11848
  ac_status=$?
 
11849
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11850
  (exit $ac_status); }; } &&
 
11851
         { ac_try='test -s conftest$ac_exeext'
 
11852
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
11853
  (eval $ac_try) 2>&5
 
11854
  ac_status=$?
 
11855
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11856
  (exit $ac_status); }; }; then
 
11857
 
 
11858
lt_aix_libpath_sed='
 
11859
    /Import File Strings/,/^$/ {
 
11860
        /^0/ {
 
11861
            s/^0  *\(.*\)$/\1/
 
11862
            p
 
11863
        }
 
11864
    }'
 
11865
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
11866
# Check for a 64-bit object if we didn't find anything.
 
11867
if test -z "$aix_libpath"; then
 
11868
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
11869
fi
 
11870
else
 
11871
  echo "$as_me: failed program was:" >&5
 
11872
sed 's/^/| /' conftest.$ac_ext >&5
 
11873
 
 
11874
fi
 
11875
rm -f conftest.err conftest.$ac_objext \
 
11876
      conftest$ac_exeext conftest.$ac_ext
 
11877
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
11878
 
 
11879
            hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
 
11880
            # Warning - without using the other run time loading flags,
 
11881
            # -berok will link without error, but may produce a broken library.
 
11882
            no_undefined_flag_CXX=' ${wl}-bernotok'
 
11883
            allow_undefined_flag_CXX=' ${wl}-berok'
 
11884
            # Exported symbols can be pulled into shared objects from archives
 
11885
            whole_archive_flag_spec_CXX='$convenience'
 
11886
            archive_cmds_need_lc_CXX=yes
 
11887
            # This is similar to how AIX traditionally builds its shared
 
11888
            # libraries.
 
11889
            archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
 
11890
          fi
 
11891
        fi
 
11892
        ;;
 
11893
 
 
11894
      beos*)
 
11895
        if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
 
11896
          allow_undefined_flag_CXX=unsupported
 
11897
          # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
11898
          # support --undefined.  This deserves some investigation.  FIXME
 
11899
          archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
11900
        else
 
11901
          ld_shlibs_CXX=no
 
11902
        fi
 
11903
        ;;
 
11904
 
 
11905
      chorus*)
 
11906
        case $cc_basename in
 
11907
          *)
 
11908
          # FIXME: insert proper C++ library support
 
11909
          ld_shlibs_CXX=no
 
11910
          ;;
 
11911
        esac
 
11912
        ;;
 
11913
 
 
11914
      cygwin* | mingw* | pw32*)
 
11915
        # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
 
11916
        # as there is no search path for DLLs.
 
11917
        hardcode_libdir_flag_spec_CXX='-L$libdir'
 
11918
        allow_undefined_flag_CXX=unsupported
 
11919
        always_export_symbols_CXX=no
 
11920
        enable_shared_with_static_runtimes_CXX=yes
 
11921
 
 
11922
        if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
 
11923
          archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
11924
          # If the export-symbols file already is a .def file (1st line
 
11925
          # is EXPORTS), use it as is; otherwise, prepend...
 
11926
          archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
11927
            cp $export_symbols $output_objdir/$soname.def;
 
11928
          else
 
11929
            echo EXPORTS > $output_objdir/$soname.def;
 
11930
            cat $export_symbols >> $output_objdir/$soname.def;
 
11931
          fi~
 
11932
          $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
11933
        else
 
11934
          ld_shlibs_CXX=no
 
11935
        fi
 
11936
        ;;
 
11937
      darwin* | rhapsody*)
 
11938
 
 
11939
 
 
11940
  archive_cmds_need_lc_CXX=no
 
11941
  hardcode_direct_CXX=no
 
11942
  hardcode_automatic_CXX=yes
 
11943
  hardcode_shlibpath_var_CXX=unsupported
 
11944
  whole_archive_flag_spec_CXX=''
 
11945
  link_all_deplibs_CXX=yes
 
11946
  allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
 
11947
  if test "$GCC" = "yes"; then
 
11948
    output_verbose_link_cmd=echo
 
11949
    archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
 
11950
    module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
 
11951
    archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
 
11952
    module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
 
11953
       if test "$lt_cv_apple_cc_single_mod" != "yes"; then
 
11954
      archive_cmds_CXX="\$CC -r -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${_lt_dsymutil}"
 
11955
      archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -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${_lt_dar_export_syms}${_lt_dsymutil}"
 
11956
    fi
 
11957
 
 
11958
  else
 
11959
  ld_shlibs_CXX=no
 
11960
  fi
 
11961
 
 
11962
        ;;
 
11963
 
 
11964
      dgux*)
 
11965
        case $cc_basename in
 
11966
          ec++*)
 
11967
            # FIXME: insert proper C++ library support
 
11968
            ld_shlibs_CXX=no
 
11969
            ;;
 
11970
          ghcx*)
 
11971
            # Green Hills C++ Compiler
 
11972
            # FIXME: insert proper C++ library support
 
11973
            ld_shlibs_CXX=no
 
11974
            ;;
 
11975
          *)
 
11976
            # FIXME: insert proper C++ library support
 
11977
            ld_shlibs_CXX=no
 
11978
            ;;
 
11979
        esac
 
11980
        ;;
 
11981
 
 
11982
      freebsd[12]*)
 
11983
        # C++ shared libraries reported to be fairly broken before
 
11984
        # switch to ELF
 
11985
        ld_shlibs_CXX=no
 
11986
        ;;
 
11987
 
 
11988
      freebsd-elf*)
 
11989
        archive_cmds_need_lc_CXX=no
 
11990
        ;;
 
11991
 
 
11992
      freebsd* | dragonfly*)
 
11993
        # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
 
11994
        # conventions
 
11995
        ld_shlibs_CXX=yes
 
11996
        ;;
 
11997
 
 
11998
      gnu*)
 
11999
        ;;
 
12000
 
 
12001
      hpux9*)
 
12002
        hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
 
12003
        hardcode_libdir_separator_CXX=:
 
12004
        export_dynamic_flag_spec_CXX='${wl}-E'
 
12005
        hardcode_direct_CXX=yes
 
12006
        hardcode_minus_L_CXX=yes # Not in the search PATH,
 
12007
                                             # but as the default
 
12008
                                             # location of the library.
 
12009
 
 
12010
        case $cc_basename in
 
12011
          CC*)
 
12012
            # FIXME: insert proper C++ library support
 
12013
            ld_shlibs_CXX=no
 
12014
            ;;
 
12015
          aCC*)
 
12016
            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'
 
12017
            # Commands to make compiler produce verbose output that lists
 
12018
            # what "hidden" libraries, object files and flags are used when
 
12019
            # linking a shared library.
 
12020
            #
 
12021
            # There doesn't appear to be a way to prevent this compiler from
 
12022
            # explicitly linking system object files so we need to strip them
 
12023
            # from the output so that they don't get included in the library
 
12024
            # dependencies.
 
12025
            output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
 
12026
            ;;
 
12027
          *)
 
12028
            if test "$GXX" = yes; then
 
12029
              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'
 
12030
            else
 
12031
              # FIXME: insert proper C++ library support
 
12032
              ld_shlibs_CXX=no
 
12033
            fi
 
12034
            ;;
 
12035
        esac
 
12036
        ;;
 
12037
 
 
12038
      hpux10*|hpux11*)
 
12039
        if test $with_gnu_ld = no; then
 
12040
          hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
 
12041
          hardcode_libdir_separator_CXX=:
 
12042
 
 
12043
          case $host_cpu in
 
12044
            hppa*64*|ia64*)
 
12045
              ;;
 
12046
            *)
 
12047
              export_dynamic_flag_spec_CXX='${wl}-E'
 
12048
              ;;
 
12049
          esac
 
12050
        fi
 
12051
        case $host_cpu in
 
12052
          hppa*64*|ia64*)
 
12053
            hardcode_direct_CXX=no
 
12054
            hardcode_shlibpath_var_CXX=no
 
12055
            ;;
 
12056
          *)
 
12057
            hardcode_direct_CXX=yes
 
12058
            hardcode_direct_absolute_CXX=yes
 
12059
            hardcode_minus_L_CXX=yes # Not in the search PATH,
 
12060
                                                 # but as the default
 
12061
                                                 # location of the library.
 
12062
            ;;
 
12063
        esac
 
12064
 
 
12065
        case $cc_basename in
 
12066
          CC*)
 
12067
            # FIXME: insert proper C++ library support
 
12068
            ld_shlibs_CXX=no
 
12069
            ;;
 
12070
          aCC*)
 
12071
            case $host_cpu in
 
12072
              hppa*64*)
 
12073
                archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
12074
                ;;
 
12075
              ia64*)
 
12076
                archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
12077
                ;;
 
12078
              *)
 
12079
                archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
12080
                ;;
 
12081
            esac
 
12082
            # Commands to make compiler produce verbose output that lists
 
12083
            # what "hidden" libraries, object files and flags are used when
 
12084
            # linking a shared library.
 
12085
            #
 
12086
            # There doesn't appear to be a way to prevent this compiler from
 
12087
            # explicitly linking system object files so we need to strip them
 
12088
            # from the output so that they don't get included in the library
 
12089
            # dependencies.
 
12090
            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 "X$list" | $Xsed'
 
12091
            ;;
 
12092
          *)
 
12093
            if test "$GXX" = yes; then
 
12094
              if test $with_gnu_ld = no; then
 
12095
                case $host_cpu in
 
12096
                  hppa*64*)
 
12097
                    archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
12098
                    ;;
 
12099
                  ia64*)
 
12100
                    archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
12101
                    ;;
 
12102
                  *)
 
12103
                    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'
 
12104
                    ;;
 
12105
                esac
 
12106
              fi
 
12107
            else
 
12108
              # FIXME: insert proper C++ library support
 
12109
              ld_shlibs_CXX=no
 
12110
            fi
 
12111
            ;;
 
12112
        esac
 
12113
        ;;
 
12114
 
 
12115
      interix[3-9]*)
 
12116
        hardcode_direct_CXX=no
 
12117
        hardcode_shlibpath_var_CXX=no
 
12118
        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10523
12119
        export_dynamic_flag_spec_CXX='${wl}-E'
10524
 
        ;;
10525
 
      esac
10526
 
    fi
10527
 
    case $host_cpu in
10528
 
    hppa*64*|ia64*)
10529
 
      hardcode_direct_CXX=no
 
12120
        # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
 
12121
        # Instead, shared libraries are loaded at an image base (0x10000000 by
 
12122
        # default) and relocated if they conflict, which is a slow very memory
 
12123
        # consuming and fragmenting process.  To avoid this, we pick a random,
 
12124
        # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
 
12125
        # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
 
12126
        archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
 
12127
        archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
 
12128
        ;;
 
12129
      irix5* | irix6*)
 
12130
        case $cc_basename in
 
12131
          CC*)
 
12132
            # SGI C++
 
12133
            archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
 
12134
 
 
12135
            # Archives containing C++ object files must be created using
 
12136
            # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
 
12137
            # necessary to make sure instantiated templates are included
 
12138
            # in the archive.
 
12139
            old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
 
12140
            ;;
 
12141
          *)
 
12142
            if test "$GXX" = yes; then
 
12143
              if test "$with_gnu_ld" = no; then
 
12144
                archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
12145
              else
 
12146
                archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o $lib'
 
12147
              fi
 
12148
            fi
 
12149
            link_all_deplibs_CXX=yes
 
12150
            ;;
 
12151
        esac
 
12152
        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
12153
        hardcode_libdir_separator_CXX=:
 
12154
        inherit_rpath_CXX=yes
 
12155
        ;;
 
12156
 
 
12157
      linux* | k*bsd*-gnu)
 
12158
        case $cc_basename in
 
12159
          KCC*)
 
12160
            # Kuck and Associates, Inc. (KAI) C++ Compiler
 
12161
 
 
12162
            # KCC will only create a shared library if the output file
 
12163
            # ends with ".so" (or ".sl" for HP-UX), so rename the library
 
12164
            # to its proper name (with version) after linking.
 
12165
            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'
 
12166
            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'
 
12167
            # Commands to make compiler produce verbose output that lists
 
12168
            # what "hidden" libraries, object files and flags are used when
 
12169
            # linking a shared library.
 
12170
            #
 
12171
            # There doesn't appear to be a way to prevent this compiler from
 
12172
            # explicitly linking system object files so we need to strip them
 
12173
            # from the output so that they don't get included in the library
 
12174
            # dependencies.
 
12175
            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 "X$list" | $Xsed'
 
12176
 
 
12177
            hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
12178
            export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
12179
 
 
12180
            # Archives containing C++ object files must be created using
 
12181
            # "CC -Bstatic", where "CC" is the KAI C++ compiler.
 
12182
            old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
 
12183
            ;;
 
12184
          icpc* | ecpc* )
 
12185
            # Intel C++
 
12186
            with_gnu_ld=yes
 
12187
            # version 8.0 and above of icpc choke on multiply defined symbols
 
12188
            # if we add $predep_objects and $postdep_objects, however 7.1 and
 
12189
            # earlier do not add the objects themselves.
 
12190
            case `$CC -V 2>&1` in
 
12191
              *"Version 7."*)
 
12192
                archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
12193
                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'
 
12194
                ;;
 
12195
              *)  # Version 8.0 or newer
 
12196
                tmp_idyn=
 
12197
                case $host_cpu in
 
12198
                  ia64*) tmp_idyn=' -i_dynamic';;
 
12199
                esac
 
12200
                archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
12201
                archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
12202
                ;;
 
12203
            esac
 
12204
            archive_cmds_need_lc_CXX=no
 
12205
            hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
12206
            export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
12207
            whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
 
12208
            ;;
 
12209
          pgCC* | pgcpp*)
 
12210
            # Portland Group C++ compiler
 
12211
            case `$CC -V` in
 
12212
            *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
 
12213
              prelink_cmds_CXX='tpldir=Template.dir~
 
12214
                rm -rf $tpldir~
 
12215
                $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
 
12216
                compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
 
12217
              old_archive_cmds_CXX='tpldir=Template.dir~
 
12218
                rm -rf $tpldir~
 
12219
                $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
 
12220
                $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
 
12221
                $RANLIB $oldlib'
 
12222
              archive_cmds_CXX='tpldir=Template.dir~
 
12223
                rm -rf $tpldir~
 
12224
                $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
 
12225
                $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
 
12226
              archive_expsym_cmds_CXX='tpldir=Template.dir~
 
12227
                rm -rf $tpldir~
 
12228
                $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
 
12229
                $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
 
12230
              ;;
 
12231
            *) # Version 6 will use weak symbols
 
12232
              archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
 
12233
              archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
 
12234
              ;;
 
12235
            esac
 
12236
 
 
12237
            hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
 
12238
            export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
12239
            whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
 
12240
            ;;
 
12241
          cxx*)
 
12242
            # Compaq C++
 
12243
            archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
12244
            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'
 
12245
 
 
12246
            runpath_var=LD_RUN_PATH
 
12247
            hardcode_libdir_flag_spec_CXX='-rpath $libdir'
 
12248
            hardcode_libdir_separator_CXX=:
 
12249
 
 
12250
            # Commands to make compiler produce verbose output that lists
 
12251
            # what "hidden" libraries, object files and flags are used when
 
12252
            # linking a shared library.
 
12253
            #
 
12254
            # There doesn't appear to be a way to prevent this compiler from
 
12255
            # explicitly linking system object files so we need to strip them
 
12256
            # from the output so that they don't get included in the library
 
12257
            # dependencies.
 
12258
            output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`$ECHO "X$templist" | $Xsed -e "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 "X$list" | $Xsed'
 
12259
            ;;
 
12260
          xl*)
 
12261
            # IBM XL 8.0 on PPC, with GNU ld
 
12262
            hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
12263
            export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
12264
            archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
12265
            if test "x$supports_anon_versioning" = xyes; then
 
12266
              archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
 
12267
                cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
12268
                echo "local: *; };" >> $output_objdir/$libname.ver~
 
12269
                $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
12270
            fi
 
12271
            ;;
 
12272
          *)
 
12273
            case `$CC -V 2>&1 | sed 5q` in
 
12274
            *Sun\ C*)
 
12275
              # Sun C++ 5.9
 
12276
              no_undefined_flag_CXX=' -zdefs'
 
12277
              archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
12278
              archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
 
12279
              hardcode_libdir_flag_spec_CXX='-R$libdir'
 
12280
              whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
 
12281
              compiler_needs_object_CXX=yes
 
12282
 
 
12283
              # Not sure whether something based on
 
12284
              # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
 
12285
              # would be better.
 
12286
              output_verbose_link_cmd='echo'
 
12287
 
 
12288
              # Archives containing C++ object files must be created using
 
12289
              # "CC -xar", where "CC" is the Sun C++ compiler.  This is
 
12290
              # necessary to make sure instantiated templates are included
 
12291
              # in the archive.
 
12292
              old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
 
12293
              ;;
 
12294
            esac
 
12295
            ;;
 
12296
        esac
 
12297
        ;;
 
12298
 
 
12299
      lynxos*)
 
12300
        # FIXME: insert proper C++ library support
 
12301
        ld_shlibs_CXX=no
 
12302
        ;;
 
12303
 
 
12304
      m88k*)
 
12305
        # FIXME: insert proper C++ library support
 
12306
        ld_shlibs_CXX=no
 
12307
        ;;
 
12308
 
 
12309
      mvs*)
 
12310
        case $cc_basename in
 
12311
          cxx*)
 
12312
            # FIXME: insert proper C++ library support
 
12313
            ld_shlibs_CXX=no
 
12314
            ;;
 
12315
          *)
 
12316
            # FIXME: insert proper C++ library support
 
12317
            ld_shlibs_CXX=no
 
12318
            ;;
 
12319
        esac
 
12320
        ;;
 
12321
 
 
12322
      netbsd*)
 
12323
        if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
 
12324
          archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
 
12325
          wlarc=
 
12326
          hardcode_libdir_flag_spec_CXX='-R$libdir'
 
12327
          hardcode_direct_CXX=yes
 
12328
          hardcode_shlibpath_var_CXX=no
 
12329
        fi
 
12330
        # Workaround some broken pre-1.5 toolchains
 
12331
        output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
 
12332
        ;;
 
12333
 
 
12334
      *nto* | *qnx*)
 
12335
        ld_shlibs_CXX=yes
 
12336
        ;;
 
12337
 
 
12338
      openbsd2*)
 
12339
        # C++ shared libraries are fairly broken
 
12340
        ld_shlibs_CXX=no
 
12341
        ;;
 
12342
 
 
12343
      openbsd*)
 
12344
        if test -f /usr/libexec/ld.so; then
 
12345
          hardcode_direct_CXX=yes
 
12346
          hardcode_shlibpath_var_CXX=no
 
12347
          hardcode_direct_absolute_CXX=yes
 
12348
          archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
 
12349
          hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
12350
          if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
12351
            archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
 
12352
            export_dynamic_flag_spec_CXX='${wl}-E'
 
12353
            whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
12354
          fi
 
12355
          output_verbose_link_cmd=echo
 
12356
        else
 
12357
          ld_shlibs_CXX=no
 
12358
        fi
 
12359
        ;;
 
12360
 
 
12361
      osf3* | osf4* | osf5*)
 
12362
        case $cc_basename in
 
12363
          KCC*)
 
12364
            # Kuck and Associates, Inc. (KAI) C++ Compiler
 
12365
 
 
12366
            # KCC will only create a shared library if the output file
 
12367
            # ends with ".so" (or ".sl" for HP-UX), so rename the library
 
12368
            # to its proper name (with version) after linking.
 
12369
            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'
 
12370
 
 
12371
            hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
12372
            hardcode_libdir_separator_CXX=:
 
12373
 
 
12374
            # Archives containing C++ object files must be created using
 
12375
            # the KAI C++ compiler.
 
12376
            case $host in
 
12377
              osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
 
12378
              *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
 
12379
            esac
 
12380
            ;;
 
12381
          RCC*)
 
12382
            # Rational C++ 2.4.1
 
12383
            # FIXME: insert proper C++ library support
 
12384
            ld_shlibs_CXX=no
 
12385
            ;;
 
12386
          cxx*)
 
12387
            case $host in
 
12388
              osf3*)
 
12389
                allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
 
12390
                archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
 
12391
                hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
12392
                ;;
 
12393
              *)
 
12394
                allow_undefined_flag_CXX=' -expect_unresolved \*'
 
12395
                archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
 
12396
                archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
 
12397
                  echo "-hidden">> $lib.exp~
 
12398
                  $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 "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~
 
12399
                  $RM $lib.exp'
 
12400
                hardcode_libdir_flag_spec_CXX='-rpath $libdir'
 
12401
                ;;
 
12402
            esac
 
12403
 
 
12404
            hardcode_libdir_separator_CXX=:
 
12405
 
 
12406
            # Commands to make compiler produce verbose output that lists
 
12407
            # what "hidden" libraries, object files and flags are used when
 
12408
            # linking a shared library.
 
12409
            #
 
12410
            # There doesn't appear to be a way to prevent this compiler from
 
12411
            # explicitly linking system object files so we need to strip them
 
12412
            # from the output so that they don't get included in the library
 
12413
            # dependencies.
 
12414
            output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`$ECHO "X$templist" | $Xsed -e "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 "X$list" | $Xsed'
 
12415
            ;;
 
12416
          *)
 
12417
            if test "$GXX" = yes && test "$with_gnu_ld" = no; then
 
12418
              allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
 
12419
              case $host in
 
12420
                osf3*)
 
12421
                  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 "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
12422
                  ;;
 
12423
                *)
 
12424
                  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" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
12425
                  ;;
 
12426
              esac
 
12427
 
 
12428
              hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
12429
              hardcode_libdir_separator_CXX=:
 
12430
 
 
12431
              # Commands to make compiler produce verbose output that lists
 
12432
              # what "hidden" libraries, object files and flags are used when
 
12433
              # linking a shared library.
 
12434
              output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
 
12435
 
 
12436
            else
 
12437
              # FIXME: insert proper C++ library support
 
12438
              ld_shlibs_CXX=no
 
12439
            fi
 
12440
            ;;
 
12441
        esac
 
12442
        ;;
 
12443
 
 
12444
      psos*)
 
12445
        # FIXME: insert proper C++ library support
 
12446
        ld_shlibs_CXX=no
 
12447
        ;;
 
12448
 
 
12449
      sunos4*)
 
12450
        case $cc_basename in
 
12451
          CC*)
 
12452
            # Sun C++ 4.x
 
12453
            # FIXME: insert proper C++ library support
 
12454
            ld_shlibs_CXX=no
 
12455
            ;;
 
12456
          lcc*)
 
12457
            # Lucid
 
12458
            # FIXME: insert proper C++ library support
 
12459
            ld_shlibs_CXX=no
 
12460
            ;;
 
12461
          *)
 
12462
            # FIXME: insert proper C++ library support
 
12463
            ld_shlibs_CXX=no
 
12464
            ;;
 
12465
        esac
 
12466
        ;;
 
12467
 
 
12468
      solaris*)
 
12469
        case $cc_basename in
 
12470
          CC*)
 
12471
            # Sun C++ 4.2, 5.x and Centerline C++
 
12472
            archive_cmds_need_lc_CXX=yes
 
12473
            no_undefined_flag_CXX=' -zdefs'
 
12474
            archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
12475
            archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
 
12476
              $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
 
12477
 
 
12478
            hardcode_libdir_flag_spec_CXX='-R$libdir'
 
12479
            hardcode_shlibpath_var_CXX=no
 
12480
            case $host_os in
 
12481
              solaris2.[0-5] | solaris2.[0-5].*) ;;
 
12482
              *)
 
12483
                # The compiler driver will combine and reorder linker options,
 
12484
                # but understands `-z linker_flag'.
 
12485
                # Supported since Solaris 2.6 (maybe 2.5.1?)
 
12486
                whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
 
12487
                ;;
 
12488
            esac
 
12489
            link_all_deplibs_CXX=yes
 
12490
 
 
12491
            output_verbose_link_cmd='echo'
 
12492
 
 
12493
            # Archives containing C++ object files must be created using
 
12494
            # "CC -xar", where "CC" is the Sun C++ compiler.  This is
 
12495
            # necessary to make sure instantiated templates are included
 
12496
            # in the archive.
 
12497
            old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
 
12498
            ;;
 
12499
          gcx*)
 
12500
            # Green Hills C++ Compiler
 
12501
            archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
12502
 
 
12503
            # The C++ compiler must be used to create the archive.
 
12504
            old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
 
12505
            ;;
 
12506
          *)
 
12507
            # GNU C++ compiler with Solaris linker
 
12508
            if test "$GXX" = yes && test "$with_gnu_ld" = no; then
 
12509
              no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
 
12510
              if $CC --version | $GREP -v '^2\.7' > /dev/null; then
 
12511
                archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
12512
                archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
 
12513
                  $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
 
12514
 
 
12515
                # Commands to make compiler produce verbose output that lists
 
12516
                # what "hidden" libraries, object files and flags are used when
 
12517
                # linking a shared library.
 
12518
                output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
 
12519
              else
 
12520
                # g++ 2.7 appears to require `-G' NOT `-shared' on this
 
12521
                # platform.
 
12522
                archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
12523
                archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
 
12524
                  $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
 
12525
 
 
12526
                # Commands to make compiler produce verbose output that lists
 
12527
                # what "hidden" libraries, object files and flags are used when
 
12528
                # linking a shared library.
 
12529
                output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
 
12530
              fi
 
12531
 
 
12532
              hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
 
12533
              case $host_os in
 
12534
                solaris2.[0-5] | solaris2.[0-5].*) ;;
 
12535
                *)
 
12536
                  whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
 
12537
                  ;;
 
12538
              esac
 
12539
            fi
 
12540
            ;;
 
12541
        esac
 
12542
        ;;
 
12543
 
 
12544
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
 
12545
      no_undefined_flag_CXX='${wl}-z,text'
 
12546
      archive_cmds_need_lc_CXX=no
10530
12547
      hardcode_shlibpath_var_CXX=no
10531
 
      ;;
10532
 
    *)
10533
 
      hardcode_direct_CXX=yes
10534
 
      hardcode_minus_L_CXX=yes # Not in the search PATH,
10535
 
                                              # but as the default
10536
 
                                              # location of the library.
10537
 
      ;;
10538
 
    esac
 
12548
      runpath_var='LD_RUN_PATH'
10539
12549
 
10540
 
    case $cc_basename in
10541
 
      CC*)
10542
 
        # FIXME: insert proper C++ library support
10543
 
        ld_shlibs_CXX=no
10544
 
        ;;
10545
 
      aCC*)
10546
 
        case $host_cpu in
10547
 
        hppa*64*)
10548
 
          archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10549
 
          ;;
10550
 
        ia64*)
10551
 
          archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
12550
      case $cc_basename in
 
12551
        CC*)
 
12552
          archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
12553
          archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10552
12554
          ;;
10553
12555
        *)
10554
 
          archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10555
 
          ;;
10556
 
        esac
10557
 
        # Commands to make compiler produce verbose output that lists
10558
 
        # what "hidden" libraries, object files and flags are used when
10559
 
        # linking a shared library.
10560
 
        #
10561
 
        # There doesn't appear to be a way to prevent this compiler from
10562
 
        # explicitly linking system object files so we need to strip them
10563
 
        # from the output so that they don't get included in the library
10564
 
        # dependencies.
10565
 
        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'
10566
 
        ;;
10567
 
      *)
10568
 
        if test "$GXX" = yes; then
10569
 
          if test $with_gnu_ld = no; then
10570
 
            case $host_cpu in
10571
 
            hppa*64*)
10572
 
              archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10573
 
              ;;
10574
 
            ia64*)
10575
 
              archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10576
 
              ;;
10577
 
            *)
10578
 
              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'
10579
 
              ;;
10580
 
            esac
10581
 
          fi
10582
 
        else
10583
 
          # FIXME: insert proper C++ library support
10584
 
          ld_shlibs_CXX=no
10585
 
        fi
10586
 
        ;;
10587
 
    esac
10588
 
    ;;
10589
 
  interix3*)
10590
 
    hardcode_direct_CXX=no
10591
 
    hardcode_shlibpath_var_CXX=no
10592
 
    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10593
 
    export_dynamic_flag_spec_CXX='${wl}-E'
10594
 
    # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10595
 
    # Instead, shared libraries are loaded at an image base (0x10000000 by
10596
 
    # default) and relocated if they conflict, which is a slow very memory
10597
 
    # consuming and fragmenting process.  To avoid this, we pick a random,
10598
 
    # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10599
 
    # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
10600
 
    archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10601
 
    archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10602
 
    ;;
10603
 
  irix5* | irix6*)
10604
 
    case $cc_basename in
10605
 
      CC*)
10606
 
        # SGI C++
10607
 
        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 ${output_objdir}/so_locations -o $lib'
10608
 
 
10609
 
        # Archives containing C++ object files must be created using
10610
 
        # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
10611
 
        # necessary to make sure instantiated templates are included
10612
 
        # in the archive.
10613
 
        old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10614
 
        ;;
10615
 
      *)
10616
 
        if test "$GXX" = yes; then
10617
 
          if test "$with_gnu_ld" = no; then
10618
 
            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}${output_objdir}/so_locations -o $lib'
10619
 
          else
10620
 
            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'
10621
 
          fi
10622
 
        fi
10623
 
        link_all_deplibs_CXX=yes
10624
 
        ;;
10625
 
    esac
10626
 
    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10627
 
    hardcode_libdir_separator_CXX=:
10628
 
    ;;
10629
 
  linux*)
10630
 
    case $cc_basename in
10631
 
      KCC*)
10632
 
        # Kuck and Associates, Inc. (KAI) C++ Compiler
10633
 
 
10634
 
        # KCC will only create a shared library if the output file
10635
 
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
10636
 
        # to its proper name (with version) after linking.
10637
 
        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'
10638
 
        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'
10639
 
        # Commands to make compiler produce verbose output that lists
10640
 
        # what "hidden" libraries, object files and flags are used when
10641
 
        # linking a shared library.
10642
 
        #
10643
 
        # There doesn't appear to be a way to prevent this compiler from
10644
 
        # explicitly linking system object files so we need to strip them
10645
 
        # from the output so that they don't get included in the library
10646
 
        # dependencies.
10647
 
        output_verbose_link_cmd='templist=`$CC $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'
10648
 
 
10649
 
        hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10650
 
        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10651
 
 
10652
 
        # Archives containing C++ object files must be created using
10653
 
        # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10654
 
        old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10655
 
        ;;
10656
 
      icpc*)
10657
 
        # Intel C++
10658
 
        with_gnu_ld=yes
10659
 
        # version 8.0 and above of icpc choke on multiply defined symbols
10660
 
        # if we add $predep_objects and $postdep_objects, however 7.1 and
10661
 
        # earlier do not add the objects themselves.
10662
 
        case `$CC -V 2>&1` in
10663
 
        *"Version 7."*)
10664
 
          archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10665
 
          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'
10666
 
          ;;
10667
 
        *)  # Version 8.0 or newer
10668
 
          tmp_idyn=
10669
 
          case $host_cpu in
10670
 
            ia64*) tmp_idyn=' -i_dynamic';;
10671
 
          esac
10672
 
          archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10673
 
          archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10674
 
          ;;
10675
 
        esac
 
12556
          archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
12557
          archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
12558
          ;;
 
12559
      esac
 
12560
      ;;
 
12561
 
 
12562
      sysv5* | sco3.2v5* | sco5v6*)
 
12563
        # Note: We can NOT use -z defs as we might desire, because we do not
 
12564
        # link with -lc, and that would cause any symbols used from libc to
 
12565
        # always be unresolved, which means just about no library would
 
12566
        # ever link correctly.  If we're not using GNU ld we use -z text
 
12567
        # though, which does catch some bad symbols but isn't as heavy-handed
 
12568
        # as -z defs.
 
12569
        no_undefined_flag_CXX='${wl}-z,text'
 
12570
        allow_undefined_flag_CXX='${wl}-z,nodefs'
10676
12571
        archive_cmds_need_lc_CXX=no
10677
 
        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10678
 
        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10679
 
        whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10680
 
        ;;
10681
 
      pgCC*)
10682
 
        # Portland Group C++ compiler
10683
 
        archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
10684
 
        archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
10685
 
 
10686
 
        hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10687
 
        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10688
 
        whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
10689
 
        ;;
10690
 
      cxx*)
10691
 
        # Compaq C++
10692
 
        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10693
 
        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'
10694
 
 
10695
 
        runpath_var=LD_RUN_PATH
10696
 
        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10697
 
        hardcode_libdir_separator_CXX=:
10698
 
 
10699
 
        # Commands to make compiler produce verbose output that lists
10700
 
        # what "hidden" libraries, object files and flags are used when
10701
 
        # linking a shared library.
10702
 
        #
10703
 
        # There doesn't appear to be a way to prevent this compiler from
10704
 
        # explicitly linking system object files so we need to strip them
10705
 
        # from the output so that they don't get included in the library
10706
 
        # dependencies.
10707
 
        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'
10708
 
        ;;
10709
 
    esac
10710
 
    ;;
10711
 
  lynxos*)
10712
 
    # FIXME: insert proper C++ library support
10713
 
    ld_shlibs_CXX=no
10714
 
    ;;
10715
 
  m88k*)
10716
 
    # FIXME: insert proper C++ library support
10717
 
    ld_shlibs_CXX=no
10718
 
    ;;
10719
 
  mvs*)
10720
 
    case $cc_basename in
10721
 
      cxx*)
10722
 
        # FIXME: insert proper C++ library support
10723
 
        ld_shlibs_CXX=no
10724
 
        ;;
10725
 
      *)
10726
 
        # FIXME: insert proper C++ library support
10727
 
        ld_shlibs_CXX=no
10728
 
        ;;
10729
 
    esac
10730
 
    ;;
10731
 
  netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
10732
 
    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10733
 
      archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10734
 
      wlarc=
10735
 
      hardcode_libdir_flag_spec_CXX='-R$libdir'
10736
 
      hardcode_direct_CXX=yes
10737
 
      hardcode_shlibpath_var_CXX=no
10738
 
    fi
10739
 
    # Workaround some broken pre-1.5 toolchains
10740
 
    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10741
 
    ;;
10742
 
  openbsd2*)
10743
 
    # C++ shared libraries are fairly broken
10744
 
    ld_shlibs_CXX=no
10745
 
    ;;
10746
 
  openbsd*)
10747
 
    hardcode_direct_CXX=yes
10748
 
    hardcode_shlibpath_var_CXX=no
10749
 
    archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10750
 
    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10751
 
    if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10752
 
      archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
10753
 
      export_dynamic_flag_spec_CXX='${wl}-E'
10754
 
      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10755
 
    fi
10756
 
    output_verbose_link_cmd='echo'
10757
 
    ;;
10758
 
  osf3*)
10759
 
    case $cc_basename in
10760
 
      KCC*)
10761
 
        # Kuck and Associates, Inc. (KAI) C++ Compiler
10762
 
 
10763
 
        # KCC will only create a shared library if the output file
10764
 
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
10765
 
        # to its proper name (with version) after linking.
10766
 
        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'
10767
 
 
10768
 
        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10769
 
        hardcode_libdir_separator_CXX=:
10770
 
 
10771
 
        # Archives containing C++ object files must be created using
10772
 
        # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10773
 
        old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10774
 
 
10775
 
        ;;
10776
 
      RCC*)
10777
 
        # Rational C++ 2.4.1
10778
 
        # FIXME: insert proper C++ library support
10779
 
        ld_shlibs_CXX=no
10780
 
        ;;
10781
 
      cxx*)
10782
 
        allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10783
 
        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 ${output_objdir}/so_locations -o $lib'
10784
 
 
10785
 
        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10786
 
        hardcode_libdir_separator_CXX=:
10787
 
 
10788
 
        # Commands to make compiler produce verbose output that lists
10789
 
        # what "hidden" libraries, object files and flags are used when
10790
 
        # linking a shared library.
10791
 
        #
10792
 
        # There doesn't appear to be a way to prevent this compiler from
10793
 
        # explicitly linking system object files so we need to strip them
10794
 
        # from the output so that they don't get included in the library
10795
 
        # dependencies.
10796
 
        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'
10797
 
        ;;
10798
 
      *)
10799
 
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10800
 
          allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10801
 
          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}${output_objdir}/so_locations -o $lib'
10802
 
 
10803
 
          hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10804
 
          hardcode_libdir_separator_CXX=:
10805
 
 
10806
 
          # Commands to make compiler produce verbose output that lists
10807
 
          # what "hidden" libraries, object files and flags are used when
10808
 
          # linking a shared library.
10809
 
          output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10810
 
 
10811
 
        else
10812
 
          # FIXME: insert proper C++ library support
10813
 
          ld_shlibs_CXX=no
10814
 
        fi
10815
 
        ;;
10816
 
    esac
10817
 
    ;;
10818
 
  osf4* | osf5*)
10819
 
    case $cc_basename in
10820
 
      KCC*)
10821
 
        # Kuck and Associates, Inc. (KAI) C++ Compiler
10822
 
 
10823
 
        # KCC will only create a shared library if the output file
10824
 
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
10825
 
        # to its proper name (with version) after linking.
10826
 
        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'
10827
 
 
10828
 
        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10829
 
        hardcode_libdir_separator_CXX=:
10830
 
 
10831
 
        # Archives containing C++ object files must be created using
10832
 
        # the KAI C++ compiler.
10833
 
        old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10834
 
        ;;
10835
 
      RCC*)
10836
 
        # Rational C++ 2.4.1
10837
 
        # FIXME: insert proper C++ library support
10838
 
        ld_shlibs_CXX=no
10839
 
        ;;
10840
 
      cxx*)
10841
 
        allow_undefined_flag_CXX=' -expect_unresolved \*'
10842
 
        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 ${output_objdir}/so_locations -o $lib'
10843
 
        archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10844
 
          echo "-hidden">> $lib.exp~
10845
 
          $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 ${output_objdir}/so_locations -o $lib~
10846
 
          $rm $lib.exp'
10847
 
 
10848
 
        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10849
 
        hardcode_libdir_separator_CXX=:
10850
 
 
10851
 
        # Commands to make compiler produce verbose output that lists
10852
 
        # what "hidden" libraries, object files and flags are used when
10853
 
        # linking a shared library.
10854
 
        #
10855
 
        # There doesn't appear to be a way to prevent this compiler from
10856
 
        # explicitly linking system object files so we need to strip them
10857
 
        # from the output so that they don't get included in the library
10858
 
        # dependencies.
10859
 
        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'
10860
 
        ;;
10861
 
      *)
10862
 
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10863
 
          allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10864
 
         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}${output_objdir}/so_locations -o $lib'
10865
 
 
10866
 
          hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10867
 
          hardcode_libdir_separator_CXX=:
10868
 
 
10869
 
          # Commands to make compiler produce verbose output that lists
10870
 
          # what "hidden" libraries, object files and flags are used when
10871
 
          # linking a shared library.
10872
 
          output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10873
 
 
10874
 
        else
10875
 
          # FIXME: insert proper C++ library support
10876
 
          ld_shlibs_CXX=no
10877
 
        fi
10878
 
        ;;
10879
 
    esac
10880
 
    ;;
10881
 
  psos*)
10882
 
    # FIXME: insert proper C++ library support
10883
 
    ld_shlibs_CXX=no
10884
 
    ;;
10885
 
  sunos4*)
10886
 
    case $cc_basename in
10887
 
      CC*)
10888
 
        # Sun C++ 4.x
10889
 
        # FIXME: insert proper C++ library support
10890
 
        ld_shlibs_CXX=no
10891
 
        ;;
10892
 
      lcc*)
10893
 
        # Lucid
10894
 
        # FIXME: insert proper C++ library support
10895
 
        ld_shlibs_CXX=no
10896
 
        ;;
10897
 
      *)
10898
 
        # FIXME: insert proper C++ library support
10899
 
        ld_shlibs_CXX=no
10900
 
        ;;
10901
 
    esac
10902
 
    ;;
10903
 
  solaris*)
10904
 
    case $cc_basename in
10905
 
      CC*)
10906
 
        # Sun C++ 4.2, 5.x and Centerline C++
10907
 
        archive_cmds_need_lc_CXX=yes
10908
 
        no_undefined_flag_CXX=' -zdefs'
10909
 
        archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10910
 
        archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10911
 
        $CC -G${allow_undefined_flag}  ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10912
 
 
10913
 
        hardcode_libdir_flag_spec_CXX='-R$libdir'
10914
12572
        hardcode_shlibpath_var_CXX=no
10915
 
        case $host_os in
10916
 
          solaris2.[0-5] | solaris2.[0-5].*) ;;
 
12573
        hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
 
12574
        hardcode_libdir_separator_CXX=':'
 
12575
        link_all_deplibs_CXX=yes
 
12576
        export_dynamic_flag_spec_CXX='${wl}-Bexport'
 
12577
        runpath_var='LD_RUN_PATH'
 
12578
 
 
12579
        case $cc_basename in
 
12580
          CC*)
 
12581
            archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
12582
            archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
12583
            ;;
10917
12584
          *)
10918
 
            # The C++ compiler is used as linker so we must use $wl
10919
 
            # flag to pass the commands to the underlying system
10920
 
            # linker. We must also pass each convience library through
10921
 
            # to the system linker between allextract/defaultextract.
10922
 
            # The C++ compiler will combine linker options so we
10923
 
            # cannot just pass the convience library names through
10924
 
            # without $wl.
10925
 
            # Supported since Solaris 2.6 (maybe 2.5.1?)
10926
 
            whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
 
12585
            archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
12586
            archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10927
12587
            ;;
10928
12588
        esac
10929
 
        link_all_deplibs_CXX=yes
10930
 
 
10931
 
        output_verbose_link_cmd='echo'
10932
 
 
10933
 
        # Archives containing C++ object files must be created using
10934
 
        # "CC -xar", where "CC" is the Sun C++ compiler.  This is
10935
 
        # necessary to make sure instantiated templates are included
10936
 
        # in the archive.
10937
 
        old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10938
 
        ;;
10939
 
      gcx*)
10940
 
        # Green Hills C++ Compiler
10941
 
        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10942
 
 
10943
 
        # The C++ compiler must be used to create the archive.
10944
 
        old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10945
 
        ;;
10946
 
      *)
10947
 
        # GNU C++ compiler with Solaris linker
10948
 
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10949
 
          no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10950
 
          if $CC --version | grep -v '^2\.7' > /dev/null; then
10951
 
            archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10952
 
            archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10953
 
                $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10954
 
 
10955
 
            # Commands to make compiler produce verbose output that lists
10956
 
            # what "hidden" libraries, object files and flags are used when
10957
 
            # linking a shared library.
10958
 
            output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10959
 
          else
10960
 
            # g++ 2.7 appears to require `-G' NOT `-shared' on this
10961
 
            # platform.
10962
 
            archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10963
 
            archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10964
 
                $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10965
 
 
10966
 
            # Commands to make compiler produce verbose output that lists
10967
 
            # what "hidden" libraries, object files and flags are used when
10968
 
            # linking a shared library.
10969
 
            output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10970
 
          fi
10971
 
 
10972
 
          hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10973
 
        fi
10974
 
        ;;
10975
 
    esac
10976
 
    ;;
10977
 
  sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10978
 
    no_undefined_flag_CXX='${wl}-z,text'
10979
 
    archive_cmds_need_lc_CXX=no
10980
 
    hardcode_shlibpath_var_CXX=no
10981
 
    runpath_var='LD_RUN_PATH'
10982
 
 
10983
 
    case $cc_basename in
10984
 
      CC*)
10985
 
        archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10986
 
        archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10987
 
        ;;
10988
 
      *)
10989
 
        archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10990
 
        archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10991
 
        ;;
10992
 
    esac
10993
 
    ;;
10994
 
  sysv5* | sco3.2v5* | sco5v6*)
10995
 
    # Note: We can NOT use -z defs as we might desire, because we do not
10996
 
    # link with -lc, and that would cause any symbols used from libc to
10997
 
    # always be unresolved, which means just about no library would
10998
 
    # ever link correctly.  If we're not using GNU ld we use -z text
10999
 
    # though, which does catch some bad symbols but isn't as heavy-handed
11000
 
    # as -z defs.
11001
 
    # For security reasons, it is highly recommended that you always
11002
 
    # use absolute paths for naming shared libraries, and exclude the
11003
 
    # DT_RUNPATH tag from executables and libraries.  But doing so
11004
 
    # requires that you compile everything twice, which is a pain.
11005
 
    # So that behaviour is only enabled if SCOABSPATH is set to a
11006
 
    # non-empty value in the environment.  Most likely only useful for
11007
 
    # creating official distributions of packages.
11008
 
    # This is a hack until libtool officially supports absolute path
11009
 
    # names for shared libraries.
11010
 
    no_undefined_flag_CXX='${wl}-z,text'
11011
 
    allow_undefined_flag_CXX='${wl}-z,nodefs'
11012
 
    archive_cmds_need_lc_CXX=no
11013
 
    hardcode_shlibpath_var_CXX=no
11014
 
    hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11015
 
    hardcode_libdir_separator_CXX=':'
11016
 
    link_all_deplibs_CXX=yes
11017
 
    export_dynamic_flag_spec_CXX='${wl}-Bexport'
11018
 
    runpath_var='LD_RUN_PATH'
11019
 
 
11020
 
    case $cc_basename in
11021
 
      CC*)
11022
 
        archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11023
 
        archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11024
 
        ;;
11025
 
      *)
11026
 
        archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11027
 
        archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11028
 
        ;;
11029
 
    esac
11030
 
    ;;
11031
 
  tandem*)
11032
 
    case $cc_basename in
11033
 
      NCC*)
11034
 
        # NonStop-UX NCC 3.20
11035
 
        # FIXME: insert proper C++ library support
11036
 
        ld_shlibs_CXX=no
11037
 
        ;;
11038
 
      *)
11039
 
        # FIXME: insert proper C++ library support
11040
 
        ld_shlibs_CXX=no
11041
 
        ;;
11042
 
    esac
11043
 
    ;;
11044
 
  vxworks*)
11045
 
    # FIXME: insert proper C++ library support
11046
 
    ld_shlibs_CXX=no
11047
 
    ;;
11048
 
  *)
11049
 
    # FIXME: insert proper C++ library support
11050
 
    ld_shlibs_CXX=no
11051
 
    ;;
11052
 
esac
11053
 
echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
 
12589
      ;;
 
12590
 
 
12591
      tandem*)
 
12592
        case $cc_basename in
 
12593
          NCC*)
 
12594
            # NonStop-UX NCC 3.20
 
12595
            # FIXME: insert proper C++ library support
 
12596
            ld_shlibs_CXX=no
 
12597
            ;;
 
12598
          *)
 
12599
            # FIXME: insert proper C++ library support
 
12600
            ld_shlibs_CXX=no
 
12601
            ;;
 
12602
        esac
 
12603
        ;;
 
12604
 
 
12605
      vxworks*)
 
12606
        # FIXME: insert proper C++ library support
 
12607
        ld_shlibs_CXX=no
 
12608
        ;;
 
12609
 
 
12610
      *)
 
12611
        # FIXME: insert proper C++ library support
 
12612
        ld_shlibs_CXX=no
 
12613
        ;;
 
12614
    esac
 
12615
 
 
12616
    echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11054
12617
echo "${ECHO_T}$ld_shlibs_CXX" >&6
11055
 
test "$ld_shlibs_CXX" = no && can_build_shared=no
11056
 
 
11057
 
GCC_CXX="$GXX"
11058
 
LD_CXX="$LD"
11059
 
 
11060
 
 
11061
 
cat > conftest.$ac_ext <<EOF
 
12618
    test "$ld_shlibs_CXX" = no && can_build_shared=no
 
12619
 
 
12620
    GCC_CXX="$GXX"
 
12621
    LD_CXX="$LD"
 
12622
 
 
12623
    ## CAVEAT EMPTOR:
 
12624
    ## There is no encapsulation within the following macros, do not change
 
12625
    ## the running order or otherwise move them around unless you know exactly
 
12626
    ## what you are doing...
 
12627
    # Dependencies to place before and after the object being linked:
 
12628
predep_objects_CXX=
 
12629
postdep_objects_CXX=
 
12630
predeps_CXX=
 
12631
postdeps_CXX=
 
12632
compiler_lib_search_path_CXX=
 
12633
 
 
12634
cat > conftest.$ac_ext <<_LT_EOF
11062
12635
class Foo
11063
12636
{
11064
12637
public:
11066
12639
private:
11067
12640
  int a;
11068
12641
};
11069
 
EOF
 
12642
_LT_EOF
11070
12643
 
11071
12644
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11072
12645
  (eval $ac_compile) 2>&5
11080
12653
  # the conftest object file.
11081
12654
  pre_test_object_deps_done=no
11082
12655
 
11083
 
  # The `*' in the case matches for architectures that use `case' in
11084
 
  # $output_verbose_cmd can trigger glob expansion during the loop
11085
 
  # eval without this substitution.
11086
 
  output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
11087
 
 
11088
 
  for p in `eval $output_verbose_link_cmd`; do
 
12656
  for p in `eval "$output_verbose_link_cmd"`; do
11089
12657
    case $p in
11090
12658
 
11091
12659
    -L* | -R* | -l*)
11092
12660
       # Some compilers place space between "-{L,R}" and the path.
11093
12661
       # Remove the space.
11094
 
       if test $p = "-L" \
11095
 
          || test $p = "-R"; then
 
12662
       if test $p = "-L" ||
 
12663
          test $p = "-R"; then
11096
12664
         prev=$p
11097
12665
         continue
11098
12666
       else
11157
12725
  echo "libtool.m4: error: problem compiling CXX test program"
11158
12726
fi
11159
12727
 
11160
 
$rm -f confest.$objext
 
12728
$RM -f confest.$objext
11161
12729
 
11162
12730
# PORTME: override above test on systems where it is broken
11163
12731
case $host_os in
11164
 
interix3*)
 
12732
interix[3-9]*)
11165
12733
  # Interix 3.5 installs completely hosed .la files for C++, so rather than
11166
12734
  # hack all around it, let's just trust "g++" to DTRT.
11167
12735
  predep_objects_CXX=
11169
12737
  postdeps_CXX=
11170
12738
  ;;
11171
12739
 
 
12740
linux*)
 
12741
  case `$CC -V 2>&1 | sed 5q` in
 
12742
  *Sun\ C*)
 
12743
    # Sun C++ 5.9
 
12744
 
 
12745
    # The more standards-conforming stlport4 library is
 
12746
    # incompatible with the Cstd library. Avoid specifying
 
12747
    # it if it's in CXXFLAGS. Ignore libCrun as
 
12748
    # -library=stlport4 depends on it.
 
12749
    case " $CXX $CXXFLAGS " in
 
12750
    *" -library=stlport4 "*)
 
12751
      solaris_use_stlport4=yes
 
12752
      ;;
 
12753
    esac
 
12754
 
 
12755
    if test "$solaris_use_stlport4" != yes; then
 
12756
      postdeps_CXX='-library=Cstd -library=Crun'
 
12757
    fi
 
12758
    ;;
 
12759
  esac
 
12760
  ;;
 
12761
 
11172
12762
solaris*)
11173
12763
  case $cc_basename in
11174
12764
  CC*)
 
12765
    # The more standards-conforming stlport4 library is
 
12766
    # incompatible with the Cstd library. Avoid specifying
 
12767
    # it if it's in CXXFLAGS. Ignore libCrun as
 
12768
    # -library=stlport4 depends on it.
 
12769
    case " $CXX $CXXFLAGS " in
 
12770
    *" -library=stlport4 "*)
 
12771
      solaris_use_stlport4=yes
 
12772
      ;;
 
12773
    esac
 
12774
 
11175
12775
    # Adding this requires a known-good setup of shared libraries for
11176
12776
    # Sun compiler versions before 5.6, else PIC objects from an old
11177
12777
    # archive will be linked into the output, leading to subtle bugs.
11178
 
    postdeps_CXX='-lCstd -lCrun'
 
12778
    if test "$solaris_use_stlport4" != yes; then
 
12779
      postdeps_CXX='-library=Cstd -library=Crun'
 
12780
    fi
11179
12781
    ;;
11180
12782
  esac
11181
12783
  ;;
11185
12787
case " $postdeps_CXX " in
11186
12788
*" -lc "*) archive_cmds_need_lc_CXX=no ;;
11187
12789
esac
11188
 
 
11189
 
lt_prog_compiler_wl_CXX=
 
12790
 compiler_lib_search_dirs_CXX=
 
12791
if test -n "${compiler_lib_search_path_CXX}"; then
 
12792
 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
 
12793
fi
 
12794
 
 
12795
 
 
12796
 
 
12797
 
 
12798
 
 
12799
 
 
12800
 
 
12801
 
 
12802
 
 
12803
 
 
12804
 
 
12805
 
 
12806
 
 
12807
 
 
12808
 
 
12809
 
 
12810
 
 
12811
 
 
12812
 
 
12813
 
 
12814
 
 
12815
 
 
12816
 
 
12817
 
 
12818
 
 
12819
 
 
12820
 
 
12821
 
 
12822
 
 
12823
 
 
12824
 
 
12825
    lt_prog_compiler_wl_CXX=
11190
12826
lt_prog_compiler_pic_CXX=
11191
12827
lt_prog_compiler_static_CXX=
11192
12828
 
11206
12842
        lt_prog_compiler_static_CXX='-Bstatic'
11207
12843
      fi
11208
12844
      ;;
 
12845
 
11209
12846
    amigaos*)
11210
 
      # FIXME: we need at least 68020 code to build shared libraries, but
11211
 
      # adding the `-m68020' flag to GCC prevents building anything better,
11212
 
      # like `-m68040'.
11213
 
      lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
 
12847
      case $host_cpu in
 
12848
      powerpc)
 
12849
            # see comment about AmigaOS4 .so support
 
12850
            lt_prog_compiler_pic_CXX='-fPIC'
 
12851
        ;;
 
12852
      m68k)
 
12853
            # FIXME: we need at least 68020 code to build shared libraries, but
 
12854
            # adding the `-m68020' flag to GCC prevents building anything better,
 
12855
            # like `-m68040'.
 
12856
            lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
 
12857
        ;;
 
12858
      esac
11214
12859
      ;;
11215
 
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
12860
 
 
12861
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11216
12862
      # PIC is the default for these OSes.
11217
12863
      ;;
11218
 
    mingw* | os2* | pw32*)
 
12864
    mingw* | cygwin* | os2* | pw32*)
11219
12865
      # This hack is so that the source file can tell whether it is being
11220
12866
      # built for inclusion in a dll (and should export symbols for example).
 
12867
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
 
12868
      # (--disable-auto-import) libraries
11221
12869
      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11222
12870
      ;;
11223
12871
    darwin* | rhapsody*)
11229
12877
      # DJGPP does not support shared libraries at all
11230
12878
      lt_prog_compiler_pic_CXX=
11231
12879
      ;;
11232
 
    interix3*)
 
12880
    interix[3-9]*)
11233
12881
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11234
12882
      # Instead, we relocate shared libraries at runtime.
11235
12883
      ;;
11249
12897
        ;;
11250
12898
      esac
11251
12899
      ;;
 
12900
    *qnx* | *nto*)
 
12901
      # QNX uses GNU C++, but need to define -shared option too, otherwise
 
12902
      # it will coredump.
 
12903
      lt_prog_compiler_pic_CXX='-fPIC -shared'
 
12904
      ;;
11252
12905
    *)
11253
12906
      lt_prog_compiler_pic_CXX='-fPIC'
11254
12907
      ;;
11255
12908
    esac
11256
12909
  else
11257
12910
    case $host_os in
11258
 
      aix4* | aix5*)
 
12911
      aix[4-9]*)
11259
12912
        # All AIX code is PIC.
11260
12913
        if test "$host_cpu" = ia64; then
11261
12914
          # AIX 5 now supports IA64 processor
11268
12921
        case $cc_basename in
11269
12922
        cxch68*)
11270
12923
          # Green Hills C++ Compiler
11271
 
          # _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"
 
12924
          # _LT_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"
11272
12925
          ;;
11273
12926
        esac
11274
12927
        ;;
11275
 
       darwin*)
11276
 
         # PIC is the default on this platform
11277
 
         # Common symbols not allowed in MH_DYLIB files
11278
 
         case $cc_basename in
11279
 
           xlc*)
11280
 
           lt_prog_compiler_pic_CXX='-qnocommon'
11281
 
           lt_prog_compiler_wl_CXX='-Wl,'
11282
 
           ;;
11283
 
         esac
11284
 
       ;;
11285
12928
      dgux*)
11286
12929
        case $cc_basename in
11287
12930
          ec++*)
11295
12938
            ;;
11296
12939
        esac
11297
12940
        ;;
11298
 
      freebsd* | kfreebsd*-gnu | dragonfly*)
 
12941
      freebsd* | dragonfly*)
11299
12942
        # FreeBSD uses GNU C++
11300
12943
        ;;
11301
12944
      hpux9* | hpux10* | hpux11*)
11338
12981
            ;;
11339
12982
        esac
11340
12983
        ;;
11341
 
      linux*)
 
12984
      linux* | k*bsd*-gnu)
11342
12985
        case $cc_basename in
11343
12986
          KCC*)
11344
12987
            # KAI C++ Compiler
11345
12988
            lt_prog_compiler_wl_CXX='--backend -Wl,'
11346
12989
            lt_prog_compiler_pic_CXX='-fPIC'
11347
12990
            ;;
11348
 
          icpc* | ecpc*)
 
12991
          icpc* | ecpc* )
11349
12992
            # Intel C++
11350
12993
            lt_prog_compiler_wl_CXX='-Wl,'
11351
12994
            lt_prog_compiler_pic_CXX='-KPIC'
11352
12995
            lt_prog_compiler_static_CXX='-static'
11353
12996
            ;;
11354
 
          pgCC*)
11355
 
            # Portland Group C++ compiler.
 
12997
          pgCC* | pgcpp*)
 
12998
            # Portland Group C++ compiler
11356
12999
            lt_prog_compiler_wl_CXX='-Wl,'
11357
13000
            lt_prog_compiler_pic_CXX='-fpic'
11358
13001
            lt_prog_compiler_static_CXX='-Bstatic'
11364
13007
            lt_prog_compiler_pic_CXX=
11365
13008
            lt_prog_compiler_static_CXX='-non_shared'
11366
13009
            ;;
 
13010
          xlc* | xlC*)
 
13011
            # IBM XL 8.0 on PPC
 
13012
            lt_prog_compiler_wl_CXX='-Wl,'
 
13013
            lt_prog_compiler_pic_CXX='-qpic'
 
13014
            lt_prog_compiler_static_CXX='-qstaticlink'
 
13015
            ;;
11367
13016
          *)
 
13017
            case `$CC -V 2>&1 | sed 5q` in
 
13018
            *Sun\ C*)
 
13019
              # Sun C++ 5.9
 
13020
              lt_prog_compiler_pic_CXX='-KPIC'
 
13021
              lt_prog_compiler_static_CXX='-Bstatic'
 
13022
              lt_prog_compiler_wl_CXX='-Qoption ld '
 
13023
              ;;
 
13024
            esac
11368
13025
            ;;
11369
13026
        esac
11370
13027
        ;;
11381
13038
            ;;
11382
13039
        esac
11383
13040
        ;;
11384
 
      netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
 
13041
      netbsd*)
11385
13042
        ;;
 
13043
      *qnx* | *nto*)
 
13044
        # QNX uses GNU C++, but need to define -shared option too, otherwise
 
13045
        # it will coredump.
 
13046
        lt_prog_compiler_pic_CXX='-fPIC -shared'
 
13047
        ;;
11386
13048
      osf3* | osf4* | osf5*)
11387
13049
        case $cc_basename in
11388
13050
          KCC*)
11437
13099
            ;;
11438
13100
        esac
11439
13101
        ;;
 
13102
      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
 
13103
        case $cc_basename in
 
13104
          CC*)
 
13105
            lt_prog_compiler_wl_CXX='-Wl,'
 
13106
            lt_prog_compiler_pic_CXX='-KPIC'
 
13107
            lt_prog_compiler_static_CXX='-Bstatic'
 
13108
            ;;
 
13109
        esac
 
13110
        ;;
11440
13111
      tandem*)
11441
13112
        case $cc_basename in
11442
13113
          NCC*)
11447
13118
            ;;
11448
13119
        esac
11449
13120
        ;;
11450
 
      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11451
 
        case $cc_basename in
11452
 
          CC*)
11453
 
            lt_prog_compiler_wl_CXX='-Wl,'
11454
 
            lt_prog_compiler_pic_CXX='-KPIC'
11455
 
            lt_prog_compiler_static_CXX='-Bstatic'
11456
 
            ;;
11457
 
        esac
11458
 
        ;;
11459
13121
      vxworks*)
11460
13122
        ;;
11461
13123
      *)
11464
13126
    esac
11465
13127
  fi
11466
13128
 
 
13129
case $host_os in
 
13130
  # For platforms which do not support PIC, -DPIC is meaningless:
 
13131
  *djgpp*)
 
13132
    lt_prog_compiler_pic_CXX=
 
13133
    ;;
 
13134
  *)
 
13135
    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
 
13136
    ;;
 
13137
esac
11467
13138
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11468
13139
echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
11469
13140
 
 
13141
 
 
13142
 
11470
13143
#
11471
13144
# Check to make sure the PIC flag actually works.
11472
13145
#
11473
13146
if test -n "$lt_prog_compiler_pic_CXX"; then
11474
 
 
11475
 
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
 
13147
  echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11476
13148
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
11477
 
if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
 
13149
if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
11478
13150
  echo $ECHO_N "(cached) $ECHO_C" >&6
11479
13151
else
11480
 
  lt_prog_compiler_pic_works_CXX=no
11481
 
  ac_outfile=conftest.$ac_objext
11482
 
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
13152
  lt_cv_prog_compiler_pic_works_CXX=no
 
13153
   ac_outfile=conftest.$ac_objext
 
13154
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11483
13155
   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11484
13156
   # Insert the option either (1) after the last *FLAGS variable, or
11485
13157
   # (2) before a word containing "conftest.", or (3) at the end.
11490
13162
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11491
13163
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11492
13164
   -e 's:$: $lt_compiler_flag:'`
11493
 
   (eval echo "\"\$as_me:11493: $lt_compile\"" >&5)
 
13165
   (eval echo "\"\$as_me:13165: $lt_compile\"" >&5)
11494
13166
   (eval "$lt_compile" 2>conftest.err)
11495
13167
   ac_status=$?
11496
13168
   cat conftest.err >&5
11497
 
   echo "$as_me:11497: \$? = $ac_status" >&5
 
13169
   echo "$as_me:13169: \$? = $ac_status" >&5
11498
13170
   if (exit $ac_status) && test -s "$ac_outfile"; then
11499
13171
     # The compiler can only warn and ignore the option if not recognized
11500
13172
     # So say no if there are warnings other than the usual output.
11501
 
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
13173
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
11502
13174
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11503
13175
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11504
 
       lt_prog_compiler_pic_works_CXX=yes
 
13176
       lt_cv_prog_compiler_pic_works_CXX=yes
11505
13177
     fi
11506
13178
   fi
11507
 
   $rm conftest*
 
13179
   $RM conftest*
11508
13180
 
11509
13181
fi
11510
 
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11511
 
echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
 
13182
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
 
13183
echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_CXX" >&6
11512
13184
 
11513
 
if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
 
13185
if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
11514
13186
    case $lt_prog_compiler_pic_CXX in
11515
13187
     "" | " "*) ;;
11516
13188
     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11521
13193
fi
11522
13194
 
11523
13195
fi
11524
 
case $host_os in
11525
 
  # For platforms which do not support PIC, -DPIC is meaningless:
11526
 
  *djgpp*)
11527
 
    lt_prog_compiler_pic_CXX=
11528
 
    ;;
11529
 
  *)
11530
 
    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11531
 
    ;;
11532
 
esac
 
13196
 
 
13197
 
11533
13198
 
11534
13199
#
11535
13200
# Check to make sure the static flag actually works.
11537
13202
wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
11538
13203
echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11539
13204
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
11540
 
if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
 
13205
if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
11541
13206
  echo $ECHO_N "(cached) $ECHO_C" >&6
11542
13207
else
11543
 
  lt_prog_compiler_static_works_CXX=no
 
13208
  lt_cv_prog_compiler_static_works_CXX=no
11544
13209
   save_LDFLAGS="$LDFLAGS"
11545
13210
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11546
 
   printf "$lt_simple_link_test_code" > conftest.$ac_ext
 
13211
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
11547
13212
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11548
13213
     # The linker can only warn and ignore the option if not recognized
11549
13214
     # So say no if there are warnings
11550
13215
     if test -s conftest.err; then
11551
13216
       # Append any errors to the config.log.
11552
13217
       cat conftest.err 1>&5
11553
 
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
 
13218
       $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
11554
13219
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11555
13220
       if diff conftest.exp conftest.er2 >/dev/null; then
11556
 
         lt_prog_compiler_static_works_CXX=yes
 
13221
         lt_cv_prog_compiler_static_works_CXX=yes
11557
13222
       fi
11558
13223
     else
11559
 
       lt_prog_compiler_static_works_CXX=yes
 
13224
       lt_cv_prog_compiler_static_works_CXX=yes
11560
13225
     fi
11561
13226
   fi
11562
 
   $rm conftest*
 
13227
   $RM -r conftest*
11563
13228
   LDFLAGS="$save_LDFLAGS"
11564
13229
 
11565
13230
fi
11566
 
echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
11567
 
echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6
 
13231
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
 
13232
echo "${ECHO_T}$lt_cv_prog_compiler_static_works_CXX" >&6
11568
13233
 
11569
 
if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
 
13234
if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
11570
13235
    :
11571
13236
else
11572
13237
    lt_prog_compiler_static_CXX=
11573
13238
fi
11574
13239
 
11575
13240
 
11576
 
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11577
 
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11578
 
if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11579
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
11580
 
else
11581
 
  lt_cv_prog_compiler_c_o_CXX=no
11582
 
   $rm -r conftest 2>/dev/null
11583
 
   mkdir conftest
11584
 
   cd conftest
11585
 
   mkdir out
11586
 
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11587
 
 
11588
 
   lt_compiler_flag="-o out/conftest2.$ac_objext"
11589
 
   # Insert the option either (1) after the last *FLAGS variable, or
11590
 
   # (2) before a word containing "conftest.", or (3) at the end.
11591
 
   # Note that $ac_compile itself does not contain backslashes and begins
11592
 
   # with a dollar sign (not a hyphen), so the echo should work correctly.
11593
 
   lt_compile=`echo "$ac_compile" | $SED \
11594
 
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11595
 
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11596
 
   -e 's:$: $lt_compiler_flag:'`
11597
 
   (eval echo "\"\$as_me:11597: $lt_compile\"" >&5)
11598
 
   (eval "$lt_compile" 2>out/conftest.err)
11599
 
   ac_status=$?
11600
 
   cat out/conftest.err >&5
11601
 
   echo "$as_me:11601: \$? = $ac_status" >&5
11602
 
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
11603
 
   then
11604
 
     # The compiler can only warn and ignore the option if not recognized
11605
 
     # So say no if there are warnings
11606
 
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
11607
 
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11608
 
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11609
 
       lt_cv_prog_compiler_c_o_CXX=yes
11610
 
     fi
11611
 
   fi
11612
 
   chmod u+w . 2>&5
11613
 
   $rm conftest*
11614
 
   # SGI C++ compiler will create directory out/ii_files/ for
11615
 
   # template instantiation
11616
 
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11617
 
   $rm out/* && rmdir out
11618
 
   cd ..
11619
 
   rmdir conftest
11620
 
   $rm conftest*
11621
 
 
11622
 
fi
11623
 
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11624
 
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
 
13241
 
 
13242
 
 
13243
    echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
13244
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
 
13245
if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
 
13246
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
13247
else
 
13248
  lt_cv_prog_compiler_c_o_CXX=no
 
13249
   $RM -r conftest 2>/dev/null
 
13250
   mkdir conftest
 
13251
   cd conftest
 
13252
   mkdir out
 
13253
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
13254
 
 
13255
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
13256
   # Insert the option either (1) after the last *FLAGS variable, or
 
13257
   # (2) before a word containing "conftest.", or (3) at the end.
 
13258
   # Note that $ac_compile itself does not contain backslashes and begins
 
13259
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
13260
   lt_compile=`echo "$ac_compile" | $SED \
 
13261
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
13262
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
13263
   -e 's:$: $lt_compiler_flag:'`
 
13264
   (eval echo "\"\$as_me:13264: $lt_compile\"" >&5)
 
13265
   (eval "$lt_compile" 2>out/conftest.err)
 
13266
   ac_status=$?
 
13267
   cat out/conftest.err >&5
 
13268
   echo "$as_me:13268: \$? = $ac_status" >&5
 
13269
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
13270
   then
 
13271
     # The compiler can only warn and ignore the option if not recognized
 
13272
     # So say no if there are warnings
 
13273
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
 
13274
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 
13275
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 
13276
       lt_cv_prog_compiler_c_o_CXX=yes
 
13277
     fi
 
13278
   fi
 
13279
   chmod u+w . 2>&5
 
13280
   $RM conftest*
 
13281
   # SGI C++ compiler will create directory out/ii_files/ for
 
13282
   # template instantiation
 
13283
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
 
13284
   $RM out/* && rmdir out
 
13285
   cd ..
 
13286
   $RM -r conftest
 
13287
   $RM conftest*
 
13288
 
 
13289
fi
 
13290
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
 
13291
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
 
13292
 
 
13293
 
 
13294
 
 
13295
    echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
13296
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
 
13297
if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
 
13298
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
13299
else
 
13300
  lt_cv_prog_compiler_c_o_CXX=no
 
13301
   $RM -r conftest 2>/dev/null
 
13302
   mkdir conftest
 
13303
   cd conftest
 
13304
   mkdir out
 
13305
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
13306
 
 
13307
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
13308
   # Insert the option either (1) after the last *FLAGS variable, or
 
13309
   # (2) before a word containing "conftest.", or (3) at the end.
 
13310
   # Note that $ac_compile itself does not contain backslashes and begins
 
13311
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
13312
   lt_compile=`echo "$ac_compile" | $SED \
 
13313
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
13314
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
13315
   -e 's:$: $lt_compiler_flag:'`
 
13316
   (eval echo "\"\$as_me:13316: $lt_compile\"" >&5)
 
13317
   (eval "$lt_compile" 2>out/conftest.err)
 
13318
   ac_status=$?
 
13319
   cat out/conftest.err >&5
 
13320
   echo "$as_me:13320: \$? = $ac_status" >&5
 
13321
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
13322
   then
 
13323
     # The compiler can only warn and ignore the option if not recognized
 
13324
     # So say no if there are warnings
 
13325
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
 
13326
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 
13327
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 
13328
       lt_cv_prog_compiler_c_o_CXX=yes
 
13329
     fi
 
13330
   fi
 
13331
   chmod u+w . 2>&5
 
13332
   $RM conftest*
 
13333
   # SGI C++ compiler will create directory out/ii_files/ for
 
13334
   # template instantiation
 
13335
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
 
13336
   $RM out/* && rmdir out
 
13337
   cd ..
 
13338
   $RM -r conftest
 
13339
   $RM conftest*
 
13340
 
 
13341
fi
 
13342
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
 
13343
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
 
13344
 
 
13345
 
11625
13346
 
11626
13347
 
11627
13348
hard_links="nottested"
11630
13351
  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11631
13352
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
11632
13353
  hard_links=yes
11633
 
  $rm conftest*
 
13354
  $RM conftest*
11634
13355
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
11635
13356
  touch conftest.a
11636
13357
  ln conftest.a conftest.b 2>&5 || hard_links=no
11646
13367
  need_locks=no
11647
13368
fi
11648
13369
 
11649
 
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
13370
 
 
13371
 
 
13372
    echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11650
13373
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11651
13374
 
11652
13375
  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11653
13376
  case $host_os in
11654
 
  aix4* | aix5*)
 
13377
  aix[4-9]*)
11655
13378
    # If we're using GNU nm, then we don't want the "-C" option.
11656
13379
    # -C means demangle to AIX nm, but means don't demangle with GNU nm
11657
 
    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11658
 
      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'
 
13380
    if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
 
13381
      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'
11659
13382
    else
11660
 
      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'
 
13383
      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'
11661
13384
    fi
11662
13385
    ;;
11663
13386
  pw32*)
11664
13387
    export_symbols_cmds_CXX="$ltdll_cmds"
11665
13388
  ;;
11666
13389
  cygwin* | mingw*)
11667
 
    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([^ ]*\) [^ ]*/\1 DATA/;/^I /d;/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
11668
 
  ;;
11669
 
  kfreebsd*-gnu)
11670
 
    link_all_deplibs_CXX=no
11671
 
  ;;
11672
 
  linux*)
11673
 
    link_all_deplibs_CXX=no
 
13390
    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
11674
13391
  ;;
11675
13392
  *)
11676
13393
    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11677
13394
  ;;
11678
13395
  esac
 
13396
  exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
11679
13397
 
11680
13398
echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11681
13399
echo "${ECHO_T}$ld_shlibs_CXX" >&6
11682
13400
test "$ld_shlibs_CXX" = no && can_build_shared=no
11683
13401
 
 
13402
with_gnu_ld_CXX=$with_gnu_ld
 
13403
 
 
13404
 
 
13405
 
 
13406
 
 
13407
 
 
13408
 
11684
13409
#
11685
13410
# Do we need to explicitly link libc?
11686
13411
#
11700
13425
      # to ld, don't add -lc before -lgcc.
11701
13426
      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11702
13427
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
11703
 
      $rm conftest*
11704
 
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
13428
      $RM conftest*
 
13429
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11705
13430
 
11706
13431
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11707
13432
  (eval $ac_compile) 2>&5
11721
13446
        libname=conftest
11722
13447
        lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11723
13448
        allow_undefined_flag_CXX=
11724
 
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11725
 
  (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
13449
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
 
13450
  (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11726
13451
  ac_status=$?
11727
13452
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11728
13453
  (exit $ac_status); }
11735
13460
      else
11736
13461
        cat conftest.err 1>&5
11737
13462
      fi
11738
 
      $rm conftest*
 
13463
      $RM conftest*
11739
13464
      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11740
13465
echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
11741
13466
      ;;
11744
13469
  ;;
11745
13470
esac
11746
13471
 
11747
 
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
 
13472
 
 
13473
 
 
13474
 
 
13475
 
 
13476
 
 
13477
 
 
13478
 
 
13479
 
 
13480
 
 
13481
 
 
13482
 
 
13483
 
 
13484
 
 
13485
 
 
13486
 
 
13487
 
 
13488
 
 
13489
 
 
13490
 
 
13491
 
 
13492
 
 
13493
 
 
13494
 
 
13495
 
 
13496
 
 
13497
 
 
13498
 
 
13499
 
 
13500
 
 
13501
 
 
13502
 
 
13503
 
 
13504
 
 
13505
 
 
13506
 
 
13507
 
 
13508
 
 
13509
 
 
13510
 
 
13511
 
 
13512
 
 
13513
 
 
13514
 
 
13515
 
 
13516
 
 
13517
 
 
13518
 
 
13519
 
 
13520
 
 
13521
 
 
13522
 
 
13523
 
 
13524
 
 
13525
 
 
13526
 
 
13527
 
 
13528
 
 
13529
 
 
13530
 
 
13531
 
 
13532
 
 
13533
 
 
13534
 
 
13535
    echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11748
13536
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
 
13537
 
11749
13538
library_names_spec=
11750
13539
libname_spec='lib$name'
11751
13540
soname_spec=
11759
13548
version_type=none
11760
13549
dynamic_linker="$host_os ld.so"
11761
13550
sys_lib_dlsearch_path_spec="/lib /usr/lib"
11762
 
if test "$GCC" = yes; then
11763
 
  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11764
 
  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11765
 
    # if the path contains ";" then we assume it to be the separator
11766
 
    # otherwise default to the standard path separator (i.e. ":") - it is
11767
 
    # assumed that no part of a normal pathname contains ";" but that should
11768
 
    # okay in the real world where ";" in dirpaths is itself problematic.
11769
 
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11770
 
  else
11771
 
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11772
 
  fi
11773
 
else
11774
 
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11775
 
fi
11776
13551
need_lib_prefix=unknown
11777
13552
hardcode_into_libs=no
11778
13553
 
11790
13565
  soname_spec='${libname}${release}${shared_ext}$major'
11791
13566
  ;;
11792
13567
 
11793
 
aix4* | aix5*)
 
13568
aix[4-9]*)
11794
13569
  version_type=linux
11795
13570
  need_lib_prefix=no
11796
13571
  need_version=no
11809
13584
      aix4 | aix4.[01] | aix4.[01].*)
11810
13585
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11811
13586
           echo ' yes '
11812
 
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
 
13587
           echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11813
13588
        :
11814
13589
      else
11815
13590
        can_build_shared=no
11835
13610
  ;;
11836
13611
 
11837
13612
amigaos*)
11838
 
  library_names_spec='$libname.ixlibrary $libname.a'
11839
 
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
11840
 
  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'
 
13613
  case $host_cpu in
 
13614
  powerpc)
 
13615
    # Since July 2007 AmigaOS4 officially supports .so libraries.
 
13616
    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
 
13617
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
13618
    ;;
 
13619
  m68k)
 
13620
    library_names_spec='$libname.ixlibrary $libname.a'
 
13621
    # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
13622
    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'
 
13623
    ;;
 
13624
  esac
11841
13625
  ;;
11842
13626
 
11843
13627
beos*)
11871
13655
    library_names_spec='$libname.dll.a'
11872
13656
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
11873
13657
    postinstall_cmds='base_file=`basename \${file}`~
11874
 
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
 
13658
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11875
13659
      dldir=$destdir/`dirname \$dlpath`~
11876
13660
      test -d \$dldir || mkdir -p \$dldir~
11877
13661
      $install_prog $dir/$dlname \$dldir/$dlname~
11878
 
      chmod a+x \$dldir/$dlname'
 
13662
      chmod a+x \$dldir/$dlname~
 
13663
      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
 
13664
        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
 
13665
      fi'
11879
13666
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11880
13667
      dlpath=$dir/\$dldll~
11881
 
       $rm \$dlpath'
 
13668
       $RM \$dlpath'
11882
13669
    shlibpath_overrides_runpath=yes
11883
13670
 
11884
13671
    case $host_os in
11890
13677
    mingw*)
11891
13678
      # MinGW DLLs use traditional 'lib' prefix
11892
13679
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11893
 
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11894
 
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
 
13680
      sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
13681
      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11895
13682
        # It is most probably a Windows format PATH printed by
11896
13683
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
11897
13684
        # path with ; separators, and with drive letters. We can handle the
11898
13685
        # drive letters (cygwin fileutils understands them), so leave them,
11899
13686
        # especially as we might pass files found there to a mingw objdump,
11900
13687
        # which wouldn't understand a cygwinified path. Ahh.
11901
 
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
13688
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11902
13689
      else
11903
 
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
13690
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11904
13691
      fi
11905
13692
      ;;
11906
13693
    pw32*)
11924
13711
  version_type=darwin
11925
13712
  need_lib_prefix=no
11926
13713
  need_version=no
11927
 
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
13714
  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11928
13715
  soname_spec='${libname}${release}${major}$shared_ext'
11929
13716
  shlibpath_overrides_runpath=yes
11930
13717
  shlibpath_var=DYLD_LIBRARY_PATH
11931
13718
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11932
 
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11933
 
  if test "$GCC" = yes; then
11934
 
    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"`
11935
 
  else
11936
 
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
11937
 
  fi
 
13719
 
11938
13720
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11939
13721
  ;;
11940
13722
 
11951
13733
  dynamic_linker=no
11952
13734
  ;;
11953
13735
 
11954
 
kfreebsd*-gnu)
11955
 
  version_type=linux
11956
 
  need_lib_prefix=no
11957
 
  need_version=no
11958
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11959
 
  soname_spec='${libname}${release}${shared_ext}$major'
11960
 
  shlibpath_var=LD_LIBRARY_PATH
11961
 
  shlibpath_overrides_runpath=no
11962
 
  hardcode_into_libs=yes
11963
 
  dynamic_linker='GNU ld.so'
11964
 
  ;;
11965
 
 
11966
13736
freebsd* | dragonfly*)
11967
13737
  # DragonFly does not have aout.  When/if they implement a new
11968
13738
  # versioning mechanism, adjust this.
12000
13770
    shlibpath_overrides_runpath=no
12001
13771
    hardcode_into_libs=yes
12002
13772
    ;;
12003
 
  freebsd*) # from 4.6 on
 
13773
  *) # from 4.6 on, and DragonFly
12004
13774
    shlibpath_overrides_runpath=yes
12005
13775
    hardcode_into_libs=yes
12006
13776
    ;;
12039
13809
    fi
12040
13810
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12041
13811
    ;;
12042
 
   hppa*64*)
12043
 
     shrext_cmds='.sl'
12044
 
     hardcode_into_libs=yes
12045
 
     dynamic_linker="$host_os dld.sl"
12046
 
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12047
 
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12048
 
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12049
 
     soname_spec='${libname}${release}${shared_ext}$major'
12050
 
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12051
 
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12052
 
     ;;
12053
 
   *)
 
13812
  hppa*64*)
 
13813
    shrext_cmds='.sl'
 
13814
    hardcode_into_libs=yes
 
13815
    dynamic_linker="$host_os dld.sl"
 
13816
    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
13817
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
13818
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
13819
    soname_spec='${libname}${release}${shared_ext}$major'
 
13820
    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
13821
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
13822
    ;;
 
13823
  *)
12054
13824
    shrext_cmds='.sl'
12055
13825
    dynamic_linker="$host_os dld.sl"
12056
13826
    shlibpath_var=SHLIB_PATH
12063
13833
  postinstall_cmds='chmod 555 $lib'
12064
13834
  ;;
12065
13835
 
12066
 
interix3*)
 
13836
interix[3-9]*)
12067
13837
  version_type=linux
12068
13838
  need_lib_prefix=no
12069
13839
  need_version=no
12118
13888
  ;;
12119
13889
 
12120
13890
# This must be Linux ELF.
12121
 
linux*)
 
13891
linux* | k*bsd*-gnu)
12122
13892
  version_type=linux
12123
13893
  need_lib_prefix=no
12124
13894
  need_version=no
12127
13897
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12128
13898
  shlibpath_var=LD_LIBRARY_PATH
12129
13899
  shlibpath_overrides_runpath=no
 
13900
  # Some binutils ld are patched to set DT_RUNPATH
 
13901
  save_LDFLAGS=$LDFLAGS
 
13902
  save_libdir=$libdir
 
13903
  eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
 
13904
       LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
 
13905
  cat >conftest.$ac_ext <<_ACEOF
 
13906
/* confdefs.h.  */
 
13907
_ACEOF
 
13908
cat confdefs.h >>conftest.$ac_ext
 
13909
cat >>conftest.$ac_ext <<_ACEOF
 
13910
/* end confdefs.h.  */
 
13911
 
 
13912
int
 
13913
main ()
 
13914
{
 
13915
 
 
13916
  ;
 
13917
  return 0;
 
13918
}
 
13919
_ACEOF
 
13920
rm -f conftest.$ac_objext conftest$ac_exeext
 
13921
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
13922
  (eval $ac_link) 2>conftest.er1
 
13923
  ac_status=$?
 
13924
  grep -v '^ *+' conftest.er1 >conftest.err
 
13925
  rm -f conftest.er1
 
13926
  cat conftest.err >&5
 
13927
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13928
  (exit $ac_status); } &&
 
13929
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
13930
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
13931
  (eval $ac_try) 2>&5
 
13932
  ac_status=$?
 
13933
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13934
  (exit $ac_status); }; } &&
 
13935
         { ac_try='test -s conftest$ac_exeext'
 
13936
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
13937
  (eval $ac_try) 2>&5
 
13938
  ac_status=$?
 
13939
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13940
  (exit $ac_status); }; }; then
 
13941
  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
 
13942
  shlibpath_overrides_runpath=yes
 
13943
fi
 
13944
 
 
13945
else
 
13946
  echo "$as_me: failed program was:" >&5
 
13947
sed 's/^/| /' conftest.$ac_ext >&5
 
13948
 
 
13949
fi
 
13950
rm -f conftest.err conftest.$ac_objext \
 
13951
      conftest$ac_exeext conftest.$ac_ext
 
13952
  LDFLAGS=$save_LDFLAGS
 
13953
  libdir=$save_libdir
 
13954
 
12130
13955
  # This implies no fast_install, which is unacceptable.
12131
13956
  # Some rework will be needed to allow for fast_install
12132
13957
  # before this can be enabled.
12134
13959
 
12135
13960
  # Append ld.so.conf contents to the search path
12136
13961
  if test -f /etc/ld.so.conf; then
12137
 
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
 
13962
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[       ]*hwcap[        ]/d;s/[:,      ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
12138
13963
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12139
13964
  fi
12140
13965
 
12147
13972
  dynamic_linker='GNU/Linux ld.so'
12148
13973
  ;;
12149
13974
 
12150
 
netbsdelf*-gnu)
12151
 
  version_type=linux
12152
 
  need_lib_prefix=no
12153
 
  need_version=no
12154
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12155
 
  soname_spec='${libname}${release}${shared_ext}$major'
12156
 
  shlibpath_var=LD_LIBRARY_PATH
12157
 
  shlibpath_overrides_runpath=no
12158
 
  hardcode_into_libs=yes
12159
 
  dynamic_linker='NetBSD ld.elf_so'
12160
 
  ;;
12161
 
 
12162
 
knetbsd*-gnu)
12163
 
  version_type=linux
12164
 
  need_lib_prefix=no
12165
 
  need_version=no
12166
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12167
 
  soname_spec='${libname}${release}${shared_ext}$major'
12168
 
  shlibpath_var=LD_LIBRARY_PATH
12169
 
  shlibpath_overrides_runpath=no
12170
 
  hardcode_into_libs=yes
12171
 
  dynamic_linker='GNU ld.so'
12172
 
  ;;
12173
 
 
12174
13975
netbsd*)
12175
13976
  version_type=sunos
12176
13977
  need_lib_prefix=no
12177
13978
  need_version=no
12178
 
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
13979
  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12179
13980
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12180
13981
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12181
13982
    dynamic_linker='NetBSD (a.out) ld.so'
12196
13997
  shlibpath_overrides_runpath=yes
12197
13998
  ;;
12198
13999
 
12199
 
nto-qnx*)
12200
 
  version_type=linux
 
14000
*nto* | *qnx*)
 
14001
  version_type=qnx
12201
14002
  need_lib_prefix=no
12202
14003
  need_version=no
12203
14004
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12204
14005
  soname_spec='${libname}${release}${shared_ext}$major'
12205
14006
  shlibpath_var=LD_LIBRARY_PATH
12206
 
  shlibpath_overrides_runpath=yes
 
14007
  shlibpath_overrides_runpath=no
 
14008
  hardcode_into_libs=yes
 
14009
  dynamic_linker='ldqnx.so'
12207
14010
  ;;
12208
14011
 
12209
14012
openbsd*)
12212
14015
  need_lib_prefix=no
12213
14016
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12214
14017
  case $host_os in
12215
 
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12216
 
    *)                         need_version=no  ;;
 
14018
    openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
 
14019
    *)                          need_version=no  ;;
12217
14020
  esac
12218
14021
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12219
14022
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12220
14023
  shlibpath_var=LD_LIBRARY_PATH
12221
 
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
14024
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12222
14025
    case $host_os in
12223
14026
      openbsd2.[89] | openbsd2.[89].*)
12224
14027
        shlibpath_overrides_runpath=no
12252
14055
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12253
14056
  ;;
12254
14057
 
 
14058
rdos*)
 
14059
  dynamic_linker=no
 
14060
  ;;
 
14061
 
12255
14062
solaris*)
12256
14063
  version_type=linux
12257
14064
  need_lib_prefix=no
12286
14093
    sni)
12287
14094
      shlibpath_overrides_runpath=no
12288
14095
      need_lib_prefix=no
12289
 
      export_dynamic_flag_spec='${wl}-Blargedynsym'
12290
14096
      runpath_var=LD_RUN_PATH
12291
14097
      ;;
12292
14098
    siemens)
12317
14123
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12318
14124
  soname_spec='${libname}${release}${shared_ext}$major'
12319
14125
  shlibpath_var=LD_LIBRARY_PATH
 
14126
  shlibpath_overrides_runpath=yes
12320
14127
  hardcode_into_libs=yes
12321
14128
  if test "$with_gnu_ld" = yes; then
12322
14129
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12323
 
    shlibpath_overrides_runpath=no
12324
14130
  else
12325
14131
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12326
 
    shlibpath_overrides_runpath=yes
12327
14132
    case $host_os in
12328
14133
      sco3.2v5*)
12329
14134
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12333
14138
  sys_lib_dlsearch_path_spec='/usr/lib'
12334
14139
  ;;
12335
14140
 
 
14141
tpf*)
 
14142
  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
 
14143
  version_type=linux
 
14144
  need_lib_prefix=no
 
14145
  need_version=no
 
14146
  library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14147
  shlibpath_var=LD_LIBRARY_PATH
 
14148
  shlibpath_overrides_runpath=no
 
14149
  hardcode_into_libs=yes
 
14150
  ;;
 
14151
 
12336
14152
uts4*)
12337
14153
  version_type=linux
12338
14154
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12353
14169
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12354
14170
fi
12355
14171
 
12356
 
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
 
14172
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
 
14173
  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
 
14174
fi
 
14175
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
 
14176
  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
 
14177
fi
 
14178
 
 
14179
 
 
14180
 
 
14181
 
 
14182
 
 
14183
 
 
14184
 
 
14185
 
 
14186
 
 
14187
 
 
14188
 
 
14189
 
 
14190
 
 
14191
 
 
14192
 
 
14193
 
 
14194
 
 
14195
 
 
14196
 
 
14197
 
 
14198
 
 
14199
 
 
14200
 
 
14201
 
 
14202
 
 
14203
 
 
14204
 
 
14205
 
 
14206
 
 
14207
 
 
14208
 
 
14209
 
 
14210
 
 
14211
 
 
14212
 
 
14213
 
 
14214
    echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12357
14215
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
12358
14216
hardcode_action_CXX=
12359
 
if test -n "$hardcode_libdir_flag_spec_CXX" || \
12360
 
   test -n "$runpath_var_CXX" || \
 
14217
if test -n "$hardcode_libdir_flag_spec_CXX" ||
 
14218
   test -n "$runpath_var_CXX" ||
12361
14219
   test "X$hardcode_automatic_CXX" = "Xyes" ; then
12362
14220
 
12363
 
  # We can hardcode non-existant directories.
 
14221
  # We can hardcode non-existent directories.
12364
14222
  if test "$hardcode_direct_CXX" != no &&
12365
14223
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
12366
14224
     # have to relink, otherwise we might link with an installed library
12367
14225
     # when we should be linking with a yet-to-be-installed one
12368
 
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
 
14226
     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
12369
14227
     test "$hardcode_minus_L_CXX" != no; then
12370
14228
    # Linking always hardcodes the temporary library directory.
12371
14229
    hardcode_action_CXX=relink
12381
14239
echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
12382
14240
echo "${ECHO_T}$hardcode_action_CXX" >&6
12383
14241
 
12384
 
if test "$hardcode_action_CXX" = relink; then
12385
 
  # Fast installation is not supported
12386
 
  enable_fast_install=no
12387
 
elif test "$shlibpath_overrides_runpath" = yes ||
12388
 
     test "$enable_shared" = no; then
12389
 
  # Fast installation is not necessary
12390
 
  enable_fast_install=needless
12391
 
fi
12392
 
 
12393
 
 
12394
 
# The else clause should only fire when bootstrapping the
12395
 
# libtool distribution, otherwise you forgot to ship ltmain.sh
12396
 
# with your package, and you will get complaints that there are
12397
 
# no rules to generate ltmain.sh.
12398
 
if test -f "$ltmain"; then
12399
 
  # See if we are running on zsh, and set the options which allow our commands through
12400
 
  # without removal of \ escapes.
12401
 
  if test -n "${ZSH_VERSION+set}" ; then
12402
 
    setopt NO_GLOB_SUBST
12403
 
  fi
12404
 
  # Now quote all the things that may contain metacharacters while being
12405
 
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
12406
 
  # variables and quote the copies for generation of the libtool script.
12407
 
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
12408
 
    SED SHELL STRIP \
12409
 
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12410
 
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12411
 
    deplibs_check_method reload_flag reload_cmds need_locks \
12412
 
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12413
 
    lt_cv_sys_global_symbol_to_c_name_address \
12414
 
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12415
 
    old_postinstall_cmds old_postuninstall_cmds \
12416
 
    compiler_CXX \
12417
 
    CC_CXX \
12418
 
    LD_CXX \
12419
 
    lt_prog_compiler_wl_CXX \
12420
 
    lt_prog_compiler_pic_CXX \
12421
 
    lt_prog_compiler_static_CXX \
12422
 
    lt_prog_compiler_no_builtin_flag_CXX \
12423
 
    export_dynamic_flag_spec_CXX \
12424
 
    thread_safe_flag_spec_CXX \
12425
 
    whole_archive_flag_spec_CXX \
12426
 
    enable_shared_with_static_runtimes_CXX \
12427
 
    old_archive_cmds_CXX \
12428
 
    old_archive_from_new_cmds_CXX \
12429
 
    predep_objects_CXX \
12430
 
    postdep_objects_CXX \
12431
 
    predeps_CXX \
12432
 
    postdeps_CXX \
12433
 
    compiler_lib_search_path_CXX \
12434
 
    archive_cmds_CXX \
12435
 
    archive_expsym_cmds_CXX \
12436
 
    postinstall_cmds_CXX \
12437
 
    postuninstall_cmds_CXX \
12438
 
    old_archive_from_expsyms_cmds_CXX \
12439
 
    allow_undefined_flag_CXX \
12440
 
    no_undefined_flag_CXX \
12441
 
    export_symbols_cmds_CXX \
12442
 
    hardcode_libdir_flag_spec_CXX \
12443
 
    hardcode_libdir_flag_spec_ld_CXX \
12444
 
    hardcode_libdir_separator_CXX \
12445
 
    hardcode_automatic_CXX \
12446
 
    module_cmds_CXX \
12447
 
    module_expsym_cmds_CXX \
12448
 
    lt_cv_prog_compiler_c_o_CXX \
12449
 
    exclude_expsyms_CXX \
12450
 
    include_expsyms_CXX; do
12451
 
 
12452
 
    case $var in
12453
 
    old_archive_cmds_CXX | \
12454
 
    old_archive_from_new_cmds_CXX | \
12455
 
    archive_cmds_CXX | \
12456
 
    archive_expsym_cmds_CXX | \
12457
 
    module_cmds_CXX | \
12458
 
    module_expsym_cmds_CXX | \
12459
 
    old_archive_from_expsyms_cmds_CXX | \
12460
 
    export_symbols_cmds_CXX | \
12461
 
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
12462
 
    postinstall_cmds | postuninstall_cmds | \
12463
 
    old_postinstall_cmds | old_postuninstall_cmds | \
12464
 
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12465
 
      # Double-quote double-evaled strings.
12466
 
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12467
 
      ;;
12468
 
    *)
12469
 
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12470
 
      ;;
12471
 
    esac
12472
 
  done
12473
 
 
12474
 
  case $lt_echo in
12475
 
  *'\$0 --fallback-echo"')
12476
 
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12477
 
    ;;
12478
 
  esac
12479
 
 
12480
 
cfgfile="$ofile"
12481
 
 
12482
 
  cat <<__EOF__ >> "$cfgfile"
12483
 
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
12484
 
 
12485
 
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12486
 
 
12487
 
# Shell to use when invoking shell scripts.
12488
 
SHELL=$lt_SHELL
12489
 
 
12490
 
# Whether or not to build shared libraries.
12491
 
build_libtool_libs=$enable_shared
12492
 
 
12493
 
# Whether or not to build static libraries.
12494
 
build_old_libs=$enable_static
12495
 
 
12496
 
# Whether or not to add -lc for building shared libraries.
12497
 
build_libtool_need_lc=$archive_cmds_need_lc_CXX
12498
 
 
12499
 
# Whether or not to disallow shared libs when runtime libs are static
12500
 
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12501
 
 
12502
 
# Whether or not to optimize for fast installation.
12503
 
fast_install=$enable_fast_install
12504
 
 
12505
 
# The host system.
12506
 
host_alias=$host_alias
12507
 
host=$host
12508
 
host_os=$host_os
12509
 
 
12510
 
# The build system.
12511
 
build_alias=$build_alias
12512
 
build=$build
12513
 
build_os=$build_os
12514
 
 
12515
 
# An echo program that does not interpret backslashes.
12516
 
echo=$lt_echo
12517
 
 
12518
 
# The archiver.
12519
 
AR=$lt_AR
12520
 
AR_FLAGS=$lt_AR_FLAGS
12521
 
 
12522
 
# A C compiler.
12523
 
LTCC=$lt_LTCC
12524
 
 
12525
 
# LTCC compiler flags.
12526
 
LTCFLAGS=$lt_LTCFLAGS
12527
 
 
12528
 
# A language-specific compiler.
12529
 
CC=$lt_compiler_CXX
12530
 
 
12531
 
# Is the compiler the GNU C compiler?
12532
 
with_gcc=$GCC_CXX
12533
 
 
12534
 
# An ERE matcher.
12535
 
EGREP=$lt_EGREP
12536
 
 
12537
 
# The linker used to build libraries.
12538
 
LD=$lt_LD_CXX
12539
 
 
12540
 
# Whether we need hard or soft links.
12541
 
LN_S=$lt_LN_S
12542
 
 
12543
 
# A BSD-compatible nm program.
12544
 
NM=$lt_NM
12545
 
 
12546
 
# A symbol stripping program
12547
 
STRIP=$lt_STRIP
12548
 
 
12549
 
# Used to examine libraries when file_magic_cmd begins "file"
12550
 
MAGIC_CMD=$MAGIC_CMD
12551
 
 
12552
 
# Used on cygwin: DLL creation program.
12553
 
DLLTOOL="$DLLTOOL"
12554
 
 
12555
 
# Used on cygwin: object dumper.
12556
 
OBJDUMP="$OBJDUMP"
12557
 
 
12558
 
# Used on cygwin: assembler.
12559
 
AS="$AS"
12560
 
 
12561
 
# The name of the directory that contains temporary libtool files.
12562
 
objdir=$objdir
12563
 
 
12564
 
# How to create reloadable object files.
12565
 
reload_flag=$lt_reload_flag
12566
 
reload_cmds=$lt_reload_cmds
12567
 
 
12568
 
# How to pass a linker flag through the compiler.
12569
 
wl=$lt_lt_prog_compiler_wl_CXX
12570
 
 
12571
 
# Object file suffix (normally "o").
12572
 
objext="$ac_objext"
12573
 
 
12574
 
# Old archive suffix (normally "a").
12575
 
libext="$libext"
12576
 
 
12577
 
# Shared library suffix (normally ".so").
12578
 
shrext_cmds='$shrext_cmds'
12579
 
 
12580
 
# Executable file suffix (normally "").
12581
 
exeext="$exeext"
12582
 
 
12583
 
# Additional compiler flags for building library objects.
12584
 
pic_flag=$lt_lt_prog_compiler_pic_CXX
12585
 
pic_mode=$pic_mode
12586
 
 
12587
 
# What is the maximum length of a command?
12588
 
max_cmd_len=$lt_cv_sys_max_cmd_len
12589
 
 
12590
 
# Does compiler simultaneously support -c and -o options?
12591
 
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12592
 
 
12593
 
# Must we lock files when doing compilation?
12594
 
need_locks=$lt_need_locks
12595
 
 
12596
 
# Do we need the lib prefix for modules?
12597
 
need_lib_prefix=$need_lib_prefix
12598
 
 
12599
 
# Do we need a version for libraries?
12600
 
need_version=$need_version
12601
 
 
12602
 
# Whether dlopen is supported.
12603
 
dlopen_support=$enable_dlopen
12604
 
 
12605
 
# Whether dlopen of programs is supported.
12606
 
dlopen_self=$enable_dlopen_self
12607
 
 
12608
 
# Whether dlopen of statically linked programs is supported.
12609
 
dlopen_self_static=$enable_dlopen_self_static
12610
 
 
12611
 
# Compiler flag to prevent dynamic linking.
12612
 
link_static_flag=$lt_lt_prog_compiler_static_CXX
12613
 
 
12614
 
# Compiler flag to turn off builtin functions.
12615
 
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12616
 
 
12617
 
# Compiler flag to allow reflexive dlopens.
12618
 
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12619
 
 
12620
 
# Compiler flag to generate shared objects directly from archives.
12621
 
whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12622
 
 
12623
 
# Compiler flag to generate thread-safe objects.
12624
 
thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12625
 
 
12626
 
# Library versioning type.
12627
 
version_type=$version_type
12628
 
 
12629
 
# Format of library name prefix.
12630
 
libname_spec=$lt_libname_spec
12631
 
 
12632
 
# List of archive names.  First name is the real one, the rest are links.
12633
 
# The last name is the one that the linker finds with -lNAME.
12634
 
library_names_spec=$lt_library_names_spec
12635
 
 
12636
 
# The coded name of the library, if different from the real name.
12637
 
soname_spec=$lt_soname_spec
12638
 
 
12639
 
# Commands used to build and install an old-style archive.
12640
 
RANLIB=$lt_RANLIB
12641
 
old_archive_cmds=$lt_old_archive_cmds_CXX
12642
 
old_postinstall_cmds=$lt_old_postinstall_cmds
12643
 
old_postuninstall_cmds=$lt_old_postuninstall_cmds
12644
 
 
12645
 
# Create an old-style archive from a shared archive.
12646
 
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12647
 
 
12648
 
# Create a temporary old-style archive to link instead of a shared archive.
12649
 
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12650
 
 
12651
 
# Commands used to build and install a shared archive.
12652
 
archive_cmds=$lt_archive_cmds_CXX
12653
 
archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12654
 
postinstall_cmds=$lt_postinstall_cmds
12655
 
postuninstall_cmds=$lt_postuninstall_cmds
12656
 
 
12657
 
# Commands used to build a loadable module (assumed same as above if empty)
12658
 
module_cmds=$lt_module_cmds_CXX
12659
 
module_expsym_cmds=$lt_module_expsym_cmds_CXX
12660
 
 
12661
 
# Commands to strip libraries.
12662
 
old_striplib=$lt_old_striplib
12663
 
striplib=$lt_striplib
12664
 
 
12665
 
# Dependencies to place before the objects being linked to create a
12666
 
# shared library.
12667
 
predep_objects=$lt_predep_objects_CXX
12668
 
 
12669
 
# Dependencies to place after the objects being linked to create a
12670
 
# shared library.
12671
 
postdep_objects=$lt_postdep_objects_CXX
12672
 
 
12673
 
# Dependencies to place before the objects being linked to create a
12674
 
# shared library.
12675
 
predeps=$lt_predeps_CXX
12676
 
 
12677
 
# Dependencies to place after the objects being linked to create a
12678
 
# shared library.
12679
 
postdeps=$lt_postdeps_CXX
12680
 
 
12681
 
# The library search path used internally by the compiler when linking
12682
 
# a shared library.
12683
 
compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12684
 
 
12685
 
# Method to check whether dependent libraries are shared objects.
12686
 
deplibs_check_method=$lt_deplibs_check_method
12687
 
 
12688
 
# Command to use when deplibs_check_method == file_magic.
12689
 
file_magic_cmd=$lt_file_magic_cmd
12690
 
 
12691
 
# Flag that allows shared libraries with undefined symbols to be built.
12692
 
allow_undefined_flag=$lt_allow_undefined_flag_CXX
12693
 
 
12694
 
# Flag that forces no undefined symbols.
12695
 
no_undefined_flag=$lt_no_undefined_flag_CXX
12696
 
 
12697
 
# Commands used to finish a libtool library installation in a directory.
12698
 
finish_cmds=$lt_finish_cmds
12699
 
 
12700
 
# Same as above, but a single script fragment to be evaled but not shown.
12701
 
finish_eval=$lt_finish_eval
12702
 
 
12703
 
# Take the output of nm and produce a listing of raw symbols and C names.
12704
 
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12705
 
 
12706
 
# Transform the output of nm in a proper C declaration
12707
 
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12708
 
 
12709
 
# Transform the output of nm in a C name address pair
12710
 
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12711
 
 
12712
 
# This is the shared library runtime path variable.
12713
 
runpath_var=$runpath_var
12714
 
 
12715
 
# This is the shared library path variable.
12716
 
shlibpath_var=$shlibpath_var
12717
 
 
12718
 
# Is shlibpath searched before the hard-coded library search path?
12719
 
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12720
 
 
12721
 
# How to hardcode a shared library path into an executable.
12722
 
hardcode_action=$hardcode_action_CXX
12723
 
 
12724
 
# Whether we should hardcode library paths into libraries.
12725
 
hardcode_into_libs=$hardcode_into_libs
12726
 
 
12727
 
# Flag to hardcode \$libdir into a binary during linking.
12728
 
# This must work even if \$libdir does not exist.
12729
 
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12730
 
 
12731
 
# If ld is used when linking, flag to hardcode \$libdir into
12732
 
# a binary during linking. This must work even if \$libdir does
12733
 
# not exist.
12734
 
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12735
 
 
12736
 
# Whether we need a single -rpath flag with a separated argument.
12737
 
hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12738
 
 
12739
 
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12740
 
# resulting binary.
12741
 
hardcode_direct=$hardcode_direct_CXX
12742
 
 
12743
 
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12744
 
# resulting binary.
12745
 
hardcode_minus_L=$hardcode_minus_L_CXX
12746
 
 
12747
 
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12748
 
# the resulting binary.
12749
 
hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12750
 
 
12751
 
# Set to yes if building a shared library automatically hardcodes DIR into the library
12752
 
# and all subsequent libraries and executables linked against it.
12753
 
hardcode_automatic=$hardcode_automatic_CXX
12754
 
 
12755
 
# Variables whose values should be saved in libtool wrapper scripts and
12756
 
# restored at relink time.
12757
 
variables_saved_for_relink="$variables_saved_for_relink"
12758
 
 
12759
 
# Whether libtool must link a program against all its dependency libraries.
12760
 
link_all_deplibs=$link_all_deplibs_CXX
12761
 
 
12762
 
# Compile-time system search path for libraries
12763
 
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12764
 
 
12765
 
# Run-time system search path for libraries
12766
 
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12767
 
 
12768
 
# Fix the shell variable \$srcfile for the compiler.
12769
 
fix_srcfile_path="$fix_srcfile_path_CXX"
12770
 
 
12771
 
# Set to yes if exported symbols are required.
12772
 
always_export_symbols=$always_export_symbols_CXX
12773
 
 
12774
 
# The commands to list exported symbols.
12775
 
export_symbols_cmds=$lt_export_symbols_cmds_CXX
12776
 
 
12777
 
# The commands to extract the exported symbol list from a shared archive.
12778
 
extract_expsyms_cmds=$lt_extract_expsyms_cmds
12779
 
 
12780
 
# Symbols that should not be listed in the preloaded symbols.
12781
 
exclude_expsyms=$lt_exclude_expsyms_CXX
12782
 
 
12783
 
# Symbols that must always be exported.
12784
 
include_expsyms=$lt_include_expsyms_CXX
12785
 
 
12786
 
# ### END LIBTOOL TAG CONFIG: $tagname
12787
 
 
12788
 
__EOF__
12789
 
 
12790
 
 
12791
 
else
12792
 
  # If there is no Makefile yet, we rely on a make rule to execute
12793
 
  # `config.status --recheck' to rerun these tests and create the
12794
 
  # libtool script then.
12795
 
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
12796
 
  if test -f "$ltmain_in"; then
12797
 
    test -f Makefile && make "$ltmain"
12798
 
  fi
12799
 
fi
12800
 
 
12801
 
 
12802
 
ac_ext=c
12803
 
ac_cpp='$CPP $CPPFLAGS'
12804
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12805
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12806
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
12807
 
 
12808
 
CC=$lt_save_CC
12809
 
LDCXX=$LD
12810
 
LD=$lt_save_LD
12811
 
GCC=$lt_save_GCC
12812
 
with_gnu_ldcxx=$with_gnu_ld
12813
 
with_gnu_ld=$lt_save_with_gnu_ld
12814
 
lt_cv_path_LDCXX=$lt_cv_path_LD
12815
 
lt_cv_path_LD=$lt_save_path_LD
12816
 
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
12817
 
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
12818
 
 
12819
 
        else
12820
 
          tagname=""
12821
 
        fi
12822
 
        ;;
12823
 
 
12824
 
      F77)
12825
 
        if test -n "$F77" && test "X$F77" != "Xno"; then
12826
 
 
12827
 
ac_ext=f
12828
 
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12829
 
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12830
 
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12831
 
 
12832
 
 
12833
 
archive_cmds_need_lc_F77=no
12834
 
allow_undefined_flag_F77=
12835
 
always_export_symbols_F77=no
12836
 
archive_expsym_cmds_F77=
12837
 
export_dynamic_flag_spec_F77=
12838
 
hardcode_direct_F77=no
12839
 
hardcode_libdir_flag_spec_F77=
12840
 
hardcode_libdir_flag_spec_ld_F77=
12841
 
hardcode_libdir_separator_F77=
12842
 
hardcode_minus_L_F77=no
12843
 
hardcode_automatic_F77=no
12844
 
module_cmds_F77=
12845
 
module_expsym_cmds_F77=
12846
 
link_all_deplibs_F77=unknown
12847
 
old_archive_cmds_F77=$old_archive_cmds
12848
 
no_undefined_flag_F77=
12849
 
whole_archive_flag_spec_F77=
12850
 
enable_shared_with_static_runtimes_F77=no
12851
 
 
12852
 
# Source file extension for f77 test sources.
12853
 
ac_ext=f
12854
 
 
12855
 
# Object file extension for compiled f77 test sources.
12856
 
objext=o
12857
 
objext_F77=$objext
12858
 
 
12859
 
# Code to be used in simple compile tests
12860
 
lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
12861
 
 
12862
 
# Code to be used in simple link tests
12863
 
lt_simple_link_test_code="      program t\n      end\n"
12864
 
 
12865
 
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
12866
 
 
12867
 
# If no C compiler was specified, use CC.
12868
 
LTCC=${LTCC-"$CC"}
12869
 
 
12870
 
# If no C compiler flags were specified, use CFLAGS.
12871
 
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12872
 
 
12873
 
# Allow CC to be a program name with arguments.
12874
 
compiler=$CC
12875
 
 
12876
 
 
12877
 
# save warnings/boilerplate of simple test code
12878
 
ac_outfile=conftest.$ac_objext
12879
 
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
12880
 
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12881
 
_lt_compiler_boilerplate=`cat conftest.err`
12882
 
$rm conftest*
12883
 
 
12884
 
ac_outfile=conftest.$ac_objext
12885
 
printf "$lt_simple_link_test_code" >conftest.$ac_ext
12886
 
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12887
 
_lt_linker_boilerplate=`cat conftest.err`
12888
 
$rm conftest*
12889
 
 
12890
 
 
12891
 
# Allow CC to be a program name with arguments.
12892
 
lt_save_CC="$CC"
12893
 
CC=${F77-"f77"}
12894
 
compiler=$CC
12895
 
compiler_F77=$CC
12896
 
for cc_temp in $compiler""; do
12897
 
  case $cc_temp in
12898
 
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12899
 
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12900
 
    \-*) ;;
12901
 
    *) break;;
12902
 
  esac
12903
 
done
12904
 
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
12905
 
 
12906
 
 
12907
 
echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12908
 
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
12909
 
echo "$as_me:$LINENO: result: $can_build_shared" >&5
12910
 
echo "${ECHO_T}$can_build_shared" >&6
12911
 
 
12912
 
echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12913
 
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
12914
 
test "$can_build_shared" = "no" && enable_shared=no
12915
 
 
12916
 
# On AIX, shared libraries and static libraries use the same namespace, and
12917
 
# are all built from PIC.
12918
 
case $host_os in
12919
 
aix3*)
12920
 
  test "$enable_shared" = yes && enable_static=no
12921
 
  if test -n "$RANLIB"; then
12922
 
    archive_cmds="$archive_cmds~\$RANLIB \$lib"
12923
 
    postinstall_cmds='$RANLIB $lib'
12924
 
  fi
12925
 
  ;;
12926
 
aix4* | aix5*)
12927
 
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12928
 
    test "$enable_shared" = yes && enable_static=no
12929
 
  fi
12930
 
  ;;
12931
 
esac
12932
 
echo "$as_me:$LINENO: result: $enable_shared" >&5
12933
 
echo "${ECHO_T}$enable_shared" >&6
12934
 
 
12935
 
echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12936
 
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
12937
 
# Make sure either enable_shared or enable_static is yes.
12938
 
test "$enable_shared" = yes || enable_static=yes
12939
 
echo "$as_me:$LINENO: result: $enable_static" >&5
12940
 
echo "${ECHO_T}$enable_static" >&6
12941
 
 
12942
 
GCC_F77="$G77"
12943
 
LD_F77="$LD"
12944
 
 
12945
 
lt_prog_compiler_wl_F77=
12946
 
lt_prog_compiler_pic_F77=
12947
 
lt_prog_compiler_static_F77=
12948
 
 
12949
 
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12950
 
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12951
 
 
12952
 
  if test "$GCC" = yes; then
12953
 
    lt_prog_compiler_wl_F77='-Wl,'
12954
 
    lt_prog_compiler_static_F77='-static'
12955
 
 
12956
 
    case $host_os in
12957
 
      aix*)
12958
 
      # All AIX code is PIC.
12959
 
      if test "$host_cpu" = ia64; then
12960
 
        # AIX 5 now supports IA64 processor
12961
 
        lt_prog_compiler_static_F77='-Bstatic'
12962
 
      fi
12963
 
      ;;
12964
 
 
12965
 
    amigaos*)
12966
 
      # FIXME: we need at least 68020 code to build shared libraries, but
12967
 
      # adding the `-m68020' flag to GCC prevents building anything better,
12968
 
      # like `-m68040'.
12969
 
      lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
12970
 
      ;;
12971
 
 
12972
 
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12973
 
      # PIC is the default for these OSes.
12974
 
      ;;
12975
 
 
12976
 
    mingw* | pw32* | os2*)
12977
 
      # This hack is so that the source file can tell whether it is being
12978
 
      # built for inclusion in a dll (and should export symbols for example).
12979
 
      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12980
 
      ;;
12981
 
 
12982
 
    darwin* | rhapsody*)
12983
 
      # PIC is the default on this platform
12984
 
      # Common symbols not allowed in MH_DYLIB files
12985
 
      lt_prog_compiler_pic_F77='-fno-common'
12986
 
      ;;
12987
 
 
12988
 
    interix3*)
12989
 
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12990
 
      # Instead, we relocate shared libraries at runtime.
12991
 
      ;;
12992
 
 
12993
 
    msdosdjgpp*)
12994
 
      # Just because we use GCC doesn't mean we suddenly get shared libraries
12995
 
      # on systems that don't support them.
12996
 
      lt_prog_compiler_can_build_shared_F77=no
12997
 
      enable_shared=no
12998
 
      ;;
12999
 
 
13000
 
    sysv4*MP*)
13001
 
      if test -d /usr/nec; then
13002
 
        lt_prog_compiler_pic_F77=-Kconform_pic
13003
 
      fi
13004
 
      ;;
13005
 
 
13006
 
    hpux*)
13007
 
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13008
 
      # not for PA HP-UX.
13009
 
      case $host_cpu in
13010
 
      hppa*64*|ia64*)
13011
 
        # +Z the default
13012
 
        ;;
13013
 
      *)
13014
 
        lt_prog_compiler_pic_F77='-fPIC'
13015
 
        ;;
13016
 
      esac
13017
 
      ;;
13018
 
 
13019
 
    *)
13020
 
      lt_prog_compiler_pic_F77='-fPIC'
13021
 
      ;;
13022
 
    esac
13023
 
  else
13024
 
    # PORTME Check for flag to pass linker flags through the system compiler.
13025
 
    case $host_os in
13026
 
    aix*)
13027
 
      lt_prog_compiler_wl_F77='-Wl,'
13028
 
      if test "$host_cpu" = ia64; then
13029
 
        # AIX 5 now supports IA64 processor
13030
 
        lt_prog_compiler_static_F77='-Bstatic'
13031
 
      else
13032
 
        lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13033
 
      fi
13034
 
      ;;
13035
 
      darwin*)
13036
 
        # PIC is the default on this platform
13037
 
        # Common symbols not allowed in MH_DYLIB files
13038
 
       case $cc_basename in
13039
 
         xlc*)
13040
 
         lt_prog_compiler_pic_F77='-qnocommon'
13041
 
         lt_prog_compiler_wl_F77='-Wl,'
13042
 
         ;;
13043
 
       esac
13044
 
       ;;
13045
 
 
13046
 
    mingw* | pw32* | os2*)
13047
 
      # This hack is so that the source file can tell whether it is being
13048
 
      # built for inclusion in a dll (and should export symbols for example).
13049
 
      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13050
 
      ;;
13051
 
 
13052
 
    hpux9* | hpux10* | hpux11*)
13053
 
      lt_prog_compiler_wl_F77='-Wl,'
13054
 
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13055
 
      # not for PA HP-UX.
13056
 
      case $host_cpu in
13057
 
      hppa*64*|ia64*)
13058
 
        # +Z the default
13059
 
        ;;
13060
 
      *)
13061
 
        lt_prog_compiler_pic_F77='+Z'
13062
 
        ;;
13063
 
      esac
13064
 
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
13065
 
      lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13066
 
      ;;
13067
 
 
13068
 
    irix5* | irix6* | nonstopux*)
13069
 
      lt_prog_compiler_wl_F77='-Wl,'
13070
 
      # PIC (with -KPIC) is the default.
13071
 
      lt_prog_compiler_static_F77='-non_shared'
13072
 
      ;;
13073
 
 
13074
 
    newsos6)
13075
 
      lt_prog_compiler_pic_F77='-KPIC'
13076
 
      lt_prog_compiler_static_F77='-Bstatic'
13077
 
      ;;
13078
 
 
13079
 
    linux*)
13080
 
      case $cc_basename in
13081
 
      icc* | ecc*)
13082
 
        lt_prog_compiler_wl_F77='-Wl,'
13083
 
        lt_prog_compiler_pic_F77='-KPIC'
13084
 
        lt_prog_compiler_static_F77='-static'
13085
 
        ;;
13086
 
      pgcc* | pgf77* | pgf90* | pgf95*)
13087
 
        # Portland Group compilers (*not* the Pentium gcc compiler,
13088
 
        # which looks to be a dead project)
13089
 
        lt_prog_compiler_wl_F77='-Wl,'
13090
 
        lt_prog_compiler_pic_F77='-fpic'
13091
 
        lt_prog_compiler_static_F77='-Bstatic'
13092
 
        ;;
13093
 
      ccc*)
13094
 
        lt_prog_compiler_wl_F77='-Wl,'
13095
 
        # All Alpha code is PIC.
13096
 
        lt_prog_compiler_static_F77='-non_shared'
13097
 
        ;;
13098
 
      esac
13099
 
      ;;
13100
 
 
13101
 
    osf3* | osf4* | osf5*)
13102
 
      lt_prog_compiler_wl_F77='-Wl,'
13103
 
      # All OSF/1 code is PIC.
13104
 
      lt_prog_compiler_static_F77='-non_shared'
13105
 
      ;;
13106
 
 
13107
 
    solaris*)
13108
 
      lt_prog_compiler_pic_F77='-KPIC'
13109
 
      lt_prog_compiler_static_F77='-Bstatic'
13110
 
      case $cc_basename in
13111
 
      f77* | f90* | f95*)
13112
 
        lt_prog_compiler_wl_F77='-Qoption ld ';;
13113
 
      *)
13114
 
        lt_prog_compiler_wl_F77='-Wl,';;
13115
 
      esac
13116
 
      ;;
13117
 
 
13118
 
    sunos4*)
13119
 
      lt_prog_compiler_wl_F77='-Qoption ld '
13120
 
      lt_prog_compiler_pic_F77='-PIC'
13121
 
      lt_prog_compiler_static_F77='-Bstatic'
13122
 
      ;;
13123
 
 
13124
 
    sysv4 | sysv4.2uw2* | sysv4.3*)
13125
 
      lt_prog_compiler_wl_F77='-Wl,'
13126
 
      lt_prog_compiler_pic_F77='-KPIC'
13127
 
      lt_prog_compiler_static_F77='-Bstatic'
13128
 
      ;;
13129
 
 
13130
 
    sysv4*MP*)
13131
 
      if test -d /usr/nec ;then
13132
 
        lt_prog_compiler_pic_F77='-Kconform_pic'
13133
 
        lt_prog_compiler_static_F77='-Bstatic'
13134
 
      fi
13135
 
      ;;
13136
 
 
13137
 
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13138
 
      lt_prog_compiler_wl_F77='-Wl,'
13139
 
      lt_prog_compiler_pic_F77='-KPIC'
13140
 
      lt_prog_compiler_static_F77='-Bstatic'
13141
 
      ;;
13142
 
 
13143
 
    unicos*)
13144
 
      lt_prog_compiler_wl_F77='-Wl,'
13145
 
      lt_prog_compiler_can_build_shared_F77=no
13146
 
      ;;
13147
 
 
13148
 
    uts4*)
13149
 
      lt_prog_compiler_pic_F77='-pic'
13150
 
      lt_prog_compiler_static_F77='-Bstatic'
13151
 
      ;;
13152
 
 
13153
 
    *)
13154
 
      lt_prog_compiler_can_build_shared_F77=no
13155
 
      ;;
13156
 
    esac
13157
 
  fi
13158
 
 
13159
 
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13160
 
echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13161
 
 
13162
 
#
13163
 
# Check to make sure the PIC flag actually works.
13164
 
#
13165
 
if test -n "$lt_prog_compiler_pic_F77"; then
13166
 
 
13167
 
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13168
 
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13169
 
if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13170
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
13171
 
else
13172
 
  lt_prog_compiler_pic_works_F77=no
13173
 
  ac_outfile=conftest.$ac_objext
13174
 
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13175
 
   lt_compiler_flag="$lt_prog_compiler_pic_F77"
13176
 
   # Insert the option either (1) after the last *FLAGS variable, or
13177
 
   # (2) before a word containing "conftest.", or (3) at the end.
13178
 
   # Note that $ac_compile itself does not contain backslashes and begins
13179
 
   # with a dollar sign (not a hyphen), so the echo should work correctly.
13180
 
   # The option is referenced via a variable to avoid confusing sed.
13181
 
   lt_compile=`echo "$ac_compile" | $SED \
13182
 
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13183
 
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13184
 
   -e 's:$: $lt_compiler_flag:'`
13185
 
   (eval echo "\"\$as_me:13185: $lt_compile\"" >&5)
13186
 
   (eval "$lt_compile" 2>conftest.err)
13187
 
   ac_status=$?
13188
 
   cat conftest.err >&5
13189
 
   echo "$as_me:13189: \$? = $ac_status" >&5
13190
 
   if (exit $ac_status) && test -s "$ac_outfile"; then
13191
 
     # The compiler can only warn and ignore the option if not recognized
13192
 
     # So say no if there are warnings other than the usual output.
13193
 
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13194
 
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13195
 
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13196
 
       lt_prog_compiler_pic_works_F77=yes
13197
 
     fi
13198
 
   fi
13199
 
   $rm conftest*
13200
 
 
13201
 
fi
13202
 
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13203
 
echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13204
 
 
13205
 
if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13206
 
    case $lt_prog_compiler_pic_F77 in
13207
 
     "" | " "*) ;;
13208
 
     *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13209
 
     esac
13210
 
else
13211
 
    lt_prog_compiler_pic_F77=
13212
 
     lt_prog_compiler_can_build_shared_F77=no
13213
 
fi
13214
 
 
13215
 
fi
13216
 
case $host_os in
13217
 
  # For platforms which do not support PIC, -DPIC is meaningless:
13218
 
  *djgpp*)
13219
 
    lt_prog_compiler_pic_F77=
13220
 
    ;;
13221
 
  *)
13222
 
    lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13223
 
    ;;
13224
 
esac
13225
 
 
13226
 
#
13227
 
# Check to make sure the static flag actually works.
13228
 
#
13229
 
wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
13230
 
echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13231
 
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
13232
 
if test "${lt_prog_compiler_static_works_F77+set}" = set; then
13233
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
13234
 
else
13235
 
  lt_prog_compiler_static_works_F77=no
13236
 
   save_LDFLAGS="$LDFLAGS"
13237
 
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13238
 
   printf "$lt_simple_link_test_code" > conftest.$ac_ext
13239
 
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13240
 
     # The linker can only warn and ignore the option if not recognized
13241
 
     # So say no if there are warnings
13242
 
     if test -s conftest.err; then
13243
 
       # Append any errors to the config.log.
13244
 
       cat conftest.err 1>&5
13245
 
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13246
 
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13247
 
       if diff conftest.exp conftest.er2 >/dev/null; then
13248
 
         lt_prog_compiler_static_works_F77=yes
13249
 
       fi
13250
 
     else
13251
 
       lt_prog_compiler_static_works_F77=yes
13252
 
     fi
13253
 
   fi
13254
 
   $rm conftest*
13255
 
   LDFLAGS="$save_LDFLAGS"
13256
 
 
13257
 
fi
13258
 
echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
13259
 
echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6
13260
 
 
13261
 
if test x"$lt_prog_compiler_static_works_F77" = xyes; then
13262
 
    :
13263
 
else
13264
 
    lt_prog_compiler_static_F77=
13265
 
fi
13266
 
 
13267
 
 
13268
 
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13269
 
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13270
 
if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13271
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
13272
 
else
13273
 
  lt_cv_prog_compiler_c_o_F77=no
13274
 
   $rm -r conftest 2>/dev/null
13275
 
   mkdir conftest
13276
 
   cd conftest
13277
 
   mkdir out
13278
 
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13279
 
 
13280
 
   lt_compiler_flag="-o out/conftest2.$ac_objext"
13281
 
   # Insert the option either (1) after the last *FLAGS variable, or
13282
 
   # (2) before a word containing "conftest.", or (3) at the end.
13283
 
   # Note that $ac_compile itself does not contain backslashes and begins
13284
 
   # with a dollar sign (not a hyphen), so the echo should work correctly.
13285
 
   lt_compile=`echo "$ac_compile" | $SED \
13286
 
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13287
 
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13288
 
   -e 's:$: $lt_compiler_flag:'`
13289
 
   (eval echo "\"\$as_me:13289: $lt_compile\"" >&5)
13290
 
   (eval "$lt_compile" 2>out/conftest.err)
13291
 
   ac_status=$?
13292
 
   cat out/conftest.err >&5
13293
 
   echo "$as_me:13293: \$? = $ac_status" >&5
13294
 
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
13295
 
   then
13296
 
     # The compiler can only warn and ignore the option if not recognized
13297
 
     # So say no if there are warnings
13298
 
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13299
 
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13300
 
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13301
 
       lt_cv_prog_compiler_c_o_F77=yes
13302
 
     fi
13303
 
   fi
13304
 
   chmod u+w . 2>&5
13305
 
   $rm conftest*
13306
 
   # SGI C++ compiler will create directory out/ii_files/ for
13307
 
   # template instantiation
13308
 
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13309
 
   $rm out/* && rmdir out
13310
 
   cd ..
13311
 
   rmdir conftest
13312
 
   $rm conftest*
13313
 
 
13314
 
fi
13315
 
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13316
 
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13317
 
 
13318
 
 
13319
 
hard_links="nottested"
13320
 
if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13321
 
  # do not overwrite the value of need_locks provided by the user
13322
 
  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13323
 
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13324
 
  hard_links=yes
13325
 
  $rm conftest*
13326
 
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
13327
 
  touch conftest.a
13328
 
  ln conftest.a conftest.b 2>&5 || hard_links=no
13329
 
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
13330
 
  echo "$as_me:$LINENO: result: $hard_links" >&5
13331
 
echo "${ECHO_T}$hard_links" >&6
13332
 
  if test "$hard_links" = no; then
13333
 
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13334
 
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13335
 
    need_locks=warn
13336
 
  fi
13337
 
else
13338
 
  need_locks=no
13339
 
fi
13340
 
 
13341
 
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13342
 
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13343
 
 
13344
 
  runpath_var=
13345
 
  allow_undefined_flag_F77=
13346
 
  enable_shared_with_static_runtimes_F77=no
13347
 
  archive_cmds_F77=
13348
 
  archive_expsym_cmds_F77=
13349
 
  old_archive_From_new_cmds_F77=
13350
 
  old_archive_from_expsyms_cmds_F77=
13351
 
  export_dynamic_flag_spec_F77=
13352
 
  whole_archive_flag_spec_F77=
13353
 
  thread_safe_flag_spec_F77=
13354
 
  hardcode_libdir_flag_spec_F77=
13355
 
  hardcode_libdir_flag_spec_ld_F77=
13356
 
  hardcode_libdir_separator_F77=
13357
 
  hardcode_direct_F77=no
13358
 
  hardcode_minus_L_F77=no
13359
 
  hardcode_shlibpath_var_F77=unsupported
13360
 
  link_all_deplibs_F77=unknown
13361
 
  hardcode_automatic_F77=no
13362
 
  module_cmds_F77=
13363
 
  module_expsym_cmds_F77=
13364
 
  always_export_symbols_F77=no
13365
 
  export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13366
 
  # include_expsyms should be a list of space-separated symbols to be *always*
13367
 
  # included in the symbol list
13368
 
  include_expsyms_F77=
13369
 
  # exclude_expsyms can be an extended regexp of symbols to exclude
13370
 
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
13371
 
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13372
 
  # as well as any symbol that contains `d'.
13373
 
  exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13374
 
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13375
 
  # platforms (ab)use it in PIC code, but their linkers get confused if
13376
 
  # the symbol is explicitly referenced.  Since portable code cannot
13377
 
  # rely on this symbol name, it's probably fine to never include it in
13378
 
  # preloaded symbol tables.
13379
 
  extract_expsyms_cmds=
13380
 
  # Just being paranoid about ensuring that cc_basename is set.
13381
 
  for cc_temp in $compiler""; do
13382
 
  case $cc_temp in
13383
 
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13384
 
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13385
 
    \-*) ;;
13386
 
    *) break;;
13387
 
  esac
13388
 
done
13389
 
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13390
 
 
13391
 
  case $host_os in
13392
 
  cygwin* | mingw* | pw32*)
13393
 
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
13394
 
    # When not using gcc, we currently assume that we are using
13395
 
    # Microsoft Visual C++.
13396
 
    if test "$GCC" != yes; then
13397
 
      with_gnu_ld=no
13398
 
    fi
13399
 
    ;;
13400
 
  interix*)
13401
 
    # we just hope/assume this is gcc and not c89 (= MSVC++)
13402
 
    with_gnu_ld=yes
13403
 
    ;;
13404
 
  openbsd*)
13405
 
    with_gnu_ld=no
13406
 
    ;;
13407
 
  esac
13408
 
 
13409
 
  ld_shlibs_F77=yes
13410
 
  if test "$with_gnu_ld" = yes; then
13411
 
    # If archive_cmds runs LD, not CC, wlarc should be empty
13412
 
    wlarc='${wl}'
13413
 
 
13414
 
    # Set some defaults for GNU ld with shared library support. These
13415
 
    # are reset later if shared libraries are not supported. Putting them
13416
 
    # here allows them to be overridden if necessary.
13417
 
    runpath_var=LD_RUN_PATH
13418
 
    hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13419
 
    export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13420
 
    # ancient GNU ld didn't support --whole-archive et. al.
13421
 
    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13422
 
        whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13423
 
      else
13424
 
        whole_archive_flag_spec_F77=
13425
 
    fi
13426
 
    supports_anon_versioning=no
13427
 
    case `$LD -v 2>/dev/null` in
13428
 
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13429
 
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13430
 
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13431
 
      *\ 2.11.*) ;; # other 2.11 versions
13432
 
      *) supports_anon_versioning=yes ;;
13433
 
    esac
13434
 
 
13435
 
    # See if GNU ld supports shared libraries.
13436
 
    case $host_os in
13437
 
    aix3* | aix4* | aix5*)
13438
 
      # On AIX/PPC, the GNU linker is very broken
13439
 
      if test "$host_cpu" != ia64; then
13440
 
        ld_shlibs_F77=no
13441
 
        cat <<EOF 1>&2
13442
 
 
13443
 
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
13444
 
*** to be unable to reliably create shared libraries on AIX.
13445
 
*** Therefore, libtool is disabling shared libraries support.  If you
13446
 
*** really care for shared libraries, you may want to modify your PATH
13447
 
*** so that a non-GNU linker is found, and then restart.
13448
 
 
13449
 
EOF
13450
 
      fi
13451
 
      ;;
13452
 
 
13453
 
    amigaos*)
13454
 
      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)'
13455
 
      hardcode_libdir_flag_spec_F77='-L$libdir'
13456
 
      hardcode_minus_L_F77=yes
13457
 
 
13458
 
      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13459
 
      # that the semantics of dynamic libraries on AmigaOS, at least up
13460
 
      # to version 4, is to share data among multiple programs linked
13461
 
      # with the same dynamic library.  Since this doesn't match the
13462
 
      # behavior of shared libraries on other platforms, we can't use
13463
 
      # them.
13464
 
      ld_shlibs_F77=no
13465
 
      ;;
13466
 
 
13467
 
    beos*)
13468
 
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13469
 
        allow_undefined_flag_F77=unsupported
13470
 
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13471
 
        # support --undefined.  This deserves some investigation.  FIXME
13472
 
        archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13473
 
      else
13474
 
        ld_shlibs_F77=no
13475
 
      fi
13476
 
      ;;
13477
 
 
13478
 
    cygwin* | mingw* | pw32*)
13479
 
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13480
 
      # as there is no search path for DLLs.
13481
 
      hardcode_libdir_flag_spec_F77='-L$libdir'
13482
 
      allow_undefined_flag_F77=unsupported
13483
 
      always_export_symbols_F77=no
13484
 
      enable_shared_with_static_runtimes_F77=yes
13485
 
      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13486
 
 
13487
 
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13488
 
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13489
 
        # If the export-symbols file already is a .def file (1st line
13490
 
        # is EXPORTS), use it as is; otherwise, prepend...
13491
 
        archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13492
 
          cp $export_symbols $output_objdir/$soname.def;
13493
 
        else
13494
 
          echo EXPORTS > $output_objdir/$soname.def;
13495
 
          cat $export_symbols >> $output_objdir/$soname.def;
13496
 
        fi~
13497
 
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13498
 
      else
13499
 
        ld_shlibs_F77=no
13500
 
      fi
13501
 
      ;;
13502
 
 
13503
 
    interix3*)
13504
 
      hardcode_direct_F77=no
13505
 
      hardcode_shlibpath_var_F77=no
13506
 
      hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13507
 
      export_dynamic_flag_spec_F77='${wl}-E'
13508
 
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13509
 
      # Instead, shared libraries are loaded at an image base (0x10000000 by
13510
 
      # default) and relocated if they conflict, which is a slow very memory
13511
 
      # consuming and fragmenting process.  To avoid this, we pick a random,
13512
 
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13513
 
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
13514
 
      archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13515
 
      archive_expsym_cmds_F77='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13516
 
      ;;
13517
 
 
13518
 
    linux*)
13519
 
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13520
 
        tmp_addflag=
13521
 
        case $cc_basename,$host_cpu in
13522
 
        pgcc*)                          # Portland Group C compiler
13523
 
          whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
13524
 
          tmp_addflag=' $pic_flag'
13525
 
          ;;
13526
 
        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
13527
 
          whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
13528
 
          tmp_addflag=' $pic_flag -Mnomain' ;;
13529
 
        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
13530
 
          tmp_addflag=' -i_dynamic' ;;
13531
 
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
13532
 
          tmp_addflag=' -i_dynamic -nofor_main' ;;
13533
 
        ifc* | ifort*)                  # Intel Fortran compiler
13534
 
          tmp_addflag=' -nofor_main' ;;
13535
 
        esac
13536
 
        archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13537
 
 
13538
 
        if test $supports_anon_versioning = yes; then
13539
 
          archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
13540
 
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13541
 
  $echo "local: *; };" >> $output_objdir/$libname.ver~
13542
 
          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13543
 
        fi
13544
 
        link_all_deplibs_F77=no
13545
 
      else
13546
 
        ld_shlibs_F77=no
13547
 
      fi
13548
 
      ;;
13549
 
 
13550
 
    netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
13551
 
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13552
 
        archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13553
 
        wlarc=
13554
 
      else
13555
 
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13556
 
        archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13557
 
      fi
13558
 
      ;;
13559
 
 
13560
 
    solaris*)
13561
 
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13562
 
        ld_shlibs_F77=no
13563
 
        cat <<EOF 1>&2
13564
 
 
13565
 
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
13566
 
*** create shared libraries on Solaris systems.  Therefore, libtool
13567
 
*** is disabling shared libraries support.  We urge you to upgrade GNU
13568
 
*** binutils to release 2.9.1 or newer.  Another option is to modify
13569
 
*** your PATH or compiler configuration so that the native linker is
13570
 
*** used, and then restart.
13571
 
 
13572
 
EOF
13573
 
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13574
 
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13575
 
        archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13576
 
      else
13577
 
        ld_shlibs_F77=no
13578
 
      fi
13579
 
      ;;
13580
 
 
13581
 
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
13582
 
      case `$LD -v 2>&1` in
13583
 
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
13584
 
        ld_shlibs_F77=no
13585
 
        cat <<_LT_EOF 1>&2
13586
 
 
13587
 
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
13588
 
*** reliably create shared libraries on SCO systems.  Therefore, libtool
13589
 
*** is disabling shared libraries support.  We urge you to upgrade GNU
13590
 
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
13591
 
*** your PATH or compiler configuration so that the native linker is
13592
 
*** used, and then restart.
13593
 
 
13594
 
_LT_EOF
13595
 
        ;;
13596
 
        *)
13597
 
          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13598
 
            hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
13599
 
            archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
13600
 
            archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
13601
 
          else
13602
 
            ld_shlibs_F77=no
13603
 
          fi
13604
 
        ;;
13605
 
      esac
13606
 
      ;;
13607
 
 
13608
 
    sunos4*)
13609
 
      archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13610
 
      wlarc=
13611
 
      hardcode_direct_F77=yes
13612
 
      hardcode_shlibpath_var_F77=no
13613
 
      ;;
13614
 
 
13615
 
    *)
13616
 
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13617
 
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13618
 
        archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13619
 
      else
13620
 
        ld_shlibs_F77=no
13621
 
      fi
13622
 
      ;;
13623
 
    esac
13624
 
 
13625
 
    if test "$ld_shlibs_F77" = no; then
13626
 
      runpath_var=
13627
 
      hardcode_libdir_flag_spec_F77=
13628
 
      export_dynamic_flag_spec_F77=
13629
 
      whole_archive_flag_spec_F77=
13630
 
    fi
13631
 
  else
13632
 
    # PORTME fill in a description of your system's linker (not GNU ld)
13633
 
    case $host_os in
13634
 
    aix3*)
13635
 
      allow_undefined_flag_F77=unsupported
13636
 
      always_export_symbols_F77=yes
13637
 
      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'
13638
 
      # Note: this linker hardcodes the directories in LIBPATH if there
13639
 
      # are no directories specified by -L.
13640
 
      hardcode_minus_L_F77=yes
13641
 
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
13642
 
        # Neither direct hardcoding nor static linking is supported with a
13643
 
        # broken collect2.
13644
 
        hardcode_direct_F77=unsupported
13645
 
      fi
13646
 
      ;;
13647
 
 
13648
 
    aix4* | aix5*)
13649
 
      if test "$host_cpu" = ia64; then
13650
 
        # On IA64, the linker does run time linking by default, so we don't
13651
 
        # have to do anything special.
13652
 
        aix_use_runtimelinking=no
13653
 
        exp_sym_flag='-Bexport'
13654
 
        no_entry_flag=""
13655
 
      else
13656
 
        # If we're using GNU nm, then we don't want the "-C" option.
13657
 
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
13658
 
        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13659
 
          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'
13660
 
        else
13661
 
          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'
13662
 
        fi
13663
 
        aix_use_runtimelinking=no
13664
 
 
13665
 
        # Test if we are trying to use run time linking or normal
13666
 
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13667
 
        # need to do runtime linking.
13668
 
        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13669
 
          for ld_flag in $LDFLAGS; do
13670
 
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13671
 
            aix_use_runtimelinking=yes
13672
 
            break
13673
 
          fi
13674
 
          done
13675
 
          ;;
13676
 
        esac
13677
 
 
13678
 
        exp_sym_flag='-bexport'
13679
 
        no_entry_flag='-bnoentry'
13680
 
      fi
13681
 
 
13682
 
      # When large executables or shared objects are built, AIX ld can
13683
 
      # have problems creating the table of contents.  If linking a library
13684
 
      # or program results in "error TOC overflow" add -mminimal-toc to
13685
 
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13686
 
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13687
 
 
13688
 
      archive_cmds_F77=''
13689
 
      hardcode_direct_F77=yes
13690
 
      hardcode_libdir_separator_F77=':'
13691
 
      link_all_deplibs_F77=yes
13692
 
 
13693
 
      if test "$GCC" = yes; then
13694
 
        case $host_os in aix4.[012]|aix4.[012].*)
13695
 
        # We only want to do this on AIX 4.2 and lower, the check
13696
 
        # below for broken collect2 doesn't work under 4.3+
13697
 
          collect2name=`${CC} -print-prog-name=collect2`
13698
 
          if test -f "$collect2name" && \
13699
 
           strings "$collect2name" | grep resolve_lib_name >/dev/null
13700
 
          then
13701
 
          # We have reworked collect2
13702
 
          hardcode_direct_F77=yes
13703
 
          else
13704
 
          # We have old collect2
13705
 
          hardcode_direct_F77=unsupported
13706
 
          # It fails to find uninstalled libraries when the uninstalled
13707
 
          # path is not listed in the libpath.  Setting hardcode_minus_L
13708
 
          # to unsupported forces relinking
13709
 
          hardcode_minus_L_F77=yes
13710
 
          hardcode_libdir_flag_spec_F77='-L$libdir'
13711
 
          hardcode_libdir_separator_F77=
13712
 
          fi
13713
 
          ;;
13714
 
        esac
13715
 
        shared_flag='-shared'
13716
 
        if test "$aix_use_runtimelinking" = yes; then
13717
 
          shared_flag="$shared_flag "'${wl}-G'
13718
 
        fi
13719
 
      else
13720
 
        # not using gcc
13721
 
        if test "$host_cpu" = ia64; then
13722
 
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13723
 
        # chokes on -Wl,-G. The following line is correct:
13724
 
          shared_flag='-G'
13725
 
        else
13726
 
          if test "$aix_use_runtimelinking" = yes; then
13727
 
            shared_flag='${wl}-G'
13728
 
          else
13729
 
            shared_flag='${wl}-bM:SRE'
13730
 
          fi
13731
 
        fi
13732
 
      fi
13733
 
 
13734
 
      # It seems that -bexpall does not export symbols beginning with
13735
 
      # underscore (_), so it is better to generate a list of symbols to export.
13736
 
      always_export_symbols_F77=yes
13737
 
      if test "$aix_use_runtimelinking" = yes; then
13738
 
        # Warning - without using the other runtime loading flags (-brtl),
13739
 
        # -berok will link without error, but may produce a broken library.
13740
 
        allow_undefined_flag_F77='-berok'
13741
 
       # Determine the default libpath from the value encoded in an empty executable.
13742
 
       cat >conftest.$ac_ext <<_ACEOF
13743
 
      program main
13744
 
 
13745
 
      end
13746
 
_ACEOF
13747
 
rm -f conftest.$ac_objext conftest$ac_exeext
13748
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13749
 
  (eval $ac_link) 2>conftest.er1
13750
 
  ac_status=$?
13751
 
  grep -v '^ *+' conftest.er1 >conftest.err
13752
 
  rm -f conftest.er1
13753
 
  cat conftest.err >&5
13754
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13755
 
  (exit $ac_status); } &&
13756
 
         { ac_try='test -z "$ac_f77_werror_flag"                         || test ! -s conftest.err'
13757
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13758
 
  (eval $ac_try) 2>&5
13759
 
  ac_status=$?
13760
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13761
 
  (exit $ac_status); }; } &&
13762
 
         { ac_try='test -s conftest$ac_exeext'
13763
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13764
 
  (eval $ac_try) 2>&5
13765
 
  ac_status=$?
13766
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13767
 
  (exit $ac_status); }; }; then
13768
 
 
13769
 
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13770
 
}'`
13771
 
# Check for a 64-bit object if we didn't find anything.
13772
 
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; }
13773
 
}'`; fi
13774
 
else
13775
 
  echo "$as_me: failed program was:" >&5
13776
 
sed 's/^/| /' conftest.$ac_ext >&5
13777
 
 
13778
 
fi
13779
 
rm -f conftest.err conftest.$ac_objext \
13780
 
      conftest$ac_exeext conftest.$ac_ext
13781
 
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13782
 
 
13783
 
       hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13784
 
        archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
13785
 
       else
13786
 
        if test "$host_cpu" = ia64; then
13787
 
          hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13788
 
          allow_undefined_flag_F77="-z nodefs"
13789
 
          archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
13790
 
        else
13791
 
         # Determine the default libpath from the value encoded in an empty executable.
13792
 
         cat >conftest.$ac_ext <<_ACEOF
13793
 
      program main
13794
 
 
13795
 
      end
13796
 
_ACEOF
13797
 
rm -f conftest.$ac_objext conftest$ac_exeext
13798
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13799
 
  (eval $ac_link) 2>conftest.er1
13800
 
  ac_status=$?
13801
 
  grep -v '^ *+' conftest.er1 >conftest.err
13802
 
  rm -f conftest.er1
13803
 
  cat conftest.err >&5
13804
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13805
 
  (exit $ac_status); } &&
13806
 
         { ac_try='test -z "$ac_f77_werror_flag"                         || test ! -s conftest.err'
13807
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13808
 
  (eval $ac_try) 2>&5
13809
 
  ac_status=$?
13810
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13811
 
  (exit $ac_status); }; } &&
13812
 
         { ac_try='test -s conftest$ac_exeext'
13813
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13814
 
  (eval $ac_try) 2>&5
13815
 
  ac_status=$?
13816
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13817
 
  (exit $ac_status); }; }; then
13818
 
 
13819
 
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13820
 
}'`
13821
 
# Check for a 64-bit object if we didn't find anything.
13822
 
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; }
13823
 
}'`; fi
13824
 
else
13825
 
  echo "$as_me: failed program was:" >&5
13826
 
sed 's/^/| /' conftest.$ac_ext >&5
13827
 
 
13828
 
fi
13829
 
rm -f conftest.err conftest.$ac_objext \
13830
 
      conftest$ac_exeext conftest.$ac_ext
13831
 
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13832
 
 
13833
 
         hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13834
 
          # Warning - without using the other run time loading flags,
13835
 
          # -berok will link without error, but may produce a broken library.
13836
 
          no_undefined_flag_F77=' ${wl}-bernotok'
13837
 
          allow_undefined_flag_F77=' ${wl}-berok'
13838
 
          # Exported symbols can be pulled into shared objects from archives
13839
 
          whole_archive_flag_spec_F77='$convenience'
13840
 
          archive_cmds_need_lc_F77=yes
13841
 
          # This is similar to how AIX traditionally builds its shared libraries.
13842
 
          archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
13843
 
        fi
13844
 
      fi
13845
 
      ;;
13846
 
 
13847
 
    amigaos*)
13848
 
      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)'
13849
 
      hardcode_libdir_flag_spec_F77='-L$libdir'
13850
 
      hardcode_minus_L_F77=yes
13851
 
      # see comment about different semantics on the GNU ld section
13852
 
      ld_shlibs_F77=no
13853
 
      ;;
13854
 
 
13855
 
    bsdi[45]*)
13856
 
      export_dynamic_flag_spec_F77=-rdynamic
13857
 
      ;;
13858
 
 
13859
 
    cygwin* | mingw* | pw32*)
13860
 
      # When not using gcc, we currently assume that we are using
13861
 
      # Microsoft Visual C++.
13862
 
      # hardcode_libdir_flag_spec is actually meaningless, as there is
13863
 
      # no search path for DLLs.
13864
 
      hardcode_libdir_flag_spec_F77=' '
13865
 
      allow_undefined_flag_F77=unsupported
13866
 
      # Tell ltmain to make .lib files, not .a files.
13867
 
      libext=lib
13868
 
      # Tell ltmain to make .dll files, not .so files.
13869
 
      shrext_cmds=".dll"
13870
 
      # FIXME: Setting linknames here is a bad hack.
13871
 
      archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13872
 
      # The linker will automatically build a .lib file if we build a DLL.
13873
 
      old_archive_From_new_cmds_F77='true'
13874
 
      # FIXME: Should let the user specify the lib program.
13875
 
      old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13876
 
      fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
13877
 
      enable_shared_with_static_runtimes_F77=yes
13878
 
      ;;
13879
 
 
13880
 
    darwin* | rhapsody*)
13881
 
      case $host_os in
13882
 
        rhapsody* | darwin1.[012])
13883
 
         allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
13884
 
         ;;
13885
 
       *) # Darwin 1.3 on
13886
 
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
13887
 
           allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
13888
 
         else
13889
 
           case ${MACOSX_DEPLOYMENT_TARGET} in
13890
 
             10.[012])
13891
 
               allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
13892
 
               ;;
13893
 
             10.*)
13894
 
               allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
13895
 
               ;;
13896
 
           esac
13897
 
         fi
13898
 
         ;;
13899
 
      esac
13900
 
      archive_cmds_need_lc_F77=no
13901
 
      hardcode_direct_F77=no
13902
 
      hardcode_automatic_F77=yes
13903
 
      hardcode_shlibpath_var_F77=unsupported
13904
 
      whole_archive_flag_spec_F77=''
13905
 
      link_all_deplibs_F77=yes
13906
 
    if test "$GCC" = yes ; then
13907
 
        output_verbose_link_cmd='echo'
13908
 
        archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13909
 
      module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13910
 
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
13911
 
      archive_expsym_cmds_F77='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}'
13912
 
      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}'
13913
 
    else
13914
 
      case $cc_basename in
13915
 
        xlc*)
13916
 
         output_verbose_link_cmd='echo'
13917
 
         archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
13918
 
         module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13919
 
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
13920
 
         archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13921
 
          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}'
13922
 
          ;;
13923
 
       *)
13924
 
         ld_shlibs_F77=no
13925
 
          ;;
13926
 
      esac
13927
 
    fi
13928
 
      ;;
13929
 
 
13930
 
    dgux*)
13931
 
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13932
 
      hardcode_libdir_flag_spec_F77='-L$libdir'
13933
 
      hardcode_shlibpath_var_F77=no
13934
 
      ;;
13935
 
 
13936
 
    freebsd1*)
13937
 
      ld_shlibs_F77=no
13938
 
      ;;
13939
 
 
13940
 
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13941
 
    # support.  Future versions do this automatically, but an explicit c++rt0.o
13942
 
    # does not break anything, and helps significantly (at the cost of a little
13943
 
    # extra space).
13944
 
    freebsd2.2*)
13945
 
      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13946
 
      hardcode_libdir_flag_spec_F77='-R$libdir'
13947
 
      hardcode_direct_F77=yes
13948
 
      hardcode_shlibpath_var_F77=no
13949
 
      ;;
13950
 
 
13951
 
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13952
 
    freebsd2*)
13953
 
      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13954
 
      hardcode_direct_F77=yes
13955
 
      hardcode_minus_L_F77=yes
13956
 
      hardcode_shlibpath_var_F77=no
13957
 
      ;;
13958
 
 
13959
 
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13960
 
    freebsd* | dragonfly*)
13961
 
      archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13962
 
      hardcode_libdir_flag_spec_F77='-R$libdir'
13963
 
      hardcode_direct_F77=yes
13964
 
      hardcode_shlibpath_var_F77=no
13965
 
      ;;
13966
 
 
13967
 
    # GNU/kFreeBSD uses gcc -shared to do shared libraries.
13968
 
    kfreebsd*-gnu)
13969
 
      archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13970
 
      hardcode_libdir_flag_spec_F77='-R$libdir'
13971
 
      hardcode_direct_F77=yes
13972
 
      hardcode_shlibpath_var_F77=no
13973
 
      link_all_deplibs_F77=no
13974
 
      ;;
13975
 
 
13976
 
    hpux9*)
13977
 
      if test "$GCC" = yes; then
13978
 
        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'
13979
 
      else
13980
 
        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'
13981
 
      fi
13982
 
      hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13983
 
      hardcode_libdir_separator_F77=:
13984
 
      hardcode_direct_F77=yes
13985
 
 
13986
 
      # hardcode_minus_L: Not really in the search PATH,
13987
 
      # but as the default location of the library.
13988
 
      hardcode_minus_L_F77=yes
13989
 
      export_dynamic_flag_spec_F77='${wl}-E'
13990
 
      ;;
13991
 
 
13992
 
    hpux10*)
13993
 
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13994
 
        archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13995
 
      else
13996
 
        archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13997
 
      fi
13998
 
      if test "$with_gnu_ld" = no; then
13999
 
        hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14000
 
        hardcode_libdir_separator_F77=:
14001
 
 
14002
 
        hardcode_direct_F77=yes
14003
 
        export_dynamic_flag_spec_F77='${wl}-E'
14004
 
 
14005
 
        # hardcode_minus_L: Not really in the search PATH,
14006
 
        # but as the default location of the library.
14007
 
        hardcode_minus_L_F77=yes
14008
 
      fi
14009
 
      ;;
14010
 
 
14011
 
    hpux11*)
14012
 
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14013
 
        case $host_cpu in
14014
 
        hppa*64*)
14015
 
          archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14016
 
          ;;
14017
 
        ia64*)
14018
 
          archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14019
 
          ;;
14020
 
        *)
14021
 
          archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14022
 
          ;;
14023
 
        esac
14024
 
      else
14025
 
        case $host_cpu in
14026
 
        hppa*64*)
14027
 
          archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14028
 
          ;;
14029
 
        ia64*)
14030
 
          archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14031
 
          ;;
14032
 
        *)
14033
 
          archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14034
 
          ;;
14035
 
        esac
14036
 
      fi
14037
 
      if test "$with_gnu_ld" = no; then
14038
 
        hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14039
 
        hardcode_libdir_separator_F77=:
14040
 
 
14041
 
        case $host_cpu in
14042
 
        hppa*64*|ia64*)
14043
 
          hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14044
 
          hardcode_direct_F77=no
14045
 
          hardcode_shlibpath_var_F77=no
14046
 
          ;;
14047
 
        *)
14048
 
          hardcode_direct_F77=yes
14049
 
          export_dynamic_flag_spec_F77='${wl}-E'
14050
 
 
14051
 
          # hardcode_minus_L: Not really in the search PATH,
14052
 
          # but as the default location of the library.
14053
 
          hardcode_minus_L_F77=yes
14054
 
          ;;
14055
 
        esac
14056
 
      fi
14057
 
      ;;
14058
 
 
14059
 
    irix5* | irix6* | nonstopux*)
14060
 
      if test "$GCC" = yes; then
14061
 
        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'
14062
 
      else
14063
 
        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'
14064
 
        hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14065
 
      fi
14066
 
      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14067
 
      hardcode_libdir_separator_F77=:
14068
 
      link_all_deplibs_F77=yes
14069
 
      ;;
14070
 
 
14071
 
    netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
14072
 
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14073
 
        archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
14074
 
      else
14075
 
        archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
14076
 
      fi
14077
 
      hardcode_libdir_flag_spec_F77='-R$libdir'
14078
 
      hardcode_direct_F77=yes
14079
 
      hardcode_shlibpath_var_F77=no
14080
 
      ;;
14081
 
 
14082
 
    newsos6)
14083
 
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14084
 
      hardcode_direct_F77=yes
14085
 
      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14086
 
      hardcode_libdir_separator_F77=:
14087
 
      hardcode_shlibpath_var_F77=no
14088
 
      ;;
14089
 
 
14090
 
    openbsd*)
14091
 
      hardcode_direct_F77=yes
14092
 
      hardcode_shlibpath_var_F77=no
14093
 
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14094
 
        archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14095
 
        archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14096
 
        hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14097
 
        export_dynamic_flag_spec_F77='${wl}-E'
14098
 
      else
14099
 
       case $host_os in
14100
 
         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14101
 
           archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14102
 
           hardcode_libdir_flag_spec_F77='-R$libdir'
14103
 
           ;;
14104
 
         *)
14105
 
           archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14106
 
           hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14107
 
           ;;
14108
 
       esac
14109
 
      fi
14110
 
      ;;
14111
 
 
14112
 
    os2*)
14113
 
      hardcode_libdir_flag_spec_F77='-L$libdir'
14114
 
      hardcode_minus_L_F77=yes
14115
 
      allow_undefined_flag_F77=unsupported
14116
 
      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'
14117
 
      old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14118
 
      ;;
14119
 
 
14120
 
    osf3*)
14121
 
      if test "$GCC" = yes; then
14122
 
        allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14123
 
        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'
14124
 
      else
14125
 
        allow_undefined_flag_F77=' -expect_unresolved \*'
14126
 
        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'
14127
 
      fi
14128
 
      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14129
 
      hardcode_libdir_separator_F77=:
14130
 
      ;;
14131
 
 
14132
 
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
14133
 
      if test "$GCC" = yes; then
14134
 
        allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14135
 
        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'
14136
 
        hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14137
 
      else
14138
 
        allow_undefined_flag_F77=' -expect_unresolved \*'
14139
 
        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'
14140
 
        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~
14141
 
        $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
14142
 
 
14143
 
        # Both c and cxx compiler support -rpath directly
14144
 
        hardcode_libdir_flag_spec_F77='-rpath $libdir'
14145
 
      fi
14146
 
      hardcode_libdir_separator_F77=:
14147
 
      ;;
14148
 
 
14149
 
    solaris*)
14150
 
      no_undefined_flag_F77=' -z text'
14151
 
      if test "$GCC" = yes; then
14152
 
        wlarc='${wl}'
14153
 
        archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14154
 
        archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14155
 
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14156
 
      else
14157
 
        wlarc=''
14158
 
        archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14159
 
        archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14160
 
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14161
 
      fi
14162
 
      hardcode_libdir_flag_spec_F77='-R$libdir'
14163
 
      hardcode_shlibpath_var_F77=no
14164
 
      case $host_os in
14165
 
      solaris2.[0-5] | solaris2.[0-5].*) ;;
14166
 
      *)
14167
 
        # The compiler driver will combine linker options so we
14168
 
        # cannot just pass the convience library names through
14169
 
        # without $wl, iff we do not link with $LD.
14170
 
        # Luckily, gcc supports the same syntax we need for Sun Studio.
14171
 
        # Supported since Solaris 2.6 (maybe 2.5.1?)
14172
 
        case $wlarc in
14173
 
        '')
14174
 
          whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14175
 
        *)
14176
 
          whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
14177
 
        esac ;;
14178
 
      esac
14179
 
      link_all_deplibs_F77=yes
14180
 
      ;;
14181
 
 
14182
 
    sunos4*)
14183
 
      if test "x$host_vendor" = xsequent; then
14184
 
        # Use $CC to link under sequent, because it throws in some extra .o
14185
 
        # files that make .init and .fini sections work.
14186
 
        archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14187
 
      else
14188
 
        archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14189
 
      fi
14190
 
      hardcode_libdir_flag_spec_F77='-L$libdir'
14191
 
      hardcode_direct_F77=yes
14192
 
      hardcode_minus_L_F77=yes
14193
 
      hardcode_shlibpath_var_F77=no
14194
 
      ;;
14195
 
 
14196
 
    sysv4)
14197
 
      case $host_vendor in
14198
 
        sni)
14199
 
          archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14200
 
          hardcode_direct_F77=yes # is this really true???
14201
 
        ;;
14202
 
        siemens)
14203
 
          ## LD is ld it makes a PLAMLIB
14204
 
          ## CC just makes a GrossModule.
14205
 
          archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14206
 
          reload_cmds_F77='$CC -r -o $output$reload_objs'
14207
 
          hardcode_direct_F77=no
14208
 
        ;;
14209
 
        motorola)
14210
 
          archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14211
 
          hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14212
 
        ;;
14213
 
      esac
14214
 
      runpath_var='LD_RUN_PATH'
14215
 
      hardcode_shlibpath_var_F77=no
14216
 
      ;;
14217
 
 
14218
 
    sysv4.3*)
14219
 
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14220
 
      hardcode_shlibpath_var_F77=no
14221
 
      export_dynamic_flag_spec_F77='-Bexport'
14222
 
      ;;
14223
 
 
14224
 
    sysv4*MP*)
14225
 
      if test -d /usr/nec; then
14226
 
        archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14227
 
        hardcode_shlibpath_var_F77=no
14228
 
        runpath_var=LD_RUN_PATH
14229
 
        hardcode_runpath_var=yes
14230
 
        ld_shlibs_F77=yes
14231
 
      fi
14232
 
      ;;
14233
 
 
14234
 
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
14235
 
      no_undefined_flag_F77='${wl}-z,text'
14236
 
      archive_cmds_need_lc_F77=no
14237
 
      hardcode_shlibpath_var_F77=no
14238
 
      runpath_var='LD_RUN_PATH'
14239
 
 
14240
 
      if test "$GCC" = yes; then
14241
 
        archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14242
 
        archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14243
 
      else
14244
 
        archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14245
 
        archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14246
 
      fi
14247
 
      ;;
14248
 
 
14249
 
    sysv5* | sco3.2v5* | sco5v6*)
14250
 
      # Note: We can NOT use -z defs as we might desire, because we do not
14251
 
      # link with -lc, and that would cause any symbols used from libc to
14252
 
      # always be unresolved, which means just about no library would
14253
 
      # ever link correctly.  If we're not using GNU ld we use -z text
14254
 
      # though, which does catch some bad symbols but isn't as heavy-handed
14255
 
      # as -z defs.
14256
 
      no_undefined_flag_F77='${wl}-z,text'
14257
 
      allow_undefined_flag_F77='${wl}-z,nodefs'
14258
 
      archive_cmds_need_lc_F77=no
14259
 
      hardcode_shlibpath_var_F77=no
14260
 
      hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
14261
 
      hardcode_libdir_separator_F77=':'
14262
 
      link_all_deplibs_F77=yes
14263
 
      export_dynamic_flag_spec_F77='${wl}-Bexport'
14264
 
      runpath_var='LD_RUN_PATH'
14265
 
 
14266
 
      if test "$GCC" = yes; then
14267
 
        archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14268
 
        archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14269
 
      else
14270
 
        archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14271
 
        archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14272
 
      fi
14273
 
      ;;
14274
 
 
14275
 
    uts4*)
14276
 
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14277
 
      hardcode_libdir_flag_spec_F77='-L$libdir'
14278
 
      hardcode_shlibpath_var_F77=no
14279
 
      ;;
14280
 
 
14281
 
    *)
14282
 
      ld_shlibs_F77=no
14283
 
      ;;
14284
 
    esac
14285
 
  fi
14286
 
 
14287
 
echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14288
 
echo "${ECHO_T}$ld_shlibs_F77" >&6
14289
 
test "$ld_shlibs_F77" = no && can_build_shared=no
14290
 
 
14291
 
#
14292
 
# Do we need to explicitly link libc?
14293
 
#
14294
 
case "x$archive_cmds_need_lc_F77" in
14295
 
x|xyes)
14296
 
  # Assume -lc should be added
14297
 
  archive_cmds_need_lc_F77=yes
14298
 
 
14299
 
  if test "$enable_shared" = yes && test "$GCC" = yes; then
14300
 
    case $archive_cmds_F77 in
14301
 
    *'~'*)
14302
 
      # FIXME: we may have to deal with multi-command sequences.
14303
 
      ;;
14304
 
    '$CC '*)
14305
 
      # Test whether the compiler implicitly links with -lc since on some
14306
 
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
14307
 
      # to ld, don't add -lc before -lgcc.
14308
 
      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14309
 
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14310
 
      $rm conftest*
14311
 
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14312
 
 
14313
 
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14314
 
  (eval $ac_compile) 2>&5
14315
 
  ac_status=$?
14316
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14317
 
  (exit $ac_status); } 2>conftest.err; then
14318
 
        soname=conftest
14319
 
        lib=conftest
14320
 
        libobjs=conftest.$ac_objext
14321
 
        deplibs=
14322
 
        wl=$lt_prog_compiler_wl_F77
14323
 
        pic_flag=$lt_prog_compiler_pic_F77
14324
 
        compiler_flags=-v
14325
 
        linker_flags=-v
14326
 
        verstring=
14327
 
        output_objdir=.
14328
 
        libname=conftest
14329
 
        lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14330
 
        allow_undefined_flag_F77=
14331
 
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14332
 
  (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14333
 
  ac_status=$?
14334
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14335
 
  (exit $ac_status); }
14336
 
        then
14337
 
          archive_cmds_need_lc_F77=no
14338
 
        else
14339
 
          archive_cmds_need_lc_F77=yes
14340
 
        fi
14341
 
        allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14342
 
      else
14343
 
        cat conftest.err 1>&5
14344
 
      fi
14345
 
      $rm conftest*
14346
 
      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14347
 
echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14348
 
      ;;
14349
 
    esac
14350
 
  fi
14351
 
  ;;
14352
 
esac
14353
 
 
14354
 
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14355
 
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14356
 
library_names_spec=
14357
 
libname_spec='lib$name'
14358
 
soname_spec=
14359
 
shrext_cmds=".so"
14360
 
postinstall_cmds=
14361
 
postuninstall_cmds=
14362
 
finish_cmds=
14363
 
finish_eval=
14364
 
shlibpath_var=
14365
 
shlibpath_overrides_runpath=unknown
14366
 
version_type=none
14367
 
dynamic_linker="$host_os ld.so"
14368
 
sys_lib_dlsearch_path_spec="/lib /usr/lib"
14369
 
if test "$GCC" = yes; then
14370
 
  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14371
 
  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14372
 
    # if the path contains ";" then we assume it to be the separator
14373
 
    # otherwise default to the standard path separator (i.e. ":") - it is
14374
 
    # assumed that no part of a normal pathname contains ";" but that should
14375
 
    # okay in the real world where ";" in dirpaths is itself problematic.
14376
 
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14377
 
  else
14378
 
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14379
 
  fi
14380
 
else
14381
 
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14382
 
fi
14383
 
need_lib_prefix=unknown
14384
 
hardcode_into_libs=no
14385
 
 
14386
 
# when you set need_version to no, make sure it does not cause -set_version
14387
 
# flags to be left without arguments
14388
 
need_version=unknown
14389
 
 
14390
 
case $host_os in
14391
 
aix3*)
14392
 
  version_type=linux
14393
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14394
 
  shlibpath_var=LIBPATH
14395
 
 
14396
 
  # AIX 3 has no versioning support, so we append a major version to the name.
14397
 
  soname_spec='${libname}${release}${shared_ext}$major'
14398
 
  ;;
14399
 
 
14400
 
aix4* | aix5*)
14401
 
  version_type=linux
14402
 
  need_lib_prefix=no
14403
 
  need_version=no
14404
 
  hardcode_into_libs=yes
14405
 
  if test "$host_cpu" = ia64; then
14406
 
    # AIX 5 supports IA64
14407
 
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14408
 
    shlibpath_var=LD_LIBRARY_PATH
14409
 
  else
14410
 
    # With GCC up to 2.95.x, collect2 would create an import file
14411
 
    # for dependence libraries.  The import file would start with
14412
 
    # the line `#! .'.  This would cause the generated library to
14413
 
    # depend on `.', always an invalid library.  This was fixed in
14414
 
    # development snapshots of GCC prior to 3.0.
14415
 
    case $host_os in
14416
 
      aix4 | aix4.[01] | aix4.[01].*)
14417
 
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14418
 
           echo ' yes '
14419
 
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14420
 
        :
14421
 
      else
14422
 
        can_build_shared=no
14423
 
      fi
14424
 
      ;;
14425
 
    esac
14426
 
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14427
 
    # soname into executable. Probably we can add versioning support to
14428
 
    # collect2, so additional links can be useful in future.
14429
 
    if test "$aix_use_runtimelinking" = yes; then
14430
 
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14431
 
      # instead of lib<name>.a to let people know that these are not
14432
 
      # typical AIX shared libraries.
14433
 
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14434
 
    else
14435
 
      # We preserve .a as extension for shared libraries through AIX4.2
14436
 
      # and later when we are not doing run time linking.
14437
 
      library_names_spec='${libname}${release}.a $libname.a'
14438
 
      soname_spec='${libname}${release}${shared_ext}$major'
14439
 
    fi
14440
 
    shlibpath_var=LIBPATH
14441
 
  fi
14442
 
  ;;
14443
 
 
14444
 
amigaos*)
14445
 
  library_names_spec='$libname.ixlibrary $libname.a'
14446
 
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
14447
 
  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'
14448
 
  ;;
14449
 
 
14450
 
beos*)
14451
 
  library_names_spec='${libname}${shared_ext}'
14452
 
  dynamic_linker="$host_os ld.so"
14453
 
  shlibpath_var=LIBRARY_PATH
14454
 
  ;;
14455
 
 
14456
 
bsdi[45]*)
14457
 
  version_type=linux
14458
 
  need_version=no
14459
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14460
 
  soname_spec='${libname}${release}${shared_ext}$major'
14461
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14462
 
  shlibpath_var=LD_LIBRARY_PATH
14463
 
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14464
 
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14465
 
  # the default ld.so.conf also contains /usr/contrib/lib and
14466
 
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14467
 
  # libtool to hard-code these into programs
14468
 
  ;;
14469
 
 
14470
 
cygwin* | mingw* | pw32*)
14471
 
  version_type=windows
14472
 
  shrext_cmds=".dll"
14473
 
  need_version=no
14474
 
  need_lib_prefix=no
14475
 
 
14476
 
  case $GCC,$host_os in
14477
 
  yes,cygwin* | yes,mingw* | yes,pw32*)
14478
 
    library_names_spec='$libname.dll.a'
14479
 
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
14480
 
    postinstall_cmds='base_file=`basename \${file}`~
14481
 
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14482
 
      dldir=$destdir/`dirname \$dlpath`~
14483
 
      test -d \$dldir || mkdir -p \$dldir~
14484
 
      $install_prog $dir/$dlname \$dldir/$dlname~
14485
 
      chmod a+x \$dldir/$dlname'
14486
 
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14487
 
      dlpath=$dir/\$dldll~
14488
 
       $rm \$dlpath'
14489
 
    shlibpath_overrides_runpath=yes
14490
 
 
14491
 
    case $host_os in
14492
 
    cygwin*)
14493
 
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14494
 
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14495
 
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14496
 
      ;;
14497
 
    mingw*)
14498
 
      # MinGW DLLs use traditional 'lib' prefix
14499
 
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14500
 
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14501
 
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14502
 
        # It is most probably a Windows format PATH printed by
14503
 
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
14504
 
        # path with ; separators, and with drive letters. We can handle the
14505
 
        # drive letters (cygwin fileutils understands them), so leave them,
14506
 
        # especially as we might pass files found there to a mingw objdump,
14507
 
        # which wouldn't understand a cygwinified path. Ahh.
14508
 
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14509
 
      else
14510
 
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14511
 
      fi
14512
 
      ;;
14513
 
    pw32*)
14514
 
      # pw32 DLLs use 'pw' prefix rather than 'lib'
14515
 
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14516
 
      ;;
14517
 
    esac
14518
 
    ;;
14519
 
 
14520
 
  *)
14521
 
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14522
 
    ;;
14523
 
  esac
14524
 
  dynamic_linker='Win32 ld.exe'
14525
 
  # FIXME: first we should search . and the directory the executable is in
14526
 
  shlibpath_var=PATH
14527
 
  ;;
14528
 
 
14529
 
darwin* | rhapsody*)
14530
 
  dynamic_linker="$host_os dyld"
14531
 
  version_type=darwin
14532
 
  need_lib_prefix=no
14533
 
  need_version=no
14534
 
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14535
 
  soname_spec='${libname}${release}${major}$shared_ext'
14536
 
  shlibpath_overrides_runpath=yes
14537
 
  shlibpath_var=DYLD_LIBRARY_PATH
14538
 
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14539
 
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14540
 
  if test "$GCC" = yes; then
14541
 
    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"`
14542
 
  else
14543
 
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14544
 
  fi
14545
 
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14546
 
  ;;
14547
 
 
14548
 
dgux*)
14549
 
  version_type=linux
14550
 
  need_lib_prefix=no
14551
 
  need_version=no
14552
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14553
 
  soname_spec='${libname}${release}${shared_ext}$major'
14554
 
  shlibpath_var=LD_LIBRARY_PATH
14555
 
  ;;
14556
 
 
14557
 
freebsd1*)
14558
 
  dynamic_linker=no
14559
 
  ;;
14560
 
 
14561
 
kfreebsd*-gnu)
14562
 
  version_type=linux
14563
 
  need_lib_prefix=no
14564
 
  need_version=no
14565
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14566
 
  soname_spec='${libname}${release}${shared_ext}$major'
14567
 
  shlibpath_var=LD_LIBRARY_PATH
14568
 
  shlibpath_overrides_runpath=no
14569
 
  hardcode_into_libs=yes
14570
 
  dynamic_linker='GNU ld.so'
14571
 
  ;;
14572
 
 
14573
 
freebsd* | dragonfly*)
14574
 
  # DragonFly does not have aout.  When/if they implement a new
14575
 
  # versioning mechanism, adjust this.
14576
 
  if test -x /usr/bin/objformat; then
14577
 
    objformat=`/usr/bin/objformat`
14578
 
  else
14579
 
    case $host_os in
14580
 
    freebsd[123]*) objformat=aout ;;
14581
 
    *) objformat=elf ;;
14582
 
    esac
14583
 
  fi
14584
 
  version_type=freebsd-$objformat
14585
 
  case $version_type in
14586
 
    freebsd-elf*)
14587
 
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14588
 
      need_version=no
14589
 
      need_lib_prefix=no
14590
 
      ;;
14591
 
    freebsd-*)
14592
 
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14593
 
      need_version=yes
14594
 
      ;;
14595
 
  esac
14596
 
  shlibpath_var=LD_LIBRARY_PATH
14597
 
  case $host_os in
14598
 
  freebsd2*)
14599
 
    shlibpath_overrides_runpath=yes
14600
 
    ;;
14601
 
  freebsd3.[01]* | freebsdelf3.[01]*)
14602
 
    shlibpath_overrides_runpath=yes
14603
 
    hardcode_into_libs=yes
14604
 
    ;;
14605
 
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14606
 
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14607
 
    shlibpath_overrides_runpath=no
14608
 
    hardcode_into_libs=yes
14609
 
    ;;
14610
 
  freebsd*) # from 4.6 on
14611
 
    shlibpath_overrides_runpath=yes
14612
 
    hardcode_into_libs=yes
14613
 
    ;;
14614
 
  esac
14615
 
  ;;
14616
 
 
14617
 
gnu*)
14618
 
  version_type=linux
14619
 
  need_lib_prefix=no
14620
 
  need_version=no
14621
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14622
 
  soname_spec='${libname}${release}${shared_ext}$major'
14623
 
  shlibpath_var=LD_LIBRARY_PATH
14624
 
  hardcode_into_libs=yes
14625
 
  ;;
14626
 
 
14627
 
hpux9* | hpux10* | hpux11*)
14628
 
  # Give a soname corresponding to the major version so that dld.sl refuses to
14629
 
  # link against other versions.
14630
 
  version_type=sunos
14631
 
  need_lib_prefix=no
14632
 
  need_version=no
14633
 
  case $host_cpu in
14634
 
  ia64*)
14635
 
    shrext_cmds='.so'
14636
 
    hardcode_into_libs=yes
14637
 
    dynamic_linker="$host_os dld.so"
14638
 
    shlibpath_var=LD_LIBRARY_PATH
14639
 
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14640
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14641
 
    soname_spec='${libname}${release}${shared_ext}$major'
14642
 
    if test "X$HPUX_IA64_MODE" = X32; then
14643
 
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14644
 
    else
14645
 
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14646
 
    fi
14647
 
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14648
 
    ;;
14649
 
   hppa*64*)
14650
 
     shrext_cmds='.sl'
14651
 
     hardcode_into_libs=yes
14652
 
     dynamic_linker="$host_os dld.sl"
14653
 
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14654
 
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14655
 
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14656
 
     soname_spec='${libname}${release}${shared_ext}$major'
14657
 
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14658
 
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14659
 
     ;;
14660
 
   *)
14661
 
    shrext_cmds='.sl'
14662
 
    dynamic_linker="$host_os dld.sl"
14663
 
    shlibpath_var=SHLIB_PATH
14664
 
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14665
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14666
 
    soname_spec='${libname}${release}${shared_ext}$major'
14667
 
    ;;
14668
 
  esac
14669
 
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
14670
 
  postinstall_cmds='chmod 555 $lib'
14671
 
  ;;
14672
 
 
14673
 
interix3*)
14674
 
  version_type=linux
14675
 
  need_lib_prefix=no
14676
 
  need_version=no
14677
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14678
 
  soname_spec='${libname}${release}${shared_ext}$major'
14679
 
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14680
 
  shlibpath_var=LD_LIBRARY_PATH
14681
 
  shlibpath_overrides_runpath=no
14682
 
  hardcode_into_libs=yes
14683
 
  ;;
14684
 
 
14685
 
irix5* | irix6* | nonstopux*)
14686
 
  case $host_os in
14687
 
    nonstopux*) version_type=nonstopux ;;
14688
 
    *)
14689
 
        if test "$lt_cv_prog_gnu_ld" = yes; then
14690
 
                version_type=linux
14691
 
        else
14692
 
                version_type=irix
14693
 
        fi ;;
14694
 
  esac
14695
 
  need_lib_prefix=no
14696
 
  need_version=no
14697
 
  soname_spec='${libname}${release}${shared_ext}$major'
14698
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14699
 
  case $host_os in
14700
 
  irix5* | nonstopux*)
14701
 
    libsuff= shlibsuff=
14702
 
    ;;
14703
 
  *)
14704
 
    case $LD in # libtool.m4 will add one of these switches to LD
14705
 
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14706
 
      libsuff= shlibsuff= libmagic=32-bit;;
14707
 
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14708
 
      libsuff=32 shlibsuff=N32 libmagic=N32;;
14709
 
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14710
 
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
14711
 
    *) libsuff= shlibsuff= libmagic=never-match;;
14712
 
    esac
14713
 
    ;;
14714
 
  esac
14715
 
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14716
 
  shlibpath_overrides_runpath=no
14717
 
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14718
 
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14719
 
  hardcode_into_libs=yes
14720
 
  ;;
14721
 
 
14722
 
# No shared lib support for Linux oldld, aout, or coff.
14723
 
linux*oldld* | linux*aout* | linux*coff*)
14724
 
  dynamic_linker=no
14725
 
  ;;
14726
 
 
14727
 
# This must be Linux ELF.
14728
 
linux*)
14729
 
  version_type=linux
14730
 
  need_lib_prefix=no
14731
 
  need_version=no
14732
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14733
 
  soname_spec='${libname}${release}${shared_ext}$major'
14734
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14735
 
  shlibpath_var=LD_LIBRARY_PATH
14736
 
  shlibpath_overrides_runpath=no
14737
 
  # This implies no fast_install, which is unacceptable.
14738
 
  # Some rework will be needed to allow for fast_install
14739
 
  # before this can be enabled.
14740
 
  hardcode_into_libs=yes
14741
 
 
14742
 
  # Append ld.so.conf contents to the search path
14743
 
  if test -f /etc/ld.so.conf; then
14744
 
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
14745
 
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14746
 
  fi
14747
 
 
14748
 
  # We used to test for /lib/ld.so.1 and disable shared libraries on
14749
 
  # powerpc, because MkLinux only supported shared libraries with the
14750
 
  # GNU dynamic linker.  Since this was broken with cross compilers,
14751
 
  # most powerpc-linux boxes support dynamic linking these days and
14752
 
  # people can always --disable-shared, the test was removed, and we
14753
 
  # assume the GNU/Linux dynamic linker is in use.
14754
 
  dynamic_linker='GNU/Linux ld.so'
14755
 
  ;;
14756
 
 
14757
 
netbsdelf*-gnu)
14758
 
  version_type=linux
14759
 
  need_lib_prefix=no
14760
 
  need_version=no
14761
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14762
 
  soname_spec='${libname}${release}${shared_ext}$major'
14763
 
  shlibpath_var=LD_LIBRARY_PATH
14764
 
  shlibpath_overrides_runpath=no
14765
 
  hardcode_into_libs=yes
14766
 
  dynamic_linker='NetBSD ld.elf_so'
14767
 
  ;;
14768
 
 
14769
 
knetbsd*-gnu)
14770
 
  version_type=linux
14771
 
  need_lib_prefix=no
14772
 
  need_version=no
14773
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14774
 
  soname_spec='${libname}${release}${shared_ext}$major'
14775
 
  shlibpath_var=LD_LIBRARY_PATH
14776
 
  shlibpath_overrides_runpath=no
14777
 
  hardcode_into_libs=yes
14778
 
  dynamic_linker='GNU ld.so'
14779
 
  ;;
14780
 
 
14781
 
netbsd*)
14782
 
  version_type=sunos
14783
 
  need_lib_prefix=no
14784
 
  need_version=no
14785
 
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14786
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14787
 
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14788
 
    dynamic_linker='NetBSD (a.out) ld.so'
14789
 
  else
14790
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14791
 
    soname_spec='${libname}${release}${shared_ext}$major'
14792
 
    dynamic_linker='NetBSD ld.elf_so'
14793
 
  fi
14794
 
  shlibpath_var=LD_LIBRARY_PATH
14795
 
  shlibpath_overrides_runpath=yes
14796
 
  hardcode_into_libs=yes
14797
 
  ;;
14798
 
 
14799
 
newsos6)
14800
 
  version_type=linux
14801
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14802
 
  shlibpath_var=LD_LIBRARY_PATH
14803
 
  shlibpath_overrides_runpath=yes
14804
 
  ;;
14805
 
 
14806
 
nto-qnx*)
14807
 
  version_type=linux
14808
 
  need_lib_prefix=no
14809
 
  need_version=no
14810
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14811
 
  soname_spec='${libname}${release}${shared_ext}$major'
14812
 
  shlibpath_var=LD_LIBRARY_PATH
14813
 
  shlibpath_overrides_runpath=yes
14814
 
  ;;
14815
 
 
14816
 
openbsd*)
14817
 
  version_type=sunos
14818
 
  sys_lib_dlsearch_path_spec="/usr/lib"
14819
 
  need_lib_prefix=no
14820
 
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14821
 
  case $host_os in
14822
 
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14823
 
    *)                         need_version=no  ;;
14824
 
  esac
14825
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14826
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14827
 
  shlibpath_var=LD_LIBRARY_PATH
14828
 
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14829
 
    case $host_os in
14830
 
      openbsd2.[89] | openbsd2.[89].*)
14831
 
        shlibpath_overrides_runpath=no
14832
 
        ;;
14833
 
      *)
14834
 
        shlibpath_overrides_runpath=yes
14835
 
        ;;
14836
 
      esac
14837
 
  else
14838
 
    shlibpath_overrides_runpath=yes
14839
 
  fi
14840
 
  ;;
14841
 
 
14842
 
os2*)
14843
 
  libname_spec='$name'
14844
 
  shrext_cmds=".dll"
14845
 
  need_lib_prefix=no
14846
 
  library_names_spec='$libname${shared_ext} $libname.a'
14847
 
  dynamic_linker='OS/2 ld.exe'
14848
 
  shlibpath_var=LIBPATH
14849
 
  ;;
14850
 
 
14851
 
osf3* | osf4* | osf5*)
14852
 
  version_type=osf
14853
 
  need_lib_prefix=no
14854
 
  need_version=no
14855
 
  soname_spec='${libname}${release}${shared_ext}$major'
14856
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14857
 
  shlibpath_var=LD_LIBRARY_PATH
14858
 
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14859
 
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14860
 
  ;;
14861
 
 
14862
 
solaris*)
14863
 
  version_type=linux
14864
 
  need_lib_prefix=no
14865
 
  need_version=no
14866
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14867
 
  soname_spec='${libname}${release}${shared_ext}$major'
14868
 
  shlibpath_var=LD_LIBRARY_PATH
14869
 
  shlibpath_overrides_runpath=yes
14870
 
  hardcode_into_libs=yes
14871
 
  # ldd complains unless libraries are executable
14872
 
  postinstall_cmds='chmod +x $lib'
14873
 
  ;;
14874
 
 
14875
 
sunos4*)
14876
 
  version_type=sunos
14877
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14878
 
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14879
 
  shlibpath_var=LD_LIBRARY_PATH
14880
 
  shlibpath_overrides_runpath=yes
14881
 
  if test "$with_gnu_ld" = yes; then
14882
 
    need_lib_prefix=no
14883
 
  fi
14884
 
  need_version=yes
14885
 
  ;;
14886
 
 
14887
 
sysv4 | sysv4.3*)
14888
 
  version_type=linux
14889
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14890
 
  soname_spec='${libname}${release}${shared_ext}$major'
14891
 
  shlibpath_var=LD_LIBRARY_PATH
14892
 
  case $host_vendor in
14893
 
    sni)
14894
 
      shlibpath_overrides_runpath=no
14895
 
      need_lib_prefix=no
14896
 
      export_dynamic_flag_spec='${wl}-Blargedynsym'
14897
 
      runpath_var=LD_RUN_PATH
14898
 
      ;;
14899
 
    siemens)
14900
 
      need_lib_prefix=no
14901
 
      ;;
14902
 
    motorola)
14903
 
      need_lib_prefix=no
14904
 
      need_version=no
14905
 
      shlibpath_overrides_runpath=no
14906
 
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14907
 
      ;;
14908
 
  esac
14909
 
  ;;
14910
 
 
14911
 
sysv4*MP*)
14912
 
  if test -d /usr/nec ;then
14913
 
    version_type=linux
14914
 
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14915
 
    soname_spec='$libname${shared_ext}.$major'
14916
 
    shlibpath_var=LD_LIBRARY_PATH
14917
 
  fi
14918
 
  ;;
14919
 
 
14920
 
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14921
 
  version_type=freebsd-elf
14922
 
  need_lib_prefix=no
14923
 
  need_version=no
14924
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14925
 
  soname_spec='${libname}${release}${shared_ext}$major'
14926
 
  shlibpath_var=LD_LIBRARY_PATH
14927
 
  hardcode_into_libs=yes
14928
 
  if test "$with_gnu_ld" = yes; then
14929
 
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14930
 
    shlibpath_overrides_runpath=no
14931
 
  else
14932
 
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14933
 
    shlibpath_overrides_runpath=yes
14934
 
    case $host_os in
14935
 
      sco3.2v5*)
14936
 
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14937
 
        ;;
14938
 
    esac
14939
 
  fi
14940
 
  sys_lib_dlsearch_path_spec='/usr/lib'
14941
 
  ;;
14942
 
 
14943
 
uts4*)
14944
 
  version_type=linux
14945
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14946
 
  soname_spec='${libname}${release}${shared_ext}$major'
14947
 
  shlibpath_var=LD_LIBRARY_PATH
14948
 
  ;;
14949
 
 
14950
 
*)
14951
 
  dynamic_linker=no
14952
 
  ;;
14953
 
esac
14954
 
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14955
 
echo "${ECHO_T}$dynamic_linker" >&6
14956
 
test "$dynamic_linker" = no && can_build_shared=no
14957
 
 
14958
 
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14959
 
if test "$GCC" = yes; then
14960
 
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14961
 
fi
14962
 
 
14963
 
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14964
 
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
14965
 
hardcode_action_F77=
14966
 
if test -n "$hardcode_libdir_flag_spec_F77" || \
14967
 
   test -n "$runpath_var_F77" || \
14968
 
   test "X$hardcode_automatic_F77" = "Xyes" ; then
14969
 
 
14970
 
  # We can hardcode non-existant directories.
14971
 
  if test "$hardcode_direct_F77" != no &&
14972
 
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
14973
 
     # have to relink, otherwise we might link with an installed library
14974
 
     # when we should be linking with a yet-to-be-installed one
14975
 
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
14976
 
     test "$hardcode_minus_L_F77" != no; then
14977
 
    # Linking always hardcodes the temporary library directory.
14978
 
    hardcode_action_F77=relink
14979
 
  else
14980
 
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
14981
 
    hardcode_action_F77=immediate
14982
 
  fi
14983
 
else
14984
 
  # We cannot hardcode anything, or else we can only hardcode existing
14985
 
  # directories.
14986
 
  hardcode_action_F77=unsupported
14987
 
fi
14988
 
echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
14989
 
echo "${ECHO_T}$hardcode_action_F77" >&6
14990
 
 
14991
 
if test "$hardcode_action_F77" = relink; then
14992
 
  # Fast installation is not supported
14993
 
  enable_fast_install=no
14994
 
elif test "$shlibpath_overrides_runpath" = yes ||
14995
 
     test "$enable_shared" = no; then
14996
 
  # Fast installation is not necessary
14997
 
  enable_fast_install=needless
14998
 
fi
14999
 
 
15000
 
 
15001
 
# The else clause should only fire when bootstrapping the
15002
 
# libtool distribution, otherwise you forgot to ship ltmain.sh
15003
 
# with your package, and you will get complaints that there are
15004
 
# no rules to generate ltmain.sh.
15005
 
if test -f "$ltmain"; then
15006
 
  # See if we are running on zsh, and set the options which allow our commands through
15007
 
  # without removal of \ escapes.
15008
 
  if test -n "${ZSH_VERSION+set}" ; then
15009
 
    setopt NO_GLOB_SUBST
15010
 
  fi
15011
 
  # Now quote all the things that may contain metacharacters while being
15012
 
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
15013
 
  # variables and quote the copies for generation of the libtool script.
15014
 
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15015
 
    SED SHELL STRIP \
15016
 
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15017
 
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15018
 
    deplibs_check_method reload_flag reload_cmds need_locks \
15019
 
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15020
 
    lt_cv_sys_global_symbol_to_c_name_address \
15021
 
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15022
 
    old_postinstall_cmds old_postuninstall_cmds \
15023
 
    compiler_F77 \
15024
 
    CC_F77 \
15025
 
    LD_F77 \
15026
 
    lt_prog_compiler_wl_F77 \
15027
 
    lt_prog_compiler_pic_F77 \
15028
 
    lt_prog_compiler_static_F77 \
15029
 
    lt_prog_compiler_no_builtin_flag_F77 \
15030
 
    export_dynamic_flag_spec_F77 \
15031
 
    thread_safe_flag_spec_F77 \
15032
 
    whole_archive_flag_spec_F77 \
15033
 
    enable_shared_with_static_runtimes_F77 \
15034
 
    old_archive_cmds_F77 \
15035
 
    old_archive_from_new_cmds_F77 \
15036
 
    predep_objects_F77 \
15037
 
    postdep_objects_F77 \
15038
 
    predeps_F77 \
15039
 
    postdeps_F77 \
15040
 
    compiler_lib_search_path_F77 \
15041
 
    archive_cmds_F77 \
15042
 
    archive_expsym_cmds_F77 \
15043
 
    postinstall_cmds_F77 \
15044
 
    postuninstall_cmds_F77 \
15045
 
    old_archive_from_expsyms_cmds_F77 \
15046
 
    allow_undefined_flag_F77 \
15047
 
    no_undefined_flag_F77 \
15048
 
    export_symbols_cmds_F77 \
15049
 
    hardcode_libdir_flag_spec_F77 \
15050
 
    hardcode_libdir_flag_spec_ld_F77 \
15051
 
    hardcode_libdir_separator_F77 \
15052
 
    hardcode_automatic_F77 \
15053
 
    module_cmds_F77 \
15054
 
    module_expsym_cmds_F77 \
15055
 
    lt_cv_prog_compiler_c_o_F77 \
15056
 
    exclude_expsyms_F77 \
15057
 
    include_expsyms_F77; do
15058
 
 
15059
 
    case $var in
15060
 
    old_archive_cmds_F77 | \
15061
 
    old_archive_from_new_cmds_F77 | \
15062
 
    archive_cmds_F77 | \
15063
 
    archive_expsym_cmds_F77 | \
15064
 
    module_cmds_F77 | \
15065
 
    module_expsym_cmds_F77 | \
15066
 
    old_archive_from_expsyms_cmds_F77 | \
15067
 
    export_symbols_cmds_F77 | \
15068
 
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
15069
 
    postinstall_cmds | postuninstall_cmds | \
15070
 
    old_postinstall_cmds | old_postuninstall_cmds | \
15071
 
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15072
 
      # Double-quote double-evaled strings.
15073
 
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15074
 
      ;;
15075
 
    *)
15076
 
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15077
 
      ;;
15078
 
    esac
15079
 
  done
15080
 
 
15081
 
  case $lt_echo in
15082
 
  *'\$0 --fallback-echo"')
15083
 
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15084
 
    ;;
15085
 
  esac
15086
 
 
15087
 
cfgfile="$ofile"
15088
 
 
15089
 
  cat <<__EOF__ >> "$cfgfile"
15090
 
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
15091
 
 
15092
 
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15093
 
 
15094
 
# Shell to use when invoking shell scripts.
15095
 
SHELL=$lt_SHELL
15096
 
 
15097
 
# Whether or not to build shared libraries.
15098
 
build_libtool_libs=$enable_shared
15099
 
 
15100
 
# Whether or not to build static libraries.
15101
 
build_old_libs=$enable_static
15102
 
 
15103
 
# Whether or not to add -lc for building shared libraries.
15104
 
build_libtool_need_lc=$archive_cmds_need_lc_F77
15105
 
 
15106
 
# Whether or not to disallow shared libs when runtime libs are static
15107
 
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15108
 
 
15109
 
# Whether or not to optimize for fast installation.
15110
 
fast_install=$enable_fast_install
15111
 
 
15112
 
# The host system.
15113
 
host_alias=$host_alias
15114
 
host=$host
15115
 
host_os=$host_os
15116
 
 
15117
 
# The build system.
15118
 
build_alias=$build_alias
15119
 
build=$build
15120
 
build_os=$build_os
15121
 
 
15122
 
# An echo program that does not interpret backslashes.
15123
 
echo=$lt_echo
15124
 
 
15125
 
# The archiver.
15126
 
AR=$lt_AR
15127
 
AR_FLAGS=$lt_AR_FLAGS
15128
 
 
15129
 
# A C compiler.
15130
 
LTCC=$lt_LTCC
15131
 
 
15132
 
# LTCC compiler flags.
15133
 
LTCFLAGS=$lt_LTCFLAGS
15134
 
 
15135
 
# A language-specific compiler.
15136
 
CC=$lt_compiler_F77
15137
 
 
15138
 
# Is the compiler the GNU C compiler?
15139
 
with_gcc=$GCC_F77
15140
 
 
15141
 
# An ERE matcher.
15142
 
EGREP=$lt_EGREP
15143
 
 
15144
 
# The linker used to build libraries.
15145
 
LD=$lt_LD_F77
15146
 
 
15147
 
# Whether we need hard or soft links.
15148
 
LN_S=$lt_LN_S
15149
 
 
15150
 
# A BSD-compatible nm program.
15151
 
NM=$lt_NM
15152
 
 
15153
 
# A symbol stripping program
15154
 
STRIP=$lt_STRIP
15155
 
 
15156
 
# Used to examine libraries when file_magic_cmd begins "file"
15157
 
MAGIC_CMD=$MAGIC_CMD
15158
 
 
15159
 
# Used on cygwin: DLL creation program.
15160
 
DLLTOOL="$DLLTOOL"
15161
 
 
15162
 
# Used on cygwin: object dumper.
15163
 
OBJDUMP="$OBJDUMP"
15164
 
 
15165
 
# Used on cygwin: assembler.
15166
 
AS="$AS"
15167
 
 
15168
 
# The name of the directory that contains temporary libtool files.
15169
 
objdir=$objdir
15170
 
 
15171
 
# How to create reloadable object files.
15172
 
reload_flag=$lt_reload_flag
15173
 
reload_cmds=$lt_reload_cmds
15174
 
 
15175
 
# How to pass a linker flag through the compiler.
15176
 
wl=$lt_lt_prog_compiler_wl_F77
15177
 
 
15178
 
# Object file suffix (normally "o").
15179
 
objext="$ac_objext"
15180
 
 
15181
 
# Old archive suffix (normally "a").
15182
 
libext="$libext"
15183
 
 
15184
 
# Shared library suffix (normally ".so").
15185
 
shrext_cmds='$shrext_cmds'
15186
 
 
15187
 
# Executable file suffix (normally "").
15188
 
exeext="$exeext"
15189
 
 
15190
 
# Additional compiler flags for building library objects.
15191
 
pic_flag=$lt_lt_prog_compiler_pic_F77
15192
 
pic_mode=$pic_mode
15193
 
 
15194
 
# What is the maximum length of a command?
15195
 
max_cmd_len=$lt_cv_sys_max_cmd_len
15196
 
 
15197
 
# Does compiler simultaneously support -c and -o options?
15198
 
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15199
 
 
15200
 
# Must we lock files when doing compilation?
15201
 
need_locks=$lt_need_locks
15202
 
 
15203
 
# Do we need the lib prefix for modules?
15204
 
need_lib_prefix=$need_lib_prefix
15205
 
 
15206
 
# Do we need a version for libraries?
15207
 
need_version=$need_version
15208
 
 
15209
 
# Whether dlopen is supported.
15210
 
dlopen_support=$enable_dlopen
15211
 
 
15212
 
# Whether dlopen of programs is supported.
15213
 
dlopen_self=$enable_dlopen_self
15214
 
 
15215
 
# Whether dlopen of statically linked programs is supported.
15216
 
dlopen_self_static=$enable_dlopen_self_static
15217
 
 
15218
 
# Compiler flag to prevent dynamic linking.
15219
 
link_static_flag=$lt_lt_prog_compiler_static_F77
15220
 
 
15221
 
# Compiler flag to turn off builtin functions.
15222
 
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15223
 
 
15224
 
# Compiler flag to allow reflexive dlopens.
15225
 
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15226
 
 
15227
 
# Compiler flag to generate shared objects directly from archives.
15228
 
whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15229
 
 
15230
 
# Compiler flag to generate thread-safe objects.
15231
 
thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15232
 
 
15233
 
# Library versioning type.
15234
 
version_type=$version_type
15235
 
 
15236
 
# Format of library name prefix.
15237
 
libname_spec=$lt_libname_spec
15238
 
 
15239
 
# List of archive names.  First name is the real one, the rest are links.
15240
 
# The last name is the one that the linker finds with -lNAME.
15241
 
library_names_spec=$lt_library_names_spec
15242
 
 
15243
 
# The coded name of the library, if different from the real name.
15244
 
soname_spec=$lt_soname_spec
15245
 
 
15246
 
# Commands used to build and install an old-style archive.
15247
 
RANLIB=$lt_RANLIB
15248
 
old_archive_cmds=$lt_old_archive_cmds_F77
15249
 
old_postinstall_cmds=$lt_old_postinstall_cmds
15250
 
old_postuninstall_cmds=$lt_old_postuninstall_cmds
15251
 
 
15252
 
# Create an old-style archive from a shared archive.
15253
 
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15254
 
 
15255
 
# Create a temporary old-style archive to link instead of a shared archive.
15256
 
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15257
 
 
15258
 
# Commands used to build and install a shared archive.
15259
 
archive_cmds=$lt_archive_cmds_F77
15260
 
archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15261
 
postinstall_cmds=$lt_postinstall_cmds
15262
 
postuninstall_cmds=$lt_postuninstall_cmds
15263
 
 
15264
 
# Commands used to build a loadable module (assumed same as above if empty)
15265
 
module_cmds=$lt_module_cmds_F77
15266
 
module_expsym_cmds=$lt_module_expsym_cmds_F77
15267
 
 
15268
 
# Commands to strip libraries.
15269
 
old_striplib=$lt_old_striplib
15270
 
striplib=$lt_striplib
15271
 
 
15272
 
# Dependencies to place before the objects being linked to create a
15273
 
# shared library.
15274
 
predep_objects=$lt_predep_objects_F77
15275
 
 
15276
 
# Dependencies to place after the objects being linked to create a
15277
 
# shared library.
15278
 
postdep_objects=$lt_postdep_objects_F77
15279
 
 
15280
 
# Dependencies to place before the objects being linked to create a
15281
 
# shared library.
15282
 
predeps=$lt_predeps_F77
15283
 
 
15284
 
# Dependencies to place after the objects being linked to create a
15285
 
# shared library.
15286
 
postdeps=$lt_postdeps_F77
15287
 
 
15288
 
# The library search path used internally by the compiler when linking
15289
 
# a shared library.
15290
 
compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15291
 
 
15292
 
# Method to check whether dependent libraries are shared objects.
15293
 
deplibs_check_method=$lt_deplibs_check_method
15294
 
 
15295
 
# Command to use when deplibs_check_method == file_magic.
15296
 
file_magic_cmd=$lt_file_magic_cmd
15297
 
 
15298
 
# Flag that allows shared libraries with undefined symbols to be built.
15299
 
allow_undefined_flag=$lt_allow_undefined_flag_F77
15300
 
 
15301
 
# Flag that forces no undefined symbols.
15302
 
no_undefined_flag=$lt_no_undefined_flag_F77
15303
 
 
15304
 
# Commands used to finish a libtool library installation in a directory.
15305
 
finish_cmds=$lt_finish_cmds
15306
 
 
15307
 
# Same as above, but a single script fragment to be evaled but not shown.
15308
 
finish_eval=$lt_finish_eval
15309
 
 
15310
 
# Take the output of nm and produce a listing of raw symbols and C names.
15311
 
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15312
 
 
15313
 
# Transform the output of nm in a proper C declaration
15314
 
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15315
 
 
15316
 
# Transform the output of nm in a C name address pair
15317
 
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15318
 
 
15319
 
# This is the shared library runtime path variable.
15320
 
runpath_var=$runpath_var
15321
 
 
15322
 
# This is the shared library path variable.
15323
 
shlibpath_var=$shlibpath_var
15324
 
 
15325
 
# Is shlibpath searched before the hard-coded library search path?
15326
 
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15327
 
 
15328
 
# How to hardcode a shared library path into an executable.
15329
 
hardcode_action=$hardcode_action_F77
15330
 
 
15331
 
# Whether we should hardcode library paths into libraries.
15332
 
hardcode_into_libs=$hardcode_into_libs
15333
 
 
15334
 
# Flag to hardcode \$libdir into a binary during linking.
15335
 
# This must work even if \$libdir does not exist.
15336
 
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15337
 
 
15338
 
# If ld is used when linking, flag to hardcode \$libdir into
15339
 
# a binary during linking. This must work even if \$libdir does
15340
 
# not exist.
15341
 
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15342
 
 
15343
 
# Whether we need a single -rpath flag with a separated argument.
15344
 
hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15345
 
 
15346
 
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15347
 
# resulting binary.
15348
 
hardcode_direct=$hardcode_direct_F77
15349
 
 
15350
 
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15351
 
# resulting binary.
15352
 
hardcode_minus_L=$hardcode_minus_L_F77
15353
 
 
15354
 
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15355
 
# the resulting binary.
15356
 
hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15357
 
 
15358
 
# Set to yes if building a shared library automatically hardcodes DIR into the library
15359
 
# and all subsequent libraries and executables linked against it.
15360
 
hardcode_automatic=$hardcode_automatic_F77
15361
 
 
15362
 
# Variables whose values should be saved in libtool wrapper scripts and
15363
 
# restored at relink time.
15364
 
variables_saved_for_relink="$variables_saved_for_relink"
15365
 
 
15366
 
# Whether libtool must link a program against all its dependency libraries.
15367
 
link_all_deplibs=$link_all_deplibs_F77
15368
 
 
15369
 
# Compile-time system search path for libraries
15370
 
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15371
 
 
15372
 
# Run-time system search path for libraries
15373
 
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15374
 
 
15375
 
# Fix the shell variable \$srcfile for the compiler.
15376
 
fix_srcfile_path="$fix_srcfile_path_F77"
15377
 
 
15378
 
# Set to yes if exported symbols are required.
15379
 
always_export_symbols=$always_export_symbols_F77
15380
 
 
15381
 
# The commands to list exported symbols.
15382
 
export_symbols_cmds=$lt_export_symbols_cmds_F77
15383
 
 
15384
 
# The commands to extract the exported symbol list from a shared archive.
15385
 
extract_expsyms_cmds=$lt_extract_expsyms_cmds
15386
 
 
15387
 
# Symbols that should not be listed in the preloaded symbols.
15388
 
exclude_expsyms=$lt_exclude_expsyms_F77
15389
 
 
15390
 
# Symbols that must always be exported.
15391
 
include_expsyms=$lt_include_expsyms_F77
15392
 
 
15393
 
# ### END LIBTOOL TAG CONFIG: $tagname
15394
 
 
15395
 
__EOF__
15396
 
 
15397
 
 
15398
 
else
15399
 
  # If there is no Makefile yet, we rely on a make rule to execute
15400
 
  # `config.status --recheck' to rerun these tests and create the
15401
 
  # libtool script then.
15402
 
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15403
 
  if test -f "$ltmain_in"; then
15404
 
    test -f Makefile && make "$ltmain"
15405
 
  fi
15406
 
fi
15407
 
 
15408
 
 
15409
 
ac_ext=c
15410
 
ac_cpp='$CPP $CPPFLAGS'
15411
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15412
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15413
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
15414
 
 
15415
 
CC="$lt_save_CC"
15416
 
 
15417
 
        else
15418
 
          tagname=""
15419
 
        fi
15420
 
        ;;
15421
 
 
15422
 
      GCJ)
15423
 
        if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15424
 
 
15425
 
 
15426
 
 
15427
 
# Source file extension for Java test sources.
15428
 
ac_ext=java
15429
 
 
15430
 
# Object file extension for compiled Java test sources.
15431
 
objext=o
15432
 
objext_GCJ=$objext
15433
 
 
15434
 
# Code to be used in simple compile tests
15435
 
lt_simple_compile_test_code="class foo {}\n"
15436
 
 
15437
 
# Code to be used in simple link tests
15438
 
lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
15439
 
 
15440
 
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
15441
 
 
15442
 
# If no C compiler was specified, use CC.
15443
 
LTCC=${LTCC-"$CC"}
15444
 
 
15445
 
# If no C compiler flags were specified, use CFLAGS.
15446
 
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15447
 
 
15448
 
# Allow CC to be a program name with arguments.
15449
 
compiler=$CC
15450
 
 
15451
 
 
15452
 
# save warnings/boilerplate of simple test code
15453
 
ac_outfile=conftest.$ac_objext
15454
 
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
15455
 
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15456
 
_lt_compiler_boilerplate=`cat conftest.err`
15457
 
$rm conftest*
15458
 
 
15459
 
ac_outfile=conftest.$ac_objext
15460
 
printf "$lt_simple_link_test_code" >conftest.$ac_ext
15461
 
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15462
 
_lt_linker_boilerplate=`cat conftest.err`
15463
 
$rm conftest*
15464
 
 
15465
 
 
15466
 
# Allow CC to be a program name with arguments.
15467
 
lt_save_CC="$CC"
15468
 
CC=${GCJ-"gcj"}
15469
 
compiler=$CC
15470
 
compiler_GCJ=$CC
15471
 
for cc_temp in $compiler""; do
15472
 
  case $cc_temp in
15473
 
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15474
 
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15475
 
    \-*) ;;
15476
 
    *) break;;
15477
 
  esac
15478
 
done
15479
 
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15480
 
 
15481
 
 
15482
 
# GCJ did not exist at the time GCC didn't implicitly link libc in.
15483
 
archive_cmds_need_lc_GCJ=no
15484
 
 
15485
 
old_archive_cmds_GCJ=$old_archive_cmds
15486
 
 
15487
 
 
15488
 
lt_prog_compiler_no_builtin_flag_GCJ=
15489
 
 
15490
 
if test "$GCC" = yes; then
15491
 
  lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15492
 
 
15493
 
 
15494
 
echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15495
 
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15496
 
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15497
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
15498
 
else
15499
 
  lt_cv_prog_compiler_rtti_exceptions=no
15500
 
  ac_outfile=conftest.$ac_objext
15501
 
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15502
 
   lt_compiler_flag="-fno-rtti -fno-exceptions"
15503
 
   # Insert the option either (1) after the last *FLAGS variable, or
15504
 
   # (2) before a word containing "conftest.", or (3) at the end.
15505
 
   # Note that $ac_compile itself does not contain backslashes and begins
15506
 
   # with a dollar sign (not a hyphen), so the echo should work correctly.
15507
 
   # The option is referenced via a variable to avoid confusing sed.
15508
 
   lt_compile=`echo "$ac_compile" | $SED \
15509
 
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15510
 
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15511
 
   -e 's:$: $lt_compiler_flag:'`
15512
 
   (eval echo "\"\$as_me:15512: $lt_compile\"" >&5)
15513
 
   (eval "$lt_compile" 2>conftest.err)
15514
 
   ac_status=$?
15515
 
   cat conftest.err >&5
15516
 
   echo "$as_me:15516: \$? = $ac_status" >&5
15517
 
   if (exit $ac_status) && test -s "$ac_outfile"; then
15518
 
     # The compiler can only warn and ignore the option if not recognized
15519
 
     # So say no if there are warnings other than the usual output.
15520
 
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15521
 
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15522
 
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15523
 
       lt_cv_prog_compiler_rtti_exceptions=yes
15524
 
     fi
15525
 
   fi
15526
 
   $rm conftest*
15527
 
 
15528
 
fi
15529
 
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15530
 
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15531
 
 
15532
 
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15533
 
    lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15534
 
else
15535
 
    :
15536
 
fi
15537
 
 
15538
 
fi
15539
 
 
15540
 
lt_prog_compiler_wl_GCJ=
15541
 
lt_prog_compiler_pic_GCJ=
15542
 
lt_prog_compiler_static_GCJ=
15543
 
 
15544
 
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15545
 
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15546
 
 
15547
 
  if test "$GCC" = yes; then
15548
 
    lt_prog_compiler_wl_GCJ='-Wl,'
15549
 
    lt_prog_compiler_static_GCJ='-static'
15550
 
 
15551
 
    case $host_os in
15552
 
      aix*)
15553
 
      # All AIX code is PIC.
15554
 
      if test "$host_cpu" = ia64; then
15555
 
        # AIX 5 now supports IA64 processor
15556
 
        lt_prog_compiler_static_GCJ='-Bstatic'
15557
 
      fi
15558
 
      ;;
15559
 
 
15560
 
    amigaos*)
15561
 
      # FIXME: we need at least 68020 code to build shared libraries, but
15562
 
      # adding the `-m68020' flag to GCC prevents building anything better,
15563
 
      # like `-m68040'.
15564
 
      lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15565
 
      ;;
15566
 
 
15567
 
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15568
 
      # PIC is the default for these OSes.
15569
 
      ;;
15570
 
 
15571
 
    mingw* | pw32* | os2*)
15572
 
      # This hack is so that the source file can tell whether it is being
15573
 
      # built for inclusion in a dll (and should export symbols for example).
15574
 
      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15575
 
      ;;
15576
 
 
15577
 
    darwin* | rhapsody*)
15578
 
      # PIC is the default on this platform
15579
 
      # Common symbols not allowed in MH_DYLIB files
15580
 
      lt_prog_compiler_pic_GCJ='-fno-common'
15581
 
      ;;
15582
 
 
15583
 
    interix3*)
15584
 
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15585
 
      # Instead, we relocate shared libraries at runtime.
15586
 
      ;;
15587
 
 
15588
 
    msdosdjgpp*)
15589
 
      # Just because we use GCC doesn't mean we suddenly get shared libraries
15590
 
      # on systems that don't support them.
15591
 
      lt_prog_compiler_can_build_shared_GCJ=no
15592
 
      enable_shared=no
15593
 
      ;;
15594
 
 
15595
 
    sysv4*MP*)
15596
 
      if test -d /usr/nec; then
15597
 
        lt_prog_compiler_pic_GCJ=-Kconform_pic
15598
 
      fi
15599
 
      ;;
15600
 
 
15601
 
    hpux*)
15602
 
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15603
 
      # not for PA HP-UX.
15604
 
      case $host_cpu in
15605
 
      hppa*64*|ia64*)
15606
 
        # +Z the default
15607
 
        ;;
15608
 
      *)
15609
 
        lt_prog_compiler_pic_GCJ='-fPIC'
15610
 
        ;;
15611
 
      esac
15612
 
      ;;
15613
 
 
15614
 
    *)
15615
 
      lt_prog_compiler_pic_GCJ='-fPIC'
15616
 
      ;;
15617
 
    esac
15618
 
  else
15619
 
    # PORTME Check for flag to pass linker flags through the system compiler.
15620
 
    case $host_os in
15621
 
    aix*)
15622
 
      lt_prog_compiler_wl_GCJ='-Wl,'
15623
 
      if test "$host_cpu" = ia64; then
15624
 
        # AIX 5 now supports IA64 processor
15625
 
        lt_prog_compiler_static_GCJ='-Bstatic'
15626
 
      else
15627
 
        lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15628
 
      fi
15629
 
      ;;
15630
 
      darwin*)
15631
 
        # PIC is the default on this platform
15632
 
        # Common symbols not allowed in MH_DYLIB files
15633
 
       case $cc_basename in
15634
 
         xlc*)
15635
 
         lt_prog_compiler_pic_GCJ='-qnocommon'
15636
 
         lt_prog_compiler_wl_GCJ='-Wl,'
15637
 
         ;;
15638
 
       esac
15639
 
       ;;
15640
 
 
15641
 
    mingw* | pw32* | os2*)
15642
 
      # This hack is so that the source file can tell whether it is being
15643
 
      # built for inclusion in a dll (and should export symbols for example).
15644
 
      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15645
 
      ;;
15646
 
 
15647
 
    hpux9* | hpux10* | hpux11*)
15648
 
      lt_prog_compiler_wl_GCJ='-Wl,'
15649
 
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15650
 
      # not for PA HP-UX.
15651
 
      case $host_cpu in
15652
 
      hppa*64*|ia64*)
15653
 
        # +Z the default
15654
 
        ;;
15655
 
      *)
15656
 
        lt_prog_compiler_pic_GCJ='+Z'
15657
 
        ;;
15658
 
      esac
15659
 
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
15660
 
      lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15661
 
      ;;
15662
 
 
15663
 
    irix5* | irix6* | nonstopux*)
15664
 
      lt_prog_compiler_wl_GCJ='-Wl,'
15665
 
      # PIC (with -KPIC) is the default.
15666
 
      lt_prog_compiler_static_GCJ='-non_shared'
15667
 
      ;;
15668
 
 
15669
 
    newsos6)
15670
 
      lt_prog_compiler_pic_GCJ='-KPIC'
15671
 
      lt_prog_compiler_static_GCJ='-Bstatic'
15672
 
      ;;
15673
 
 
15674
 
    linux*)
15675
 
      case $cc_basename in
15676
 
      icc* | ecc*)
15677
 
        lt_prog_compiler_wl_GCJ='-Wl,'
15678
 
        lt_prog_compiler_pic_GCJ='-KPIC'
15679
 
        lt_prog_compiler_static_GCJ='-static'
15680
 
        ;;
15681
 
      pgcc* | pgf77* | pgf90* | pgf95*)
15682
 
        # Portland Group compilers (*not* the Pentium gcc compiler,
15683
 
        # which looks to be a dead project)
15684
 
        lt_prog_compiler_wl_GCJ='-Wl,'
15685
 
        lt_prog_compiler_pic_GCJ='-fpic'
15686
 
        lt_prog_compiler_static_GCJ='-Bstatic'
15687
 
        ;;
15688
 
      ccc*)
15689
 
        lt_prog_compiler_wl_GCJ='-Wl,'
15690
 
        # All Alpha code is PIC.
15691
 
        lt_prog_compiler_static_GCJ='-non_shared'
15692
 
        ;;
15693
 
      esac
15694
 
      ;;
15695
 
 
15696
 
    osf3* | osf4* | osf5*)
15697
 
      lt_prog_compiler_wl_GCJ='-Wl,'
15698
 
      # All OSF/1 code is PIC.
15699
 
      lt_prog_compiler_static_GCJ='-non_shared'
15700
 
      ;;
15701
 
 
15702
 
    solaris*)
15703
 
      lt_prog_compiler_pic_GCJ='-KPIC'
15704
 
      lt_prog_compiler_static_GCJ='-Bstatic'
15705
 
      case $cc_basename in
15706
 
      f77* | f90* | f95*)
15707
 
        lt_prog_compiler_wl_GCJ='-Qoption ld ';;
15708
 
      *)
15709
 
        lt_prog_compiler_wl_GCJ='-Wl,';;
15710
 
      esac
15711
 
      ;;
15712
 
 
15713
 
    sunos4*)
15714
 
      lt_prog_compiler_wl_GCJ='-Qoption ld '
15715
 
      lt_prog_compiler_pic_GCJ='-PIC'
15716
 
      lt_prog_compiler_static_GCJ='-Bstatic'
15717
 
      ;;
15718
 
 
15719
 
    sysv4 | sysv4.2uw2* | sysv4.3*)
15720
 
      lt_prog_compiler_wl_GCJ='-Wl,'
15721
 
      lt_prog_compiler_pic_GCJ='-KPIC'
15722
 
      lt_prog_compiler_static_GCJ='-Bstatic'
15723
 
      ;;
15724
 
 
15725
 
    sysv4*MP*)
15726
 
      if test -d /usr/nec ;then
15727
 
        lt_prog_compiler_pic_GCJ='-Kconform_pic'
15728
 
        lt_prog_compiler_static_GCJ='-Bstatic'
15729
 
      fi
15730
 
      ;;
15731
 
 
15732
 
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15733
 
      lt_prog_compiler_wl_GCJ='-Wl,'
15734
 
      lt_prog_compiler_pic_GCJ='-KPIC'
15735
 
      lt_prog_compiler_static_GCJ='-Bstatic'
15736
 
      ;;
15737
 
 
15738
 
    unicos*)
15739
 
      lt_prog_compiler_wl_GCJ='-Wl,'
15740
 
      lt_prog_compiler_can_build_shared_GCJ=no
15741
 
      ;;
15742
 
 
15743
 
    uts4*)
15744
 
      lt_prog_compiler_pic_GCJ='-pic'
15745
 
      lt_prog_compiler_static_GCJ='-Bstatic'
15746
 
      ;;
15747
 
 
15748
 
    *)
15749
 
      lt_prog_compiler_can_build_shared_GCJ=no
15750
 
      ;;
15751
 
    esac
15752
 
  fi
15753
 
 
15754
 
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15755
 
echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
15756
 
 
15757
 
#
15758
 
# Check to make sure the PIC flag actually works.
15759
 
#
15760
 
if test -n "$lt_prog_compiler_pic_GCJ"; then
15761
 
 
15762
 
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15763
 
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
15764
 
if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15765
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
15766
 
else
15767
 
  lt_prog_compiler_pic_works_GCJ=no
15768
 
  ac_outfile=conftest.$ac_objext
15769
 
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15770
 
   lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15771
 
   # Insert the option either (1) after the last *FLAGS variable, or
15772
 
   # (2) before a word containing "conftest.", or (3) at the end.
15773
 
   # Note that $ac_compile itself does not contain backslashes and begins
15774
 
   # with a dollar sign (not a hyphen), so the echo should work correctly.
15775
 
   # The option is referenced via a variable to avoid confusing sed.
15776
 
   lt_compile=`echo "$ac_compile" | $SED \
15777
 
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15778
 
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15779
 
   -e 's:$: $lt_compiler_flag:'`
15780
 
   (eval echo "\"\$as_me:15780: $lt_compile\"" >&5)
15781
 
   (eval "$lt_compile" 2>conftest.err)
15782
 
   ac_status=$?
15783
 
   cat conftest.err >&5
15784
 
   echo "$as_me:15784: \$? = $ac_status" >&5
15785
 
   if (exit $ac_status) && test -s "$ac_outfile"; then
15786
 
     # The compiler can only warn and ignore the option if not recognized
15787
 
     # So say no if there are warnings other than the usual output.
15788
 
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15789
 
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15790
 
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15791
 
       lt_prog_compiler_pic_works_GCJ=yes
15792
 
     fi
15793
 
   fi
15794
 
   $rm conftest*
15795
 
 
15796
 
fi
15797
 
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15798
 
echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
15799
 
 
15800
 
if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15801
 
    case $lt_prog_compiler_pic_GCJ in
15802
 
     "" | " "*) ;;
15803
 
     *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15804
 
     esac
15805
 
else
15806
 
    lt_prog_compiler_pic_GCJ=
15807
 
     lt_prog_compiler_can_build_shared_GCJ=no
15808
 
fi
15809
 
 
15810
 
fi
15811
 
case $host_os in
15812
 
  # For platforms which do not support PIC, -DPIC is meaningless:
15813
 
  *djgpp*)
15814
 
    lt_prog_compiler_pic_GCJ=
15815
 
    ;;
15816
 
  *)
15817
 
    lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15818
 
    ;;
15819
 
esac
15820
 
 
15821
 
#
15822
 
# Check to make sure the static flag actually works.
15823
 
#
15824
 
wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
15825
 
echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15826
 
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
15827
 
if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
15828
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
15829
 
else
15830
 
  lt_prog_compiler_static_works_GCJ=no
15831
 
   save_LDFLAGS="$LDFLAGS"
15832
 
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15833
 
   printf "$lt_simple_link_test_code" > conftest.$ac_ext
15834
 
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15835
 
     # The linker can only warn and ignore the option if not recognized
15836
 
     # So say no if there are warnings
15837
 
     if test -s conftest.err; then
15838
 
       # Append any errors to the config.log.
15839
 
       cat conftest.err 1>&5
15840
 
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
15841
 
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15842
 
       if diff conftest.exp conftest.er2 >/dev/null; then
15843
 
         lt_prog_compiler_static_works_GCJ=yes
15844
 
       fi
15845
 
     else
15846
 
       lt_prog_compiler_static_works_GCJ=yes
15847
 
     fi
15848
 
   fi
15849
 
   $rm conftest*
15850
 
   LDFLAGS="$save_LDFLAGS"
15851
 
 
15852
 
fi
15853
 
echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
15854
 
echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6
15855
 
 
15856
 
if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
15857
 
    :
15858
 
else
15859
 
    lt_prog_compiler_static_GCJ=
15860
 
fi
15861
 
 
15862
 
 
15863
 
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15864
 
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15865
 
if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
15866
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
15867
 
else
15868
 
  lt_cv_prog_compiler_c_o_GCJ=no
15869
 
   $rm -r conftest 2>/dev/null
15870
 
   mkdir conftest
15871
 
   cd conftest
15872
 
   mkdir out
15873
 
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15874
 
 
15875
 
   lt_compiler_flag="-o out/conftest2.$ac_objext"
15876
 
   # Insert the option either (1) after the last *FLAGS variable, or
15877
 
   # (2) before a word containing "conftest.", or (3) at the end.
15878
 
   # Note that $ac_compile itself does not contain backslashes and begins
15879
 
   # with a dollar sign (not a hyphen), so the echo should work correctly.
15880
 
   lt_compile=`echo "$ac_compile" | $SED \
15881
 
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15882
 
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15883
 
   -e 's:$: $lt_compiler_flag:'`
15884
 
   (eval echo "\"\$as_me:15884: $lt_compile\"" >&5)
15885
 
   (eval "$lt_compile" 2>out/conftest.err)
15886
 
   ac_status=$?
15887
 
   cat out/conftest.err >&5
15888
 
   echo "$as_me:15888: \$? = $ac_status" >&5
15889
 
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
15890
 
   then
15891
 
     # The compiler can only warn and ignore the option if not recognized
15892
 
     # So say no if there are warnings
15893
 
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15894
 
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15895
 
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15896
 
       lt_cv_prog_compiler_c_o_GCJ=yes
15897
 
     fi
15898
 
   fi
15899
 
   chmod u+w . 2>&5
15900
 
   $rm conftest*
15901
 
   # SGI C++ compiler will create directory out/ii_files/ for
15902
 
   # template instantiation
15903
 
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15904
 
   $rm out/* && rmdir out
15905
 
   cd ..
15906
 
   rmdir conftest
15907
 
   $rm conftest*
15908
 
 
15909
 
fi
15910
 
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15911
 
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
15912
 
 
15913
 
 
15914
 
hard_links="nottested"
15915
 
if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15916
 
  # do not overwrite the value of need_locks provided by the user
15917
 
  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15918
 
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15919
 
  hard_links=yes
15920
 
  $rm conftest*
15921
 
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
15922
 
  touch conftest.a
15923
 
  ln conftest.a conftest.b 2>&5 || hard_links=no
15924
 
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
15925
 
  echo "$as_me:$LINENO: result: $hard_links" >&5
15926
 
echo "${ECHO_T}$hard_links" >&6
15927
 
  if test "$hard_links" = no; then
15928
 
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15929
 
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15930
 
    need_locks=warn
15931
 
  fi
15932
 
else
15933
 
  need_locks=no
15934
 
fi
15935
 
 
15936
 
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15937
 
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15938
 
 
15939
 
  runpath_var=
15940
 
  allow_undefined_flag_GCJ=
15941
 
  enable_shared_with_static_runtimes_GCJ=no
15942
 
  archive_cmds_GCJ=
15943
 
  archive_expsym_cmds_GCJ=
15944
 
  old_archive_From_new_cmds_GCJ=
15945
 
  old_archive_from_expsyms_cmds_GCJ=
15946
 
  export_dynamic_flag_spec_GCJ=
15947
 
  whole_archive_flag_spec_GCJ=
15948
 
  thread_safe_flag_spec_GCJ=
15949
 
  hardcode_libdir_flag_spec_GCJ=
15950
 
  hardcode_libdir_flag_spec_ld_GCJ=
15951
 
  hardcode_libdir_separator_GCJ=
15952
 
  hardcode_direct_GCJ=no
15953
 
  hardcode_minus_L_GCJ=no
15954
 
  hardcode_shlibpath_var_GCJ=unsupported
15955
 
  link_all_deplibs_GCJ=unknown
15956
 
  hardcode_automatic_GCJ=no
15957
 
  module_cmds_GCJ=
15958
 
  module_expsym_cmds_GCJ=
15959
 
  always_export_symbols_GCJ=no
15960
 
  export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15961
 
  # include_expsyms should be a list of space-separated symbols to be *always*
15962
 
  # included in the symbol list
15963
 
  include_expsyms_GCJ=
15964
 
  # exclude_expsyms can be an extended regexp of symbols to exclude
15965
 
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
15966
 
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15967
 
  # as well as any symbol that contains `d'.
15968
 
  exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
15969
 
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15970
 
  # platforms (ab)use it in PIC code, but their linkers get confused if
15971
 
  # the symbol is explicitly referenced.  Since portable code cannot
15972
 
  # rely on this symbol name, it's probably fine to never include it in
15973
 
  # preloaded symbol tables.
15974
 
  extract_expsyms_cmds=
15975
 
  # Just being paranoid about ensuring that cc_basename is set.
15976
 
  for cc_temp in $compiler""; do
15977
 
  case $cc_temp in
15978
 
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15979
 
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15980
 
    \-*) ;;
15981
 
    *) break;;
15982
 
  esac
15983
 
done
15984
 
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15985
 
 
15986
 
  case $host_os in
15987
 
  cygwin* | mingw* | pw32*)
15988
 
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
15989
 
    # When not using gcc, we currently assume that we are using
15990
 
    # Microsoft Visual C++.
15991
 
    if test "$GCC" != yes; then
15992
 
      with_gnu_ld=no
15993
 
    fi
15994
 
    ;;
15995
 
  interix*)
15996
 
    # we just hope/assume this is gcc and not c89 (= MSVC++)
15997
 
    with_gnu_ld=yes
15998
 
    ;;
15999
 
  openbsd*)
16000
 
    with_gnu_ld=no
16001
 
    ;;
16002
 
  esac
16003
 
 
16004
 
  ld_shlibs_GCJ=yes
16005
 
  if test "$with_gnu_ld" = yes; then
16006
 
    # If archive_cmds runs LD, not CC, wlarc should be empty
16007
 
    wlarc='${wl}'
16008
 
 
16009
 
    # Set some defaults for GNU ld with shared library support. These
16010
 
    # are reset later if shared libraries are not supported. Putting them
16011
 
    # here allows them to be overridden if necessary.
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
 
    supports_anon_versioning=no
16022
 
    case `$LD -v 2>/dev/null` in
16023
 
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16024
 
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16025
 
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16026
 
      *\ 2.11.*) ;; # other 2.11 versions
16027
 
      *) supports_anon_versioning=yes ;;
16028
 
    esac
16029
 
 
16030
 
    # See if GNU ld supports shared libraries.
16031
 
    case $host_os in
16032
 
    aix3* | aix4* | aix5*)
16033
 
      # On AIX/PPC, the GNU linker is very broken
16034
 
      if test "$host_cpu" != ia64; then
16035
 
        ld_shlibs_GCJ=no
16036
 
        cat <<EOF 1>&2
16037
 
 
16038
 
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
16039
 
*** to be unable to reliably create shared libraries on AIX.
16040
 
*** Therefore, libtool is disabling shared libraries support.  If you
16041
 
*** really care for shared libraries, you may want to modify your PATH
16042
 
*** so that a non-GNU linker is found, and then restart.
16043
 
 
16044
 
EOF
16045
 
      fi
16046
 
      ;;
16047
 
 
16048
 
    amigaos*)
16049
 
      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)'
16050
 
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16051
 
      hardcode_minus_L_GCJ=yes
16052
 
 
16053
 
      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16054
 
      # that the semantics of dynamic libraries on AmigaOS, at least up
16055
 
      # to version 4, is to share data among multiple programs linked
16056
 
      # with the same dynamic library.  Since this doesn't match the
16057
 
      # behavior of shared libraries on other platforms, we can't use
16058
 
      # them.
16059
 
      ld_shlibs_GCJ=no
16060
 
      ;;
16061
 
 
16062
 
    beos*)
16063
 
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16064
 
        allow_undefined_flag_GCJ=unsupported
16065
 
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16066
 
        # support --undefined.  This deserves some investigation.  FIXME
16067
 
        archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16068
 
      else
16069
 
        ld_shlibs_GCJ=no
16070
 
      fi
16071
 
      ;;
16072
 
 
16073
 
    cygwin* | mingw* | pw32*)
16074
 
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16075
 
      # as there is no search path for DLLs.
16076
 
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16077
 
      allow_undefined_flag_GCJ=unsupported
16078
 
      always_export_symbols_GCJ=no
16079
 
      enable_shared_with_static_runtimes_GCJ=yes
16080
 
      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16081
 
 
16082
 
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16083
 
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16084
 
        # If the export-symbols file already is a .def file (1st line
16085
 
        # is EXPORTS), use it as is; otherwise, prepend...
16086
 
        archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16087
 
          cp $export_symbols $output_objdir/$soname.def;
16088
 
        else
16089
 
          echo EXPORTS > $output_objdir/$soname.def;
16090
 
          cat $export_symbols >> $output_objdir/$soname.def;
16091
 
        fi~
16092
 
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16093
 
      else
16094
 
        ld_shlibs_GCJ=no
16095
 
      fi
16096
 
      ;;
16097
 
 
16098
 
    interix3*)
16099
 
      hardcode_direct_GCJ=no
16100
 
      hardcode_shlibpath_var_GCJ=no
16101
 
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16102
 
      export_dynamic_flag_spec_GCJ='${wl}-E'
16103
 
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16104
 
      # Instead, shared libraries are loaded at an image base (0x10000000 by
16105
 
      # default) and relocated if they conflict, which is a slow very memory
16106
 
      # consuming and fragmenting process.  To avoid this, we pick a random,
16107
 
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16108
 
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
16109
 
      archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16110
 
      archive_expsym_cmds_GCJ='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16111
 
      ;;
16112
 
 
16113
 
    linux*)
16114
 
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16115
 
        tmp_addflag=
16116
 
        case $cc_basename,$host_cpu in
16117
 
        pgcc*)                          # Portland Group C compiler
16118
 
          whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
16119
 
          tmp_addflag=' $pic_flag'
16120
 
          ;;
16121
 
        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
16122
 
          whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
16123
 
          tmp_addflag=' $pic_flag -Mnomain' ;;
16124
 
        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
16125
 
          tmp_addflag=' -i_dynamic' ;;
16126
 
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
16127
 
          tmp_addflag=' -i_dynamic -nofor_main' ;;
16128
 
        ifc* | ifort*)                  # Intel Fortran compiler
16129
 
          tmp_addflag=' -nofor_main' ;;
16130
 
        esac
16131
 
        archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16132
 
 
16133
 
        if test $supports_anon_versioning = yes; then
16134
 
          archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16135
 
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16136
 
  $echo "local: *; };" >> $output_objdir/$libname.ver~
16137
 
          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16138
 
        fi
16139
 
        link_all_deplibs_GCJ=no
16140
 
      else
16141
 
        ld_shlibs_GCJ=no
16142
 
      fi
16143
 
      ;;
16144
 
 
16145
 
    netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
16146
 
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16147
 
        archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16148
 
        wlarc=
16149
 
      else
16150
 
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16151
 
        archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16152
 
      fi
16153
 
      ;;
16154
 
 
16155
 
    solaris*)
16156
 
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16157
 
        ld_shlibs_GCJ=no
16158
 
        cat <<EOF 1>&2
16159
 
 
16160
 
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
16161
 
*** create shared libraries on Solaris systems.  Therefore, libtool
16162
 
*** is disabling shared libraries support.  We urge you to upgrade GNU
16163
 
*** binutils to release 2.9.1 or newer.  Another option is to modify
16164
 
*** your PATH or compiler configuration so that the native linker is
16165
 
*** used, and then restart.
16166
 
 
16167
 
EOF
16168
 
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16169
 
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16170
 
        archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16171
 
      else
16172
 
        ld_shlibs_GCJ=no
16173
 
      fi
16174
 
      ;;
16175
 
 
16176
 
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16177
 
      case `$LD -v 2>&1` in
16178
 
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16179
 
        ld_shlibs_GCJ=no
16180
 
        cat <<_LT_EOF 1>&2
16181
 
 
16182
 
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16183
 
*** reliably create shared libraries on SCO systems.  Therefore, libtool
16184
 
*** is disabling shared libraries support.  We urge you to upgrade GNU
16185
 
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
16186
 
*** your PATH or compiler configuration so that the native linker is
16187
 
*** used, and then restart.
16188
 
 
16189
 
_LT_EOF
16190
 
        ;;
16191
 
        *)
16192
 
          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16193
 
            hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
16194
 
            archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
16195
 
            archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
16196
 
          else
16197
 
            ld_shlibs_GCJ=no
16198
 
          fi
16199
 
        ;;
16200
 
      esac
16201
 
      ;;
16202
 
 
16203
 
    sunos4*)
16204
 
      archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16205
 
      wlarc=
16206
 
      hardcode_direct_GCJ=yes
16207
 
      hardcode_shlibpath_var_GCJ=no
16208
 
      ;;
16209
 
 
16210
 
    *)
16211
 
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16212
 
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16213
 
        archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16214
 
      else
16215
 
        ld_shlibs_GCJ=no
16216
 
      fi
16217
 
      ;;
16218
 
    esac
16219
 
 
16220
 
    if test "$ld_shlibs_GCJ" = no; then
16221
 
      runpath_var=
16222
 
      hardcode_libdir_flag_spec_GCJ=
16223
 
      export_dynamic_flag_spec_GCJ=
16224
 
      whole_archive_flag_spec_GCJ=
16225
 
    fi
16226
 
  else
16227
 
    # PORTME fill in a description of your system's linker (not GNU ld)
16228
 
    case $host_os in
16229
 
    aix3*)
16230
 
      allow_undefined_flag_GCJ=unsupported
16231
 
      always_export_symbols_GCJ=yes
16232
 
      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'
16233
 
      # Note: this linker hardcodes the directories in LIBPATH if there
16234
 
      # are no directories specified by -L.
16235
 
      hardcode_minus_L_GCJ=yes
16236
 
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16237
 
        # Neither direct hardcoding nor static linking is supported with a
16238
 
        # broken collect2.
16239
 
        hardcode_direct_GCJ=unsupported
16240
 
      fi
16241
 
      ;;
16242
 
 
16243
 
    aix4* | aix5*)
16244
 
      if test "$host_cpu" = ia64; then
16245
 
        # On IA64, the linker does run time linking by default, so we don't
16246
 
        # have to do anything special.
16247
 
        aix_use_runtimelinking=no
16248
 
        exp_sym_flag='-Bexport'
16249
 
        no_entry_flag=""
16250
 
      else
16251
 
        # If we're using GNU nm, then we don't want the "-C" option.
16252
 
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
16253
 
        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16254
 
          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'
16255
 
        else
16256
 
          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'
16257
 
        fi
16258
 
        aix_use_runtimelinking=no
16259
 
 
16260
 
        # Test if we are trying to use run time linking or normal
16261
 
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16262
 
        # need to do runtime linking.
16263
 
        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16264
 
          for ld_flag in $LDFLAGS; do
16265
 
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16266
 
            aix_use_runtimelinking=yes
16267
 
            break
16268
 
          fi
16269
 
          done
16270
 
          ;;
16271
 
        esac
16272
 
 
16273
 
        exp_sym_flag='-bexport'
16274
 
        no_entry_flag='-bnoentry'
16275
 
      fi
16276
 
 
16277
 
      # When large executables or shared objects are built, AIX ld can
16278
 
      # have problems creating the table of contents.  If linking a library
16279
 
      # or program results in "error TOC overflow" add -mminimal-toc to
16280
 
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
16281
 
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16282
 
 
16283
 
      archive_cmds_GCJ=''
16284
 
      hardcode_direct_GCJ=yes
16285
 
      hardcode_libdir_separator_GCJ=':'
16286
 
      link_all_deplibs_GCJ=yes
16287
 
 
16288
 
      if test "$GCC" = yes; then
16289
 
        case $host_os in aix4.[012]|aix4.[012].*)
16290
 
        # We only want to do this on AIX 4.2 and lower, the check
16291
 
        # below for broken collect2 doesn't work under 4.3+
16292
 
          collect2name=`${CC} -print-prog-name=collect2`
16293
 
          if test -f "$collect2name" && \
16294
 
           strings "$collect2name" | grep resolve_lib_name >/dev/null
16295
 
          then
16296
 
          # We have reworked collect2
16297
 
          hardcode_direct_GCJ=yes
16298
 
          else
16299
 
          # We have old collect2
16300
 
          hardcode_direct_GCJ=unsupported
16301
 
          # It fails to find uninstalled libraries when the uninstalled
16302
 
          # path is not listed in the libpath.  Setting hardcode_minus_L
16303
 
          # to unsupported forces relinking
16304
 
          hardcode_minus_L_GCJ=yes
16305
 
          hardcode_libdir_flag_spec_GCJ='-L$libdir'
16306
 
          hardcode_libdir_separator_GCJ=
16307
 
          fi
16308
 
          ;;
16309
 
        esac
16310
 
        shared_flag='-shared'
16311
 
        if test "$aix_use_runtimelinking" = yes; then
16312
 
          shared_flag="$shared_flag "'${wl}-G'
16313
 
        fi
16314
 
      else
16315
 
        # not using gcc
16316
 
        if test "$host_cpu" = ia64; then
16317
 
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16318
 
        # chokes on -Wl,-G. The following line is correct:
16319
 
          shared_flag='-G'
16320
 
        else
16321
 
          if test "$aix_use_runtimelinking" = yes; then
16322
 
            shared_flag='${wl}-G'
16323
 
          else
16324
 
            shared_flag='${wl}-bM:SRE'
16325
 
          fi
16326
 
        fi
16327
 
      fi
16328
 
 
16329
 
      # It seems that -bexpall does not export symbols beginning with
16330
 
      # underscore (_), so it is better to generate a list of symbols to export.
16331
 
      always_export_symbols_GCJ=yes
16332
 
      if test "$aix_use_runtimelinking" = yes; then
16333
 
        # Warning - without using the other runtime loading flags (-brtl),
16334
 
        # -berok will link without error, but may produce a broken library.
16335
 
        allow_undefined_flag_GCJ='-berok'
16336
 
       # Determine the default libpath from the value encoded in an empty executable.
16337
 
       cat >conftest.$ac_ext <<_ACEOF
16338
 
/* confdefs.h.  */
16339
 
_ACEOF
16340
 
cat confdefs.h >>conftest.$ac_ext
16341
 
cat >>conftest.$ac_ext <<_ACEOF
16342
 
/* end confdefs.h.  */
16343
 
 
16344
 
int
16345
 
main ()
16346
 
{
16347
 
 
16348
 
  ;
16349
 
  return 0;
16350
 
}
16351
 
_ACEOF
16352
 
rm -f conftest.$ac_objext conftest$ac_exeext
16353
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16354
 
  (eval $ac_link) 2>conftest.er1
16355
 
  ac_status=$?
16356
 
  grep -v '^ *+' conftest.er1 >conftest.err
16357
 
  rm -f conftest.er1
16358
 
  cat conftest.err >&5
16359
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16360
 
  (exit $ac_status); } &&
16361
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
16362
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16363
 
  (eval $ac_try) 2>&5
16364
 
  ac_status=$?
16365
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16366
 
  (exit $ac_status); }; } &&
16367
 
         { ac_try='test -s conftest$ac_exeext'
16368
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16369
 
  (eval $ac_try) 2>&5
16370
 
  ac_status=$?
16371
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16372
 
  (exit $ac_status); }; }; then
16373
 
 
16374
 
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16375
 
}'`
16376
 
# Check for a 64-bit object if we didn't find anything.
16377
 
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; }
16378
 
}'`; fi
16379
 
else
16380
 
  echo "$as_me: failed program was:" >&5
16381
 
sed 's/^/| /' conftest.$ac_ext >&5
16382
 
 
16383
 
fi
16384
 
rm -f conftest.err conftest.$ac_objext \
16385
 
      conftest$ac_exeext conftest.$ac_ext
16386
 
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16387
 
 
16388
 
       hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16389
 
        archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
16390
 
       else
16391
 
        if test "$host_cpu" = ia64; then
16392
 
          hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16393
 
          allow_undefined_flag_GCJ="-z nodefs"
16394
 
          archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
16395
 
        else
16396
 
         # Determine the default libpath from the value encoded in an empty executable.
16397
 
         cat >conftest.$ac_ext <<_ACEOF
16398
 
/* confdefs.h.  */
16399
 
_ACEOF
16400
 
cat confdefs.h >>conftest.$ac_ext
16401
 
cat >>conftest.$ac_ext <<_ACEOF
16402
 
/* end confdefs.h.  */
16403
 
 
16404
 
int
16405
 
main ()
16406
 
{
16407
 
 
16408
 
  ;
16409
 
  return 0;
16410
 
}
16411
 
_ACEOF
16412
 
rm -f conftest.$ac_objext conftest$ac_exeext
16413
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16414
 
  (eval $ac_link) 2>conftest.er1
16415
 
  ac_status=$?
16416
 
  grep -v '^ *+' conftest.er1 >conftest.err
16417
 
  rm -f conftest.er1
16418
 
  cat conftest.err >&5
16419
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16420
 
  (exit $ac_status); } &&
16421
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
16422
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16423
 
  (eval $ac_try) 2>&5
16424
 
  ac_status=$?
16425
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16426
 
  (exit $ac_status); }; } &&
16427
 
         { ac_try='test -s conftest$ac_exeext'
16428
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16429
 
  (eval $ac_try) 2>&5
16430
 
  ac_status=$?
16431
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16432
 
  (exit $ac_status); }; }; then
16433
 
 
16434
 
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16435
 
}'`
16436
 
# Check for a 64-bit object if we didn't find anything.
16437
 
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; }
16438
 
}'`; fi
16439
 
else
16440
 
  echo "$as_me: failed program was:" >&5
16441
 
sed 's/^/| /' conftest.$ac_ext >&5
16442
 
 
16443
 
fi
16444
 
rm -f conftest.err conftest.$ac_objext \
16445
 
      conftest$ac_exeext conftest.$ac_ext
16446
 
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16447
 
 
16448
 
         hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16449
 
          # Warning - without using the other run time loading flags,
16450
 
          # -berok will link without error, but may produce a broken library.
16451
 
          no_undefined_flag_GCJ=' ${wl}-bernotok'
16452
 
          allow_undefined_flag_GCJ=' ${wl}-berok'
16453
 
          # Exported symbols can be pulled into shared objects from archives
16454
 
          whole_archive_flag_spec_GCJ='$convenience'
16455
 
          archive_cmds_need_lc_GCJ=yes
16456
 
          # This is similar to how AIX traditionally builds its shared libraries.
16457
 
          archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
16458
 
        fi
16459
 
      fi
16460
 
      ;;
16461
 
 
16462
 
    amigaos*)
16463
 
      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)'
16464
 
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16465
 
      hardcode_minus_L_GCJ=yes
16466
 
      # see comment about different semantics on the GNU ld section
16467
 
      ld_shlibs_GCJ=no
16468
 
      ;;
16469
 
 
16470
 
    bsdi[45]*)
16471
 
      export_dynamic_flag_spec_GCJ=-rdynamic
16472
 
      ;;
16473
 
 
16474
 
    cygwin* | mingw* | pw32*)
16475
 
      # When not using gcc, we currently assume that we are using
16476
 
      # Microsoft Visual C++.
16477
 
      # hardcode_libdir_flag_spec is actually meaningless, as there is
16478
 
      # no search path for DLLs.
16479
 
      hardcode_libdir_flag_spec_GCJ=' '
16480
 
      allow_undefined_flag_GCJ=unsupported
16481
 
      # Tell ltmain to make .lib files, not .a files.
16482
 
      libext=lib
16483
 
      # Tell ltmain to make .dll files, not .so files.
16484
 
      shrext_cmds=".dll"
16485
 
      # FIXME: Setting linknames here is a bad hack.
16486
 
      archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16487
 
      # The linker will automatically build a .lib file if we build a DLL.
16488
 
      old_archive_From_new_cmds_GCJ='true'
16489
 
      # FIXME: Should let the user specify the lib program.
16490
 
      old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16491
 
      fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
16492
 
      enable_shared_with_static_runtimes_GCJ=yes
16493
 
      ;;
16494
 
 
16495
 
    darwin* | rhapsody*)
16496
 
      case $host_os in
16497
 
        rhapsody* | darwin1.[012])
16498
 
         allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
16499
 
         ;;
16500
 
       *) # Darwin 1.3 on
16501
 
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16502
 
           allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16503
 
         else
16504
 
           case ${MACOSX_DEPLOYMENT_TARGET} in
16505
 
             10.[012])
16506
 
               allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16507
 
               ;;
16508
 
             10.*)
16509
 
               allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
16510
 
               ;;
16511
 
           esac
16512
 
         fi
16513
 
         ;;
16514
 
      esac
16515
 
      archive_cmds_need_lc_GCJ=no
16516
 
      hardcode_direct_GCJ=no
16517
 
      hardcode_automatic_GCJ=yes
16518
 
      hardcode_shlibpath_var_GCJ=unsupported
16519
 
      whole_archive_flag_spec_GCJ=''
16520
 
      link_all_deplibs_GCJ=yes
16521
 
    if test "$GCC" = yes ; then
16522
 
        output_verbose_link_cmd='echo'
16523
 
        archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16524
 
      module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16525
 
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16526
 
      archive_expsym_cmds_GCJ='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}'
16527
 
      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}'
16528
 
    else
16529
 
      case $cc_basename in
16530
 
        xlc*)
16531
 
         output_verbose_link_cmd='echo'
16532
 
         archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
16533
 
         module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16534
 
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16535
 
         archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16536
 
          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}'
16537
 
          ;;
16538
 
       *)
16539
 
         ld_shlibs_GCJ=no
16540
 
          ;;
16541
 
      esac
16542
 
    fi
16543
 
      ;;
16544
 
 
16545
 
    dgux*)
16546
 
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16547
 
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16548
 
      hardcode_shlibpath_var_GCJ=no
16549
 
      ;;
16550
 
 
16551
 
    freebsd1*)
16552
 
      ld_shlibs_GCJ=no
16553
 
      ;;
16554
 
 
16555
 
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16556
 
    # support.  Future versions do this automatically, but an explicit c++rt0.o
16557
 
    # does not break anything, and helps significantly (at the cost of a little
16558
 
    # extra space).
16559
 
    freebsd2.2*)
16560
 
      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16561
 
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
16562
 
      hardcode_direct_GCJ=yes
16563
 
      hardcode_shlibpath_var_GCJ=no
16564
 
      ;;
16565
 
 
16566
 
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16567
 
    freebsd2*)
16568
 
      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16569
 
      hardcode_direct_GCJ=yes
16570
 
      hardcode_minus_L_GCJ=yes
16571
 
      hardcode_shlibpath_var_GCJ=no
16572
 
      ;;
16573
 
 
16574
 
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16575
 
    freebsd* | dragonfly*)
16576
 
      archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16577
 
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
16578
 
      hardcode_direct_GCJ=yes
16579
 
      hardcode_shlibpath_var_GCJ=no
16580
 
      ;;
16581
 
 
16582
 
    # GNU/kFreeBSD uses gcc -shared to do shared libraries.
16583
 
    kfreebsd*-gnu)
16584
 
      archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16585
 
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
16586
 
      hardcode_direct_GCJ=yes
16587
 
      hardcode_shlibpath_var_GCJ=no
16588
 
      link_all_deplibs_GCJ=no
16589
 
      ;;
16590
 
 
16591
 
    hpux9*)
16592
 
      if test "$GCC" = yes; then
16593
 
        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'
16594
 
      else
16595
 
        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'
16596
 
      fi
16597
 
      hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16598
 
      hardcode_libdir_separator_GCJ=:
16599
 
      hardcode_direct_GCJ=yes
16600
 
 
16601
 
      # hardcode_minus_L: Not really in the search PATH,
16602
 
      # but as the default location of the library.
16603
 
      hardcode_minus_L_GCJ=yes
16604
 
      export_dynamic_flag_spec_GCJ='${wl}-E'
16605
 
      ;;
16606
 
 
16607
 
    hpux10*)
16608
 
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16609
 
        archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16610
 
      else
16611
 
        archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16612
 
      fi
16613
 
      if test "$with_gnu_ld" = no; then
16614
 
        hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16615
 
        hardcode_libdir_separator_GCJ=:
16616
 
 
16617
 
        hardcode_direct_GCJ=yes
16618
 
        export_dynamic_flag_spec_GCJ='${wl}-E'
16619
 
 
16620
 
        # hardcode_minus_L: Not really in the search PATH,
16621
 
        # but as the default location of the library.
16622
 
        hardcode_minus_L_GCJ=yes
16623
 
      fi
16624
 
      ;;
16625
 
 
16626
 
    hpux11*)
16627
 
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16628
 
        case $host_cpu in
16629
 
        hppa*64*)
16630
 
          archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16631
 
          ;;
16632
 
        ia64*)
16633
 
          archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16634
 
          ;;
16635
 
        *)
16636
 
          archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16637
 
          ;;
16638
 
        esac
16639
 
      else
16640
 
        case $host_cpu in
16641
 
        hppa*64*)
16642
 
          archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16643
 
          ;;
16644
 
        ia64*)
16645
 
          archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16646
 
          ;;
16647
 
        *)
16648
 
          archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16649
 
          ;;
16650
 
        esac
16651
 
      fi
16652
 
      if test "$with_gnu_ld" = no; then
16653
 
        hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16654
 
        hardcode_libdir_separator_GCJ=:
16655
 
 
16656
 
        case $host_cpu in
16657
 
        hppa*64*|ia64*)
16658
 
          hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16659
 
          hardcode_direct_GCJ=no
16660
 
          hardcode_shlibpath_var_GCJ=no
16661
 
          ;;
16662
 
        *)
16663
 
          hardcode_direct_GCJ=yes
16664
 
          export_dynamic_flag_spec_GCJ='${wl}-E'
16665
 
 
16666
 
          # hardcode_minus_L: Not really in the search PATH,
16667
 
          # but as the default location of the library.
16668
 
          hardcode_minus_L_GCJ=yes
16669
 
          ;;
16670
 
        esac
16671
 
      fi
16672
 
      ;;
16673
 
 
16674
 
    irix5* | irix6* | nonstopux*)
16675
 
      if test "$GCC" = yes; then
16676
 
        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'
16677
 
      else
16678
 
        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'
16679
 
        hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16680
 
      fi
16681
 
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16682
 
      hardcode_libdir_separator_GCJ=:
16683
 
      link_all_deplibs_GCJ=yes
16684
 
      ;;
16685
 
 
16686
 
    netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
16687
 
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16688
 
        archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
16689
 
      else
16690
 
        archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
16691
 
      fi
16692
 
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
16693
 
      hardcode_direct_GCJ=yes
16694
 
      hardcode_shlibpath_var_GCJ=no
16695
 
      ;;
16696
 
 
16697
 
    newsos6)
16698
 
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16699
 
      hardcode_direct_GCJ=yes
16700
 
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16701
 
      hardcode_libdir_separator_GCJ=:
16702
 
      hardcode_shlibpath_var_GCJ=no
16703
 
      ;;
16704
 
 
16705
 
    openbsd*)
16706
 
      hardcode_direct_GCJ=yes
16707
 
      hardcode_shlibpath_var_GCJ=no
16708
 
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16709
 
        archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16710
 
        archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16711
 
        hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16712
 
        export_dynamic_flag_spec_GCJ='${wl}-E'
16713
 
      else
16714
 
       case $host_os in
16715
 
         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16716
 
           archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16717
 
           hardcode_libdir_flag_spec_GCJ='-R$libdir'
16718
 
           ;;
16719
 
         *)
16720
 
           archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16721
 
           hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16722
 
           ;;
16723
 
       esac
16724
 
      fi
16725
 
      ;;
16726
 
 
16727
 
    os2*)
16728
 
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16729
 
      hardcode_minus_L_GCJ=yes
16730
 
      allow_undefined_flag_GCJ=unsupported
16731
 
      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'
16732
 
      old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16733
 
      ;;
16734
 
 
16735
 
    osf3*)
16736
 
      if test "$GCC" = yes; then
16737
 
        allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16738
 
        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'
16739
 
      else
16740
 
        allow_undefined_flag_GCJ=' -expect_unresolved \*'
16741
 
        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'
16742
 
      fi
16743
 
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16744
 
      hardcode_libdir_separator_GCJ=:
16745
 
      ;;
16746
 
 
16747
 
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
16748
 
      if test "$GCC" = yes; then
16749
 
        allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16750
 
        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'
16751
 
        hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16752
 
      else
16753
 
        allow_undefined_flag_GCJ=' -expect_unresolved \*'
16754
 
        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'
16755
 
        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~
16756
 
        $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
16757
 
 
16758
 
        # Both c and cxx compiler support -rpath directly
16759
 
        hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16760
 
      fi
16761
 
      hardcode_libdir_separator_GCJ=:
16762
 
      ;;
16763
 
 
16764
 
    solaris*)
16765
 
      no_undefined_flag_GCJ=' -z text'
16766
 
      if test "$GCC" = yes; then
16767
 
        wlarc='${wl}'
16768
 
        archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16769
 
        archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16770
 
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16771
 
      else
16772
 
        wlarc=''
16773
 
        archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16774
 
        archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16775
 
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16776
 
      fi
16777
 
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
16778
 
      hardcode_shlibpath_var_GCJ=no
16779
 
      case $host_os in
16780
 
      solaris2.[0-5] | solaris2.[0-5].*) ;;
16781
 
      *)
16782
 
        # The compiler driver will combine linker options so we
16783
 
        # cannot just pass the convience library names through
16784
 
        # without $wl, iff we do not link with $LD.
16785
 
        # Luckily, gcc supports the same syntax we need for Sun Studio.
16786
 
        # Supported since Solaris 2.6 (maybe 2.5.1?)
16787
 
        case $wlarc in
16788
 
        '')
16789
 
          whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
16790
 
        *)
16791
 
          whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
16792
 
        esac ;;
16793
 
      esac
16794
 
      link_all_deplibs_GCJ=yes
16795
 
      ;;
16796
 
 
16797
 
    sunos4*)
16798
 
      if test "x$host_vendor" = xsequent; then
16799
 
        # Use $CC to link under sequent, because it throws in some extra .o
16800
 
        # files that make .init and .fini sections work.
16801
 
        archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16802
 
      else
16803
 
        archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16804
 
      fi
16805
 
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16806
 
      hardcode_direct_GCJ=yes
16807
 
      hardcode_minus_L_GCJ=yes
16808
 
      hardcode_shlibpath_var_GCJ=no
16809
 
      ;;
16810
 
 
16811
 
    sysv4)
16812
 
      case $host_vendor in
16813
 
        sni)
16814
 
          archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16815
 
          hardcode_direct_GCJ=yes # is this really true???
16816
 
        ;;
16817
 
        siemens)
16818
 
          ## LD is ld it makes a PLAMLIB
16819
 
          ## CC just makes a GrossModule.
16820
 
          archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16821
 
          reload_cmds_GCJ='$CC -r -o $output$reload_objs'
16822
 
          hardcode_direct_GCJ=no
16823
 
        ;;
16824
 
        motorola)
16825
 
          archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16826
 
          hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
16827
 
        ;;
16828
 
      esac
16829
 
      runpath_var='LD_RUN_PATH'
16830
 
      hardcode_shlibpath_var_GCJ=no
16831
 
      ;;
16832
 
 
16833
 
    sysv4.3*)
16834
 
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16835
 
      hardcode_shlibpath_var_GCJ=no
16836
 
      export_dynamic_flag_spec_GCJ='-Bexport'
16837
 
      ;;
16838
 
 
16839
 
    sysv4*MP*)
16840
 
      if test -d /usr/nec; then
16841
 
        archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16842
 
        hardcode_shlibpath_var_GCJ=no
16843
 
        runpath_var=LD_RUN_PATH
16844
 
        hardcode_runpath_var=yes
16845
 
        ld_shlibs_GCJ=yes
16846
 
      fi
16847
 
      ;;
16848
 
 
16849
 
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
16850
 
      no_undefined_flag_GCJ='${wl}-z,text'
16851
 
      archive_cmds_need_lc_GCJ=no
16852
 
      hardcode_shlibpath_var_GCJ=no
16853
 
      runpath_var='LD_RUN_PATH'
16854
 
 
16855
 
      if test "$GCC" = yes; then
16856
 
        archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16857
 
        archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16858
 
      else
16859
 
        archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16860
 
        archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16861
 
      fi
16862
 
      ;;
16863
 
 
16864
 
    sysv5* | sco3.2v5* | sco5v6*)
16865
 
      # Note: We can NOT use -z defs as we might desire, because we do not
16866
 
      # link with -lc, and that would cause any symbols used from libc to
16867
 
      # always be unresolved, which means just about no library would
16868
 
      # ever link correctly.  If we're not using GNU ld we use -z text
16869
 
      # though, which does catch some bad symbols but isn't as heavy-handed
16870
 
      # as -z defs.
16871
 
      no_undefined_flag_GCJ='${wl}-z,text'
16872
 
      allow_undefined_flag_GCJ='${wl}-z,nodefs'
16873
 
      archive_cmds_need_lc_GCJ=no
16874
 
      hardcode_shlibpath_var_GCJ=no
16875
 
      hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
16876
 
      hardcode_libdir_separator_GCJ=':'
16877
 
      link_all_deplibs_GCJ=yes
16878
 
      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16879
 
      runpath_var='LD_RUN_PATH'
16880
 
 
16881
 
      if test "$GCC" = yes; then
16882
 
        archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16883
 
        archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16884
 
      else
16885
 
        archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16886
 
        archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16887
 
      fi
16888
 
      ;;
16889
 
 
16890
 
    uts4*)
16891
 
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16892
 
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16893
 
      hardcode_shlibpath_var_GCJ=no
16894
 
      ;;
16895
 
 
16896
 
    *)
16897
 
      ld_shlibs_GCJ=no
16898
 
      ;;
16899
 
    esac
16900
 
  fi
16901
 
 
16902
 
echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
16903
 
echo "${ECHO_T}$ld_shlibs_GCJ" >&6
16904
 
test "$ld_shlibs_GCJ" = no && can_build_shared=no
16905
 
 
16906
 
#
16907
 
# Do we need to explicitly link libc?
16908
 
#
16909
 
case "x$archive_cmds_need_lc_GCJ" in
16910
 
x|xyes)
16911
 
  # Assume -lc should be added
16912
 
  archive_cmds_need_lc_GCJ=yes
16913
 
 
16914
 
  if test "$enable_shared" = yes && test "$GCC" = yes; then
16915
 
    case $archive_cmds_GCJ in
16916
 
    *'~'*)
16917
 
      # FIXME: we may have to deal with multi-command sequences.
16918
 
      ;;
16919
 
    '$CC '*)
16920
 
      # Test whether the compiler implicitly links with -lc since on some
16921
 
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
16922
 
      # to ld, don't add -lc before -lgcc.
16923
 
      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16924
 
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16925
 
      $rm conftest*
16926
 
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16927
 
 
16928
 
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16929
 
  (eval $ac_compile) 2>&5
16930
 
  ac_status=$?
16931
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16932
 
  (exit $ac_status); } 2>conftest.err; then
16933
 
        soname=conftest
16934
 
        lib=conftest
16935
 
        libobjs=conftest.$ac_objext
16936
 
        deplibs=
16937
 
        wl=$lt_prog_compiler_wl_GCJ
16938
 
        pic_flag=$lt_prog_compiler_pic_GCJ
16939
 
        compiler_flags=-v
16940
 
        linker_flags=-v
16941
 
        verstring=
16942
 
        output_objdir=.
16943
 
        libname=conftest
16944
 
        lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
16945
 
        allow_undefined_flag_GCJ=
16946
 
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16947
 
  (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16948
 
  ac_status=$?
16949
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16950
 
  (exit $ac_status); }
16951
 
        then
16952
 
          archive_cmds_need_lc_GCJ=no
16953
 
        else
16954
 
          archive_cmds_need_lc_GCJ=yes
16955
 
        fi
16956
 
        allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
16957
 
      else
16958
 
        cat conftest.err 1>&5
16959
 
      fi
16960
 
      $rm conftest*
16961
 
      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
16962
 
echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
16963
 
      ;;
16964
 
    esac
16965
 
  fi
16966
 
  ;;
16967
 
esac
16968
 
 
16969
 
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16970
 
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16971
 
library_names_spec=
16972
 
libname_spec='lib$name'
16973
 
soname_spec=
16974
 
shrext_cmds=".so"
16975
 
postinstall_cmds=
16976
 
postuninstall_cmds=
16977
 
finish_cmds=
16978
 
finish_eval=
16979
 
shlibpath_var=
16980
 
shlibpath_overrides_runpath=unknown
16981
 
version_type=none
16982
 
dynamic_linker="$host_os ld.so"
16983
 
sys_lib_dlsearch_path_spec="/lib /usr/lib"
16984
 
if test "$GCC" = yes; then
16985
 
  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16986
 
  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16987
 
    # if the path contains ";" then we assume it to be the separator
16988
 
    # otherwise default to the standard path separator (i.e. ":") - it is
16989
 
    # assumed that no part of a normal pathname contains ";" but that should
16990
 
    # okay in the real world where ";" in dirpaths is itself problematic.
16991
 
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16992
 
  else
16993
 
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16994
 
  fi
16995
 
else
16996
 
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16997
 
fi
16998
 
need_lib_prefix=unknown
16999
 
hardcode_into_libs=no
17000
 
 
17001
 
# when you set need_version to no, make sure it does not cause -set_version
17002
 
# flags to be left without arguments
17003
 
need_version=unknown
17004
 
 
17005
 
case $host_os in
17006
 
aix3*)
17007
 
  version_type=linux
17008
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17009
 
  shlibpath_var=LIBPATH
17010
 
 
17011
 
  # AIX 3 has no versioning support, so we append a major version to the name.
17012
 
  soname_spec='${libname}${release}${shared_ext}$major'
17013
 
  ;;
17014
 
 
17015
 
aix4* | aix5*)
17016
 
  version_type=linux
17017
 
  need_lib_prefix=no
17018
 
  need_version=no
17019
 
  hardcode_into_libs=yes
17020
 
  if test "$host_cpu" = ia64; then
17021
 
    # AIX 5 supports IA64
17022
 
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17023
 
    shlibpath_var=LD_LIBRARY_PATH
17024
 
  else
17025
 
    # With GCC up to 2.95.x, collect2 would create an import file
17026
 
    # for dependence libraries.  The import file would start with
17027
 
    # the line `#! .'.  This would cause the generated library to
17028
 
    # depend on `.', always an invalid library.  This was fixed in
17029
 
    # development snapshots of GCC prior to 3.0.
17030
 
    case $host_os in
17031
 
      aix4 | aix4.[01] | aix4.[01].*)
17032
 
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17033
 
           echo ' yes '
17034
 
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17035
 
        :
17036
 
      else
17037
 
        can_build_shared=no
17038
 
      fi
17039
 
      ;;
17040
 
    esac
17041
 
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17042
 
    # soname into executable. Probably we can add versioning support to
17043
 
    # collect2, so additional links can be useful in future.
17044
 
    if test "$aix_use_runtimelinking" = yes; then
17045
 
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17046
 
      # instead of lib<name>.a to let people know that these are not
17047
 
      # typical AIX shared libraries.
17048
 
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17049
 
    else
17050
 
      # We preserve .a as extension for shared libraries through AIX4.2
17051
 
      # and later when we are not doing run time linking.
17052
 
      library_names_spec='${libname}${release}.a $libname.a'
17053
 
      soname_spec='${libname}${release}${shared_ext}$major'
17054
 
    fi
17055
 
    shlibpath_var=LIBPATH
17056
 
  fi
17057
 
  ;;
17058
 
 
17059
 
amigaos*)
17060
 
  library_names_spec='$libname.ixlibrary $libname.a'
17061
 
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
17062
 
  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'
17063
 
  ;;
17064
 
 
17065
 
beos*)
17066
 
  library_names_spec='${libname}${shared_ext}'
17067
 
  dynamic_linker="$host_os ld.so"
17068
 
  shlibpath_var=LIBRARY_PATH
17069
 
  ;;
17070
 
 
17071
 
bsdi[45]*)
17072
 
  version_type=linux
17073
 
  need_version=no
17074
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17075
 
  soname_spec='${libname}${release}${shared_ext}$major'
17076
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17077
 
  shlibpath_var=LD_LIBRARY_PATH
17078
 
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17079
 
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17080
 
  # the default ld.so.conf also contains /usr/contrib/lib and
17081
 
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17082
 
  # libtool to hard-code these into programs
17083
 
  ;;
17084
 
 
17085
 
cygwin* | mingw* | pw32*)
17086
 
  version_type=windows
17087
 
  shrext_cmds=".dll"
17088
 
  need_version=no
17089
 
  need_lib_prefix=no
17090
 
 
17091
 
  case $GCC,$host_os in
17092
 
  yes,cygwin* | yes,mingw* | yes,pw32*)
17093
 
    library_names_spec='$libname.dll.a'
17094
 
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
17095
 
    postinstall_cmds='base_file=`basename \${file}`~
17096
 
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17097
 
      dldir=$destdir/`dirname \$dlpath`~
17098
 
      test -d \$dldir || mkdir -p \$dldir~
17099
 
      $install_prog $dir/$dlname \$dldir/$dlname~
17100
 
      chmod a+x \$dldir/$dlname'
17101
 
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17102
 
      dlpath=$dir/\$dldll~
17103
 
       $rm \$dlpath'
17104
 
    shlibpath_overrides_runpath=yes
17105
 
 
17106
 
    case $host_os in
17107
 
    cygwin*)
17108
 
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17109
 
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17110
 
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17111
 
      ;;
17112
 
    mingw*)
17113
 
      # MinGW DLLs use traditional 'lib' prefix
17114
 
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17115
 
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17116
 
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17117
 
        # It is most probably a Windows format PATH printed by
17118
 
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
17119
 
        # path with ; separators, and with drive letters. We can handle the
17120
 
        # drive letters (cygwin fileutils understands them), so leave them,
17121
 
        # especially as we might pass files found there to a mingw objdump,
17122
 
        # which wouldn't understand a cygwinified path. Ahh.
17123
 
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17124
 
      else
17125
 
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17126
 
      fi
17127
 
      ;;
17128
 
    pw32*)
17129
 
      # pw32 DLLs use 'pw' prefix rather than 'lib'
17130
 
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17131
 
      ;;
17132
 
    esac
17133
 
    ;;
17134
 
 
17135
 
  *)
17136
 
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17137
 
    ;;
17138
 
  esac
17139
 
  dynamic_linker='Win32 ld.exe'
17140
 
  # FIXME: first we should search . and the directory the executable is in
17141
 
  shlibpath_var=PATH
17142
 
  ;;
17143
 
 
17144
 
darwin* | rhapsody*)
17145
 
  dynamic_linker="$host_os dyld"
17146
 
  version_type=darwin
17147
 
  need_lib_prefix=no
17148
 
  need_version=no
17149
 
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17150
 
  soname_spec='${libname}${release}${major}$shared_ext'
17151
 
  shlibpath_overrides_runpath=yes
17152
 
  shlibpath_var=DYLD_LIBRARY_PATH
17153
 
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17154
 
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17155
 
  if test "$GCC" = yes; then
17156
 
    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"`
17157
 
  else
17158
 
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17159
 
  fi
17160
 
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17161
 
  ;;
17162
 
 
17163
 
dgux*)
17164
 
  version_type=linux
17165
 
  need_lib_prefix=no
17166
 
  need_version=no
17167
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17168
 
  soname_spec='${libname}${release}${shared_ext}$major'
17169
 
  shlibpath_var=LD_LIBRARY_PATH
17170
 
  ;;
17171
 
 
17172
 
freebsd1*)
17173
 
  dynamic_linker=no
17174
 
  ;;
17175
 
 
17176
 
kfreebsd*-gnu)
17177
 
  version_type=linux
17178
 
  need_lib_prefix=no
17179
 
  need_version=no
17180
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17181
 
  soname_spec='${libname}${release}${shared_ext}$major'
17182
 
  shlibpath_var=LD_LIBRARY_PATH
17183
 
  shlibpath_overrides_runpath=no
17184
 
  hardcode_into_libs=yes
17185
 
  dynamic_linker='GNU ld.so'
17186
 
  ;;
17187
 
 
17188
 
freebsd* | dragonfly*)
17189
 
  # DragonFly does not have aout.  When/if they implement a new
17190
 
  # versioning mechanism, adjust this.
17191
 
  if test -x /usr/bin/objformat; then
17192
 
    objformat=`/usr/bin/objformat`
17193
 
  else
17194
 
    case $host_os in
17195
 
    freebsd[123]*) objformat=aout ;;
17196
 
    *) objformat=elf ;;
17197
 
    esac
17198
 
  fi
17199
 
  version_type=freebsd-$objformat
17200
 
  case $version_type in
17201
 
    freebsd-elf*)
17202
 
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17203
 
      need_version=no
17204
 
      need_lib_prefix=no
17205
 
      ;;
17206
 
    freebsd-*)
17207
 
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17208
 
      need_version=yes
17209
 
      ;;
17210
 
  esac
17211
 
  shlibpath_var=LD_LIBRARY_PATH
17212
 
  case $host_os in
17213
 
  freebsd2*)
17214
 
    shlibpath_overrides_runpath=yes
17215
 
    ;;
17216
 
  freebsd3.[01]* | freebsdelf3.[01]*)
17217
 
    shlibpath_overrides_runpath=yes
17218
 
    hardcode_into_libs=yes
17219
 
    ;;
17220
 
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17221
 
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17222
 
    shlibpath_overrides_runpath=no
17223
 
    hardcode_into_libs=yes
17224
 
    ;;
17225
 
  freebsd*) # from 4.6 on
17226
 
    shlibpath_overrides_runpath=yes
17227
 
    hardcode_into_libs=yes
17228
 
    ;;
17229
 
  esac
17230
 
  ;;
17231
 
 
17232
 
gnu*)
17233
 
  version_type=linux
17234
 
  need_lib_prefix=no
17235
 
  need_version=no
17236
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17237
 
  soname_spec='${libname}${release}${shared_ext}$major'
17238
 
  shlibpath_var=LD_LIBRARY_PATH
17239
 
  hardcode_into_libs=yes
17240
 
  ;;
17241
 
 
17242
 
hpux9* | hpux10* | hpux11*)
17243
 
  # Give a soname corresponding to the major version so that dld.sl refuses to
17244
 
  # link against other versions.
17245
 
  version_type=sunos
17246
 
  need_lib_prefix=no
17247
 
  need_version=no
17248
 
  case $host_cpu in
17249
 
  ia64*)
17250
 
    shrext_cmds='.so'
17251
 
    hardcode_into_libs=yes
17252
 
    dynamic_linker="$host_os dld.so"
17253
 
    shlibpath_var=LD_LIBRARY_PATH
17254
 
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17255
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17256
 
    soname_spec='${libname}${release}${shared_ext}$major'
17257
 
    if test "X$HPUX_IA64_MODE" = X32; then
17258
 
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17259
 
    else
17260
 
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17261
 
    fi
17262
 
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17263
 
    ;;
17264
 
   hppa*64*)
17265
 
     shrext_cmds='.sl'
17266
 
     hardcode_into_libs=yes
17267
 
     dynamic_linker="$host_os dld.sl"
17268
 
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17269
 
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17270
 
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17271
 
     soname_spec='${libname}${release}${shared_ext}$major'
17272
 
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17273
 
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17274
 
     ;;
17275
 
   *)
17276
 
    shrext_cmds='.sl'
17277
 
    dynamic_linker="$host_os dld.sl"
17278
 
    shlibpath_var=SHLIB_PATH
17279
 
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17280
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17281
 
    soname_spec='${libname}${release}${shared_ext}$major'
17282
 
    ;;
17283
 
  esac
17284
 
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
17285
 
  postinstall_cmds='chmod 555 $lib'
17286
 
  ;;
17287
 
 
17288
 
interix3*)
17289
 
  version_type=linux
17290
 
  need_lib_prefix=no
17291
 
  need_version=no
17292
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17293
 
  soname_spec='${libname}${release}${shared_ext}$major'
17294
 
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17295
 
  shlibpath_var=LD_LIBRARY_PATH
17296
 
  shlibpath_overrides_runpath=no
17297
 
  hardcode_into_libs=yes
17298
 
  ;;
17299
 
 
17300
 
irix5* | irix6* | nonstopux*)
17301
 
  case $host_os in
17302
 
    nonstopux*) version_type=nonstopux ;;
17303
 
    *)
17304
 
        if test "$lt_cv_prog_gnu_ld" = yes; then
17305
 
                version_type=linux
17306
 
        else
17307
 
                version_type=irix
17308
 
        fi ;;
17309
 
  esac
17310
 
  need_lib_prefix=no
17311
 
  need_version=no
17312
 
  soname_spec='${libname}${release}${shared_ext}$major'
17313
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17314
 
  case $host_os in
17315
 
  irix5* | nonstopux*)
17316
 
    libsuff= shlibsuff=
17317
 
    ;;
17318
 
  *)
17319
 
    case $LD in # libtool.m4 will add one of these switches to LD
17320
 
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17321
 
      libsuff= shlibsuff= libmagic=32-bit;;
17322
 
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17323
 
      libsuff=32 shlibsuff=N32 libmagic=N32;;
17324
 
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17325
 
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
17326
 
    *) libsuff= shlibsuff= libmagic=never-match;;
17327
 
    esac
17328
 
    ;;
17329
 
  esac
17330
 
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17331
 
  shlibpath_overrides_runpath=no
17332
 
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17333
 
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17334
 
  hardcode_into_libs=yes
17335
 
  ;;
17336
 
 
17337
 
# No shared lib support for Linux oldld, aout, or coff.
17338
 
linux*oldld* | linux*aout* | linux*coff*)
17339
 
  dynamic_linker=no
17340
 
  ;;
17341
 
 
17342
 
# This must be Linux ELF.
17343
 
linux*)
17344
 
  version_type=linux
17345
 
  need_lib_prefix=no
17346
 
  need_version=no
17347
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17348
 
  soname_spec='${libname}${release}${shared_ext}$major'
17349
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17350
 
  shlibpath_var=LD_LIBRARY_PATH
17351
 
  shlibpath_overrides_runpath=no
17352
 
  # This implies no fast_install, which is unacceptable.
17353
 
  # Some rework will be needed to allow for fast_install
17354
 
  # before this can be enabled.
17355
 
  hardcode_into_libs=yes
17356
 
 
17357
 
  # Append ld.so.conf contents to the search path
17358
 
  if test -f /etc/ld.so.conf; then
17359
 
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
17360
 
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17361
 
  fi
17362
 
 
17363
 
  # We used to test for /lib/ld.so.1 and disable shared libraries on
17364
 
  # powerpc, because MkLinux only supported shared libraries with the
17365
 
  # GNU dynamic linker.  Since this was broken with cross compilers,
17366
 
  # most powerpc-linux boxes support dynamic linking these days and
17367
 
  # people can always --disable-shared, the test was removed, and we
17368
 
  # assume the GNU/Linux dynamic linker is in use.
17369
 
  dynamic_linker='GNU/Linux ld.so'
17370
 
  ;;
17371
 
 
17372
 
netbsdelf*-gnu)
17373
 
  version_type=linux
17374
 
  need_lib_prefix=no
17375
 
  need_version=no
17376
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17377
 
  soname_spec='${libname}${release}${shared_ext}$major'
17378
 
  shlibpath_var=LD_LIBRARY_PATH
17379
 
  shlibpath_overrides_runpath=no
17380
 
  hardcode_into_libs=yes
17381
 
  dynamic_linker='NetBSD ld.elf_so'
17382
 
  ;;
17383
 
 
17384
 
knetbsd*-gnu)
17385
 
  version_type=linux
17386
 
  need_lib_prefix=no
17387
 
  need_version=no
17388
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17389
 
  soname_spec='${libname}${release}${shared_ext}$major'
17390
 
  shlibpath_var=LD_LIBRARY_PATH
17391
 
  shlibpath_overrides_runpath=no
17392
 
  hardcode_into_libs=yes
17393
 
  dynamic_linker='GNU ld.so'
17394
 
  ;;
17395
 
 
17396
 
netbsd*)
17397
 
  version_type=sunos
17398
 
  need_lib_prefix=no
17399
 
  need_version=no
17400
 
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17401
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17402
 
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17403
 
    dynamic_linker='NetBSD (a.out) ld.so'
17404
 
  else
17405
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17406
 
    soname_spec='${libname}${release}${shared_ext}$major'
17407
 
    dynamic_linker='NetBSD ld.elf_so'
17408
 
  fi
17409
 
  shlibpath_var=LD_LIBRARY_PATH
17410
 
  shlibpath_overrides_runpath=yes
17411
 
  hardcode_into_libs=yes
17412
 
  ;;
17413
 
 
17414
 
newsos6)
17415
 
  version_type=linux
17416
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17417
 
  shlibpath_var=LD_LIBRARY_PATH
17418
 
  shlibpath_overrides_runpath=yes
17419
 
  ;;
17420
 
 
17421
 
nto-qnx*)
17422
 
  version_type=linux
17423
 
  need_lib_prefix=no
17424
 
  need_version=no
17425
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17426
 
  soname_spec='${libname}${release}${shared_ext}$major'
17427
 
  shlibpath_var=LD_LIBRARY_PATH
17428
 
  shlibpath_overrides_runpath=yes
17429
 
  ;;
17430
 
 
17431
 
openbsd*)
17432
 
  version_type=sunos
17433
 
  sys_lib_dlsearch_path_spec="/usr/lib"
17434
 
  need_lib_prefix=no
17435
 
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17436
 
  case $host_os in
17437
 
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17438
 
    *)                         need_version=no  ;;
17439
 
  esac
17440
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17441
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17442
 
  shlibpath_var=LD_LIBRARY_PATH
17443
 
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17444
 
    case $host_os in
17445
 
      openbsd2.[89] | openbsd2.[89].*)
17446
 
        shlibpath_overrides_runpath=no
17447
 
        ;;
17448
 
      *)
17449
 
        shlibpath_overrides_runpath=yes
17450
 
        ;;
17451
 
      esac
17452
 
  else
17453
 
    shlibpath_overrides_runpath=yes
17454
 
  fi
17455
 
  ;;
17456
 
 
17457
 
os2*)
17458
 
  libname_spec='$name'
17459
 
  shrext_cmds=".dll"
17460
 
  need_lib_prefix=no
17461
 
  library_names_spec='$libname${shared_ext} $libname.a'
17462
 
  dynamic_linker='OS/2 ld.exe'
17463
 
  shlibpath_var=LIBPATH
17464
 
  ;;
17465
 
 
17466
 
osf3* | osf4* | osf5*)
17467
 
  version_type=osf
17468
 
  need_lib_prefix=no
17469
 
  need_version=no
17470
 
  soname_spec='${libname}${release}${shared_ext}$major'
17471
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17472
 
  shlibpath_var=LD_LIBRARY_PATH
17473
 
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17474
 
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17475
 
  ;;
17476
 
 
17477
 
solaris*)
17478
 
  version_type=linux
17479
 
  need_lib_prefix=no
17480
 
  need_version=no
17481
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17482
 
  soname_spec='${libname}${release}${shared_ext}$major'
17483
 
  shlibpath_var=LD_LIBRARY_PATH
17484
 
  shlibpath_overrides_runpath=yes
17485
 
  hardcode_into_libs=yes
17486
 
  # ldd complains unless libraries are executable
17487
 
  postinstall_cmds='chmod +x $lib'
17488
 
  ;;
17489
 
 
17490
 
sunos4*)
17491
 
  version_type=sunos
17492
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17493
 
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17494
 
  shlibpath_var=LD_LIBRARY_PATH
17495
 
  shlibpath_overrides_runpath=yes
17496
 
  if test "$with_gnu_ld" = yes; then
17497
 
    need_lib_prefix=no
17498
 
  fi
17499
 
  need_version=yes
17500
 
  ;;
17501
 
 
17502
 
sysv4 | sysv4.3*)
17503
 
  version_type=linux
17504
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17505
 
  soname_spec='${libname}${release}${shared_ext}$major'
17506
 
  shlibpath_var=LD_LIBRARY_PATH
17507
 
  case $host_vendor in
17508
 
    sni)
17509
 
      shlibpath_overrides_runpath=no
17510
 
      need_lib_prefix=no
17511
 
      export_dynamic_flag_spec='${wl}-Blargedynsym'
17512
 
      runpath_var=LD_RUN_PATH
17513
 
      ;;
17514
 
    siemens)
17515
 
      need_lib_prefix=no
17516
 
      ;;
17517
 
    motorola)
17518
 
      need_lib_prefix=no
17519
 
      need_version=no
17520
 
      shlibpath_overrides_runpath=no
17521
 
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17522
 
      ;;
17523
 
  esac
17524
 
  ;;
17525
 
 
17526
 
sysv4*MP*)
17527
 
  if test -d /usr/nec ;then
17528
 
    version_type=linux
17529
 
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17530
 
    soname_spec='$libname${shared_ext}.$major'
17531
 
    shlibpath_var=LD_LIBRARY_PATH
17532
 
  fi
17533
 
  ;;
17534
 
 
17535
 
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17536
 
  version_type=freebsd-elf
17537
 
  need_lib_prefix=no
17538
 
  need_version=no
17539
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17540
 
  soname_spec='${libname}${release}${shared_ext}$major'
17541
 
  shlibpath_var=LD_LIBRARY_PATH
17542
 
  hardcode_into_libs=yes
17543
 
  if test "$with_gnu_ld" = yes; then
17544
 
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17545
 
    shlibpath_overrides_runpath=no
17546
 
  else
17547
 
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17548
 
    shlibpath_overrides_runpath=yes
17549
 
    case $host_os in
17550
 
      sco3.2v5*)
17551
 
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17552
 
        ;;
17553
 
    esac
17554
 
  fi
17555
 
  sys_lib_dlsearch_path_spec='/usr/lib'
17556
 
  ;;
17557
 
 
17558
 
uts4*)
17559
 
  version_type=linux
17560
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17561
 
  soname_spec='${libname}${release}${shared_ext}$major'
17562
 
  shlibpath_var=LD_LIBRARY_PATH
17563
 
  ;;
17564
 
 
17565
 
*)
17566
 
  dynamic_linker=no
17567
 
  ;;
17568
 
esac
17569
 
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17570
 
echo "${ECHO_T}$dynamic_linker" >&6
17571
 
test "$dynamic_linker" = no && can_build_shared=no
17572
 
 
17573
 
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17574
 
if test "$GCC" = yes; then
17575
 
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17576
 
fi
17577
 
 
17578
 
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17579
 
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17580
 
hardcode_action_GCJ=
17581
 
if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17582
 
   test -n "$runpath_var_GCJ" || \
17583
 
   test "X$hardcode_automatic_GCJ" = "Xyes" ; then
17584
 
 
17585
 
  # We can hardcode non-existant directories.
17586
 
  if test "$hardcode_direct_GCJ" != no &&
17587
 
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
17588
 
     # have to relink, otherwise we might link with an installed library
17589
 
     # when we should be linking with a yet-to-be-installed one
17590
 
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17591
 
     test "$hardcode_minus_L_GCJ" != no; then
17592
 
    # Linking always hardcodes the temporary library directory.
17593
 
    hardcode_action_GCJ=relink
17594
 
  else
17595
 
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
17596
 
    hardcode_action_GCJ=immediate
17597
 
  fi
17598
 
else
17599
 
  # We cannot hardcode anything, or else we can only hardcode existing
17600
 
  # directories.
17601
 
  hardcode_action_GCJ=unsupported
17602
 
fi
17603
 
echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17604
 
echo "${ECHO_T}$hardcode_action_GCJ" >&6
17605
 
 
17606
 
if test "$hardcode_action_GCJ" = relink; then
17607
 
  # Fast installation is not supported
17608
 
  enable_fast_install=no
17609
 
elif test "$shlibpath_overrides_runpath" = yes ||
17610
 
     test "$enable_shared" = no; then
17611
 
  # Fast installation is not necessary
17612
 
  enable_fast_install=needless
17613
 
fi
17614
 
 
17615
 
 
17616
 
# The else clause should only fire when bootstrapping the
17617
 
# libtool distribution, otherwise you forgot to ship ltmain.sh
17618
 
# with your package, and you will get complaints that there are
17619
 
# no rules to generate ltmain.sh.
17620
 
if test -f "$ltmain"; then
17621
 
  # See if we are running on zsh, and set the options which allow our commands through
17622
 
  # without removal of \ escapes.
17623
 
  if test -n "${ZSH_VERSION+set}" ; then
17624
 
    setopt NO_GLOB_SUBST
17625
 
  fi
17626
 
  # Now quote all the things that may contain metacharacters while being
17627
 
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
17628
 
  # variables and quote the copies for generation of the libtool script.
17629
 
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17630
 
    SED SHELL STRIP \
17631
 
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17632
 
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17633
 
    deplibs_check_method reload_flag reload_cmds need_locks \
17634
 
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17635
 
    lt_cv_sys_global_symbol_to_c_name_address \
17636
 
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17637
 
    old_postinstall_cmds old_postuninstall_cmds \
17638
 
    compiler_GCJ \
17639
 
    CC_GCJ \
17640
 
    LD_GCJ \
17641
 
    lt_prog_compiler_wl_GCJ \
17642
 
    lt_prog_compiler_pic_GCJ \
17643
 
    lt_prog_compiler_static_GCJ \
17644
 
    lt_prog_compiler_no_builtin_flag_GCJ \
17645
 
    export_dynamic_flag_spec_GCJ \
17646
 
    thread_safe_flag_spec_GCJ \
17647
 
    whole_archive_flag_spec_GCJ \
17648
 
    enable_shared_with_static_runtimes_GCJ \
17649
 
    old_archive_cmds_GCJ \
17650
 
    old_archive_from_new_cmds_GCJ \
17651
 
    predep_objects_GCJ \
17652
 
    postdep_objects_GCJ \
17653
 
    predeps_GCJ \
17654
 
    postdeps_GCJ \
17655
 
    compiler_lib_search_path_GCJ \
17656
 
    archive_cmds_GCJ \
17657
 
    archive_expsym_cmds_GCJ \
17658
 
    postinstall_cmds_GCJ \
17659
 
    postuninstall_cmds_GCJ \
17660
 
    old_archive_from_expsyms_cmds_GCJ \
17661
 
    allow_undefined_flag_GCJ \
17662
 
    no_undefined_flag_GCJ \
17663
 
    export_symbols_cmds_GCJ \
17664
 
    hardcode_libdir_flag_spec_GCJ \
17665
 
    hardcode_libdir_flag_spec_ld_GCJ \
17666
 
    hardcode_libdir_separator_GCJ \
17667
 
    hardcode_automatic_GCJ \
17668
 
    module_cmds_GCJ \
17669
 
    module_expsym_cmds_GCJ \
17670
 
    lt_cv_prog_compiler_c_o_GCJ \
17671
 
    exclude_expsyms_GCJ \
17672
 
    include_expsyms_GCJ; do
17673
 
 
17674
 
    case $var in
17675
 
    old_archive_cmds_GCJ | \
17676
 
    old_archive_from_new_cmds_GCJ | \
17677
 
    archive_cmds_GCJ | \
17678
 
    archive_expsym_cmds_GCJ | \
17679
 
    module_cmds_GCJ | \
17680
 
    module_expsym_cmds_GCJ | \
17681
 
    old_archive_from_expsyms_cmds_GCJ | \
17682
 
    export_symbols_cmds_GCJ | \
17683
 
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
17684
 
    postinstall_cmds | postuninstall_cmds | \
17685
 
    old_postinstall_cmds | old_postuninstall_cmds | \
17686
 
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17687
 
      # Double-quote double-evaled strings.
17688
 
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17689
 
      ;;
17690
 
    *)
17691
 
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17692
 
      ;;
17693
 
    esac
17694
 
  done
17695
 
 
17696
 
  case $lt_echo in
17697
 
  *'\$0 --fallback-echo"')
17698
 
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17699
 
    ;;
17700
 
  esac
17701
 
 
17702
 
cfgfile="$ofile"
17703
 
 
17704
 
  cat <<__EOF__ >> "$cfgfile"
17705
 
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
17706
 
 
17707
 
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17708
 
 
17709
 
# Shell to use when invoking shell scripts.
17710
 
SHELL=$lt_SHELL
17711
 
 
17712
 
# Whether or not to build shared libraries.
17713
 
build_libtool_libs=$enable_shared
17714
 
 
17715
 
# Whether or not to build static libraries.
17716
 
build_old_libs=$enable_static
17717
 
 
17718
 
# Whether or not to add -lc for building shared libraries.
17719
 
build_libtool_need_lc=$archive_cmds_need_lc_GCJ
17720
 
 
17721
 
# Whether or not to disallow shared libs when runtime libs are static
17722
 
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
17723
 
 
17724
 
# Whether or not to optimize for fast installation.
17725
 
fast_install=$enable_fast_install
17726
 
 
17727
 
# The host system.
17728
 
host_alias=$host_alias
17729
 
host=$host
17730
 
host_os=$host_os
17731
 
 
17732
 
# The build system.
17733
 
build_alias=$build_alias
17734
 
build=$build
17735
 
build_os=$build_os
17736
 
 
17737
 
# An echo program that does not interpret backslashes.
17738
 
echo=$lt_echo
17739
 
 
17740
 
# The archiver.
17741
 
AR=$lt_AR
17742
 
AR_FLAGS=$lt_AR_FLAGS
17743
 
 
17744
 
# A C compiler.
17745
 
LTCC=$lt_LTCC
17746
 
 
17747
 
# LTCC compiler flags.
17748
 
LTCFLAGS=$lt_LTCFLAGS
17749
 
 
17750
 
# A language-specific compiler.
17751
 
CC=$lt_compiler_GCJ
17752
 
 
17753
 
# Is the compiler the GNU C compiler?
17754
 
with_gcc=$GCC_GCJ
17755
 
 
17756
 
# An ERE matcher.
17757
 
EGREP=$lt_EGREP
17758
 
 
17759
 
# The linker used to build libraries.
17760
 
LD=$lt_LD_GCJ
17761
 
 
17762
 
# Whether we need hard or soft links.
17763
 
LN_S=$lt_LN_S
17764
 
 
17765
 
# A BSD-compatible nm program.
17766
 
NM=$lt_NM
17767
 
 
17768
 
# A symbol stripping program
17769
 
STRIP=$lt_STRIP
17770
 
 
17771
 
# Used to examine libraries when file_magic_cmd begins "file"
17772
 
MAGIC_CMD=$MAGIC_CMD
17773
 
 
17774
 
# Used on cygwin: DLL creation program.
17775
 
DLLTOOL="$DLLTOOL"
17776
 
 
17777
 
# Used on cygwin: object dumper.
17778
 
OBJDUMP="$OBJDUMP"
17779
 
 
17780
 
# Used on cygwin: assembler.
17781
 
AS="$AS"
17782
 
 
17783
 
# The name of the directory that contains temporary libtool files.
17784
 
objdir=$objdir
17785
 
 
17786
 
# How to create reloadable object files.
17787
 
reload_flag=$lt_reload_flag
17788
 
reload_cmds=$lt_reload_cmds
17789
 
 
17790
 
# How to pass a linker flag through the compiler.
17791
 
wl=$lt_lt_prog_compiler_wl_GCJ
17792
 
 
17793
 
# Object file suffix (normally "o").
17794
 
objext="$ac_objext"
17795
 
 
17796
 
# Old archive suffix (normally "a").
17797
 
libext="$libext"
17798
 
 
17799
 
# Shared library suffix (normally ".so").
17800
 
shrext_cmds='$shrext_cmds'
17801
 
 
17802
 
# Executable file suffix (normally "").
17803
 
exeext="$exeext"
17804
 
 
17805
 
# Additional compiler flags for building library objects.
17806
 
pic_flag=$lt_lt_prog_compiler_pic_GCJ
17807
 
pic_mode=$pic_mode
17808
 
 
17809
 
# What is the maximum length of a command?
17810
 
max_cmd_len=$lt_cv_sys_max_cmd_len
17811
 
 
17812
 
# Does compiler simultaneously support -c and -o options?
17813
 
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
17814
 
 
17815
 
# Must we lock files when doing compilation?
17816
 
need_locks=$lt_need_locks
17817
 
 
17818
 
# Do we need the lib prefix for modules?
17819
 
need_lib_prefix=$need_lib_prefix
17820
 
 
17821
 
# Do we need a version for libraries?
17822
 
need_version=$need_version
17823
 
 
17824
 
# Whether dlopen is supported.
17825
 
dlopen_support=$enable_dlopen
17826
 
 
17827
 
# Whether dlopen of programs is supported.
17828
 
dlopen_self=$enable_dlopen_self
17829
 
 
17830
 
# Whether dlopen of statically linked programs is supported.
17831
 
dlopen_self_static=$enable_dlopen_self_static
17832
 
 
17833
 
# Compiler flag to prevent dynamic linking.
17834
 
link_static_flag=$lt_lt_prog_compiler_static_GCJ
17835
 
 
17836
 
# Compiler flag to turn off builtin functions.
17837
 
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
17838
 
 
17839
 
# Compiler flag to allow reflexive dlopens.
17840
 
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
17841
 
 
17842
 
# Compiler flag to generate shared objects directly from archives.
17843
 
whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
17844
 
 
17845
 
# Compiler flag to generate thread-safe objects.
17846
 
thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
17847
 
 
17848
 
# Library versioning type.
17849
 
version_type=$version_type
17850
 
 
17851
 
# Format of library name prefix.
17852
 
libname_spec=$lt_libname_spec
17853
 
 
17854
 
# List of archive names.  First name is the real one, the rest are links.
17855
 
# The last name is the one that the linker finds with -lNAME.
17856
 
library_names_spec=$lt_library_names_spec
17857
 
 
17858
 
# The coded name of the library, if different from the real name.
17859
 
soname_spec=$lt_soname_spec
17860
 
 
17861
 
# Commands used to build and install an old-style archive.
17862
 
RANLIB=$lt_RANLIB
17863
 
old_archive_cmds=$lt_old_archive_cmds_GCJ
17864
 
old_postinstall_cmds=$lt_old_postinstall_cmds
17865
 
old_postuninstall_cmds=$lt_old_postuninstall_cmds
17866
 
 
17867
 
# Create an old-style archive from a shared archive.
17868
 
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
17869
 
 
17870
 
# Create a temporary old-style archive to link instead of a shared archive.
17871
 
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
17872
 
 
17873
 
# Commands used to build and install a shared archive.
17874
 
archive_cmds=$lt_archive_cmds_GCJ
17875
 
archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
17876
 
postinstall_cmds=$lt_postinstall_cmds
17877
 
postuninstall_cmds=$lt_postuninstall_cmds
17878
 
 
17879
 
# Commands used to build a loadable module (assumed same as above if empty)
17880
 
module_cmds=$lt_module_cmds_GCJ
17881
 
module_expsym_cmds=$lt_module_expsym_cmds_GCJ
17882
 
 
17883
 
# Commands to strip libraries.
17884
 
old_striplib=$lt_old_striplib
17885
 
striplib=$lt_striplib
17886
 
 
17887
 
# Dependencies to place before the objects being linked to create a
17888
 
# shared library.
17889
 
predep_objects=$lt_predep_objects_GCJ
17890
 
 
17891
 
# Dependencies to place after the objects being linked to create a
17892
 
# shared library.
17893
 
postdep_objects=$lt_postdep_objects_GCJ
17894
 
 
17895
 
# Dependencies to place before the objects being linked to create a
17896
 
# shared library.
17897
 
predeps=$lt_predeps_GCJ
17898
 
 
17899
 
# Dependencies to place after the objects being linked to create a
17900
 
# shared library.
17901
 
postdeps=$lt_postdeps_GCJ
17902
 
 
17903
 
# The library search path used internally by the compiler when linking
17904
 
# a shared library.
17905
 
compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
17906
 
 
17907
 
# Method to check whether dependent libraries are shared objects.
17908
 
deplibs_check_method=$lt_deplibs_check_method
17909
 
 
17910
 
# Command to use when deplibs_check_method == file_magic.
17911
 
file_magic_cmd=$lt_file_magic_cmd
17912
 
 
17913
 
# Flag that allows shared libraries with undefined symbols to be built.
17914
 
allow_undefined_flag=$lt_allow_undefined_flag_GCJ
17915
 
 
17916
 
# Flag that forces no undefined symbols.
17917
 
no_undefined_flag=$lt_no_undefined_flag_GCJ
17918
 
 
17919
 
# Commands used to finish a libtool library installation in a directory.
17920
 
finish_cmds=$lt_finish_cmds
17921
 
 
17922
 
# Same as above, but a single script fragment to be evaled but not shown.
17923
 
finish_eval=$lt_finish_eval
17924
 
 
17925
 
# Take the output of nm and produce a listing of raw symbols and C names.
17926
 
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17927
 
 
17928
 
# Transform the output of nm in a proper C declaration
17929
 
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17930
 
 
17931
 
# Transform the output of nm in a C name address pair
17932
 
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17933
 
 
17934
 
# This is the shared library runtime path variable.
17935
 
runpath_var=$runpath_var
17936
 
 
17937
 
# This is the shared library path variable.
17938
 
shlibpath_var=$shlibpath_var
17939
 
 
17940
 
# Is shlibpath searched before the hard-coded library search path?
17941
 
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17942
 
 
17943
 
# How to hardcode a shared library path into an executable.
17944
 
hardcode_action=$hardcode_action_GCJ
17945
 
 
17946
 
# Whether we should hardcode library paths into libraries.
17947
 
hardcode_into_libs=$hardcode_into_libs
17948
 
 
17949
 
# Flag to hardcode \$libdir into a binary during linking.
17950
 
# This must work even if \$libdir does not exist.
17951
 
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
17952
 
 
17953
 
# If ld is used when linking, flag to hardcode \$libdir into
17954
 
# a binary during linking. This must work even if \$libdir does
17955
 
# not exist.
17956
 
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
17957
 
 
17958
 
# Whether we need a single -rpath flag with a separated argument.
17959
 
hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
17960
 
 
17961
 
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17962
 
# resulting binary.
17963
 
hardcode_direct=$hardcode_direct_GCJ
17964
 
 
17965
 
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17966
 
# resulting binary.
17967
 
hardcode_minus_L=$hardcode_minus_L_GCJ
17968
 
 
17969
 
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17970
 
# the resulting binary.
17971
 
hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
17972
 
 
17973
 
# Set to yes if building a shared library automatically hardcodes DIR into the library
17974
 
# and all subsequent libraries and executables linked against it.
17975
 
hardcode_automatic=$hardcode_automatic_GCJ
17976
 
 
17977
 
# Variables whose values should be saved in libtool wrapper scripts and
17978
 
# restored at relink time.
17979
 
variables_saved_for_relink="$variables_saved_for_relink"
17980
 
 
17981
 
# Whether libtool must link a program against all its dependency libraries.
17982
 
link_all_deplibs=$link_all_deplibs_GCJ
17983
 
 
17984
 
# Compile-time system search path for libraries
17985
 
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17986
 
 
17987
 
# Run-time system search path for libraries
17988
 
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17989
 
 
17990
 
# Fix the shell variable \$srcfile for the compiler.
17991
 
fix_srcfile_path="$fix_srcfile_path_GCJ"
17992
 
 
17993
 
# Set to yes if exported symbols are required.
17994
 
always_export_symbols=$always_export_symbols_GCJ
17995
 
 
17996
 
# The commands to list exported symbols.
17997
 
export_symbols_cmds=$lt_export_symbols_cmds_GCJ
17998
 
 
17999
 
# The commands to extract the exported symbol list from a shared archive.
18000
 
extract_expsyms_cmds=$lt_extract_expsyms_cmds
18001
 
 
18002
 
# Symbols that should not be listed in the preloaded symbols.
18003
 
exclude_expsyms=$lt_exclude_expsyms_GCJ
18004
 
 
18005
 
# Symbols that must always be exported.
18006
 
include_expsyms=$lt_include_expsyms_GCJ
18007
 
 
18008
 
# ### END LIBTOOL TAG CONFIG: $tagname
18009
 
 
18010
 
__EOF__
18011
 
 
18012
 
 
18013
 
else
18014
 
  # If there is no Makefile yet, we rely on a make rule to execute
18015
 
  # `config.status --recheck' to rerun these tests and create the
18016
 
  # libtool script then.
18017
 
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18018
 
  if test -f "$ltmain_in"; then
18019
 
    test -f Makefile && make "$ltmain"
18020
 
  fi
18021
 
fi
18022
 
 
18023
 
 
18024
 
ac_ext=c
18025
 
ac_cpp='$CPP $CPPFLAGS'
18026
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18027
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18028
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
18029
 
 
18030
 
CC="$lt_save_CC"
18031
 
 
18032
 
        else
18033
 
          tagname=""
18034
 
        fi
18035
 
        ;;
18036
 
 
18037
 
      RC)
18038
 
 
18039
 
 
18040
 
 
18041
 
# Source file extension for RC test sources.
18042
 
ac_ext=rc
18043
 
 
18044
 
# Object file extension for compiled RC test sources.
18045
 
objext=o
18046
 
objext_RC=$objext
18047
 
 
18048
 
# Code to be used in simple compile tests
18049
 
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18050
 
 
18051
 
# Code to be used in simple link tests
18052
 
lt_simple_link_test_code="$lt_simple_compile_test_code"
18053
 
 
18054
 
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
18055
 
 
18056
 
# If no C compiler was specified, use CC.
18057
 
LTCC=${LTCC-"$CC"}
18058
 
 
18059
 
# If no C compiler flags were specified, use CFLAGS.
18060
 
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18061
 
 
18062
 
# Allow CC to be a program name with arguments.
18063
 
compiler=$CC
18064
 
 
18065
 
 
18066
 
# save warnings/boilerplate of simple test code
18067
 
ac_outfile=conftest.$ac_objext
18068
 
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18069
 
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18070
 
_lt_compiler_boilerplate=`cat conftest.err`
18071
 
$rm conftest*
18072
 
 
18073
 
ac_outfile=conftest.$ac_objext
18074
 
printf "$lt_simple_link_test_code" >conftest.$ac_ext
18075
 
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18076
 
_lt_linker_boilerplate=`cat conftest.err`
18077
 
$rm conftest*
18078
 
 
18079
 
 
18080
 
# Allow CC to be a program name with arguments.
18081
 
lt_save_CC="$CC"
18082
 
CC=${RC-"windres"}
18083
 
compiler=$CC
18084
 
compiler_RC=$CC
18085
 
for cc_temp in $compiler""; do
18086
 
  case $cc_temp in
18087
 
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18088
 
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18089
 
    \-*) ;;
18090
 
    *) break;;
18091
 
  esac
18092
 
done
18093
 
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18094
 
 
18095
 
lt_cv_prog_compiler_c_o_RC=yes
18096
 
 
18097
 
# The else clause should only fire when bootstrapping the
18098
 
# libtool distribution, otherwise you forgot to ship ltmain.sh
18099
 
# with your package, and you will get complaints that there are
18100
 
# no rules to generate ltmain.sh.
18101
 
if test -f "$ltmain"; then
18102
 
  # See if we are running on zsh, and set the options which allow our commands through
18103
 
  # without removal of \ escapes.
18104
 
  if test -n "${ZSH_VERSION+set}" ; then
18105
 
    setopt NO_GLOB_SUBST
18106
 
  fi
18107
 
  # Now quote all the things that may contain metacharacters while being
18108
 
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
18109
 
  # variables and quote the copies for generation of the libtool script.
18110
 
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18111
 
    SED SHELL STRIP \
18112
 
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18113
 
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18114
 
    deplibs_check_method reload_flag reload_cmds need_locks \
18115
 
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18116
 
    lt_cv_sys_global_symbol_to_c_name_address \
18117
 
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18118
 
    old_postinstall_cmds old_postuninstall_cmds \
18119
 
    compiler_RC \
18120
 
    CC_RC \
18121
 
    LD_RC \
18122
 
    lt_prog_compiler_wl_RC \
18123
 
    lt_prog_compiler_pic_RC \
18124
 
    lt_prog_compiler_static_RC \
18125
 
    lt_prog_compiler_no_builtin_flag_RC \
18126
 
    export_dynamic_flag_spec_RC \
18127
 
    thread_safe_flag_spec_RC \
18128
 
    whole_archive_flag_spec_RC \
18129
 
    enable_shared_with_static_runtimes_RC \
18130
 
    old_archive_cmds_RC \
18131
 
    old_archive_from_new_cmds_RC \
18132
 
    predep_objects_RC \
18133
 
    postdep_objects_RC \
18134
 
    predeps_RC \
18135
 
    postdeps_RC \
18136
 
    compiler_lib_search_path_RC \
18137
 
    archive_cmds_RC \
18138
 
    archive_expsym_cmds_RC \
18139
 
    postinstall_cmds_RC \
18140
 
    postuninstall_cmds_RC \
18141
 
    old_archive_from_expsyms_cmds_RC \
18142
 
    allow_undefined_flag_RC \
18143
 
    no_undefined_flag_RC \
18144
 
    export_symbols_cmds_RC \
18145
 
    hardcode_libdir_flag_spec_RC \
18146
 
    hardcode_libdir_flag_spec_ld_RC \
18147
 
    hardcode_libdir_separator_RC \
18148
 
    hardcode_automatic_RC \
18149
 
    module_cmds_RC \
18150
 
    module_expsym_cmds_RC \
18151
 
    lt_cv_prog_compiler_c_o_RC \
18152
 
    exclude_expsyms_RC \
18153
 
    include_expsyms_RC; do
18154
 
 
18155
 
    case $var in
18156
 
    old_archive_cmds_RC | \
18157
 
    old_archive_from_new_cmds_RC | \
18158
 
    archive_cmds_RC | \
18159
 
    archive_expsym_cmds_RC | \
18160
 
    module_cmds_RC | \
18161
 
    module_expsym_cmds_RC | \
18162
 
    old_archive_from_expsyms_cmds_RC | \
18163
 
    export_symbols_cmds_RC | \
18164
 
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
18165
 
    postinstall_cmds | postuninstall_cmds | \
18166
 
    old_postinstall_cmds | old_postuninstall_cmds | \
18167
 
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18168
 
      # Double-quote double-evaled strings.
18169
 
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18170
 
      ;;
18171
 
    *)
18172
 
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18173
 
      ;;
18174
 
    esac
18175
 
  done
18176
 
 
18177
 
  case $lt_echo in
18178
 
  *'\$0 --fallback-echo"')
18179
 
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18180
 
    ;;
18181
 
  esac
18182
 
 
18183
 
cfgfile="$ofile"
18184
 
 
18185
 
  cat <<__EOF__ >> "$cfgfile"
18186
 
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18187
 
 
18188
 
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18189
 
 
18190
 
# Shell to use when invoking shell scripts.
18191
 
SHELL=$lt_SHELL
18192
 
 
18193
 
# Whether or not to build shared libraries.
18194
 
build_libtool_libs=$enable_shared
18195
 
 
18196
 
# Whether or not to build static libraries.
18197
 
build_old_libs=$enable_static
18198
 
 
18199
 
# Whether or not to add -lc for building shared libraries.
18200
 
build_libtool_need_lc=$archive_cmds_need_lc_RC
18201
 
 
18202
 
# Whether or not to disallow shared libs when runtime libs are static
18203
 
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18204
 
 
18205
 
# Whether or not to optimize for fast installation.
18206
 
fast_install=$enable_fast_install
18207
 
 
18208
 
# The host system.
18209
 
host_alias=$host_alias
18210
 
host=$host
18211
 
host_os=$host_os
18212
 
 
18213
 
# The build system.
18214
 
build_alias=$build_alias
18215
 
build=$build
18216
 
build_os=$build_os
18217
 
 
18218
 
# An echo program that does not interpret backslashes.
18219
 
echo=$lt_echo
18220
 
 
18221
 
# The archiver.
18222
 
AR=$lt_AR
18223
 
AR_FLAGS=$lt_AR_FLAGS
18224
 
 
18225
 
# A C compiler.
18226
 
LTCC=$lt_LTCC
18227
 
 
18228
 
# LTCC compiler flags.
18229
 
LTCFLAGS=$lt_LTCFLAGS
18230
 
 
18231
 
# A language-specific compiler.
18232
 
CC=$lt_compiler_RC
18233
 
 
18234
 
# Is the compiler the GNU C compiler?
18235
 
with_gcc=$GCC_RC
18236
 
 
18237
 
# An ERE matcher.
18238
 
EGREP=$lt_EGREP
18239
 
 
18240
 
# The linker used to build libraries.
18241
 
LD=$lt_LD_RC
18242
 
 
18243
 
# Whether we need hard or soft links.
18244
 
LN_S=$lt_LN_S
18245
 
 
18246
 
# A BSD-compatible nm program.
18247
 
NM=$lt_NM
18248
 
 
18249
 
# A symbol stripping program
18250
 
STRIP=$lt_STRIP
18251
 
 
18252
 
# Used to examine libraries when file_magic_cmd begins "file"
18253
 
MAGIC_CMD=$MAGIC_CMD
18254
 
 
18255
 
# Used on cygwin: DLL creation program.
18256
 
DLLTOOL="$DLLTOOL"
18257
 
 
18258
 
# Used on cygwin: object dumper.
18259
 
OBJDUMP="$OBJDUMP"
18260
 
 
18261
 
# Used on cygwin: assembler.
18262
 
AS="$AS"
18263
 
 
18264
 
# The name of the directory that contains temporary libtool files.
18265
 
objdir=$objdir
18266
 
 
18267
 
# How to create reloadable object files.
18268
 
reload_flag=$lt_reload_flag
18269
 
reload_cmds=$lt_reload_cmds
18270
 
 
18271
 
# How to pass a linker flag through the compiler.
18272
 
wl=$lt_lt_prog_compiler_wl_RC
18273
 
 
18274
 
# Object file suffix (normally "o").
18275
 
objext="$ac_objext"
18276
 
 
18277
 
# Old archive suffix (normally "a").
18278
 
libext="$libext"
18279
 
 
18280
 
# Shared library suffix (normally ".so").
18281
 
shrext_cmds='$shrext_cmds'
18282
 
 
18283
 
# Executable file suffix (normally "").
18284
 
exeext="$exeext"
18285
 
 
18286
 
# Additional compiler flags for building library objects.
18287
 
pic_flag=$lt_lt_prog_compiler_pic_RC
18288
 
pic_mode=$pic_mode
18289
 
 
18290
 
# What is the maximum length of a command?
18291
 
max_cmd_len=$lt_cv_sys_max_cmd_len
18292
 
 
18293
 
# Does compiler simultaneously support -c and -o options?
18294
 
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18295
 
 
18296
 
# Must we lock files when doing compilation?
18297
 
need_locks=$lt_need_locks
18298
 
 
18299
 
# Do we need the lib prefix for modules?
18300
 
need_lib_prefix=$need_lib_prefix
18301
 
 
18302
 
# Do we need a version for libraries?
18303
 
need_version=$need_version
18304
 
 
18305
 
# Whether dlopen is supported.
18306
 
dlopen_support=$enable_dlopen
18307
 
 
18308
 
# Whether dlopen of programs is supported.
18309
 
dlopen_self=$enable_dlopen_self
18310
 
 
18311
 
# Whether dlopen of statically linked programs is supported.
18312
 
dlopen_self_static=$enable_dlopen_self_static
18313
 
 
18314
 
# Compiler flag to prevent dynamic linking.
18315
 
link_static_flag=$lt_lt_prog_compiler_static_RC
18316
 
 
18317
 
# Compiler flag to turn off builtin functions.
18318
 
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18319
 
 
18320
 
# Compiler flag to allow reflexive dlopens.
18321
 
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18322
 
 
18323
 
# Compiler flag to generate shared objects directly from archives.
18324
 
whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18325
 
 
18326
 
# Compiler flag to generate thread-safe objects.
18327
 
thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18328
 
 
18329
 
# Library versioning type.
18330
 
version_type=$version_type
18331
 
 
18332
 
# Format of library name prefix.
18333
 
libname_spec=$lt_libname_spec
18334
 
 
18335
 
# List of archive names.  First name is the real one, the rest are links.
18336
 
# The last name is the one that the linker finds with -lNAME.
18337
 
library_names_spec=$lt_library_names_spec
18338
 
 
18339
 
# The coded name of the library, if different from the real name.
18340
 
soname_spec=$lt_soname_spec
18341
 
 
18342
 
# Commands used to build and install an old-style archive.
18343
 
RANLIB=$lt_RANLIB
18344
 
old_archive_cmds=$lt_old_archive_cmds_RC
18345
 
old_postinstall_cmds=$lt_old_postinstall_cmds
18346
 
old_postuninstall_cmds=$lt_old_postuninstall_cmds
18347
 
 
18348
 
# Create an old-style archive from a shared archive.
18349
 
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18350
 
 
18351
 
# Create a temporary old-style archive to link instead of a shared archive.
18352
 
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18353
 
 
18354
 
# Commands used to build and install a shared archive.
18355
 
archive_cmds=$lt_archive_cmds_RC
18356
 
archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18357
 
postinstall_cmds=$lt_postinstall_cmds
18358
 
postuninstall_cmds=$lt_postuninstall_cmds
18359
 
 
18360
 
# Commands used to build a loadable module (assumed same as above if empty)
18361
 
module_cmds=$lt_module_cmds_RC
18362
 
module_expsym_cmds=$lt_module_expsym_cmds_RC
18363
 
 
18364
 
# Commands to strip libraries.
18365
 
old_striplib=$lt_old_striplib
18366
 
striplib=$lt_striplib
18367
 
 
18368
 
# Dependencies to place before the objects being linked to create a
18369
 
# shared library.
18370
 
predep_objects=$lt_predep_objects_RC
18371
 
 
18372
 
# Dependencies to place after the objects being linked to create a
18373
 
# shared library.
18374
 
postdep_objects=$lt_postdep_objects_RC
18375
 
 
18376
 
# Dependencies to place before the objects being linked to create a
18377
 
# shared library.
18378
 
predeps=$lt_predeps_RC
18379
 
 
18380
 
# Dependencies to place after the objects being linked to create a
18381
 
# shared library.
18382
 
postdeps=$lt_postdeps_RC
18383
 
 
18384
 
# The library search path used internally by the compiler when linking
18385
 
# a shared library.
18386
 
compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18387
 
 
18388
 
# Method to check whether dependent libraries are shared objects.
18389
 
deplibs_check_method=$lt_deplibs_check_method
18390
 
 
18391
 
# Command to use when deplibs_check_method == file_magic.
18392
 
file_magic_cmd=$lt_file_magic_cmd
18393
 
 
18394
 
# Flag that allows shared libraries with undefined symbols to be built.
18395
 
allow_undefined_flag=$lt_allow_undefined_flag_RC
18396
 
 
18397
 
# Flag that forces no undefined symbols.
18398
 
no_undefined_flag=$lt_no_undefined_flag_RC
18399
 
 
18400
 
# Commands used to finish a libtool library installation in a directory.
18401
 
finish_cmds=$lt_finish_cmds
18402
 
 
18403
 
# Same as above, but a single script fragment to be evaled but not shown.
18404
 
finish_eval=$lt_finish_eval
18405
 
 
18406
 
# Take the output of nm and produce a listing of raw symbols and C names.
18407
 
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18408
 
 
18409
 
# Transform the output of nm in a proper C declaration
18410
 
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18411
 
 
18412
 
# Transform the output of nm in a C name address pair
18413
 
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18414
 
 
18415
 
# This is the shared library runtime path variable.
18416
 
runpath_var=$runpath_var
18417
 
 
18418
 
# This is the shared library path variable.
18419
 
shlibpath_var=$shlibpath_var
18420
 
 
18421
 
# Is shlibpath searched before the hard-coded library search path?
18422
 
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18423
 
 
18424
 
# How to hardcode a shared library path into an executable.
18425
 
hardcode_action=$hardcode_action_RC
18426
 
 
18427
 
# Whether we should hardcode library paths into libraries.
18428
 
hardcode_into_libs=$hardcode_into_libs
18429
 
 
18430
 
# Flag to hardcode \$libdir into a binary during linking.
18431
 
# This must work even if \$libdir does not exist.
18432
 
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18433
 
 
18434
 
# If ld is used when linking, flag to hardcode \$libdir into
18435
 
# a binary during linking. This must work even if \$libdir does
18436
 
# not exist.
18437
 
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18438
 
 
18439
 
# Whether we need a single -rpath flag with a separated argument.
18440
 
hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18441
 
 
18442
 
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18443
 
# resulting binary.
18444
 
hardcode_direct=$hardcode_direct_RC
18445
 
 
18446
 
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18447
 
# resulting binary.
18448
 
hardcode_minus_L=$hardcode_minus_L_RC
18449
 
 
18450
 
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18451
 
# the resulting binary.
18452
 
hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18453
 
 
18454
 
# Set to yes if building a shared library automatically hardcodes DIR into the library
18455
 
# and all subsequent libraries and executables linked against it.
18456
 
hardcode_automatic=$hardcode_automatic_RC
18457
 
 
18458
 
# Variables whose values should be saved in libtool wrapper scripts and
18459
 
# restored at relink time.
18460
 
variables_saved_for_relink="$variables_saved_for_relink"
18461
 
 
18462
 
# Whether libtool must link a program against all its dependency libraries.
18463
 
link_all_deplibs=$link_all_deplibs_RC
18464
 
 
18465
 
# Compile-time system search path for libraries
18466
 
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18467
 
 
18468
 
# Run-time system search path for libraries
18469
 
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18470
 
 
18471
 
# Fix the shell variable \$srcfile for the compiler.
18472
 
fix_srcfile_path="$fix_srcfile_path_RC"
18473
 
 
18474
 
# Set to yes if exported symbols are required.
18475
 
always_export_symbols=$always_export_symbols_RC
18476
 
 
18477
 
# The commands to list exported symbols.
18478
 
export_symbols_cmds=$lt_export_symbols_cmds_RC
18479
 
 
18480
 
# The commands to extract the exported symbol list from a shared archive.
18481
 
extract_expsyms_cmds=$lt_extract_expsyms_cmds
18482
 
 
18483
 
# Symbols that should not be listed in the preloaded symbols.
18484
 
exclude_expsyms=$lt_exclude_expsyms_RC
18485
 
 
18486
 
# Symbols that must always be exported.
18487
 
include_expsyms=$lt_include_expsyms_RC
18488
 
 
18489
 
# ### END LIBTOOL TAG CONFIG: $tagname
18490
 
 
18491
 
__EOF__
18492
 
 
18493
 
 
18494
 
else
18495
 
  # If there is no Makefile yet, we rely on a make rule to execute
18496
 
  # `config.status --recheck' to rerun these tests and create the
18497
 
  # libtool script then.
18498
 
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18499
 
  if test -f "$ltmain_in"; then
18500
 
    test -f Makefile && make "$ltmain"
18501
 
  fi
18502
 
fi
18503
 
 
18504
 
 
18505
 
ac_ext=c
18506
 
ac_cpp='$CPP $CPPFLAGS'
18507
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18508
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18509
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
18510
 
 
18511
 
CC="$lt_save_CC"
18512
 
 
18513
 
        ;;
18514
 
 
18515
 
      *)
18516
 
        { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18517
 
echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18518
 
   { (exit 1); exit 1; }; }
18519
 
        ;;
18520
 
      esac
18521
 
 
18522
 
      # Append the new tag name to the list of available tags.
18523
 
      if test -n "$tagname" ; then
18524
 
      available_tags="$available_tags $tagname"
18525
 
    fi
18526
 
    fi
18527
 
  done
18528
 
  IFS="$lt_save_ifs"
18529
 
 
18530
 
  # Now substitute the updated list of available tags.
18531
 
  if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18532
 
    mv "${ofile}T" "$ofile"
18533
 
    chmod +x "$ofile"
18534
 
  else
18535
 
    rm -f "${ofile}T"
18536
 
    { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18537
 
echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18538
 
   { (exit 1); exit 1; }; }
18539
 
  fi
18540
 
fi
18541
 
 
18542
 
 
18543
 
 
18544
 
# This can be used to rebuild libtool when needed
18545
 
LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18546
 
 
18547
 
# Always use our own libtool.
18548
 
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
18549
 
 
18550
 
# Prevent multiple expansion
18551
 
 
18552
 
 
18553
 
 
18554
 
 
18555
 
 
18556
 
 
18557
 
 
18558
 
 
18559
 
 
18560
 
 
18561
 
 
18562
 
 
18563
 
 
18564
 
 
18565
 
 
18566
 
 
18567
 
 
18568
 
 
 
14242
if test "$hardcode_action_CXX" = relink ||
 
14243
   test "$inherit_rpath_CXX" = yes; then
 
14244
  # Fast installation is not supported
 
14245
  enable_fast_install=no
 
14246
elif test "$shlibpath_overrides_runpath" = yes ||
 
14247
     test "$enable_shared" = no; then
 
14248
  # Fast installation is not necessary
 
14249
  enable_fast_install=needless
 
14250
fi
 
14251
 
 
14252
 
 
14253
 
 
14254
 
 
14255
 
 
14256
 
 
14257
 
 
14258
  fi # test -n "$compiler"
 
14259
 
 
14260
  CC=$lt_save_CC
 
14261
  LDCXX=$LD
 
14262
  LD=$lt_save_LD
 
14263
  GCC=$lt_save_GCC
 
14264
  with_gnu_ld=$lt_save_with_gnu_ld
 
14265
  lt_cv_path_LDCXX=$lt_cv_path_LD
 
14266
  lt_cv_path_LD=$lt_save_path_LD
 
14267
  lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
 
14268
  lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
 
14269
fi # test "$_lt_caught_CXX_error" != yes
 
14270
 
 
14271
ac_ext=c
 
14272
ac_cpp='$CPP $CPPFLAGS'
 
14273
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
14274
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
14275
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
14276
 
 
14277
 
 
14278
 
 
14279
 
 
14280
 
 
14281
 
 
14282
 
 
14283
 
 
14284
 
 
14285
 
 
14286
 
 
14287
 
 
14288
 
 
14289
                  ac_config_commands="$ac_config_commands libtool"
 
14290
 
 
14291
 
 
14292
 
 
14293
 
 
14294
# Only expand once:
18569
14295
 
18570
14296
 
18571
14297
 
18578
14304
  GCC_FALSE=
18579
14305
fi
18580
14306
   # let the Makefile know if we're gcc
 
14307
echo "$as_me:$LINENO: checking whether __SUNPRO_C is declared" >&5
 
14308
echo $ECHO_N "checking whether __SUNPRO_C is declared... $ECHO_C" >&6
 
14309
if test "${ac_cv_have_decl___SUNPRO_C+set}" = set; then
 
14310
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
14311
else
 
14312
  cat >conftest.$ac_ext <<_ACEOF
 
14313
/* confdefs.h.  */
 
14314
_ACEOF
 
14315
cat confdefs.h >>conftest.$ac_ext
 
14316
cat >>conftest.$ac_ext <<_ACEOF
 
14317
/* end confdefs.h.  */
 
14318
$ac_includes_default
 
14319
int
 
14320
main ()
 
14321
{
 
14322
#ifndef __SUNPRO_C
 
14323
  char *p = (char *) __SUNPRO_C;
 
14324
#endif
 
14325
 
 
14326
  ;
 
14327
  return 0;
 
14328
}
 
14329
_ACEOF
 
14330
rm -f conftest.$ac_objext
 
14331
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
14332
  (eval $ac_compile) 2>conftest.er1
 
14333
  ac_status=$?
 
14334
  grep -v '^ *+' conftest.er1 >conftest.err
 
14335
  rm -f conftest.er1
 
14336
  cat conftest.err >&5
 
14337
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14338
  (exit $ac_status); } &&
 
14339
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
14340
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
14341
  (eval $ac_try) 2>&5
 
14342
  ac_status=$?
 
14343
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14344
  (exit $ac_status); }; } &&
 
14345
         { ac_try='test -s conftest.$ac_objext'
 
14346
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
14347
  (eval $ac_try) 2>&5
 
14348
  ac_status=$?
 
14349
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14350
  (exit $ac_status); }; }; then
 
14351
  ac_cv_have_decl___SUNPRO_C=yes
 
14352
else
 
14353
  echo "$as_me: failed program was:" >&5
 
14354
sed 's/^/| /' conftest.$ac_ext >&5
 
14355
 
 
14356
ac_cv_have_decl___SUNPRO_C=no
 
14357
fi
 
14358
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
14359
fi
 
14360
echo "$as_me:$LINENO: result: $ac_cv_have_decl___SUNPRO_C" >&5
 
14361
echo "${ECHO_T}$ac_cv_have_decl___SUNPRO_C" >&6
 
14362
if test $ac_cv_have_decl___SUNPRO_C = yes; then
 
14363
  SUNCC="yes"
 
14364
else
 
14365
  SUNCC="no"
 
14366
fi
 
14367
 
 
14368
 
 
14369
if test "$SUNCC" = "yes"; then
 
14370
 
 
14371
  CFLAGS="$CFLAGS -xO4 -xlibmil -xdepend -Xa -mt -xstrconst -D_FORTEC_"
 
14372
  CXXFLAGS="$CXXFLAGS -xO4 -xlibmil -mt -D_FORTEC_ -xlang=c99 -compat=5 -library=stlport4 -template=no%extdef"
 
14373
 
 
14374
fi
 
14375
 
 
14376
 
18581
14377
 
18582
14378
# Checks for header files.
18583
14379
echo "$as_me:$LINENO: checking for ANSI C header files" >&5
20144
15940
 
20145
15941
 
20146
15942
                    ac_config_files="$ac_config_files Makefile src/Makefile"
 
15943
 
20147
15944
cat >confcache <<\_ACEOF
20148
15945
# This file is a shell script that caches the results of configure
20149
15946
# tests run on this system so they can be shared between configure
20256
16053
Usually this means the macro was only invoked conditionally." >&2;}
20257
16054
   { (exit 1); exit 1; }; }
20258
16055
fi
 
16056
if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
 
16057
  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
 
16058
Usually this means the macro was only invoked conditionally." >&5
 
16059
echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
 
16060
Usually this means the macro was only invoked conditionally." >&2;}
 
16061
   { (exit 1); exit 1; }; }
 
16062
fi
20259
16063
if test -z "${GCC_TRUE}" && test -z "${GCC_FALSE}"; then
20260
16064
  { { echo "$as_me:$LINENO: error: conditional \"GCC\" was never defined.
20261
16065
Usually this means the macro was only invoked conditionally." >&5
20534
16338
} >&5
20535
16339
cat >&5 <<_CSEOF
20536
16340
 
20537
 
This file was extended by protobuf $as_me 2.0.0beta, which was
 
16341
This file was extended by protobuf $as_me 2.0.3, which was
20538
16342
generated by GNU Autoconf 2.59.  Invocation command line was
20539
16343
 
20540
16344
  CONFIG_FILES    = $CONFIG_FILES
20597
16401
 
20598
16402
cat >>$CONFIG_STATUS <<_ACEOF
20599
16403
ac_cs_version="\\
20600
 
protobuf config.status 2.0.0beta
 
16404
protobuf config.status 2.0.3
20601
16405
configured by $0, generated by GNU Autoconf 2.59,
20602
16406
  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
20603
16407
 
20698
16502
 
20699
16503
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
20700
16504
 
 
16505
 
 
16506
# The HP-UX ksh and POSIX shell print the target directory to stdout
 
16507
# if CDPATH is set.
 
16508
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
 
16509
 
 
16510
sed_quote_subst='$sed_quote_subst'
 
16511
double_quote_subst='$double_quote_subst'
 
16512
delay_variable_subst='$delay_variable_subst'
 
16513
macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
 
16514
macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
 
16515
enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
 
16516
enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
 
16517
pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
 
16518
enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
 
16519
host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
 
16520
host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
 
16521
host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
 
16522
build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
 
16523
build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
 
16524
build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
 
16525
SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
 
16526
Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
 
16527
GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
 
16528
EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
 
16529
FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
 
16530
LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
 
16531
NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
 
16532
LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
 
16533
max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
 
16534
ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
 
16535
exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
 
16536
lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
 
16537
lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
 
16538
lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
 
16539
reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
 
16540
reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
16541
deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
 
16542
file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
 
16543
AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
 
16544
AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
 
16545
STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
 
16546
RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
 
16547
old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
16548
old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
16549
old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
16550
CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
 
16551
CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
 
16552
compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
 
16553
GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
 
16554
lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
 
16555
lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
 
16556
lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
 
16557
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
 
16558
objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
 
16559
SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
 
16560
ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
 
16561
MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
 
16562
lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
 
16563
lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
 
16564
lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
 
16565
lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
 
16566
lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
 
16567
need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
 
16568
DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
 
16569
NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
 
16570
LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
 
16571
OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
 
16572
OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
 
16573
libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
 
16574
shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
16575
extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
16576
archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
 
16577
enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
 
16578
export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
 
16579
whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
 
16580
compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
 
16581
old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
16582
old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
16583
archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
16584
archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
16585
module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
16586
module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
16587
with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
 
16588
allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
 
16589
no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
 
16590
hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
 
16591
hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
 
16592
hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
 
16593
hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
 
16594
hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
 
16595
hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
 
16596
hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
 
16597
hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
 
16598
inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
 
16599
link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
 
16600
fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
 
16601
always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
 
16602
export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
16603
exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
 
16604
include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
 
16605
prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
16606
file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
 
16607
variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
 
16608
need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
 
16609
need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
 
16610
version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
 
16611
runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
 
16612
shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
 
16613
shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
 
16614
libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
 
16615
library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
 
16616
soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
 
16617
postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
16618
postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
16619
finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
16620
finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
 
16621
hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
 
16622
sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
 
16623
sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
 
16624
hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
 
16625
enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
 
16626
enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
 
16627
enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
 
16628
old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
 
16629
striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
 
16630
compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
 
16631
predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
 
16632
postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
 
16633
predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
 
16634
postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
 
16635
compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
 
16636
LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
16637
old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
16638
compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
16639
GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
16640
lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
16641
lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
16642
lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
16643
lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
16644
lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
16645
archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
16646
enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
16647
export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
16648
whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
16649
compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
16650
old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
16651
old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
16652
archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
16653
archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
16654
module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
16655
module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
16656
with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
16657
allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
16658
no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
16659
hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
16660
hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
16661
hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
16662
hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
16663
hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
16664
hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
16665
hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
16666
hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
16667
inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
16668
link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
16669
fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
16670
always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
16671
export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
16672
exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
16673
include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
16674
prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
16675
file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
16676
hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
16677
compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
16678
predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
16679
postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
16680
predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
16681
postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
16682
compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
16683
 
 
16684
LTCC='$LTCC'
 
16685
LTCFLAGS='$LTCFLAGS'
 
16686
compiler='$compiler_DEFAULT'
 
16687
 
 
16688
# Quote evaled strings.
 
16689
for var in SED \
 
16690
GREP \
 
16691
EGREP \
 
16692
FGREP \
 
16693
LD \
 
16694
NM \
 
16695
LN_S \
 
16696
lt_SP2NL \
 
16697
lt_NL2SP \
 
16698
reload_flag \
 
16699
deplibs_check_method \
 
16700
file_magic_cmd \
 
16701
AR \
 
16702
AR_FLAGS \
 
16703
STRIP \
 
16704
RANLIB \
 
16705
CC \
 
16706
CFLAGS \
 
16707
compiler \
 
16708
lt_cv_sys_global_symbol_pipe \
 
16709
lt_cv_sys_global_symbol_to_cdecl \
 
16710
lt_cv_sys_global_symbol_to_c_name_address \
 
16711
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
 
16712
SHELL \
 
16713
ECHO \
 
16714
lt_prog_compiler_no_builtin_flag \
 
16715
lt_prog_compiler_wl \
 
16716
lt_prog_compiler_pic \
 
16717
lt_prog_compiler_static \
 
16718
lt_cv_prog_compiler_c_o \
 
16719
need_locks \
 
16720
DSYMUTIL \
 
16721
NMEDIT \
 
16722
LIPO \
 
16723
OTOOL \
 
16724
OTOOL64 \
 
16725
shrext_cmds \
 
16726
export_dynamic_flag_spec \
 
16727
whole_archive_flag_spec \
 
16728
compiler_needs_object \
 
16729
with_gnu_ld \
 
16730
allow_undefined_flag \
 
16731
no_undefined_flag \
 
16732
hardcode_libdir_flag_spec \
 
16733
hardcode_libdir_flag_spec_ld \
 
16734
hardcode_libdir_separator \
 
16735
fix_srcfile_path \
 
16736
exclude_expsyms \
 
16737
include_expsyms \
 
16738
file_list_spec \
 
16739
variables_saved_for_relink \
 
16740
libname_spec \
 
16741
library_names_spec \
 
16742
soname_spec \
 
16743
finish_eval \
 
16744
old_striplib \
 
16745
striplib \
 
16746
compiler_lib_search_dirs \
 
16747
predep_objects \
 
16748
postdep_objects \
 
16749
predeps \
 
16750
postdeps \
 
16751
compiler_lib_search_path \
 
16752
LD_CXX \
 
16753
compiler_CXX \
 
16754
lt_prog_compiler_no_builtin_flag_CXX \
 
16755
lt_prog_compiler_wl_CXX \
 
16756
lt_prog_compiler_pic_CXX \
 
16757
lt_prog_compiler_static_CXX \
 
16758
lt_cv_prog_compiler_c_o_CXX \
 
16759
export_dynamic_flag_spec_CXX \
 
16760
whole_archive_flag_spec_CXX \
 
16761
compiler_needs_object_CXX \
 
16762
with_gnu_ld_CXX \
 
16763
allow_undefined_flag_CXX \
 
16764
no_undefined_flag_CXX \
 
16765
hardcode_libdir_flag_spec_CXX \
 
16766
hardcode_libdir_flag_spec_ld_CXX \
 
16767
hardcode_libdir_separator_CXX \
 
16768
fix_srcfile_path_CXX \
 
16769
exclude_expsyms_CXX \
 
16770
include_expsyms_CXX \
 
16771
file_list_spec_CXX \
 
16772
compiler_lib_search_dirs_CXX \
 
16773
predep_objects_CXX \
 
16774
postdep_objects_CXX \
 
16775
predeps_CXX \
 
16776
postdeps_CXX \
 
16777
compiler_lib_search_path_CXX; do
 
16778
    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
 
16779
    *[\\\\\\\`\\"\\\$]*)
 
16780
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
 
16781
      ;;
 
16782
    *)
 
16783
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
 
16784
      ;;
 
16785
    esac
 
16786
done
 
16787
 
 
16788
# Double-quote double-evaled strings.
 
16789
for var in reload_cmds \
 
16790
old_postinstall_cmds \
 
16791
old_postuninstall_cmds \
 
16792
old_archive_cmds \
 
16793
extract_expsyms_cmds \
 
16794
old_archive_from_new_cmds \
 
16795
old_archive_from_expsyms_cmds \
 
16796
archive_cmds \
 
16797
archive_expsym_cmds \
 
16798
module_cmds \
 
16799
module_expsym_cmds \
 
16800
export_symbols_cmds \
 
16801
prelink_cmds \
 
16802
postinstall_cmds \
 
16803
postuninstall_cmds \
 
16804
finish_cmds \
 
16805
sys_lib_search_path_spec \
 
16806
sys_lib_dlsearch_path_spec \
 
16807
old_archive_cmds_CXX \
 
16808
old_archive_from_new_cmds_CXX \
 
16809
old_archive_from_expsyms_cmds_CXX \
 
16810
archive_cmds_CXX \
 
16811
archive_expsym_cmds_CXX \
 
16812
module_cmds_CXX \
 
16813
module_expsym_cmds_CXX \
 
16814
export_symbols_cmds_CXX \
 
16815
prelink_cmds_CXX; do
 
16816
    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
 
16817
    *[\\\\\\\`\\"\\\$]*)
 
16818
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
 
16819
      ;;
 
16820
    *)
 
16821
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
 
16822
      ;;
 
16823
    esac
 
16824
done
 
16825
 
 
16826
# Fix-up fallback echo if it was mangled by the above quoting rules.
 
16827
case \$lt_ECHO in
 
16828
*'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
 
16829
  ;;
 
16830
esac
 
16831
 
 
16832
ac_aux_dir='$ac_aux_dir'
 
16833
xsi_shell='$xsi_shell'
 
16834
lt_shell_append='$lt_shell_append'
 
16835
 
 
16836
# See if we are running on zsh, and set the options which allow our
 
16837
# commands through without removal of \ escapes INIT.
 
16838
if test -n "\${ZSH_VERSION+set}" ; then
 
16839
   setopt NO_GLOB_SUBST
 
16840
fi
 
16841
 
 
16842
 
 
16843
    PACKAGE='$PACKAGE'
 
16844
    VERSION='$VERSION'
 
16845
    TIMESTAMP='$TIMESTAMP'
 
16846
    RM='$RM'
 
16847
    ofile='$ofile'
 
16848
 
 
16849
 
 
16850
 
 
16851
 
 
16852
 
 
16853
 
20701
16854
_ACEOF
20702
16855
 
20703
16856
 
20710
16863
  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20711
16864
  "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
20712
16865
  "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
 
16866
  "libtool" ) CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
20713
16867
  "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
20714
16868
  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
20715
16869
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
20840
16994
s,@CXXDEPMODE@,$CXXDEPMODE,;t t
20841
16995
s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
20842
16996
s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
 
16997
s,@CPP@,$CPP,;t t
 
16998
s,@EGREP@,$EGREP,;t t
 
16999
s,@LIBTOOL@,$LIBTOOL,;t t
20843
17000
s,@build@,$build,;t t
20844
17001
s,@build_cpu@,$build_cpu,;t t
20845
17002
s,@build_vendor@,$build_vendor,;t t
20848
17005
s,@host_cpu@,$host_cpu,;t t
20849
17006
s,@host_vendor@,$host_vendor,;t t
20850
17007
s,@host_os@,$host_os,;t t
20851
 
s,@EGREP@,$EGREP,;t t
 
17008
s,@SED@,$SED,;t t
 
17009
s,@FGREP@,$FGREP,;t t
 
17010
s,@GREP@,$GREP,;t t
 
17011
s,@LD@,$LD,;t t
 
17012
s,@DUMPBIN@,$DUMPBIN,;t t
 
17013
s,@ac_ct_DUMPBIN@,$ac_ct_DUMPBIN,;t t
 
17014
s,@NM@,$NM,;t t
20852
17015
s,@LN_S@,$LN_S,;t t
20853
 
s,@ECHO@,$ECHO,;t t
20854
17016
s,@AR@,$AR,;t t
20855
17017
s,@ac_ct_AR@,$ac_ct_AR,;t t
20856
17018
s,@RANLIB@,$RANLIB,;t t
20857
17019
s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
20858
 
s,@CPP@,$CPP,;t t
 
17020
s,@lt_ECHO@,$lt_ECHO,;t t
 
17021
s,@DSYMUTIL@,$DSYMUTIL,;t t
 
17022
s,@ac_ct_DSYMUTIL@,$ac_ct_DSYMUTIL,;t t
 
17023
s,@NMEDIT@,$NMEDIT,;t t
 
17024
s,@ac_ct_NMEDIT@,$ac_ct_NMEDIT,;t t
 
17025
s,@LIPO@,$LIPO,;t t
 
17026
s,@ac_ct_LIPO@,$ac_ct_LIPO,;t t
 
17027
s,@OTOOL@,$OTOOL,;t t
 
17028
s,@ac_ct_OTOOL@,$ac_ct_OTOOL,;t t
 
17029
s,@OTOOL64@,$OTOOL64,;t t
 
17030
s,@ac_ct_OTOOL64@,$ac_ct_OTOOL64,;t t
20859
17031
s,@CXXCPP@,$CXXCPP,;t t
20860
 
s,@F77@,$F77,;t t
20861
 
s,@FFLAGS@,$FFLAGS,;t t
20862
 
s,@ac_ct_F77@,$ac_ct_F77,;t t
20863
 
s,@LIBTOOL@,$LIBTOOL,;t t
20864
17032
s,@GCC_TRUE@,$GCC_TRUE,;t t
20865
17033
s,@GCC_FALSE@,$GCC_FALSE,;t t
20866
17034
s,@LIBOBJS@,$LIBOBJS,;t t
21553
17721
  done
21554
17722
done
21555
17723
 ;;
 
17724
    libtool )
 
17725
 
 
17726
    # See if we are running on zsh, and set the options which allow our
 
17727
    # commands through without removal of \ escapes.
 
17728
    if test -n "${ZSH_VERSION+set}" ; then
 
17729
      setopt NO_GLOB_SUBST
 
17730
    fi
 
17731
 
 
17732
    cfgfile="${ofile}T"
 
17733
    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
 
17734
    $RM "$cfgfile"
 
17735
 
 
17736
    cat <<_LT_EOF >> "$cfgfile"
 
17737
#! $SHELL
 
17738
 
 
17739
# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
 
17740
# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
 
17741
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
17742
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
 
17743
#
 
17744
#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
 
17745
#                 2006, 2007, 2008 Free Software Foundation, Inc.
 
17746
#   Written by Gordon Matzigkeit, 1996
 
17747
#
 
17748
#   This file is part of GNU Libtool.
 
17749
#
 
17750
# GNU Libtool is free software; you can redistribute it and/or
 
17751
# modify it under the terms of the GNU General Public License as
 
17752
# published by the Free Software Foundation; either version 2 of
 
17753
# the License, or (at your option) any later version.
 
17754
#
 
17755
# As a special exception to the GNU General Public License,
 
17756
# if you distribute this file as part of a program or library that
 
17757
# is built using GNU Libtool, you may include this file under the
 
17758
# same distribution terms that you use for the rest of that program.
 
17759
#
 
17760
# GNU Libtool is distributed in the hope that it will be useful,
 
17761
# but WITHOUT ANY WARRANTY; without even the implied warranty of
 
17762
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
17763
# GNU General Public License for more details.
 
17764
#
 
17765
# You should have received a copy of the GNU General Public License
 
17766
# along with GNU Libtool; see the file COPYING.  If not, a copy
 
17767
# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
 
17768
# obtained by writing to the Free Software Foundation, Inc.,
 
17769
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
 
17770
 
 
17771
 
 
17772
# The names of the tagged configurations supported by this script.
 
17773
available_tags="CXX "
 
17774
 
 
17775
# ### BEGIN LIBTOOL CONFIG
 
17776
 
 
17777
# Which release of libtool.m4 was used?
 
17778
macro_version=$macro_version
 
17779
macro_revision=$macro_revision
 
17780
 
 
17781
# Whether or not to build shared libraries.
 
17782
build_libtool_libs=$enable_shared
 
17783
 
 
17784
# Whether or not to build static libraries.
 
17785
build_old_libs=$enable_static
 
17786
 
 
17787
# What type of objects to build.
 
17788
pic_mode=$pic_mode
 
17789
 
 
17790
# Whether or not to optimize for fast installation.
 
17791
fast_install=$enable_fast_install
 
17792
 
 
17793
# The host system.
 
17794
host_alias=$host_alias
 
17795
host=$host
 
17796
host_os=$host_os
 
17797
 
 
17798
# The build system.
 
17799
build_alias=$build_alias
 
17800
build=$build
 
17801
build_os=$build_os
 
17802
 
 
17803
# A sed program that does not truncate output.
 
17804
SED=$lt_SED
 
17805
 
 
17806
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
 
17807
Xsed="\$SED -e 1s/^X//"
 
17808
 
 
17809
# A grep program that handles long lines.
 
17810
GREP=$lt_GREP
 
17811
 
 
17812
# An ERE matcher.
 
17813
EGREP=$lt_EGREP
 
17814
 
 
17815
# A literal string matcher.
 
17816
FGREP=$lt_FGREP
 
17817
 
 
17818
# A BSD- or MS-compatible name lister.
 
17819
NM=$lt_NM
 
17820
 
 
17821
# Whether we need soft or hard links.
 
17822
LN_S=$lt_LN_S
 
17823
 
 
17824
# What is the maximum length of a command?
 
17825
max_cmd_len=$max_cmd_len
 
17826
 
 
17827
# Object file suffix (normally "o").
 
17828
objext=$ac_objext
 
17829
 
 
17830
# Executable file suffix (normally "").
 
17831
exeext=$exeext
 
17832
 
 
17833
# whether the shell understands "unset".
 
17834
lt_unset=$lt_unset
 
17835
 
 
17836
# turn spaces into newlines.
 
17837
SP2NL=$lt_lt_SP2NL
 
17838
 
 
17839
# turn newlines into spaces.
 
17840
NL2SP=$lt_lt_NL2SP
 
17841
 
 
17842
# How to create reloadable object files.
 
17843
reload_flag=$lt_reload_flag
 
17844
reload_cmds=$lt_reload_cmds
 
17845
 
 
17846
# Method to check whether dependent libraries are shared objects.
 
17847
deplibs_check_method=$lt_deplibs_check_method
 
17848
 
 
17849
# Command to use when deplibs_check_method == "file_magic".
 
17850
file_magic_cmd=$lt_file_magic_cmd
 
17851
 
 
17852
# The archiver.
 
17853
AR=$lt_AR
 
17854
AR_FLAGS=$lt_AR_FLAGS
 
17855
 
 
17856
# A symbol stripping program.
 
17857
STRIP=$lt_STRIP
 
17858
 
 
17859
# Commands used to install an old-style archive.
 
17860
RANLIB=$lt_RANLIB
 
17861
old_postinstall_cmds=$lt_old_postinstall_cmds
 
17862
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
17863
 
 
17864
# A C compiler.
 
17865
LTCC=$lt_CC
 
17866
 
 
17867
# LTCC compiler flags.
 
17868
LTCFLAGS=$lt_CFLAGS
 
17869
 
 
17870
# Take the output of nm and produce a listing of raw symbols and C names.
 
17871
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
17872
 
 
17873
# Transform the output of nm in a proper C declaration.
 
17874
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
17875
 
 
17876
# Transform the output of nm in a C name address pair.
 
17877
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
17878
 
 
17879
# Transform the output of nm in a C name address pair when lib prefix is needed.
 
17880
global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
 
17881
 
 
17882
# The name of the directory that contains temporary libtool files.
 
17883
objdir=$objdir
 
17884
 
 
17885
# Shell to use when invoking shell scripts.
 
17886
SHELL=$lt_SHELL
 
17887
 
 
17888
# An echo program that does not interpret backslashes.
 
17889
ECHO=$lt_ECHO
 
17890
 
 
17891
# Used to examine libraries when file_magic_cmd begins with "file".
 
17892
MAGIC_CMD=$MAGIC_CMD
 
17893
 
 
17894
# Must we lock files when doing compilation?
 
17895
need_locks=$lt_need_locks
 
17896
 
 
17897
# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
 
17898
DSYMUTIL=$lt_DSYMUTIL
 
17899
 
 
17900
# Tool to change global to local symbols on Mac OS X.
 
17901
NMEDIT=$lt_NMEDIT
 
17902
 
 
17903
# Tool to manipulate fat objects and archives on Mac OS X.
 
17904
LIPO=$lt_LIPO
 
17905
 
 
17906
# ldd/readelf like tool for Mach-O binaries on Mac OS X.
 
17907
OTOOL=$lt_OTOOL
 
17908
 
 
17909
# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
 
17910
OTOOL64=$lt_OTOOL64
 
17911
 
 
17912
# Old archive suffix (normally "a").
 
17913
libext=$libext
 
17914
 
 
17915
# Shared library suffix (normally ".so").
 
17916
shrext_cmds=$lt_shrext_cmds
 
17917
 
 
17918
# The commands to extract the exported symbol list from a shared archive.
 
17919
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
17920
 
 
17921
# Variables whose values should be saved in libtool wrapper scripts and
 
17922
# restored at link time.
 
17923
variables_saved_for_relink=$lt_variables_saved_for_relink
 
17924
 
 
17925
# Do we need the "lib" prefix for modules?
 
17926
need_lib_prefix=$need_lib_prefix
 
17927
 
 
17928
# Do we need a version for libraries?
 
17929
need_version=$need_version
 
17930
 
 
17931
# Library versioning type.
 
17932
version_type=$version_type
 
17933
 
 
17934
# Shared library runtime path variable.
 
17935
runpath_var=$runpath_var
 
17936
 
 
17937
# Shared library path variable.
 
17938
shlibpath_var=$shlibpath_var
 
17939
 
 
17940
# Is shlibpath searched before the hard-coded library search path?
 
17941
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
17942
 
 
17943
# Format of library name prefix.
 
17944
libname_spec=$lt_libname_spec
 
17945
 
 
17946
# List of archive names.  First name is the real one, the rest are links.
 
17947
# The last name is the one that the linker finds with -lNAME
 
17948
library_names_spec=$lt_library_names_spec
 
17949
 
 
17950
# The coded name of the library, if different from the real name.
 
17951
soname_spec=$lt_soname_spec
 
17952
 
 
17953
# Command to use after installation of a shared archive.
 
17954
postinstall_cmds=$lt_postinstall_cmds
 
17955
 
 
17956
# Command to use after uninstallation of a shared archive.
 
17957
postuninstall_cmds=$lt_postuninstall_cmds
 
17958
 
 
17959
# Commands used to finish a libtool library installation in a directory.
 
17960
finish_cmds=$lt_finish_cmds
 
17961
 
 
17962
# As "finish_cmds", except a single script fragment to be evaled but
 
17963
# not shown.
 
17964
finish_eval=$lt_finish_eval
 
17965
 
 
17966
# Whether we should hardcode library paths into libraries.
 
17967
hardcode_into_libs=$hardcode_into_libs
 
17968
 
 
17969
# Compile-time system search path for libraries.
 
17970
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
17971
 
 
17972
# Run-time system search path for libraries.
 
17973
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
17974
 
 
17975
# Whether dlopen is supported.
 
17976
dlopen_support=$enable_dlopen
 
17977
 
 
17978
# Whether dlopen of programs is supported.
 
17979
dlopen_self=$enable_dlopen_self
 
17980
 
 
17981
# Whether dlopen of statically linked programs is supported.
 
17982
dlopen_self_static=$enable_dlopen_self_static
 
17983
 
 
17984
# Commands to strip libraries.
 
17985
old_striplib=$lt_old_striplib
 
17986
striplib=$lt_striplib
 
17987
 
 
17988
 
 
17989
# The linker used to build libraries.
 
17990
LD=$lt_LD
 
17991
 
 
17992
# Commands used to build an old-style archive.
 
17993
old_archive_cmds=$lt_old_archive_cmds
 
17994
 
 
17995
# A language specific compiler.
 
17996
CC=$lt_compiler
 
17997
 
 
17998
# Is the compiler the GNU compiler?
 
17999
with_gcc=$GCC
 
18000
 
 
18001
# Compiler flag to turn off builtin functions.
 
18002
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
 
18003
 
 
18004
# How to pass a linker flag through the compiler.
 
18005
wl=$lt_lt_prog_compiler_wl
 
18006
 
 
18007
# Additional compiler flags for building library objects.
 
18008
pic_flag=$lt_lt_prog_compiler_pic
 
18009
 
 
18010
# Compiler flag to prevent dynamic linking.
 
18011
link_static_flag=$lt_lt_prog_compiler_static
 
18012
 
 
18013
# Does compiler simultaneously support -c and -o options?
 
18014
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
 
18015
 
 
18016
# Whether or not to add -lc for building shared libraries.
 
18017
build_libtool_need_lc=$archive_cmds_need_lc
 
18018
 
 
18019
# Whether or not to disallow shared libs when runtime libs are static.
 
18020
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
 
18021
 
 
18022
# Compiler flag to allow reflexive dlopens.
 
18023
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
 
18024
 
 
18025
# Compiler flag to generate shared objects directly from archives.
 
18026
whole_archive_flag_spec=$lt_whole_archive_flag_spec
 
18027
 
 
18028
# Whether the compiler copes with passing no objects directly.
 
18029
compiler_needs_object=$lt_compiler_needs_object
 
18030
 
 
18031
# Create an old-style archive from a shared archive.
 
18032
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
 
18033
 
 
18034
# Create a temporary old-style archive to link instead of a shared archive.
 
18035
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
 
18036
 
 
18037
# Commands used to build a shared archive.
 
18038
archive_cmds=$lt_archive_cmds
 
18039
archive_expsym_cmds=$lt_archive_expsym_cmds
 
18040
 
 
18041
# Commands used to build a loadable module if different from building
 
18042
# a shared archive.
 
18043
module_cmds=$lt_module_cmds
 
18044
module_expsym_cmds=$lt_module_expsym_cmds
 
18045
 
 
18046
# Whether we are building with GNU ld or not.
 
18047
with_gnu_ld=$lt_with_gnu_ld
 
18048
 
 
18049
# Flag that allows shared libraries with undefined symbols to be built.
 
18050
allow_undefined_flag=$lt_allow_undefined_flag
 
18051
 
 
18052
# Flag that enforces no undefined symbols.
 
18053
no_undefined_flag=$lt_no_undefined_flag
 
18054
 
 
18055
# Flag to hardcode \$libdir into a binary during linking.
 
18056
# This must work even if \$libdir does not exist
 
18057
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
 
18058
 
 
18059
# If ld is used when linking, flag to hardcode \$libdir into a binary
 
18060
# during linking.  This must work even if \$libdir does not exist.
 
18061
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
 
18062
 
 
18063
# Whether we need a single "-rpath" flag with a separated argument.
 
18064
hardcode_libdir_separator=$lt_hardcode_libdir_separator
 
18065
 
 
18066
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
 
18067
# DIR into the resulting binary.
 
18068
hardcode_direct=$hardcode_direct
 
18069
 
 
18070
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
 
18071
# DIR into the resulting binary and the resulting library dependency is
 
18072
# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
 
18073
# library is relocated.
 
18074
hardcode_direct_absolute=$hardcode_direct_absolute
 
18075
 
 
18076
# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
 
18077
# into the resulting binary.
 
18078
hardcode_minus_L=$hardcode_minus_L
 
18079
 
 
18080
# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
 
18081
# into the resulting binary.
 
18082
hardcode_shlibpath_var=$hardcode_shlibpath_var
 
18083
 
 
18084
# Set to "yes" if building a shared library automatically hardcodes DIR
 
18085
# into the library and all subsequent libraries and executables linked
 
18086
# against it.
 
18087
hardcode_automatic=$hardcode_automatic
 
18088
 
 
18089
# Set to yes if linker adds runtime paths of dependent libraries
 
18090
# to runtime path list.
 
18091
inherit_rpath=$inherit_rpath
 
18092
 
 
18093
# Whether libtool must link a program against all its dependency libraries.
 
18094
link_all_deplibs=$link_all_deplibs
 
18095
 
 
18096
# Fix the shell variable \$srcfile for the compiler.
 
18097
fix_srcfile_path=$lt_fix_srcfile_path
 
18098
 
 
18099
# Set to "yes" if exported symbols are required.
 
18100
always_export_symbols=$always_export_symbols
 
18101
 
 
18102
# The commands to list exported symbols.
 
18103
export_symbols_cmds=$lt_export_symbols_cmds
 
18104
 
 
18105
# Symbols that should not be listed in the preloaded symbols.
 
18106
exclude_expsyms=$lt_exclude_expsyms
 
18107
 
 
18108
# Symbols that must always be exported.
 
18109
include_expsyms=$lt_include_expsyms
 
18110
 
 
18111
# Commands necessary for linking programs (against libraries) with templates.
 
18112
prelink_cmds=$lt_prelink_cmds
 
18113
 
 
18114
# Specify filename containing input files.
 
18115
file_list_spec=$lt_file_list_spec
 
18116
 
 
18117
# How to hardcode a shared library path into an executable.
 
18118
hardcode_action=$hardcode_action
 
18119
 
 
18120
# The directories searched by this compiler when creating a shared library.
 
18121
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
 
18122
 
 
18123
# Dependencies to place before and after the objects being linked to
 
18124
# create a shared library.
 
18125
predep_objects=$lt_predep_objects
 
18126
postdep_objects=$lt_postdep_objects
 
18127
predeps=$lt_predeps
 
18128
postdeps=$lt_postdeps
 
18129
 
 
18130
# The library search path used internally by the compiler when linking
 
18131
# a shared library.
 
18132
compiler_lib_search_path=$lt_compiler_lib_search_path
 
18133
 
 
18134
# ### END LIBTOOL CONFIG
 
18135
 
 
18136
_LT_EOF
 
18137
 
 
18138
  case $host_os in
 
18139
  aix3*)
 
18140
    cat <<\_LT_EOF >> "$cfgfile"
 
18141
# AIX sometimes has problems with the GCC collect2 program.  For some
 
18142
# reason, if we set the COLLECT_NAMES environment variable, the problems
 
18143
# vanish in a puff of smoke.
 
18144
if test "X${COLLECT_NAMES+set}" != Xset; then
 
18145
  COLLECT_NAMES=
 
18146
  export COLLECT_NAMES
 
18147
fi
 
18148
_LT_EOF
 
18149
    ;;
 
18150
  esac
 
18151
 
 
18152
 
 
18153
ltmain="$ac_aux_dir/ltmain.sh"
 
18154
 
 
18155
 
 
18156
  # We use sed instead of cat because bash on DJGPP gets confused if
 
18157
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
 
18158
  # text mode, it properly converts lines to CR/LF.  This bash problem
 
18159
  # is reportedly fixed, but why not run on old versions too?
 
18160
  sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
 
18161
    || (rm -f "$cfgfile"; exit 1)
 
18162
 
 
18163
  case $xsi_shell in
 
18164
  yes)
 
18165
    cat << \_LT_EOF >> "$cfgfile"
 
18166
 
 
18167
# func_dirname file append nondir_replacement
 
18168
# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
 
18169
# otherwise set result to NONDIR_REPLACEMENT.
 
18170
func_dirname ()
 
18171
{
 
18172
  case ${1} in
 
18173
    */*) func_dirname_result="${1%/*}${2}" ;;
 
18174
    *  ) func_dirname_result="${3}" ;;
 
18175
  esac
 
18176
}
 
18177
 
 
18178
# func_basename file
 
18179
func_basename ()
 
18180
{
 
18181
  func_basename_result="${1##*/}"
 
18182
}
 
18183
 
 
18184
# func_dirname_and_basename file append nondir_replacement
 
18185
# perform func_basename and func_dirname in a single function
 
18186
# call:
 
18187
#   dirname:  Compute the dirname of FILE.  If nonempty,
 
18188
#             add APPEND to the result, otherwise set result
 
18189
#             to NONDIR_REPLACEMENT.
 
18190
#             value returned in "$func_dirname_result"
 
18191
#   basename: Compute filename of FILE.
 
18192
#             value retuned in "$func_basename_result"
 
18193
# Implementation must be kept synchronized with func_dirname
 
18194
# and func_basename. For efficiency, we do not delegate to
 
18195
# those functions but instead duplicate the functionality here.
 
18196
func_dirname_and_basename ()
 
18197
{
 
18198
  case ${1} in
 
18199
    */*) func_dirname_result="${1%/*}${2}" ;;
 
18200
    *  ) func_dirname_result="${3}" ;;
 
18201
  esac
 
18202
  func_basename_result="${1##*/}"
 
18203
}
 
18204
 
 
18205
# func_stripname prefix suffix name
 
18206
# strip PREFIX and SUFFIX off of NAME.
 
18207
# PREFIX and SUFFIX must not contain globbing or regex special
 
18208
# characters, hashes, percent signs, but SUFFIX may contain a leading
 
18209
# dot (in which case that matches only a dot).
 
18210
func_stripname ()
 
18211
{
 
18212
  # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
 
18213
  # positional parameters, so assign one to ordinary parameter first.
 
18214
  func_stripname_result=${3}
 
18215
  func_stripname_result=${func_stripname_result#"${1}"}
 
18216
  func_stripname_result=${func_stripname_result%"${2}"}
 
18217
}
 
18218
 
 
18219
# func_opt_split
 
18220
func_opt_split ()
 
18221
{
 
18222
  func_opt_split_opt=${1%%=*}
 
18223
  func_opt_split_arg=${1#*=}
 
18224
}
 
18225
 
 
18226
# func_lo2o object
 
18227
func_lo2o ()
 
18228
{
 
18229
  case ${1} in
 
18230
    *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
 
18231
    *)    func_lo2o_result=${1} ;;
 
18232
  esac
 
18233
}
 
18234
 
 
18235
# func_xform libobj-or-source
 
18236
func_xform ()
 
18237
{
 
18238
  func_xform_result=${1%.*}.lo
 
18239
}
 
18240
 
 
18241
# func_arith arithmetic-term...
 
18242
func_arith ()
 
18243
{
 
18244
  func_arith_result=$(( $* ))
 
18245
}
 
18246
 
 
18247
# func_len string
 
18248
# STRING may not start with a hyphen.
 
18249
func_len ()
 
18250
{
 
18251
  func_len_result=${#1}
 
18252
}
 
18253
 
 
18254
_LT_EOF
 
18255
    ;;
 
18256
  *) # Bourne compatible functions.
 
18257
    cat << \_LT_EOF >> "$cfgfile"
 
18258
 
 
18259
# func_dirname file append nondir_replacement
 
18260
# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
 
18261
# otherwise set result to NONDIR_REPLACEMENT.
 
18262
func_dirname ()
 
18263
{
 
18264
  # Extract subdirectory from the argument.
 
18265
  func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
 
18266
  if test "X$func_dirname_result" = "X${1}"; then
 
18267
    func_dirname_result="${3}"
 
18268
  else
 
18269
    func_dirname_result="$func_dirname_result${2}"
 
18270
  fi
 
18271
}
 
18272
 
 
18273
# func_basename file
 
18274
func_basename ()
 
18275
{
 
18276
  func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
 
18277
}
 
18278
 
 
18279
 
 
18280
# func_stripname prefix suffix name
 
18281
# strip PREFIX and SUFFIX off of NAME.
 
18282
# PREFIX and SUFFIX must not contain globbing or regex special
 
18283
# characters, hashes, percent signs, but SUFFIX may contain a leading
 
18284
# dot (in which case that matches only a dot).
 
18285
# func_strip_suffix prefix name
 
18286
func_stripname ()
 
18287
{
 
18288
  case ${2} in
 
18289
    .*) func_stripname_result=`$ECHO "X${3}" \
 
18290
           | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
 
18291
    *)  func_stripname_result=`$ECHO "X${3}" \
 
18292
           | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
 
18293
  esac
 
18294
}
 
18295
 
 
18296
# sed scripts:
 
18297
my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
 
18298
my_sed_long_arg='1s/^-[^=]*=//'
 
18299
 
 
18300
# func_opt_split
 
18301
func_opt_split ()
 
18302
{
 
18303
  func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
 
18304
  func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
 
18305
}
 
18306
 
 
18307
# func_lo2o object
 
18308
func_lo2o ()
 
18309
{
 
18310
  func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
 
18311
}
 
18312
 
 
18313
# func_xform libobj-or-source
 
18314
func_xform ()
 
18315
{
 
18316
  func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
 
18317
}
 
18318
 
 
18319
# func_arith arithmetic-term...
 
18320
func_arith ()
 
18321
{
 
18322
  func_arith_result=`expr "$@"`
 
18323
}
 
18324
 
 
18325
# func_len string
 
18326
# STRING may not start with a hyphen.
 
18327
func_len ()
 
18328
{
 
18329
  func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
 
18330
}
 
18331
 
 
18332
_LT_EOF
 
18333
esac
 
18334
 
 
18335
case $lt_shell_append in
 
18336
  yes)
 
18337
    cat << \_LT_EOF >> "$cfgfile"
 
18338
 
 
18339
# func_append var value
 
18340
# Append VALUE to the end of shell variable VAR.
 
18341
func_append ()
 
18342
{
 
18343
  eval "$1+=\$2"
 
18344
}
 
18345
_LT_EOF
 
18346
    ;;
 
18347
  *)
 
18348
    cat << \_LT_EOF >> "$cfgfile"
 
18349
 
 
18350
# func_append var value
 
18351
# Append VALUE to the end of shell variable VAR.
 
18352
func_append ()
 
18353
{
 
18354
  eval "$1=\$$1\$2"
 
18355
}
 
18356
 
 
18357
_LT_EOF
 
18358
    ;;
 
18359
  esac
 
18360
 
 
18361
 
 
18362
  sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
 
18363
    || (rm -f "$cfgfile"; exit 1)
 
18364
 
 
18365
  mv -f "$cfgfile" "$ofile" ||
 
18366
    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
 
18367
  chmod +x "$ofile"
 
18368
 
 
18369
 
 
18370
    cat <<_LT_EOF >> "$ofile"
 
18371
 
 
18372
# ### BEGIN LIBTOOL TAG CONFIG: CXX
 
18373
 
 
18374
# The linker used to build libraries.
 
18375
LD=$lt_LD_CXX
 
18376
 
 
18377
# Commands used to build an old-style archive.
 
18378
old_archive_cmds=$lt_old_archive_cmds_CXX
 
18379
 
 
18380
# A language specific compiler.
 
18381
CC=$lt_compiler_CXX
 
18382
 
 
18383
# Is the compiler the GNU compiler?
 
18384
with_gcc=$GCC_CXX
 
18385
 
 
18386
# Compiler flag to turn off builtin functions.
 
18387
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
 
18388
 
 
18389
# How to pass a linker flag through the compiler.
 
18390
wl=$lt_lt_prog_compiler_wl_CXX
 
18391
 
 
18392
# Additional compiler flags for building library objects.
 
18393
pic_flag=$lt_lt_prog_compiler_pic_CXX
 
18394
 
 
18395
# Compiler flag to prevent dynamic linking.
 
18396
link_static_flag=$lt_lt_prog_compiler_static_CXX
 
18397
 
 
18398
# Does compiler simultaneously support -c and -o options?
 
18399
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
 
18400
 
 
18401
# Whether or not to add -lc for building shared libraries.
 
18402
build_libtool_need_lc=$archive_cmds_need_lc_CXX
 
18403
 
 
18404
# Whether or not to disallow shared libs when runtime libs are static.
 
18405
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
 
18406
 
 
18407
# Compiler flag to allow reflexive dlopens.
 
18408
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
 
18409
 
 
18410
# Compiler flag to generate shared objects directly from archives.
 
18411
whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
 
18412
 
 
18413
# Whether the compiler copes with passing no objects directly.
 
18414
compiler_needs_object=$lt_compiler_needs_object_CXX
 
18415
 
 
18416
# Create an old-style archive from a shared archive.
 
18417
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
 
18418
 
 
18419
# Create a temporary old-style archive to link instead of a shared archive.
 
18420
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
 
18421
 
 
18422
# Commands used to build a shared archive.
 
18423
archive_cmds=$lt_archive_cmds_CXX
 
18424
archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
 
18425
 
 
18426
# Commands used to build a loadable module if different from building
 
18427
# a shared archive.
 
18428
module_cmds=$lt_module_cmds_CXX
 
18429
module_expsym_cmds=$lt_module_expsym_cmds_CXX
 
18430
 
 
18431
# Whether we are building with GNU ld or not.
 
18432
with_gnu_ld=$lt_with_gnu_ld_CXX
 
18433
 
 
18434
# Flag that allows shared libraries with undefined symbols to be built.
 
18435
allow_undefined_flag=$lt_allow_undefined_flag_CXX
 
18436
 
 
18437
# Flag that enforces no undefined symbols.
 
18438
no_undefined_flag=$lt_no_undefined_flag_CXX
 
18439
 
 
18440
# Flag to hardcode \$libdir into a binary during linking.
 
18441
# This must work even if \$libdir does not exist
 
18442
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
 
18443
 
 
18444
# If ld is used when linking, flag to hardcode \$libdir into a binary
 
18445
# during linking.  This must work even if \$libdir does not exist.
 
18446
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
 
18447
 
 
18448
# Whether we need a single "-rpath" flag with a separated argument.
 
18449
hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
 
18450
 
 
18451
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
 
18452
# DIR into the resulting binary.
 
18453
hardcode_direct=$hardcode_direct_CXX
 
18454
 
 
18455
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
 
18456
# DIR into the resulting binary and the resulting library dependency is
 
18457
# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
 
18458
# library is relocated.
 
18459
hardcode_direct_absolute=$hardcode_direct_absolute_CXX
 
18460
 
 
18461
# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
 
18462
# into the resulting binary.
 
18463
hardcode_minus_L=$hardcode_minus_L_CXX
 
18464
 
 
18465
# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
 
18466
# into the resulting binary.
 
18467
hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
 
18468
 
 
18469
# Set to "yes" if building a shared library automatically hardcodes DIR
 
18470
# into the library and all subsequent libraries and executables linked
 
18471
# against it.
 
18472
hardcode_automatic=$hardcode_automatic_CXX
 
18473
 
 
18474
# Set to yes if linker adds runtime paths of dependent libraries
 
18475
# to runtime path list.
 
18476
inherit_rpath=$inherit_rpath_CXX
 
18477
 
 
18478
# Whether libtool must link a program against all its dependency libraries.
 
18479
link_all_deplibs=$link_all_deplibs_CXX
 
18480
 
 
18481
# Fix the shell variable \$srcfile for the compiler.
 
18482
fix_srcfile_path=$lt_fix_srcfile_path_CXX
 
18483
 
 
18484
# Set to "yes" if exported symbols are required.
 
18485
always_export_symbols=$always_export_symbols_CXX
 
18486
 
 
18487
# The commands to list exported symbols.
 
18488
export_symbols_cmds=$lt_export_symbols_cmds_CXX
 
18489
 
 
18490
# Symbols that should not be listed in the preloaded symbols.
 
18491
exclude_expsyms=$lt_exclude_expsyms_CXX
 
18492
 
 
18493
# Symbols that must always be exported.
 
18494
include_expsyms=$lt_include_expsyms_CXX
 
18495
 
 
18496
# Commands necessary for linking programs (against libraries) with templates.
 
18497
prelink_cmds=$lt_prelink_cmds_CXX
 
18498
 
 
18499
# Specify filename containing input files.
 
18500
file_list_spec=$lt_file_list_spec_CXX
 
18501
 
 
18502
# How to hardcode a shared library path into an executable.
 
18503
hardcode_action=$hardcode_action_CXX
 
18504
 
 
18505
# The directories searched by this compiler when creating a shared library.
 
18506
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
 
18507
 
 
18508
# Dependencies to place before and after the objects being linked to
 
18509
# create a shared library.
 
18510
predep_objects=$lt_predep_objects_CXX
 
18511
postdep_objects=$lt_postdep_objects_CXX
 
18512
predeps=$lt_predeps_CXX
 
18513
postdeps=$lt_postdeps_CXX
 
18514
 
 
18515
# The library search path used internally by the compiler when linking
 
18516
# a shared library.
 
18517
compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
 
18518
 
 
18519
# ### END LIBTOOL TAG CONFIG: CXX
 
18520
_LT_EOF
 
18521
 
 
18522
 ;;
21556
18523
  esac
21557
18524
done
21558
18525
_ACEOF