~ubuntu-branches/ubuntu/hardy/wget/hardy

« back to all changes in this revision

Viewing changes to configure

  • Committer: Bazaar Package Importer
  • Author(s): Noèl Köthe
  • Date: 2005-10-13 16:59:03 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20051013165903-3e12j4gn6znkhmdb
Tags: 1.10.2-1
new upstream release which fixes a NTLM Buffer Overflow Vulnerability

Show diffs side-by-side

added added

removed removed

Lines of Context:
241
241
$as_unset CDPATH
242
242
 
243
243
 
244
 
 
245
 
# Check that we are running under the correct shell.
246
 
SHELL=${CONFIG_SHELL-/bin/sh}
247
 
 
248
 
case X$ECHO in
249
 
X*--fallback-echo)
250
 
  # Remove one level of quotation (which was required for Make).
251
 
  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
252
 
  ;;
253
 
esac
254
 
 
255
 
echo=${ECHO-echo}
256
 
if test "X$1" = X--no-reexec; then
257
 
  # Discard the --no-reexec flag, and continue.
258
 
  shift
259
 
elif test "X$1" = X--fallback-echo; then
260
 
  # Avoid inline document here, it may be left over
261
 
  :
262
 
elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
263
 
  # Yippee, $echo works!
264
 
  :
265
 
else
266
 
  # Restart under the correct shell.
267
 
  exec $SHELL "$0" --no-reexec ${1+"$@"}
268
 
fi
269
 
 
270
 
if test "X$1" = X--fallback-echo; then
271
 
  # used as fallback echo
272
 
  shift
273
 
  cat <<EOF
274
 
$*
275
 
EOF
276
 
  exit 0
277
 
fi
278
 
 
279
 
# The HP-UX ksh and POSIX shell print the target directory to stdout
280
 
# if CDPATH is set.
281
 
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
282
 
 
283
 
if test -z "$ECHO"; then
284
 
if test "X${echo_test_string+set}" != Xset; then
285
 
# find a string as large as possible, as long as the shell can cope with it
286
 
  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
287
 
    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
288
 
    if (echo_test_string="`eval $cmd`") 2>/dev/null &&
289
 
       echo_test_string="`eval $cmd`" &&
290
 
       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
291
 
    then
292
 
      break
293
 
    fi
294
 
  done
295
 
fi
296
 
 
297
 
if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
298
 
   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
299
 
   test "X$echo_testing_string" = "X$echo_test_string"; then
300
 
  :
301
 
else
302
 
  # The Solaris, AIX, and Digital Unix default echo programs unquote
303
 
  # backslashes.  This makes it impossible to quote backslashes using
304
 
  #   echo "$something" | sed 's/\\/\\\\/g'
305
 
  #
306
 
  # So, first we look for a working echo in the user's PATH.
307
 
 
308
 
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
309
 
  for dir in $PATH /usr/ucb; do
310
 
    IFS="$lt_save_ifs"
311
 
    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
312
 
       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
313
 
       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
314
 
       test "X$echo_testing_string" = "X$echo_test_string"; then
315
 
      echo="$dir/echo"
316
 
      break
317
 
    fi
318
 
  done
319
 
  IFS="$lt_save_ifs"
320
 
 
321
 
  if test "X$echo" = Xecho; then
322
 
    # We didn't find a better echo, so look for alternatives.
323
 
    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
324
 
       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
325
 
       test "X$echo_testing_string" = "X$echo_test_string"; then
326
 
      # This shell has a builtin print -r that does the trick.
327
 
      echo='print -r'
328
 
    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
329
 
         test "X$CONFIG_SHELL" != X/bin/ksh; then
330
 
      # If we have ksh, try running configure again with it.
331
 
      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
332
 
      export ORIGINAL_CONFIG_SHELL
333
 
      CONFIG_SHELL=/bin/ksh
334
 
      export CONFIG_SHELL
335
 
      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
336
 
    else
337
 
      # Try using printf.
338
 
      echo='printf %s\n'
339
 
      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
340
 
         echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
341
 
         test "X$echo_testing_string" = "X$echo_test_string"; then
342
 
        # Cool, printf works
343
 
        :
344
 
      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
345
 
           test "X$echo_testing_string" = 'X\t' &&
346
 
           echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
347
 
           test "X$echo_testing_string" = "X$echo_test_string"; then
348
 
        CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
349
 
        export CONFIG_SHELL
350
 
        SHELL="$CONFIG_SHELL"
351
 
        export SHELL
352
 
        echo="$CONFIG_SHELL $0 --fallback-echo"
353
 
      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
354
 
           test "X$echo_testing_string" = 'X\t' &&
355
 
           echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
356
 
           test "X$echo_testing_string" = "X$echo_test_string"; then
357
 
        echo="$CONFIG_SHELL $0 --fallback-echo"
358
 
      else
359
 
        # maybe with a smaller string...
360
 
        prev=:
361
 
 
362
 
        for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
363
 
          if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
364
 
          then
365
 
            break
366
 
          fi
367
 
          prev="$cmd"
368
 
        done
369
 
 
370
 
        if test "$prev" != 'sed 50q "$0"'; then
371
 
          echo_test_string=`eval $prev`
372
 
          export echo_test_string
373
 
          exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
374
 
        else
375
 
          # Oops.  We lost completely, so just stick with echo.
376
 
          echo=echo
377
 
        fi
378
 
      fi
379
 
    fi
380
 
  fi
381
 
fi
382
 
fi
383
 
 
384
 
# Copy echo and quote the copy suitably for passing to libtool from
385
 
# the Makefile, instead of quoting the original, which is used later.
386
 
ECHO=$echo
387
 
if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
388
 
   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
389
 
fi
390
 
 
391
 
 
392
 
 
393
 
 
394
 
tagnames=${tagnames+${tagnames},}CXX
395
 
 
396
 
tagnames=${tagnames+${tagnames},}F77
397
 
 
398
244
# Name of the host.
399
245
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
400
246
# so uname gets run too.
463
309
# include <unistd.h>
464
310
#endif"
465
311
 
466
 
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 VERSION PACKAGE build build_cpu build_vendor build_os host host_cpu host_vendor host_os OPIE_OBJ SET_MAKE INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB STRIP ac_ct_STRIP CXX CXXFLAGS ac_ct_CXX CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL LIBTOOL_DEPS exeext U ANSI2KNR ALLOCA GETOPT_OBJ SSL_INCLUDES SSL_OBJ NTLM_OBJ MD5_OBJ MSGFMT XGETTEXT GMSGFMT CATALOGS CATOBJEXT DATADIRNAME GMOFILES INSTOBJEXT INTLLIBS POFILES HAVE_NLS USE_NLS MAKEINFO PERL POD2MAN COMMENT_IF_NO_POD2MAN LIBOBJS LTLIBOBJS'
 
312
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 VERSION PACKAGE build build_cpu build_vendor build_os host host_cpu host_vendor host_os OPIE_OBJ SET_MAKE INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP exeext U ANSI2KNR ALLOCA GETOPT_OBJ HAVE_LIBSSL LIBSSL LTLIBSSL SSL_OBJ NTLM_OBJ MD5_OBJ MSGFMT XGETTEXT GMSGFMT CATALOGS CATOBJEXT DATADIRNAME GMOFILES INSTOBJEXT INTLLIBS POFILES HAVE_NLS USE_NLS MAKEINFO PERL POD2MAN COMMENT_IF_NO_POD2MAN LIBOBJS LTLIBOBJS'
467
313
ac_subst_files=''
468
314
 
469
315
# Initialize some variables set by options.
924
770
ac_env_CPP_value=$CPP
925
771
ac_cv_env_CPP_set=${CPP+set}
926
772
ac_cv_env_CPP_value=$CPP
927
 
ac_env_CXX_set=${CXX+set}
928
 
ac_env_CXX_value=$CXX
929
 
ac_cv_env_CXX_set=${CXX+set}
930
 
ac_cv_env_CXX_value=$CXX
931
 
ac_env_CXXFLAGS_set=${CXXFLAGS+set}
932
 
ac_env_CXXFLAGS_value=$CXXFLAGS
933
 
ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
934
 
ac_cv_env_CXXFLAGS_value=$CXXFLAGS
935
 
ac_env_CXXCPP_set=${CXXCPP+set}
936
 
ac_env_CXXCPP_value=$CXXCPP
937
 
ac_cv_env_CXXCPP_set=${CXXCPP+set}
938
 
ac_cv_env_CXXCPP_value=$CXXCPP
939
 
ac_env_F77_set=${F77+set}
940
 
ac_env_F77_value=$F77
941
 
ac_cv_env_F77_set=${F77+set}
942
 
ac_cv_env_F77_value=$F77
943
 
ac_env_FFLAGS_set=${FFLAGS+set}
944
 
ac_env_FFLAGS_value=$FFLAGS
945
 
ac_cv_env_FFLAGS_set=${FFLAGS+set}
946
 
ac_cv_env_FFLAGS_value=$FFLAGS
947
773
 
948
774
#
949
775
# Report the --help message.
1022
848
  --disable-digest        disable support for HTTP digest authorization
1023
849
  --disable-ntlm          disable support for NTLM authorization
1024
850
  --disable-debug         disable support for debugging output
1025
 
  --enable-shared[=PKGS]
1026
 
                          build shared libraries [default=yes]
1027
 
  --enable-static[=PKGS]
1028
 
                          build static libraries [default=yes]
1029
 
  --enable-fast-install[=PKGS]
1030
 
                          optimize for fast installation [default=yes]
1031
 
  --disable-libtool-lock  avoid locking (might break parallel builds)
1032
851
  --disable-largefile     omit support for large files
 
852
  --disable-rpath         do not hardcode runtime library paths
1033
853
  --disable-ipv6          disable IPv6 support
1034
854
  --disable-nls           do not use Native Language Support
1035
855
 
1036
856
Optional Packages:
1037
857
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1038
858
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1039
 
  --with-ssl[=SSL-ROOT]   link with SSL support [default=auto]
1040
859
  --without-ssl           disable SSL autodetection
1041
 
  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1042
 
  --with-pic              try to use only PIC/non-PIC objects [default=use
1043
 
                          both]
1044
 
  --with-tags[=TAGS]
1045
 
                          include additional configurations [automatic]
 
860
  --with-gnu-ld           assume the C compiler uses GNU ld default=no
 
861
  --with-libssl-prefix[=DIR]  search for libssl in DIR/include and DIR/lib
 
862
  --without-libssl-prefix     don't search for libssl in includedir and libdir
1046
863
 
1047
864
Some influential environment variables:
1048
865
  CC          C compiler command
1052
869
  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1053
870
              headers in a nonstandard directory <include dir>
1054
871
  CPP         C preprocessor
1055
 
  CXX         C++ compiler command
1056
 
  CXXFLAGS    C++ compiler flags
1057
 
  CXXCPP      C++ preprocessor
1058
 
  F77         Fortran 77 compiler command
1059
 
  FFLAGS      Fortran 77 compiler flags
1060
872
 
1061
873
Use these variables to override the choices made by `configure' or to help
1062
874
it to find libraries and programs with nonstandard names/locations.
1498
1310
 
1499
1311
 
1500
1312
 
 
1313
 
 
1314
 
 
1315
 
 
1316
 
 
1317
 
 
1318
 
 
1319
 
 
1320
 
 
1321
 
 
1322
 
 
1323
 
 
1324
 
 
1325
 
 
1326
 
 
1327
 
 
1328
 
 
1329
 
 
1330
 
 
1331
 
 
1332
 
 
1333
 
 
1334
 
 
1335
 
 
1336
 
 
1337
# serial 1
 
1338
 
 
1339
# @defmac AC_PROG_CC_STDC
 
1340
# @maindex PROG_CC_STDC
 
1341
# @ovindex CC
 
1342
# If the C compiler in not in ANSI C mode by default, try to add an option
 
1343
# to output variable @code{CC} to make it so.  This macro tries various
 
1344
# options that select ANSI C on some system or another.  It considers the
 
1345
# compiler to be in ANSI C mode if it defines @code{__STDC__} to 1 and
 
1346
# handles function prototypes correctly.
 
1347
#
 
1348
# If you use this macro, you should check after calling it whether the C
 
1349
# compiler has been set to accept ANSI C; if not, the shell variable
 
1350
# @code{am_cv_prog_cc_stdc} is set to @samp{no}.  If you wrote your source
 
1351
# code in ANSI C, you can make an un-ANSIfied copy of it by using the
 
1352
# program @code{ansi2knr}, which comes with Ghostscript.
 
1353
# @end defmac
 
1354
 
 
1355
 
 
1356
 
 
1357
 
 
1358
 
 
1359
 
 
1360
 
 
1361
 
 
1362
 
 
1363
 
 
1364
 
 
1365
 
 
1366
 
 
1367
 
 
1368
 
 
1369
 
 
1370
 
 
1371
# This code originates from Ulrich Drepper's AM_WITH_NLS.
 
1372
 
 
1373
 
 
1374
 
 
1375
 
 
1376
 
 
1377
# Search path for a program which passes the given test.
 
1378
# Ulrich Drepper <drepper@cygnus.com>, 1996.
 
1379
#
 
1380
# This file may be copied and used freely without restrictions.  It
 
1381
# can be used in projects which are not available under the GNU Public
 
1382
# License but which still want to provide support for the GNU gettext
 
1383
# functionality.  Please note that the actual code is *not* freely
 
1384
# available.
 
1385
 
 
1386
# serial 1
 
1387
 
 
1388
 
 
1389
# lib-ld.m4 serial 3 (gettext-0.13)
 
1390
 
 
1391
 
 
1392
 
 
1393
 
 
1394
 
 
1395
# lib-link.m4 serial 6 (gettext-0.14.3)
 
1396
 
 
1397
 
 
1398
 
 
1399
 
 
1400
 
 
1401
 
 
1402
 
 
1403
 
 
1404
 
 
1405
 
 
1406
 
 
1407
 
 
1408
 
 
1409
# lib-prefix.m4 serial 4 (gettext-0.14.2)
 
1410
 
 
1411
 
 
1412
 
 
1413
 
 
1414
 
 
1415
 
 
1416
 
 
1417
 
 
1418
 
 
1419
 
1501
1420
VERSION=`sed -e 's/^.*"\(.*\)";$/\1/' ${srcdir}/src/version.c`
1502
1421
{ echo "$as_me:$LINENO: configuring for GNU Wget $VERSION" >&5
1503
1422
echo "$as_me: configuring for GNU Wget $VERSION" >&6;}
3076
2995
  fi
3077
2996
fi
3078
2997
 
3079
 
# Check whether --enable-shared or --disable-shared was given.
3080
 
if test "${enable_shared+set}" = set; then
3081
 
  enableval="$enable_shared"
3082
 
  p=${PACKAGE-default}
3083
 
    case $enableval in
3084
 
    yes) enable_shared=yes ;;
3085
 
    no) enable_shared=no ;;
3086
 
    *)
3087
 
      enable_shared=no
3088
 
      # Look at the argument we got.  We use all the common list separators.
3089
 
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3090
 
      for pkg in $enableval; do
3091
 
        IFS="$lt_save_ifs"
3092
 
        if test "X$pkg" = "X$p"; then
3093
 
          enable_shared=yes
3094
 
        fi
3095
 
      done
3096
 
      IFS="$lt_save_ifs"
3097
 
      ;;
3098
 
    esac
3099
 
else
3100
 
  enable_shared=yes
3101
 
fi;
3102
 
 
3103
 
# Check whether --enable-static or --disable-static was given.
3104
 
if test "${enable_static+set}" = set; then
3105
 
  enableval="$enable_static"
3106
 
  p=${PACKAGE-default}
3107
 
    case $enableval in
3108
 
    yes) enable_static=yes ;;
3109
 
    no) enable_static=no ;;
3110
 
    *)
3111
 
     enable_static=no
3112
 
      # Look at the argument we got.  We use all the common list separators.
3113
 
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3114
 
      for pkg in $enableval; do
3115
 
        IFS="$lt_save_ifs"
3116
 
        if test "X$pkg" = "X$p"; then
3117
 
          enable_static=yes
3118
 
        fi
3119
 
      done
3120
 
      IFS="$lt_save_ifs"
3121
 
      ;;
3122
 
    esac
3123
 
else
3124
 
  enable_static=yes
3125
 
fi;
3126
 
 
3127
 
# Check whether --enable-fast-install or --disable-fast-install was given.
3128
 
if test "${enable_fast_install+set}" = set; then
3129
 
  enableval="$enable_fast_install"
3130
 
  p=${PACKAGE-default}
3131
 
    case $enableval in
3132
 
    yes) enable_fast_install=yes ;;
3133
 
    no) enable_fast_install=no ;;
3134
 
    *)
3135
 
      enable_fast_install=no
3136
 
      # Look at the argument we got.  We use all the common list separators.
3137
 
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3138
 
      for pkg in $enableval; do
3139
 
        IFS="$lt_save_ifs"
3140
 
        if test "X$pkg" = "X$p"; then
3141
 
          enable_fast_install=yes
3142
 
        fi
3143
 
      done
3144
 
      IFS="$lt_save_ifs"
3145
 
      ;;
3146
 
    esac
3147
 
else
3148
 
  enable_fast_install=yes
3149
 
fi;
3150
 
 
3151
 
echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3152
 
echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3153
 
if test "${lt_cv_path_SED+set}" = set; then
3154
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
3155
 
else
3156
 
  # Loop through the user's path and test for sed and gsed.
3157
 
# Then use that list of sed's as ones to test for truncation.
3158
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3159
 
for as_dir in $PATH
3160
 
do
3161
 
  IFS=$as_save_IFS
3162
 
  test -z "$as_dir" && as_dir=.
3163
 
  for lt_ac_prog in sed gsed; do
3164
 
    for ac_exec_ext in '' $ac_executable_extensions; do
3165
 
      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3166
 
        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3167
 
      fi
3168
 
    done
3169
 
  done
3170
 
done
3171
 
lt_ac_max=0
3172
 
lt_ac_count=0
3173
 
# Add /usr/xpg4/bin/sed as it is typically found on Solaris
3174
 
# along with /bin/sed that truncates output.
3175
 
for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3176
 
  test ! -f $lt_ac_sed && continue
3177
 
  cat /dev/null > conftest.in
3178
 
  lt_ac_count=0
3179
 
  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3180
 
  # Check for GNU sed and select it if it is found.
3181
 
  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3182
 
    lt_cv_path_SED=$lt_ac_sed
3183
 
    break
3184
 
  fi
3185
 
  while true; do
3186
 
    cat conftest.in conftest.in >conftest.tmp
3187
 
    mv conftest.tmp conftest.in
3188
 
    cp conftest.in conftest.nl
3189
 
    echo >>conftest.nl
3190
 
    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3191
 
    cmp -s conftest.out conftest.nl || break
3192
 
    # 10000 chars as input seems more than enough
3193
 
    test $lt_ac_count -gt 10 && break
3194
 
    lt_ac_count=`expr $lt_ac_count + 1`
3195
 
    if test $lt_ac_count -gt $lt_ac_max; then
3196
 
      lt_ac_max=$lt_ac_count
3197
 
      lt_cv_path_SED=$lt_ac_sed
3198
 
    fi
3199
 
  done
3200
 
done
3201
 
 
3202
 
fi
3203
 
 
3204
 
SED=$lt_cv_path_SED
3205
 
echo "$as_me:$LINENO: result: $SED" >&5
3206
 
echo "${ECHO_T}$SED" >&6
3207
 
 
3208
 
 
3209
 
# Check whether --with-gnu-ld or --without-gnu-ld was given.
3210
 
if test "${with_gnu_ld+set}" = set; then
3211
 
  withval="$with_gnu_ld"
3212
 
  test "$withval" = no || with_gnu_ld=yes
3213
 
else
3214
 
  with_gnu_ld=no
3215
 
fi;
3216
 
ac_prog=ld
3217
 
if test "$GCC" = yes; then
3218
 
  # Check if gcc -print-prog-name=ld gives a path.
3219
 
  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3220
 
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3221
 
  case $host in
3222
 
  *-*-mingw*)
3223
 
    # gcc leaves a trailing carriage return which upsets mingw
3224
 
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3225
 
  *)
3226
 
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3227
 
  esac
3228
 
  case $ac_prog in
3229
 
    # Accept absolute paths.
3230
 
    [\\/]* | ?:[\\/]*)
3231
 
      re_direlt='/[^/][^/]*/\.\./'
3232
 
      # Canonicalize the pathname of ld
3233
 
      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3234
 
      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3235
 
        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3236
 
      done
3237
 
      test -z "$LD" && LD="$ac_prog"
3238
 
      ;;
3239
 
  "")
3240
 
    # If it fails, then pretend we aren't using GCC.
3241
 
    ac_prog=ld
3242
 
    ;;
3243
 
  *)
3244
 
    # If it is relative, then search for the first ld in PATH.
3245
 
    with_gnu_ld=unknown
3246
 
    ;;
3247
 
  esac
3248
 
elif test "$with_gnu_ld" = yes; then
3249
 
  echo "$as_me:$LINENO: checking for GNU ld" >&5
3250
 
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3251
 
else
3252
 
  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3253
 
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3254
 
fi
3255
 
if test "${lt_cv_path_LD+set}" = set; then
3256
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
3257
 
else
3258
 
  if test -z "$LD"; then
3259
 
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3260
 
  for ac_dir in $PATH; do
3261
 
    IFS="$lt_save_ifs"
3262
 
    test -z "$ac_dir" && ac_dir=.
3263
 
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3264
 
      lt_cv_path_LD="$ac_dir/$ac_prog"
3265
 
      # Check to see if the program is GNU ld.  I'd rather use --version,
3266
 
      # but apparently some GNU ld's only accept -v.
3267
 
      # Break only if it was the GNU/non-GNU ld that we prefer.
3268
 
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3269
 
      *GNU* | *'with BFD'*)
3270
 
        test "$with_gnu_ld" != no && break
3271
 
        ;;
3272
 
      *)
3273
 
        test "$with_gnu_ld" != yes && break
3274
 
        ;;
3275
 
      esac
3276
 
    fi
3277
 
  done
3278
 
  IFS="$lt_save_ifs"
3279
 
else
3280
 
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
3281
 
fi
3282
 
fi
3283
 
 
3284
 
LD="$lt_cv_path_LD"
3285
 
if test -n "$LD"; then
3286
 
  echo "$as_me:$LINENO: result: $LD" >&5
3287
 
echo "${ECHO_T}$LD" >&6
3288
 
else
3289
 
  echo "$as_me:$LINENO: result: no" >&5
3290
 
echo "${ECHO_T}no" >&6
3291
 
fi
3292
 
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3293
 
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3294
 
   { (exit 1); exit 1; }; }
3295
 
echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3296
 
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3297
 
if test "${lt_cv_prog_gnu_ld+set}" = set; then
3298
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
3299
 
else
3300
 
  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3301
 
case `$LD -v 2>&1 </dev/null` in
3302
 
*GNU* | *'with BFD'*)
3303
 
  lt_cv_prog_gnu_ld=yes
3304
 
  ;;
3305
 
*)
3306
 
  lt_cv_prog_gnu_ld=no
3307
 
  ;;
3308
 
esac
3309
 
fi
3310
 
echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3311
 
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3312
 
with_gnu_ld=$lt_cv_prog_gnu_ld
3313
 
 
3314
 
 
3315
 
echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3316
 
echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3317
 
if test "${lt_cv_ld_reload_flag+set}" = set; then
3318
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
3319
 
else
3320
 
  lt_cv_ld_reload_flag='-r'
3321
 
fi
3322
 
echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3323
 
echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3324
 
reload_flag=$lt_cv_ld_reload_flag
3325
 
case $reload_flag in
3326
 
"" | " "*) ;;
3327
 
*) reload_flag=" $reload_flag" ;;
3328
 
esac
3329
 
reload_cmds='$LD$reload_flag -o $output$reload_objs'
3330
 
case $host_os in
3331
 
  darwin*)
3332
 
    if test "$GCC" = yes; then
3333
 
      reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
3334
 
    else
3335
 
      reload_cmds='$LD$reload_flag -o $output$reload_objs'
3336
 
    fi
3337
 
    ;;
3338
 
esac
3339
 
 
3340
 
echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3341
 
echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3342
 
if test "${lt_cv_path_NM+set}" = set; then
3343
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
3344
 
else
3345
 
  if test -n "$NM"; then
3346
 
  # Let the user override the test.
3347
 
  lt_cv_path_NM="$NM"
3348
 
else
3349
 
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3350
 
  for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3351
 
    IFS="$lt_save_ifs"
3352
 
    test -z "$ac_dir" && ac_dir=.
3353
 
    tmp_nm="$ac_dir/${ac_tool_prefix}nm"
3354
 
    if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3355
 
      # Check to see if the nm accepts a BSD-compat flag.
3356
 
      # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3357
 
      #   nm: unknown option "B" ignored
3358
 
      # Tru64's nm complains that /dev/null is an invalid object file
3359
 
      case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3360
 
      */dev/null* | *'Invalid file or object type'*)
3361
 
        lt_cv_path_NM="$tmp_nm -B"
3362
 
        break
3363
 
        ;;
3364
 
      *)
3365
 
        case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3366
 
        */dev/null*)
3367
 
          lt_cv_path_NM="$tmp_nm -p"
3368
 
          break
3369
 
          ;;
3370
 
        *)
3371
 
          lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3372
 
          continue # so that we can try to find one that supports BSD flags
3373
 
          ;;
3374
 
        esac
3375
 
      esac
3376
 
    fi
3377
 
  done
3378
 
  IFS="$lt_save_ifs"
3379
 
  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3380
 
fi
3381
 
fi
3382
 
echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3383
 
echo "${ECHO_T}$lt_cv_path_NM" >&6
3384
 
NM="$lt_cv_path_NM"
3385
 
 
3386
 
echo "$as_me:$LINENO: checking whether ln -s works" >&5
3387
 
echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3388
 
LN_S=$as_ln_s
3389
 
if test "$LN_S" = "ln -s"; then
3390
 
  echo "$as_me:$LINENO: result: yes" >&5
3391
 
echo "${ECHO_T}yes" >&6
3392
 
else
3393
 
  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3394
 
echo "${ECHO_T}no, using $LN_S" >&6
3395
 
fi
3396
 
 
3397
 
echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3398
 
echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3399
 
if test "${lt_cv_deplibs_check_method+set}" = set; then
3400
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
3401
 
else
3402
 
  lt_cv_file_magic_cmd='$MAGIC_CMD'
3403
 
lt_cv_file_magic_test_file=
3404
 
lt_cv_deplibs_check_method='unknown'
3405
 
# Need to set the preceding variable on all platforms that support
3406
 
# interlibrary dependencies.
3407
 
# 'none' -- dependencies not supported.
3408
 
# `unknown' -- same as none, but documents that we really don't know.
3409
 
# 'pass_all' -- all dependencies passed with no checks.
3410
 
# 'test_compile' -- check by making test program.
3411
 
# 'file_magic [[regex]]' -- check by looking for files in library path
3412
 
# which responds to the $file_magic_cmd with a given extended regex.
3413
 
# If you have `file' or equivalent on your system and you're not sure
3414
 
# whether `pass_all' will *always* work, you probably want this one.
3415
 
 
3416
 
case $host_os in
3417
 
aix4* | aix5*)
3418
 
  lt_cv_deplibs_check_method=pass_all
3419
 
  ;;
3420
 
 
3421
 
beos*)
3422
 
  lt_cv_deplibs_check_method=pass_all
3423
 
  ;;
3424
 
 
3425
 
bsdi[45]*)
3426
 
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3427
 
  lt_cv_file_magic_cmd='/usr/bin/file -L'
3428
 
  lt_cv_file_magic_test_file=/shlib/libc.so
3429
 
  ;;
3430
 
 
3431
 
cygwin*)
3432
 
  # func_win32_libid is a shell function defined in ltmain.sh
3433
 
  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3434
 
  lt_cv_file_magic_cmd='func_win32_libid'
3435
 
  ;;
3436
 
 
3437
 
mingw* | pw32*)
3438
 
  # Base MSYS/MinGW do not provide the 'file' command needed by
3439
 
  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
3440
 
  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3441
 
  lt_cv_file_magic_cmd='$OBJDUMP -f'
3442
 
  ;;
3443
 
 
3444
 
darwin* | rhapsody*)
3445
 
  lt_cv_deplibs_check_method=pass_all
3446
 
  ;;
3447
 
 
3448
 
freebsd* | kfreebsd*-gnu | dragonfly*)
3449
 
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3450
 
    case $host_cpu in
3451
 
    i*86 )
3452
 
      # Not sure whether the presence of OpenBSD here was a mistake.
3453
 
      # Let's accept both of them until this is cleared up.
3454
 
      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
3455
 
      lt_cv_file_magic_cmd=/usr/bin/file
3456
 
      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3457
 
      ;;
3458
 
    esac
3459
 
  else
3460
 
    lt_cv_deplibs_check_method=pass_all
3461
 
  fi
3462
 
  ;;
3463
 
 
3464
 
gnu*)
3465
 
  lt_cv_deplibs_check_method=pass_all
3466
 
  ;;
3467
 
 
3468
 
hpux10.20* | hpux11*)
3469
 
  lt_cv_file_magic_cmd=/usr/bin/file
3470
 
  case "$host_cpu" in
3471
 
  ia64*)
3472
 
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3473
 
    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3474
 
    ;;
3475
 
  hppa*64*)
3476
 
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
3477
 
    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3478
 
    ;;
3479
 
  *)
3480
 
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3481
 
    lt_cv_file_magic_test_file=/usr/lib/libc.sl
3482
 
    ;;
3483
 
  esac
3484
 
  ;;
3485
 
 
3486
 
irix5* | irix6* | nonstopux*)
3487
 
  case $LD in
3488
 
  *-32|*"-32 ") libmagic=32-bit;;
3489
 
  *-n32|*"-n32 ") libmagic=N32;;
3490
 
  *-64|*"-64 ") libmagic=64-bit;;
3491
 
  *) libmagic=never-match;;
3492
 
  esac
3493
 
  lt_cv_deplibs_check_method=pass_all
3494
 
  ;;
3495
 
 
3496
 
# This must be Linux ELF.
3497
 
linux*)
3498
 
  lt_cv_deplibs_check_method=pass_all
3499
 
  ;;
3500
 
 
3501
 
netbsd*)
3502
 
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3503
 
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3504
 
  else
3505
 
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
3506
 
  fi
3507
 
  ;;
3508
 
 
3509
 
newos6*)
3510
 
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3511
 
  lt_cv_file_magic_cmd=/usr/bin/file
3512
 
  lt_cv_file_magic_test_file=/usr/lib/libnls.so
3513
 
  ;;
3514
 
 
3515
 
nto-qnx*)
3516
 
  lt_cv_deplibs_check_method=unknown
3517
 
  ;;
3518
 
 
3519
 
openbsd*)
3520
 
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3521
 
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
3522
 
  else
3523
 
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3524
 
  fi
3525
 
  ;;
3526
 
 
3527
 
osf3* | osf4* | osf5*)
3528
 
  lt_cv_deplibs_check_method=pass_all
3529
 
  ;;
3530
 
 
3531
 
sco3.2v5*)
3532
 
  lt_cv_deplibs_check_method=pass_all
3533
 
  ;;
3534
 
 
3535
 
solaris*)
3536
 
  lt_cv_deplibs_check_method=pass_all
3537
 
  ;;
3538
 
 
3539
 
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3540
 
  case $host_vendor in
3541
 
  motorola)
3542
 
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
3543
 
    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3544
 
    ;;
3545
 
  ncr)
3546
 
    lt_cv_deplibs_check_method=pass_all
3547
 
    ;;
3548
 
  sequent)
3549
 
    lt_cv_file_magic_cmd='/bin/file'
3550
 
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3551
 
    ;;
3552
 
  sni)
3553
 
    lt_cv_file_magic_cmd='/bin/file'
3554
 
    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3555
 
    lt_cv_file_magic_test_file=/lib/libc.so
3556
 
    ;;
3557
 
  siemens)
3558
 
    lt_cv_deplibs_check_method=pass_all
3559
 
    ;;
3560
 
  esac
3561
 
  ;;
3562
 
 
3563
 
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
3564
 
  lt_cv_deplibs_check_method=pass_all
3565
 
  ;;
3566
 
esac
3567
 
 
3568
 
fi
3569
 
echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3570
 
echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3571
 
file_magic_cmd=$lt_cv_file_magic_cmd
3572
 
deplibs_check_method=$lt_cv_deplibs_check_method
3573
 
test -z "$deplibs_check_method" && deplibs_check_method=unknown
3574
 
 
3575
 
 
3576
 
 
3577
 
 
3578
 
# If no C compiler was specified, use CC.
3579
 
LTCC=${LTCC-"$CC"}
3580
 
 
3581
 
# Allow CC to be a program name with arguments.
3582
 
compiler=$CC
3583
 
 
3584
 
# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3585
 
if test "${enable_libtool_lock+set}" = set; then
3586
 
  enableval="$enable_libtool_lock"
3587
 
 
3588
 
fi;
3589
 
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
3590
 
 
3591
 
# Some flags need to be propagated to the compiler or linker for good
3592
 
# libtool support.
3593
 
case $host in
3594
 
ia64-*-hpux*)
3595
 
  # Find out which ABI we are using.
3596
 
  echo 'int i;' > conftest.$ac_ext
3597
 
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3598
 
  (eval $ac_compile) 2>&5
3599
 
  ac_status=$?
3600
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3601
 
  (exit $ac_status); }; then
3602
 
    case `/usr/bin/file conftest.$ac_objext` in
3603
 
    *ELF-32*)
3604
 
      HPUX_IA64_MODE="32"
3605
 
      ;;
3606
 
    *ELF-64*)
3607
 
      HPUX_IA64_MODE="64"
3608
 
      ;;
3609
 
    esac
3610
 
  fi
3611
 
  rm -rf conftest*
3612
 
  ;;
3613
 
*-*-irix6*)
3614
 
  # Find out which ABI we are using.
3615
 
  echo '#line 3615 "configure"' > conftest.$ac_ext
3616
 
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3617
 
  (eval $ac_compile) 2>&5
3618
 
  ac_status=$?
3619
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3620
 
  (exit $ac_status); }; then
3621
 
   if test "$lt_cv_prog_gnu_ld" = yes; then
3622
 
    case `/usr/bin/file conftest.$ac_objext` in
3623
 
    *32-bit*)
3624
 
      LD="${LD-ld} -melf32bsmip"
3625
 
      ;;
3626
 
    *N32*)
3627
 
      LD="${LD-ld} -melf32bmipn32"
3628
 
      ;;
3629
 
    *64-bit*)
3630
 
      LD="${LD-ld} -melf64bmip"
3631
 
      ;;
3632
 
    esac
3633
 
   else
3634
 
    case `/usr/bin/file conftest.$ac_objext` in
3635
 
    *32-bit*)
3636
 
      LD="${LD-ld} -32"
3637
 
      ;;
3638
 
    *N32*)
3639
 
      LD="${LD-ld} -n32"
3640
 
      ;;
3641
 
    *64-bit*)
3642
 
      LD="${LD-ld} -64"
3643
 
      ;;
3644
 
    esac
3645
 
   fi
3646
 
  fi
3647
 
  rm -rf conftest*
3648
 
  ;;
3649
 
 
3650
 
x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
3651
 
  # Find out which ABI we are using.
3652
 
  echo 'int i;' > conftest.$ac_ext
3653
 
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3654
 
  (eval $ac_compile) 2>&5
3655
 
  ac_status=$?
3656
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3657
 
  (exit $ac_status); }; then
3658
 
    case "`/usr/bin/file conftest.o`" in
3659
 
    *32-bit*)
3660
 
      case $host in
3661
 
        x86_64-*linux*)
3662
 
          LD="${LD-ld} -m elf_i386"
3663
 
          ;;
3664
 
        ppc64-*linux*|powerpc64-*linux*)
3665
 
          LD="${LD-ld} -m elf32ppclinux"
3666
 
          ;;
3667
 
        s390x-*linux*)
3668
 
          LD="${LD-ld} -m elf_s390"
3669
 
          ;;
3670
 
        sparc64-*linux*)
3671
 
          LD="${LD-ld} -m elf32_sparc"
3672
 
          ;;
3673
 
      esac
3674
 
      ;;
3675
 
    *64-bit*)
3676
 
      case $host in
3677
 
        x86_64-*linux*)
3678
 
          LD="${LD-ld} -m elf_x86_64"
3679
 
          ;;
3680
 
        ppc*-*linux*|powerpc*-*linux*)
3681
 
          LD="${LD-ld} -m elf64ppc"
3682
 
          ;;
3683
 
        s390*-*linux*)
3684
 
          LD="${LD-ld} -m elf64_s390"
3685
 
          ;;
3686
 
        sparc*-*linux*)
3687
 
          LD="${LD-ld} -m elf64_sparc"
3688
 
          ;;
3689
 
      esac
3690
 
      ;;
3691
 
    esac
3692
 
  fi
3693
 
  rm -rf conftest*
3694
 
  ;;
3695
 
 
3696
 
*-*-sco3.2v5*)
3697
 
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3698
 
  SAVE_CFLAGS="$CFLAGS"
3699
 
  CFLAGS="$CFLAGS -belf"
3700
 
  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
3701
 
echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
3702
 
if test "${lt_cv_cc_needs_belf+set}" = set; then
3703
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
3704
 
else
3705
 
  ac_ext=c
3706
 
ac_cpp='$CPP $CPPFLAGS'
3707
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3708
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3709
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3710
 
 
3711
 
     cat >conftest.$ac_ext <<_ACEOF
3712
 
/* confdefs.h.  */
3713
 
_ACEOF
3714
 
cat confdefs.h >>conftest.$ac_ext
3715
 
cat >>conftest.$ac_ext <<_ACEOF
3716
 
/* end confdefs.h.  */
3717
 
 
3718
 
int
3719
 
main ()
3720
 
{
3721
 
 
3722
 
  ;
3723
 
  return 0;
3724
 
}
3725
 
_ACEOF
3726
 
rm -f conftest.$ac_objext conftest$ac_exeext
3727
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3728
 
  (eval $ac_link) 2>conftest.er1
3729
 
  ac_status=$?
3730
 
  grep -v '^ *+' conftest.er1 >conftest.err
3731
 
  rm -f conftest.er1
3732
 
  cat conftest.err >&5
3733
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3734
 
  (exit $ac_status); } &&
3735
 
         { ac_try='test -z "$ac_c_werror_flag"
3736
 
                         || test ! -s conftest.err'
3737
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3738
 
  (eval $ac_try) 2>&5
3739
 
  ac_status=$?
3740
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3741
 
  (exit $ac_status); }; } &&
3742
 
         { ac_try='test -s conftest$ac_exeext'
3743
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3744
 
  (eval $ac_try) 2>&5
3745
 
  ac_status=$?
3746
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3747
 
  (exit $ac_status); }; }; then
3748
 
  lt_cv_cc_needs_belf=yes
3749
 
else
3750
 
  echo "$as_me: failed program was:" >&5
3751
 
sed 's/^/| /' conftest.$ac_ext >&5
3752
 
 
3753
 
lt_cv_cc_needs_belf=no
3754
 
fi
3755
 
rm -f conftest.err conftest.$ac_objext \
3756
 
      conftest$ac_exeext conftest.$ac_ext
3757
 
     ac_ext=c
3758
 
ac_cpp='$CPP $CPPFLAGS'
3759
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3760
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3761
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3762
 
 
3763
 
fi
3764
 
echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
3765
 
echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
3766
 
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3767
 
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3768
 
    CFLAGS="$SAVE_CFLAGS"
3769
 
  fi
3770
 
  ;;
3771
 
 
3772
 
esac
3773
 
 
3774
 
need_locks="$enable_libtool_lock"
3775
 
 
3776
 
 
3777
 
echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3778
 
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3779
 
if test "${ac_cv_header_stdc+set}" = set; then
3780
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
3781
 
else
3782
 
  cat >conftest.$ac_ext <<_ACEOF
3783
 
/* confdefs.h.  */
3784
 
_ACEOF
3785
 
cat confdefs.h >>conftest.$ac_ext
3786
 
cat >>conftest.$ac_ext <<_ACEOF
3787
 
/* end confdefs.h.  */
3788
 
#include <stdlib.h>
3789
 
#include <stdarg.h>
3790
 
#include <string.h>
3791
 
#include <float.h>
3792
 
 
3793
 
int
3794
 
main ()
3795
 
{
3796
 
 
3797
 
  ;
3798
 
  return 0;
3799
 
}
3800
 
_ACEOF
3801
 
rm -f conftest.$ac_objext
3802
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3803
 
  (eval $ac_compile) 2>conftest.er1
3804
 
  ac_status=$?
3805
 
  grep -v '^ *+' conftest.er1 >conftest.err
3806
 
  rm -f conftest.er1
3807
 
  cat conftest.err >&5
3808
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3809
 
  (exit $ac_status); } &&
3810
 
         { ac_try='test -z "$ac_c_werror_flag"
3811
 
                         || test ! -s conftest.err'
3812
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3813
 
  (eval $ac_try) 2>&5
3814
 
  ac_status=$?
3815
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3816
 
  (exit $ac_status); }; } &&
3817
 
         { ac_try='test -s conftest.$ac_objext'
3818
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3819
 
  (eval $ac_try) 2>&5
3820
 
  ac_status=$?
3821
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3822
 
  (exit $ac_status); }; }; then
3823
 
  ac_cv_header_stdc=yes
3824
 
else
3825
 
  echo "$as_me: failed program was:" >&5
3826
 
sed 's/^/| /' conftest.$ac_ext >&5
3827
 
 
3828
 
ac_cv_header_stdc=no
3829
 
fi
3830
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3831
 
 
3832
 
if test $ac_cv_header_stdc = yes; then
3833
 
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3834
 
  cat >conftest.$ac_ext <<_ACEOF
3835
 
/* confdefs.h.  */
3836
 
_ACEOF
3837
 
cat confdefs.h >>conftest.$ac_ext
3838
 
cat >>conftest.$ac_ext <<_ACEOF
3839
 
/* end confdefs.h.  */
3840
 
#include <string.h>
3841
 
 
3842
 
_ACEOF
3843
 
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3844
 
  $EGREP "memchr" >/dev/null 2>&1; then
3845
 
  :
3846
 
else
3847
 
  ac_cv_header_stdc=no
3848
 
fi
3849
 
rm -f conftest*
3850
 
 
3851
 
fi
3852
 
 
3853
 
if test $ac_cv_header_stdc = yes; then
3854
 
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3855
 
  cat >conftest.$ac_ext <<_ACEOF
3856
 
/* confdefs.h.  */
3857
 
_ACEOF
3858
 
cat confdefs.h >>conftest.$ac_ext
3859
 
cat >>conftest.$ac_ext <<_ACEOF
3860
 
/* end confdefs.h.  */
3861
 
#include <stdlib.h>
3862
 
 
3863
 
_ACEOF
3864
 
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3865
 
  $EGREP "free" >/dev/null 2>&1; then
3866
 
  :
3867
 
else
3868
 
  ac_cv_header_stdc=no
3869
 
fi
3870
 
rm -f conftest*
3871
 
 
3872
 
fi
3873
 
 
3874
 
if test $ac_cv_header_stdc = yes; then
3875
 
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3876
 
  if test "$cross_compiling" = yes; then
3877
 
  :
3878
 
else
3879
 
  cat >conftest.$ac_ext <<_ACEOF
3880
 
/* confdefs.h.  */
3881
 
_ACEOF
3882
 
cat confdefs.h >>conftest.$ac_ext
3883
 
cat >>conftest.$ac_ext <<_ACEOF
3884
 
/* end confdefs.h.  */
3885
 
#include <ctype.h>
3886
 
#if ((' ' & 0x0FF) == 0x020)
3887
 
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3888
 
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3889
 
#else
3890
 
# define ISLOWER(c) \
3891
 
                   (('a' <= (c) && (c) <= 'i') \
3892
 
                     || ('j' <= (c) && (c) <= 'r') \
3893
 
                     || ('s' <= (c) && (c) <= 'z'))
3894
 
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3895
 
#endif
3896
 
 
3897
 
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3898
 
int
3899
 
main ()
3900
 
{
3901
 
  int i;
3902
 
  for (i = 0; i < 256; i++)
3903
 
    if (XOR (islower (i), ISLOWER (i))
3904
 
        || toupper (i) != TOUPPER (i))
3905
 
      exit(2);
3906
 
  exit (0);
3907
 
}
3908
 
_ACEOF
3909
 
rm -f conftest$ac_exeext
3910
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3911
 
  (eval $ac_link) 2>&5
3912
 
  ac_status=$?
3913
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3914
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3915
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3916
 
  (eval $ac_try) 2>&5
3917
 
  ac_status=$?
3918
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3919
 
  (exit $ac_status); }; }; then
3920
 
  :
3921
 
else
3922
 
  echo "$as_me: program exited with status $ac_status" >&5
3923
 
echo "$as_me: failed program was:" >&5
3924
 
sed 's/^/| /' conftest.$ac_ext >&5
3925
 
 
3926
 
( exit $ac_status )
3927
 
ac_cv_header_stdc=no
3928
 
fi
3929
 
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3930
 
fi
3931
 
fi
3932
 
fi
3933
 
echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3934
 
echo "${ECHO_T}$ac_cv_header_stdc" >&6
3935
 
if test $ac_cv_header_stdc = yes; then
3936
 
 
3937
 
cat >>confdefs.h <<\_ACEOF
3938
 
#define STDC_HEADERS 1
3939
 
_ACEOF
3940
 
 
3941
 
fi
3942
 
 
3943
 
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3944
 
 
3945
 
 
3946
 
 
3947
 
 
3948
 
 
3949
 
 
3950
 
 
3951
 
 
3952
 
 
3953
 
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3954
 
                  inttypes.h stdint.h unistd.h
3955
 
do
3956
 
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3957
 
echo "$as_me:$LINENO: checking for $ac_header" >&5
3958
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3959
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
3960
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
3961
 
else
3962
 
  cat >conftest.$ac_ext <<_ACEOF
3963
 
/* confdefs.h.  */
3964
 
_ACEOF
3965
 
cat confdefs.h >>conftest.$ac_ext
3966
 
cat >>conftest.$ac_ext <<_ACEOF
3967
 
/* end confdefs.h.  */
3968
 
$ac_includes_default
3969
 
 
3970
 
#include <$ac_header>
3971
 
_ACEOF
3972
 
rm -f conftest.$ac_objext
3973
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3974
 
  (eval $ac_compile) 2>conftest.er1
3975
 
  ac_status=$?
3976
 
  grep -v '^ *+' conftest.er1 >conftest.err
3977
 
  rm -f conftest.er1
3978
 
  cat conftest.err >&5
3979
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3980
 
  (exit $ac_status); } &&
3981
 
         { ac_try='test -z "$ac_c_werror_flag"
3982
 
                         || test ! -s conftest.err'
3983
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3984
 
  (eval $ac_try) 2>&5
3985
 
  ac_status=$?
3986
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3987
 
  (exit $ac_status); }; } &&
3988
 
         { ac_try='test -s conftest.$ac_objext'
3989
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3990
 
  (eval $ac_try) 2>&5
3991
 
  ac_status=$?
3992
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3993
 
  (exit $ac_status); }; }; then
3994
 
  eval "$as_ac_Header=yes"
3995
 
else
3996
 
  echo "$as_me: failed program was:" >&5
3997
 
sed 's/^/| /' conftest.$ac_ext >&5
3998
 
 
3999
 
eval "$as_ac_Header=no"
4000
 
fi
4001
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4002
 
fi
4003
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4004
 
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4005
 
if test `eval echo '${'$as_ac_Header'}'` = yes; then
4006
 
  cat >>confdefs.h <<_ACEOF
4007
 
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4008
 
_ACEOF
4009
 
 
4010
 
fi
4011
 
 
4012
 
done
4013
 
 
4014
 
 
4015
 
 
4016
 
for ac_header in dlfcn.h
4017
 
do
4018
 
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4019
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
4020
 
  echo "$as_me:$LINENO: checking for $ac_header" >&5
4021
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4022
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
4023
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4024
 
fi
4025
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4026
 
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4027
 
else
4028
 
  # Is the header compilable?
4029
 
echo "$as_me:$LINENO: checking $ac_header usability" >&5
4030
 
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4031
 
cat >conftest.$ac_ext <<_ACEOF
4032
 
/* confdefs.h.  */
4033
 
_ACEOF
4034
 
cat confdefs.h >>conftest.$ac_ext
4035
 
cat >>conftest.$ac_ext <<_ACEOF
4036
 
/* end confdefs.h.  */
4037
 
$ac_includes_default
4038
 
#include <$ac_header>
4039
 
_ACEOF
4040
 
rm -f conftest.$ac_objext
4041
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4042
 
  (eval $ac_compile) 2>conftest.er1
4043
 
  ac_status=$?
4044
 
  grep -v '^ *+' conftest.er1 >conftest.err
4045
 
  rm -f conftest.er1
4046
 
  cat conftest.err >&5
4047
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4048
 
  (exit $ac_status); } &&
4049
 
         { ac_try='test -z "$ac_c_werror_flag"
4050
 
                         || test ! -s conftest.err'
4051
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4052
 
  (eval $ac_try) 2>&5
4053
 
  ac_status=$?
4054
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4055
 
  (exit $ac_status); }; } &&
4056
 
         { ac_try='test -s conftest.$ac_objext'
4057
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4058
 
  (eval $ac_try) 2>&5
4059
 
  ac_status=$?
4060
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4061
 
  (exit $ac_status); }; }; then
4062
 
  ac_header_compiler=yes
4063
 
else
4064
 
  echo "$as_me: failed program was:" >&5
4065
 
sed 's/^/| /' conftest.$ac_ext >&5
4066
 
 
4067
 
ac_header_compiler=no
4068
 
fi
4069
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4070
 
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4071
 
echo "${ECHO_T}$ac_header_compiler" >&6
4072
 
 
4073
 
# Is the header present?
4074
 
echo "$as_me:$LINENO: checking $ac_header presence" >&5
4075
 
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4076
 
cat >conftest.$ac_ext <<_ACEOF
4077
 
/* confdefs.h.  */
4078
 
_ACEOF
4079
 
cat confdefs.h >>conftest.$ac_ext
4080
 
cat >>conftest.$ac_ext <<_ACEOF
4081
 
/* end confdefs.h.  */
4082
 
#include <$ac_header>
4083
 
_ACEOF
4084
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4085
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4086
 
  ac_status=$?
4087
 
  grep -v '^ *+' conftest.er1 >conftest.err
4088
 
  rm -f conftest.er1
4089
 
  cat conftest.err >&5
4090
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4091
 
  (exit $ac_status); } >/dev/null; then
4092
 
  if test -s conftest.err; then
4093
 
    ac_cpp_err=$ac_c_preproc_warn_flag
4094
 
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4095
 
  else
4096
 
    ac_cpp_err=
4097
 
  fi
4098
 
else
4099
 
  ac_cpp_err=yes
4100
 
fi
4101
 
if test -z "$ac_cpp_err"; then
4102
 
  ac_header_preproc=yes
4103
 
else
4104
 
  echo "$as_me: failed program was:" >&5
4105
 
sed 's/^/| /' conftest.$ac_ext >&5
4106
 
 
4107
 
  ac_header_preproc=no
4108
 
fi
4109
 
rm -f conftest.err conftest.$ac_ext
4110
 
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4111
 
echo "${ECHO_T}$ac_header_preproc" >&6
4112
 
 
4113
 
# So?  What about this header?
4114
 
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4115
 
  yes:no: )
4116
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4117
 
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4118
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4119
 
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4120
 
    ac_header_preproc=yes
4121
 
    ;;
4122
 
  no:yes:* )
4123
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4124
 
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4125
 
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4126
 
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4127
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4128
 
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4129
 
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4130
 
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4131
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4132
 
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4133
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4134
 
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4135
 
    (
4136
 
      cat <<\_ASBOX
4137
 
## ------------------------------------------ ##
4138
 
## Report this to the AC_PACKAGE_NAME lists.  ##
4139
 
## ------------------------------------------ ##
4140
 
_ASBOX
4141
 
    ) |
4142
 
      sed "s/^/$as_me: WARNING:     /" >&2
4143
 
    ;;
4144
 
esac
4145
 
echo "$as_me:$LINENO: checking for $ac_header" >&5
4146
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4147
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
4148
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4149
 
else
4150
 
  eval "$as_ac_Header=\$ac_header_preproc"
4151
 
fi
4152
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4153
 
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4154
 
 
4155
 
fi
4156
 
if test `eval echo '${'$as_ac_Header'}'` = yes; then
4157
 
  cat >>confdefs.h <<_ACEOF
4158
 
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4159
 
_ACEOF
4160
 
 
4161
 
fi
4162
 
 
4163
 
done
4164
 
 
4165
 
ac_ext=cc
4166
 
ac_cpp='$CXXCPP $CPPFLAGS'
4167
 
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4168
 
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4169
 
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4170
 
if test -n "$ac_tool_prefix"; then
4171
 
  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4172
 
  do
4173
 
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4174
 
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4175
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
4176
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4177
 
if test "${ac_cv_prog_CXX+set}" = set; then
4178
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4179
 
else
4180
 
  if test -n "$CXX"; then
4181
 
  ac_cv_prog_CXX="$CXX" # Let the user override the test.
4182
 
else
4183
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4184
 
for as_dir in $PATH
4185
 
do
4186
 
  IFS=$as_save_IFS
4187
 
  test -z "$as_dir" && as_dir=.
4188
 
  for ac_exec_ext in '' $ac_executable_extensions; do
4189
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4190
 
    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4191
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4192
 
    break 2
4193
 
  fi
4194
 
done
4195
 
done
4196
 
 
4197
 
fi
4198
 
fi
4199
 
CXX=$ac_cv_prog_CXX
4200
 
if test -n "$CXX"; then
4201
 
  echo "$as_me:$LINENO: result: $CXX" >&5
4202
 
echo "${ECHO_T}$CXX" >&6
4203
 
else
4204
 
  echo "$as_me:$LINENO: result: no" >&5
4205
 
echo "${ECHO_T}no" >&6
4206
 
fi
4207
 
 
4208
 
    test -n "$CXX" && break
4209
 
  done
4210
 
fi
4211
 
if test -z "$CXX"; then
4212
 
  ac_ct_CXX=$CXX
4213
 
  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4214
 
do
4215
 
  # Extract the first word of "$ac_prog", so it can be a program name with args.
4216
 
set dummy $ac_prog; ac_word=$2
4217
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
4218
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4219
 
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4220
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4221
 
else
4222
 
  if test -n "$ac_ct_CXX"; then
4223
 
  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4224
 
else
4225
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4226
 
for as_dir in $PATH
4227
 
do
4228
 
  IFS=$as_save_IFS
4229
 
  test -z "$as_dir" && as_dir=.
4230
 
  for ac_exec_ext in '' $ac_executable_extensions; do
4231
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4232
 
    ac_cv_prog_ac_ct_CXX="$ac_prog"
4233
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4234
 
    break 2
4235
 
  fi
4236
 
done
4237
 
done
4238
 
 
4239
 
fi
4240
 
fi
4241
 
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4242
 
if test -n "$ac_ct_CXX"; then
4243
 
  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4244
 
echo "${ECHO_T}$ac_ct_CXX" >&6
4245
 
else
4246
 
  echo "$as_me:$LINENO: result: no" >&5
4247
 
echo "${ECHO_T}no" >&6
4248
 
fi
4249
 
 
4250
 
  test -n "$ac_ct_CXX" && break
4251
 
done
4252
 
test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
4253
 
 
4254
 
  CXX=$ac_ct_CXX
4255
 
fi
4256
 
 
4257
 
 
4258
 
# Provide some information about the compiler.
4259
 
echo "$as_me:$LINENO:" \
4260
 
     "checking for C++ compiler version" >&5
4261
 
ac_compiler=`set X $ac_compile; echo $2`
4262
 
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4263
 
  (eval $ac_compiler --version </dev/null >&5) 2>&5
4264
 
  ac_status=$?
4265
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4266
 
  (exit $ac_status); }
4267
 
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4268
 
  (eval $ac_compiler -v </dev/null >&5) 2>&5
4269
 
  ac_status=$?
4270
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4271
 
  (exit $ac_status); }
4272
 
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4273
 
  (eval $ac_compiler -V </dev/null >&5) 2>&5
4274
 
  ac_status=$?
4275
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4276
 
  (exit $ac_status); }
4277
 
 
4278
 
echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4279
 
echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
4280
 
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4281
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4282
 
else
4283
 
  cat >conftest.$ac_ext <<_ACEOF
4284
 
/* confdefs.h.  */
4285
 
_ACEOF
4286
 
cat confdefs.h >>conftest.$ac_ext
4287
 
cat >>conftest.$ac_ext <<_ACEOF
4288
 
/* end confdefs.h.  */
4289
 
 
4290
 
int
4291
 
main ()
4292
 
{
4293
 
#ifndef __GNUC__
4294
 
       choke me
4295
 
#endif
4296
 
 
4297
 
  ;
4298
 
  return 0;
4299
 
}
4300
 
_ACEOF
4301
 
rm -f conftest.$ac_objext
4302
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4303
 
  (eval $ac_compile) 2>conftest.er1
4304
 
  ac_status=$?
4305
 
  grep -v '^ *+' conftest.er1 >conftest.err
4306
 
  rm -f conftest.er1
4307
 
  cat conftest.err >&5
4308
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4309
 
  (exit $ac_status); } &&
4310
 
         { ac_try='test -z "$ac_cxx_werror_flag"
4311
 
                         || test ! -s conftest.err'
4312
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4313
 
  (eval $ac_try) 2>&5
4314
 
  ac_status=$?
4315
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4316
 
  (exit $ac_status); }; } &&
4317
 
         { ac_try='test -s conftest.$ac_objext'
4318
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4319
 
  (eval $ac_try) 2>&5
4320
 
  ac_status=$?
4321
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4322
 
  (exit $ac_status); }; }; then
4323
 
  ac_compiler_gnu=yes
4324
 
else
4325
 
  echo "$as_me: failed program was:" >&5
4326
 
sed 's/^/| /' conftest.$ac_ext >&5
4327
 
 
4328
 
ac_compiler_gnu=no
4329
 
fi
4330
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4331
 
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4332
 
 
4333
 
fi
4334
 
echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4335
 
echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
4336
 
GXX=`test $ac_compiler_gnu = yes && echo yes`
4337
 
ac_test_CXXFLAGS=${CXXFLAGS+set}
4338
 
ac_save_CXXFLAGS=$CXXFLAGS
4339
 
CXXFLAGS="-g"
4340
 
echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4341
 
echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
4342
 
if test "${ac_cv_prog_cxx_g+set}" = set; then
4343
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4344
 
else
4345
 
  cat >conftest.$ac_ext <<_ACEOF
4346
 
/* confdefs.h.  */
4347
 
_ACEOF
4348
 
cat confdefs.h >>conftest.$ac_ext
4349
 
cat >>conftest.$ac_ext <<_ACEOF
4350
 
/* end confdefs.h.  */
4351
 
 
4352
 
int
4353
 
main ()
4354
 
{
4355
 
 
4356
 
  ;
4357
 
  return 0;
4358
 
}
4359
 
_ACEOF
4360
 
rm -f conftest.$ac_objext
4361
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4362
 
  (eval $ac_compile) 2>conftest.er1
4363
 
  ac_status=$?
4364
 
  grep -v '^ *+' conftest.er1 >conftest.err
4365
 
  rm -f conftest.er1
4366
 
  cat conftest.err >&5
4367
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4368
 
  (exit $ac_status); } &&
4369
 
         { ac_try='test -z "$ac_cxx_werror_flag"
4370
 
                         || test ! -s conftest.err'
4371
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4372
 
  (eval $ac_try) 2>&5
4373
 
  ac_status=$?
4374
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4375
 
  (exit $ac_status); }; } &&
4376
 
         { ac_try='test -s conftest.$ac_objext'
4377
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4378
 
  (eval $ac_try) 2>&5
4379
 
  ac_status=$?
4380
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4381
 
  (exit $ac_status); }; }; then
4382
 
  ac_cv_prog_cxx_g=yes
4383
 
else
4384
 
  echo "$as_me: failed program was:" >&5
4385
 
sed 's/^/| /' conftest.$ac_ext >&5
4386
 
 
4387
 
ac_cv_prog_cxx_g=no
4388
 
fi
4389
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4390
 
fi
4391
 
echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4392
 
echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
4393
 
if test "$ac_test_CXXFLAGS" = set; then
4394
 
  CXXFLAGS=$ac_save_CXXFLAGS
4395
 
elif test $ac_cv_prog_cxx_g = yes; then
4396
 
  if test "$GXX" = yes; then
4397
 
    CXXFLAGS="-g -O2"
4398
 
  else
4399
 
    CXXFLAGS="-g"
4400
 
  fi
4401
 
else
4402
 
  if test "$GXX" = yes; then
4403
 
    CXXFLAGS="-O2"
4404
 
  else
4405
 
    CXXFLAGS=
4406
 
  fi
4407
 
fi
4408
 
for ac_declaration in \
4409
 
   '' \
4410
 
   'extern "C" void std::exit (int) throw (); using std::exit;' \
4411
 
   'extern "C" void std::exit (int); using std::exit;' \
4412
 
   'extern "C" void exit (int) throw ();' \
4413
 
   'extern "C" void exit (int);' \
4414
 
   'void exit (int);'
4415
 
do
4416
 
  cat >conftest.$ac_ext <<_ACEOF
4417
 
/* confdefs.h.  */
4418
 
_ACEOF
4419
 
cat confdefs.h >>conftest.$ac_ext
4420
 
cat >>conftest.$ac_ext <<_ACEOF
4421
 
/* end confdefs.h.  */
4422
 
$ac_declaration
4423
 
#include <stdlib.h>
4424
 
int
4425
 
main ()
4426
 
{
4427
 
exit (42);
4428
 
  ;
4429
 
  return 0;
4430
 
}
4431
 
_ACEOF
4432
 
rm -f conftest.$ac_objext
4433
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4434
 
  (eval $ac_compile) 2>conftest.er1
4435
 
  ac_status=$?
4436
 
  grep -v '^ *+' conftest.er1 >conftest.err
4437
 
  rm -f conftest.er1
4438
 
  cat conftest.err >&5
4439
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4440
 
  (exit $ac_status); } &&
4441
 
         { ac_try='test -z "$ac_cxx_werror_flag"
4442
 
                         || test ! -s conftest.err'
4443
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4444
 
  (eval $ac_try) 2>&5
4445
 
  ac_status=$?
4446
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4447
 
  (exit $ac_status); }; } &&
4448
 
         { ac_try='test -s conftest.$ac_objext'
4449
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4450
 
  (eval $ac_try) 2>&5
4451
 
  ac_status=$?
4452
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4453
 
  (exit $ac_status); }; }; then
4454
 
  :
4455
 
else
4456
 
  echo "$as_me: failed program was:" >&5
4457
 
sed 's/^/| /' conftest.$ac_ext >&5
4458
 
 
4459
 
continue
4460
 
fi
4461
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4462
 
  cat >conftest.$ac_ext <<_ACEOF
4463
 
/* confdefs.h.  */
4464
 
_ACEOF
4465
 
cat confdefs.h >>conftest.$ac_ext
4466
 
cat >>conftest.$ac_ext <<_ACEOF
4467
 
/* end confdefs.h.  */
4468
 
$ac_declaration
4469
 
int
4470
 
main ()
4471
 
{
4472
 
exit (42);
4473
 
  ;
4474
 
  return 0;
4475
 
}
4476
 
_ACEOF
4477
 
rm -f conftest.$ac_objext
4478
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4479
 
  (eval $ac_compile) 2>conftest.er1
4480
 
  ac_status=$?
4481
 
  grep -v '^ *+' conftest.er1 >conftest.err
4482
 
  rm -f conftest.er1
4483
 
  cat conftest.err >&5
4484
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4485
 
  (exit $ac_status); } &&
4486
 
         { ac_try='test -z "$ac_cxx_werror_flag"
4487
 
                         || test ! -s conftest.err'
4488
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4489
 
  (eval $ac_try) 2>&5
4490
 
  ac_status=$?
4491
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4492
 
  (exit $ac_status); }; } &&
4493
 
         { ac_try='test -s conftest.$ac_objext'
4494
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4495
 
  (eval $ac_try) 2>&5
4496
 
  ac_status=$?
4497
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4498
 
  (exit $ac_status); }; }; then
4499
 
  break
4500
 
else
4501
 
  echo "$as_me: failed program was:" >&5
4502
 
sed 's/^/| /' conftest.$ac_ext >&5
4503
 
 
4504
 
fi
4505
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4506
 
done
4507
 
rm -f conftest*
4508
 
if test -n "$ac_declaration"; then
4509
 
  echo '#ifdef __cplusplus' >>confdefs.h
4510
 
  echo $ac_declaration      >>confdefs.h
4511
 
  echo '#endif'             >>confdefs.h
4512
 
fi
4513
 
 
4514
 
ac_ext=cc
4515
 
ac_cpp='$CXXCPP $CPPFLAGS'
4516
 
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4517
 
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4518
 
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4519
 
 
4520
 
 
4521
 
 
4522
 
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
4523
 
    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
4524
 
    (test "X$CXX" != "Xg++"))) ; then
4525
 
  ac_ext=cc
4526
 
ac_cpp='$CXXCPP $CPPFLAGS'
4527
 
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4528
 
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4529
 
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4530
 
echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4531
 
echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4532
 
if test -z "$CXXCPP"; then
4533
 
  if test "${ac_cv_prog_CXXCPP+set}" = set; then
4534
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4535
 
else
4536
 
      # Double quotes because CXXCPP needs to be expanded
4537
 
    for CXXCPP in "$CXX -E" "/lib/cpp"
4538
 
    do
4539
 
      ac_preproc_ok=false
4540
 
for ac_cxx_preproc_warn_flag in '' yes
4541
 
do
4542
 
  # Use a header file that comes with gcc, so configuring glibc
4543
 
  # with a fresh cross-compiler works.
4544
 
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4545
 
  # <limits.h> exists even on freestanding compilers.
4546
 
  # On the NeXT, cc -E runs the code through the compiler's parser,
4547
 
  # not just through cpp. "Syntax error" is here to catch this case.
4548
 
  cat >conftest.$ac_ext <<_ACEOF
4549
 
/* confdefs.h.  */
4550
 
_ACEOF
4551
 
cat confdefs.h >>conftest.$ac_ext
4552
 
cat >>conftest.$ac_ext <<_ACEOF
4553
 
/* end confdefs.h.  */
4554
 
#ifdef __STDC__
4555
 
# include <limits.h>
4556
 
#else
4557
 
# include <assert.h>
4558
 
#endif
4559
 
                     Syntax error
4560
 
_ACEOF
4561
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4562
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4563
 
  ac_status=$?
4564
 
  grep -v '^ *+' conftest.er1 >conftest.err
4565
 
  rm -f conftest.er1
4566
 
  cat conftest.err >&5
4567
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4568
 
  (exit $ac_status); } >/dev/null; then
4569
 
  if test -s conftest.err; then
4570
 
    ac_cpp_err=$ac_cxx_preproc_warn_flag
4571
 
    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4572
 
  else
4573
 
    ac_cpp_err=
4574
 
  fi
4575
 
else
4576
 
  ac_cpp_err=yes
4577
 
fi
4578
 
if test -z "$ac_cpp_err"; then
4579
 
  :
4580
 
else
4581
 
  echo "$as_me: failed program was:" >&5
4582
 
sed 's/^/| /' conftest.$ac_ext >&5
4583
 
 
4584
 
  # Broken: fails on valid input.
4585
 
continue
4586
 
fi
4587
 
rm -f conftest.err conftest.$ac_ext
4588
 
 
4589
 
  # OK, works on sane cases.  Now check whether non-existent headers
4590
 
  # can be detected and how.
4591
 
  cat >conftest.$ac_ext <<_ACEOF
4592
 
/* confdefs.h.  */
4593
 
_ACEOF
4594
 
cat confdefs.h >>conftest.$ac_ext
4595
 
cat >>conftest.$ac_ext <<_ACEOF
4596
 
/* end confdefs.h.  */
4597
 
#include <ac_nonexistent.h>
4598
 
_ACEOF
4599
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4600
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4601
 
  ac_status=$?
4602
 
  grep -v '^ *+' conftest.er1 >conftest.err
4603
 
  rm -f conftest.er1
4604
 
  cat conftest.err >&5
4605
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4606
 
  (exit $ac_status); } >/dev/null; then
4607
 
  if test -s conftest.err; then
4608
 
    ac_cpp_err=$ac_cxx_preproc_warn_flag
4609
 
    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4610
 
  else
4611
 
    ac_cpp_err=
4612
 
  fi
4613
 
else
4614
 
  ac_cpp_err=yes
4615
 
fi
4616
 
if test -z "$ac_cpp_err"; then
4617
 
  # Broken: success on invalid input.
4618
 
continue
4619
 
else
4620
 
  echo "$as_me: failed program was:" >&5
4621
 
sed 's/^/| /' conftest.$ac_ext >&5
4622
 
 
4623
 
  # Passes both tests.
4624
 
ac_preproc_ok=:
4625
 
break
4626
 
fi
4627
 
rm -f conftest.err conftest.$ac_ext
4628
 
 
4629
 
done
4630
 
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4631
 
rm -f conftest.err conftest.$ac_ext
4632
 
if $ac_preproc_ok; then
4633
 
  break
4634
 
fi
4635
 
 
4636
 
    done
4637
 
    ac_cv_prog_CXXCPP=$CXXCPP
4638
 
 
4639
 
fi
4640
 
  CXXCPP=$ac_cv_prog_CXXCPP
4641
 
else
4642
 
  ac_cv_prog_CXXCPP=$CXXCPP
4643
 
fi
4644
 
echo "$as_me:$LINENO: result: $CXXCPP" >&5
4645
 
echo "${ECHO_T}$CXXCPP" >&6
4646
 
ac_preproc_ok=false
4647
 
for ac_cxx_preproc_warn_flag in '' yes
4648
 
do
4649
 
  # Use a header file that comes with gcc, so configuring glibc
4650
 
  # with a fresh cross-compiler works.
4651
 
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4652
 
  # <limits.h> exists even on freestanding compilers.
4653
 
  # On the NeXT, cc -E runs the code through the compiler's parser,
4654
 
  # not just through cpp. "Syntax error" is here to catch this case.
4655
 
  cat >conftest.$ac_ext <<_ACEOF
4656
 
/* confdefs.h.  */
4657
 
_ACEOF
4658
 
cat confdefs.h >>conftest.$ac_ext
4659
 
cat >>conftest.$ac_ext <<_ACEOF
4660
 
/* end confdefs.h.  */
4661
 
#ifdef __STDC__
4662
 
# include <limits.h>
4663
 
#else
4664
 
# include <assert.h>
4665
 
#endif
4666
 
                     Syntax error
4667
 
_ACEOF
4668
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4669
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4670
 
  ac_status=$?
4671
 
  grep -v '^ *+' conftest.er1 >conftest.err
4672
 
  rm -f conftest.er1
4673
 
  cat conftest.err >&5
4674
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4675
 
  (exit $ac_status); } >/dev/null; then
4676
 
  if test -s conftest.err; then
4677
 
    ac_cpp_err=$ac_cxx_preproc_warn_flag
4678
 
    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4679
 
  else
4680
 
    ac_cpp_err=
4681
 
  fi
4682
 
else
4683
 
  ac_cpp_err=yes
4684
 
fi
4685
 
if test -z "$ac_cpp_err"; then
4686
 
  :
4687
 
else
4688
 
  echo "$as_me: failed program was:" >&5
4689
 
sed 's/^/| /' conftest.$ac_ext >&5
4690
 
 
4691
 
  # Broken: fails on valid input.
4692
 
continue
4693
 
fi
4694
 
rm -f conftest.err conftest.$ac_ext
4695
 
 
4696
 
  # OK, works on sane cases.  Now check whether non-existent headers
4697
 
  # can be detected and how.
4698
 
  cat >conftest.$ac_ext <<_ACEOF
4699
 
/* confdefs.h.  */
4700
 
_ACEOF
4701
 
cat confdefs.h >>conftest.$ac_ext
4702
 
cat >>conftest.$ac_ext <<_ACEOF
4703
 
/* end confdefs.h.  */
4704
 
#include <ac_nonexistent.h>
4705
 
_ACEOF
4706
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4707
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4708
 
  ac_status=$?
4709
 
  grep -v '^ *+' conftest.er1 >conftest.err
4710
 
  rm -f conftest.er1
4711
 
  cat conftest.err >&5
4712
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4713
 
  (exit $ac_status); } >/dev/null; then
4714
 
  if test -s conftest.err; then
4715
 
    ac_cpp_err=$ac_cxx_preproc_warn_flag
4716
 
    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4717
 
  else
4718
 
    ac_cpp_err=
4719
 
  fi
4720
 
else
4721
 
  ac_cpp_err=yes
4722
 
fi
4723
 
if test -z "$ac_cpp_err"; then
4724
 
  # Broken: success on invalid input.
4725
 
continue
4726
 
else
4727
 
  echo "$as_me: failed program was:" >&5
4728
 
sed 's/^/| /' conftest.$ac_ext >&5
4729
 
 
4730
 
  # Passes both tests.
4731
 
ac_preproc_ok=:
4732
 
break
4733
 
fi
4734
 
rm -f conftest.err conftest.$ac_ext
4735
 
 
4736
 
done
4737
 
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4738
 
rm -f conftest.err conftest.$ac_ext
4739
 
if $ac_preproc_ok; then
4740
 
  :
4741
 
else
4742
 
  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4743
 
See \`config.log' for more details." >&5
4744
 
echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4745
 
See \`config.log' for more details." >&2;}
4746
 
   { (exit 1); exit 1; }; }
4747
 
fi
4748
 
 
4749
 
ac_ext=cc
4750
 
ac_cpp='$CXXCPP $CPPFLAGS'
4751
 
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4752
 
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4753
 
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4754
 
 
4755
 
fi
4756
 
 
4757
 
 
4758
 
ac_ext=f
4759
 
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4760
 
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4761
 
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4762
 
if test -n "$ac_tool_prefix"; then
4763
 
  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
4764
 
  do
4765
 
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4766
 
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4767
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
4768
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4769
 
if test "${ac_cv_prog_F77+set}" = set; then
4770
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4771
 
else
4772
 
  if test -n "$F77"; then
4773
 
  ac_cv_prog_F77="$F77" # Let the user override the test.
4774
 
else
4775
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4776
 
for as_dir in $PATH
4777
 
do
4778
 
  IFS=$as_save_IFS
4779
 
  test -z "$as_dir" && as_dir=.
4780
 
  for ac_exec_ext in '' $ac_executable_extensions; do
4781
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4782
 
    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
4783
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4784
 
    break 2
4785
 
  fi
4786
 
done
4787
 
done
4788
 
 
4789
 
fi
4790
 
fi
4791
 
F77=$ac_cv_prog_F77
4792
 
if test -n "$F77"; then
4793
 
  echo "$as_me:$LINENO: result: $F77" >&5
4794
 
echo "${ECHO_T}$F77" >&6
4795
 
else
4796
 
  echo "$as_me:$LINENO: result: no" >&5
4797
 
echo "${ECHO_T}no" >&6
4798
 
fi
4799
 
 
4800
 
    test -n "$F77" && break
4801
 
  done
4802
 
fi
4803
 
if test -z "$F77"; then
4804
 
  ac_ct_F77=$F77
4805
 
  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
4806
 
do
4807
 
  # Extract the first word of "$ac_prog", so it can be a program name with args.
4808
 
set dummy $ac_prog; ac_word=$2
4809
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
4810
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4811
 
if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
4812
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4813
 
else
4814
 
  if test -n "$ac_ct_F77"; then
4815
 
  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
4816
 
else
4817
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4818
 
for as_dir in $PATH
4819
 
do
4820
 
  IFS=$as_save_IFS
4821
 
  test -z "$as_dir" && as_dir=.
4822
 
  for ac_exec_ext in '' $ac_executable_extensions; do
4823
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4824
 
    ac_cv_prog_ac_ct_F77="$ac_prog"
4825
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4826
 
    break 2
4827
 
  fi
4828
 
done
4829
 
done
4830
 
 
4831
 
fi
4832
 
fi
4833
 
ac_ct_F77=$ac_cv_prog_ac_ct_F77
4834
 
if test -n "$ac_ct_F77"; then
4835
 
  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
4836
 
echo "${ECHO_T}$ac_ct_F77" >&6
4837
 
else
4838
 
  echo "$as_me:$LINENO: result: no" >&5
4839
 
echo "${ECHO_T}no" >&6
4840
 
fi
4841
 
 
4842
 
  test -n "$ac_ct_F77" && break
4843
 
done
4844
 
 
4845
 
  F77=$ac_ct_F77
4846
 
fi
4847
 
 
4848
 
 
4849
 
# Provide some information about the compiler.
4850
 
echo "$as_me:4850:" \
4851
 
     "checking for Fortran 77 compiler version" >&5
4852
 
ac_compiler=`set X $ac_compile; echo $2`
4853
 
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4854
 
  (eval $ac_compiler --version </dev/null >&5) 2>&5
4855
 
  ac_status=$?
4856
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4857
 
  (exit $ac_status); }
4858
 
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4859
 
  (eval $ac_compiler -v </dev/null >&5) 2>&5
4860
 
  ac_status=$?
4861
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4862
 
  (exit $ac_status); }
4863
 
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4864
 
  (eval $ac_compiler -V </dev/null >&5) 2>&5
4865
 
  ac_status=$?
4866
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4867
 
  (exit $ac_status); }
4868
 
rm -f a.out
4869
 
 
4870
 
# If we don't use `.F' as extension, the preprocessor is not run on the
4871
 
# input file.  (Note that this only needs to work for GNU compilers.)
4872
 
ac_save_ext=$ac_ext
4873
 
ac_ext=F
4874
 
echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
4875
 
echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
4876
 
if test "${ac_cv_f77_compiler_gnu+set}" = set; then
4877
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4878
 
else
4879
 
  cat >conftest.$ac_ext <<_ACEOF
4880
 
      program main
4881
 
#ifndef __GNUC__
4882
 
       choke me
4883
 
#endif
4884
 
 
4885
 
      end
4886
 
_ACEOF
4887
 
rm -f conftest.$ac_objext
4888
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4889
 
  (eval $ac_compile) 2>conftest.er1
4890
 
  ac_status=$?
4891
 
  grep -v '^ *+' conftest.er1 >conftest.err
4892
 
  rm -f conftest.er1
4893
 
  cat conftest.err >&5
4894
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4895
 
  (exit $ac_status); } &&
4896
 
         { ac_try='test -z "$ac_f77_werror_flag"
4897
 
                         || test ! -s conftest.err'
4898
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4899
 
  (eval $ac_try) 2>&5
4900
 
  ac_status=$?
4901
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4902
 
  (exit $ac_status); }; } &&
4903
 
         { ac_try='test -s conftest.$ac_objext'
4904
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4905
 
  (eval $ac_try) 2>&5
4906
 
  ac_status=$?
4907
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4908
 
  (exit $ac_status); }; }; then
4909
 
  ac_compiler_gnu=yes
4910
 
else
4911
 
  echo "$as_me: failed program was:" >&5
4912
 
sed 's/^/| /' conftest.$ac_ext >&5
4913
 
 
4914
 
ac_compiler_gnu=no
4915
 
fi
4916
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4917
 
ac_cv_f77_compiler_gnu=$ac_compiler_gnu
4918
 
 
4919
 
fi
4920
 
echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
4921
 
echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
4922
 
ac_ext=$ac_save_ext
4923
 
ac_test_FFLAGS=${FFLAGS+set}
4924
 
ac_save_FFLAGS=$FFLAGS
4925
 
FFLAGS=
4926
 
echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
4927
 
echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
4928
 
if test "${ac_cv_prog_f77_g+set}" = set; then
4929
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4930
 
else
4931
 
  FFLAGS=-g
4932
 
cat >conftest.$ac_ext <<_ACEOF
4933
 
      program main
4934
 
 
4935
 
      end
4936
 
_ACEOF
4937
 
rm -f conftest.$ac_objext
4938
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4939
 
  (eval $ac_compile) 2>conftest.er1
4940
 
  ac_status=$?
4941
 
  grep -v '^ *+' conftest.er1 >conftest.err
4942
 
  rm -f conftest.er1
4943
 
  cat conftest.err >&5
4944
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4945
 
  (exit $ac_status); } &&
4946
 
         { ac_try='test -z "$ac_f77_werror_flag"
4947
 
                         || test ! -s conftest.err'
4948
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4949
 
  (eval $ac_try) 2>&5
4950
 
  ac_status=$?
4951
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4952
 
  (exit $ac_status); }; } &&
4953
 
         { ac_try='test -s conftest.$ac_objext'
4954
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4955
 
  (eval $ac_try) 2>&5
4956
 
  ac_status=$?
4957
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4958
 
  (exit $ac_status); }; }; then
4959
 
  ac_cv_prog_f77_g=yes
4960
 
else
4961
 
  echo "$as_me: failed program was:" >&5
4962
 
sed 's/^/| /' conftest.$ac_ext >&5
4963
 
 
4964
 
ac_cv_prog_f77_g=no
4965
 
fi
4966
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4967
 
 
4968
 
fi
4969
 
echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
4970
 
echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
4971
 
if test "$ac_test_FFLAGS" = set; then
4972
 
  FFLAGS=$ac_save_FFLAGS
4973
 
elif test $ac_cv_prog_f77_g = yes; then
4974
 
  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
4975
 
    FFLAGS="-g -O2"
4976
 
  else
4977
 
    FFLAGS="-g"
4978
 
  fi
4979
 
else
4980
 
  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
4981
 
    FFLAGS="-O2"
4982
 
  else
4983
 
    FFLAGS=
4984
 
  fi
4985
 
fi
4986
 
 
4987
 
G77=`test $ac_compiler_gnu = yes && echo yes`
4988
 
ac_ext=c
4989
 
ac_cpp='$CPP $CPPFLAGS'
4990
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4991
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4992
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4993
 
 
4994
 
 
4995
 
 
4996
 
# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
4997
 
 
4998
 
# find the maximum length of command line arguments
4999
 
echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5000
 
echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5001
 
if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5002
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
5003
 
else
5004
 
    i=0
5005
 
  teststring="ABCD"
5006
 
 
5007
 
  case $build_os in
5008
 
  msdosdjgpp*)
5009
 
    # On DJGPP, this test can blow up pretty badly due to problems in libc
5010
 
    # (any single argument exceeding 2000 bytes causes a buffer overrun
5011
 
    # during glob expansion).  Even if it were fixed, the result of this
5012
 
    # check would be larger than it should be.
5013
 
    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5014
 
    ;;
5015
 
 
5016
 
  gnu*)
5017
 
    # Under GNU Hurd, this test is not required because there is
5018
 
    # no limit to the length of command line arguments.
5019
 
    # Libtool will interpret -1 as no limit whatsoever
5020
 
    lt_cv_sys_max_cmd_len=-1;
5021
 
    ;;
5022
 
 
5023
 
  cygwin* | mingw*)
5024
 
    # On Win9x/ME, this test blows up -- it succeeds, but takes
5025
 
    # about 5 minutes as the teststring grows exponentially.
5026
 
    # Worse, since 9x/ME are not pre-emptively multitasking,
5027
 
    # you end up with a "frozen" computer, even though with patience
5028
 
    # the test eventually succeeds (with a max line length of 256k).
5029
 
    # Instead, let's just punt: use the minimum linelength reported by
5030
 
    # all of the supported platforms: 8192 (on NT/2K/XP).
5031
 
    lt_cv_sys_max_cmd_len=8192;
5032
 
    ;;
5033
 
 
5034
 
  amigaos*)
5035
 
    # On AmigaOS with pdksh, this test takes hours, literally.
5036
 
    # So we just punt and use a minimum line length of 8192.
5037
 
    lt_cv_sys_max_cmd_len=8192;
5038
 
    ;;
5039
 
 
5040
 
  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5041
 
    # This has been around since 386BSD, at least.  Likely further.
5042
 
    if test -x /sbin/sysctl; then
5043
 
      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5044
 
    elif test -x /usr/sbin/sysctl; then
5045
 
      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5046
 
    else
5047
 
      lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
5048
 
    fi
5049
 
    # And add a safety zone
5050
 
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5051
 
    ;;
5052
 
  osf*)
5053
 
    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5054
 
    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5055
 
    # nice to cause kernel panics so lets avoid the loop below.
5056
 
    # First set a reasonable default.
5057
 
    lt_cv_sys_max_cmd_len=16384
5058
 
    #
5059
 
    if test -x /sbin/sysconfig; then
5060
 
      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5061
 
        *1*) lt_cv_sys_max_cmd_len=-1 ;;
5062
 
      esac
5063
 
    fi
5064
 
    ;;
5065
 
  *)
5066
 
    # If test is not a shell built-in, we'll probably end up computing a
5067
 
    # maximum length that is only half of the actual maximum length, but
5068
 
    # we can't tell.
5069
 
    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5070
 
    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5071
 
               = "XX$teststring") >/dev/null 2>&1 &&
5072
 
            new_result=`expr "X$teststring" : ".*" 2>&1` &&
5073
 
            lt_cv_sys_max_cmd_len=$new_result &&
5074
 
            test $i != 17 # 1/2 MB should be enough
5075
 
    do
5076
 
      i=`expr $i + 1`
5077
 
      teststring=$teststring$teststring
5078
 
    done
5079
 
    teststring=
5080
 
    # Add a significant safety factor because C++ compilers can tack on massive
5081
 
    # amounts of additional arguments before passing them to the linker.
5082
 
    # It appears as though 1/2 is a usable value.
5083
 
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5084
 
    ;;
5085
 
  esac
5086
 
 
5087
 
fi
5088
 
 
5089
 
if test -n $lt_cv_sys_max_cmd_len ; then
5090
 
  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5091
 
echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5092
 
else
5093
 
  echo "$as_me:$LINENO: result: none" >&5
5094
 
echo "${ECHO_T}none" >&6
5095
 
fi
5096
 
 
5097
 
 
5098
 
 
5099
 
 
5100
 
# Check for command to grab the raw symbol name followed by C symbol from nm.
5101
 
echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5102
 
echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5103
 
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5104
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
5105
 
else
5106
 
 
5107
 
# These are sane defaults that work on at least a few old systems.
5108
 
# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5109
 
 
5110
 
# Character class describing NM global symbol codes.
5111
 
symcode='[BCDEGRST]'
5112
 
 
5113
 
# Regexp to match symbols that can be accessed directly from C.
5114
 
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5115
 
 
5116
 
# Transform an extracted symbol line into a proper C declaration
5117
 
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5118
 
 
5119
 
# Transform an extracted symbol line into symbol name and symbol address
5120
 
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'"
5121
 
 
5122
 
# Define system-specific variables.
5123
 
case $host_os in
5124
 
aix*)
5125
 
  symcode='[BCDT]'
5126
 
  ;;
5127
 
cygwin* | mingw* | pw32*)
5128
 
  symcode='[ABCDGISTW]'
5129
 
  ;;
5130
 
hpux*) # Its linker distinguishes data from code symbols
5131
 
  if test "$host_cpu" = ia64; then
5132
 
    symcode='[ABCDEGRST]'
5133
 
  fi
5134
 
  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5135
 
  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'"
5136
 
  ;;
5137
 
linux*)
5138
 
  if test "$host_cpu" = ia64; then
5139
 
    symcode='[ABCDGIRSTW]'
5140
 
    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5141
 
    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'"
5142
 
  fi
5143
 
  ;;
5144
 
irix* | nonstopux*)
5145
 
  symcode='[BCDEGRST]'
5146
 
  ;;
5147
 
osf*)
5148
 
  symcode='[BCDEGQRST]'
5149
 
  ;;
5150
 
solaris* | sysv5*)
5151
 
  symcode='[BDRT]'
5152
 
  ;;
5153
 
sysv4)
5154
 
  symcode='[DFNSTU]'
5155
 
  ;;
5156
 
esac
5157
 
 
5158
 
# Handle CRLF in mingw tool chain
5159
 
opt_cr=
5160
 
case $build_os in
5161
 
mingw*)
5162
 
  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5163
 
  ;;
5164
 
esac
5165
 
 
5166
 
# If we're using GNU nm, then use its standard symbol codes.
5167
 
case `$NM -V 2>&1` in
5168
 
*GNU* | *'with BFD'*)
5169
 
  symcode='[ABCDGIRSTW]' ;;
5170
 
esac
5171
 
 
5172
 
# Try without a prefix undercore, then with it.
5173
 
for ac_symprfx in "" "_"; do
5174
 
 
5175
 
  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5176
 
  symxfrm="\\1 $ac_symprfx\\2 \\2"
5177
 
 
5178
 
  # Write the raw and C identifiers.
5179
 
  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5180
 
 
5181
 
  # Check to see that the pipe works correctly.
5182
 
  pipe_works=no
5183
 
 
5184
 
  rm -f conftest*
5185
 
  cat > conftest.$ac_ext <<EOF
5186
 
#ifdef __cplusplus
5187
 
extern "C" {
5188
 
#endif
5189
 
char nm_test_var;
5190
 
void nm_test_func(){}
5191
 
#ifdef __cplusplus
5192
 
}
5193
 
#endif
5194
 
int main(){nm_test_var='a';nm_test_func();return(0);}
5195
 
EOF
5196
 
 
5197
 
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5198
 
  (eval $ac_compile) 2>&5
5199
 
  ac_status=$?
5200
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5201
 
  (exit $ac_status); }; then
5202
 
    # Now try to grab the symbols.
5203
 
    nlist=conftest.nm
5204
 
    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5205
 
  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5206
 
  ac_status=$?
5207
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5208
 
  (exit $ac_status); } && test -s "$nlist"; then
5209
 
      # Try sorting and uniquifying the output.
5210
 
      if sort "$nlist" | uniq > "$nlist"T; then
5211
 
        mv -f "$nlist"T "$nlist"
5212
 
      else
5213
 
        rm -f "$nlist"T
5214
 
      fi
5215
 
 
5216
 
      # Make sure that we snagged all the symbols we need.
5217
 
      if grep ' nm_test_var$' "$nlist" >/dev/null; then
5218
 
        if grep ' nm_test_func$' "$nlist" >/dev/null; then
5219
 
          cat <<EOF > conftest.$ac_ext
5220
 
#ifdef __cplusplus
5221
 
extern "C" {
5222
 
#endif
5223
 
 
5224
 
EOF
5225
 
          # Now generate the symbol file.
5226
 
          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5227
 
 
5228
 
          cat <<EOF >> conftest.$ac_ext
5229
 
#if defined (__STDC__) && __STDC__
5230
 
# define lt_ptr_t void *
5231
 
#else
5232
 
# define lt_ptr_t char *
5233
 
# define const
5234
 
#endif
5235
 
 
5236
 
/* The mapping between symbol names and symbols. */
5237
 
const struct {
5238
 
  const char *name;
5239
 
  lt_ptr_t address;
5240
 
}
5241
 
lt_preloaded_symbols[] =
5242
 
{
5243
 
EOF
5244
 
          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5245
 
          cat <<\EOF >> conftest.$ac_ext
5246
 
  {0, (lt_ptr_t) 0}
5247
 
};
5248
 
 
5249
 
#ifdef __cplusplus
5250
 
}
5251
 
#endif
5252
 
EOF
5253
 
          # Now try linking the two files.
5254
 
          mv conftest.$ac_objext conftstm.$ac_objext
5255
 
          lt_save_LIBS="$LIBS"
5256
 
          lt_save_CFLAGS="$CFLAGS"
5257
 
          LIBS="conftstm.$ac_objext"
5258
 
          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5259
 
          if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5260
 
  (eval $ac_link) 2>&5
5261
 
  ac_status=$?
5262
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5263
 
  (exit $ac_status); } && test -s conftest${ac_exeext}; then
5264
 
            pipe_works=yes
5265
 
          fi
5266
 
          LIBS="$lt_save_LIBS"
5267
 
          CFLAGS="$lt_save_CFLAGS"
5268
 
        else
5269
 
          echo "cannot find nm_test_func in $nlist" >&5
5270
 
        fi
5271
 
      else
5272
 
        echo "cannot find nm_test_var in $nlist" >&5
5273
 
      fi
5274
 
    else
5275
 
      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5276
 
    fi
5277
 
  else
5278
 
    echo "$progname: failed program was:" >&5
5279
 
    cat conftest.$ac_ext >&5
5280
 
  fi
5281
 
  rm -f conftest* conftst*
5282
 
 
5283
 
  # Do not use the global_symbol_pipe unless it works.
5284
 
  if test "$pipe_works" = yes; then
5285
 
    break
5286
 
  else
5287
 
    lt_cv_sys_global_symbol_pipe=
5288
 
  fi
5289
 
done
5290
 
 
5291
 
fi
5292
 
 
5293
 
if test -z "$lt_cv_sys_global_symbol_pipe"; then
5294
 
  lt_cv_sys_global_symbol_to_cdecl=
5295
 
fi
5296
 
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5297
 
  echo "$as_me:$LINENO: result: failed" >&5
5298
 
echo "${ECHO_T}failed" >&6
5299
 
else
5300
 
  echo "$as_me:$LINENO: result: ok" >&5
5301
 
echo "${ECHO_T}ok" >&6
5302
 
fi
5303
 
 
5304
 
echo "$as_me:$LINENO: checking for objdir" >&5
5305
 
echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5306
 
if test "${lt_cv_objdir+set}" = set; then
5307
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
5308
 
else
5309
 
  rm -f .libs 2>/dev/null
5310
 
mkdir .libs 2>/dev/null
5311
 
if test -d .libs; then
5312
 
  lt_cv_objdir=.libs
5313
 
else
5314
 
  # MS-DOS does not allow filenames that begin with a dot.
5315
 
  lt_cv_objdir=_libs
5316
 
fi
5317
 
rmdir .libs 2>/dev/null
5318
 
fi
5319
 
echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5320
 
echo "${ECHO_T}$lt_cv_objdir" >&6
5321
 
objdir=$lt_cv_objdir
5322
 
 
5323
 
 
5324
 
 
5325
 
 
5326
 
 
5327
 
case $host_os in
5328
 
aix3*)
5329
 
  # AIX sometimes has problems with the GCC collect2 program.  For some
5330
 
  # reason, if we set the COLLECT_NAMES environment variable, the problems
5331
 
  # vanish in a puff of smoke.
5332
 
  if test "X${COLLECT_NAMES+set}" != Xset; then
5333
 
    COLLECT_NAMES=
5334
 
    export COLLECT_NAMES
5335
 
  fi
5336
 
  ;;
5337
 
esac
5338
 
 
5339
 
# Sed substitution that helps us do robust quoting.  It backslashifies
5340
 
# metacharacters that are still active within double-quoted strings.
5341
 
Xsed='sed -e s/^X//'
5342
 
sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5343
 
 
5344
 
# Same as above, but do not quote variable references.
5345
 
double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5346
 
 
5347
 
# Sed substitution to delay expansion of an escaped shell variable in a
5348
 
# double_quote_subst'ed string.
5349
 
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5350
 
 
5351
 
# Sed substitution to avoid accidental globbing in evaled expressions
5352
 
no_glob_subst='s/\*/\\\*/g'
5353
 
 
5354
 
# Constants:
5355
 
rm="rm -f"
5356
 
 
5357
 
# Global variables:
5358
 
default_ofile=libtool
5359
 
can_build_shared=yes
5360
 
 
5361
 
# All known linkers require a `.a' archive for static linking (except M$VC,
5362
 
# which needs '.lib').
5363
 
libext=a
5364
 
ltmain="$ac_aux_dir/ltmain.sh"
5365
 
ofile="$default_ofile"
5366
 
with_gnu_ld="$lt_cv_prog_gnu_ld"
5367
 
 
5368
 
if test -n "$ac_tool_prefix"; then
5369
 
  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5370
 
set dummy ${ac_tool_prefix}ar; ac_word=$2
5371
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
5372
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5373
 
if test "${ac_cv_prog_AR+set}" = set; then
5374
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
5375
 
else
5376
 
  if test -n "$AR"; then
5377
 
  ac_cv_prog_AR="$AR" # Let the user override the test.
5378
 
else
5379
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5380
 
for as_dir in $PATH
5381
 
do
5382
 
  IFS=$as_save_IFS
5383
 
  test -z "$as_dir" && as_dir=.
5384
 
  for ac_exec_ext in '' $ac_executable_extensions; do
5385
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5386
 
    ac_cv_prog_AR="${ac_tool_prefix}ar"
5387
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5388
 
    break 2
5389
 
  fi
5390
 
done
5391
 
done
5392
 
 
5393
 
fi
5394
 
fi
5395
 
AR=$ac_cv_prog_AR
5396
 
if test -n "$AR"; then
5397
 
  echo "$as_me:$LINENO: result: $AR" >&5
5398
 
echo "${ECHO_T}$AR" >&6
5399
 
else
5400
 
  echo "$as_me:$LINENO: result: no" >&5
5401
 
echo "${ECHO_T}no" >&6
5402
 
fi
5403
 
 
5404
 
fi
5405
 
if test -z "$ac_cv_prog_AR"; then
5406
 
  ac_ct_AR=$AR
5407
 
  # Extract the first word of "ar", so it can be a program name with args.
5408
 
set dummy ar; ac_word=$2
5409
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
5410
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5411
 
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5412
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
5413
 
else
5414
 
  if test -n "$ac_ct_AR"; then
5415
 
  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5416
 
else
5417
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5418
 
for as_dir in $PATH
5419
 
do
5420
 
  IFS=$as_save_IFS
5421
 
  test -z "$as_dir" && as_dir=.
5422
 
  for ac_exec_ext in '' $ac_executable_extensions; do
5423
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5424
 
    ac_cv_prog_ac_ct_AR="ar"
5425
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5426
 
    break 2
5427
 
  fi
5428
 
done
5429
 
done
5430
 
 
5431
 
  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5432
 
fi
5433
 
fi
5434
 
ac_ct_AR=$ac_cv_prog_ac_ct_AR
5435
 
if test -n "$ac_ct_AR"; then
5436
 
  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5437
 
echo "${ECHO_T}$ac_ct_AR" >&6
5438
 
else
5439
 
  echo "$as_me:$LINENO: result: no" >&5
5440
 
echo "${ECHO_T}no" >&6
5441
 
fi
5442
 
 
5443
 
  AR=$ac_ct_AR
5444
 
else
5445
 
  AR="$ac_cv_prog_AR"
5446
 
fi
5447
 
 
5448
 
if test -n "$ac_tool_prefix"; then
5449
 
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5450
 
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5451
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
5452
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5453
 
if test "${ac_cv_prog_RANLIB+set}" = set; then
5454
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
5455
 
else
5456
 
  if test -n "$RANLIB"; then
5457
 
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5458
 
else
5459
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5460
 
for as_dir in $PATH
5461
 
do
5462
 
  IFS=$as_save_IFS
5463
 
  test -z "$as_dir" && as_dir=.
5464
 
  for ac_exec_ext in '' $ac_executable_extensions; do
5465
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5466
 
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5467
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5468
 
    break 2
5469
 
  fi
5470
 
done
5471
 
done
5472
 
 
5473
 
fi
5474
 
fi
5475
 
RANLIB=$ac_cv_prog_RANLIB
5476
 
if test -n "$RANLIB"; then
5477
 
  echo "$as_me:$LINENO: result: $RANLIB" >&5
5478
 
echo "${ECHO_T}$RANLIB" >&6
5479
 
else
5480
 
  echo "$as_me:$LINENO: result: no" >&5
5481
 
echo "${ECHO_T}no" >&6
5482
 
fi
5483
 
 
5484
 
fi
5485
 
if test -z "$ac_cv_prog_RANLIB"; then
5486
 
  ac_ct_RANLIB=$RANLIB
5487
 
  # Extract the first word of "ranlib", so it can be a program name with args.
5488
 
set dummy ranlib; ac_word=$2
5489
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
5490
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5491
 
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5492
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
5493
 
else
5494
 
  if test -n "$ac_ct_RANLIB"; then
5495
 
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5496
 
else
5497
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5498
 
for as_dir in $PATH
5499
 
do
5500
 
  IFS=$as_save_IFS
5501
 
  test -z "$as_dir" && as_dir=.
5502
 
  for ac_exec_ext in '' $ac_executable_extensions; do
5503
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5504
 
    ac_cv_prog_ac_ct_RANLIB="ranlib"
5505
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5506
 
    break 2
5507
 
  fi
5508
 
done
5509
 
done
5510
 
 
5511
 
  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5512
 
fi
5513
 
fi
5514
 
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5515
 
if test -n "$ac_ct_RANLIB"; then
5516
 
  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5517
 
echo "${ECHO_T}$ac_ct_RANLIB" >&6
5518
 
else
5519
 
  echo "$as_me:$LINENO: result: no" >&5
5520
 
echo "${ECHO_T}no" >&6
5521
 
fi
5522
 
 
5523
 
  RANLIB=$ac_ct_RANLIB
5524
 
else
5525
 
  RANLIB="$ac_cv_prog_RANLIB"
5526
 
fi
5527
 
 
5528
 
if test -n "$ac_tool_prefix"; then
5529
 
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5530
 
set dummy ${ac_tool_prefix}strip; ac_word=$2
5531
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
5532
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5533
 
if test "${ac_cv_prog_STRIP+set}" = set; then
5534
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
5535
 
else
5536
 
  if test -n "$STRIP"; then
5537
 
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5538
 
else
5539
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5540
 
for as_dir in $PATH
5541
 
do
5542
 
  IFS=$as_save_IFS
5543
 
  test -z "$as_dir" && as_dir=.
5544
 
  for ac_exec_ext in '' $ac_executable_extensions; do
5545
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5546
 
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5547
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5548
 
    break 2
5549
 
  fi
5550
 
done
5551
 
done
5552
 
 
5553
 
fi
5554
 
fi
5555
 
STRIP=$ac_cv_prog_STRIP
5556
 
if test -n "$STRIP"; then
5557
 
  echo "$as_me:$LINENO: result: $STRIP" >&5
5558
 
echo "${ECHO_T}$STRIP" >&6
5559
 
else
5560
 
  echo "$as_me:$LINENO: result: no" >&5
5561
 
echo "${ECHO_T}no" >&6
5562
 
fi
5563
 
 
5564
 
fi
5565
 
if test -z "$ac_cv_prog_STRIP"; then
5566
 
  ac_ct_STRIP=$STRIP
5567
 
  # Extract the first word of "strip", so it can be a program name with args.
5568
 
set dummy strip; ac_word=$2
5569
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
5570
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5571
 
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5572
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
5573
 
else
5574
 
  if test -n "$ac_ct_STRIP"; then
5575
 
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5576
 
else
5577
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5578
 
for as_dir in $PATH
5579
 
do
5580
 
  IFS=$as_save_IFS
5581
 
  test -z "$as_dir" && as_dir=.
5582
 
  for ac_exec_ext in '' $ac_executable_extensions; do
5583
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5584
 
    ac_cv_prog_ac_ct_STRIP="strip"
5585
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5586
 
    break 2
5587
 
  fi
5588
 
done
5589
 
done
5590
 
 
5591
 
  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5592
 
fi
5593
 
fi
5594
 
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5595
 
if test -n "$ac_ct_STRIP"; then
5596
 
  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5597
 
echo "${ECHO_T}$ac_ct_STRIP" >&6
5598
 
else
5599
 
  echo "$as_me:$LINENO: result: no" >&5
5600
 
echo "${ECHO_T}no" >&6
5601
 
fi
5602
 
 
5603
 
  STRIP=$ac_ct_STRIP
5604
 
else
5605
 
  STRIP="$ac_cv_prog_STRIP"
5606
 
fi
5607
 
 
5608
 
 
5609
 
old_CC="$CC"
5610
 
old_CFLAGS="$CFLAGS"
5611
 
 
5612
 
# Set sane defaults for various variables
5613
 
test -z "$AR" && AR=ar
5614
 
test -z "$AR_FLAGS" && AR_FLAGS=cru
5615
 
test -z "$AS" && AS=as
5616
 
test -z "$CC" && CC=cc
5617
 
test -z "$LTCC" && LTCC=$CC
5618
 
test -z "$DLLTOOL" && DLLTOOL=dlltool
5619
 
test -z "$LD" && LD=ld
5620
 
test -z "$LN_S" && LN_S="ln -s"
5621
 
test -z "$MAGIC_CMD" && MAGIC_CMD=file
5622
 
test -z "$NM" && NM=nm
5623
 
test -z "$SED" && SED=sed
5624
 
test -z "$OBJDUMP" && OBJDUMP=objdump
5625
 
test -z "$RANLIB" && RANLIB=:
5626
 
test -z "$STRIP" && STRIP=:
5627
 
test -z "$ac_objext" && ac_objext=o
5628
 
 
5629
 
# Determine commands to create old-style static archives.
5630
 
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5631
 
old_postinstall_cmds='chmod 644 $oldlib'
5632
 
old_postuninstall_cmds=
5633
 
 
5634
 
if test -n "$RANLIB"; then
5635
 
  case $host_os in
5636
 
  openbsd*)
5637
 
    old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
5638
 
    ;;
5639
 
  *)
5640
 
    old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
5641
 
    ;;
5642
 
  esac
5643
 
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5644
 
fi
5645
 
 
5646
 
cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
5647
 
 
5648
 
# Only perform the check for file, if the check method requires it
5649
 
case $deplibs_check_method in
5650
 
file_magic*)
5651
 
  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5652
 
    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5653
 
echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
5654
 
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5655
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
5656
 
else
5657
 
  case $MAGIC_CMD in
5658
 
[\\/*] |  ?:[\\/]*)
5659
 
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5660
 
  ;;
5661
 
*)
5662
 
  lt_save_MAGIC_CMD="$MAGIC_CMD"
5663
 
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5664
 
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5665
 
  for ac_dir in $ac_dummy; do
5666
 
    IFS="$lt_save_ifs"
5667
 
    test -z "$ac_dir" && ac_dir=.
5668
 
    if test -f $ac_dir/${ac_tool_prefix}file; then
5669
 
      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
5670
 
      if test -n "$file_magic_test_file"; then
5671
 
        case $deplibs_check_method in
5672
 
        "file_magic "*)
5673
 
          file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5674
 
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5675
 
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5676
 
            $EGREP "$file_magic_regex" > /dev/null; then
5677
 
            :
5678
 
          else
5679
 
            cat <<EOF 1>&2
5680
 
 
5681
 
*** Warning: the command libtool uses to detect shared libraries,
5682
 
*** $file_magic_cmd, produces output that libtool cannot recognize.
5683
 
*** The result is that libtool may fail to recognize shared libraries
5684
 
*** as such.  This will affect the creation of libtool libraries that
5685
 
*** depend on shared libraries, but programs linked with such libtool
5686
 
*** libraries will work regardless of this problem.  Nevertheless, you
5687
 
*** may want to report the problem to your system manager and/or to
5688
 
*** bug-libtool@gnu.org
5689
 
 
5690
 
EOF
5691
 
          fi ;;
5692
 
        esac
5693
 
      fi
5694
 
      break
5695
 
    fi
5696
 
  done
5697
 
  IFS="$lt_save_ifs"
5698
 
  MAGIC_CMD="$lt_save_MAGIC_CMD"
5699
 
  ;;
5700
 
esac
5701
 
fi
5702
 
 
5703
 
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5704
 
if test -n "$MAGIC_CMD"; then
5705
 
  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5706
 
echo "${ECHO_T}$MAGIC_CMD" >&6
5707
 
else
5708
 
  echo "$as_me:$LINENO: result: no" >&5
5709
 
echo "${ECHO_T}no" >&6
5710
 
fi
5711
 
 
5712
 
if test -z "$lt_cv_path_MAGIC_CMD"; then
5713
 
  if test -n "$ac_tool_prefix"; then
5714
 
    echo "$as_me:$LINENO: checking for file" >&5
5715
 
echo $ECHO_N "checking for file... $ECHO_C" >&6
5716
 
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5717
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
5718
 
else
5719
 
  case $MAGIC_CMD in
5720
 
[\\/*] |  ?:[\\/]*)
5721
 
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5722
 
  ;;
5723
 
*)
5724
 
  lt_save_MAGIC_CMD="$MAGIC_CMD"
5725
 
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5726
 
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5727
 
  for ac_dir in $ac_dummy; do
5728
 
    IFS="$lt_save_ifs"
5729
 
    test -z "$ac_dir" && ac_dir=.
5730
 
    if test -f $ac_dir/file; then
5731
 
      lt_cv_path_MAGIC_CMD="$ac_dir/file"
5732
 
      if test -n "$file_magic_test_file"; then
5733
 
        case $deplibs_check_method in
5734
 
        "file_magic "*)
5735
 
          file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5736
 
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5737
 
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5738
 
            $EGREP "$file_magic_regex" > /dev/null; then
5739
 
            :
5740
 
          else
5741
 
            cat <<EOF 1>&2
5742
 
 
5743
 
*** Warning: the command libtool uses to detect shared libraries,
5744
 
*** $file_magic_cmd, produces output that libtool cannot recognize.
5745
 
*** The result is that libtool may fail to recognize shared libraries
5746
 
*** as such.  This will affect the creation of libtool libraries that
5747
 
*** depend on shared libraries, but programs linked with such libtool
5748
 
*** libraries will work regardless of this problem.  Nevertheless, you
5749
 
*** may want to report the problem to your system manager and/or to
5750
 
*** bug-libtool@gnu.org
5751
 
 
5752
 
EOF
5753
 
          fi ;;
5754
 
        esac
5755
 
      fi
5756
 
      break
5757
 
    fi
5758
 
  done
5759
 
  IFS="$lt_save_ifs"
5760
 
  MAGIC_CMD="$lt_save_MAGIC_CMD"
5761
 
  ;;
5762
 
esac
5763
 
fi
5764
 
 
5765
 
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5766
 
if test -n "$MAGIC_CMD"; then
5767
 
  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5768
 
echo "${ECHO_T}$MAGIC_CMD" >&6
5769
 
else
5770
 
  echo "$as_me:$LINENO: result: no" >&5
5771
 
echo "${ECHO_T}no" >&6
5772
 
fi
5773
 
 
5774
 
  else
5775
 
    MAGIC_CMD=:
5776
 
  fi
5777
 
fi
5778
 
 
5779
 
  fi
5780
 
  ;;
5781
 
esac
5782
 
 
5783
 
enable_dlopen=no
5784
 
enable_win32_dll=no
5785
 
 
5786
 
# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5787
 
if test "${enable_libtool_lock+set}" = set; then
5788
 
  enableval="$enable_libtool_lock"
5789
 
 
5790
 
fi;
5791
 
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5792
 
 
5793
 
 
5794
 
# Check whether --with-pic or --without-pic was given.
5795
 
if test "${with_pic+set}" = set; then
5796
 
  withval="$with_pic"
5797
 
  pic_mode="$withval"
5798
 
else
5799
 
  pic_mode=default
5800
 
fi;
5801
 
test -z "$pic_mode" && pic_mode=default
5802
 
 
5803
 
# Use C for the default configuration in the libtool script
5804
 
tagname=
5805
 
lt_save_CC="$CC"
5806
 
ac_ext=c
5807
 
ac_cpp='$CPP $CPPFLAGS'
5808
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5809
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5810
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5811
 
 
5812
 
 
5813
 
# Source file extension for C test sources.
5814
 
ac_ext=c
5815
 
 
5816
 
# Object file extension for compiled C test sources.
5817
 
objext=o
5818
 
objext=$objext
5819
 
 
5820
 
# Code to be used in simple compile tests
5821
 
lt_simple_compile_test_code="int some_variable = 0;\n"
5822
 
 
5823
 
# Code to be used in simple link tests
5824
 
lt_simple_link_test_code='int main(){return(0);}\n'
5825
 
 
5826
 
 
5827
 
# If no C compiler was specified, use CC.
5828
 
LTCC=${LTCC-"$CC"}
5829
 
 
5830
 
# Allow CC to be a program name with arguments.
5831
 
compiler=$CC
5832
 
 
5833
 
 
5834
 
#
5835
 
# Check for any special shared library compilation flags.
5836
 
#
5837
 
lt_prog_cc_shlib=
5838
 
if test "$GCC" = no; then
5839
 
  case $host_os in
5840
 
  sco3.2v5*)
5841
 
    lt_prog_cc_shlib='-belf'
5842
 
    ;;
5843
 
  esac
5844
 
fi
5845
 
if test -n "$lt_prog_cc_shlib"; then
5846
 
  { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
5847
 
echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
5848
 
  if echo "$old_CC $old_CFLAGS " | grep "[      ]$lt_prog_cc_shlib[     ]" >/dev/null; then :
5849
 
  else
5850
 
    { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
5851
 
echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
5852
 
    lt_cv_prog_cc_can_build_shared=no
5853
 
  fi
5854
 
fi
5855
 
 
5856
 
 
5857
 
#
5858
 
# Check to make sure the static flag actually works.
5859
 
#
5860
 
echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
5861
 
echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
5862
 
if test "${lt_prog_compiler_static_works+set}" = set; then
5863
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
5864
 
else
5865
 
  lt_prog_compiler_static_works=no
5866
 
   save_LDFLAGS="$LDFLAGS"
5867
 
   LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
5868
 
   printf "$lt_simple_link_test_code" > conftest.$ac_ext
5869
 
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
5870
 
     # The compiler can only warn and ignore the option if not recognized
5871
 
     # So say no if there are warnings
5872
 
     if test -s conftest.err; then
5873
 
       # Append any errors to the config.log.
5874
 
       cat conftest.err 1>&5
5875
 
     else
5876
 
       lt_prog_compiler_static_works=yes
5877
 
     fi
5878
 
   fi
5879
 
   $rm conftest*
5880
 
   LDFLAGS="$save_LDFLAGS"
5881
 
 
5882
 
fi
5883
 
echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
5884
 
echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
5885
 
 
5886
 
if test x"$lt_prog_compiler_static_works" = xyes; then
5887
 
    :
5888
 
else
5889
 
    lt_prog_compiler_static=
5890
 
fi
5891
 
 
5892
 
 
5893
 
 
5894
 
## CAVEAT EMPTOR:
5895
 
## There is no encapsulation within the following macros, do not change
5896
 
## the running order or otherwise move them around unless you know exactly
5897
 
## what you are doing...
5898
 
 
5899
 
lt_prog_compiler_no_builtin_flag=
5900
 
 
5901
 
if test "$GCC" = yes; then
5902
 
  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
5903
 
 
5904
 
 
5905
 
echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
5906
 
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
5907
 
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
5908
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
5909
 
else
5910
 
  lt_cv_prog_compiler_rtti_exceptions=no
5911
 
  ac_outfile=conftest.$ac_objext
5912
 
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
5913
 
   lt_compiler_flag="-fno-rtti -fno-exceptions"
5914
 
   # Insert the option either (1) after the last *FLAGS variable, or
5915
 
   # (2) before a word containing "conftest.", or (3) at the end.
5916
 
   # Note that $ac_compile itself does not contain backslashes and begins
5917
 
   # with a dollar sign (not a hyphen), so the echo should work correctly.
5918
 
   # The option is referenced via a variable to avoid confusing sed.
5919
 
   lt_compile=`echo "$ac_compile" | $SED \
5920
 
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
5921
 
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
5922
 
   -e 's:$: $lt_compiler_flag:'`
5923
 
   (eval echo "\"\$as_me:5923: $lt_compile\"" >&5)
5924
 
   (eval "$lt_compile" 2>conftest.err)
5925
 
   ac_status=$?
5926
 
   cat conftest.err >&5
5927
 
   echo "$as_me:5927: \$? = $ac_status" >&5
5928
 
   if (exit $ac_status) && test -s "$ac_outfile"; then
5929
 
     # The compiler can only warn and ignore the option if not recognized
5930
 
     # So say no if there are warnings
5931
 
     if test ! -s conftest.err; then
5932
 
       lt_cv_prog_compiler_rtti_exceptions=yes
5933
 
     fi
5934
 
   fi
5935
 
   $rm conftest*
5936
 
 
5937
 
fi
5938
 
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
5939
 
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
5940
 
 
5941
 
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
5942
 
    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
5943
 
else
5944
 
    :
5945
 
fi
5946
 
 
5947
 
fi
5948
 
 
5949
 
lt_prog_compiler_wl=
5950
 
lt_prog_compiler_pic=
5951
 
lt_prog_compiler_static=
5952
 
 
5953
 
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
5954
 
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
5955
 
 
5956
 
  if test "$GCC" = yes; then
5957
 
    lt_prog_compiler_wl='-Wl,'
5958
 
    lt_prog_compiler_static='-static'
5959
 
 
5960
 
    case $host_os in
5961
 
      aix*)
5962
 
      # All AIX code is PIC.
5963
 
      if test "$host_cpu" = ia64; then
5964
 
        # AIX 5 now supports IA64 processor
5965
 
        lt_prog_compiler_static='-Bstatic'
5966
 
      fi
5967
 
      ;;
5968
 
 
5969
 
    amigaos*)
5970
 
      # FIXME: we need at least 68020 code to build shared libraries, but
5971
 
      # adding the `-m68020' flag to GCC prevents building anything better,
5972
 
      # like `-m68040'.
5973
 
      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
5974
 
      ;;
5975
 
 
5976
 
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
5977
 
      # PIC is the default for these OSes.
5978
 
      ;;
5979
 
 
5980
 
    mingw* | pw32* | os2*)
5981
 
      # This hack is so that the source file can tell whether it is being
5982
 
      # built for inclusion in a dll (and should export symbols for example).
5983
 
      lt_prog_compiler_pic='-DDLL_EXPORT'
5984
 
      ;;
5985
 
 
5986
 
    darwin* | rhapsody*)
5987
 
      # PIC is the default on this platform
5988
 
      # Common symbols not allowed in MH_DYLIB files
5989
 
      lt_prog_compiler_pic='-fno-common'
5990
 
      ;;
5991
 
 
5992
 
    msdosdjgpp*)
5993
 
      # Just because we use GCC doesn't mean we suddenly get shared libraries
5994
 
      # on systems that don't support them.
5995
 
      lt_prog_compiler_can_build_shared=no
5996
 
      enable_shared=no
5997
 
      ;;
5998
 
 
5999
 
    sysv4*MP*)
6000
 
      if test -d /usr/nec; then
6001
 
        lt_prog_compiler_pic=-Kconform_pic
6002
 
      fi
6003
 
      ;;
6004
 
 
6005
 
    hpux*)
6006
 
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6007
 
      # not for PA HP-UX.
6008
 
      case "$host_cpu" in
6009
 
      hppa*64*|ia64*)
6010
 
        # +Z the default
6011
 
        ;;
6012
 
      *)
6013
 
        lt_prog_compiler_pic='-fPIC'
6014
 
        ;;
6015
 
      esac
6016
 
      ;;
6017
 
 
6018
 
    *)
6019
 
      lt_prog_compiler_pic='-fPIC'
6020
 
      ;;
6021
 
    esac
6022
 
  else
6023
 
    # PORTME Check for flag to pass linker flags through the system compiler.
6024
 
    case $host_os in
6025
 
    aix*)
6026
 
      lt_prog_compiler_wl='-Wl,'
6027
 
      if test "$host_cpu" = ia64; then
6028
 
        # AIX 5 now supports IA64 processor
6029
 
        lt_prog_compiler_static='-Bstatic'
6030
 
      else
6031
 
        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6032
 
      fi
6033
 
      ;;
6034
 
      darwin*)
6035
 
        # PIC is the default on this platform
6036
 
        # Common symbols not allowed in MH_DYLIB files
6037
 
       case "$cc_basename" in
6038
 
         xlc*)
6039
 
         lt_prog_compiler_pic='-qnocommon'
6040
 
         lt_prog_compiler_wl='-Wl,'
6041
 
         ;;
6042
 
       esac
6043
 
       ;;
6044
 
 
6045
 
    mingw* | pw32* | os2*)
6046
 
      # This hack is so that the source file can tell whether it is being
6047
 
      # built for inclusion in a dll (and should export symbols for example).
6048
 
      lt_prog_compiler_pic='-DDLL_EXPORT'
6049
 
      ;;
6050
 
 
6051
 
    hpux9* | hpux10* | hpux11*)
6052
 
      lt_prog_compiler_wl='-Wl,'
6053
 
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6054
 
      # not for PA HP-UX.
6055
 
      case "$host_cpu" in
6056
 
      hppa*64*|ia64*)
6057
 
        # +Z the default
6058
 
        ;;
6059
 
      *)
6060
 
        lt_prog_compiler_pic='+Z'
6061
 
        ;;
6062
 
      esac
6063
 
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
6064
 
      lt_prog_compiler_static='${wl}-a ${wl}archive'
6065
 
      ;;
6066
 
 
6067
 
    irix5* | irix6* | nonstopux*)
6068
 
      lt_prog_compiler_wl='-Wl,'
6069
 
      # PIC (with -KPIC) is the default.
6070
 
      lt_prog_compiler_static='-non_shared'
6071
 
      ;;
6072
 
 
6073
 
    newsos6)
6074
 
      lt_prog_compiler_pic='-KPIC'
6075
 
      lt_prog_compiler_static='-Bstatic'
6076
 
      ;;
6077
 
 
6078
 
    linux*)
6079
 
      case $cc_basename in
6080
 
      icc* | ecc*)
6081
 
        lt_prog_compiler_wl='-Wl,'
6082
 
        lt_prog_compiler_pic='-KPIC'
6083
 
        lt_prog_compiler_static='-static'
6084
 
        ;;
6085
 
      pgcc | pgf77 | pgf90)
6086
 
        # Portland Group compilers (*not* the Pentium gcc compiler,
6087
 
        # which looks to be a dead project)
6088
 
        lt_prog_compiler_wl='-Wl,'
6089
 
        lt_prog_compiler_pic='-fpic'
6090
 
        lt_prog_compiler_static='-static'
6091
 
        ;;
6092
 
      ccc*)
6093
 
        lt_prog_compiler_wl='-Wl,'
6094
 
        # All Alpha code is PIC.
6095
 
        lt_prog_compiler_static='-non_shared'
6096
 
        ;;
6097
 
      esac
6098
 
      ;;
6099
 
 
6100
 
    osf3* | osf4* | osf5*)
6101
 
      lt_prog_compiler_wl='-Wl,'
6102
 
      # All OSF/1 code is PIC.
6103
 
      lt_prog_compiler_static='-non_shared'
6104
 
      ;;
6105
 
 
6106
 
    sco3.2v5*)
6107
 
      lt_prog_compiler_pic='-Kpic'
6108
 
      lt_prog_compiler_static='-dn'
6109
 
      ;;
6110
 
 
6111
 
    solaris*)
6112
 
      lt_prog_compiler_wl='-Wl,'
6113
 
      lt_prog_compiler_pic='-KPIC'
6114
 
      lt_prog_compiler_static='-Bstatic'
6115
 
      ;;
6116
 
 
6117
 
    sunos4*)
6118
 
      lt_prog_compiler_wl='-Qoption ld '
6119
 
      lt_prog_compiler_pic='-PIC'
6120
 
      lt_prog_compiler_static='-Bstatic'
6121
 
      ;;
6122
 
 
6123
 
    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6124
 
      lt_prog_compiler_wl='-Wl,'
6125
 
      lt_prog_compiler_pic='-KPIC'
6126
 
      lt_prog_compiler_static='-Bstatic'
6127
 
      ;;
6128
 
 
6129
 
    sysv4*MP*)
6130
 
      if test -d /usr/nec ;then
6131
 
        lt_prog_compiler_pic='-Kconform_pic'
6132
 
        lt_prog_compiler_static='-Bstatic'
6133
 
      fi
6134
 
      ;;
6135
 
 
6136
 
    unicos*)
6137
 
      lt_prog_compiler_wl='-Wl,'
6138
 
      lt_prog_compiler_can_build_shared=no
6139
 
      ;;
6140
 
 
6141
 
    uts4*)
6142
 
      lt_prog_compiler_pic='-pic'
6143
 
      lt_prog_compiler_static='-Bstatic'
6144
 
      ;;
6145
 
 
6146
 
    *)
6147
 
      lt_prog_compiler_can_build_shared=no
6148
 
      ;;
6149
 
    esac
6150
 
  fi
6151
 
 
6152
 
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6153
 
echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6154
 
 
6155
 
#
6156
 
# Check to make sure the PIC flag actually works.
6157
 
#
6158
 
if test -n "$lt_prog_compiler_pic"; then
6159
 
 
6160
 
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6161
 
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6162
 
if test "${lt_prog_compiler_pic_works+set}" = set; then
6163
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6164
 
else
6165
 
  lt_prog_compiler_pic_works=no
6166
 
  ac_outfile=conftest.$ac_objext
6167
 
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6168
 
   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6169
 
   # Insert the option either (1) after the last *FLAGS variable, or
6170
 
   # (2) before a word containing "conftest.", or (3) at the end.
6171
 
   # Note that $ac_compile itself does not contain backslashes and begins
6172
 
   # with a dollar sign (not a hyphen), so the echo should work correctly.
6173
 
   # The option is referenced via a variable to avoid confusing sed.
6174
 
   lt_compile=`echo "$ac_compile" | $SED \
6175
 
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6176
 
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6177
 
   -e 's:$: $lt_compiler_flag:'`
6178
 
   (eval echo "\"\$as_me:6178: $lt_compile\"" >&5)
6179
 
   (eval "$lt_compile" 2>conftest.err)
6180
 
   ac_status=$?
6181
 
   cat conftest.err >&5
6182
 
   echo "$as_me:6182: \$? = $ac_status" >&5
6183
 
   if (exit $ac_status) && test -s "$ac_outfile"; then
6184
 
     # The compiler can only warn and ignore the option if not recognized
6185
 
     # So say no if there are warnings
6186
 
     if test ! -s conftest.err; then
6187
 
       lt_prog_compiler_pic_works=yes
6188
 
     fi
6189
 
   fi
6190
 
   $rm conftest*
6191
 
 
6192
 
fi
6193
 
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6194
 
echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6195
 
 
6196
 
if test x"$lt_prog_compiler_pic_works" = xyes; then
6197
 
    case $lt_prog_compiler_pic in
6198
 
     "" | " "*) ;;
6199
 
     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6200
 
     esac
6201
 
else
6202
 
    lt_prog_compiler_pic=
6203
 
     lt_prog_compiler_can_build_shared=no
6204
 
fi
6205
 
 
6206
 
fi
6207
 
case "$host_os" in
6208
 
  # For platforms which do not support PIC, -DPIC is meaningless:
6209
 
  *djgpp*)
6210
 
    lt_prog_compiler_pic=
6211
 
    ;;
6212
 
  *)
6213
 
    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6214
 
    ;;
6215
 
esac
6216
 
 
6217
 
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6218
 
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6219
 
if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6220
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6221
 
else
6222
 
  lt_cv_prog_compiler_c_o=no
6223
 
   $rm -r conftest 2>/dev/null
6224
 
   mkdir conftest
6225
 
   cd conftest
6226
 
   mkdir out
6227
 
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6228
 
 
6229
 
   lt_compiler_flag="-o out/conftest2.$ac_objext"
6230
 
   # Insert the option either (1) after the last *FLAGS variable, or
6231
 
   # (2) before a word containing "conftest.", or (3) at the end.
6232
 
   # Note that $ac_compile itself does not contain backslashes and begins
6233
 
   # with a dollar sign (not a hyphen), so the echo should work correctly.
6234
 
   lt_compile=`echo "$ac_compile" | $SED \
6235
 
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6236
 
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6237
 
   -e 's:$: $lt_compiler_flag:'`
6238
 
   (eval echo "\"\$as_me:6238: $lt_compile\"" >&5)
6239
 
   (eval "$lt_compile" 2>out/conftest.err)
6240
 
   ac_status=$?
6241
 
   cat out/conftest.err >&5
6242
 
   echo "$as_me:6242: \$? = $ac_status" >&5
6243
 
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
6244
 
   then
6245
 
     # The compiler can only warn and ignore the option if not recognized
6246
 
     # So say no if there are warnings
6247
 
     if test ! -s out/conftest.err; then
6248
 
       lt_cv_prog_compiler_c_o=yes
6249
 
     fi
6250
 
   fi
6251
 
   chmod u+w .
6252
 
   $rm conftest*
6253
 
   # SGI C++ compiler will create directory out/ii_files/ for
6254
 
   # template instantiation
6255
 
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
6256
 
   $rm out/* && rmdir out
6257
 
   cd ..
6258
 
   rmdir conftest
6259
 
   $rm conftest*
6260
 
 
6261
 
fi
6262
 
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6263
 
echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6264
 
 
6265
 
 
6266
 
hard_links="nottested"
6267
 
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6268
 
  # do not overwrite the value of need_locks provided by the user
6269
 
  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6270
 
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6271
 
  hard_links=yes
6272
 
  $rm conftest*
6273
 
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
6274
 
  touch conftest.a
6275
 
  ln conftest.a conftest.b 2>&5 || hard_links=no
6276
 
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
6277
 
  echo "$as_me:$LINENO: result: $hard_links" >&5
6278
 
echo "${ECHO_T}$hard_links" >&6
6279
 
  if test "$hard_links" = no; then
6280
 
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6281
 
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6282
 
    need_locks=warn
6283
 
  fi
6284
 
else
6285
 
  need_locks=no
6286
 
fi
6287
 
 
6288
 
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6289
 
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6290
 
 
6291
 
  runpath_var=
6292
 
  allow_undefined_flag=
6293
 
  enable_shared_with_static_runtimes=no
6294
 
  archive_cmds=
6295
 
  archive_expsym_cmds=
6296
 
  old_archive_From_new_cmds=
6297
 
  old_archive_from_expsyms_cmds=
6298
 
  export_dynamic_flag_spec=
6299
 
  whole_archive_flag_spec=
6300
 
  thread_safe_flag_spec=
6301
 
  hardcode_libdir_flag_spec=
6302
 
  hardcode_libdir_flag_spec_ld=
6303
 
  hardcode_libdir_separator=
6304
 
  hardcode_direct=no
6305
 
  hardcode_minus_L=no
6306
 
  hardcode_shlibpath_var=unsupported
6307
 
  link_all_deplibs=unknown
6308
 
  hardcode_automatic=no
6309
 
  module_cmds=
6310
 
  module_expsym_cmds=
6311
 
  always_export_symbols=no
6312
 
  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6313
 
  # include_expsyms should be a list of space-separated symbols to be *always*
6314
 
  # included in the symbol list
6315
 
  include_expsyms=
6316
 
  # exclude_expsyms can be an extended regexp of symbols to exclude
6317
 
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
6318
 
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6319
 
  # as well as any symbol that contains `d'.
6320
 
  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6321
 
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6322
 
  # platforms (ab)use it in PIC code, but their linkers get confused if
6323
 
  # the symbol is explicitly referenced.  Since portable code cannot
6324
 
  # rely on this symbol name, it's probably fine to never include it in
6325
 
  # preloaded symbol tables.
6326
 
  extract_expsyms_cmds=
6327
 
 
6328
 
  case $host_os in
6329
 
  cygwin* | mingw* | pw32*)
6330
 
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
6331
 
    # When not using gcc, we currently assume that we are using
6332
 
    # Microsoft Visual C++.
6333
 
    if test "$GCC" != yes; then
6334
 
      with_gnu_ld=no
6335
 
    fi
6336
 
    ;;
6337
 
  openbsd*)
6338
 
    with_gnu_ld=no
6339
 
    ;;
6340
 
  esac
6341
 
 
6342
 
  ld_shlibs=yes
6343
 
  if test "$with_gnu_ld" = yes; then
6344
 
    # If archive_cmds runs LD, not CC, wlarc should be empty
6345
 
    wlarc='${wl}'
6346
 
 
6347
 
    # See if GNU ld supports shared libraries.
6348
 
    case $host_os in
6349
 
    aix3* | aix4* | aix5*)
6350
 
      # On AIX/PPC, the GNU linker is very broken
6351
 
      if test "$host_cpu" != ia64; then
6352
 
        ld_shlibs=no
6353
 
        cat <<EOF 1>&2
6354
 
 
6355
 
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
6356
 
*** to be unable to reliably create shared libraries on AIX.
6357
 
*** Therefore, libtool is disabling shared libraries support.  If you
6358
 
*** really care for shared libraries, you may want to modify your PATH
6359
 
*** so that a non-GNU linker is found, and then restart.
6360
 
 
6361
 
EOF
6362
 
      fi
6363
 
      ;;
6364
 
 
6365
 
    amigaos*)
6366
 
      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)'
6367
 
      hardcode_libdir_flag_spec='-L$libdir'
6368
 
      hardcode_minus_L=yes
6369
 
 
6370
 
      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6371
 
      # that the semantics of dynamic libraries on AmigaOS, at least up
6372
 
      # to version 4, is to share data among multiple programs linked
6373
 
      # with the same dynamic library.  Since this doesn't match the
6374
 
      # behavior of shared libraries on other platforms, we can't use
6375
 
      # them.
6376
 
      ld_shlibs=no
6377
 
      ;;
6378
 
 
6379
 
    beos*)
6380
 
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6381
 
        allow_undefined_flag=unsupported
6382
 
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6383
 
        # support --undefined.  This deserves some investigation.  FIXME
6384
 
        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6385
 
      else
6386
 
        ld_shlibs=no
6387
 
      fi
6388
 
      ;;
6389
 
 
6390
 
    cygwin* | mingw* | pw32*)
6391
 
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6392
 
      # as there is no search path for DLLs.
6393
 
      hardcode_libdir_flag_spec='-L$libdir'
6394
 
      allow_undefined_flag=unsupported
6395
 
      always_export_symbols=no
6396
 
      enable_shared_with_static_runtimes=yes
6397
 
      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6398
 
 
6399
 
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6400
 
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6401
 
        # If the export-symbols file already is a .def file (1st line
6402
 
        # is EXPORTS), use it as is; otherwise, prepend...
6403
 
        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6404
 
          cp $export_symbols $output_objdir/$soname.def;
6405
 
        else
6406
 
          echo EXPORTS > $output_objdir/$soname.def;
6407
 
          cat $export_symbols >> $output_objdir/$soname.def;
6408
 
        fi~
6409
 
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
6410
 
      else
6411
 
        ld_shlibs=no
6412
 
      fi
6413
 
      ;;
6414
 
 
6415
 
    netbsd*)
6416
 
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6417
 
        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6418
 
        wlarc=
6419
 
      else
6420
 
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6421
 
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6422
 
      fi
6423
 
      ;;
6424
 
 
6425
 
    solaris* | sysv5*)
6426
 
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6427
 
        ld_shlibs=no
6428
 
        cat <<EOF 1>&2
6429
 
 
6430
 
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
6431
 
*** create shared libraries on Solaris systems.  Therefore, libtool
6432
 
*** is disabling shared libraries support.  We urge you to upgrade GNU
6433
 
*** binutils to release 2.9.1 or newer.  Another option is to modify
6434
 
*** your PATH or compiler configuration so that the native linker is
6435
 
*** used, and then restart.
6436
 
 
6437
 
EOF
6438
 
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6439
 
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6440
 
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6441
 
      else
6442
 
        ld_shlibs=no
6443
 
      fi
6444
 
      ;;
6445
 
 
6446
 
    sunos4*)
6447
 
      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6448
 
      wlarc=
6449
 
      hardcode_direct=yes
6450
 
      hardcode_shlibpath_var=no
6451
 
      ;;
6452
 
 
6453
 
  linux*)
6454
 
    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6455
 
      tmp_addflag=
6456
 
      case $CC,$host_cpu in
6457
 
      pgf77* | pgf90* )                 # Portland Group f77 and f90 compilers
6458
 
        tmp_addflag=' -fpic' ;;
6459
 
      ecc*,ia64* | icc*,ia64*)          # Intel C compiler on ia64
6460
 
        tmp_addflag=' -i_dynamic' ;;
6461
 
      efc*,ia64* | ifort*,ia64*)        # Intel Fortran compiler on ia64
6462
 
        tmp_addflag=' -i_dynamic -nofor_main' ;;
6463
 
      ifc* | ifort*)                    # Intel Fortran compiler
6464
 
        tmp_addflag=' -nofor_main' ;;
6465
 
      esac
6466
 
      archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6467
 
      supports_anon_versioning=no
6468
 
      case `$LD -v 2>/dev/null` in
6469
 
        *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
6470
 
        *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6471
 
        *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6472
 
        *\ 2.11.*) ;; # other 2.11 versions
6473
 
        *) supports_anon_versioning=yes ;;
6474
 
      esac
6475
 
      if test $supports_anon_versioning = yes; then
6476
 
        archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
6477
 
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6478
 
$echo "local: *; };" >> $output_objdir/$libname.ver~
6479
 
        $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6480
 
      else
6481
 
        archive_expsym_cmds=$archive_cmds
6482
 
      fi
6483
 
    else
6484
 
      ld_shlibs=no
6485
 
    fi
6486
 
    ;;
6487
 
 
6488
 
    *)
6489
 
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6490
 
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6491
 
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6492
 
      else
6493
 
        ld_shlibs=no
6494
 
      fi
6495
 
      ;;
6496
 
    esac
6497
 
 
6498
 
    if test "$ld_shlibs" = yes; then
6499
 
      runpath_var=LD_RUN_PATH
6500
 
      hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6501
 
      export_dynamic_flag_spec='${wl}--export-dynamic'
6502
 
      # ancient GNU ld didn't support --whole-archive et. al.
6503
 
      if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6504
 
        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6505
 
      else
6506
 
        whole_archive_flag_spec=
6507
 
      fi
6508
 
    fi
6509
 
  else
6510
 
    # PORTME fill in a description of your system's linker (not GNU ld)
6511
 
    case $host_os in
6512
 
    aix3*)
6513
 
      allow_undefined_flag=unsupported
6514
 
      always_export_symbols=yes
6515
 
      archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
6516
 
      # Note: this linker hardcodes the directories in LIBPATH if there
6517
 
      # are no directories specified by -L.
6518
 
      hardcode_minus_L=yes
6519
 
      if test "$GCC" = yes && test -z "$link_static_flag"; then
6520
 
        # Neither direct hardcoding nor static linking is supported with a
6521
 
        # broken collect2.
6522
 
        hardcode_direct=unsupported
6523
 
      fi
6524
 
      ;;
6525
 
 
6526
 
    aix4* | aix5*)
6527
 
      if test "$host_cpu" = ia64; then
6528
 
        # On IA64, the linker does run time linking by default, so we don't
6529
 
        # have to do anything special.
6530
 
        aix_use_runtimelinking=no
6531
 
        exp_sym_flag='-Bexport'
6532
 
        no_entry_flag=""
6533
 
      else
6534
 
        # If we're using GNU nm, then we don't want the "-C" option.
6535
 
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
6536
 
        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6537
 
          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'
6538
 
        else
6539
 
          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'
6540
 
        fi
6541
 
        aix_use_runtimelinking=no
6542
 
 
6543
 
        # Test if we are trying to use run time linking or normal
6544
 
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6545
 
        # need to do runtime linking.
6546
 
        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6547
 
          for ld_flag in $LDFLAGS; do
6548
 
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6549
 
            aix_use_runtimelinking=yes
6550
 
            break
6551
 
          fi
6552
 
          done
6553
 
        esac
6554
 
 
6555
 
        exp_sym_flag='-bexport'
6556
 
        no_entry_flag='-bnoentry'
6557
 
      fi
6558
 
 
6559
 
      # When large executables or shared objects are built, AIX ld can
6560
 
      # have problems creating the table of contents.  If linking a library
6561
 
      # or program results in "error TOC overflow" add -mminimal-toc to
6562
 
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
6563
 
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6564
 
 
6565
 
      archive_cmds=''
6566
 
      hardcode_direct=yes
6567
 
      hardcode_libdir_separator=':'
6568
 
      link_all_deplibs=yes
6569
 
 
6570
 
      if test "$GCC" = yes; then
6571
 
        case $host_os in aix4.[012]|aix4.[012].*)
6572
 
        # We only want to do this on AIX 4.2 and lower, the check
6573
 
        # below for broken collect2 doesn't work under 4.3+
6574
 
          collect2name=`${CC} -print-prog-name=collect2`
6575
 
          if test -f "$collect2name" && \
6576
 
           strings "$collect2name" | grep resolve_lib_name >/dev/null
6577
 
          then
6578
 
          # We have reworked collect2
6579
 
          hardcode_direct=yes
6580
 
          else
6581
 
          # We have old collect2
6582
 
          hardcode_direct=unsupported
6583
 
          # It fails to find uninstalled libraries when the uninstalled
6584
 
          # path is not listed in the libpath.  Setting hardcode_minus_L
6585
 
          # to unsupported forces relinking
6586
 
          hardcode_minus_L=yes
6587
 
          hardcode_libdir_flag_spec='-L$libdir'
6588
 
          hardcode_libdir_separator=
6589
 
          fi
6590
 
        esac
6591
 
        shared_flag='-shared'
6592
 
        if test "$aix_use_runtimelinking" = yes; then
6593
 
          shared_flag="$shared_flag "'${wl}-G'
6594
 
        fi
6595
 
      else
6596
 
        # not using gcc
6597
 
        if test "$host_cpu" = ia64; then
6598
 
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6599
 
        # chokes on -Wl,-G. The following line is correct:
6600
 
          shared_flag='-G'
6601
 
        else
6602
 
        if test "$aix_use_runtimelinking" = yes; then
6603
 
            shared_flag='${wl}-G'
6604
 
          else
6605
 
            shared_flag='${wl}-bM:SRE'
6606
 
        fi
6607
 
        fi
6608
 
      fi
6609
 
 
6610
 
      # It seems that -bexpall does not export symbols beginning with
6611
 
      # underscore (_), so it is better to generate a list of symbols to export.
6612
 
      always_export_symbols=yes
6613
 
      if test "$aix_use_runtimelinking" = yes; then
6614
 
        # Warning - without using the other runtime loading flags (-brtl),
6615
 
        # -berok will link without error, but may produce a broken library.
6616
 
        allow_undefined_flag='-berok'
6617
 
       # Determine the default libpath from the value encoded in an empty executable.
6618
 
       cat >conftest.$ac_ext <<_ACEOF
6619
 
/* confdefs.h.  */
6620
 
_ACEOF
6621
 
cat confdefs.h >>conftest.$ac_ext
6622
 
cat >>conftest.$ac_ext <<_ACEOF
6623
 
/* end confdefs.h.  */
6624
 
 
6625
 
int
6626
 
main ()
6627
 
{
6628
 
 
6629
 
  ;
6630
 
  return 0;
6631
 
}
6632
 
_ACEOF
6633
 
rm -f conftest.$ac_objext conftest$ac_exeext
6634
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6635
 
  (eval $ac_link) 2>conftest.er1
6636
 
  ac_status=$?
6637
 
  grep -v '^ *+' conftest.er1 >conftest.err
6638
 
  rm -f conftest.er1
6639
 
  cat conftest.err >&5
6640
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6641
 
  (exit $ac_status); } &&
6642
 
         { ac_try='test -z "$ac_c_werror_flag"
6643
 
                         || test ! -s conftest.err'
6644
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6645
 
  (eval $ac_try) 2>&5
6646
 
  ac_status=$?
6647
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6648
 
  (exit $ac_status); }; } &&
6649
 
         { ac_try='test -s conftest$ac_exeext'
6650
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6651
 
  (eval $ac_try) 2>&5
6652
 
  ac_status=$?
6653
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6654
 
  (exit $ac_status); }; }; then
6655
 
 
6656
 
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
6657
 
}'`
6658
 
# Check for a 64-bit object if we didn't find anything.
6659
 
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; }
6660
 
}'`; fi
6661
 
else
6662
 
  echo "$as_me: failed program was:" >&5
6663
 
sed 's/^/| /' conftest.$ac_ext >&5
6664
 
 
6665
 
fi
6666
 
rm -f conftest.err conftest.$ac_objext \
6667
 
      conftest$ac_exeext conftest.$ac_ext
6668
 
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6669
 
 
6670
 
       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6671
 
        archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
6672
 
       else
6673
 
        if test "$host_cpu" = ia64; then
6674
 
          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
6675
 
          allow_undefined_flag="-z nodefs"
6676
 
          archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
6677
 
        else
6678
 
         # Determine the default libpath from the value encoded in an empty executable.
6679
 
         cat >conftest.$ac_ext <<_ACEOF
6680
 
/* confdefs.h.  */
6681
 
_ACEOF
6682
 
cat confdefs.h >>conftest.$ac_ext
6683
 
cat >>conftest.$ac_ext <<_ACEOF
6684
 
/* end confdefs.h.  */
6685
 
 
6686
 
int
6687
 
main ()
6688
 
{
6689
 
 
6690
 
  ;
6691
 
  return 0;
6692
 
}
6693
 
_ACEOF
6694
 
rm -f conftest.$ac_objext conftest$ac_exeext
6695
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6696
 
  (eval $ac_link) 2>conftest.er1
6697
 
  ac_status=$?
6698
 
  grep -v '^ *+' conftest.er1 >conftest.err
6699
 
  rm -f conftest.er1
6700
 
  cat conftest.err >&5
6701
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6702
 
  (exit $ac_status); } &&
6703
 
         { ac_try='test -z "$ac_c_werror_flag"
6704
 
                         || test ! -s conftest.err'
6705
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6706
 
  (eval $ac_try) 2>&5
6707
 
  ac_status=$?
6708
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6709
 
  (exit $ac_status); }; } &&
6710
 
         { ac_try='test -s conftest$ac_exeext'
6711
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6712
 
  (eval $ac_try) 2>&5
6713
 
  ac_status=$?
6714
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6715
 
  (exit $ac_status); }; }; then
6716
 
 
6717
 
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
6718
 
}'`
6719
 
# Check for a 64-bit object if we didn't find anything.
6720
 
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; }
6721
 
}'`; fi
6722
 
else
6723
 
  echo "$as_me: failed program was:" >&5
6724
 
sed 's/^/| /' conftest.$ac_ext >&5
6725
 
 
6726
 
fi
6727
 
rm -f conftest.err conftest.$ac_objext \
6728
 
      conftest$ac_exeext conftest.$ac_ext
6729
 
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6730
 
 
6731
 
         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6732
 
          # Warning - without using the other run time loading flags,
6733
 
          # -berok will link without error, but may produce a broken library.
6734
 
          no_undefined_flag=' ${wl}-bernotok'
6735
 
          allow_undefined_flag=' ${wl}-berok'
6736
 
          # -bexpall does not export symbols beginning with underscore (_)
6737
 
          always_export_symbols=yes
6738
 
          # Exported symbols can be pulled into shared objects from archives
6739
 
          whole_archive_flag_spec=' '
6740
 
          archive_cmds_need_lc=yes
6741
 
          # This is similar to how AIX traditionally builds it's shared libraries.
6742
 
          archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
6743
 
        fi
6744
 
      fi
6745
 
      ;;
6746
 
 
6747
 
    amigaos*)
6748
 
      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)'
6749
 
      hardcode_libdir_flag_spec='-L$libdir'
6750
 
      hardcode_minus_L=yes
6751
 
      # see comment about different semantics on the GNU ld section
6752
 
      ld_shlibs=no
6753
 
      ;;
6754
 
 
6755
 
    bsdi[45]*)
6756
 
      export_dynamic_flag_spec=-rdynamic
6757
 
      ;;
6758
 
 
6759
 
    cygwin* | mingw* | pw32*)
6760
 
      # When not using gcc, we currently assume that we are using
6761
 
      # Microsoft Visual C++.
6762
 
      # hardcode_libdir_flag_spec is actually meaningless, as there is
6763
 
      # no search path for DLLs.
6764
 
      hardcode_libdir_flag_spec=' '
6765
 
      allow_undefined_flag=unsupported
6766
 
      # Tell ltmain to make .lib files, not .a files.
6767
 
      libext=lib
6768
 
      # Tell ltmain to make .dll files, not .so files.
6769
 
      shrext_cmds=".dll"
6770
 
      # FIXME: Setting linknames here is a bad hack.
6771
 
      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
6772
 
      # The linker will automatically build a .lib file if we build a DLL.
6773
 
      old_archive_From_new_cmds='true'
6774
 
      # FIXME: Should let the user specify the lib program.
6775
 
      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
6776
 
      fix_srcfile_path='`cygpath -w "$srcfile"`'
6777
 
      enable_shared_with_static_runtimes=yes
6778
 
      ;;
6779
 
 
6780
 
    darwin* | rhapsody*)
6781
 
      case "$host_os" in
6782
 
        rhapsody* | darwin1.[012])
6783
 
         allow_undefined_flag='${wl}-undefined ${wl}suppress'
6784
 
         ;;
6785
 
       *) # Darwin 1.3 on
6786
 
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
6787
 
           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
6788
 
         else
6789
 
           case ${MACOSX_DEPLOYMENT_TARGET} in
6790
 
             10.[012])
6791
 
               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
6792
 
               ;;
6793
 
             10.*)
6794
 
               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
6795
 
               ;;
6796
 
           esac
6797
 
         fi
6798
 
         ;;
6799
 
      esac
6800
 
      archive_cmds_need_lc=no
6801
 
      hardcode_direct=no
6802
 
      hardcode_automatic=yes
6803
 
      hardcode_shlibpath_var=unsupported
6804
 
      whole_archive_flag_spec=''
6805
 
      link_all_deplibs=yes
6806
 
    if test "$GCC" = yes ; then
6807
 
        output_verbose_link_cmd='echo'
6808
 
        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
6809
 
      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
6810
 
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
6811
 
      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}'
6812
 
      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}'
6813
 
    else
6814
 
      case "$cc_basename" in
6815
 
        xlc*)
6816
 
         output_verbose_link_cmd='echo'
6817
 
         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
6818
 
         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
6819
 
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
6820
 
         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}'
6821
 
          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}'
6822
 
          ;;
6823
 
       *)
6824
 
         ld_shlibs=no
6825
 
          ;;
6826
 
      esac
6827
 
    fi
6828
 
      ;;
6829
 
 
6830
 
    dgux*)
6831
 
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6832
 
      hardcode_libdir_flag_spec='-L$libdir'
6833
 
      hardcode_shlibpath_var=no
6834
 
      ;;
6835
 
 
6836
 
    freebsd1*)
6837
 
      ld_shlibs=no
6838
 
      ;;
6839
 
 
6840
 
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
6841
 
    # support.  Future versions do this automatically, but an explicit c++rt0.o
6842
 
    # does not break anything, and helps significantly (at the cost of a little
6843
 
    # extra space).
6844
 
    freebsd2.2*)
6845
 
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
6846
 
      hardcode_libdir_flag_spec='-R$libdir'
6847
 
      hardcode_direct=yes
6848
 
      hardcode_shlibpath_var=no
6849
 
      ;;
6850
 
 
6851
 
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
6852
 
    freebsd2*)
6853
 
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6854
 
      hardcode_direct=yes
6855
 
      hardcode_minus_L=yes
6856
 
      hardcode_shlibpath_var=no
6857
 
      ;;
6858
 
 
6859
 
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
6860
 
    freebsd* | kfreebsd*-gnu | dragonfly*)
6861
 
      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
6862
 
      hardcode_libdir_flag_spec='-R$libdir'
6863
 
      hardcode_direct=yes
6864
 
      hardcode_shlibpath_var=no
6865
 
      ;;
6866
 
 
6867
 
    hpux9*)
6868
 
      if test "$GCC" = yes; then
6869
 
        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'
6870
 
      else
6871
 
        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'
6872
 
      fi
6873
 
      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6874
 
      hardcode_libdir_separator=:
6875
 
      hardcode_direct=yes
6876
 
 
6877
 
      # hardcode_minus_L: Not really in the search PATH,
6878
 
      # but as the default location of the library.
6879
 
      hardcode_minus_L=yes
6880
 
      export_dynamic_flag_spec='${wl}-E'
6881
 
      ;;
6882
 
 
6883
 
    hpux10* | hpux11*)
6884
 
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
6885
 
        case "$host_cpu" in
6886
 
        hppa*64*|ia64*)
6887
 
          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6888
 
          ;;
6889
 
        *)
6890
 
          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
6891
 
          ;;
6892
 
        esac
6893
 
      else
6894
 
        case "$host_cpu" in
6895
 
        hppa*64*|ia64*)
6896
 
          archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
6897
 
          ;;
6898
 
        *)
6899
 
          archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
6900
 
          ;;
6901
 
        esac
6902
 
      fi
6903
 
      if test "$with_gnu_ld" = no; then
6904
 
        case "$host_cpu" in
6905
 
        hppa*64*)
6906
 
          hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6907
 
          hardcode_libdir_flag_spec_ld='+b $libdir'
6908
 
          hardcode_libdir_separator=:
6909
 
          hardcode_direct=no
6910
 
          hardcode_shlibpath_var=no
6911
 
          ;;
6912
 
        ia64*)
6913
 
          hardcode_libdir_flag_spec='-L$libdir'
6914
 
          hardcode_direct=no
6915
 
          hardcode_shlibpath_var=no
6916
 
 
6917
 
          # hardcode_minus_L: Not really in the search PATH,
6918
 
          # but as the default location of the library.
6919
 
          hardcode_minus_L=yes
6920
 
          ;;
6921
 
        *)
6922
 
          hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6923
 
          hardcode_libdir_separator=:
6924
 
          hardcode_direct=yes
6925
 
          export_dynamic_flag_spec='${wl}-E'
6926
 
 
6927
 
          # hardcode_minus_L: Not really in the search PATH,
6928
 
          # but as the default location of the library.
6929
 
          hardcode_minus_L=yes
6930
 
          ;;
6931
 
        esac
6932
 
      fi
6933
 
      ;;
6934
 
 
6935
 
    irix5* | irix6* | nonstopux*)
6936
 
      if test "$GCC" = yes; then
6937
 
        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'
6938
 
      else
6939
 
        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'
6940
 
        hardcode_libdir_flag_spec_ld='-rpath $libdir'
6941
 
      fi
6942
 
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6943
 
      hardcode_libdir_separator=:
6944
 
      link_all_deplibs=yes
6945
 
      ;;
6946
 
 
6947
 
    netbsd*)
6948
 
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6949
 
        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
6950
 
      else
6951
 
        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
6952
 
      fi
6953
 
      hardcode_libdir_flag_spec='-R$libdir'
6954
 
      hardcode_direct=yes
6955
 
      hardcode_shlibpath_var=no
6956
 
      ;;
6957
 
 
6958
 
    newsos6)
6959
 
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6960
 
      hardcode_direct=yes
6961
 
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6962
 
      hardcode_libdir_separator=:
6963
 
      hardcode_shlibpath_var=no
6964
 
      ;;
6965
 
 
6966
 
    openbsd*)
6967
 
      hardcode_direct=yes
6968
 
      hardcode_shlibpath_var=no
6969
 
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6970
 
        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6971
 
        archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
6972
 
        hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6973
 
        export_dynamic_flag_spec='${wl}-E'
6974
 
      else
6975
 
       case $host_os in
6976
 
         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
6977
 
           archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6978
 
           hardcode_libdir_flag_spec='-R$libdir'
6979
 
           ;;
6980
 
         *)
6981
 
           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6982
 
           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6983
 
           ;;
6984
 
       esac
6985
 
      fi
6986
 
      ;;
6987
 
 
6988
 
    os2*)
6989
 
      hardcode_libdir_flag_spec='-L$libdir'
6990
 
      hardcode_minus_L=yes
6991
 
      allow_undefined_flag=unsupported
6992
 
      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'
6993
 
      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
6994
 
      ;;
6995
 
 
6996
 
    osf3*)
6997
 
      if test "$GCC" = yes; then
6998
 
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6999
 
        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'
7000
 
      else
7001
 
        allow_undefined_flag=' -expect_unresolved \*'
7002
 
        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'
7003
 
      fi
7004
 
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7005
 
      hardcode_libdir_separator=:
7006
 
      ;;
7007
 
 
7008
 
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
7009
 
      if test "$GCC" = yes; then
7010
 
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7011
 
        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'
7012
 
        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7013
 
      else
7014
 
        allow_undefined_flag=' -expect_unresolved \*'
7015
 
        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'
7016
 
        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7017
 
        $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
7018
 
 
7019
 
        # Both c and cxx compiler support -rpath directly
7020
 
        hardcode_libdir_flag_spec='-rpath $libdir'
7021
 
      fi
7022
 
      hardcode_libdir_separator=:
7023
 
      ;;
7024
 
 
7025
 
    sco3.2v5*)
7026
 
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7027
 
      hardcode_shlibpath_var=no
7028
 
      export_dynamic_flag_spec='${wl}-Bexport'
7029
 
      runpath_var=LD_RUN_PATH
7030
 
      hardcode_runpath_var=yes
7031
 
      ;;
7032
 
 
7033
 
    solaris*)
7034
 
      no_undefined_flag=' -z text'
7035
 
      if test "$GCC" = yes; then
7036
 
        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7037
 
        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7038
 
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7039
 
      else
7040
 
        archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7041
 
        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7042
 
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7043
 
      fi
7044
 
      hardcode_libdir_flag_spec='-R$libdir'
7045
 
      hardcode_shlibpath_var=no
7046
 
      case $host_os in
7047
 
      solaris2.[0-5] | solaris2.[0-5].*) ;;
7048
 
      *) # Supported since Solaris 2.6 (maybe 2.5.1?)
7049
 
        whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' ;;
7050
 
      esac
7051
 
      link_all_deplibs=yes
7052
 
      ;;
7053
 
 
7054
 
    sunos4*)
7055
 
      if test "x$host_vendor" = xsequent; then
7056
 
        # Use $CC to link under sequent, because it throws in some extra .o
7057
 
        # files that make .init and .fini sections work.
7058
 
        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7059
 
      else
7060
 
        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7061
 
      fi
7062
 
      hardcode_libdir_flag_spec='-L$libdir'
7063
 
      hardcode_direct=yes
7064
 
      hardcode_minus_L=yes
7065
 
      hardcode_shlibpath_var=no
7066
 
      ;;
7067
 
 
7068
 
    sysv4)
7069
 
      case $host_vendor in
7070
 
        sni)
7071
 
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7072
 
          hardcode_direct=yes # is this really true???
7073
 
        ;;
7074
 
        siemens)
7075
 
          ## LD is ld it makes a PLAMLIB
7076
 
          ## CC just makes a GrossModule.
7077
 
          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7078
 
          reload_cmds='$CC -r -o $output$reload_objs'
7079
 
          hardcode_direct=no
7080
 
        ;;
7081
 
        motorola)
7082
 
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7083
 
          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7084
 
        ;;
7085
 
      esac
7086
 
      runpath_var='LD_RUN_PATH'
7087
 
      hardcode_shlibpath_var=no
7088
 
      ;;
7089
 
 
7090
 
    sysv4.3*)
7091
 
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7092
 
      hardcode_shlibpath_var=no
7093
 
      export_dynamic_flag_spec='-Bexport'
7094
 
      ;;
7095
 
 
7096
 
    sysv4*MP*)
7097
 
      if test -d /usr/nec; then
7098
 
        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7099
 
        hardcode_shlibpath_var=no
7100
 
        runpath_var=LD_RUN_PATH
7101
 
        hardcode_runpath_var=yes
7102
 
        ld_shlibs=yes
7103
 
      fi
7104
 
      ;;
7105
 
 
7106
 
    sysv4.2uw2*)
7107
 
      archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7108
 
      hardcode_direct=yes
7109
 
      hardcode_minus_L=no
7110
 
      hardcode_shlibpath_var=no
7111
 
      hardcode_runpath_var=yes
7112
 
      runpath_var=LD_RUN_PATH
7113
 
      ;;
7114
 
 
7115
 
   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
7116
 
      no_undefined_flag='${wl}-z ${wl}text'
7117
 
      if test "$GCC" = yes; then
7118
 
        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7119
 
      else
7120
 
        archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7121
 
      fi
7122
 
      runpath_var='LD_RUN_PATH'
7123
 
      hardcode_shlibpath_var=no
7124
 
      ;;
7125
 
 
7126
 
    sysv5*)
7127
 
      no_undefined_flag=' -z text'
7128
 
      # $CC -shared without GNU ld will not create a library from C++
7129
 
      # object files and a static libstdc++, better avoid it by now
7130
 
      archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7131
 
      archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7132
 
                $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7133
 
      hardcode_libdir_flag_spec=
7134
 
      hardcode_shlibpath_var=no
7135
 
      runpath_var='LD_RUN_PATH'
7136
 
      ;;
7137
 
 
7138
 
    uts4*)
7139
 
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7140
 
      hardcode_libdir_flag_spec='-L$libdir'
7141
 
      hardcode_shlibpath_var=no
7142
 
      ;;
7143
 
 
7144
 
    *)
7145
 
      ld_shlibs=no
7146
 
      ;;
7147
 
    esac
7148
 
  fi
7149
 
 
7150
 
echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7151
 
echo "${ECHO_T}$ld_shlibs" >&6
7152
 
test "$ld_shlibs" = no && can_build_shared=no
7153
 
 
7154
 
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7155
 
if test "$GCC" = yes; then
7156
 
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7157
 
fi
7158
 
 
7159
 
#
7160
 
# Do we need to explicitly link libc?
7161
 
#
7162
 
case "x$archive_cmds_need_lc" in
7163
 
x|xyes)
7164
 
  # Assume -lc should be added
7165
 
  archive_cmds_need_lc=yes
7166
 
 
7167
 
  if test "$enable_shared" = yes && test "$GCC" = yes; then
7168
 
    case $archive_cmds in
7169
 
    *'~'*)
7170
 
      # FIXME: we may have to deal with multi-command sequences.
7171
 
      ;;
7172
 
    '$CC '*)
7173
 
      # Test whether the compiler implicitly links with -lc since on some
7174
 
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
7175
 
      # to ld, don't add -lc before -lgcc.
7176
 
      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7177
 
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7178
 
      $rm conftest*
7179
 
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7180
 
 
7181
 
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7182
 
  (eval $ac_compile) 2>&5
7183
 
  ac_status=$?
7184
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7185
 
  (exit $ac_status); } 2>conftest.err; then
7186
 
        soname=conftest
7187
 
        lib=conftest
7188
 
        libobjs=conftest.$ac_objext
7189
 
        deplibs=
7190
 
        wl=$lt_prog_compiler_wl
7191
 
        compiler_flags=-v
7192
 
        linker_flags=-v
7193
 
        verstring=
7194
 
        output_objdir=.
7195
 
        libname=conftest
7196
 
        lt_save_allow_undefined_flag=$allow_undefined_flag
7197
 
        allow_undefined_flag=
7198
 
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7199
 
  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7200
 
  ac_status=$?
7201
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7202
 
  (exit $ac_status); }
7203
 
        then
7204
 
          archive_cmds_need_lc=no
7205
 
        else
7206
 
          archive_cmds_need_lc=yes
7207
 
        fi
7208
 
        allow_undefined_flag=$lt_save_allow_undefined_flag
7209
 
      else
7210
 
        cat conftest.err 1>&5
7211
 
      fi
7212
 
      $rm conftest*
7213
 
      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7214
 
echo "${ECHO_T}$archive_cmds_need_lc" >&6
7215
 
      ;;
7216
 
    esac
7217
 
  fi
7218
 
  ;;
7219
 
esac
7220
 
 
7221
 
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7222
 
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7223
 
library_names_spec=
7224
 
libname_spec='lib$name'
7225
 
soname_spec=
7226
 
shrext_cmds=".so"
7227
 
postinstall_cmds=
7228
 
postuninstall_cmds=
7229
 
finish_cmds=
7230
 
finish_eval=
7231
 
shlibpath_var=
7232
 
shlibpath_overrides_runpath=unknown
7233
 
version_type=none
7234
 
dynamic_linker="$host_os ld.so"
7235
 
sys_lib_dlsearch_path_spec="/lib /usr/lib"
7236
 
if test "$GCC" = yes; then
7237
 
  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7238
 
  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7239
 
    # if the path contains ";" then we assume it to be the separator
7240
 
    # otherwise default to the standard path separator (i.e. ":") - it is
7241
 
    # assumed that no part of a normal pathname contains ";" but that should
7242
 
    # okay in the real world where ";" in dirpaths is itself problematic.
7243
 
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7244
 
  else
7245
 
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7246
 
  fi
7247
 
else
7248
 
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7249
 
fi
7250
 
need_lib_prefix=unknown
7251
 
hardcode_into_libs=no
7252
 
 
7253
 
# when you set need_version to no, make sure it does not cause -set_version
7254
 
# flags to be left without arguments
7255
 
need_version=unknown
7256
 
 
7257
 
case $host_os in
7258
 
aix3*)
7259
 
  version_type=linux
7260
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7261
 
  shlibpath_var=LIBPATH
7262
 
 
7263
 
  # AIX 3 has no versioning support, so we append a major version to the name.
7264
 
  soname_spec='${libname}${release}${shared_ext}$major'
7265
 
  ;;
7266
 
 
7267
 
aix4* | aix5*)
7268
 
  version_type=linux
7269
 
  need_lib_prefix=no
7270
 
  need_version=no
7271
 
  hardcode_into_libs=yes
7272
 
  if test "$host_cpu" = ia64; then
7273
 
    # AIX 5 supports IA64
7274
 
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7275
 
    shlibpath_var=LD_LIBRARY_PATH
7276
 
  else
7277
 
    # With GCC up to 2.95.x, collect2 would create an import file
7278
 
    # for dependence libraries.  The import file would start with
7279
 
    # the line `#! .'.  This would cause the generated library to
7280
 
    # depend on `.', always an invalid library.  This was fixed in
7281
 
    # development snapshots of GCC prior to 3.0.
7282
 
    case $host_os in
7283
 
      aix4 | aix4.[01] | aix4.[01].*)
7284
 
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7285
 
           echo ' yes '
7286
 
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7287
 
        :
7288
 
      else
7289
 
        can_build_shared=no
7290
 
      fi
7291
 
      ;;
7292
 
    esac
7293
 
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7294
 
    # soname into executable. Probably we can add versioning support to
7295
 
    # collect2, so additional links can be useful in future.
7296
 
    if test "$aix_use_runtimelinking" = yes; then
7297
 
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7298
 
      # instead of lib<name>.a to let people know that these are not
7299
 
      # typical AIX shared libraries.
7300
 
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7301
 
    else
7302
 
      # We preserve .a as extension for shared libraries through AIX4.2
7303
 
      # and later when we are not doing run time linking.
7304
 
      library_names_spec='${libname}${release}.a $libname.a'
7305
 
      soname_spec='${libname}${release}${shared_ext}$major'
7306
 
    fi
7307
 
    shlibpath_var=LIBPATH
7308
 
  fi
7309
 
  ;;
7310
 
 
7311
 
amigaos*)
7312
 
  library_names_spec='$libname.ixlibrary $libname.a'
7313
 
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
7314
 
  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'
7315
 
  ;;
7316
 
 
7317
 
beos*)
7318
 
  library_names_spec='${libname}${shared_ext}'
7319
 
  dynamic_linker="$host_os ld.so"
7320
 
  shlibpath_var=LIBRARY_PATH
7321
 
  ;;
7322
 
 
7323
 
bsdi[45]*)
7324
 
  version_type=linux
7325
 
  need_version=no
7326
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7327
 
  soname_spec='${libname}${release}${shared_ext}$major'
7328
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7329
 
  shlibpath_var=LD_LIBRARY_PATH
7330
 
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7331
 
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7332
 
  # the default ld.so.conf also contains /usr/contrib/lib and
7333
 
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7334
 
  # libtool to hard-code these into programs
7335
 
  ;;
7336
 
 
7337
 
cygwin* | mingw* | pw32*)
7338
 
  version_type=windows
7339
 
  shrext_cmds=".dll"
7340
 
  need_version=no
7341
 
  need_lib_prefix=no
7342
 
 
7343
 
  case $GCC,$host_os in
7344
 
  yes,cygwin* | yes,mingw* | yes,pw32*)
7345
 
    library_names_spec='$libname.dll.a'
7346
 
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
7347
 
    postinstall_cmds='base_file=`basename \${file}`~
7348
 
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7349
 
      dldir=$destdir/`dirname \$dlpath`~
7350
 
      test -d \$dldir || mkdir -p \$dldir~
7351
 
      $install_prog $dir/$dlname \$dldir/$dlname'
7352
 
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7353
 
      dlpath=$dir/\$dldll~
7354
 
       $rm \$dlpath'
7355
 
    shlibpath_overrides_runpath=yes
7356
 
 
7357
 
    case $host_os in
7358
 
    cygwin*)
7359
 
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7360
 
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7361
 
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
7362
 
      ;;
7363
 
    mingw*)
7364
 
      # MinGW DLLs use traditional 'lib' prefix
7365
 
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7366
 
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7367
 
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7368
 
        # It is most probably a Windows format PATH printed by
7369
 
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
7370
 
        # path with ; separators, and with drive letters. We can handle the
7371
 
        # drive letters (cygwin fileutils understands them), so leave them,
7372
 
        # especially as we might pass files found there to a mingw objdump,
7373
 
        # which wouldn't understand a cygwinified path. Ahh.
7374
 
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7375
 
      else
7376
 
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7377
 
      fi
7378
 
      ;;
7379
 
    pw32*)
7380
 
      # pw32 DLLs use 'pw' prefix rather than 'lib'
7381
 
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7382
 
      ;;
7383
 
    esac
7384
 
    ;;
7385
 
 
7386
 
  *)
7387
 
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7388
 
    ;;
7389
 
  esac
7390
 
  dynamic_linker='Win32 ld.exe'
7391
 
  # FIXME: first we should search . and the directory the executable is in
7392
 
  shlibpath_var=PATH
7393
 
  ;;
7394
 
 
7395
 
darwin* | rhapsody*)
7396
 
  dynamic_linker="$host_os dyld"
7397
 
  version_type=darwin
7398
 
  need_lib_prefix=no
7399
 
  need_version=no
7400
 
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7401
 
  soname_spec='${libname}${release}${major}$shared_ext'
7402
 
  shlibpath_overrides_runpath=yes
7403
 
  shlibpath_var=DYLD_LIBRARY_PATH
7404
 
  shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
7405
 
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7406
 
  if test "$GCC" = yes; then
7407
 
    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"`
7408
 
  else
7409
 
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
7410
 
  fi
7411
 
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7412
 
  ;;
7413
 
 
7414
 
dgux*)
7415
 
  version_type=linux
7416
 
  need_lib_prefix=no
7417
 
  need_version=no
7418
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7419
 
  soname_spec='${libname}${release}${shared_ext}$major'
7420
 
  shlibpath_var=LD_LIBRARY_PATH
7421
 
  ;;
7422
 
 
7423
 
freebsd1*)
7424
 
  dynamic_linker=no
7425
 
  ;;
7426
 
 
7427
 
kfreebsd*-gnu)
7428
 
  version_type=linux
7429
 
  need_lib_prefix=no
7430
 
  need_version=no
7431
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7432
 
  soname_spec='${libname}${release}${shared_ext}$major'
7433
 
  shlibpath_var=LD_LIBRARY_PATH
7434
 
  shlibpath_overrides_runpath=no
7435
 
  hardcode_into_libs=yes
7436
 
  dynamic_linker='GNU ld.so'
7437
 
  ;;
7438
 
 
7439
 
freebsd* | dragonfly*)
7440
 
  # DragonFly does not have aout.  When/if they implement a new
7441
 
  # versioning mechanism, adjust this.
7442
 
  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7443
 
  version_type=freebsd-$objformat
7444
 
  case $version_type in
7445
 
    freebsd-elf*)
7446
 
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
7447
 
      need_version=no
7448
 
      need_lib_prefix=no
7449
 
      ;;
7450
 
    freebsd-*)
7451
 
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
7452
 
      need_version=yes
7453
 
      ;;
7454
 
  esac
7455
 
  shlibpath_var=LD_LIBRARY_PATH
7456
 
  case $host_os in
7457
 
  freebsd2*)
7458
 
    shlibpath_overrides_runpath=yes
7459
 
    ;;
7460
 
  freebsd3.[01]* | freebsdelf3.[01]*)
7461
 
    shlibpath_overrides_runpath=yes
7462
 
    hardcode_into_libs=yes
7463
 
    ;;
7464
 
  *) # from 3.2 on
7465
 
    shlibpath_overrides_runpath=no
7466
 
    hardcode_into_libs=yes
7467
 
    ;;
7468
 
  esac
7469
 
  ;;
7470
 
 
7471
 
gnu*)
7472
 
  version_type=linux
7473
 
  need_lib_prefix=no
7474
 
  need_version=no
7475
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7476
 
  soname_spec='${libname}${release}${shared_ext}$major'
7477
 
  shlibpath_var=LD_LIBRARY_PATH
7478
 
  hardcode_into_libs=yes
7479
 
  ;;
7480
 
 
7481
 
hpux9* | hpux10* | hpux11*)
7482
 
  # Give a soname corresponding to the major version so that dld.sl refuses to
7483
 
  # link against other versions.
7484
 
  version_type=sunos
7485
 
  need_lib_prefix=no
7486
 
  need_version=no
7487
 
  case "$host_cpu" in
7488
 
  ia64*)
7489
 
    shrext_cmds='.so'
7490
 
    hardcode_into_libs=yes
7491
 
    dynamic_linker="$host_os dld.so"
7492
 
    shlibpath_var=LD_LIBRARY_PATH
7493
 
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7494
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7495
 
    soname_spec='${libname}${release}${shared_ext}$major'
7496
 
    if test "X$HPUX_IA64_MODE" = X32; then
7497
 
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7498
 
    else
7499
 
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7500
 
    fi
7501
 
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7502
 
    ;;
7503
 
   hppa*64*)
7504
 
     shrext_cmds='.sl'
7505
 
     hardcode_into_libs=yes
7506
 
     dynamic_linker="$host_os dld.sl"
7507
 
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7508
 
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7509
 
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7510
 
     soname_spec='${libname}${release}${shared_ext}$major'
7511
 
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7512
 
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7513
 
     ;;
7514
 
   *)
7515
 
    shrext_cmds='.sl'
7516
 
    dynamic_linker="$host_os dld.sl"
7517
 
    shlibpath_var=SHLIB_PATH
7518
 
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7519
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7520
 
    soname_spec='${libname}${release}${shared_ext}$major'
7521
 
    ;;
7522
 
  esac
7523
 
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
7524
 
  postinstall_cmds='chmod 555 $lib'
7525
 
  ;;
7526
 
 
7527
 
irix5* | irix6* | nonstopux*)
7528
 
  case $host_os in
7529
 
    nonstopux*) version_type=nonstopux ;;
7530
 
    *)
7531
 
        if test "$lt_cv_prog_gnu_ld" = yes; then
7532
 
                version_type=linux
7533
 
        else
7534
 
                version_type=irix
7535
 
        fi ;;
7536
 
  esac
7537
 
  need_lib_prefix=no
7538
 
  need_version=no
7539
 
  soname_spec='${libname}${release}${shared_ext}$major'
7540
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
7541
 
  case $host_os in
7542
 
  irix5* | nonstopux*)
7543
 
    libsuff= shlibsuff=
7544
 
    ;;
7545
 
  *)
7546
 
    case $LD in # libtool.m4 will add one of these switches to LD
7547
 
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7548
 
      libsuff= shlibsuff= libmagic=32-bit;;
7549
 
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7550
 
      libsuff=32 shlibsuff=N32 libmagic=N32;;
7551
 
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7552
 
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
7553
 
    *) libsuff= shlibsuff= libmagic=never-match;;
7554
 
    esac
7555
 
    ;;
7556
 
  esac
7557
 
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7558
 
  shlibpath_overrides_runpath=no
7559
 
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7560
 
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
7561
 
  hardcode_into_libs=yes
7562
 
  ;;
7563
 
 
7564
 
# No shared lib support for Linux oldld, aout, or coff.
7565
 
linux*oldld* | linux*aout* | linux*coff*)
7566
 
  dynamic_linker=no
7567
 
  ;;
7568
 
 
7569
 
# This must be Linux ELF.
7570
 
linux*)
7571
 
  version_type=linux
7572
 
  need_lib_prefix=no
7573
 
  need_version=no
7574
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7575
 
  soname_spec='${libname}${release}${shared_ext}$major'
7576
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7577
 
  shlibpath_var=LD_LIBRARY_PATH
7578
 
  shlibpath_overrides_runpath=no
7579
 
  # This implies no fast_install, which is unacceptable.
7580
 
  # Some rework will be needed to allow for fast_install
7581
 
  # before this can be enabled.
7582
 
  hardcode_into_libs=yes
7583
 
 
7584
 
  # Append ld.so.conf contents to the search path
7585
 
  if test -f /etc/ld.so.conf; then
7586
 
    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/[:,\t]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
7587
 
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
7588
 
  fi
7589
 
 
7590
 
  # We used to test for /lib/ld.so.1 and disable shared libraries on
7591
 
  # powerpc, because MkLinux only supported shared libraries with the
7592
 
  # GNU dynamic linker.  Since this was broken with cross compilers,
7593
 
  # most powerpc-linux boxes support dynamic linking these days and
7594
 
  # people can always --disable-shared, the test was removed, and we
7595
 
  # assume the GNU/Linux dynamic linker is in use.
7596
 
  dynamic_linker='GNU/Linux ld.so'
7597
 
  ;;
7598
 
 
7599
 
knetbsd*-gnu)
7600
 
  version_type=linux
7601
 
  need_lib_prefix=no
7602
 
  need_version=no
7603
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7604
 
  soname_spec='${libname}${release}${shared_ext}$major'
7605
 
  shlibpath_var=LD_LIBRARY_PATH
7606
 
  shlibpath_overrides_runpath=no
7607
 
  hardcode_into_libs=yes
7608
 
  dynamic_linker='GNU ld.so'
7609
 
  ;;
7610
 
 
7611
 
netbsd*)
7612
 
  version_type=sunos
7613
 
  need_lib_prefix=no
7614
 
  need_version=no
7615
 
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7616
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7617
 
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7618
 
    dynamic_linker='NetBSD (a.out) ld.so'
7619
 
  else
7620
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7621
 
    soname_spec='${libname}${release}${shared_ext}$major'
7622
 
    dynamic_linker='NetBSD ld.elf_so'
7623
 
  fi
7624
 
  shlibpath_var=LD_LIBRARY_PATH
7625
 
  shlibpath_overrides_runpath=yes
7626
 
  hardcode_into_libs=yes
7627
 
  ;;
7628
 
 
7629
 
newsos6)
7630
 
  version_type=linux
7631
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7632
 
  shlibpath_var=LD_LIBRARY_PATH
7633
 
  shlibpath_overrides_runpath=yes
7634
 
  ;;
7635
 
 
7636
 
nto-qnx*)
7637
 
  version_type=linux
7638
 
  need_lib_prefix=no
7639
 
  need_version=no
7640
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7641
 
  soname_spec='${libname}${release}${shared_ext}$major'
7642
 
  shlibpath_var=LD_LIBRARY_PATH
7643
 
  shlibpath_overrides_runpath=yes
7644
 
  ;;
7645
 
 
7646
 
openbsd*)
7647
 
  version_type=sunos
7648
 
  need_lib_prefix=no
7649
 
  need_version=no
7650
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7651
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7652
 
  shlibpath_var=LD_LIBRARY_PATH
7653
 
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7654
 
    case $host_os in
7655
 
      openbsd2.[89] | openbsd2.[89].*)
7656
 
        shlibpath_overrides_runpath=no
7657
 
        ;;
7658
 
      *)
7659
 
        shlibpath_overrides_runpath=yes
7660
 
        ;;
7661
 
      esac
7662
 
  else
7663
 
    shlibpath_overrides_runpath=yes
7664
 
  fi
7665
 
  ;;
7666
 
 
7667
 
os2*)
7668
 
  libname_spec='$name'
7669
 
  shrext_cmds=".dll"
7670
 
  need_lib_prefix=no
7671
 
  library_names_spec='$libname${shared_ext} $libname.a'
7672
 
  dynamic_linker='OS/2 ld.exe'
7673
 
  shlibpath_var=LIBPATH
7674
 
  ;;
7675
 
 
7676
 
osf3* | osf4* | osf5*)
7677
 
  version_type=osf
7678
 
  need_lib_prefix=no
7679
 
  need_version=no
7680
 
  soname_spec='${libname}${release}${shared_ext}$major'
7681
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7682
 
  shlibpath_var=LD_LIBRARY_PATH
7683
 
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7684
 
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7685
 
  ;;
7686
 
 
7687
 
sco3.2v5*)
7688
 
  version_type=osf
7689
 
  soname_spec='${libname}${release}${shared_ext}$major'
7690
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7691
 
  shlibpath_var=LD_LIBRARY_PATH
7692
 
  ;;
7693
 
 
7694
 
solaris*)
7695
 
  version_type=linux
7696
 
  need_lib_prefix=no
7697
 
  need_version=no
7698
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7699
 
  soname_spec='${libname}${release}${shared_ext}$major'
7700
 
  shlibpath_var=LD_LIBRARY_PATH
7701
 
  shlibpath_overrides_runpath=yes
7702
 
  hardcode_into_libs=yes
7703
 
  # ldd complains unless libraries are executable
7704
 
  postinstall_cmds='chmod +x $lib'
7705
 
  ;;
7706
 
 
7707
 
sunos4*)
7708
 
  version_type=sunos
7709
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7710
 
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7711
 
  shlibpath_var=LD_LIBRARY_PATH
7712
 
  shlibpath_overrides_runpath=yes
7713
 
  if test "$with_gnu_ld" = yes; then
7714
 
    need_lib_prefix=no
7715
 
  fi
7716
 
  need_version=yes
7717
 
  ;;
7718
 
 
7719
 
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7720
 
  version_type=linux
7721
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7722
 
  soname_spec='${libname}${release}${shared_ext}$major'
7723
 
  shlibpath_var=LD_LIBRARY_PATH
7724
 
  case $host_vendor in
7725
 
    sni)
7726
 
      shlibpath_overrides_runpath=no
7727
 
      need_lib_prefix=no
7728
 
      export_dynamic_flag_spec='${wl}-Blargedynsym'
7729
 
      runpath_var=LD_RUN_PATH
7730
 
      ;;
7731
 
    siemens)
7732
 
      need_lib_prefix=no
7733
 
      ;;
7734
 
    motorola)
7735
 
      need_lib_prefix=no
7736
 
      need_version=no
7737
 
      shlibpath_overrides_runpath=no
7738
 
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
7739
 
      ;;
7740
 
  esac
7741
 
  ;;
7742
 
 
7743
 
sysv4*MP*)
7744
 
  if test -d /usr/nec ;then
7745
 
    version_type=linux
7746
 
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
7747
 
    soname_spec='$libname${shared_ext}.$major'
7748
 
    shlibpath_var=LD_LIBRARY_PATH
7749
 
  fi
7750
 
  ;;
7751
 
 
7752
 
uts4*)
7753
 
  version_type=linux
7754
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7755
 
  soname_spec='${libname}${release}${shared_ext}$major'
7756
 
  shlibpath_var=LD_LIBRARY_PATH
7757
 
  ;;
7758
 
 
7759
 
*)
7760
 
  dynamic_linker=no
7761
 
  ;;
7762
 
esac
7763
 
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
7764
 
echo "${ECHO_T}$dynamic_linker" >&6
7765
 
test "$dynamic_linker" = no && can_build_shared=no
7766
 
 
7767
 
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
7768
 
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
7769
 
hardcode_action=
7770
 
if test -n "$hardcode_libdir_flag_spec" || \
7771
 
   test -n "$runpath_var" || \
7772
 
   test "X$hardcode_automatic" = "Xyes" ; then
7773
 
 
7774
 
  # We can hardcode non-existant directories.
7775
 
  if test "$hardcode_direct" != no &&
7776
 
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
7777
 
     # have to relink, otherwise we might link with an installed library
7778
 
     # when we should be linking with a yet-to-be-installed one
7779
 
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
7780
 
     test "$hardcode_minus_L" != no; then
7781
 
    # Linking always hardcodes the temporary library directory.
7782
 
    hardcode_action=relink
7783
 
  else
7784
 
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
7785
 
    hardcode_action=immediate
7786
 
  fi
7787
 
else
7788
 
  # We cannot hardcode anything, or else we can only hardcode existing
7789
 
  # directories.
7790
 
  hardcode_action=unsupported
7791
 
fi
7792
 
echo "$as_me:$LINENO: result: $hardcode_action" >&5
7793
 
echo "${ECHO_T}$hardcode_action" >&6
7794
 
 
7795
 
if test "$hardcode_action" = relink; then
7796
 
  # Fast installation is not supported
7797
 
  enable_fast_install=no
7798
 
elif test "$shlibpath_overrides_runpath" = yes ||
7799
 
     test "$enable_shared" = no; then
7800
 
  # Fast installation is not necessary
7801
 
  enable_fast_install=needless
7802
 
fi
7803
 
 
7804
 
striplib=
7805
 
old_striplib=
7806
 
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
7807
 
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
7808
 
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
7809
 
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
7810
 
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
7811
 
  echo "$as_me:$LINENO: result: yes" >&5
7812
 
echo "${ECHO_T}yes" >&6
7813
 
else
7814
 
# FIXME - insert some real tests, host_os isn't really good enough
7815
 
  case $host_os in
7816
 
   darwin*)
7817
 
       if test -n "$STRIP" ; then
7818
 
         striplib="$STRIP -x"
7819
 
         echo "$as_me:$LINENO: result: yes" >&5
7820
 
echo "${ECHO_T}yes" >&6
7821
 
       else
7822
 
  echo "$as_me:$LINENO: result: no" >&5
7823
 
echo "${ECHO_T}no" >&6
7824
 
fi
7825
 
       ;;
7826
 
   *)
7827
 
  echo "$as_me:$LINENO: result: no" >&5
7828
 
echo "${ECHO_T}no" >&6
7829
 
    ;;
7830
 
  esac
7831
 
fi
7832
 
 
7833
 
if test "x$enable_dlopen" != xyes; then
7834
 
  enable_dlopen=unknown
7835
 
  enable_dlopen_self=unknown
7836
 
  enable_dlopen_self_static=unknown
7837
 
else
7838
 
  lt_cv_dlopen=no
7839
 
  lt_cv_dlopen_libs=
7840
 
 
7841
 
  case $host_os in
7842
 
  beos*)
7843
 
    lt_cv_dlopen="load_add_on"
7844
 
    lt_cv_dlopen_libs=
7845
 
    lt_cv_dlopen_self=yes
7846
 
    ;;
7847
 
 
7848
 
  mingw* | pw32*)
7849
 
    lt_cv_dlopen="LoadLibrary"
7850
 
    lt_cv_dlopen_libs=
7851
 
   ;;
7852
 
 
7853
 
  cygwin*)
7854
 
    lt_cv_dlopen="dlopen"
7855
 
    lt_cv_dlopen_libs=
7856
 
   ;;
7857
 
 
7858
 
  darwin*)
7859
 
  # if libdl is installed we need to link against it
7860
 
    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7861
 
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7862
 
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7863
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
7864
 
else
7865
 
  ac_check_lib_save_LIBS=$LIBS
7866
 
LIBS="-ldl  $LIBS"
7867
 
cat >conftest.$ac_ext <<_ACEOF
7868
 
/* confdefs.h.  */
7869
 
_ACEOF
7870
 
cat confdefs.h >>conftest.$ac_ext
7871
 
cat >>conftest.$ac_ext <<_ACEOF
7872
 
/* end confdefs.h.  */
7873
 
 
7874
 
/* Override any gcc2 internal prototype to avoid an error.  */
7875
 
#ifdef __cplusplus
7876
 
extern "C"
7877
 
#endif
7878
 
/* We use char because int might match the return type of a gcc2
7879
 
   builtin and then its argument prototype would still apply.  */
7880
 
char dlopen ();
7881
 
int
7882
 
main ()
7883
 
{
7884
 
dlopen ();
7885
 
  ;
7886
 
  return 0;
7887
 
}
7888
 
_ACEOF
7889
 
rm -f conftest.$ac_objext conftest$ac_exeext
7890
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7891
 
  (eval $ac_link) 2>conftest.er1
7892
 
  ac_status=$?
7893
 
  grep -v '^ *+' conftest.er1 >conftest.err
7894
 
  rm -f conftest.er1
7895
 
  cat conftest.err >&5
7896
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7897
 
  (exit $ac_status); } &&
7898
 
         { ac_try='test -z "$ac_c_werror_flag"
7899
 
                         || test ! -s conftest.err'
7900
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7901
 
  (eval $ac_try) 2>&5
7902
 
  ac_status=$?
7903
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7904
 
  (exit $ac_status); }; } &&
7905
 
         { ac_try='test -s conftest$ac_exeext'
7906
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7907
 
  (eval $ac_try) 2>&5
7908
 
  ac_status=$?
7909
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7910
 
  (exit $ac_status); }; }; then
7911
 
  ac_cv_lib_dl_dlopen=yes
7912
 
else
7913
 
  echo "$as_me: failed program was:" >&5
7914
 
sed 's/^/| /' conftest.$ac_ext >&5
7915
 
 
7916
 
ac_cv_lib_dl_dlopen=no
7917
 
fi
7918
 
rm -f conftest.err conftest.$ac_objext \
7919
 
      conftest$ac_exeext conftest.$ac_ext
7920
 
LIBS=$ac_check_lib_save_LIBS
7921
 
fi
7922
 
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
7923
 
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
7924
 
if test $ac_cv_lib_dl_dlopen = yes; then
7925
 
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
7926
 
else
7927
 
 
7928
 
    lt_cv_dlopen="dyld"
7929
 
    lt_cv_dlopen_libs=
7930
 
    lt_cv_dlopen_self=yes
7931
 
 
7932
 
fi
7933
 
 
7934
 
   ;;
7935
 
 
7936
 
  *)
7937
 
    echo "$as_me:$LINENO: checking for shl_load" >&5
7938
 
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
7939
 
if test "${ac_cv_func_shl_load+set}" = set; then
7940
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
7941
 
else
7942
 
  cat >conftest.$ac_ext <<_ACEOF
7943
 
/* confdefs.h.  */
7944
 
_ACEOF
7945
 
cat confdefs.h >>conftest.$ac_ext
7946
 
cat >>conftest.$ac_ext <<_ACEOF
7947
 
/* end confdefs.h.  */
7948
 
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
7949
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7950
 
#define shl_load innocuous_shl_load
7951
 
 
7952
 
/* System header to define __stub macros and hopefully few prototypes,
7953
 
    which can conflict with char shl_load (); below.
7954
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7955
 
    <limits.h> exists even on freestanding compilers.  */
7956
 
 
7957
 
#ifdef __STDC__
7958
 
# include <limits.h>
7959
 
#else
7960
 
# include <assert.h>
7961
 
#endif
7962
 
 
7963
 
#undef shl_load
7964
 
 
7965
 
/* Override any gcc2 internal prototype to avoid an error.  */
7966
 
#ifdef __cplusplus
7967
 
extern "C"
7968
 
{
7969
 
#endif
7970
 
/* We use char because int might match the return type of a gcc2
7971
 
   builtin and then its argument prototype would still apply.  */
7972
 
char shl_load ();
7973
 
/* The GNU C library defines this for functions which it implements
7974
 
    to always fail with ENOSYS.  Some functions are actually named
7975
 
    something starting with __ and the normal name is an alias.  */
7976
 
#if defined (__stub_shl_load) || defined (__stub___shl_load)
7977
 
choke me
7978
 
#else
7979
 
char (*f) () = shl_load;
7980
 
#endif
7981
 
#ifdef __cplusplus
7982
 
}
7983
 
#endif
7984
 
 
7985
 
int
7986
 
main ()
7987
 
{
7988
 
return f != shl_load;
7989
 
  ;
7990
 
  return 0;
7991
 
}
7992
 
_ACEOF
7993
 
rm -f conftest.$ac_objext conftest$ac_exeext
7994
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7995
 
  (eval $ac_link) 2>conftest.er1
7996
 
  ac_status=$?
7997
 
  grep -v '^ *+' conftest.er1 >conftest.err
7998
 
  rm -f conftest.er1
7999
 
  cat conftest.err >&5
8000
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8001
 
  (exit $ac_status); } &&
8002
 
         { ac_try='test -z "$ac_c_werror_flag"
8003
 
                         || test ! -s conftest.err'
8004
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8005
 
  (eval $ac_try) 2>&5
8006
 
  ac_status=$?
8007
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8008
 
  (exit $ac_status); }; } &&
8009
 
         { ac_try='test -s conftest$ac_exeext'
8010
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8011
 
  (eval $ac_try) 2>&5
8012
 
  ac_status=$?
8013
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8014
 
  (exit $ac_status); }; }; then
8015
 
  ac_cv_func_shl_load=yes
8016
 
else
8017
 
  echo "$as_me: failed program was:" >&5
8018
 
sed 's/^/| /' conftest.$ac_ext >&5
8019
 
 
8020
 
ac_cv_func_shl_load=no
8021
 
fi
8022
 
rm -f conftest.err conftest.$ac_objext \
8023
 
      conftest$ac_exeext conftest.$ac_ext
8024
 
fi
8025
 
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8026
 
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8027
 
if test $ac_cv_func_shl_load = yes; then
8028
 
  lt_cv_dlopen="shl_load"
8029
 
else
8030
 
  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8031
 
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8032
 
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8033
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
8034
 
else
8035
 
  ac_check_lib_save_LIBS=$LIBS
8036
 
LIBS="-ldld  $LIBS"
8037
 
cat >conftest.$ac_ext <<_ACEOF
8038
 
/* confdefs.h.  */
8039
 
_ACEOF
8040
 
cat confdefs.h >>conftest.$ac_ext
8041
 
cat >>conftest.$ac_ext <<_ACEOF
8042
 
/* end confdefs.h.  */
8043
 
 
8044
 
/* Override any gcc2 internal prototype to avoid an error.  */
8045
 
#ifdef __cplusplus
8046
 
extern "C"
8047
 
#endif
8048
 
/* We use char because int might match the return type of a gcc2
8049
 
   builtin and then its argument prototype would still apply.  */
8050
 
char shl_load ();
8051
 
int
8052
 
main ()
8053
 
{
8054
 
shl_load ();
8055
 
  ;
8056
 
  return 0;
8057
 
}
8058
 
_ACEOF
8059
 
rm -f conftest.$ac_objext conftest$ac_exeext
8060
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8061
 
  (eval $ac_link) 2>conftest.er1
8062
 
  ac_status=$?
8063
 
  grep -v '^ *+' conftest.er1 >conftest.err
8064
 
  rm -f conftest.er1
8065
 
  cat conftest.err >&5
8066
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8067
 
  (exit $ac_status); } &&
8068
 
         { ac_try='test -z "$ac_c_werror_flag"
8069
 
                         || test ! -s conftest.err'
8070
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8071
 
  (eval $ac_try) 2>&5
8072
 
  ac_status=$?
8073
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8074
 
  (exit $ac_status); }; } &&
8075
 
         { ac_try='test -s conftest$ac_exeext'
8076
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8077
 
  (eval $ac_try) 2>&5
8078
 
  ac_status=$?
8079
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8080
 
  (exit $ac_status); }; }; then
8081
 
  ac_cv_lib_dld_shl_load=yes
8082
 
else
8083
 
  echo "$as_me: failed program was:" >&5
8084
 
sed 's/^/| /' conftest.$ac_ext >&5
8085
 
 
8086
 
ac_cv_lib_dld_shl_load=no
8087
 
fi
8088
 
rm -f conftest.err conftest.$ac_objext \
8089
 
      conftest$ac_exeext conftest.$ac_ext
8090
 
LIBS=$ac_check_lib_save_LIBS
8091
 
fi
8092
 
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8093
 
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8094
 
if test $ac_cv_lib_dld_shl_load = yes; then
8095
 
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8096
 
else
8097
 
  echo "$as_me:$LINENO: checking for dlopen" >&5
8098
 
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8099
 
if test "${ac_cv_func_dlopen+set}" = set; then
8100
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
8101
 
else
8102
 
  cat >conftest.$ac_ext <<_ACEOF
8103
 
/* confdefs.h.  */
8104
 
_ACEOF
8105
 
cat confdefs.h >>conftest.$ac_ext
8106
 
cat >>conftest.$ac_ext <<_ACEOF
8107
 
/* end confdefs.h.  */
8108
 
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8109
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8110
 
#define dlopen innocuous_dlopen
8111
 
 
8112
 
/* System header to define __stub macros and hopefully few prototypes,
8113
 
    which can conflict with char dlopen (); below.
8114
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8115
 
    <limits.h> exists even on freestanding compilers.  */
8116
 
 
8117
 
#ifdef __STDC__
8118
 
# include <limits.h>
8119
 
#else
8120
 
# include <assert.h>
8121
 
#endif
8122
 
 
8123
 
#undef dlopen
8124
 
 
8125
 
/* Override any gcc2 internal prototype to avoid an error.  */
8126
 
#ifdef __cplusplus
8127
 
extern "C"
8128
 
{
8129
 
#endif
8130
 
/* We use char because int might match the return type of a gcc2
8131
 
   builtin and then its argument prototype would still apply.  */
8132
 
char dlopen ();
8133
 
/* The GNU C library defines this for functions which it implements
8134
 
    to always fail with ENOSYS.  Some functions are actually named
8135
 
    something starting with __ and the normal name is an alias.  */
8136
 
#if defined (__stub_dlopen) || defined (__stub___dlopen)
8137
 
choke me
8138
 
#else
8139
 
char (*f) () = dlopen;
8140
 
#endif
8141
 
#ifdef __cplusplus
8142
 
}
8143
 
#endif
8144
 
 
8145
 
int
8146
 
main ()
8147
 
{
8148
 
return f != dlopen;
8149
 
  ;
8150
 
  return 0;
8151
 
}
8152
 
_ACEOF
8153
 
rm -f conftest.$ac_objext conftest$ac_exeext
8154
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8155
 
  (eval $ac_link) 2>conftest.er1
8156
 
  ac_status=$?
8157
 
  grep -v '^ *+' conftest.er1 >conftest.err
8158
 
  rm -f conftest.er1
8159
 
  cat conftest.err >&5
8160
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8161
 
  (exit $ac_status); } &&
8162
 
         { ac_try='test -z "$ac_c_werror_flag"
8163
 
                         || test ! -s conftest.err'
8164
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8165
 
  (eval $ac_try) 2>&5
8166
 
  ac_status=$?
8167
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8168
 
  (exit $ac_status); }; } &&
8169
 
         { ac_try='test -s conftest$ac_exeext'
8170
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8171
 
  (eval $ac_try) 2>&5
8172
 
  ac_status=$?
8173
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8174
 
  (exit $ac_status); }; }; then
8175
 
  ac_cv_func_dlopen=yes
8176
 
else
8177
 
  echo "$as_me: failed program was:" >&5
8178
 
sed 's/^/| /' conftest.$ac_ext >&5
8179
 
 
8180
 
ac_cv_func_dlopen=no
8181
 
fi
8182
 
rm -f conftest.err conftest.$ac_objext \
8183
 
      conftest$ac_exeext conftest.$ac_ext
8184
 
fi
8185
 
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8186
 
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8187
 
if test $ac_cv_func_dlopen = yes; then
8188
 
  lt_cv_dlopen="dlopen"
8189
 
else
8190
 
  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8191
 
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8192
 
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8193
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
8194
 
else
8195
 
  ac_check_lib_save_LIBS=$LIBS
8196
 
LIBS="-ldl  $LIBS"
8197
 
cat >conftest.$ac_ext <<_ACEOF
8198
 
/* confdefs.h.  */
8199
 
_ACEOF
8200
 
cat confdefs.h >>conftest.$ac_ext
8201
 
cat >>conftest.$ac_ext <<_ACEOF
8202
 
/* end confdefs.h.  */
8203
 
 
8204
 
/* Override any gcc2 internal prototype to avoid an error.  */
8205
 
#ifdef __cplusplus
8206
 
extern "C"
8207
 
#endif
8208
 
/* We use char because int might match the return type of a gcc2
8209
 
   builtin and then its argument prototype would still apply.  */
8210
 
char dlopen ();
8211
 
int
8212
 
main ()
8213
 
{
8214
 
dlopen ();
8215
 
  ;
8216
 
  return 0;
8217
 
}
8218
 
_ACEOF
8219
 
rm -f conftest.$ac_objext conftest$ac_exeext
8220
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8221
 
  (eval $ac_link) 2>conftest.er1
8222
 
  ac_status=$?
8223
 
  grep -v '^ *+' conftest.er1 >conftest.err
8224
 
  rm -f conftest.er1
8225
 
  cat conftest.err >&5
8226
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8227
 
  (exit $ac_status); } &&
8228
 
         { ac_try='test -z "$ac_c_werror_flag"
8229
 
                         || test ! -s conftest.err'
8230
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8231
 
  (eval $ac_try) 2>&5
8232
 
  ac_status=$?
8233
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8234
 
  (exit $ac_status); }; } &&
8235
 
         { ac_try='test -s conftest$ac_exeext'
8236
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8237
 
  (eval $ac_try) 2>&5
8238
 
  ac_status=$?
8239
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8240
 
  (exit $ac_status); }; }; then
8241
 
  ac_cv_lib_dl_dlopen=yes
8242
 
else
8243
 
  echo "$as_me: failed program was:" >&5
8244
 
sed 's/^/| /' conftest.$ac_ext >&5
8245
 
 
8246
 
ac_cv_lib_dl_dlopen=no
8247
 
fi
8248
 
rm -f conftest.err conftest.$ac_objext \
8249
 
      conftest$ac_exeext conftest.$ac_ext
8250
 
LIBS=$ac_check_lib_save_LIBS
8251
 
fi
8252
 
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8253
 
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8254
 
if test $ac_cv_lib_dl_dlopen = yes; then
8255
 
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8256
 
else
8257
 
  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8258
 
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8259
 
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8260
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
8261
 
else
8262
 
  ac_check_lib_save_LIBS=$LIBS
8263
 
LIBS="-lsvld  $LIBS"
8264
 
cat >conftest.$ac_ext <<_ACEOF
8265
 
/* confdefs.h.  */
8266
 
_ACEOF
8267
 
cat confdefs.h >>conftest.$ac_ext
8268
 
cat >>conftest.$ac_ext <<_ACEOF
8269
 
/* end confdefs.h.  */
8270
 
 
8271
 
/* Override any gcc2 internal prototype to avoid an error.  */
8272
 
#ifdef __cplusplus
8273
 
extern "C"
8274
 
#endif
8275
 
/* We use char because int might match the return type of a gcc2
8276
 
   builtin and then its argument prototype would still apply.  */
8277
 
char dlopen ();
8278
 
int
8279
 
main ()
8280
 
{
8281
 
dlopen ();
8282
 
  ;
8283
 
  return 0;
8284
 
}
8285
 
_ACEOF
8286
 
rm -f conftest.$ac_objext conftest$ac_exeext
8287
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8288
 
  (eval $ac_link) 2>conftest.er1
8289
 
  ac_status=$?
8290
 
  grep -v '^ *+' conftest.er1 >conftest.err
8291
 
  rm -f conftest.er1
8292
 
  cat conftest.err >&5
8293
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8294
 
  (exit $ac_status); } &&
8295
 
         { ac_try='test -z "$ac_c_werror_flag"
8296
 
                         || test ! -s conftest.err'
8297
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8298
 
  (eval $ac_try) 2>&5
8299
 
  ac_status=$?
8300
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8301
 
  (exit $ac_status); }; } &&
8302
 
         { ac_try='test -s conftest$ac_exeext'
8303
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8304
 
  (eval $ac_try) 2>&5
8305
 
  ac_status=$?
8306
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8307
 
  (exit $ac_status); }; }; then
8308
 
  ac_cv_lib_svld_dlopen=yes
8309
 
else
8310
 
  echo "$as_me: failed program was:" >&5
8311
 
sed 's/^/| /' conftest.$ac_ext >&5
8312
 
 
8313
 
ac_cv_lib_svld_dlopen=no
8314
 
fi
8315
 
rm -f conftest.err conftest.$ac_objext \
8316
 
      conftest$ac_exeext conftest.$ac_ext
8317
 
LIBS=$ac_check_lib_save_LIBS
8318
 
fi
8319
 
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8320
 
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8321
 
if test $ac_cv_lib_svld_dlopen = yes; then
8322
 
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8323
 
else
8324
 
  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8325
 
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8326
 
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8327
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
8328
 
else
8329
 
  ac_check_lib_save_LIBS=$LIBS
8330
 
LIBS="-ldld  $LIBS"
8331
 
cat >conftest.$ac_ext <<_ACEOF
8332
 
/* confdefs.h.  */
8333
 
_ACEOF
8334
 
cat confdefs.h >>conftest.$ac_ext
8335
 
cat >>conftest.$ac_ext <<_ACEOF
8336
 
/* end confdefs.h.  */
8337
 
 
8338
 
/* Override any gcc2 internal prototype to avoid an error.  */
8339
 
#ifdef __cplusplus
8340
 
extern "C"
8341
 
#endif
8342
 
/* We use char because int might match the return type of a gcc2
8343
 
   builtin and then its argument prototype would still apply.  */
8344
 
char dld_link ();
8345
 
int
8346
 
main ()
8347
 
{
8348
 
dld_link ();
8349
 
  ;
8350
 
  return 0;
8351
 
}
8352
 
_ACEOF
8353
 
rm -f conftest.$ac_objext conftest$ac_exeext
8354
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8355
 
  (eval $ac_link) 2>conftest.er1
8356
 
  ac_status=$?
8357
 
  grep -v '^ *+' conftest.er1 >conftest.err
8358
 
  rm -f conftest.er1
8359
 
  cat conftest.err >&5
8360
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8361
 
  (exit $ac_status); } &&
8362
 
         { ac_try='test -z "$ac_c_werror_flag"
8363
 
                         || test ! -s conftest.err'
8364
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8365
 
  (eval $ac_try) 2>&5
8366
 
  ac_status=$?
8367
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8368
 
  (exit $ac_status); }; } &&
8369
 
         { ac_try='test -s conftest$ac_exeext'
8370
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8371
 
  (eval $ac_try) 2>&5
8372
 
  ac_status=$?
8373
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8374
 
  (exit $ac_status); }; }; then
8375
 
  ac_cv_lib_dld_dld_link=yes
8376
 
else
8377
 
  echo "$as_me: failed program was:" >&5
8378
 
sed 's/^/| /' conftest.$ac_ext >&5
8379
 
 
8380
 
ac_cv_lib_dld_dld_link=no
8381
 
fi
8382
 
rm -f conftest.err conftest.$ac_objext \
8383
 
      conftest$ac_exeext conftest.$ac_ext
8384
 
LIBS=$ac_check_lib_save_LIBS
8385
 
fi
8386
 
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8387
 
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8388
 
if test $ac_cv_lib_dld_dld_link = yes; then
8389
 
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8390
 
fi
8391
 
 
8392
 
 
8393
 
fi
8394
 
 
8395
 
 
8396
 
fi
8397
 
 
8398
 
 
8399
 
fi
8400
 
 
8401
 
 
8402
 
fi
8403
 
 
8404
 
 
8405
 
fi
8406
 
 
8407
 
    ;;
8408
 
  esac
8409
 
 
8410
 
  if test "x$lt_cv_dlopen" != xno; then
8411
 
    enable_dlopen=yes
8412
 
  else
8413
 
    enable_dlopen=no
8414
 
  fi
8415
 
 
8416
 
  case $lt_cv_dlopen in
8417
 
  dlopen)
8418
 
    save_CPPFLAGS="$CPPFLAGS"
8419
 
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
8420
 
 
8421
 
    save_LDFLAGS="$LDFLAGS"
8422
 
    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8423
 
 
8424
 
    save_LIBS="$LIBS"
8425
 
    LIBS="$lt_cv_dlopen_libs $LIBS"
8426
 
 
8427
 
    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8428
 
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8429
 
if test "${lt_cv_dlopen_self+set}" = set; then
8430
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
8431
 
else
8432
 
          if test "$cross_compiling" = yes; then :
8433
 
  lt_cv_dlopen_self=cross
8434
 
else
8435
 
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8436
 
  lt_status=$lt_dlunknown
8437
 
  cat > conftest.$ac_ext <<EOF
8438
 
#line 8438 "configure"
8439
 
#include "confdefs.h"
8440
 
 
8441
 
#if HAVE_DLFCN_H
8442
 
#include <dlfcn.h>
8443
 
#endif
8444
 
 
8445
 
#include <stdio.h>
8446
 
 
8447
 
#ifdef RTLD_GLOBAL
8448
 
#  define LT_DLGLOBAL           RTLD_GLOBAL
8449
 
#else
8450
 
#  ifdef DL_GLOBAL
8451
 
#    define LT_DLGLOBAL         DL_GLOBAL
8452
 
#  else
8453
 
#    define LT_DLGLOBAL         0
8454
 
#  endif
8455
 
#endif
8456
 
 
8457
 
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8458
 
   find out it does not work in some platform. */
8459
 
#ifndef LT_DLLAZY_OR_NOW
8460
 
#  ifdef RTLD_LAZY
8461
 
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
8462
 
#  else
8463
 
#    ifdef DL_LAZY
8464
 
#      define LT_DLLAZY_OR_NOW          DL_LAZY
8465
 
#    else
8466
 
#      ifdef RTLD_NOW
8467
 
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
8468
 
#      else
8469
 
#        ifdef DL_NOW
8470
 
#          define LT_DLLAZY_OR_NOW      DL_NOW
8471
 
#        else
8472
 
#          define LT_DLLAZY_OR_NOW      0
8473
 
#        endif
8474
 
#      endif
8475
 
#    endif
8476
 
#  endif
8477
 
#endif
8478
 
 
8479
 
#ifdef __cplusplus
8480
 
extern "C" void exit (int);
8481
 
#endif
8482
 
 
8483
 
void fnord() { int i=42;}
8484
 
int main ()
8485
 
{
8486
 
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8487
 
  int status = $lt_dlunknown;
8488
 
 
8489
 
  if (self)
8490
 
    {
8491
 
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
8492
 
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8493
 
      /* dlclose (self); */
8494
 
    }
8495
 
 
8496
 
    exit (status);
8497
 
}
8498
 
EOF
8499
 
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8500
 
  (eval $ac_link) 2>&5
8501
 
  ac_status=$?
8502
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8503
 
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8504
 
    (./conftest; exit; ) 2>/dev/null
8505
 
    lt_status=$?
8506
 
    case x$lt_status in
8507
 
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8508
 
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8509
 
      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
8510
 
    esac
8511
 
  else :
8512
 
    # compilation failed
8513
 
    lt_cv_dlopen_self=no
8514
 
  fi
8515
 
fi
8516
 
rm -fr conftest*
8517
 
 
8518
 
 
8519
 
fi
8520
 
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
8521
 
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
8522
 
 
8523
 
    if test "x$lt_cv_dlopen_self" = xyes; then
8524
 
      LDFLAGS="$LDFLAGS $link_static_flag"
8525
 
      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8526
 
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
8527
 
if test "${lt_cv_dlopen_self_static+set}" = set; then
8528
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
8529
 
else
8530
 
          if test "$cross_compiling" = yes; then :
8531
 
  lt_cv_dlopen_self_static=cross
8532
 
else
8533
 
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8534
 
  lt_status=$lt_dlunknown
8535
 
  cat > conftest.$ac_ext <<EOF
8536
 
#line 8536 "configure"
8537
 
#include "confdefs.h"
8538
 
 
8539
 
#if HAVE_DLFCN_H
8540
 
#include <dlfcn.h>
8541
 
#endif
8542
 
 
8543
 
#include <stdio.h>
8544
 
 
8545
 
#ifdef RTLD_GLOBAL
8546
 
#  define LT_DLGLOBAL           RTLD_GLOBAL
8547
 
#else
8548
 
#  ifdef DL_GLOBAL
8549
 
#    define LT_DLGLOBAL         DL_GLOBAL
8550
 
#  else
8551
 
#    define LT_DLGLOBAL         0
8552
 
#  endif
8553
 
#endif
8554
 
 
8555
 
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8556
 
   find out it does not work in some platform. */
8557
 
#ifndef LT_DLLAZY_OR_NOW
8558
 
#  ifdef RTLD_LAZY
8559
 
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
8560
 
#  else
8561
 
#    ifdef DL_LAZY
8562
 
#      define LT_DLLAZY_OR_NOW          DL_LAZY
8563
 
#    else
8564
 
#      ifdef RTLD_NOW
8565
 
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
8566
 
#      else
8567
 
#        ifdef DL_NOW
8568
 
#          define LT_DLLAZY_OR_NOW      DL_NOW
8569
 
#        else
8570
 
#          define LT_DLLAZY_OR_NOW      0
8571
 
#        endif
8572
 
#      endif
8573
 
#    endif
8574
 
#  endif
8575
 
#endif
8576
 
 
8577
 
#ifdef __cplusplus
8578
 
extern "C" void exit (int);
8579
 
#endif
8580
 
 
8581
 
void fnord() { int i=42;}
8582
 
int main ()
8583
 
{
8584
 
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8585
 
  int status = $lt_dlunknown;
8586
 
 
8587
 
  if (self)
8588
 
    {
8589
 
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
8590
 
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8591
 
      /* dlclose (self); */
8592
 
    }
8593
 
 
8594
 
    exit (status);
8595
 
}
8596
 
EOF
8597
 
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8598
 
  (eval $ac_link) 2>&5
8599
 
  ac_status=$?
8600
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8601
 
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8602
 
    (./conftest; exit; ) 2>/dev/null
8603
 
    lt_status=$?
8604
 
    case x$lt_status in
8605
 
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8606
 
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
8607
 
      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
8608
 
    esac
8609
 
  else :
8610
 
    # compilation failed
8611
 
    lt_cv_dlopen_self_static=no
8612
 
  fi
8613
 
fi
8614
 
rm -fr conftest*
8615
 
 
8616
 
 
8617
 
fi
8618
 
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
8619
 
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
8620
 
    fi
8621
 
 
8622
 
    CPPFLAGS="$save_CPPFLAGS"
8623
 
    LDFLAGS="$save_LDFLAGS"
8624
 
    LIBS="$save_LIBS"
8625
 
    ;;
8626
 
  esac
8627
 
 
8628
 
  case $lt_cv_dlopen_self in
8629
 
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
8630
 
  *) enable_dlopen_self=unknown ;;
8631
 
  esac
8632
 
 
8633
 
  case $lt_cv_dlopen_self_static in
8634
 
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
8635
 
  *) enable_dlopen_self_static=unknown ;;
8636
 
  esac
8637
 
fi
8638
 
 
8639
 
 
8640
 
# Report which librarie types wil actually be built
8641
 
echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
8642
 
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
8643
 
echo "$as_me:$LINENO: result: $can_build_shared" >&5
8644
 
echo "${ECHO_T}$can_build_shared" >&6
8645
 
 
8646
 
echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
8647
 
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
8648
 
test "$can_build_shared" = "no" && enable_shared=no
8649
 
 
8650
 
# On AIX, shared libraries and static libraries use the same namespace, and
8651
 
# are all built from PIC.
8652
 
case "$host_os" in
8653
 
aix3*)
8654
 
  test "$enable_shared" = yes && enable_static=no
8655
 
  if test -n "$RANLIB"; then
8656
 
    archive_cmds="$archive_cmds~\$RANLIB \$lib"
8657
 
    postinstall_cmds='$RANLIB $lib'
8658
 
  fi
8659
 
  ;;
8660
 
 
8661
 
aix4* | aix5*)
8662
 
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
8663
 
    test "$enable_shared" = yes && enable_static=no
8664
 
  fi
8665
 
    ;;
8666
 
esac
8667
 
echo "$as_me:$LINENO: result: $enable_shared" >&5
8668
 
echo "${ECHO_T}$enable_shared" >&6
8669
 
 
8670
 
echo "$as_me:$LINENO: checking whether to build static libraries" >&5
8671
 
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
8672
 
# Make sure either enable_shared or enable_static is yes.
8673
 
test "$enable_shared" = yes || enable_static=yes
8674
 
echo "$as_me:$LINENO: result: $enable_static" >&5
8675
 
echo "${ECHO_T}$enable_static" >&6
8676
 
 
8677
 
# The else clause should only fire when bootstrapping the
8678
 
# libtool distribution, otherwise you forgot to ship ltmain.sh
8679
 
# with your package, and you will get complaints that there are
8680
 
# no rules to generate ltmain.sh.
8681
 
if test -f "$ltmain"; then
8682
 
  # See if we are running on zsh, and set the options which allow our commands through
8683
 
  # without removal of \ escapes.
8684
 
  if test -n "${ZSH_VERSION+set}" ; then
8685
 
    setopt NO_GLOB_SUBST
8686
 
  fi
8687
 
  # Now quote all the things that may contain metacharacters while being
8688
 
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
8689
 
  # variables and quote the copies for generation of the libtool script.
8690
 
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
8691
 
    SED SHELL STRIP \
8692
 
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
8693
 
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
8694
 
    deplibs_check_method reload_flag reload_cmds need_locks \
8695
 
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
8696
 
    lt_cv_sys_global_symbol_to_c_name_address \
8697
 
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
8698
 
    old_postinstall_cmds old_postuninstall_cmds \
8699
 
    compiler \
8700
 
    CC \
8701
 
    LD \
8702
 
    lt_prog_compiler_wl \
8703
 
    lt_prog_compiler_pic \
8704
 
    lt_prog_compiler_static \
8705
 
    lt_prog_compiler_no_builtin_flag \
8706
 
    export_dynamic_flag_spec \
8707
 
    thread_safe_flag_spec \
8708
 
    whole_archive_flag_spec \
8709
 
    enable_shared_with_static_runtimes \
8710
 
    old_archive_cmds \
8711
 
    old_archive_from_new_cmds \
8712
 
    predep_objects \
8713
 
    postdep_objects \
8714
 
    predeps \
8715
 
    postdeps \
8716
 
    compiler_lib_search_path \
8717
 
    archive_cmds \
8718
 
    archive_expsym_cmds \
8719
 
    postinstall_cmds \
8720
 
    postuninstall_cmds \
8721
 
    old_archive_from_expsyms_cmds \
8722
 
    allow_undefined_flag \
8723
 
    no_undefined_flag \
8724
 
    export_symbols_cmds \
8725
 
    hardcode_libdir_flag_spec \
8726
 
    hardcode_libdir_flag_spec_ld \
8727
 
    hardcode_libdir_separator \
8728
 
    hardcode_automatic \
8729
 
    module_cmds \
8730
 
    module_expsym_cmds \
8731
 
    lt_cv_prog_compiler_c_o \
8732
 
    exclude_expsyms \
8733
 
    include_expsyms; do
8734
 
 
8735
 
    case $var in
8736
 
    old_archive_cmds | \
8737
 
    old_archive_from_new_cmds | \
8738
 
    archive_cmds | \
8739
 
    archive_expsym_cmds | \
8740
 
    module_cmds | \
8741
 
    module_expsym_cmds | \
8742
 
    old_archive_from_expsyms_cmds | \
8743
 
    export_symbols_cmds | \
8744
 
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
8745
 
    postinstall_cmds | postuninstall_cmds | \
8746
 
    old_postinstall_cmds | old_postuninstall_cmds | \
8747
 
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
8748
 
      # Double-quote double-evaled strings.
8749
 
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
8750
 
      ;;
8751
 
    *)
8752
 
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
8753
 
      ;;
8754
 
    esac
8755
 
  done
8756
 
 
8757
 
  case $lt_echo in
8758
 
  *'\$0 --fallback-echo"')
8759
 
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
8760
 
    ;;
8761
 
  esac
8762
 
 
8763
 
cfgfile="${ofile}T"
8764
 
  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
8765
 
  $rm -f "$cfgfile"
8766
 
  { echo "$as_me:$LINENO: creating $ofile" >&5
8767
 
echo "$as_me: creating $ofile" >&6;}
8768
 
 
8769
 
  cat <<__EOF__ >> "$cfgfile"
8770
 
#! $SHELL
8771
 
 
8772
 
# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
8773
 
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
8774
 
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
8775
 
#
8776
 
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
8777
 
# Free Software Foundation, Inc.
8778
 
#
8779
 
# This file is part of GNU Libtool:
8780
 
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
8781
 
#
8782
 
# This program is free software; you can redistribute it and/or modify
8783
 
# it under the terms of the GNU General Public License as published by
8784
 
# the Free Software Foundation; either version 2 of the License, or
8785
 
# (at your option) any later version.
8786
 
#
8787
 
# This program is distributed in the hope that it will be useful, but
8788
 
# WITHOUT ANY WARRANTY; without even the implied warranty of
8789
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
8790
 
# General Public License for more details.
8791
 
#
8792
 
# You should have received a copy of the GNU General Public License
8793
 
# along with this program; if not, write to the Free Software
8794
 
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
8795
 
#
8796
 
# As a special exception to the GNU General Public License, if you
8797
 
# distribute this file as part of a program that contains a
8798
 
# configuration script generated by Autoconf, you may include it under
8799
 
# the same distribution terms that you use for the rest of that program.
8800
 
 
8801
 
# A sed program that does not truncate output.
8802
 
SED=$lt_SED
8803
 
 
8804
 
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
8805
 
Xsed="$SED -e s/^X//"
8806
 
 
8807
 
# The HP-UX ksh and POSIX shell print the target directory to stdout
8808
 
# if CDPATH is set.
8809
 
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
8810
 
 
8811
 
# The names of the tagged configurations supported by this script.
8812
 
available_tags=
8813
 
 
8814
 
# ### BEGIN LIBTOOL CONFIG
8815
 
 
8816
 
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8817
 
 
8818
 
# Shell to use when invoking shell scripts.
8819
 
SHELL=$lt_SHELL
8820
 
 
8821
 
# Whether or not to build shared libraries.
8822
 
build_libtool_libs=$enable_shared
8823
 
 
8824
 
# Whether or not to build static libraries.
8825
 
build_old_libs=$enable_static
8826
 
 
8827
 
# Whether or not to add -lc for building shared libraries.
8828
 
build_libtool_need_lc=$archive_cmds_need_lc
8829
 
 
8830
 
# Whether or not to disallow shared libs when runtime libs are static
8831
 
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
8832
 
 
8833
 
# Whether or not to optimize for fast installation.
8834
 
fast_install=$enable_fast_install
8835
 
 
8836
 
# The host system.
8837
 
host_alias=$host_alias
8838
 
host=$host
8839
 
host_os=$host_os
8840
 
 
8841
 
# The build system.
8842
 
build_alias=$build_alias
8843
 
build=$build
8844
 
build_os=$build_os
8845
 
 
8846
 
# An echo program that does not interpret backslashes.
8847
 
echo=$lt_echo
8848
 
 
8849
 
# The archiver.
8850
 
AR=$lt_AR
8851
 
AR_FLAGS=$lt_AR_FLAGS
8852
 
 
8853
 
# A C compiler.
8854
 
LTCC=$lt_LTCC
8855
 
 
8856
 
# A language-specific compiler.
8857
 
CC=$lt_compiler
8858
 
 
8859
 
# Is the compiler the GNU C compiler?
8860
 
with_gcc=$GCC
8861
 
 
8862
 
# An ERE matcher.
8863
 
EGREP=$lt_EGREP
8864
 
 
8865
 
# The linker used to build libraries.
8866
 
LD=$lt_LD
8867
 
 
8868
 
# Whether we need hard or soft links.
8869
 
LN_S=$lt_LN_S
8870
 
 
8871
 
# A BSD-compatible nm program.
8872
 
NM=$lt_NM
8873
 
 
8874
 
# A symbol stripping program
8875
 
STRIP=$lt_STRIP
8876
 
 
8877
 
# Used to examine libraries when file_magic_cmd begins "file"
8878
 
MAGIC_CMD=$MAGIC_CMD
8879
 
 
8880
 
# Used on cygwin: DLL creation program.
8881
 
DLLTOOL="$DLLTOOL"
8882
 
 
8883
 
# Used on cygwin: object dumper.
8884
 
OBJDUMP="$OBJDUMP"
8885
 
 
8886
 
# Used on cygwin: assembler.
8887
 
AS="$AS"
8888
 
 
8889
 
# The name of the directory that contains temporary libtool files.
8890
 
objdir=$objdir
8891
 
 
8892
 
# How to create reloadable object files.
8893
 
reload_flag=$lt_reload_flag
8894
 
reload_cmds=$lt_reload_cmds
8895
 
 
8896
 
# How to pass a linker flag through the compiler.
8897
 
wl=$lt_lt_prog_compiler_wl
8898
 
 
8899
 
# Object file suffix (normally "o").
8900
 
objext="$ac_objext"
8901
 
 
8902
 
# Old archive suffix (normally "a").
8903
 
libext="$libext"
8904
 
 
8905
 
# Shared library suffix (normally ".so").
8906
 
shrext_cmds='$shrext_cmds'
8907
 
 
8908
 
# Executable file suffix (normally "").
8909
 
exeext="$exeext"
8910
 
 
8911
 
# Additional compiler flags for building library objects.
8912
 
pic_flag=$lt_lt_prog_compiler_pic
8913
 
pic_mode=$pic_mode
8914
 
 
8915
 
# What is the maximum length of a command?
8916
 
max_cmd_len=$lt_cv_sys_max_cmd_len
8917
 
 
8918
 
# Does compiler simultaneously support -c and -o options?
8919
 
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
8920
 
 
8921
 
# Must we lock files when doing compilation ?
8922
 
need_locks=$lt_need_locks
8923
 
 
8924
 
# Do we need the lib prefix for modules?
8925
 
need_lib_prefix=$need_lib_prefix
8926
 
 
8927
 
# Do we need a version for libraries?
8928
 
need_version=$need_version
8929
 
 
8930
 
# Whether dlopen is supported.
8931
 
dlopen_support=$enable_dlopen
8932
 
 
8933
 
# Whether dlopen of programs is supported.
8934
 
dlopen_self=$enable_dlopen_self
8935
 
 
8936
 
# Whether dlopen of statically linked programs is supported.
8937
 
dlopen_self_static=$enable_dlopen_self_static
8938
 
 
8939
 
# Compiler flag to prevent dynamic linking.
8940
 
link_static_flag=$lt_lt_prog_compiler_static
8941
 
 
8942
 
# Compiler flag to turn off builtin functions.
8943
 
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
8944
 
 
8945
 
# Compiler flag to allow reflexive dlopens.
8946
 
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
8947
 
 
8948
 
# Compiler flag to generate shared objects directly from archives.
8949
 
whole_archive_flag_spec=$lt_whole_archive_flag_spec
8950
 
 
8951
 
# Compiler flag to generate thread-safe objects.
8952
 
thread_safe_flag_spec=$lt_thread_safe_flag_spec
8953
 
 
8954
 
# Library versioning type.
8955
 
version_type=$version_type
8956
 
 
8957
 
# Format of library name prefix.
8958
 
libname_spec=$lt_libname_spec
8959
 
 
8960
 
# List of archive names.  First name is the real one, the rest are links.
8961
 
# The last name is the one that the linker finds with -lNAME.
8962
 
library_names_spec=$lt_library_names_spec
8963
 
 
8964
 
# The coded name of the library, if different from the real name.
8965
 
soname_spec=$lt_soname_spec
8966
 
 
8967
 
# Commands used to build and install an old-style archive.
8968
 
RANLIB=$lt_RANLIB
8969
 
old_archive_cmds=$lt_old_archive_cmds
8970
 
old_postinstall_cmds=$lt_old_postinstall_cmds
8971
 
old_postuninstall_cmds=$lt_old_postuninstall_cmds
8972
 
 
8973
 
# Create an old-style archive from a shared archive.
8974
 
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
8975
 
 
8976
 
# Create a temporary old-style archive to link instead of a shared archive.
8977
 
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
8978
 
 
8979
 
# Commands used to build and install a shared archive.
8980
 
archive_cmds=$lt_archive_cmds
8981
 
archive_expsym_cmds=$lt_archive_expsym_cmds
8982
 
postinstall_cmds=$lt_postinstall_cmds
8983
 
postuninstall_cmds=$lt_postuninstall_cmds
8984
 
 
8985
 
# Commands used to build a loadable module (assumed same as above if empty)
8986
 
module_cmds=$lt_module_cmds
8987
 
module_expsym_cmds=$lt_module_expsym_cmds
8988
 
 
8989
 
# Commands to strip libraries.
8990
 
old_striplib=$lt_old_striplib
8991
 
striplib=$lt_striplib
8992
 
 
8993
 
# Dependencies to place before the objects being linked to create a
8994
 
# shared library.
8995
 
predep_objects=$lt_predep_objects
8996
 
 
8997
 
# Dependencies to place after the objects being linked to create a
8998
 
# shared library.
8999
 
postdep_objects=$lt_postdep_objects
9000
 
 
9001
 
# Dependencies to place before the objects being linked to create a
9002
 
# shared library.
9003
 
predeps=$lt_predeps
9004
 
 
9005
 
# Dependencies to place after the objects being linked to create a
9006
 
# shared library.
9007
 
postdeps=$lt_postdeps
9008
 
 
9009
 
# The library search path used internally by the compiler when linking
9010
 
# a shared library.
9011
 
compiler_lib_search_path=$lt_compiler_lib_search_path
9012
 
 
9013
 
# Method to check whether dependent libraries are shared objects.
9014
 
deplibs_check_method=$lt_deplibs_check_method
9015
 
 
9016
 
# Command to use when deplibs_check_method == file_magic.
9017
 
file_magic_cmd=$lt_file_magic_cmd
9018
 
 
9019
 
# Flag that allows shared libraries with undefined symbols to be built.
9020
 
allow_undefined_flag=$lt_allow_undefined_flag
9021
 
 
9022
 
# Flag that forces no undefined symbols.
9023
 
no_undefined_flag=$lt_no_undefined_flag
9024
 
 
9025
 
# Commands used to finish a libtool library installation in a directory.
9026
 
finish_cmds=$lt_finish_cmds
9027
 
 
9028
 
# Same as above, but a single script fragment to be evaled but not shown.
9029
 
finish_eval=$lt_finish_eval
9030
 
 
9031
 
# Take the output of nm and produce a listing of raw symbols and C names.
9032
 
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9033
 
 
9034
 
# Transform the output of nm in a proper C declaration
9035
 
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9036
 
 
9037
 
# Transform the output of nm in a C name address pair
9038
 
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9039
 
 
9040
 
# This is the shared library runtime path variable.
9041
 
runpath_var=$runpath_var
9042
 
 
9043
 
# This is the shared library path variable.
9044
 
shlibpath_var=$shlibpath_var
9045
 
 
9046
 
# Is shlibpath searched before the hard-coded library search path?
9047
 
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9048
 
 
9049
 
# How to hardcode a shared library path into an executable.
9050
 
hardcode_action=$hardcode_action
9051
 
 
9052
 
# Whether we should hardcode library paths into libraries.
9053
 
hardcode_into_libs=$hardcode_into_libs
9054
 
 
9055
 
# Flag to hardcode \$libdir into a binary during linking.
9056
 
# This must work even if \$libdir does not exist.
9057
 
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9058
 
 
9059
 
# If ld is used when linking, flag to hardcode \$libdir into
9060
 
# a binary during linking. This must work even if \$libdir does
9061
 
# not exist.
9062
 
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9063
 
 
9064
 
# Whether we need a single -rpath flag with a separated argument.
9065
 
hardcode_libdir_separator=$lt_hardcode_libdir_separator
9066
 
 
9067
 
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9068
 
# resulting binary.
9069
 
hardcode_direct=$hardcode_direct
9070
 
 
9071
 
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9072
 
# resulting binary.
9073
 
hardcode_minus_L=$hardcode_minus_L
9074
 
 
9075
 
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9076
 
# the resulting binary.
9077
 
hardcode_shlibpath_var=$hardcode_shlibpath_var
9078
 
 
9079
 
# Set to yes if building a shared library automatically hardcodes DIR into the library
9080
 
# and all subsequent libraries and executables linked against it.
9081
 
hardcode_automatic=$hardcode_automatic
9082
 
 
9083
 
# Variables whose values should be saved in libtool wrapper scripts and
9084
 
# restored at relink time.
9085
 
variables_saved_for_relink="$variables_saved_for_relink"
9086
 
 
9087
 
# Whether libtool must link a program against all its dependency libraries.
9088
 
link_all_deplibs=$link_all_deplibs
9089
 
 
9090
 
# Compile-time system search path for libraries
9091
 
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9092
 
 
9093
 
# Run-time system search path for libraries
9094
 
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9095
 
 
9096
 
# Fix the shell variable \$srcfile for the compiler.
9097
 
fix_srcfile_path="$fix_srcfile_path"
9098
 
 
9099
 
# Set to yes if exported symbols are required.
9100
 
always_export_symbols=$always_export_symbols
9101
 
 
9102
 
# The commands to list exported symbols.
9103
 
export_symbols_cmds=$lt_export_symbols_cmds
9104
 
 
9105
 
# The commands to extract the exported symbol list from a shared archive.
9106
 
extract_expsyms_cmds=$lt_extract_expsyms_cmds
9107
 
 
9108
 
# Symbols that should not be listed in the preloaded symbols.
9109
 
exclude_expsyms=$lt_exclude_expsyms
9110
 
 
9111
 
# Symbols that must always be exported.
9112
 
include_expsyms=$lt_include_expsyms
9113
 
 
9114
 
# ### END LIBTOOL CONFIG
9115
 
 
9116
 
__EOF__
9117
 
 
9118
 
 
9119
 
  case $host_os in
9120
 
  aix3*)
9121
 
    cat <<\EOF >> "$cfgfile"
9122
 
 
9123
 
# AIX sometimes has problems with the GCC collect2 program.  For some
9124
 
# reason, if we set the COLLECT_NAMES environment variable, the problems
9125
 
# vanish in a puff of smoke.
9126
 
if test "X${COLLECT_NAMES+set}" != Xset; then
9127
 
  COLLECT_NAMES=
9128
 
  export COLLECT_NAMES
9129
 
fi
9130
 
EOF
9131
 
    ;;
9132
 
  esac
9133
 
 
9134
 
  # We use sed instead of cat because bash on DJGPP gets confused if
9135
 
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
9136
 
  # text mode, it properly converts lines to CR/LF.  This bash problem
9137
 
  # is reportedly fixed, but why not run on old versions too?
9138
 
  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9139
 
 
9140
 
  mv -f "$cfgfile" "$ofile" || \
9141
 
    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9142
 
  chmod +x "$ofile"
9143
 
 
9144
 
else
9145
 
  # If there is no Makefile yet, we rely on a make rule to execute
9146
 
  # `config.status --recheck' to rerun these tests and create the
9147
 
  # libtool script then.
9148
 
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
9149
 
  if test -f "$ltmain_in"; then
9150
 
    test -f Makefile && make "$ltmain"
9151
 
  fi
9152
 
fi
9153
 
 
9154
 
 
9155
 
ac_ext=c
9156
 
ac_cpp='$CPP $CPPFLAGS'
9157
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9158
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9159
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
9160
 
 
9161
 
CC="$lt_save_CC"
9162
 
 
9163
 
 
9164
 
# Check whether --with-tags or --without-tags was given.
9165
 
if test "${with_tags+set}" = set; then
9166
 
  withval="$with_tags"
9167
 
  tagnames="$withval"
9168
 
fi;
9169
 
 
9170
 
if test -f "$ltmain" && test -n "$tagnames"; then
9171
 
  if test ! -f "${ofile}"; then
9172
 
    { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9173
 
echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9174
 
  fi
9175
 
 
9176
 
  if test -z "$LTCC"; then
9177
 
    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9178
 
    if test -z "$LTCC"; then
9179
 
      { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9180
 
echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9181
 
    else
9182
 
      { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9183
 
echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9184
 
    fi
9185
 
  fi
9186
 
 
9187
 
  # Extract list of available tagged configurations in $ofile.
9188
 
  # Note that this assumes the entire list is on one line.
9189
 
  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9190
 
 
9191
 
  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9192
 
  for tagname in $tagnames; do
9193
 
    IFS="$lt_save_ifs"
9194
 
    # Check whether tagname contains only valid characters
9195
 
    case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9196
 
    "") ;;
9197
 
    *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9198
 
echo "$as_me: error: invalid tag name: $tagname" >&2;}
9199
 
   { (exit 1); exit 1; }; }
9200
 
        ;;
9201
 
    esac
9202
 
 
9203
 
    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9204
 
    then
9205
 
      { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9206
 
echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9207
 
   { (exit 1); exit 1; }; }
9208
 
    fi
9209
 
 
9210
 
    # Update the list of available tags.
9211
 
    if test -n "$tagname"; then
9212
 
      echo appending configuration tag \"$tagname\" to $ofile
9213
 
 
9214
 
      case $tagname in
9215
 
      CXX)
9216
 
        if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
9217
 
            ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
9218
 
            (test "X$CXX" != "Xg++"))) ; then
9219
 
          ac_ext=cc
9220
 
ac_cpp='$CXXCPP $CPPFLAGS'
9221
 
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9222
 
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9223
 
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9224
 
 
9225
 
 
9226
 
 
9227
 
 
9228
 
archive_cmds_need_lc_CXX=no
9229
 
allow_undefined_flag_CXX=
9230
 
always_export_symbols_CXX=no
9231
 
archive_expsym_cmds_CXX=
9232
 
export_dynamic_flag_spec_CXX=
9233
 
hardcode_direct_CXX=no
9234
 
hardcode_libdir_flag_spec_CXX=
9235
 
hardcode_libdir_flag_spec_ld_CXX=
9236
 
hardcode_libdir_separator_CXX=
9237
 
hardcode_minus_L_CXX=no
9238
 
hardcode_automatic_CXX=no
9239
 
module_cmds_CXX=
9240
 
module_expsym_cmds_CXX=
9241
 
link_all_deplibs_CXX=unknown
9242
 
old_archive_cmds_CXX=$old_archive_cmds
9243
 
no_undefined_flag_CXX=
9244
 
whole_archive_flag_spec_CXX=
9245
 
enable_shared_with_static_runtimes_CXX=no
9246
 
 
9247
 
# Dependencies to place before and after the object being linked:
9248
 
predep_objects_CXX=
9249
 
postdep_objects_CXX=
9250
 
predeps_CXX=
9251
 
postdeps_CXX=
9252
 
compiler_lib_search_path_CXX=
9253
 
 
9254
 
# Source file extension for C++ test sources.
9255
 
ac_ext=cc
9256
 
 
9257
 
# Object file extension for compiled C++ test sources.
9258
 
objext=o
9259
 
objext_CXX=$objext
9260
 
 
9261
 
# Code to be used in simple compile tests
9262
 
lt_simple_compile_test_code="int some_variable = 0;\n"
9263
 
 
9264
 
# Code to be used in simple link tests
9265
 
lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
9266
 
 
9267
 
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
9268
 
 
9269
 
# If no C compiler was specified, use CC.
9270
 
LTCC=${LTCC-"$CC"}
9271
 
 
9272
 
# Allow CC to be a program name with arguments.
9273
 
compiler=$CC
9274
 
 
9275
 
 
9276
 
# Allow CC to be a program name with arguments.
9277
 
lt_save_CC=$CC
9278
 
lt_save_LD=$LD
9279
 
lt_save_GCC=$GCC
9280
 
GCC=$GXX
9281
 
lt_save_with_gnu_ld=$with_gnu_ld
9282
 
lt_save_path_LD=$lt_cv_path_LD
9283
 
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9284
 
  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9285
 
else
9286
 
  unset lt_cv_prog_gnu_ld
9287
 
fi
9288
 
if test -n "${lt_cv_path_LDCXX+set}"; then
9289
 
  lt_cv_path_LD=$lt_cv_path_LDCXX
9290
 
else
9291
 
  unset lt_cv_path_LD
9292
 
fi
9293
 
test -z "${LDCXX+set}" || LD=$LDCXX
9294
 
CC=${CXX-"c++"}
9295
 
compiler=$CC
9296
 
compiler_CXX=$CC
9297
 
cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
9298
 
 
9299
 
# We don't want -fno-exception wen compiling C++ code, so set the
9300
 
# no_builtin_flag separately
9301
 
if test "$GXX" = yes; then
9302
 
  lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9303
 
else
9304
 
  lt_prog_compiler_no_builtin_flag_CXX=
9305
 
fi
9306
 
 
9307
 
if test "$GXX" = yes; then
9308
 
  # Set up default GNU C++ configuration
9309
 
 
9310
 
 
9311
 
# Check whether --with-gnu-ld or --without-gnu-ld was given.
9312
 
if test "${with_gnu_ld+set}" = set; then
9313
 
  withval="$with_gnu_ld"
9314
 
  test "$withval" = no || with_gnu_ld=yes
9315
 
else
9316
 
  with_gnu_ld=no
9317
 
fi;
9318
 
ac_prog=ld
9319
 
if test "$GCC" = yes; then
9320
 
  # Check if gcc -print-prog-name=ld gives a path.
9321
 
  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9322
 
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9323
 
  case $host in
9324
 
  *-*-mingw*)
9325
 
    # gcc leaves a trailing carriage return which upsets mingw
9326
 
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9327
 
  *)
9328
 
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9329
 
  esac
9330
 
  case $ac_prog in
9331
 
    # Accept absolute paths.
9332
 
    [\\/]* | ?:[\\/]*)
9333
 
      re_direlt='/[^/][^/]*/\.\./'
9334
 
      # Canonicalize the pathname of ld
9335
 
      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9336
 
      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9337
 
        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9338
 
      done
9339
 
      test -z "$LD" && LD="$ac_prog"
9340
 
      ;;
9341
 
  "")
9342
 
    # If it fails, then pretend we aren't using GCC.
9343
 
    ac_prog=ld
9344
 
    ;;
9345
 
  *)
9346
 
    # If it is relative, then search for the first ld in PATH.
9347
 
    with_gnu_ld=unknown
9348
 
    ;;
9349
 
  esac
9350
 
elif test "$with_gnu_ld" = yes; then
9351
 
  echo "$as_me:$LINENO: checking for GNU ld" >&5
9352
 
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9353
 
else
9354
 
  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9355
 
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9356
 
fi
9357
 
if test "${lt_cv_path_LD+set}" = set; then
9358
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
9359
 
else
9360
 
  if test -z "$LD"; then
9361
 
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9362
 
  for ac_dir in $PATH; do
9363
 
    IFS="$lt_save_ifs"
9364
 
    test -z "$ac_dir" && ac_dir=.
9365
 
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9366
 
      lt_cv_path_LD="$ac_dir/$ac_prog"
9367
 
      # Check to see if the program is GNU ld.  I'd rather use --version,
9368
 
      # but apparently some GNU ld's only accept -v.
9369
 
      # Break only if it was the GNU/non-GNU ld that we prefer.
9370
 
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9371
 
      *GNU* | *'with BFD'*)
9372
 
        test "$with_gnu_ld" != no && break
9373
 
        ;;
9374
 
      *)
9375
 
        test "$with_gnu_ld" != yes && break
9376
 
        ;;
9377
 
      esac
9378
 
    fi
9379
 
  done
9380
 
  IFS="$lt_save_ifs"
9381
 
else
9382
 
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
9383
 
fi
9384
 
fi
9385
 
 
9386
 
LD="$lt_cv_path_LD"
9387
 
if test -n "$LD"; then
9388
 
  echo "$as_me:$LINENO: result: $LD" >&5
9389
 
echo "${ECHO_T}$LD" >&6
9390
 
else
9391
 
  echo "$as_me:$LINENO: result: no" >&5
9392
 
echo "${ECHO_T}no" >&6
9393
 
fi
9394
 
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9395
 
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9396
 
   { (exit 1); exit 1; }; }
9397
 
echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9398
 
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9399
 
if test "${lt_cv_prog_gnu_ld+set}" = set; then
9400
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
9401
 
else
9402
 
  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9403
 
case `$LD -v 2>&1 </dev/null` in
9404
 
*GNU* | *'with BFD'*)
9405
 
  lt_cv_prog_gnu_ld=yes
9406
 
  ;;
9407
 
*)
9408
 
  lt_cv_prog_gnu_ld=no
9409
 
  ;;
9410
 
esac
9411
 
fi
9412
 
echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9413
 
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9414
 
with_gnu_ld=$lt_cv_prog_gnu_ld
9415
 
 
9416
 
 
9417
 
 
9418
 
  # Check if GNU C++ uses GNU ld as the underlying linker, since the
9419
 
  # archiving commands below assume that GNU ld is being used.
9420
 
  if test "$with_gnu_ld" = yes; then
9421
 
    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9422
 
    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'
9423
 
 
9424
 
    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9425
 
    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9426
 
 
9427
 
    # If archive_cmds runs LD, not CC, wlarc should be empty
9428
 
    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9429
 
    #     investigate it a little bit more. (MM)
9430
 
    wlarc='${wl}'
9431
 
 
9432
 
    # ancient GNU ld didn't support --whole-archive et. al.
9433
 
    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9434
 
        grep 'no-whole-archive' > /dev/null; then
9435
 
      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9436
 
    else
9437
 
      whole_archive_flag_spec_CXX=
9438
 
    fi
9439
 
  else
9440
 
    with_gnu_ld=no
9441
 
    wlarc=
9442
 
 
9443
 
    # A generic and very simple default shared library creation
9444
 
    # command for GNU C++ for the case where it uses the native
9445
 
    # linker, instead of GNU ld.  If possible, this setting should
9446
 
    # overridden to take advantage of the native linker features on
9447
 
    # the platform it is being used on.
9448
 
    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9449
 
  fi
9450
 
 
9451
 
  # Commands to make compiler produce verbose output that lists
9452
 
  # what "hidden" libraries, object files and flags are used when
9453
 
  # linking a shared library.
9454
 
  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9455
 
 
9456
 
else
9457
 
  GXX=no
9458
 
  with_gnu_ld=no
9459
 
  wlarc=
9460
 
fi
9461
 
 
9462
 
# PORTME: fill in a description of your system's C++ link characteristics
9463
 
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9464
 
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9465
 
ld_shlibs_CXX=yes
9466
 
case $host_os in
9467
 
  aix3*)
9468
 
    # FIXME: insert proper C++ library support
9469
 
    ld_shlibs_CXX=no
9470
 
    ;;
9471
 
  aix4* | aix5*)
9472
 
    if test "$host_cpu" = ia64; then
9473
 
      # On IA64, the linker does run time linking by default, so we don't
9474
 
      # have to do anything special.
9475
 
      aix_use_runtimelinking=no
9476
 
      exp_sym_flag='-Bexport'
9477
 
      no_entry_flag=""
9478
 
    else
9479
 
      aix_use_runtimelinking=no
9480
 
 
9481
 
      # Test if we are trying to use run time linking or normal
9482
 
      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9483
 
      # need to do runtime linking.
9484
 
      case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9485
 
        for ld_flag in $LDFLAGS; do
9486
 
          case $ld_flag in
9487
 
          *-brtl*)
9488
 
            aix_use_runtimelinking=yes
9489
 
            break
9490
 
            ;;
9491
 
          esac
9492
 
        done
9493
 
      esac
9494
 
 
9495
 
      exp_sym_flag='-bexport'
9496
 
      no_entry_flag='-bnoentry'
9497
 
    fi
9498
 
 
9499
 
    # When large executables or shared objects are built, AIX ld can
9500
 
    # have problems creating the table of contents.  If linking a library
9501
 
    # or program results in "error TOC overflow" add -mminimal-toc to
9502
 
    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9503
 
    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9504
 
 
9505
 
    archive_cmds_CXX=''
9506
 
    hardcode_direct_CXX=yes
9507
 
    hardcode_libdir_separator_CXX=':'
9508
 
    link_all_deplibs_CXX=yes
9509
 
 
9510
 
    if test "$GXX" = yes; then
9511
 
      case $host_os in aix4.[012]|aix4.[012].*)
9512
 
      # We only want to do this on AIX 4.2 and lower, the check
9513
 
      # below for broken collect2 doesn't work under 4.3+
9514
 
        collect2name=`${CC} -print-prog-name=collect2`
9515
 
        if test -f "$collect2name" && \
9516
 
           strings "$collect2name" | grep resolve_lib_name >/dev/null
9517
 
        then
9518
 
          # We have reworked collect2
9519
 
          hardcode_direct_CXX=yes
9520
 
        else
9521
 
          # We have old collect2
9522
 
          hardcode_direct_CXX=unsupported
9523
 
          # It fails to find uninstalled libraries when the uninstalled
9524
 
          # path is not listed in the libpath.  Setting hardcode_minus_L
9525
 
          # to unsupported forces relinking
9526
 
          hardcode_minus_L_CXX=yes
9527
 
          hardcode_libdir_flag_spec_CXX='-L$libdir'
9528
 
          hardcode_libdir_separator_CXX=
9529
 
        fi
9530
 
      esac
9531
 
      shared_flag='-shared'
9532
 
      if test "$aix_use_runtimelinking" = yes; then
9533
 
        shared_flag="$shared_flag "'${wl}-G'
9534
 
      fi
9535
 
    else
9536
 
      # not using gcc
9537
 
      if test "$host_cpu" = ia64; then
9538
 
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9539
 
        # chokes on -Wl,-G. The following line is correct:
9540
 
        shared_flag='-G'
9541
 
      else
9542
 
        if test "$aix_use_runtimelinking" = yes; then
9543
 
          shared_flag='${wl}-G'
9544
 
        else
9545
 
          shared_flag='${wl}-bM:SRE'
9546
 
        fi
9547
 
      fi
9548
 
    fi
9549
 
 
9550
 
    # It seems that -bexpall does not export symbols beginning with
9551
 
    # underscore (_), so it is better to generate a list of symbols to export.
9552
 
    always_export_symbols_CXX=yes
9553
 
    if test "$aix_use_runtimelinking" = yes; then
9554
 
      # Warning - without using the other runtime loading flags (-brtl),
9555
 
      # -berok will link without error, but may produce a broken library.
9556
 
      allow_undefined_flag_CXX='-berok'
9557
 
      # Determine the default libpath from the value encoded in an empty executable.
9558
 
      cat >conftest.$ac_ext <<_ACEOF
9559
 
/* confdefs.h.  */
9560
 
_ACEOF
9561
 
cat confdefs.h >>conftest.$ac_ext
9562
 
cat >>conftest.$ac_ext <<_ACEOF
9563
 
/* end confdefs.h.  */
9564
 
 
9565
 
int
9566
 
main ()
9567
 
{
9568
 
 
9569
 
  ;
9570
 
  return 0;
9571
 
}
9572
 
_ACEOF
9573
 
rm -f conftest.$ac_objext conftest$ac_exeext
9574
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9575
 
  (eval $ac_link) 2>conftest.er1
9576
 
  ac_status=$?
9577
 
  grep -v '^ *+' conftest.er1 >conftest.err
9578
 
  rm -f conftest.er1
9579
 
  cat conftest.err >&5
9580
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9581
 
  (exit $ac_status); } &&
9582
 
         { ac_try='test -z "$ac_cxx_werror_flag"
9583
 
                         || test ! -s conftest.err'
9584
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9585
 
  (eval $ac_try) 2>&5
9586
 
  ac_status=$?
9587
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9588
 
  (exit $ac_status); }; } &&
9589
 
         { ac_try='test -s conftest$ac_exeext'
9590
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9591
 
  (eval $ac_try) 2>&5
9592
 
  ac_status=$?
9593
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9594
 
  (exit $ac_status); }; }; then
9595
 
 
9596
 
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9597
 
}'`
9598
 
# Check for a 64-bit object if we didn't find anything.
9599
 
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; }
9600
 
}'`; fi
9601
 
else
9602
 
  echo "$as_me: failed program was:" >&5
9603
 
sed 's/^/| /' conftest.$ac_ext >&5
9604
 
 
9605
 
fi
9606
 
rm -f conftest.err conftest.$ac_objext \
9607
 
      conftest$ac_exeext conftest.$ac_ext
9608
 
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9609
 
 
9610
 
      hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9611
 
 
9612
 
      archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9613
 
     else
9614
 
      if test "$host_cpu" = ia64; then
9615
 
        hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
9616
 
        allow_undefined_flag_CXX="-z nodefs"
9617
 
        archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
9618
 
      else
9619
 
        # Determine the default libpath from the value encoded in an empty executable.
9620
 
        cat >conftest.$ac_ext <<_ACEOF
9621
 
/* confdefs.h.  */
9622
 
_ACEOF
9623
 
cat confdefs.h >>conftest.$ac_ext
9624
 
cat >>conftest.$ac_ext <<_ACEOF
9625
 
/* end confdefs.h.  */
9626
 
 
9627
 
int
9628
 
main ()
9629
 
{
9630
 
 
9631
 
  ;
9632
 
  return 0;
9633
 
}
9634
 
_ACEOF
9635
 
rm -f conftest.$ac_objext conftest$ac_exeext
9636
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9637
 
  (eval $ac_link) 2>conftest.er1
9638
 
  ac_status=$?
9639
 
  grep -v '^ *+' conftest.er1 >conftest.err
9640
 
  rm -f conftest.er1
9641
 
  cat conftest.err >&5
9642
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9643
 
  (exit $ac_status); } &&
9644
 
         { ac_try='test -z "$ac_cxx_werror_flag"
9645
 
                         || test ! -s conftest.err'
9646
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9647
 
  (eval $ac_try) 2>&5
9648
 
  ac_status=$?
9649
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9650
 
  (exit $ac_status); }; } &&
9651
 
         { ac_try='test -s conftest$ac_exeext'
9652
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9653
 
  (eval $ac_try) 2>&5
9654
 
  ac_status=$?
9655
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9656
 
  (exit $ac_status); }; }; then
9657
 
 
9658
 
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9659
 
}'`
9660
 
# Check for a 64-bit object if we didn't find anything.
9661
 
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; }
9662
 
}'`; fi
9663
 
else
9664
 
  echo "$as_me: failed program was:" >&5
9665
 
sed 's/^/| /' conftest.$ac_ext >&5
9666
 
 
9667
 
fi
9668
 
rm -f conftest.err conftest.$ac_objext \
9669
 
      conftest$ac_exeext conftest.$ac_ext
9670
 
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9671
 
 
9672
 
        hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9673
 
        # Warning - without using the other run time loading flags,
9674
 
        # -berok will link without error, but may produce a broken library.
9675
 
        no_undefined_flag_CXX=' ${wl}-bernotok'
9676
 
        allow_undefined_flag_CXX=' ${wl}-berok'
9677
 
        # -bexpall does not export symbols beginning with underscore (_)
9678
 
        always_export_symbols_CXX=yes
9679
 
        # Exported symbols can be pulled into shared objects from archives
9680
 
        whole_archive_flag_spec_CXX=' '
9681
 
        archive_cmds_need_lc_CXX=yes
9682
 
        # This is similar to how AIX traditionally builds it's shared libraries.
9683
 
        archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
9684
 
      fi
9685
 
    fi
9686
 
    ;;
9687
 
  chorus*)
9688
 
    case $cc_basename in
9689
 
      *)
9690
 
        # FIXME: insert proper C++ library support
9691
 
        ld_shlibs_CXX=no
9692
 
        ;;
9693
 
    esac
9694
 
    ;;
9695
 
 
9696
 
 
9697
 
  cygwin* | mingw* | pw32*)
9698
 
    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
9699
 
    # as there is no search path for DLLs.
9700
 
    hardcode_libdir_flag_spec_CXX='-L$libdir'
9701
 
    allow_undefined_flag_CXX=unsupported
9702
 
    always_export_symbols_CXX=no
9703
 
    enable_shared_with_static_runtimes_CXX=yes
9704
 
 
9705
 
    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9706
 
      archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
9707
 
      # If the export-symbols file already is a .def file (1st line
9708
 
      # is EXPORTS), use it as is; otherwise, prepend...
9709
 
      archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9710
 
        cp $export_symbols $output_objdir/$soname.def;
9711
 
      else
9712
 
        echo EXPORTS > $output_objdir/$soname.def;
9713
 
        cat $export_symbols >> $output_objdir/$soname.def;
9714
 
      fi~
9715
 
      $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
9716
 
    else
9717
 
      ld_shlibs_CXX=no
9718
 
    fi
9719
 
  ;;
9720
 
      darwin* | rhapsody*)
9721
 
        case "$host_os" in
9722
 
        rhapsody* | darwin1.[012])
9723
 
         allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
9724
 
         ;;
9725
 
       *) # Darwin 1.3 on
9726
 
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9727
 
           allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9728
 
         else
9729
 
           case ${MACOSX_DEPLOYMENT_TARGET} in
9730
 
             10.[012])
9731
 
               allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9732
 
               ;;
9733
 
             10.*)
9734
 
               allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
9735
 
               ;;
9736
 
           esac
9737
 
         fi
9738
 
         ;;
9739
 
        esac
9740
 
      archive_cmds_need_lc_CXX=no
9741
 
      hardcode_direct_CXX=no
9742
 
      hardcode_automatic_CXX=yes
9743
 
      hardcode_shlibpath_var_CXX=unsupported
9744
 
      whole_archive_flag_spec_CXX=''
9745
 
      link_all_deplibs_CXX=yes
9746
 
 
9747
 
    if test "$GXX" = yes ; then
9748
 
      lt_int_apple_cc_single_mod=no
9749
 
      output_verbose_link_cmd='echo'
9750
 
      if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
9751
 
       lt_int_apple_cc_single_mod=yes
9752
 
      fi
9753
 
      if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9754
 
       archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9755
 
      else
9756
 
          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'
9757
 
        fi
9758
 
        module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9759
 
        # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9760
 
          if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9761
 
            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}'
9762
 
          else
9763
 
            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}'
9764
 
          fi
9765
 
            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}'
9766
 
      else
9767
 
      case "$cc_basename" in
9768
 
        xlc*)
9769
 
         output_verbose_link_cmd='echo'
9770
 
          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'
9771
 
          module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9772
 
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9773
 
          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}'
9774
 
          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}'
9775
 
          ;;
9776
 
       *)
9777
 
         ld_shlibs_CXX=no
9778
 
          ;;
9779
 
      esac
9780
 
      fi
9781
 
        ;;
9782
 
 
9783
 
  dgux*)
9784
 
    case $cc_basename in
9785
 
      ec++)
9786
 
        # FIXME: insert proper C++ library support
9787
 
        ld_shlibs_CXX=no
9788
 
        ;;
9789
 
      ghcx)
9790
 
        # Green Hills C++ Compiler
9791
 
        # FIXME: insert proper C++ library support
9792
 
        ld_shlibs_CXX=no
9793
 
        ;;
9794
 
      *)
9795
 
        # FIXME: insert proper C++ library support
9796
 
        ld_shlibs_CXX=no
9797
 
        ;;
9798
 
    esac
9799
 
    ;;
9800
 
  freebsd[12]*)
9801
 
    # C++ shared libraries reported to be fairly broken before switch to ELF
9802
 
    ld_shlibs_CXX=no
9803
 
    ;;
9804
 
  freebsd-elf*)
9805
 
    archive_cmds_need_lc_CXX=no
9806
 
    ;;
9807
 
  freebsd* | kfreebsd*-gnu | dragonfly*)
9808
 
    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
9809
 
    # conventions
9810
 
    ld_shlibs_CXX=yes
9811
 
    ;;
9812
 
  gnu*)
9813
 
    ;;
9814
 
  hpux9*)
9815
 
    hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9816
 
    hardcode_libdir_separator_CXX=:
9817
 
    export_dynamic_flag_spec_CXX='${wl}-E'
9818
 
    hardcode_direct_CXX=yes
9819
 
    hardcode_minus_L_CXX=yes # Not in the search PATH,
9820
 
                                # but as the default
9821
 
                                # location of the library.
9822
 
 
9823
 
    case $cc_basename in
9824
 
    CC)
9825
 
      # FIXME: insert proper C++ library support
9826
 
      ld_shlibs_CXX=no
9827
 
      ;;
9828
 
    aCC)
9829
 
      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'
9830
 
      # Commands to make compiler produce verbose output that lists
9831
 
      # what "hidden" libraries, object files and flags are used when
9832
 
      # linking a shared library.
9833
 
      #
9834
 
      # There doesn't appear to be a way to prevent this compiler from
9835
 
      # explicitly linking system object files so we need to strip them
9836
 
      # from the output so that they don't get included in the library
9837
 
      # dependencies.
9838
 
      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'
9839
 
      ;;
9840
 
    *)
9841
 
      if test "$GXX" = yes; then
9842
 
        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'
9843
 
      else
9844
 
        # FIXME: insert proper C++ library support
9845
 
        ld_shlibs_CXX=no
9846
 
      fi
9847
 
      ;;
9848
 
    esac
9849
 
    ;;
9850
 
  hpux10*|hpux11*)
9851
 
    if test $with_gnu_ld = no; then
9852
 
      case "$host_cpu" in
9853
 
      hppa*64*)
9854
 
        hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9855
 
        hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
9856
 
        hardcode_libdir_separator_CXX=:
9857
 
        ;;
9858
 
      ia64*)
9859
 
        hardcode_libdir_flag_spec_CXX='-L$libdir'
9860
 
        ;;
9861
 
      *)
9862
 
        hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9863
 
        hardcode_libdir_separator_CXX=:
9864
 
        export_dynamic_flag_spec_CXX='${wl}-E'
9865
 
        ;;
9866
 
      esac
9867
 
    fi
9868
 
    case "$host_cpu" in
9869
 
    hppa*64*)
9870
 
      hardcode_direct_CXX=no
9871
 
      hardcode_shlibpath_var_CXX=no
9872
 
      ;;
9873
 
    ia64*)
9874
 
      hardcode_direct_CXX=no
9875
 
      hardcode_shlibpath_var_CXX=no
9876
 
      hardcode_minus_L_CXX=yes # Not in the search PATH,
9877
 
                                              # but as the default
9878
 
                                              # location of the library.
9879
 
      ;;
9880
 
    *)
9881
 
      hardcode_direct_CXX=yes
9882
 
      hardcode_minus_L_CXX=yes # Not in the search PATH,
9883
 
                                              # but as the default
9884
 
                                              # location of the library.
9885
 
      ;;
9886
 
    esac
9887
 
 
9888
 
    case $cc_basename in
9889
 
      CC)
9890
 
        # FIXME: insert proper C++ library support
9891
 
        ld_shlibs_CXX=no
9892
 
        ;;
9893
 
      aCC)
9894
 
        case "$host_cpu" in
9895
 
        hppa*64*|ia64*)
9896
 
          archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
9897
 
          ;;
9898
 
        *)
9899
 
          archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
9900
 
          ;;
9901
 
        esac
9902
 
        # Commands to make compiler produce verbose output that lists
9903
 
        # what "hidden" libraries, object files and flags are used when
9904
 
        # linking a shared library.
9905
 
        #
9906
 
        # There doesn't appear to be a way to prevent this compiler from
9907
 
        # explicitly linking system object files so we need to strip them
9908
 
        # from the output so that they don't get included in the library
9909
 
        # dependencies.
9910
 
        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'
9911
 
        ;;
9912
 
      *)
9913
 
        if test "$GXX" = yes; then
9914
 
          if test $with_gnu_ld = no; then
9915
 
            case "$host_cpu" in
9916
 
            ia64*|hppa*64*)
9917
 
              archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
9918
 
              ;;
9919
 
            *)
9920
 
              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'
9921
 
              ;;
9922
 
            esac
9923
 
          fi
9924
 
        else
9925
 
          # FIXME: insert proper C++ library support
9926
 
          ld_shlibs_CXX=no
9927
 
        fi
9928
 
        ;;
9929
 
    esac
9930
 
    ;;
9931
 
  irix5* | irix6*)
9932
 
    case $cc_basename in
9933
 
      CC)
9934
 
        # SGI C++
9935
 
        archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
9936
 
 
9937
 
        # Archives containing C++ object files must be created using
9938
 
        # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
9939
 
        # necessary to make sure instantiated templates are included
9940
 
        # in the archive.
9941
 
        old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
9942
 
        ;;
9943
 
      *)
9944
 
        if test "$GXX" = yes; then
9945
 
          if test "$with_gnu_ld" = no; then
9946
 
            archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
9947
 
          else
9948
 
            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'
9949
 
          fi
9950
 
        fi
9951
 
        link_all_deplibs_CXX=yes
9952
 
        ;;
9953
 
    esac
9954
 
    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9955
 
    hardcode_libdir_separator_CXX=:
9956
 
    ;;
9957
 
  linux*)
9958
 
    case $cc_basename in
9959
 
      KCC)
9960
 
        # Kuck and Associates, Inc. (KAI) C++ Compiler
9961
 
 
9962
 
        # KCC will only create a shared library if the output file
9963
 
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
9964
 
        # to its proper name (with version) after linking.
9965
 
        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'
9966
 
        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'
9967
 
        # Commands to make compiler produce verbose output that lists
9968
 
        # what "hidden" libraries, object files and flags are used when
9969
 
        # linking a shared library.
9970
 
        #
9971
 
        # There doesn't appear to be a way to prevent this compiler from
9972
 
        # explicitly linking system object files so we need to strip them
9973
 
        # from the output so that they don't get included in the library
9974
 
        # dependencies.
9975
 
        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'
9976
 
 
9977
 
        hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
9978
 
        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9979
 
 
9980
 
        # Archives containing C++ object files must be created using
9981
 
        # "CC -Bstatic", where "CC" is the KAI C++ compiler.
9982
 
        old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
9983
 
        ;;
9984
 
      icpc)
9985
 
        # Intel C++
9986
 
        with_gnu_ld=yes
9987
 
        # version 8.0 and above of icpc choke on multiply defined symbols
9988
 
        # if we add $predep_objects and $postdep_objects, however 7.1 and
9989
 
        # earlier do not add the objects themselves.
9990
 
        case `$CC -V 2>&1` in
9991
 
        *"Version 7."*)
9992
 
          archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9993
 
          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'
9994
 
          ;;
9995
 
        *)  # Version 8.0 or newer
9996
 
          tmp_idyn=
9997
 
          case $host_cpu in
9998
 
            ia64*) tmp_idyn=' -i_dynamic';;
9999
 
          esac
10000
 
          archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10001
 
          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'
10002
 
          ;;
10003
 
        esac
10004
 
        archive_cmds_need_lc_CXX=no
10005
 
        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10006
 
        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10007
 
        whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10008
 
        ;;
10009
 
      pgCC)
10010
 
        # Portland Group C++ compiler
10011
 
        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
10012
 
        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'
10013
 
 
10014
 
        hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10015
 
        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10016
 
        ;;
10017
 
      cxx)
10018
 
        # Compaq C++
10019
 
        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10020
 
        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'
10021
 
 
10022
 
        runpath_var=LD_RUN_PATH
10023
 
        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10024
 
        hardcode_libdir_separator_CXX=:
10025
 
 
10026
 
        # Commands to make compiler produce verbose output that lists
10027
 
        # what "hidden" libraries, object files and flags are used when
10028
 
        # linking a shared library.
10029
 
        #
10030
 
        # There doesn't appear to be a way to prevent this compiler from
10031
 
        # explicitly linking system object files so we need to strip them
10032
 
        # from the output so that they don't get included in the library
10033
 
        # dependencies.
10034
 
        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'
10035
 
        ;;
10036
 
    esac
10037
 
    ;;
10038
 
  lynxos*)
10039
 
    # FIXME: insert proper C++ library support
10040
 
    ld_shlibs_CXX=no
10041
 
    ;;
10042
 
  m88k*)
10043
 
    # FIXME: insert proper C++ library support
10044
 
    ld_shlibs_CXX=no
10045
 
    ;;
10046
 
  mvs*)
10047
 
    case $cc_basename in
10048
 
      cxx)
10049
 
        # FIXME: insert proper C++ library support
10050
 
        ld_shlibs_CXX=no
10051
 
        ;;
10052
 
      *)
10053
 
        # FIXME: insert proper C++ library support
10054
 
        ld_shlibs_CXX=no
10055
 
        ;;
10056
 
    esac
10057
 
    ;;
10058
 
  netbsd*)
10059
 
    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10060
 
      archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10061
 
      wlarc=
10062
 
      hardcode_libdir_flag_spec_CXX='-R$libdir'
10063
 
      hardcode_direct_CXX=yes
10064
 
      hardcode_shlibpath_var_CXX=no
10065
 
    fi
10066
 
    # Workaround some broken pre-1.5 toolchains
10067
 
    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10068
 
    ;;
10069
 
  openbsd2*)
10070
 
    # C++ shared libraries are fairly broken
10071
 
    ld_shlibs_CXX=no
10072
 
    ;;
10073
 
  openbsd*)
10074
 
    hardcode_direct_CXX=yes
10075
 
    hardcode_shlibpath_var_CXX=no
10076
 
    archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10077
 
    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10078
 
    if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10079
 
      archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
10080
 
      export_dynamic_flag_spec_CXX='${wl}-E'
10081
 
      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10082
 
    fi
10083
 
    output_verbose_link_cmd='echo'
10084
 
    ;;
10085
 
  osf3*)
10086
 
    case $cc_basename in
10087
 
      KCC)
10088
 
        # Kuck and Associates, Inc. (KAI) C++ Compiler
10089
 
 
10090
 
        # KCC will only create a shared library if the output file
10091
 
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
10092
 
        # to its proper name (with version) after linking.
10093
 
        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'
10094
 
 
10095
 
        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10096
 
        hardcode_libdir_separator_CXX=:
10097
 
 
10098
 
        # Archives containing C++ object files must be created using
10099
 
        # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10100
 
        old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10101
 
 
10102
 
        ;;
10103
 
      RCC)
10104
 
        # Rational C++ 2.4.1
10105
 
        # FIXME: insert proper C++ library support
10106
 
        ld_shlibs_CXX=no
10107
 
        ;;
10108
 
      cxx)
10109
 
        allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10110
 
        archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
10111
 
 
10112
 
        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10113
 
        hardcode_libdir_separator_CXX=:
10114
 
 
10115
 
        # Commands to make compiler produce verbose output that lists
10116
 
        # what "hidden" libraries, object files and flags are used when
10117
 
        # linking a shared library.
10118
 
        #
10119
 
        # There doesn't appear to be a way to prevent this compiler from
10120
 
        # explicitly linking system object files so we need to strip them
10121
 
        # from the output so that they don't get included in the library
10122
 
        # dependencies.
10123
 
        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'
10124
 
        ;;
10125
 
      *)
10126
 
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10127
 
          allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10128
 
          archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
10129
 
 
10130
 
          hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10131
 
          hardcode_libdir_separator_CXX=:
10132
 
 
10133
 
          # Commands to make compiler produce verbose output that lists
10134
 
          # what "hidden" libraries, object files and flags are used when
10135
 
          # linking a shared library.
10136
 
          output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10137
 
 
10138
 
        else
10139
 
          # FIXME: insert proper C++ library support
10140
 
          ld_shlibs_CXX=no
10141
 
        fi
10142
 
        ;;
10143
 
    esac
10144
 
    ;;
10145
 
  osf4* | osf5*)
10146
 
    case $cc_basename in
10147
 
      KCC)
10148
 
        # Kuck and Associates, Inc. (KAI) C++ Compiler
10149
 
 
10150
 
        # KCC will only create a shared library if the output file
10151
 
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
10152
 
        # to its proper name (with version) after linking.
10153
 
        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'
10154
 
 
10155
 
        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10156
 
        hardcode_libdir_separator_CXX=:
10157
 
 
10158
 
        # Archives containing C++ object files must be created using
10159
 
        # the KAI C++ compiler.
10160
 
        old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10161
 
        ;;
10162
 
      RCC)
10163
 
        # Rational C++ 2.4.1
10164
 
        # FIXME: insert proper C++ library support
10165
 
        ld_shlibs_CXX=no
10166
 
        ;;
10167
 
      cxx)
10168
 
        allow_undefined_flag_CXX=' -expect_unresolved \*'
10169
 
        archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
10170
 
        archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10171
 
          echo "-hidden">> $lib.exp~
10172
 
          $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp  `test -n "$verstring" && echo -set_version $verstring` -update_registry $objdir/so_locations -o $lib~
10173
 
          $rm $lib.exp'
10174
 
 
10175
 
        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10176
 
        hardcode_libdir_separator_CXX=:
10177
 
 
10178
 
        # Commands to make compiler produce verbose output that lists
10179
 
        # what "hidden" libraries, object files and flags are used when
10180
 
        # linking a shared library.
10181
 
        #
10182
 
        # There doesn't appear to be a way to prevent this compiler from
10183
 
        # explicitly linking system object files so we need to strip them
10184
 
        # from the output so that they don't get included in the library
10185
 
        # dependencies.
10186
 
        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'
10187
 
        ;;
10188
 
      *)
10189
 
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10190
 
          allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10191
 
         archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
10192
 
 
10193
 
          hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10194
 
          hardcode_libdir_separator_CXX=:
10195
 
 
10196
 
          # Commands to make compiler produce verbose output that lists
10197
 
          # what "hidden" libraries, object files and flags are used when
10198
 
          # linking a shared library.
10199
 
          output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10200
 
 
10201
 
        else
10202
 
          # FIXME: insert proper C++ library support
10203
 
          ld_shlibs_CXX=no
10204
 
        fi
10205
 
        ;;
10206
 
    esac
10207
 
    ;;
10208
 
  psos*)
10209
 
    # FIXME: insert proper C++ library support
10210
 
    ld_shlibs_CXX=no
10211
 
    ;;
10212
 
  sco*)
10213
 
    archive_cmds_need_lc_CXX=no
10214
 
    case $cc_basename in
10215
 
      CC)
10216
 
        # FIXME: insert proper C++ library support
10217
 
        ld_shlibs_CXX=no
10218
 
        ;;
10219
 
      *)
10220
 
        # FIXME: insert proper C++ library support
10221
 
        ld_shlibs_CXX=no
10222
 
        ;;
10223
 
    esac
10224
 
    ;;
10225
 
  sunos4*)
10226
 
    case $cc_basename in
10227
 
      CC)
10228
 
        # Sun C++ 4.x
10229
 
        # FIXME: insert proper C++ library support
10230
 
        ld_shlibs_CXX=no
10231
 
        ;;
10232
 
      lcc)
10233
 
        # Lucid
10234
 
        # FIXME: insert proper C++ library support
10235
 
        ld_shlibs_CXX=no
10236
 
        ;;
10237
 
      *)
10238
 
        # FIXME: insert proper C++ library support
10239
 
        ld_shlibs_CXX=no
10240
 
        ;;
10241
 
    esac
10242
 
    ;;
10243
 
  solaris*)
10244
 
    case $cc_basename in
10245
 
      CC)
10246
 
        # Sun C++ 4.2, 5.x and Centerline C++
10247
 
        no_undefined_flag_CXX=' -zdefs'
10248
 
        archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10249
 
        archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10250
 
        $CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10251
 
 
10252
 
        hardcode_libdir_flag_spec_CXX='-R$libdir'
10253
 
        hardcode_shlibpath_var_CXX=no
10254
 
        case $host_os in
10255
 
          solaris2.[0-5] | solaris2.[0-5].*) ;;
10256
 
          *)
10257
 
            # The C++ compiler is used as linker so we must use $wl
10258
 
            # flag to pass the commands to the underlying system
10259
 
            # linker.
10260
 
            # Supported since Solaris 2.6 (maybe 2.5.1?)
10261
 
            whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10262
 
            ;;
10263
 
        esac
10264
 
        link_all_deplibs_CXX=yes
10265
 
 
10266
 
        # Commands to make compiler produce verbose output that lists
10267
 
        # what "hidden" libraries, object files and flags are used when
10268
 
        # linking a shared library.
10269
 
        #
10270
 
        # There doesn't appear to be a way to prevent this compiler from
10271
 
        # explicitly linking system object files so we need to strip them
10272
 
        # from the output so that they don't get included in the library
10273
 
        # dependencies.
10274
 
        output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[LR]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10275
 
 
10276
 
        # Archives containing C++ object files must be created using
10277
 
        # "CC -xar", where "CC" is the Sun C++ compiler.  This is
10278
 
        # necessary to make sure instantiated templates are included
10279
 
        # in the archive.
10280
 
        old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10281
 
        ;;
10282
 
      gcx)
10283
 
        # Green Hills C++ Compiler
10284
 
        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10285
 
 
10286
 
        # The C++ compiler must be used to create the archive.
10287
 
        old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10288
 
        ;;
10289
 
      *)
10290
 
        # GNU C++ compiler with Solaris linker
10291
 
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10292
 
          no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10293
 
          if $CC --version | grep -v '^2\.7' > /dev/null; then
10294
 
            archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10295
 
            archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10296
 
                $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10297
 
 
10298
 
            # Commands to make compiler produce verbose output that lists
10299
 
            # what "hidden" libraries, object files and flags are used when
10300
 
            # linking a shared library.
10301
 
            output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10302
 
          else
10303
 
            # g++ 2.7 appears to require `-G' NOT `-shared' on this
10304
 
            # platform.
10305
 
            archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10306
 
            archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10307
 
                $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10308
 
 
10309
 
            # Commands to make compiler produce verbose output that lists
10310
 
            # what "hidden" libraries, object files and flags are used when
10311
 
            # linking a shared library.
10312
 
            output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10313
 
          fi
10314
 
 
10315
 
          hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10316
 
        fi
10317
 
        ;;
10318
 
    esac
10319
 
    ;;
10320
 
  sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10321
 
    archive_cmds_need_lc_CXX=no
10322
 
    ;;
10323
 
  tandem*)
10324
 
    case $cc_basename in
10325
 
      NCC)
10326
 
        # NonStop-UX NCC 3.20
10327
 
        # FIXME: insert proper C++ library support
10328
 
        ld_shlibs_CXX=no
10329
 
        ;;
10330
 
      *)
10331
 
        # FIXME: insert proper C++ library support
10332
 
        ld_shlibs_CXX=no
10333
 
        ;;
10334
 
    esac
10335
 
    ;;
10336
 
  vxworks*)
10337
 
    # FIXME: insert proper C++ library support
10338
 
    ld_shlibs_CXX=no
10339
 
    ;;
10340
 
  *)
10341
 
    # FIXME: insert proper C++ library support
10342
 
    ld_shlibs_CXX=no
10343
 
    ;;
10344
 
esac
10345
 
echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10346
 
echo "${ECHO_T}$ld_shlibs_CXX" >&6
10347
 
test "$ld_shlibs_CXX" = no && can_build_shared=no
10348
 
 
10349
 
GCC_CXX="$GXX"
10350
 
LD_CXX="$LD"
10351
 
 
10352
 
## CAVEAT EMPTOR:
10353
 
## There is no encapsulation within the following macros, do not change
10354
 
## the running order or otherwise move them around unless you know exactly
10355
 
## what you are doing...
10356
 
 
10357
 
cat > conftest.$ac_ext <<EOF
10358
 
class Foo
10359
 
{
10360
 
public:
10361
 
  Foo (void) { a = 0; }
10362
 
private:
10363
 
  int a;
10364
 
};
10365
 
EOF
10366
 
 
10367
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10368
 
  (eval $ac_compile) 2>&5
10369
 
  ac_status=$?
10370
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10371
 
  (exit $ac_status); }; then
10372
 
  # Parse the compiler output and extract the necessary
10373
 
  # objects, libraries and library flags.
10374
 
 
10375
 
  # Sentinel used to keep track of whether or not we are before
10376
 
  # the conftest object file.
10377
 
  pre_test_object_deps_done=no
10378
 
 
10379
 
  # The `*' in the case matches for architectures that use `case' in
10380
 
  # $output_verbose_cmd can trigger glob expansion during the loop
10381
 
  # eval without this substitution.
10382
 
  output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
10383
 
 
10384
 
  for p in `eval $output_verbose_link_cmd`; do
10385
 
    case $p in
10386
 
 
10387
 
    -L* | -R* | -l*)
10388
 
       # Some compilers place space between "-{L,R}" and the path.
10389
 
       # Remove the space.
10390
 
       if test $p = "-L" \
10391
 
          || test $p = "-R"; then
10392
 
         prev=$p
10393
 
         continue
10394
 
       else
10395
 
         prev=
10396
 
       fi
10397
 
 
10398
 
       if test "$pre_test_object_deps_done" = no; then
10399
 
         case $p in
10400
 
         -L* | -R*)
10401
 
           # Internal compiler library paths should come after those
10402
 
           # provided the user.  The postdeps already come after the
10403
 
           # user supplied libs so there is no need to process them.
10404
 
           if test -z "$compiler_lib_search_path_CXX"; then
10405
 
             compiler_lib_search_path_CXX="${prev}${p}"
10406
 
           else
10407
 
             compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
10408
 
           fi
10409
 
           ;;
10410
 
         # The "-l" case would never come before the object being
10411
 
         # linked, so don't bother handling this case.
10412
 
         esac
10413
 
       else
10414
 
         if test -z "$postdeps_CXX"; then
10415
 
           postdeps_CXX="${prev}${p}"
10416
 
         else
10417
 
           postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10418
 
         fi
10419
 
       fi
10420
 
       ;;
10421
 
 
10422
 
    *.$objext)
10423
 
       # This assumes that the test object file only shows up
10424
 
       # once in the compiler output.
10425
 
       if test "$p" = "conftest.$objext"; then
10426
 
         pre_test_object_deps_done=yes
10427
 
         continue
10428
 
       fi
10429
 
 
10430
 
       if test "$pre_test_object_deps_done" = no; then
10431
 
         if test -z "$predep_objects_CXX"; then
10432
 
           predep_objects_CXX="$p"
10433
 
         else
10434
 
           predep_objects_CXX="$predep_objects_CXX $p"
10435
 
         fi
10436
 
       else
10437
 
         if test -z "$postdep_objects_CXX"; then
10438
 
           postdep_objects_CXX="$p"
10439
 
         else
10440
 
           postdep_objects_CXX="$postdep_objects_CXX $p"
10441
 
         fi
10442
 
       fi
10443
 
       ;;
10444
 
 
10445
 
    *) ;; # Ignore the rest.
10446
 
 
10447
 
    esac
10448
 
  done
10449
 
 
10450
 
  # Clean up.
10451
 
  rm -f a.out a.exe
10452
 
else
10453
 
  echo "libtool.m4: error: problem compiling CXX test program"
10454
 
fi
10455
 
 
10456
 
$rm -f confest.$objext
10457
 
 
10458
 
case " $postdeps_CXX " in
10459
 
*" -lc "*) archive_cmds_need_lc_CXX=no ;;
10460
 
esac
10461
 
 
10462
 
lt_prog_compiler_wl_CXX=
10463
 
lt_prog_compiler_pic_CXX=
10464
 
lt_prog_compiler_static_CXX=
10465
 
 
10466
 
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10467
 
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
10468
 
 
10469
 
  # C++ specific cases for pic, static, wl, etc.
10470
 
  if test "$GXX" = yes; then
10471
 
    lt_prog_compiler_wl_CXX='-Wl,'
10472
 
    lt_prog_compiler_static_CXX='-static'
10473
 
 
10474
 
    case $host_os in
10475
 
    aix*)
10476
 
      # All AIX code is PIC.
10477
 
      if test "$host_cpu" = ia64; then
10478
 
        # AIX 5 now supports IA64 processor
10479
 
        lt_prog_compiler_static_CXX='-Bstatic'
10480
 
      fi
10481
 
      ;;
10482
 
    amigaos*)
10483
 
      # FIXME: we need at least 68020 code to build shared libraries, but
10484
 
      # adding the `-m68020' flag to GCC prevents building anything better,
10485
 
      # like `-m68040'.
10486
 
      lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
10487
 
      ;;
10488
 
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10489
 
      # PIC is the default for these OSes.
10490
 
      ;;
10491
 
    mingw* | os2* | pw32*)
10492
 
      # This hack is so that the source file can tell whether it is being
10493
 
      # built for inclusion in a dll (and should export symbols for example).
10494
 
      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
10495
 
      ;;
10496
 
    darwin* | rhapsody*)
10497
 
      # PIC is the default on this platform
10498
 
      # Common symbols not allowed in MH_DYLIB files
10499
 
      lt_prog_compiler_pic_CXX='-fno-common'
10500
 
      ;;
10501
 
    *djgpp*)
10502
 
      # DJGPP does not support shared libraries at all
10503
 
      lt_prog_compiler_pic_CXX=
10504
 
      ;;
10505
 
    sysv4*MP*)
10506
 
      if test -d /usr/nec; then
10507
 
        lt_prog_compiler_pic_CXX=-Kconform_pic
10508
 
      fi
10509
 
      ;;
10510
 
    hpux*)
10511
 
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10512
 
      # not for PA HP-UX.
10513
 
      case "$host_cpu" in
10514
 
      hppa*64*|ia64*)
10515
 
        ;;
10516
 
      *)
10517
 
        lt_prog_compiler_pic_CXX='-fPIC'
10518
 
        ;;
10519
 
      esac
10520
 
      ;;
10521
 
    *)
10522
 
      lt_prog_compiler_pic_CXX='-fPIC'
10523
 
      ;;
10524
 
    esac
10525
 
  else
10526
 
    case $host_os in
10527
 
      aix4* | aix5*)
10528
 
        # All AIX code is PIC.
10529
 
        if test "$host_cpu" = ia64; then
10530
 
          # AIX 5 now supports IA64 processor
10531
 
          lt_prog_compiler_static_CXX='-Bstatic'
10532
 
        else
10533
 
          lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
10534
 
        fi
10535
 
        ;;
10536
 
      chorus*)
10537
 
        case $cc_basename in
10538
 
        cxch68)
10539
 
          # Green Hills C++ Compiler
10540
 
          # _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"
10541
 
          ;;
10542
 
        esac
10543
 
        ;;
10544
 
       darwin*)
10545
 
         # PIC is the default on this platform
10546
 
         # Common symbols not allowed in MH_DYLIB files
10547
 
         case "$cc_basename" in
10548
 
           xlc*)
10549
 
           lt_prog_compiler_pic_CXX='-qnocommon'
10550
 
           lt_prog_compiler_wl_CXX='-Wl,'
10551
 
           ;;
10552
 
         esac
10553
 
       ;;
10554
 
      dgux*)
10555
 
        case $cc_basename in
10556
 
          ec++)
10557
 
            lt_prog_compiler_pic_CXX='-KPIC'
10558
 
            ;;
10559
 
          ghcx)
10560
 
            # Green Hills C++ Compiler
10561
 
            lt_prog_compiler_pic_CXX='-pic'
10562
 
            ;;
10563
 
          *)
10564
 
            ;;
10565
 
        esac
10566
 
        ;;
10567
 
      freebsd* | kfreebsd*-gnu | dragonfly*)
10568
 
        # FreeBSD uses GNU C++
10569
 
        ;;
10570
 
      hpux9* | hpux10* | hpux11*)
10571
 
        case $cc_basename in
10572
 
          CC)
10573
 
            lt_prog_compiler_wl_CXX='-Wl,'
10574
 
            lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10575
 
            if test "$host_cpu" != ia64; then
10576
 
              lt_prog_compiler_pic_CXX='+Z'
10577
 
            fi
10578
 
            ;;
10579
 
          aCC)
10580
 
            lt_prog_compiler_wl_CXX='-Wl,'
10581
 
            lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10582
 
            case "$host_cpu" in
10583
 
            hppa*64*|ia64*)
10584
 
              # +Z the default
10585
 
              ;;
10586
 
            *)
10587
 
              lt_prog_compiler_pic_CXX='+Z'
10588
 
              ;;
10589
 
            esac
10590
 
            ;;
10591
 
          *)
10592
 
            ;;
10593
 
        esac
10594
 
        ;;
10595
 
      irix5* | irix6* | nonstopux*)
10596
 
        case $cc_basename in
10597
 
          CC)
10598
 
            lt_prog_compiler_wl_CXX='-Wl,'
10599
 
            lt_prog_compiler_static_CXX='-non_shared'
10600
 
            # CC pic flag -KPIC is the default.
10601
 
            ;;
10602
 
          *)
10603
 
            ;;
10604
 
        esac
10605
 
        ;;
10606
 
      linux*)
10607
 
        case $cc_basename in
10608
 
          KCC)
10609
 
            # KAI C++ Compiler
10610
 
            lt_prog_compiler_wl_CXX='--backend -Wl,'
10611
 
            lt_prog_compiler_pic_CXX='-fPIC'
10612
 
            ;;
10613
 
          icpc* | ecpc*)
10614
 
            # Intel C++
10615
 
            lt_prog_compiler_wl_CXX='-Wl,'
10616
 
            lt_prog_compiler_pic_CXX='-KPIC'
10617
 
            lt_prog_compiler_static_CXX='-static'
10618
 
            ;;
10619
 
          pgCC)
10620
 
            # Portland Group C++ compiler.
10621
 
            lt_prog_compiler_wl_CXX='-Wl,'
10622
 
            lt_prog_compiler_pic_CXX='-fpic'
10623
 
            lt_prog_compiler_static_CXX='-static'
10624
 
            ;;
10625
 
          cxx)
10626
 
            # Compaq C++
10627
 
            # Make sure the PIC flag is empty.  It appears that all Alpha
10628
 
            # Linux and Compaq Tru64 Unix objects are PIC.
10629
 
            lt_prog_compiler_pic_CXX=
10630
 
            lt_prog_compiler_static_CXX='-non_shared'
10631
 
            ;;
10632
 
          *)
10633
 
            ;;
10634
 
        esac
10635
 
        ;;
10636
 
      lynxos*)
10637
 
        ;;
10638
 
      m88k*)
10639
 
        ;;
10640
 
      mvs*)
10641
 
        case $cc_basename in
10642
 
          cxx)
10643
 
            lt_prog_compiler_pic_CXX='-W c,exportall'
10644
 
            ;;
10645
 
          *)
10646
 
            ;;
10647
 
        esac
10648
 
        ;;
10649
 
      netbsd*)
10650
 
        ;;
10651
 
      osf3* | osf4* | osf5*)
10652
 
        case $cc_basename in
10653
 
          KCC)
10654
 
            lt_prog_compiler_wl_CXX='--backend -Wl,'
10655
 
            ;;
10656
 
          RCC)
10657
 
            # Rational C++ 2.4.1
10658
 
            lt_prog_compiler_pic_CXX='-pic'
10659
 
            ;;
10660
 
          cxx)
10661
 
            # Digital/Compaq C++
10662
 
            lt_prog_compiler_wl_CXX='-Wl,'
10663
 
            # Make sure the PIC flag is empty.  It appears that all Alpha
10664
 
            # Linux and Compaq Tru64 Unix objects are PIC.
10665
 
            lt_prog_compiler_pic_CXX=
10666
 
            lt_prog_compiler_static_CXX='-non_shared'
10667
 
            ;;
10668
 
          *)
10669
 
            ;;
10670
 
        esac
10671
 
        ;;
10672
 
      psos*)
10673
 
        ;;
10674
 
      sco*)
10675
 
        case $cc_basename in
10676
 
          CC)
10677
 
            lt_prog_compiler_pic_CXX='-fPIC'
10678
 
            ;;
10679
 
          *)
10680
 
            ;;
10681
 
        esac
10682
 
        ;;
10683
 
      solaris*)
10684
 
        case $cc_basename in
10685
 
          CC)
10686
 
            # Sun C++ 4.2, 5.x and Centerline C++
10687
 
            lt_prog_compiler_pic_CXX='-KPIC'
10688
 
            lt_prog_compiler_static_CXX='-Bstatic'
10689
 
            lt_prog_compiler_wl_CXX='-Qoption ld '
10690
 
            ;;
10691
 
          gcx)
10692
 
            # Green Hills C++ Compiler
10693
 
            lt_prog_compiler_pic_CXX='-PIC'
10694
 
            ;;
10695
 
          *)
10696
 
            ;;
10697
 
        esac
10698
 
        ;;
10699
 
      sunos4*)
10700
 
        case $cc_basename in
10701
 
          CC)
10702
 
            # Sun C++ 4.x
10703
 
            lt_prog_compiler_pic_CXX='-pic'
10704
 
            lt_prog_compiler_static_CXX='-Bstatic'
10705
 
            ;;
10706
 
          lcc)
10707
 
            # Lucid
10708
 
            lt_prog_compiler_pic_CXX='-pic'
10709
 
            ;;
10710
 
          *)
10711
 
            ;;
10712
 
        esac
10713
 
        ;;
10714
 
      tandem*)
10715
 
        case $cc_basename in
10716
 
          NCC)
10717
 
            # NonStop-UX NCC 3.20
10718
 
            lt_prog_compiler_pic_CXX='-KPIC'
10719
 
            ;;
10720
 
          *)
10721
 
            ;;
10722
 
        esac
10723
 
        ;;
10724
 
      unixware*)
10725
 
        ;;
10726
 
      vxworks*)
10727
 
        ;;
10728
 
      *)
10729
 
        lt_prog_compiler_can_build_shared_CXX=no
10730
 
        ;;
10731
 
    esac
10732
 
  fi
10733
 
 
10734
 
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
10735
 
echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
10736
 
 
10737
 
#
10738
 
# Check to make sure the PIC flag actually works.
10739
 
#
10740
 
if test -n "$lt_prog_compiler_pic_CXX"; then
10741
 
 
10742
 
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
10743
 
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
10744
 
if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
10745
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
10746
 
else
10747
 
  lt_prog_compiler_pic_works_CXX=no
10748
 
  ac_outfile=conftest.$ac_objext
10749
 
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10750
 
   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
10751
 
   # Insert the option either (1) after the last *FLAGS variable, or
10752
 
   # (2) before a word containing "conftest.", or (3) at the end.
10753
 
   # Note that $ac_compile itself does not contain backslashes and begins
10754
 
   # with a dollar sign (not a hyphen), so the echo should work correctly.
10755
 
   # The option is referenced via a variable to avoid confusing sed.
10756
 
   lt_compile=`echo "$ac_compile" | $SED \
10757
 
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10758
 
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10759
 
   -e 's:$: $lt_compiler_flag:'`
10760
 
   (eval echo "\"\$as_me:10760: $lt_compile\"" >&5)
10761
 
   (eval "$lt_compile" 2>conftest.err)
10762
 
   ac_status=$?
10763
 
   cat conftest.err >&5
10764
 
   echo "$as_me:10764: \$? = $ac_status" >&5
10765
 
   if (exit $ac_status) && test -s "$ac_outfile"; then
10766
 
     # The compiler can only warn and ignore the option if not recognized
10767
 
     # So say no if there are warnings
10768
 
     if test ! -s conftest.err; then
10769
 
       lt_prog_compiler_pic_works_CXX=yes
10770
 
     fi
10771
 
   fi
10772
 
   $rm conftest*
10773
 
 
10774
 
fi
10775
 
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
10776
 
echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
10777
 
 
10778
 
if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
10779
 
    case $lt_prog_compiler_pic_CXX in
10780
 
     "" | " "*) ;;
10781
 
     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
10782
 
     esac
10783
 
else
10784
 
    lt_prog_compiler_pic_CXX=
10785
 
     lt_prog_compiler_can_build_shared_CXX=no
10786
 
fi
10787
 
 
10788
 
fi
10789
 
case "$host_os" in
10790
 
  # For platforms which do not support PIC, -DPIC is meaningless:
10791
 
  *djgpp*)
10792
 
    lt_prog_compiler_pic_CXX=
10793
 
    ;;
10794
 
  *)
10795
 
    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
10796
 
    ;;
10797
 
esac
10798
 
 
10799
 
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
10800
 
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
10801
 
if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
10802
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
10803
 
else
10804
 
  lt_cv_prog_compiler_c_o_CXX=no
10805
 
   $rm -r conftest 2>/dev/null
10806
 
   mkdir conftest
10807
 
   cd conftest
10808
 
   mkdir out
10809
 
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10810
 
 
10811
 
   lt_compiler_flag="-o out/conftest2.$ac_objext"
10812
 
   # Insert the option either (1) after the last *FLAGS variable, or
10813
 
   # (2) before a word containing "conftest.", or (3) at the end.
10814
 
   # Note that $ac_compile itself does not contain backslashes and begins
10815
 
   # with a dollar sign (not a hyphen), so the echo should work correctly.
10816
 
   lt_compile=`echo "$ac_compile" | $SED \
10817
 
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10818
 
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10819
 
   -e 's:$: $lt_compiler_flag:'`
10820
 
   (eval echo "\"\$as_me:10820: $lt_compile\"" >&5)
10821
 
   (eval "$lt_compile" 2>out/conftest.err)
10822
 
   ac_status=$?
10823
 
   cat out/conftest.err >&5
10824
 
   echo "$as_me:10824: \$? = $ac_status" >&5
10825
 
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
10826
 
   then
10827
 
     # The compiler can only warn and ignore the option if not recognized
10828
 
     # So say no if there are warnings
10829
 
     if test ! -s out/conftest.err; then
10830
 
       lt_cv_prog_compiler_c_o_CXX=yes
10831
 
     fi
10832
 
   fi
10833
 
   chmod u+w .
10834
 
   $rm conftest*
10835
 
   # SGI C++ compiler will create directory out/ii_files/ for
10836
 
   # template instantiation
10837
 
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
10838
 
   $rm out/* && rmdir out
10839
 
   cd ..
10840
 
   rmdir conftest
10841
 
   $rm conftest*
10842
 
 
10843
 
fi
10844
 
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
10845
 
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
10846
 
 
10847
 
 
10848
 
hard_links="nottested"
10849
 
if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
10850
 
  # do not overwrite the value of need_locks provided by the user
10851
 
  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
10852
 
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
10853
 
  hard_links=yes
10854
 
  $rm conftest*
10855
 
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
10856
 
  touch conftest.a
10857
 
  ln conftest.a conftest.b 2>&5 || hard_links=no
10858
 
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
10859
 
  echo "$as_me:$LINENO: result: $hard_links" >&5
10860
 
echo "${ECHO_T}$hard_links" >&6
10861
 
  if test "$hard_links" = no; then
10862
 
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10863
 
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10864
 
    need_locks=warn
10865
 
  fi
10866
 
else
10867
 
  need_locks=no
10868
 
fi
10869
 
 
10870
 
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10871
 
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10872
 
 
10873
 
  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10874
 
  case $host_os in
10875
 
  aix4* | aix5*)
10876
 
    # If we're using GNU nm, then we don't want the "-C" option.
10877
 
    # -C means demangle to AIX nm, but means don't demangle with GNU nm
10878
 
    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
10879
 
      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'
10880
 
    else
10881
 
      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'
10882
 
    fi
10883
 
    ;;
10884
 
  pw32*)
10885
 
    export_symbols_cmds_CXX="$ltdll_cmds"
10886
 
  ;;
10887
 
  cygwin* | mingw*)
10888
 
    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'
10889
 
  ;;
10890
 
  *)
10891
 
    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10892
 
  ;;
10893
 
  esac
10894
 
 
10895
 
echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10896
 
echo "${ECHO_T}$ld_shlibs_CXX" >&6
10897
 
test "$ld_shlibs_CXX" = no && can_build_shared=no
10898
 
 
10899
 
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10900
 
if test "$GCC" = yes; then
10901
 
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10902
 
fi
10903
 
 
10904
 
#
10905
 
# Do we need to explicitly link libc?
10906
 
#
10907
 
case "x$archive_cmds_need_lc_CXX" in
10908
 
x|xyes)
10909
 
  # Assume -lc should be added
10910
 
  archive_cmds_need_lc_CXX=yes
10911
 
 
10912
 
  if test "$enable_shared" = yes && test "$GCC" = yes; then
10913
 
    case $archive_cmds_CXX in
10914
 
    *'~'*)
10915
 
      # FIXME: we may have to deal with multi-command sequences.
10916
 
      ;;
10917
 
    '$CC '*)
10918
 
      # Test whether the compiler implicitly links with -lc since on some
10919
 
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
10920
 
      # to ld, don't add -lc before -lgcc.
10921
 
      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10922
 
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
10923
 
      $rm conftest*
10924
 
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10925
 
 
10926
 
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10927
 
  (eval $ac_compile) 2>&5
10928
 
  ac_status=$?
10929
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10930
 
  (exit $ac_status); } 2>conftest.err; then
10931
 
        soname=conftest
10932
 
        lib=conftest
10933
 
        libobjs=conftest.$ac_objext
10934
 
        deplibs=
10935
 
        wl=$lt_prog_compiler_wl_CXX
10936
 
        compiler_flags=-v
10937
 
        linker_flags=-v
10938
 
        verstring=
10939
 
        output_objdir=.
10940
 
        libname=conftest
10941
 
        lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
10942
 
        allow_undefined_flag_CXX=
10943
 
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
10944
 
  (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
10945
 
  ac_status=$?
10946
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10947
 
  (exit $ac_status); }
10948
 
        then
10949
 
          archive_cmds_need_lc_CXX=no
10950
 
        else
10951
 
          archive_cmds_need_lc_CXX=yes
10952
 
        fi
10953
 
        allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
10954
 
      else
10955
 
        cat conftest.err 1>&5
10956
 
      fi
10957
 
      $rm conftest*
10958
 
      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
10959
 
echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
10960
 
      ;;
10961
 
    esac
10962
 
  fi
10963
 
  ;;
10964
 
esac
10965
 
 
10966
 
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
10967
 
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
10968
 
library_names_spec=
10969
 
libname_spec='lib$name'
10970
 
soname_spec=
10971
 
shrext_cmds=".so"
10972
 
postinstall_cmds=
10973
 
postuninstall_cmds=
10974
 
finish_cmds=
10975
 
finish_eval=
10976
 
shlibpath_var=
10977
 
shlibpath_overrides_runpath=unknown
10978
 
version_type=none
10979
 
dynamic_linker="$host_os ld.so"
10980
 
sys_lib_dlsearch_path_spec="/lib /usr/lib"
10981
 
if test "$GCC" = yes; then
10982
 
  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10983
 
  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
10984
 
    # if the path contains ";" then we assume it to be the separator
10985
 
    # otherwise default to the standard path separator (i.e. ":") - it is
10986
 
    # assumed that no part of a normal pathname contains ";" but that should
10987
 
    # okay in the real world where ";" in dirpaths is itself problematic.
10988
 
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10989
 
  else
10990
 
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10991
 
  fi
10992
 
else
10993
 
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10994
 
fi
10995
 
need_lib_prefix=unknown
10996
 
hardcode_into_libs=no
10997
 
 
10998
 
# when you set need_version to no, make sure it does not cause -set_version
10999
 
# flags to be left without arguments
11000
 
need_version=unknown
11001
 
 
11002
 
case $host_os in
11003
 
aix3*)
11004
 
  version_type=linux
11005
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11006
 
  shlibpath_var=LIBPATH
11007
 
 
11008
 
  # AIX 3 has no versioning support, so we append a major version to the name.
11009
 
  soname_spec='${libname}${release}${shared_ext}$major'
11010
 
  ;;
11011
 
 
11012
 
aix4* | aix5*)
11013
 
  version_type=linux
11014
 
  need_lib_prefix=no
11015
 
  need_version=no
11016
 
  hardcode_into_libs=yes
11017
 
  if test "$host_cpu" = ia64; then
11018
 
    # AIX 5 supports IA64
11019
 
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11020
 
    shlibpath_var=LD_LIBRARY_PATH
11021
 
  else
11022
 
    # With GCC up to 2.95.x, collect2 would create an import file
11023
 
    # for dependence libraries.  The import file would start with
11024
 
    # the line `#! .'.  This would cause the generated library to
11025
 
    # depend on `.', always an invalid library.  This was fixed in
11026
 
    # development snapshots of GCC prior to 3.0.
11027
 
    case $host_os in
11028
 
      aix4 | aix4.[01] | aix4.[01].*)
11029
 
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11030
 
           echo ' yes '
11031
 
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11032
 
        :
11033
 
      else
11034
 
        can_build_shared=no
11035
 
      fi
11036
 
      ;;
11037
 
    esac
11038
 
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11039
 
    # soname into executable. Probably we can add versioning support to
11040
 
    # collect2, so additional links can be useful in future.
11041
 
    if test "$aix_use_runtimelinking" = yes; then
11042
 
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11043
 
      # instead of lib<name>.a to let people know that these are not
11044
 
      # typical AIX shared libraries.
11045
 
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11046
 
    else
11047
 
      # We preserve .a as extension for shared libraries through AIX4.2
11048
 
      # and later when we are not doing run time linking.
11049
 
      library_names_spec='${libname}${release}.a $libname.a'
11050
 
      soname_spec='${libname}${release}${shared_ext}$major'
11051
 
    fi
11052
 
    shlibpath_var=LIBPATH
11053
 
  fi
11054
 
  ;;
11055
 
 
11056
 
amigaos*)
11057
 
  library_names_spec='$libname.ixlibrary $libname.a'
11058
 
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
11059
 
  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'
11060
 
  ;;
11061
 
 
11062
 
beos*)
11063
 
  library_names_spec='${libname}${shared_ext}'
11064
 
  dynamic_linker="$host_os ld.so"
11065
 
  shlibpath_var=LIBRARY_PATH
11066
 
  ;;
11067
 
 
11068
 
bsdi[45]*)
11069
 
  version_type=linux
11070
 
  need_version=no
11071
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11072
 
  soname_spec='${libname}${release}${shared_ext}$major'
11073
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11074
 
  shlibpath_var=LD_LIBRARY_PATH
11075
 
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11076
 
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11077
 
  # the default ld.so.conf also contains /usr/contrib/lib and
11078
 
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11079
 
  # libtool to hard-code these into programs
11080
 
  ;;
11081
 
 
11082
 
cygwin* | mingw* | pw32*)
11083
 
  version_type=windows
11084
 
  shrext_cmds=".dll"
11085
 
  need_version=no
11086
 
  need_lib_prefix=no
11087
 
 
11088
 
  case $GCC,$host_os in
11089
 
  yes,cygwin* | yes,mingw* | yes,pw32*)
11090
 
    library_names_spec='$libname.dll.a'
11091
 
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
11092
 
    postinstall_cmds='base_file=`basename \${file}`~
11093
 
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11094
 
      dldir=$destdir/`dirname \$dlpath`~
11095
 
      test -d \$dldir || mkdir -p \$dldir~
11096
 
      $install_prog $dir/$dlname \$dldir/$dlname'
11097
 
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11098
 
      dlpath=$dir/\$dldll~
11099
 
       $rm \$dlpath'
11100
 
    shlibpath_overrides_runpath=yes
11101
 
 
11102
 
    case $host_os in
11103
 
    cygwin*)
11104
 
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11105
 
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11106
 
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11107
 
      ;;
11108
 
    mingw*)
11109
 
      # MinGW DLLs use traditional 'lib' prefix
11110
 
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11111
 
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11112
 
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11113
 
        # It is most probably a Windows format PATH printed by
11114
 
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
11115
 
        # path with ; separators, and with drive letters. We can handle the
11116
 
        # drive letters (cygwin fileutils understands them), so leave them,
11117
 
        # especially as we might pass files found there to a mingw objdump,
11118
 
        # which wouldn't understand a cygwinified path. Ahh.
11119
 
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11120
 
      else
11121
 
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11122
 
      fi
11123
 
      ;;
11124
 
    pw32*)
11125
 
      # pw32 DLLs use 'pw' prefix rather than 'lib'
11126
 
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11127
 
      ;;
11128
 
    esac
11129
 
    ;;
11130
 
 
11131
 
  *)
11132
 
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11133
 
    ;;
11134
 
  esac
11135
 
  dynamic_linker='Win32 ld.exe'
11136
 
  # FIXME: first we should search . and the directory the executable is in
11137
 
  shlibpath_var=PATH
11138
 
  ;;
11139
 
 
11140
 
darwin* | rhapsody*)
11141
 
  dynamic_linker="$host_os dyld"
11142
 
  version_type=darwin
11143
 
  need_lib_prefix=no
11144
 
  need_version=no
11145
 
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11146
 
  soname_spec='${libname}${release}${major}$shared_ext'
11147
 
  shlibpath_overrides_runpath=yes
11148
 
  shlibpath_var=DYLD_LIBRARY_PATH
11149
 
  shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
11150
 
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11151
 
  if test "$GCC" = yes; then
11152
 
    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"`
11153
 
  else
11154
 
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
11155
 
  fi
11156
 
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11157
 
  ;;
11158
 
 
11159
 
dgux*)
11160
 
  version_type=linux
11161
 
  need_lib_prefix=no
11162
 
  need_version=no
11163
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11164
 
  soname_spec='${libname}${release}${shared_ext}$major'
11165
 
  shlibpath_var=LD_LIBRARY_PATH
11166
 
  ;;
11167
 
 
11168
 
freebsd1*)
11169
 
  dynamic_linker=no
11170
 
  ;;
11171
 
 
11172
 
kfreebsd*-gnu)
11173
 
  version_type=linux
11174
 
  need_lib_prefix=no
11175
 
  need_version=no
11176
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11177
 
  soname_spec='${libname}${release}${shared_ext}$major'
11178
 
  shlibpath_var=LD_LIBRARY_PATH
11179
 
  shlibpath_overrides_runpath=no
11180
 
  hardcode_into_libs=yes
11181
 
  dynamic_linker='GNU ld.so'
11182
 
  ;;
11183
 
 
11184
 
freebsd* | dragonfly*)
11185
 
  # DragonFly does not have aout.  When/if they implement a new
11186
 
  # versioning mechanism, adjust this.
11187
 
  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
11188
 
  version_type=freebsd-$objformat
11189
 
  case $version_type in
11190
 
    freebsd-elf*)
11191
 
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11192
 
      need_version=no
11193
 
      need_lib_prefix=no
11194
 
      ;;
11195
 
    freebsd-*)
11196
 
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11197
 
      need_version=yes
11198
 
      ;;
11199
 
  esac
11200
 
  shlibpath_var=LD_LIBRARY_PATH
11201
 
  case $host_os in
11202
 
  freebsd2*)
11203
 
    shlibpath_overrides_runpath=yes
11204
 
    ;;
11205
 
  freebsd3.[01]* | freebsdelf3.[01]*)
11206
 
    shlibpath_overrides_runpath=yes
11207
 
    hardcode_into_libs=yes
11208
 
    ;;
11209
 
  *) # from 3.2 on
11210
 
    shlibpath_overrides_runpath=no
11211
 
    hardcode_into_libs=yes
11212
 
    ;;
11213
 
  esac
11214
 
  ;;
11215
 
 
11216
 
gnu*)
11217
 
  version_type=linux
11218
 
  need_lib_prefix=no
11219
 
  need_version=no
11220
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11221
 
  soname_spec='${libname}${release}${shared_ext}$major'
11222
 
  shlibpath_var=LD_LIBRARY_PATH
11223
 
  hardcode_into_libs=yes
11224
 
  ;;
11225
 
 
11226
 
hpux9* | hpux10* | hpux11*)
11227
 
  # Give a soname corresponding to the major version so that dld.sl refuses to
11228
 
  # link against other versions.
11229
 
  version_type=sunos
11230
 
  need_lib_prefix=no
11231
 
  need_version=no
11232
 
  case "$host_cpu" in
11233
 
  ia64*)
11234
 
    shrext_cmds='.so'
11235
 
    hardcode_into_libs=yes
11236
 
    dynamic_linker="$host_os dld.so"
11237
 
    shlibpath_var=LD_LIBRARY_PATH
11238
 
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11239
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11240
 
    soname_spec='${libname}${release}${shared_ext}$major'
11241
 
    if test "X$HPUX_IA64_MODE" = X32; then
11242
 
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11243
 
    else
11244
 
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11245
 
    fi
11246
 
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11247
 
    ;;
11248
 
   hppa*64*)
11249
 
     shrext_cmds='.sl'
11250
 
     hardcode_into_libs=yes
11251
 
     dynamic_linker="$host_os dld.sl"
11252
 
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11253
 
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11254
 
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11255
 
     soname_spec='${libname}${release}${shared_ext}$major'
11256
 
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11257
 
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11258
 
     ;;
11259
 
   *)
11260
 
    shrext_cmds='.sl'
11261
 
    dynamic_linker="$host_os dld.sl"
11262
 
    shlibpath_var=SHLIB_PATH
11263
 
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11264
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11265
 
    soname_spec='${libname}${release}${shared_ext}$major'
11266
 
    ;;
11267
 
  esac
11268
 
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
11269
 
  postinstall_cmds='chmod 555 $lib'
11270
 
  ;;
11271
 
 
11272
 
irix5* | irix6* | nonstopux*)
11273
 
  case $host_os in
11274
 
    nonstopux*) version_type=nonstopux ;;
11275
 
    *)
11276
 
        if test "$lt_cv_prog_gnu_ld" = yes; then
11277
 
                version_type=linux
11278
 
        else
11279
 
                version_type=irix
11280
 
        fi ;;
11281
 
  esac
11282
 
  need_lib_prefix=no
11283
 
  need_version=no
11284
 
  soname_spec='${libname}${release}${shared_ext}$major'
11285
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11286
 
  case $host_os in
11287
 
  irix5* | nonstopux*)
11288
 
    libsuff= shlibsuff=
11289
 
    ;;
11290
 
  *)
11291
 
    case $LD in # libtool.m4 will add one of these switches to LD
11292
 
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11293
 
      libsuff= shlibsuff= libmagic=32-bit;;
11294
 
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11295
 
      libsuff=32 shlibsuff=N32 libmagic=N32;;
11296
 
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11297
 
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
11298
 
    *) libsuff= shlibsuff= libmagic=never-match;;
11299
 
    esac
11300
 
    ;;
11301
 
  esac
11302
 
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11303
 
  shlibpath_overrides_runpath=no
11304
 
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11305
 
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11306
 
  hardcode_into_libs=yes
11307
 
  ;;
11308
 
 
11309
 
# No shared lib support for Linux oldld, aout, or coff.
11310
 
linux*oldld* | linux*aout* | linux*coff*)
11311
 
  dynamic_linker=no
11312
 
  ;;
11313
 
 
11314
 
# This must be Linux ELF.
11315
 
linux*)
11316
 
  version_type=linux
11317
 
  need_lib_prefix=no
11318
 
  need_version=no
11319
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11320
 
  soname_spec='${libname}${release}${shared_ext}$major'
11321
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11322
 
  shlibpath_var=LD_LIBRARY_PATH
11323
 
  shlibpath_overrides_runpath=no
11324
 
  # This implies no fast_install, which is unacceptable.
11325
 
  # Some rework will be needed to allow for fast_install
11326
 
  # before this can be enabled.
11327
 
  hardcode_into_libs=yes
11328
 
 
11329
 
  # Append ld.so.conf contents to the search path
11330
 
  if test -f /etc/ld.so.conf; then
11331
 
    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/[:,\t]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
11332
 
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11333
 
  fi
11334
 
 
11335
 
  # We used to test for /lib/ld.so.1 and disable shared libraries on
11336
 
  # powerpc, because MkLinux only supported shared libraries with the
11337
 
  # GNU dynamic linker.  Since this was broken with cross compilers,
11338
 
  # most powerpc-linux boxes support dynamic linking these days and
11339
 
  # people can always --disable-shared, the test was removed, and we
11340
 
  # assume the GNU/Linux dynamic linker is in use.
11341
 
  dynamic_linker='GNU/Linux ld.so'
11342
 
  ;;
11343
 
 
11344
 
knetbsd*-gnu)
11345
 
  version_type=linux
11346
 
  need_lib_prefix=no
11347
 
  need_version=no
11348
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11349
 
  soname_spec='${libname}${release}${shared_ext}$major'
11350
 
  shlibpath_var=LD_LIBRARY_PATH
11351
 
  shlibpath_overrides_runpath=no
11352
 
  hardcode_into_libs=yes
11353
 
  dynamic_linker='GNU ld.so'
11354
 
  ;;
11355
 
 
11356
 
netbsd*)
11357
 
  version_type=sunos
11358
 
  need_lib_prefix=no
11359
 
  need_version=no
11360
 
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11361
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11362
 
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11363
 
    dynamic_linker='NetBSD (a.out) ld.so'
11364
 
  else
11365
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11366
 
    soname_spec='${libname}${release}${shared_ext}$major'
11367
 
    dynamic_linker='NetBSD ld.elf_so'
11368
 
  fi
11369
 
  shlibpath_var=LD_LIBRARY_PATH
11370
 
  shlibpath_overrides_runpath=yes
11371
 
  hardcode_into_libs=yes
11372
 
  ;;
11373
 
 
11374
 
newsos6)
11375
 
  version_type=linux
11376
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11377
 
  shlibpath_var=LD_LIBRARY_PATH
11378
 
  shlibpath_overrides_runpath=yes
11379
 
  ;;
11380
 
 
11381
 
nto-qnx*)
11382
 
  version_type=linux
11383
 
  need_lib_prefix=no
11384
 
  need_version=no
11385
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11386
 
  soname_spec='${libname}${release}${shared_ext}$major'
11387
 
  shlibpath_var=LD_LIBRARY_PATH
11388
 
  shlibpath_overrides_runpath=yes
11389
 
  ;;
11390
 
 
11391
 
openbsd*)
11392
 
  version_type=sunos
11393
 
  need_lib_prefix=no
11394
 
  need_version=no
11395
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11396
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11397
 
  shlibpath_var=LD_LIBRARY_PATH
11398
 
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11399
 
    case $host_os in
11400
 
      openbsd2.[89] | openbsd2.[89].*)
11401
 
        shlibpath_overrides_runpath=no
11402
 
        ;;
11403
 
      *)
11404
 
        shlibpath_overrides_runpath=yes
11405
 
        ;;
11406
 
      esac
11407
 
  else
11408
 
    shlibpath_overrides_runpath=yes
11409
 
  fi
11410
 
  ;;
11411
 
 
11412
 
os2*)
11413
 
  libname_spec='$name'
11414
 
  shrext_cmds=".dll"
11415
 
  need_lib_prefix=no
11416
 
  library_names_spec='$libname${shared_ext} $libname.a'
11417
 
  dynamic_linker='OS/2 ld.exe'
11418
 
  shlibpath_var=LIBPATH
11419
 
  ;;
11420
 
 
11421
 
osf3* | osf4* | osf5*)
11422
 
  version_type=osf
11423
 
  need_lib_prefix=no
11424
 
  need_version=no
11425
 
  soname_spec='${libname}${release}${shared_ext}$major'
11426
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11427
 
  shlibpath_var=LD_LIBRARY_PATH
11428
 
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11429
 
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11430
 
  ;;
11431
 
 
11432
 
sco3.2v5*)
11433
 
  version_type=osf
11434
 
  soname_spec='${libname}${release}${shared_ext}$major'
11435
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11436
 
  shlibpath_var=LD_LIBRARY_PATH
11437
 
  ;;
11438
 
 
11439
 
solaris*)
11440
 
  version_type=linux
11441
 
  need_lib_prefix=no
11442
 
  need_version=no
11443
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11444
 
  soname_spec='${libname}${release}${shared_ext}$major'
11445
 
  shlibpath_var=LD_LIBRARY_PATH
11446
 
  shlibpath_overrides_runpath=yes
11447
 
  hardcode_into_libs=yes
11448
 
  # ldd complains unless libraries are executable
11449
 
  postinstall_cmds='chmod +x $lib'
11450
 
  ;;
11451
 
 
11452
 
sunos4*)
11453
 
  version_type=sunos
11454
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11455
 
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11456
 
  shlibpath_var=LD_LIBRARY_PATH
11457
 
  shlibpath_overrides_runpath=yes
11458
 
  if test "$with_gnu_ld" = yes; then
11459
 
    need_lib_prefix=no
11460
 
  fi
11461
 
  need_version=yes
11462
 
  ;;
11463
 
 
11464
 
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11465
 
  version_type=linux
11466
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11467
 
  soname_spec='${libname}${release}${shared_ext}$major'
11468
 
  shlibpath_var=LD_LIBRARY_PATH
11469
 
  case $host_vendor in
11470
 
    sni)
11471
 
      shlibpath_overrides_runpath=no
11472
 
      need_lib_prefix=no
11473
 
      export_dynamic_flag_spec='${wl}-Blargedynsym'
11474
 
      runpath_var=LD_RUN_PATH
11475
 
      ;;
11476
 
    siemens)
11477
 
      need_lib_prefix=no
11478
 
      ;;
11479
 
    motorola)
11480
 
      need_lib_prefix=no
11481
 
      need_version=no
11482
 
      shlibpath_overrides_runpath=no
11483
 
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11484
 
      ;;
11485
 
  esac
11486
 
  ;;
11487
 
 
11488
 
sysv4*MP*)
11489
 
  if test -d /usr/nec ;then
11490
 
    version_type=linux
11491
 
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11492
 
    soname_spec='$libname${shared_ext}.$major'
11493
 
    shlibpath_var=LD_LIBRARY_PATH
11494
 
  fi
11495
 
  ;;
11496
 
 
11497
 
uts4*)
11498
 
  version_type=linux
11499
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11500
 
  soname_spec='${libname}${release}${shared_ext}$major'
11501
 
  shlibpath_var=LD_LIBRARY_PATH
11502
 
  ;;
11503
 
 
11504
 
*)
11505
 
  dynamic_linker=no
11506
 
  ;;
11507
 
esac
11508
 
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11509
 
echo "${ECHO_T}$dynamic_linker" >&6
11510
 
test "$dynamic_linker" = no && can_build_shared=no
11511
 
 
11512
 
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11513
 
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
11514
 
hardcode_action_CXX=
11515
 
if test -n "$hardcode_libdir_flag_spec_CXX" || \
11516
 
   test -n "$runpath_var_CXX" || \
11517
 
   test "X$hardcode_automatic_CXX" = "Xyes" ; then
11518
 
 
11519
 
  # We can hardcode non-existant directories.
11520
 
  if test "$hardcode_direct_CXX" != no &&
11521
 
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
11522
 
     # have to relink, otherwise we might link with an installed library
11523
 
     # when we should be linking with a yet-to-be-installed one
11524
 
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
11525
 
     test "$hardcode_minus_L_CXX" != no; then
11526
 
    # Linking always hardcodes the temporary library directory.
11527
 
    hardcode_action_CXX=relink
11528
 
  else
11529
 
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
11530
 
    hardcode_action_CXX=immediate
11531
 
  fi
11532
 
else
11533
 
  # We cannot hardcode anything, or else we can only hardcode existing
11534
 
  # directories.
11535
 
  hardcode_action_CXX=unsupported
11536
 
fi
11537
 
echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
11538
 
echo "${ECHO_T}$hardcode_action_CXX" >&6
11539
 
 
11540
 
if test "$hardcode_action_CXX" = relink; then
11541
 
  # Fast installation is not supported
11542
 
  enable_fast_install=no
11543
 
elif test "$shlibpath_overrides_runpath" = yes ||
11544
 
     test "$enable_shared" = no; then
11545
 
  # Fast installation is not necessary
11546
 
  enable_fast_install=needless
11547
 
fi
11548
 
 
11549
 
striplib=
11550
 
old_striplib=
11551
 
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11552
 
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
11553
 
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
11554
 
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11555
 
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11556
 
  echo "$as_me:$LINENO: result: yes" >&5
11557
 
echo "${ECHO_T}yes" >&6
11558
 
else
11559
 
# FIXME - insert some real tests, host_os isn't really good enough
11560
 
  case $host_os in
11561
 
   darwin*)
11562
 
       if test -n "$STRIP" ; then
11563
 
         striplib="$STRIP -x"
11564
 
         echo "$as_me:$LINENO: result: yes" >&5
11565
 
echo "${ECHO_T}yes" >&6
11566
 
       else
11567
 
  echo "$as_me:$LINENO: result: no" >&5
11568
 
echo "${ECHO_T}no" >&6
11569
 
fi
11570
 
       ;;
11571
 
   *)
11572
 
  echo "$as_me:$LINENO: result: no" >&5
11573
 
echo "${ECHO_T}no" >&6
11574
 
    ;;
11575
 
  esac
11576
 
fi
11577
 
 
11578
 
if test "x$enable_dlopen" != xyes; then
11579
 
  enable_dlopen=unknown
11580
 
  enable_dlopen_self=unknown
11581
 
  enable_dlopen_self_static=unknown
11582
 
else
11583
 
  lt_cv_dlopen=no
11584
 
  lt_cv_dlopen_libs=
11585
 
 
11586
 
  case $host_os in
11587
 
  beos*)
11588
 
    lt_cv_dlopen="load_add_on"
11589
 
    lt_cv_dlopen_libs=
11590
 
    lt_cv_dlopen_self=yes
11591
 
    ;;
11592
 
 
11593
 
  mingw* | pw32*)
11594
 
    lt_cv_dlopen="LoadLibrary"
11595
 
    lt_cv_dlopen_libs=
11596
 
   ;;
11597
 
 
11598
 
  cygwin*)
11599
 
    lt_cv_dlopen="dlopen"
11600
 
    lt_cv_dlopen_libs=
11601
 
   ;;
11602
 
 
11603
 
  darwin*)
11604
 
  # if libdl is installed we need to link against it
11605
 
    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11606
 
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11607
 
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11608
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
11609
 
else
11610
 
  ac_check_lib_save_LIBS=$LIBS
11611
 
LIBS="-ldl  $LIBS"
11612
 
cat >conftest.$ac_ext <<_ACEOF
11613
 
/* confdefs.h.  */
11614
 
_ACEOF
11615
 
cat confdefs.h >>conftest.$ac_ext
11616
 
cat >>conftest.$ac_ext <<_ACEOF
11617
 
/* end confdefs.h.  */
11618
 
 
11619
 
/* Override any gcc2 internal prototype to avoid an error.  */
11620
 
#ifdef __cplusplus
11621
 
extern "C"
11622
 
#endif
11623
 
/* We use char because int might match the return type of a gcc2
11624
 
   builtin and then its argument prototype would still apply.  */
11625
 
char dlopen ();
11626
 
int
11627
 
main ()
11628
 
{
11629
 
dlopen ();
11630
 
  ;
11631
 
  return 0;
11632
 
}
11633
 
_ACEOF
11634
 
rm -f conftest.$ac_objext conftest$ac_exeext
11635
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11636
 
  (eval $ac_link) 2>conftest.er1
11637
 
  ac_status=$?
11638
 
  grep -v '^ *+' conftest.er1 >conftest.err
11639
 
  rm -f conftest.er1
11640
 
  cat conftest.err >&5
11641
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11642
 
  (exit $ac_status); } &&
11643
 
         { ac_try='test -z "$ac_cxx_werror_flag"
11644
 
                         || test ! -s conftest.err'
11645
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11646
 
  (eval $ac_try) 2>&5
11647
 
  ac_status=$?
11648
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11649
 
  (exit $ac_status); }; } &&
11650
 
         { ac_try='test -s conftest$ac_exeext'
11651
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11652
 
  (eval $ac_try) 2>&5
11653
 
  ac_status=$?
11654
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11655
 
  (exit $ac_status); }; }; then
11656
 
  ac_cv_lib_dl_dlopen=yes
11657
 
else
11658
 
  echo "$as_me: failed program was:" >&5
11659
 
sed 's/^/| /' conftest.$ac_ext >&5
11660
 
 
11661
 
ac_cv_lib_dl_dlopen=no
11662
 
fi
11663
 
rm -f conftest.err conftest.$ac_objext \
11664
 
      conftest$ac_exeext conftest.$ac_ext
11665
 
LIBS=$ac_check_lib_save_LIBS
11666
 
fi
11667
 
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11668
 
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11669
 
if test $ac_cv_lib_dl_dlopen = yes; then
11670
 
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11671
 
else
11672
 
 
11673
 
    lt_cv_dlopen="dyld"
11674
 
    lt_cv_dlopen_libs=
11675
 
    lt_cv_dlopen_self=yes
11676
 
 
11677
 
fi
11678
 
 
11679
 
   ;;
11680
 
 
11681
 
  *)
11682
 
    echo "$as_me:$LINENO: checking for shl_load" >&5
11683
 
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
11684
 
if test "${ac_cv_func_shl_load+set}" = set; then
11685
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
11686
 
else
11687
 
  cat >conftest.$ac_ext <<_ACEOF
11688
 
/* confdefs.h.  */
11689
 
_ACEOF
11690
 
cat confdefs.h >>conftest.$ac_ext
11691
 
cat >>conftest.$ac_ext <<_ACEOF
11692
 
/* end confdefs.h.  */
11693
 
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
11694
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11695
 
#define shl_load innocuous_shl_load
11696
 
 
11697
 
/* System header to define __stub macros and hopefully few prototypes,
11698
 
    which can conflict with char shl_load (); below.
11699
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11700
 
    <limits.h> exists even on freestanding compilers.  */
11701
 
 
11702
 
#ifdef __STDC__
11703
 
# include <limits.h>
11704
 
#else
11705
 
# include <assert.h>
11706
 
#endif
11707
 
 
11708
 
#undef shl_load
11709
 
 
11710
 
/* Override any gcc2 internal prototype to avoid an error.  */
11711
 
#ifdef __cplusplus
11712
 
extern "C"
11713
 
{
11714
 
#endif
11715
 
/* We use char because int might match the return type of a gcc2
11716
 
   builtin and then its argument prototype would still apply.  */
11717
 
char shl_load ();
11718
 
/* The GNU C library defines this for functions which it implements
11719
 
    to always fail with ENOSYS.  Some functions are actually named
11720
 
    something starting with __ and the normal name is an alias.  */
11721
 
#if defined (__stub_shl_load) || defined (__stub___shl_load)
11722
 
choke me
11723
 
#else
11724
 
char (*f) () = shl_load;
11725
 
#endif
11726
 
#ifdef __cplusplus
11727
 
}
11728
 
#endif
11729
 
 
11730
 
int
11731
 
main ()
11732
 
{
11733
 
return f != shl_load;
11734
 
  ;
11735
 
  return 0;
11736
 
}
11737
 
_ACEOF
11738
 
rm -f conftest.$ac_objext conftest$ac_exeext
11739
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11740
 
  (eval $ac_link) 2>conftest.er1
11741
 
  ac_status=$?
11742
 
  grep -v '^ *+' conftest.er1 >conftest.err
11743
 
  rm -f conftest.er1
11744
 
  cat conftest.err >&5
11745
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11746
 
  (exit $ac_status); } &&
11747
 
         { ac_try='test -z "$ac_cxx_werror_flag"
11748
 
                         || test ! -s conftest.err'
11749
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11750
 
  (eval $ac_try) 2>&5
11751
 
  ac_status=$?
11752
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11753
 
  (exit $ac_status); }; } &&
11754
 
         { ac_try='test -s conftest$ac_exeext'
11755
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11756
 
  (eval $ac_try) 2>&5
11757
 
  ac_status=$?
11758
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11759
 
  (exit $ac_status); }; }; then
11760
 
  ac_cv_func_shl_load=yes
11761
 
else
11762
 
  echo "$as_me: failed program was:" >&5
11763
 
sed 's/^/| /' conftest.$ac_ext >&5
11764
 
 
11765
 
ac_cv_func_shl_load=no
11766
 
fi
11767
 
rm -f conftest.err conftest.$ac_objext \
11768
 
      conftest$ac_exeext conftest.$ac_ext
11769
 
fi
11770
 
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11771
 
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
11772
 
if test $ac_cv_func_shl_load = yes; then
11773
 
  lt_cv_dlopen="shl_load"
11774
 
else
11775
 
  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11776
 
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
11777
 
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11778
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
11779
 
else
11780
 
  ac_check_lib_save_LIBS=$LIBS
11781
 
LIBS="-ldld  $LIBS"
11782
 
cat >conftest.$ac_ext <<_ACEOF
11783
 
/* confdefs.h.  */
11784
 
_ACEOF
11785
 
cat confdefs.h >>conftest.$ac_ext
11786
 
cat >>conftest.$ac_ext <<_ACEOF
11787
 
/* end confdefs.h.  */
11788
 
 
11789
 
/* Override any gcc2 internal prototype to avoid an error.  */
11790
 
#ifdef __cplusplus
11791
 
extern "C"
11792
 
#endif
11793
 
/* We use char because int might match the return type of a gcc2
11794
 
   builtin and then its argument prototype would still apply.  */
11795
 
char shl_load ();
11796
 
int
11797
 
main ()
11798
 
{
11799
 
shl_load ();
11800
 
  ;
11801
 
  return 0;
11802
 
}
11803
 
_ACEOF
11804
 
rm -f conftest.$ac_objext conftest$ac_exeext
11805
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11806
 
  (eval $ac_link) 2>conftest.er1
11807
 
  ac_status=$?
11808
 
  grep -v '^ *+' conftest.er1 >conftest.err
11809
 
  rm -f conftest.er1
11810
 
  cat conftest.err >&5
11811
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11812
 
  (exit $ac_status); } &&
11813
 
         { ac_try='test -z "$ac_cxx_werror_flag"
11814
 
                         || test ! -s conftest.err'
11815
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11816
 
  (eval $ac_try) 2>&5
11817
 
  ac_status=$?
11818
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11819
 
  (exit $ac_status); }; } &&
11820
 
         { ac_try='test -s conftest$ac_exeext'
11821
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11822
 
  (eval $ac_try) 2>&5
11823
 
  ac_status=$?
11824
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11825
 
  (exit $ac_status); }; }; then
11826
 
  ac_cv_lib_dld_shl_load=yes
11827
 
else
11828
 
  echo "$as_me: failed program was:" >&5
11829
 
sed 's/^/| /' conftest.$ac_ext >&5
11830
 
 
11831
 
ac_cv_lib_dld_shl_load=no
11832
 
fi
11833
 
rm -f conftest.err conftest.$ac_objext \
11834
 
      conftest$ac_exeext conftest.$ac_ext
11835
 
LIBS=$ac_check_lib_save_LIBS
11836
 
fi
11837
 
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11838
 
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
11839
 
if test $ac_cv_lib_dld_shl_load = yes; then
11840
 
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
11841
 
else
11842
 
  echo "$as_me:$LINENO: checking for dlopen" >&5
11843
 
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
11844
 
if test "${ac_cv_func_dlopen+set}" = set; then
11845
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
11846
 
else
11847
 
  cat >conftest.$ac_ext <<_ACEOF
11848
 
/* confdefs.h.  */
11849
 
_ACEOF
11850
 
cat confdefs.h >>conftest.$ac_ext
11851
 
cat >>conftest.$ac_ext <<_ACEOF
11852
 
/* end confdefs.h.  */
11853
 
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
11854
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11855
 
#define dlopen innocuous_dlopen
11856
 
 
11857
 
/* System header to define __stub macros and hopefully few prototypes,
11858
 
    which can conflict with char dlopen (); below.
11859
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11860
 
    <limits.h> exists even on freestanding compilers.  */
11861
 
 
11862
 
#ifdef __STDC__
11863
 
# include <limits.h>
11864
 
#else
11865
 
# include <assert.h>
11866
 
#endif
11867
 
 
11868
 
#undef dlopen
11869
 
 
11870
 
/* Override any gcc2 internal prototype to avoid an error.  */
11871
 
#ifdef __cplusplus
11872
 
extern "C"
11873
 
{
11874
 
#endif
11875
 
/* We use char because int might match the return type of a gcc2
11876
 
   builtin and then its argument prototype would still apply.  */
11877
 
char dlopen ();
11878
 
/* The GNU C library defines this for functions which it implements
11879
 
    to always fail with ENOSYS.  Some functions are actually named
11880
 
    something starting with __ and the normal name is an alias.  */
11881
 
#if defined (__stub_dlopen) || defined (__stub___dlopen)
11882
 
choke me
11883
 
#else
11884
 
char (*f) () = dlopen;
11885
 
#endif
11886
 
#ifdef __cplusplus
11887
 
}
11888
 
#endif
11889
 
 
11890
 
int
11891
 
main ()
11892
 
{
11893
 
return f != dlopen;
11894
 
  ;
11895
 
  return 0;
11896
 
}
11897
 
_ACEOF
11898
 
rm -f conftest.$ac_objext conftest$ac_exeext
11899
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11900
 
  (eval $ac_link) 2>conftest.er1
11901
 
  ac_status=$?
11902
 
  grep -v '^ *+' conftest.er1 >conftest.err
11903
 
  rm -f conftest.er1
11904
 
  cat conftest.err >&5
11905
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11906
 
  (exit $ac_status); } &&
11907
 
         { ac_try='test -z "$ac_cxx_werror_flag"
11908
 
                         || test ! -s conftest.err'
11909
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11910
 
  (eval $ac_try) 2>&5
11911
 
  ac_status=$?
11912
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11913
 
  (exit $ac_status); }; } &&
11914
 
         { ac_try='test -s conftest$ac_exeext'
11915
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11916
 
  (eval $ac_try) 2>&5
11917
 
  ac_status=$?
11918
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11919
 
  (exit $ac_status); }; }; then
11920
 
  ac_cv_func_dlopen=yes
11921
 
else
11922
 
  echo "$as_me: failed program was:" >&5
11923
 
sed 's/^/| /' conftest.$ac_ext >&5
11924
 
 
11925
 
ac_cv_func_dlopen=no
11926
 
fi
11927
 
rm -f conftest.err conftest.$ac_objext \
11928
 
      conftest$ac_exeext conftest.$ac_ext
11929
 
fi
11930
 
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11931
 
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
11932
 
if test $ac_cv_func_dlopen = yes; then
11933
 
  lt_cv_dlopen="dlopen"
11934
 
else
11935
 
  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11936
 
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11937
 
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11938
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
11939
 
else
11940
 
  ac_check_lib_save_LIBS=$LIBS
11941
 
LIBS="-ldl  $LIBS"
11942
 
cat >conftest.$ac_ext <<_ACEOF
11943
 
/* confdefs.h.  */
11944
 
_ACEOF
11945
 
cat confdefs.h >>conftest.$ac_ext
11946
 
cat >>conftest.$ac_ext <<_ACEOF
11947
 
/* end confdefs.h.  */
11948
 
 
11949
 
/* Override any gcc2 internal prototype to avoid an error.  */
11950
 
#ifdef __cplusplus
11951
 
extern "C"
11952
 
#endif
11953
 
/* We use char because int might match the return type of a gcc2
11954
 
   builtin and then its argument prototype would still apply.  */
11955
 
char dlopen ();
11956
 
int
11957
 
main ()
11958
 
{
11959
 
dlopen ();
11960
 
  ;
11961
 
  return 0;
11962
 
}
11963
 
_ACEOF
11964
 
rm -f conftest.$ac_objext conftest$ac_exeext
11965
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11966
 
  (eval $ac_link) 2>conftest.er1
11967
 
  ac_status=$?
11968
 
  grep -v '^ *+' conftest.er1 >conftest.err
11969
 
  rm -f conftest.er1
11970
 
  cat conftest.err >&5
11971
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11972
 
  (exit $ac_status); } &&
11973
 
         { ac_try='test -z "$ac_cxx_werror_flag"
11974
 
                         || test ! -s conftest.err'
11975
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11976
 
  (eval $ac_try) 2>&5
11977
 
  ac_status=$?
11978
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11979
 
  (exit $ac_status); }; } &&
11980
 
         { ac_try='test -s conftest$ac_exeext'
11981
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11982
 
  (eval $ac_try) 2>&5
11983
 
  ac_status=$?
11984
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11985
 
  (exit $ac_status); }; }; then
11986
 
  ac_cv_lib_dl_dlopen=yes
11987
 
else
11988
 
  echo "$as_me: failed program was:" >&5
11989
 
sed 's/^/| /' conftest.$ac_ext >&5
11990
 
 
11991
 
ac_cv_lib_dl_dlopen=no
11992
 
fi
11993
 
rm -f conftest.err conftest.$ac_objext \
11994
 
      conftest$ac_exeext conftest.$ac_ext
11995
 
LIBS=$ac_check_lib_save_LIBS
11996
 
fi
11997
 
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11998
 
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11999
 
if test $ac_cv_lib_dl_dlopen = yes; then
12000
 
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12001
 
else
12002
 
  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12003
 
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
12004
 
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12005
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
12006
 
else
12007
 
  ac_check_lib_save_LIBS=$LIBS
12008
 
LIBS="-lsvld  $LIBS"
12009
 
cat >conftest.$ac_ext <<_ACEOF
12010
 
/* confdefs.h.  */
12011
 
_ACEOF
12012
 
cat confdefs.h >>conftest.$ac_ext
12013
 
cat >>conftest.$ac_ext <<_ACEOF
12014
 
/* end confdefs.h.  */
12015
 
 
12016
 
/* Override any gcc2 internal prototype to avoid an error.  */
12017
 
#ifdef __cplusplus
12018
 
extern "C"
12019
 
#endif
12020
 
/* We use char because int might match the return type of a gcc2
12021
 
   builtin and then its argument prototype would still apply.  */
12022
 
char dlopen ();
12023
 
int
12024
 
main ()
12025
 
{
12026
 
dlopen ();
12027
 
  ;
12028
 
  return 0;
12029
 
}
12030
 
_ACEOF
12031
 
rm -f conftest.$ac_objext conftest$ac_exeext
12032
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12033
 
  (eval $ac_link) 2>conftest.er1
12034
 
  ac_status=$?
12035
 
  grep -v '^ *+' conftest.er1 >conftest.err
12036
 
  rm -f conftest.er1
12037
 
  cat conftest.err >&5
12038
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12039
 
  (exit $ac_status); } &&
12040
 
         { ac_try='test -z "$ac_cxx_werror_flag"
12041
 
                         || test ! -s conftest.err'
12042
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12043
 
  (eval $ac_try) 2>&5
12044
 
  ac_status=$?
12045
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12046
 
  (exit $ac_status); }; } &&
12047
 
         { ac_try='test -s conftest$ac_exeext'
12048
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12049
 
  (eval $ac_try) 2>&5
12050
 
  ac_status=$?
12051
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12052
 
  (exit $ac_status); }; }; then
12053
 
  ac_cv_lib_svld_dlopen=yes
12054
 
else
12055
 
  echo "$as_me: failed program was:" >&5
12056
 
sed 's/^/| /' conftest.$ac_ext >&5
12057
 
 
12058
 
ac_cv_lib_svld_dlopen=no
12059
 
fi
12060
 
rm -f conftest.err conftest.$ac_objext \
12061
 
      conftest$ac_exeext conftest.$ac_ext
12062
 
LIBS=$ac_check_lib_save_LIBS
12063
 
fi
12064
 
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12065
 
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
12066
 
if test $ac_cv_lib_svld_dlopen = yes; then
12067
 
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12068
 
else
12069
 
  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12070
 
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
12071
 
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12072
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
12073
 
else
12074
 
  ac_check_lib_save_LIBS=$LIBS
12075
 
LIBS="-ldld  $LIBS"
12076
 
cat >conftest.$ac_ext <<_ACEOF
12077
 
/* confdefs.h.  */
12078
 
_ACEOF
12079
 
cat confdefs.h >>conftest.$ac_ext
12080
 
cat >>conftest.$ac_ext <<_ACEOF
12081
 
/* end confdefs.h.  */
12082
 
 
12083
 
/* Override any gcc2 internal prototype to avoid an error.  */
12084
 
#ifdef __cplusplus
12085
 
extern "C"
12086
 
#endif
12087
 
/* We use char because int might match the return type of a gcc2
12088
 
   builtin and then its argument prototype would still apply.  */
12089
 
char dld_link ();
12090
 
int
12091
 
main ()
12092
 
{
12093
 
dld_link ();
12094
 
  ;
12095
 
  return 0;
12096
 
}
12097
 
_ACEOF
12098
 
rm -f conftest.$ac_objext conftest$ac_exeext
12099
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12100
 
  (eval $ac_link) 2>conftest.er1
12101
 
  ac_status=$?
12102
 
  grep -v '^ *+' conftest.er1 >conftest.err
12103
 
  rm -f conftest.er1
12104
 
  cat conftest.err >&5
12105
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12106
 
  (exit $ac_status); } &&
12107
 
         { ac_try='test -z "$ac_cxx_werror_flag"
12108
 
                         || test ! -s conftest.err'
12109
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12110
 
  (eval $ac_try) 2>&5
12111
 
  ac_status=$?
12112
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12113
 
  (exit $ac_status); }; } &&
12114
 
         { ac_try='test -s conftest$ac_exeext'
12115
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12116
 
  (eval $ac_try) 2>&5
12117
 
  ac_status=$?
12118
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12119
 
  (exit $ac_status); }; }; then
12120
 
  ac_cv_lib_dld_dld_link=yes
12121
 
else
12122
 
  echo "$as_me: failed program was:" >&5
12123
 
sed 's/^/| /' conftest.$ac_ext >&5
12124
 
 
12125
 
ac_cv_lib_dld_dld_link=no
12126
 
fi
12127
 
rm -f conftest.err conftest.$ac_objext \
12128
 
      conftest$ac_exeext conftest.$ac_ext
12129
 
LIBS=$ac_check_lib_save_LIBS
12130
 
fi
12131
 
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12132
 
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
12133
 
if test $ac_cv_lib_dld_dld_link = yes; then
12134
 
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12135
 
fi
12136
 
 
12137
 
 
12138
 
fi
12139
 
 
12140
 
 
12141
 
fi
12142
 
 
12143
 
 
12144
 
fi
12145
 
 
12146
 
 
12147
 
fi
12148
 
 
12149
 
 
12150
 
fi
12151
 
 
12152
 
    ;;
12153
 
  esac
12154
 
 
12155
 
  if test "x$lt_cv_dlopen" != xno; then
12156
 
    enable_dlopen=yes
12157
 
  else
12158
 
    enable_dlopen=no
12159
 
  fi
12160
 
 
12161
 
  case $lt_cv_dlopen in
12162
 
  dlopen)
12163
 
    save_CPPFLAGS="$CPPFLAGS"
12164
 
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12165
 
 
12166
 
    save_LDFLAGS="$LDFLAGS"
12167
 
    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12168
 
 
12169
 
    save_LIBS="$LIBS"
12170
 
    LIBS="$lt_cv_dlopen_libs $LIBS"
12171
 
 
12172
 
    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12173
 
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
12174
 
if test "${lt_cv_dlopen_self+set}" = set; then
12175
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
12176
 
else
12177
 
          if test "$cross_compiling" = yes; then :
12178
 
  lt_cv_dlopen_self=cross
12179
 
else
12180
 
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12181
 
  lt_status=$lt_dlunknown
12182
 
  cat > conftest.$ac_ext <<EOF
12183
 
#line 12183 "configure"
12184
 
#include "confdefs.h"
12185
 
 
12186
 
#if HAVE_DLFCN_H
12187
 
#include <dlfcn.h>
12188
 
#endif
12189
 
 
12190
 
#include <stdio.h>
12191
 
 
12192
 
#ifdef RTLD_GLOBAL
12193
 
#  define LT_DLGLOBAL           RTLD_GLOBAL
12194
 
#else
12195
 
#  ifdef DL_GLOBAL
12196
 
#    define LT_DLGLOBAL         DL_GLOBAL
12197
 
#  else
12198
 
#    define LT_DLGLOBAL         0
12199
 
#  endif
12200
 
#endif
12201
 
 
12202
 
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12203
 
   find out it does not work in some platform. */
12204
 
#ifndef LT_DLLAZY_OR_NOW
12205
 
#  ifdef RTLD_LAZY
12206
 
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12207
 
#  else
12208
 
#    ifdef DL_LAZY
12209
 
#      define LT_DLLAZY_OR_NOW          DL_LAZY
12210
 
#    else
12211
 
#      ifdef RTLD_NOW
12212
 
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
12213
 
#      else
12214
 
#        ifdef DL_NOW
12215
 
#          define LT_DLLAZY_OR_NOW      DL_NOW
12216
 
#        else
12217
 
#          define LT_DLLAZY_OR_NOW      0
12218
 
#        endif
12219
 
#      endif
12220
 
#    endif
12221
 
#  endif
12222
 
#endif
12223
 
 
12224
 
#ifdef __cplusplus
12225
 
extern "C" void exit (int);
12226
 
#endif
12227
 
 
12228
 
void fnord() { int i=42;}
12229
 
int main ()
12230
 
{
12231
 
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12232
 
  int status = $lt_dlunknown;
12233
 
 
12234
 
  if (self)
12235
 
    {
12236
 
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12237
 
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12238
 
      /* dlclose (self); */
12239
 
    }
12240
 
 
12241
 
    exit (status);
12242
 
}
12243
 
EOF
12244
 
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12245
 
  (eval $ac_link) 2>&5
12246
 
  ac_status=$?
12247
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12248
 
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12249
 
    (./conftest; exit; ) 2>/dev/null
12250
 
    lt_status=$?
12251
 
    case x$lt_status in
12252
 
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12253
 
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12254
 
      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12255
 
    esac
12256
 
  else :
12257
 
    # compilation failed
12258
 
    lt_cv_dlopen_self=no
12259
 
  fi
12260
 
fi
12261
 
rm -fr conftest*
12262
 
 
12263
 
 
12264
 
fi
12265
 
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12266
 
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
12267
 
 
12268
 
    if test "x$lt_cv_dlopen_self" = xyes; then
12269
 
      LDFLAGS="$LDFLAGS $link_static_flag"
12270
 
      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12271
 
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
12272
 
if test "${lt_cv_dlopen_self_static+set}" = set; then
12273
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
12274
 
else
12275
 
          if test "$cross_compiling" = yes; then :
12276
 
  lt_cv_dlopen_self_static=cross
12277
 
else
12278
 
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12279
 
  lt_status=$lt_dlunknown
12280
 
  cat > conftest.$ac_ext <<EOF
12281
 
#line 12281 "configure"
12282
 
#include "confdefs.h"
12283
 
 
12284
 
#if HAVE_DLFCN_H
12285
 
#include <dlfcn.h>
12286
 
#endif
12287
 
 
12288
 
#include <stdio.h>
12289
 
 
12290
 
#ifdef RTLD_GLOBAL
12291
 
#  define LT_DLGLOBAL           RTLD_GLOBAL
12292
 
#else
12293
 
#  ifdef DL_GLOBAL
12294
 
#    define LT_DLGLOBAL         DL_GLOBAL
12295
 
#  else
12296
 
#    define LT_DLGLOBAL         0
12297
 
#  endif
12298
 
#endif
12299
 
 
12300
 
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12301
 
   find out it does not work in some platform. */
12302
 
#ifndef LT_DLLAZY_OR_NOW
12303
 
#  ifdef RTLD_LAZY
12304
 
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12305
 
#  else
12306
 
#    ifdef DL_LAZY
12307
 
#      define LT_DLLAZY_OR_NOW          DL_LAZY
12308
 
#    else
12309
 
#      ifdef RTLD_NOW
12310
 
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
12311
 
#      else
12312
 
#        ifdef DL_NOW
12313
 
#          define LT_DLLAZY_OR_NOW      DL_NOW
12314
 
#        else
12315
 
#          define LT_DLLAZY_OR_NOW      0
12316
 
#        endif
12317
 
#      endif
12318
 
#    endif
12319
 
#  endif
12320
 
#endif
12321
 
 
12322
 
#ifdef __cplusplus
12323
 
extern "C" void exit (int);
12324
 
#endif
12325
 
 
12326
 
void fnord() { int i=42;}
12327
 
int main ()
12328
 
{
12329
 
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12330
 
  int status = $lt_dlunknown;
12331
 
 
12332
 
  if (self)
12333
 
    {
12334
 
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12335
 
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12336
 
      /* dlclose (self); */
12337
 
    }
12338
 
 
12339
 
    exit (status);
12340
 
}
12341
 
EOF
12342
 
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12343
 
  (eval $ac_link) 2>&5
12344
 
  ac_status=$?
12345
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12346
 
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12347
 
    (./conftest; exit; ) 2>/dev/null
12348
 
    lt_status=$?
12349
 
    case x$lt_status in
12350
 
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12351
 
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12352
 
      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
12353
 
    esac
12354
 
  else :
12355
 
    # compilation failed
12356
 
    lt_cv_dlopen_self_static=no
12357
 
  fi
12358
 
fi
12359
 
rm -fr conftest*
12360
 
 
12361
 
 
12362
 
fi
12363
 
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12364
 
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
12365
 
    fi
12366
 
 
12367
 
    CPPFLAGS="$save_CPPFLAGS"
12368
 
    LDFLAGS="$save_LDFLAGS"
12369
 
    LIBS="$save_LIBS"
12370
 
    ;;
12371
 
  esac
12372
 
 
12373
 
  case $lt_cv_dlopen_self in
12374
 
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12375
 
  *) enable_dlopen_self=unknown ;;
12376
 
  esac
12377
 
 
12378
 
  case $lt_cv_dlopen_self_static in
12379
 
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12380
 
  *) enable_dlopen_self_static=unknown ;;
12381
 
  esac
12382
 
fi
12383
 
 
12384
 
 
12385
 
# The else clause should only fire when bootstrapping the
12386
 
# libtool distribution, otherwise you forgot to ship ltmain.sh
12387
 
# with your package, and you will get complaints that there are
12388
 
# no rules to generate ltmain.sh.
12389
 
if test -f "$ltmain"; then
12390
 
  # See if we are running on zsh, and set the options which allow our commands through
12391
 
  # without removal of \ escapes.
12392
 
  if test -n "${ZSH_VERSION+set}" ; then
12393
 
    setopt NO_GLOB_SUBST
12394
 
  fi
12395
 
  # Now quote all the things that may contain metacharacters while being
12396
 
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
12397
 
  # variables and quote the copies for generation of the libtool script.
12398
 
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
12399
 
    SED SHELL STRIP \
12400
 
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12401
 
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12402
 
    deplibs_check_method reload_flag reload_cmds need_locks \
12403
 
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12404
 
    lt_cv_sys_global_symbol_to_c_name_address \
12405
 
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12406
 
    old_postinstall_cmds old_postuninstall_cmds \
12407
 
    compiler_CXX \
12408
 
    CC_CXX \
12409
 
    LD_CXX \
12410
 
    lt_prog_compiler_wl_CXX \
12411
 
    lt_prog_compiler_pic_CXX \
12412
 
    lt_prog_compiler_static_CXX \
12413
 
    lt_prog_compiler_no_builtin_flag_CXX \
12414
 
    export_dynamic_flag_spec_CXX \
12415
 
    thread_safe_flag_spec_CXX \
12416
 
    whole_archive_flag_spec_CXX \
12417
 
    enable_shared_with_static_runtimes_CXX \
12418
 
    old_archive_cmds_CXX \
12419
 
    old_archive_from_new_cmds_CXX \
12420
 
    predep_objects_CXX \
12421
 
    postdep_objects_CXX \
12422
 
    predeps_CXX \
12423
 
    postdeps_CXX \
12424
 
    compiler_lib_search_path_CXX \
12425
 
    archive_cmds_CXX \
12426
 
    archive_expsym_cmds_CXX \
12427
 
    postinstall_cmds_CXX \
12428
 
    postuninstall_cmds_CXX \
12429
 
    old_archive_from_expsyms_cmds_CXX \
12430
 
    allow_undefined_flag_CXX \
12431
 
    no_undefined_flag_CXX \
12432
 
    export_symbols_cmds_CXX \
12433
 
    hardcode_libdir_flag_spec_CXX \
12434
 
    hardcode_libdir_flag_spec_ld_CXX \
12435
 
    hardcode_libdir_separator_CXX \
12436
 
    hardcode_automatic_CXX \
12437
 
    module_cmds_CXX \
12438
 
    module_expsym_cmds_CXX \
12439
 
    lt_cv_prog_compiler_c_o_CXX \
12440
 
    exclude_expsyms_CXX \
12441
 
    include_expsyms_CXX; do
12442
 
 
12443
 
    case $var in
12444
 
    old_archive_cmds_CXX | \
12445
 
    old_archive_from_new_cmds_CXX | \
12446
 
    archive_cmds_CXX | \
12447
 
    archive_expsym_cmds_CXX | \
12448
 
    module_cmds_CXX | \
12449
 
    module_expsym_cmds_CXX | \
12450
 
    old_archive_from_expsyms_cmds_CXX | \
12451
 
    export_symbols_cmds_CXX | \
12452
 
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
12453
 
    postinstall_cmds | postuninstall_cmds | \
12454
 
    old_postinstall_cmds | old_postuninstall_cmds | \
12455
 
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12456
 
      # Double-quote double-evaled strings.
12457
 
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12458
 
      ;;
12459
 
    *)
12460
 
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12461
 
      ;;
12462
 
    esac
12463
 
  done
12464
 
 
12465
 
  case $lt_echo in
12466
 
  *'\$0 --fallback-echo"')
12467
 
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12468
 
    ;;
12469
 
  esac
12470
 
 
12471
 
cfgfile="$ofile"
12472
 
 
12473
 
  cat <<__EOF__ >> "$cfgfile"
12474
 
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
12475
 
 
12476
 
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12477
 
 
12478
 
# Shell to use when invoking shell scripts.
12479
 
SHELL=$lt_SHELL
12480
 
 
12481
 
# Whether or not to build shared libraries.
12482
 
build_libtool_libs=$enable_shared
12483
 
 
12484
 
# Whether or not to build static libraries.
12485
 
build_old_libs=$enable_static
12486
 
 
12487
 
# Whether or not to add -lc for building shared libraries.
12488
 
build_libtool_need_lc=$archive_cmds_need_lc_CXX
12489
 
 
12490
 
# Whether or not to disallow shared libs when runtime libs are static
12491
 
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12492
 
 
12493
 
# Whether or not to optimize for fast installation.
12494
 
fast_install=$enable_fast_install
12495
 
 
12496
 
# The host system.
12497
 
host_alias=$host_alias
12498
 
host=$host
12499
 
host_os=$host_os
12500
 
 
12501
 
# The build system.
12502
 
build_alias=$build_alias
12503
 
build=$build
12504
 
build_os=$build_os
12505
 
 
12506
 
# An echo program that does not interpret backslashes.
12507
 
echo=$lt_echo
12508
 
 
12509
 
# The archiver.
12510
 
AR=$lt_AR
12511
 
AR_FLAGS=$lt_AR_FLAGS
12512
 
 
12513
 
# A C compiler.
12514
 
LTCC=$lt_LTCC
12515
 
 
12516
 
# A language-specific compiler.
12517
 
CC=$lt_compiler_CXX
12518
 
 
12519
 
# Is the compiler the GNU C compiler?
12520
 
with_gcc=$GCC_CXX
12521
 
 
12522
 
# An ERE matcher.
12523
 
EGREP=$lt_EGREP
12524
 
 
12525
 
# The linker used to build libraries.
12526
 
LD=$lt_LD_CXX
12527
 
 
12528
 
# Whether we need hard or soft links.
12529
 
LN_S=$lt_LN_S
12530
 
 
12531
 
# A BSD-compatible nm program.
12532
 
NM=$lt_NM
12533
 
 
12534
 
# A symbol stripping program
12535
 
STRIP=$lt_STRIP
12536
 
 
12537
 
# Used to examine libraries when file_magic_cmd begins "file"
12538
 
MAGIC_CMD=$MAGIC_CMD
12539
 
 
12540
 
# Used on cygwin: DLL creation program.
12541
 
DLLTOOL="$DLLTOOL"
12542
 
 
12543
 
# Used on cygwin: object dumper.
12544
 
OBJDUMP="$OBJDUMP"
12545
 
 
12546
 
# Used on cygwin: assembler.
12547
 
AS="$AS"
12548
 
 
12549
 
# The name of the directory that contains temporary libtool files.
12550
 
objdir=$objdir
12551
 
 
12552
 
# How to create reloadable object files.
12553
 
reload_flag=$lt_reload_flag
12554
 
reload_cmds=$lt_reload_cmds
12555
 
 
12556
 
# How to pass a linker flag through the compiler.
12557
 
wl=$lt_lt_prog_compiler_wl_CXX
12558
 
 
12559
 
# Object file suffix (normally "o").
12560
 
objext="$ac_objext"
12561
 
 
12562
 
# Old archive suffix (normally "a").
12563
 
libext="$libext"
12564
 
 
12565
 
# Shared library suffix (normally ".so").
12566
 
shrext_cmds='$shrext_cmds'
12567
 
 
12568
 
# Executable file suffix (normally "").
12569
 
exeext="$exeext"
12570
 
 
12571
 
# Additional compiler flags for building library objects.
12572
 
pic_flag=$lt_lt_prog_compiler_pic_CXX
12573
 
pic_mode=$pic_mode
12574
 
 
12575
 
# What is the maximum length of a command?
12576
 
max_cmd_len=$lt_cv_sys_max_cmd_len
12577
 
 
12578
 
# Does compiler simultaneously support -c and -o options?
12579
 
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12580
 
 
12581
 
# Must we lock files when doing compilation ?
12582
 
need_locks=$lt_need_locks
12583
 
 
12584
 
# Do we need the lib prefix for modules?
12585
 
need_lib_prefix=$need_lib_prefix
12586
 
 
12587
 
# Do we need a version for libraries?
12588
 
need_version=$need_version
12589
 
 
12590
 
# Whether dlopen is supported.
12591
 
dlopen_support=$enable_dlopen
12592
 
 
12593
 
# Whether dlopen of programs is supported.
12594
 
dlopen_self=$enable_dlopen_self
12595
 
 
12596
 
# Whether dlopen of statically linked programs is supported.
12597
 
dlopen_self_static=$enable_dlopen_self_static
12598
 
 
12599
 
# Compiler flag to prevent dynamic linking.
12600
 
link_static_flag=$lt_lt_prog_compiler_static_CXX
12601
 
 
12602
 
# Compiler flag to turn off builtin functions.
12603
 
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12604
 
 
12605
 
# Compiler flag to allow reflexive dlopens.
12606
 
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12607
 
 
12608
 
# Compiler flag to generate shared objects directly from archives.
12609
 
whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12610
 
 
12611
 
# Compiler flag to generate thread-safe objects.
12612
 
thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12613
 
 
12614
 
# Library versioning type.
12615
 
version_type=$version_type
12616
 
 
12617
 
# Format of library name prefix.
12618
 
libname_spec=$lt_libname_spec
12619
 
 
12620
 
# List of archive names.  First name is the real one, the rest are links.
12621
 
# The last name is the one that the linker finds with -lNAME.
12622
 
library_names_spec=$lt_library_names_spec
12623
 
 
12624
 
# The coded name of the library, if different from the real name.
12625
 
soname_spec=$lt_soname_spec
12626
 
 
12627
 
# Commands used to build and install an old-style archive.
12628
 
RANLIB=$lt_RANLIB
12629
 
old_archive_cmds=$lt_old_archive_cmds_CXX
12630
 
old_postinstall_cmds=$lt_old_postinstall_cmds
12631
 
old_postuninstall_cmds=$lt_old_postuninstall_cmds
12632
 
 
12633
 
# Create an old-style archive from a shared archive.
12634
 
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12635
 
 
12636
 
# Create a temporary old-style archive to link instead of a shared archive.
12637
 
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12638
 
 
12639
 
# Commands used to build and install a shared archive.
12640
 
archive_cmds=$lt_archive_cmds_CXX
12641
 
archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12642
 
postinstall_cmds=$lt_postinstall_cmds
12643
 
postuninstall_cmds=$lt_postuninstall_cmds
12644
 
 
12645
 
# Commands used to build a loadable module (assumed same as above if empty)
12646
 
module_cmds=$lt_module_cmds_CXX
12647
 
module_expsym_cmds=$lt_module_expsym_cmds_CXX
12648
 
 
12649
 
# Commands to strip libraries.
12650
 
old_striplib=$lt_old_striplib
12651
 
striplib=$lt_striplib
12652
 
 
12653
 
# Dependencies to place before the objects being linked to create a
12654
 
# shared library.
12655
 
predep_objects=$lt_predep_objects_CXX
12656
 
 
12657
 
# Dependencies to place after the objects being linked to create a
12658
 
# shared library.
12659
 
postdep_objects=$lt_postdep_objects_CXX
12660
 
 
12661
 
# Dependencies to place before the objects being linked to create a
12662
 
# shared library.
12663
 
predeps=$lt_predeps_CXX
12664
 
 
12665
 
# Dependencies to place after the objects being linked to create a
12666
 
# shared library.
12667
 
postdeps=$lt_postdeps_CXX
12668
 
 
12669
 
# The library search path used internally by the compiler when linking
12670
 
# a shared library.
12671
 
compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12672
 
 
12673
 
# Method to check whether dependent libraries are shared objects.
12674
 
deplibs_check_method=$lt_deplibs_check_method
12675
 
 
12676
 
# Command to use when deplibs_check_method == file_magic.
12677
 
file_magic_cmd=$lt_file_magic_cmd
12678
 
 
12679
 
# Flag that allows shared libraries with undefined symbols to be built.
12680
 
allow_undefined_flag=$lt_allow_undefined_flag_CXX
12681
 
 
12682
 
# Flag that forces no undefined symbols.
12683
 
no_undefined_flag=$lt_no_undefined_flag_CXX
12684
 
 
12685
 
# Commands used to finish a libtool library installation in a directory.
12686
 
finish_cmds=$lt_finish_cmds
12687
 
 
12688
 
# Same as above, but a single script fragment to be evaled but not shown.
12689
 
finish_eval=$lt_finish_eval
12690
 
 
12691
 
# Take the output of nm and produce a listing of raw symbols and C names.
12692
 
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12693
 
 
12694
 
# Transform the output of nm in a proper C declaration
12695
 
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12696
 
 
12697
 
# Transform the output of nm in a C name address pair
12698
 
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12699
 
 
12700
 
# This is the shared library runtime path variable.
12701
 
runpath_var=$runpath_var
12702
 
 
12703
 
# This is the shared library path variable.
12704
 
shlibpath_var=$shlibpath_var
12705
 
 
12706
 
# Is shlibpath searched before the hard-coded library search path?
12707
 
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12708
 
 
12709
 
# How to hardcode a shared library path into an executable.
12710
 
hardcode_action=$hardcode_action_CXX
12711
 
 
12712
 
# Whether we should hardcode library paths into libraries.
12713
 
hardcode_into_libs=$hardcode_into_libs
12714
 
 
12715
 
# Flag to hardcode \$libdir into a binary during linking.
12716
 
# This must work even if \$libdir does not exist.
12717
 
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12718
 
 
12719
 
# If ld is used when linking, flag to hardcode \$libdir into
12720
 
# a binary during linking. This must work even if \$libdir does
12721
 
# not exist.
12722
 
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12723
 
 
12724
 
# Whether we need a single -rpath flag with a separated argument.
12725
 
hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12726
 
 
12727
 
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12728
 
# resulting binary.
12729
 
hardcode_direct=$hardcode_direct_CXX
12730
 
 
12731
 
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12732
 
# resulting binary.
12733
 
hardcode_minus_L=$hardcode_minus_L_CXX
12734
 
 
12735
 
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12736
 
# the resulting binary.
12737
 
hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12738
 
 
12739
 
# Set to yes if building a shared library automatically hardcodes DIR into the library
12740
 
# and all subsequent libraries and executables linked against it.
12741
 
hardcode_automatic=$hardcode_automatic_CXX
12742
 
 
12743
 
# Variables whose values should be saved in libtool wrapper scripts and
12744
 
# restored at relink time.
12745
 
variables_saved_for_relink="$variables_saved_for_relink"
12746
 
 
12747
 
# Whether libtool must link a program against all its dependency libraries.
12748
 
link_all_deplibs=$link_all_deplibs_CXX
12749
 
 
12750
 
# Compile-time system search path for libraries
12751
 
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12752
 
 
12753
 
# Run-time system search path for libraries
12754
 
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12755
 
 
12756
 
# Fix the shell variable \$srcfile for the compiler.
12757
 
fix_srcfile_path="$fix_srcfile_path_CXX"
12758
 
 
12759
 
# Set to yes if exported symbols are required.
12760
 
always_export_symbols=$always_export_symbols_CXX
12761
 
 
12762
 
# The commands to list exported symbols.
12763
 
export_symbols_cmds=$lt_export_symbols_cmds_CXX
12764
 
 
12765
 
# The commands to extract the exported symbol list from a shared archive.
12766
 
extract_expsyms_cmds=$lt_extract_expsyms_cmds
12767
 
 
12768
 
# Symbols that should not be listed in the preloaded symbols.
12769
 
exclude_expsyms=$lt_exclude_expsyms_CXX
12770
 
 
12771
 
# Symbols that must always be exported.
12772
 
include_expsyms=$lt_include_expsyms_CXX
12773
 
 
12774
 
# ### END LIBTOOL TAG CONFIG: $tagname
12775
 
 
12776
 
__EOF__
12777
 
 
12778
 
 
12779
 
else
12780
 
  # If there is no Makefile yet, we rely on a make rule to execute
12781
 
  # `config.status --recheck' to rerun these tests and create the
12782
 
  # libtool script then.
12783
 
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
12784
 
  if test -f "$ltmain_in"; then
12785
 
    test -f Makefile && make "$ltmain"
12786
 
  fi
12787
 
fi
12788
 
 
12789
 
 
12790
 
ac_ext=c
12791
 
ac_cpp='$CPP $CPPFLAGS'
12792
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12793
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12794
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
12795
 
 
12796
 
CC=$lt_save_CC
12797
 
LDCXX=$LD
12798
 
LD=$lt_save_LD
12799
 
GCC=$lt_save_GCC
12800
 
with_gnu_ldcxx=$with_gnu_ld
12801
 
with_gnu_ld=$lt_save_with_gnu_ld
12802
 
lt_cv_path_LDCXX=$lt_cv_path_LD
12803
 
lt_cv_path_LD=$lt_save_path_LD
12804
 
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
12805
 
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
12806
 
 
12807
 
        else
12808
 
          tagname=""
12809
 
        fi
12810
 
        ;;
12811
 
 
12812
 
      F77)
12813
 
        if test -n "$F77" && test "X$F77" != "Xno"; then
12814
 
 
12815
 
ac_ext=f
12816
 
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12817
 
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12818
 
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12819
 
 
12820
 
 
12821
 
archive_cmds_need_lc_F77=no
12822
 
allow_undefined_flag_F77=
12823
 
always_export_symbols_F77=no
12824
 
archive_expsym_cmds_F77=
12825
 
export_dynamic_flag_spec_F77=
12826
 
hardcode_direct_F77=no
12827
 
hardcode_libdir_flag_spec_F77=
12828
 
hardcode_libdir_flag_spec_ld_F77=
12829
 
hardcode_libdir_separator_F77=
12830
 
hardcode_minus_L_F77=no
12831
 
hardcode_automatic_F77=no
12832
 
module_cmds_F77=
12833
 
module_expsym_cmds_F77=
12834
 
link_all_deplibs_F77=unknown
12835
 
old_archive_cmds_F77=$old_archive_cmds
12836
 
no_undefined_flag_F77=
12837
 
whole_archive_flag_spec_F77=
12838
 
enable_shared_with_static_runtimes_F77=no
12839
 
 
12840
 
# Source file extension for f77 test sources.
12841
 
ac_ext=f
12842
 
 
12843
 
# Object file extension for compiled f77 test sources.
12844
 
objext=o
12845
 
objext_F77=$objext
12846
 
 
12847
 
# Code to be used in simple compile tests
12848
 
lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
12849
 
 
12850
 
# Code to be used in simple link tests
12851
 
lt_simple_link_test_code="      program t\n      end\n"
12852
 
 
12853
 
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
12854
 
 
12855
 
# If no C compiler was specified, use CC.
12856
 
LTCC=${LTCC-"$CC"}
12857
 
 
12858
 
# Allow CC to be a program name with arguments.
12859
 
compiler=$CC
12860
 
 
12861
 
 
12862
 
# Allow CC to be a program name with arguments.
12863
 
lt_save_CC="$CC"
12864
 
CC=${F77-"f77"}
12865
 
compiler=$CC
12866
 
compiler_F77=$CC
12867
 
cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
12868
 
 
12869
 
echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12870
 
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
12871
 
echo "$as_me:$LINENO: result: $can_build_shared" >&5
12872
 
echo "${ECHO_T}$can_build_shared" >&6
12873
 
 
12874
 
echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12875
 
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
12876
 
test "$can_build_shared" = "no" && enable_shared=no
12877
 
 
12878
 
# On AIX, shared libraries and static libraries use the same namespace, and
12879
 
# are all built from PIC.
12880
 
case "$host_os" in
12881
 
aix3*)
12882
 
  test "$enable_shared" = yes && enable_static=no
12883
 
  if test -n "$RANLIB"; then
12884
 
    archive_cmds="$archive_cmds~\$RANLIB \$lib"
12885
 
    postinstall_cmds='$RANLIB $lib'
12886
 
  fi
12887
 
  ;;
12888
 
aix4* | aix5*)
12889
 
  test "$enable_shared" = yes && enable_static=no
12890
 
  ;;
12891
 
esac
12892
 
echo "$as_me:$LINENO: result: $enable_shared" >&5
12893
 
echo "${ECHO_T}$enable_shared" >&6
12894
 
 
12895
 
echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12896
 
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
12897
 
# Make sure either enable_shared or enable_static is yes.
12898
 
test "$enable_shared" = yes || enable_static=yes
12899
 
echo "$as_me:$LINENO: result: $enable_static" >&5
12900
 
echo "${ECHO_T}$enable_static" >&6
12901
 
 
12902
 
test "$ld_shlibs_F77" = no && can_build_shared=no
12903
 
 
12904
 
GCC_F77="$G77"
12905
 
LD_F77="$LD"
12906
 
 
12907
 
lt_prog_compiler_wl_F77=
12908
 
lt_prog_compiler_pic_F77=
12909
 
lt_prog_compiler_static_F77=
12910
 
 
12911
 
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12912
 
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12913
 
 
12914
 
  if test "$GCC" = yes; then
12915
 
    lt_prog_compiler_wl_F77='-Wl,'
12916
 
    lt_prog_compiler_static_F77='-static'
12917
 
 
12918
 
    case $host_os in
12919
 
      aix*)
12920
 
      # All AIX code is PIC.
12921
 
      if test "$host_cpu" = ia64; then
12922
 
        # AIX 5 now supports IA64 processor
12923
 
        lt_prog_compiler_static_F77='-Bstatic'
12924
 
      fi
12925
 
      ;;
12926
 
 
12927
 
    amigaos*)
12928
 
      # FIXME: we need at least 68020 code to build shared libraries, but
12929
 
      # adding the `-m68020' flag to GCC prevents building anything better,
12930
 
      # like `-m68040'.
12931
 
      lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
12932
 
      ;;
12933
 
 
12934
 
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12935
 
      # PIC is the default for these OSes.
12936
 
      ;;
12937
 
 
12938
 
    mingw* | pw32* | os2*)
12939
 
      # This hack is so that the source file can tell whether it is being
12940
 
      # built for inclusion in a dll (and should export symbols for example).
12941
 
      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12942
 
      ;;
12943
 
 
12944
 
    darwin* | rhapsody*)
12945
 
      # PIC is the default on this platform
12946
 
      # Common symbols not allowed in MH_DYLIB files
12947
 
      lt_prog_compiler_pic_F77='-fno-common'
12948
 
      ;;
12949
 
 
12950
 
    msdosdjgpp*)
12951
 
      # Just because we use GCC doesn't mean we suddenly get shared libraries
12952
 
      # on systems that don't support them.
12953
 
      lt_prog_compiler_can_build_shared_F77=no
12954
 
      enable_shared=no
12955
 
      ;;
12956
 
 
12957
 
    sysv4*MP*)
12958
 
      if test -d /usr/nec; then
12959
 
        lt_prog_compiler_pic_F77=-Kconform_pic
12960
 
      fi
12961
 
      ;;
12962
 
 
12963
 
    hpux*)
12964
 
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12965
 
      # not for PA HP-UX.
12966
 
      case "$host_cpu" in
12967
 
      hppa*64*|ia64*)
12968
 
        # +Z the default
12969
 
        ;;
12970
 
      *)
12971
 
        lt_prog_compiler_pic_F77='-fPIC'
12972
 
        ;;
12973
 
      esac
12974
 
      ;;
12975
 
 
12976
 
    *)
12977
 
      lt_prog_compiler_pic_F77='-fPIC'
12978
 
      ;;
12979
 
    esac
12980
 
  else
12981
 
    # PORTME Check for flag to pass linker flags through the system compiler.
12982
 
    case $host_os in
12983
 
    aix*)
12984
 
      lt_prog_compiler_wl_F77='-Wl,'
12985
 
      if test "$host_cpu" = ia64; then
12986
 
        # AIX 5 now supports IA64 processor
12987
 
        lt_prog_compiler_static_F77='-Bstatic'
12988
 
      else
12989
 
        lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
12990
 
      fi
12991
 
      ;;
12992
 
      darwin*)
12993
 
        # PIC is the default on this platform
12994
 
        # Common symbols not allowed in MH_DYLIB files
12995
 
       case "$cc_basename" in
12996
 
         xlc*)
12997
 
         lt_prog_compiler_pic_F77='-qnocommon'
12998
 
         lt_prog_compiler_wl_F77='-Wl,'
12999
 
         ;;
13000
 
       esac
13001
 
       ;;
13002
 
 
13003
 
    mingw* | pw32* | os2*)
13004
 
      # This hack is so that the source file can tell whether it is being
13005
 
      # built for inclusion in a dll (and should export symbols for example).
13006
 
      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13007
 
      ;;
13008
 
 
13009
 
    hpux9* | hpux10* | hpux11*)
13010
 
      lt_prog_compiler_wl_F77='-Wl,'
13011
 
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13012
 
      # not for PA HP-UX.
13013
 
      case "$host_cpu" in
13014
 
      hppa*64*|ia64*)
13015
 
        # +Z the default
13016
 
        ;;
13017
 
      *)
13018
 
        lt_prog_compiler_pic_F77='+Z'
13019
 
        ;;
13020
 
      esac
13021
 
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
13022
 
      lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13023
 
      ;;
13024
 
 
13025
 
    irix5* | irix6* | nonstopux*)
13026
 
      lt_prog_compiler_wl_F77='-Wl,'
13027
 
      # PIC (with -KPIC) is the default.
13028
 
      lt_prog_compiler_static_F77='-non_shared'
13029
 
      ;;
13030
 
 
13031
 
    newsos6)
13032
 
      lt_prog_compiler_pic_F77='-KPIC'
13033
 
      lt_prog_compiler_static_F77='-Bstatic'
13034
 
      ;;
13035
 
 
13036
 
    linux*)
13037
 
      case $cc_basename in
13038
 
      icc* | ecc*)
13039
 
        lt_prog_compiler_wl_F77='-Wl,'
13040
 
        lt_prog_compiler_pic_F77='-KPIC'
13041
 
        lt_prog_compiler_static_F77='-static'
13042
 
        ;;
13043
 
      pgcc | pgf77 | pgf90)
13044
 
        # Portland Group compilers (*not* the Pentium gcc compiler,
13045
 
        # which looks to be a dead project)
13046
 
        lt_prog_compiler_wl_F77='-Wl,'
13047
 
        lt_prog_compiler_pic_F77='-fpic'
13048
 
        lt_prog_compiler_static_F77='-static'
13049
 
        ;;
13050
 
      ccc*)
13051
 
        lt_prog_compiler_wl_F77='-Wl,'
13052
 
        # All Alpha code is PIC.
13053
 
        lt_prog_compiler_static_F77='-non_shared'
13054
 
        ;;
13055
 
      esac
13056
 
      ;;
13057
 
 
13058
 
    osf3* | osf4* | osf5*)
13059
 
      lt_prog_compiler_wl_F77='-Wl,'
13060
 
      # All OSF/1 code is PIC.
13061
 
      lt_prog_compiler_static_F77='-non_shared'
13062
 
      ;;
13063
 
 
13064
 
    sco3.2v5*)
13065
 
      lt_prog_compiler_pic_F77='-Kpic'
13066
 
      lt_prog_compiler_static_F77='-dn'
13067
 
      ;;
13068
 
 
13069
 
    solaris*)
13070
 
      lt_prog_compiler_wl_F77='-Wl,'
13071
 
      lt_prog_compiler_pic_F77='-KPIC'
13072
 
      lt_prog_compiler_static_F77='-Bstatic'
13073
 
      ;;
13074
 
 
13075
 
    sunos4*)
13076
 
      lt_prog_compiler_wl_F77='-Qoption ld '
13077
 
      lt_prog_compiler_pic_F77='-PIC'
13078
 
      lt_prog_compiler_static_F77='-Bstatic'
13079
 
      ;;
13080
 
 
13081
 
    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13082
 
      lt_prog_compiler_wl_F77='-Wl,'
13083
 
      lt_prog_compiler_pic_F77='-KPIC'
13084
 
      lt_prog_compiler_static_F77='-Bstatic'
13085
 
      ;;
13086
 
 
13087
 
    sysv4*MP*)
13088
 
      if test -d /usr/nec ;then
13089
 
        lt_prog_compiler_pic_F77='-Kconform_pic'
13090
 
        lt_prog_compiler_static_F77='-Bstatic'
13091
 
      fi
13092
 
      ;;
13093
 
 
13094
 
    unicos*)
13095
 
      lt_prog_compiler_wl_F77='-Wl,'
13096
 
      lt_prog_compiler_can_build_shared_F77=no
13097
 
      ;;
13098
 
 
13099
 
    uts4*)
13100
 
      lt_prog_compiler_pic_F77='-pic'
13101
 
      lt_prog_compiler_static_F77='-Bstatic'
13102
 
      ;;
13103
 
 
13104
 
    *)
13105
 
      lt_prog_compiler_can_build_shared_F77=no
13106
 
      ;;
13107
 
    esac
13108
 
  fi
13109
 
 
13110
 
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13111
 
echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13112
 
 
13113
 
#
13114
 
# Check to make sure the PIC flag actually works.
13115
 
#
13116
 
if test -n "$lt_prog_compiler_pic_F77"; then
13117
 
 
13118
 
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13119
 
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13120
 
if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13121
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
13122
 
else
13123
 
  lt_prog_compiler_pic_works_F77=no
13124
 
  ac_outfile=conftest.$ac_objext
13125
 
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13126
 
   lt_compiler_flag="$lt_prog_compiler_pic_F77"
13127
 
   # Insert the option either (1) after the last *FLAGS variable, or
13128
 
   # (2) before a word containing "conftest.", or (3) at the end.
13129
 
   # Note that $ac_compile itself does not contain backslashes and begins
13130
 
   # with a dollar sign (not a hyphen), so the echo should work correctly.
13131
 
   # The option is referenced via a variable to avoid confusing sed.
13132
 
   lt_compile=`echo "$ac_compile" | $SED \
13133
 
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13134
 
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13135
 
   -e 's:$: $lt_compiler_flag:'`
13136
 
   (eval echo "\"\$as_me:13136: $lt_compile\"" >&5)
13137
 
   (eval "$lt_compile" 2>conftest.err)
13138
 
   ac_status=$?
13139
 
   cat conftest.err >&5
13140
 
   echo "$as_me:13140: \$? = $ac_status" >&5
13141
 
   if (exit $ac_status) && test -s "$ac_outfile"; then
13142
 
     # The compiler can only warn and ignore the option if not recognized
13143
 
     # So say no if there are warnings
13144
 
     if test ! -s conftest.err; then
13145
 
       lt_prog_compiler_pic_works_F77=yes
13146
 
     fi
13147
 
   fi
13148
 
   $rm conftest*
13149
 
 
13150
 
fi
13151
 
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13152
 
echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13153
 
 
13154
 
if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13155
 
    case $lt_prog_compiler_pic_F77 in
13156
 
     "" | " "*) ;;
13157
 
     *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13158
 
     esac
13159
 
else
13160
 
    lt_prog_compiler_pic_F77=
13161
 
     lt_prog_compiler_can_build_shared_F77=no
13162
 
fi
13163
 
 
13164
 
fi
13165
 
case "$host_os" in
13166
 
  # For platforms which do not support PIC, -DPIC is meaningless:
13167
 
  *djgpp*)
13168
 
    lt_prog_compiler_pic_F77=
13169
 
    ;;
13170
 
  *)
13171
 
    lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13172
 
    ;;
13173
 
esac
13174
 
 
13175
 
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13176
 
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13177
 
if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13178
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
13179
 
else
13180
 
  lt_cv_prog_compiler_c_o_F77=no
13181
 
   $rm -r conftest 2>/dev/null
13182
 
   mkdir conftest
13183
 
   cd conftest
13184
 
   mkdir out
13185
 
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13186
 
 
13187
 
   lt_compiler_flag="-o out/conftest2.$ac_objext"
13188
 
   # Insert the option either (1) after the last *FLAGS variable, or
13189
 
   # (2) before a word containing "conftest.", or (3) at the end.
13190
 
   # Note that $ac_compile itself does not contain backslashes and begins
13191
 
   # with a dollar sign (not a hyphen), so the echo should work correctly.
13192
 
   lt_compile=`echo "$ac_compile" | $SED \
13193
 
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13194
 
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13195
 
   -e 's:$: $lt_compiler_flag:'`
13196
 
   (eval echo "\"\$as_me:13196: $lt_compile\"" >&5)
13197
 
   (eval "$lt_compile" 2>out/conftest.err)
13198
 
   ac_status=$?
13199
 
   cat out/conftest.err >&5
13200
 
   echo "$as_me:13200: \$? = $ac_status" >&5
13201
 
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
13202
 
   then
13203
 
     # The compiler can only warn and ignore the option if not recognized
13204
 
     # So say no if there are warnings
13205
 
     if test ! -s out/conftest.err; then
13206
 
       lt_cv_prog_compiler_c_o_F77=yes
13207
 
     fi
13208
 
   fi
13209
 
   chmod u+w .
13210
 
   $rm conftest*
13211
 
   # SGI C++ compiler will create directory out/ii_files/ for
13212
 
   # template instantiation
13213
 
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13214
 
   $rm out/* && rmdir out
13215
 
   cd ..
13216
 
   rmdir conftest
13217
 
   $rm conftest*
13218
 
 
13219
 
fi
13220
 
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13221
 
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13222
 
 
13223
 
 
13224
 
hard_links="nottested"
13225
 
if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13226
 
  # do not overwrite the value of need_locks provided by the user
13227
 
  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13228
 
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13229
 
  hard_links=yes
13230
 
  $rm conftest*
13231
 
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
13232
 
  touch conftest.a
13233
 
  ln conftest.a conftest.b 2>&5 || hard_links=no
13234
 
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
13235
 
  echo "$as_me:$LINENO: result: $hard_links" >&5
13236
 
echo "${ECHO_T}$hard_links" >&6
13237
 
  if test "$hard_links" = no; then
13238
 
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13239
 
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13240
 
    need_locks=warn
13241
 
  fi
13242
 
else
13243
 
  need_locks=no
13244
 
fi
13245
 
 
13246
 
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13247
 
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13248
 
 
13249
 
  runpath_var=
13250
 
  allow_undefined_flag_F77=
13251
 
  enable_shared_with_static_runtimes_F77=no
13252
 
  archive_cmds_F77=
13253
 
  archive_expsym_cmds_F77=
13254
 
  old_archive_From_new_cmds_F77=
13255
 
  old_archive_from_expsyms_cmds_F77=
13256
 
  export_dynamic_flag_spec_F77=
13257
 
  whole_archive_flag_spec_F77=
13258
 
  thread_safe_flag_spec_F77=
13259
 
  hardcode_libdir_flag_spec_F77=
13260
 
  hardcode_libdir_flag_spec_ld_F77=
13261
 
  hardcode_libdir_separator_F77=
13262
 
  hardcode_direct_F77=no
13263
 
  hardcode_minus_L_F77=no
13264
 
  hardcode_shlibpath_var_F77=unsupported
13265
 
  link_all_deplibs_F77=unknown
13266
 
  hardcode_automatic_F77=no
13267
 
  module_cmds_F77=
13268
 
  module_expsym_cmds_F77=
13269
 
  always_export_symbols_F77=no
13270
 
  export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13271
 
  # include_expsyms should be a list of space-separated symbols to be *always*
13272
 
  # included in the symbol list
13273
 
  include_expsyms_F77=
13274
 
  # exclude_expsyms can be an extended regexp of symbols to exclude
13275
 
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
13276
 
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13277
 
  # as well as any symbol that contains `d'.
13278
 
  exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13279
 
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13280
 
  # platforms (ab)use it in PIC code, but their linkers get confused if
13281
 
  # the symbol is explicitly referenced.  Since portable code cannot
13282
 
  # rely on this symbol name, it's probably fine to never include it in
13283
 
  # preloaded symbol tables.
13284
 
  extract_expsyms_cmds=
13285
 
 
13286
 
  case $host_os in
13287
 
  cygwin* | mingw* | pw32*)
13288
 
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
13289
 
    # When not using gcc, we currently assume that we are using
13290
 
    # Microsoft Visual C++.
13291
 
    if test "$GCC" != yes; then
13292
 
      with_gnu_ld=no
13293
 
    fi
13294
 
    ;;
13295
 
  openbsd*)
13296
 
    with_gnu_ld=no
13297
 
    ;;
13298
 
  esac
13299
 
 
13300
 
  ld_shlibs_F77=yes
13301
 
  if test "$with_gnu_ld" = yes; then
13302
 
    # If archive_cmds runs LD, not CC, wlarc should be empty
13303
 
    wlarc='${wl}'
13304
 
 
13305
 
    # See if GNU ld supports shared libraries.
13306
 
    case $host_os in
13307
 
    aix3* | aix4* | aix5*)
13308
 
      # On AIX/PPC, the GNU linker is very broken
13309
 
      if test "$host_cpu" != ia64; then
13310
 
        ld_shlibs_F77=no
13311
 
        cat <<EOF 1>&2
13312
 
 
13313
 
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
13314
 
*** to be unable to reliably create shared libraries on AIX.
13315
 
*** Therefore, libtool is disabling shared libraries support.  If you
13316
 
*** really care for shared libraries, you may want to modify your PATH
13317
 
*** so that a non-GNU linker is found, and then restart.
13318
 
 
13319
 
EOF
13320
 
      fi
13321
 
      ;;
13322
 
 
13323
 
    amigaos*)
13324
 
      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)'
13325
 
      hardcode_libdir_flag_spec_F77='-L$libdir'
13326
 
      hardcode_minus_L_F77=yes
13327
 
 
13328
 
      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13329
 
      # that the semantics of dynamic libraries on AmigaOS, at least up
13330
 
      # to version 4, is to share data among multiple programs linked
13331
 
      # with the same dynamic library.  Since this doesn't match the
13332
 
      # behavior of shared libraries on other platforms, we can't use
13333
 
      # them.
13334
 
      ld_shlibs_F77=no
13335
 
      ;;
13336
 
 
13337
 
    beos*)
13338
 
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13339
 
        allow_undefined_flag_F77=unsupported
13340
 
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13341
 
        # support --undefined.  This deserves some investigation.  FIXME
13342
 
        archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13343
 
      else
13344
 
        ld_shlibs_F77=no
13345
 
      fi
13346
 
      ;;
13347
 
 
13348
 
    cygwin* | mingw* | pw32*)
13349
 
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13350
 
      # as there is no search path for DLLs.
13351
 
      hardcode_libdir_flag_spec_F77='-L$libdir'
13352
 
      allow_undefined_flag_F77=unsupported
13353
 
      always_export_symbols_F77=no
13354
 
      enable_shared_with_static_runtimes_F77=yes
13355
 
      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13356
 
 
13357
 
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13358
 
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13359
 
        # If the export-symbols file already is a .def file (1st line
13360
 
        # is EXPORTS), use it as is; otherwise, prepend...
13361
 
        archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13362
 
          cp $export_symbols $output_objdir/$soname.def;
13363
 
        else
13364
 
          echo EXPORTS > $output_objdir/$soname.def;
13365
 
          cat $export_symbols >> $output_objdir/$soname.def;
13366
 
        fi~
13367
 
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
13368
 
      else
13369
 
        ld_shlibs_F77=no
13370
 
      fi
13371
 
      ;;
13372
 
 
13373
 
    netbsd*)
13374
 
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13375
 
        archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13376
 
        wlarc=
13377
 
      else
13378
 
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13379
 
        archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13380
 
      fi
13381
 
      ;;
13382
 
 
13383
 
    solaris* | sysv5*)
13384
 
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13385
 
        ld_shlibs_F77=no
13386
 
        cat <<EOF 1>&2
13387
 
 
13388
 
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
13389
 
*** create shared libraries on Solaris systems.  Therefore, libtool
13390
 
*** is disabling shared libraries support.  We urge you to upgrade GNU
13391
 
*** binutils to release 2.9.1 or newer.  Another option is to modify
13392
 
*** your PATH or compiler configuration so that the native linker is
13393
 
*** used, and then restart.
13394
 
 
13395
 
EOF
13396
 
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13397
 
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13398
 
        archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13399
 
      else
13400
 
        ld_shlibs_F77=no
13401
 
      fi
13402
 
      ;;
13403
 
 
13404
 
    sunos4*)
13405
 
      archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13406
 
      wlarc=
13407
 
      hardcode_direct_F77=yes
13408
 
      hardcode_shlibpath_var_F77=no
13409
 
      ;;
13410
 
 
13411
 
  linux*)
13412
 
    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13413
 
      tmp_addflag=
13414
 
      case $CC,$host_cpu in
13415
 
      pgf77* | pgf90* )                 # Portland Group f77 and f90 compilers
13416
 
        tmp_addflag=' -fpic' ;;
13417
 
      ecc*,ia64* | icc*,ia64*)          # Intel C compiler on ia64
13418
 
        tmp_addflag=' -i_dynamic' ;;
13419
 
      efc*,ia64* | ifort*,ia64*)        # Intel Fortran compiler on ia64
13420
 
        tmp_addflag=' -i_dynamic -nofor_main' ;;
13421
 
      ifc* | ifort*)                    # Intel Fortran compiler
13422
 
        tmp_addflag=' -nofor_main' ;;
13423
 
      esac
13424
 
      archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13425
 
      supports_anon_versioning=no
13426
 
      case `$LD -v 2>/dev/null` in
13427
 
        *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13428
 
        *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13429
 
        *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13430
 
        *\ 2.11.*) ;; # other 2.11 versions
13431
 
        *) supports_anon_versioning=yes ;;
13432
 
      esac
13433
 
      if test $supports_anon_versioning = yes; then
13434
 
        archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
13435
 
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13436
 
$echo "local: *; };" >> $output_objdir/$libname.ver~
13437
 
        $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13438
 
      else
13439
 
        archive_expsym_cmds_F77=$archive_cmds_F77
13440
 
      fi
13441
 
    else
13442
 
      ld_shlibs_F77=no
13443
 
    fi
13444
 
    ;;
13445
 
 
13446
 
    *)
13447
 
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13448
 
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13449
 
        archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13450
 
      else
13451
 
        ld_shlibs_F77=no
13452
 
      fi
13453
 
      ;;
13454
 
    esac
13455
 
 
13456
 
    if test "$ld_shlibs_F77" = yes; then
13457
 
      runpath_var=LD_RUN_PATH
13458
 
      hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13459
 
      export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13460
 
      # ancient GNU ld didn't support --whole-archive et. al.
13461
 
      if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13462
 
        whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13463
 
      else
13464
 
        whole_archive_flag_spec_F77=
13465
 
      fi
13466
 
    fi
13467
 
  else
13468
 
    # PORTME fill in a description of your system's linker (not GNU ld)
13469
 
    case $host_os in
13470
 
    aix3*)
13471
 
      allow_undefined_flag_F77=unsupported
13472
 
      always_export_symbols_F77=yes
13473
 
      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'
13474
 
      # Note: this linker hardcodes the directories in LIBPATH if there
13475
 
      # are no directories specified by -L.
13476
 
      hardcode_minus_L_F77=yes
13477
 
      if test "$GCC" = yes && test -z "$link_static_flag"; then
13478
 
        # Neither direct hardcoding nor static linking is supported with a
13479
 
        # broken collect2.
13480
 
        hardcode_direct_F77=unsupported
13481
 
      fi
13482
 
      ;;
13483
 
 
13484
 
    aix4* | aix5*)
13485
 
      if test "$host_cpu" = ia64; then
13486
 
        # On IA64, the linker does run time linking by default, so we don't
13487
 
        # have to do anything special.
13488
 
        aix_use_runtimelinking=no
13489
 
        exp_sym_flag='-Bexport'
13490
 
        no_entry_flag=""
13491
 
      else
13492
 
        # If we're using GNU nm, then we don't want the "-C" option.
13493
 
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
13494
 
        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13495
 
          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'
13496
 
        else
13497
 
          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'
13498
 
        fi
13499
 
        aix_use_runtimelinking=no
13500
 
 
13501
 
        # Test if we are trying to use run time linking or normal
13502
 
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13503
 
        # need to do runtime linking.
13504
 
        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13505
 
          for ld_flag in $LDFLAGS; do
13506
 
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13507
 
            aix_use_runtimelinking=yes
13508
 
            break
13509
 
          fi
13510
 
          done
13511
 
        esac
13512
 
 
13513
 
        exp_sym_flag='-bexport'
13514
 
        no_entry_flag='-bnoentry'
13515
 
      fi
13516
 
 
13517
 
      # When large executables or shared objects are built, AIX ld can
13518
 
      # have problems creating the table of contents.  If linking a library
13519
 
      # or program results in "error TOC overflow" add -mminimal-toc to
13520
 
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13521
 
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13522
 
 
13523
 
      archive_cmds_F77=''
13524
 
      hardcode_direct_F77=yes
13525
 
      hardcode_libdir_separator_F77=':'
13526
 
      link_all_deplibs_F77=yes
13527
 
 
13528
 
      if test "$GCC" = yes; then
13529
 
        case $host_os in aix4.[012]|aix4.[012].*)
13530
 
        # We only want to do this on AIX 4.2 and lower, the check
13531
 
        # below for broken collect2 doesn't work under 4.3+
13532
 
          collect2name=`${CC} -print-prog-name=collect2`
13533
 
          if test -f "$collect2name" && \
13534
 
           strings "$collect2name" | grep resolve_lib_name >/dev/null
13535
 
          then
13536
 
          # We have reworked collect2
13537
 
          hardcode_direct_F77=yes
13538
 
          else
13539
 
          # We have old collect2
13540
 
          hardcode_direct_F77=unsupported
13541
 
          # It fails to find uninstalled libraries when the uninstalled
13542
 
          # path is not listed in the libpath.  Setting hardcode_minus_L
13543
 
          # to unsupported forces relinking
13544
 
          hardcode_minus_L_F77=yes
13545
 
          hardcode_libdir_flag_spec_F77='-L$libdir'
13546
 
          hardcode_libdir_separator_F77=
13547
 
          fi
13548
 
        esac
13549
 
        shared_flag='-shared'
13550
 
        if test "$aix_use_runtimelinking" = yes; then
13551
 
          shared_flag="$shared_flag "'${wl}-G'
13552
 
        fi
13553
 
      else
13554
 
        # not using gcc
13555
 
        if test "$host_cpu" = ia64; then
13556
 
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13557
 
        # chokes on -Wl,-G. The following line is correct:
13558
 
          shared_flag='-G'
13559
 
        else
13560
 
        if test "$aix_use_runtimelinking" = yes; then
13561
 
            shared_flag='${wl}-G'
13562
 
          else
13563
 
            shared_flag='${wl}-bM:SRE'
13564
 
        fi
13565
 
        fi
13566
 
      fi
13567
 
 
13568
 
      # It seems that -bexpall does not export symbols beginning with
13569
 
      # underscore (_), so it is better to generate a list of symbols to export.
13570
 
      always_export_symbols_F77=yes
13571
 
      if test "$aix_use_runtimelinking" = yes; then
13572
 
        # Warning - without using the other runtime loading flags (-brtl),
13573
 
        # -berok will link without error, but may produce a broken library.
13574
 
        allow_undefined_flag_F77='-berok'
13575
 
       # Determine the default libpath from the value encoded in an empty executable.
13576
 
       cat >conftest.$ac_ext <<_ACEOF
13577
 
      program main
13578
 
 
13579
 
      end
13580
 
_ACEOF
13581
 
rm -f conftest.$ac_objext conftest$ac_exeext
13582
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13583
 
  (eval $ac_link) 2>conftest.er1
13584
 
  ac_status=$?
13585
 
  grep -v '^ *+' conftest.er1 >conftest.err
13586
 
  rm -f conftest.er1
13587
 
  cat conftest.err >&5
13588
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13589
 
  (exit $ac_status); } &&
13590
 
         { ac_try='test -z "$ac_f77_werror_flag"
13591
 
                         || test ! -s conftest.err'
13592
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13593
 
  (eval $ac_try) 2>&5
13594
 
  ac_status=$?
13595
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13596
 
  (exit $ac_status); }; } &&
13597
 
         { ac_try='test -s conftest$ac_exeext'
13598
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13599
 
  (eval $ac_try) 2>&5
13600
 
  ac_status=$?
13601
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13602
 
  (exit $ac_status); }; }; then
13603
 
 
13604
 
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13605
 
}'`
13606
 
# Check for a 64-bit object if we didn't find anything.
13607
 
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; }
13608
 
}'`; fi
13609
 
else
13610
 
  echo "$as_me: failed program was:" >&5
13611
 
sed 's/^/| /' conftest.$ac_ext >&5
13612
 
 
13613
 
fi
13614
 
rm -f conftest.err conftest.$ac_objext \
13615
 
      conftest$ac_exeext conftest.$ac_ext
13616
 
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13617
 
 
13618
 
       hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13619
 
        archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
13620
 
       else
13621
 
        if test "$host_cpu" = ia64; then
13622
 
          hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13623
 
          allow_undefined_flag_F77="-z nodefs"
13624
 
          archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
13625
 
        else
13626
 
         # Determine the default libpath from the value encoded in an empty executable.
13627
 
         cat >conftest.$ac_ext <<_ACEOF
13628
 
      program main
13629
 
 
13630
 
      end
13631
 
_ACEOF
13632
 
rm -f conftest.$ac_objext conftest$ac_exeext
13633
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13634
 
  (eval $ac_link) 2>conftest.er1
13635
 
  ac_status=$?
13636
 
  grep -v '^ *+' conftest.er1 >conftest.err
13637
 
  rm -f conftest.er1
13638
 
  cat conftest.err >&5
13639
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13640
 
  (exit $ac_status); } &&
13641
 
         { ac_try='test -z "$ac_f77_werror_flag"
13642
 
                         || test ! -s conftest.err'
13643
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13644
 
  (eval $ac_try) 2>&5
13645
 
  ac_status=$?
13646
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13647
 
  (exit $ac_status); }; } &&
13648
 
         { ac_try='test -s conftest$ac_exeext'
13649
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13650
 
  (eval $ac_try) 2>&5
13651
 
  ac_status=$?
13652
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13653
 
  (exit $ac_status); }; }; then
13654
 
 
13655
 
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13656
 
}'`
13657
 
# Check for a 64-bit object if we didn't find anything.
13658
 
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; }
13659
 
}'`; fi
13660
 
else
13661
 
  echo "$as_me: failed program was:" >&5
13662
 
sed 's/^/| /' conftest.$ac_ext >&5
13663
 
 
13664
 
fi
13665
 
rm -f conftest.err conftest.$ac_objext \
13666
 
      conftest$ac_exeext conftest.$ac_ext
13667
 
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13668
 
 
13669
 
         hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13670
 
          # Warning - without using the other run time loading flags,
13671
 
          # -berok will link without error, but may produce a broken library.
13672
 
          no_undefined_flag_F77=' ${wl}-bernotok'
13673
 
          allow_undefined_flag_F77=' ${wl}-berok'
13674
 
          # -bexpall does not export symbols beginning with underscore (_)
13675
 
          always_export_symbols_F77=yes
13676
 
          # Exported symbols can be pulled into shared objects from archives
13677
 
          whole_archive_flag_spec_F77=' '
13678
 
          archive_cmds_need_lc_F77=yes
13679
 
          # This is similar to how AIX traditionally builds it's shared libraries.
13680
 
          archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
13681
 
        fi
13682
 
      fi
13683
 
      ;;
13684
 
 
13685
 
    amigaos*)
13686
 
      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)'
13687
 
      hardcode_libdir_flag_spec_F77='-L$libdir'
13688
 
      hardcode_minus_L_F77=yes
13689
 
      # see comment about different semantics on the GNU ld section
13690
 
      ld_shlibs_F77=no
13691
 
      ;;
13692
 
 
13693
 
    bsdi[45]*)
13694
 
      export_dynamic_flag_spec_F77=-rdynamic
13695
 
      ;;
13696
 
 
13697
 
    cygwin* | mingw* | pw32*)
13698
 
      # When not using gcc, we currently assume that we are using
13699
 
      # Microsoft Visual C++.
13700
 
      # hardcode_libdir_flag_spec is actually meaningless, as there is
13701
 
      # no search path for DLLs.
13702
 
      hardcode_libdir_flag_spec_F77=' '
13703
 
      allow_undefined_flag_F77=unsupported
13704
 
      # Tell ltmain to make .lib files, not .a files.
13705
 
      libext=lib
13706
 
      # Tell ltmain to make .dll files, not .so files.
13707
 
      shrext_cmds=".dll"
13708
 
      # FIXME: Setting linknames here is a bad hack.
13709
 
      archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13710
 
      # The linker will automatically build a .lib file if we build a DLL.
13711
 
      old_archive_From_new_cmds_F77='true'
13712
 
      # FIXME: Should let the user specify the lib program.
13713
 
      old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13714
 
      fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
13715
 
      enable_shared_with_static_runtimes_F77=yes
13716
 
      ;;
13717
 
 
13718
 
    darwin* | rhapsody*)
13719
 
      case "$host_os" in
13720
 
        rhapsody* | darwin1.[012])
13721
 
         allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
13722
 
         ;;
13723
 
       *) # Darwin 1.3 on
13724
 
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
13725
 
           allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
13726
 
         else
13727
 
           case ${MACOSX_DEPLOYMENT_TARGET} in
13728
 
             10.[012])
13729
 
               allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
13730
 
               ;;
13731
 
             10.*)
13732
 
               allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
13733
 
               ;;
13734
 
           esac
13735
 
         fi
13736
 
         ;;
13737
 
      esac
13738
 
      archive_cmds_need_lc_F77=no
13739
 
      hardcode_direct_F77=no
13740
 
      hardcode_automatic_F77=yes
13741
 
      hardcode_shlibpath_var_F77=unsupported
13742
 
      whole_archive_flag_spec_F77=''
13743
 
      link_all_deplibs_F77=yes
13744
 
    if test "$GCC" = yes ; then
13745
 
        output_verbose_link_cmd='echo'
13746
 
        archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13747
 
      module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13748
 
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
13749
 
      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}'
13750
 
      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}'
13751
 
    else
13752
 
      case "$cc_basename" in
13753
 
        xlc*)
13754
 
         output_verbose_link_cmd='echo'
13755
 
         archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
13756
 
         module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13757
 
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
13758
 
         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}'
13759
 
          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}'
13760
 
          ;;
13761
 
       *)
13762
 
         ld_shlibs_F77=no
13763
 
          ;;
13764
 
      esac
13765
 
    fi
13766
 
      ;;
13767
 
 
13768
 
    dgux*)
13769
 
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13770
 
      hardcode_libdir_flag_spec_F77='-L$libdir'
13771
 
      hardcode_shlibpath_var_F77=no
13772
 
      ;;
13773
 
 
13774
 
    freebsd1*)
13775
 
      ld_shlibs_F77=no
13776
 
      ;;
13777
 
 
13778
 
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13779
 
    # support.  Future versions do this automatically, but an explicit c++rt0.o
13780
 
    # does not break anything, and helps significantly (at the cost of a little
13781
 
    # extra space).
13782
 
    freebsd2.2*)
13783
 
      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13784
 
      hardcode_libdir_flag_spec_F77='-R$libdir'
13785
 
      hardcode_direct_F77=yes
13786
 
      hardcode_shlibpath_var_F77=no
13787
 
      ;;
13788
 
 
13789
 
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13790
 
    freebsd2*)
13791
 
      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13792
 
      hardcode_direct_F77=yes
13793
 
      hardcode_minus_L_F77=yes
13794
 
      hardcode_shlibpath_var_F77=no
13795
 
      ;;
13796
 
 
13797
 
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13798
 
    freebsd* | kfreebsd*-gnu | dragonfly*)
13799
 
      archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13800
 
      hardcode_libdir_flag_spec_F77='-R$libdir'
13801
 
      hardcode_direct_F77=yes
13802
 
      hardcode_shlibpath_var_F77=no
13803
 
      ;;
13804
 
 
13805
 
    hpux9*)
13806
 
      if test "$GCC" = yes; then
13807
 
        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'
13808
 
      else
13809
 
        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'
13810
 
      fi
13811
 
      hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13812
 
      hardcode_libdir_separator_F77=:
13813
 
      hardcode_direct_F77=yes
13814
 
 
13815
 
      # hardcode_minus_L: Not really in the search PATH,
13816
 
      # but as the default location of the library.
13817
 
      hardcode_minus_L_F77=yes
13818
 
      export_dynamic_flag_spec_F77='${wl}-E'
13819
 
      ;;
13820
 
 
13821
 
    hpux10* | hpux11*)
13822
 
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13823
 
        case "$host_cpu" in
13824
 
        hppa*64*|ia64*)
13825
 
          archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13826
 
          ;;
13827
 
        *)
13828
 
          archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13829
 
          ;;
13830
 
        esac
13831
 
      else
13832
 
        case "$host_cpu" in
13833
 
        hppa*64*|ia64*)
13834
 
          archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
13835
 
          ;;
13836
 
        *)
13837
 
          archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13838
 
          ;;
13839
 
        esac
13840
 
      fi
13841
 
      if test "$with_gnu_ld" = no; then
13842
 
        case "$host_cpu" in
13843
 
        hppa*64*)
13844
 
          hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13845
 
          hardcode_libdir_flag_spec_ld_F77='+b $libdir'
13846
 
          hardcode_libdir_separator_F77=:
13847
 
          hardcode_direct_F77=no
13848
 
          hardcode_shlibpath_var_F77=no
13849
 
          ;;
13850
 
        ia64*)
13851
 
          hardcode_libdir_flag_spec_F77='-L$libdir'
13852
 
          hardcode_direct_F77=no
13853
 
          hardcode_shlibpath_var_F77=no
13854
 
 
13855
 
          # hardcode_minus_L: Not really in the search PATH,
13856
 
          # but as the default location of the library.
13857
 
          hardcode_minus_L_F77=yes
13858
 
          ;;
13859
 
        *)
13860
 
          hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13861
 
          hardcode_libdir_separator_F77=:
13862
 
          hardcode_direct_F77=yes
13863
 
          export_dynamic_flag_spec_F77='${wl}-E'
13864
 
 
13865
 
          # hardcode_minus_L: Not really in the search PATH,
13866
 
          # but as the default location of the library.
13867
 
          hardcode_minus_L_F77=yes
13868
 
          ;;
13869
 
        esac
13870
 
      fi
13871
 
      ;;
13872
 
 
13873
 
    irix5* | irix6* | nonstopux*)
13874
 
      if test "$GCC" = yes; then
13875
 
        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'
13876
 
      else
13877
 
        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'
13878
 
        hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
13879
 
      fi
13880
 
      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13881
 
      hardcode_libdir_separator_F77=:
13882
 
      link_all_deplibs_F77=yes
13883
 
      ;;
13884
 
 
13885
 
    netbsd*)
13886
 
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13887
 
        archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
13888
 
      else
13889
 
        archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
13890
 
      fi
13891
 
      hardcode_libdir_flag_spec_F77='-R$libdir'
13892
 
      hardcode_direct_F77=yes
13893
 
      hardcode_shlibpath_var_F77=no
13894
 
      ;;
13895
 
 
13896
 
    newsos6)
13897
 
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13898
 
      hardcode_direct_F77=yes
13899
 
      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13900
 
      hardcode_libdir_separator_F77=:
13901
 
      hardcode_shlibpath_var_F77=no
13902
 
      ;;
13903
 
 
13904
 
    openbsd*)
13905
 
      hardcode_direct_F77=yes
13906
 
      hardcode_shlibpath_var_F77=no
13907
 
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13908
 
        archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13909
 
        archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
13910
 
        hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13911
 
        export_dynamic_flag_spec_F77='${wl}-E'
13912
 
      else
13913
 
       case $host_os in
13914
 
         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13915
 
           archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13916
 
           hardcode_libdir_flag_spec_F77='-R$libdir'
13917
 
           ;;
13918
 
         *)
13919
 
           archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13920
 
           hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13921
 
           ;;
13922
 
       esac
13923
 
      fi
13924
 
      ;;
13925
 
 
13926
 
    os2*)
13927
 
      hardcode_libdir_flag_spec_F77='-L$libdir'
13928
 
      hardcode_minus_L_F77=yes
13929
 
      allow_undefined_flag_F77=unsupported
13930
 
      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'
13931
 
      old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13932
 
      ;;
13933
 
 
13934
 
    osf3*)
13935
 
      if test "$GCC" = yes; then
13936
 
        allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13937
 
        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'
13938
 
      else
13939
 
        allow_undefined_flag_F77=' -expect_unresolved \*'
13940
 
        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'
13941
 
      fi
13942
 
      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13943
 
      hardcode_libdir_separator_F77=:
13944
 
      ;;
13945
 
 
13946
 
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
13947
 
      if test "$GCC" = yes; then
13948
 
        allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13949
 
        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'
13950
 
        hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13951
 
      else
13952
 
        allow_undefined_flag_F77=' -expect_unresolved \*'
13953
 
        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'
13954
 
        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~
13955
 
        $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
13956
 
 
13957
 
        # Both c and cxx compiler support -rpath directly
13958
 
        hardcode_libdir_flag_spec_F77='-rpath $libdir'
13959
 
      fi
13960
 
      hardcode_libdir_separator_F77=:
13961
 
      ;;
13962
 
 
13963
 
    sco3.2v5*)
13964
 
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13965
 
      hardcode_shlibpath_var_F77=no
13966
 
      export_dynamic_flag_spec_F77='${wl}-Bexport'
13967
 
      runpath_var=LD_RUN_PATH
13968
 
      hardcode_runpath_var=yes
13969
 
      ;;
13970
 
 
13971
 
    solaris*)
13972
 
      no_undefined_flag_F77=' -z text'
13973
 
      if test "$GCC" = yes; then
13974
 
        archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13975
 
        archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13976
 
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
13977
 
      else
13978
 
        archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13979
 
        archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13980
 
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13981
 
      fi
13982
 
      hardcode_libdir_flag_spec_F77='-R$libdir'
13983
 
      hardcode_shlibpath_var_F77=no
13984
 
      case $host_os in
13985
 
      solaris2.[0-5] | solaris2.[0-5].*) ;;
13986
 
      *) # Supported since Solaris 2.6 (maybe 2.5.1?)
13987
 
        whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' ;;
13988
 
      esac
13989
 
      link_all_deplibs_F77=yes
13990
 
      ;;
13991
 
 
13992
 
    sunos4*)
13993
 
      if test "x$host_vendor" = xsequent; then
13994
 
        # Use $CC to link under sequent, because it throws in some extra .o
13995
 
        # files that make .init and .fini sections work.
13996
 
        archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13997
 
      else
13998
 
        archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13999
 
      fi
14000
 
      hardcode_libdir_flag_spec_F77='-L$libdir'
14001
 
      hardcode_direct_F77=yes
14002
 
      hardcode_minus_L_F77=yes
14003
 
      hardcode_shlibpath_var_F77=no
14004
 
      ;;
14005
 
 
14006
 
    sysv4)
14007
 
      case $host_vendor in
14008
 
        sni)
14009
 
          archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14010
 
          hardcode_direct_F77=yes # is this really true???
14011
 
        ;;
14012
 
        siemens)
14013
 
          ## LD is ld it makes a PLAMLIB
14014
 
          ## CC just makes a GrossModule.
14015
 
          archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14016
 
          reload_cmds_F77='$CC -r -o $output$reload_objs'
14017
 
          hardcode_direct_F77=no
14018
 
        ;;
14019
 
        motorola)
14020
 
          archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14021
 
          hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14022
 
        ;;
14023
 
      esac
14024
 
      runpath_var='LD_RUN_PATH'
14025
 
      hardcode_shlibpath_var_F77=no
14026
 
      ;;
14027
 
 
14028
 
    sysv4.3*)
14029
 
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14030
 
      hardcode_shlibpath_var_F77=no
14031
 
      export_dynamic_flag_spec_F77='-Bexport'
14032
 
      ;;
14033
 
 
14034
 
    sysv4*MP*)
14035
 
      if test -d /usr/nec; then
14036
 
        archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14037
 
        hardcode_shlibpath_var_F77=no
14038
 
        runpath_var=LD_RUN_PATH
14039
 
        hardcode_runpath_var=yes
14040
 
        ld_shlibs_F77=yes
14041
 
      fi
14042
 
      ;;
14043
 
 
14044
 
    sysv4.2uw2*)
14045
 
      archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14046
 
      hardcode_direct_F77=yes
14047
 
      hardcode_minus_L_F77=no
14048
 
      hardcode_shlibpath_var_F77=no
14049
 
      hardcode_runpath_var=yes
14050
 
      runpath_var=LD_RUN_PATH
14051
 
      ;;
14052
 
 
14053
 
   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
14054
 
      no_undefined_flag_F77='${wl}-z ${wl}text'
14055
 
      if test "$GCC" = yes; then
14056
 
        archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14057
 
      else
14058
 
        archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14059
 
      fi
14060
 
      runpath_var='LD_RUN_PATH'
14061
 
      hardcode_shlibpath_var_F77=no
14062
 
      ;;
14063
 
 
14064
 
    sysv5*)
14065
 
      no_undefined_flag_F77=' -z text'
14066
 
      # $CC -shared without GNU ld will not create a library from C++
14067
 
      # object files and a static libstdc++, better avoid it by now
14068
 
      archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14069
 
      archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14070
 
                $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14071
 
      hardcode_libdir_flag_spec_F77=
14072
 
      hardcode_shlibpath_var_F77=no
14073
 
      runpath_var='LD_RUN_PATH'
14074
 
      ;;
14075
 
 
14076
 
    uts4*)
14077
 
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14078
 
      hardcode_libdir_flag_spec_F77='-L$libdir'
14079
 
      hardcode_shlibpath_var_F77=no
14080
 
      ;;
14081
 
 
14082
 
    *)
14083
 
      ld_shlibs_F77=no
14084
 
      ;;
14085
 
    esac
14086
 
  fi
14087
 
 
14088
 
echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14089
 
echo "${ECHO_T}$ld_shlibs_F77" >&6
14090
 
test "$ld_shlibs_F77" = no && can_build_shared=no
14091
 
 
14092
 
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14093
 
if test "$GCC" = yes; then
14094
 
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14095
 
fi
14096
 
 
14097
 
#
14098
 
# Do we need to explicitly link libc?
14099
 
#
14100
 
case "x$archive_cmds_need_lc_F77" in
14101
 
x|xyes)
14102
 
  # Assume -lc should be added
14103
 
  archive_cmds_need_lc_F77=yes
14104
 
 
14105
 
  if test "$enable_shared" = yes && test "$GCC" = yes; then
14106
 
    case $archive_cmds_F77 in
14107
 
    *'~'*)
14108
 
      # FIXME: we may have to deal with multi-command sequences.
14109
 
      ;;
14110
 
    '$CC '*)
14111
 
      # Test whether the compiler implicitly links with -lc since on some
14112
 
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
14113
 
      # to ld, don't add -lc before -lgcc.
14114
 
      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14115
 
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14116
 
      $rm conftest*
14117
 
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14118
 
 
14119
 
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14120
 
  (eval $ac_compile) 2>&5
14121
 
  ac_status=$?
14122
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14123
 
  (exit $ac_status); } 2>conftest.err; then
14124
 
        soname=conftest
14125
 
        lib=conftest
14126
 
        libobjs=conftest.$ac_objext
14127
 
        deplibs=
14128
 
        wl=$lt_prog_compiler_wl_F77
14129
 
        compiler_flags=-v
14130
 
        linker_flags=-v
14131
 
        verstring=
14132
 
        output_objdir=.
14133
 
        libname=conftest
14134
 
        lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14135
 
        allow_undefined_flag_F77=
14136
 
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14137
 
  (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14138
 
  ac_status=$?
14139
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14140
 
  (exit $ac_status); }
14141
 
        then
14142
 
          archive_cmds_need_lc_F77=no
14143
 
        else
14144
 
          archive_cmds_need_lc_F77=yes
14145
 
        fi
14146
 
        allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14147
 
      else
14148
 
        cat conftest.err 1>&5
14149
 
      fi
14150
 
      $rm conftest*
14151
 
      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14152
 
echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14153
 
      ;;
14154
 
    esac
14155
 
  fi
14156
 
  ;;
14157
 
esac
14158
 
 
14159
 
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14160
 
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14161
 
library_names_spec=
14162
 
libname_spec='lib$name'
14163
 
soname_spec=
14164
 
shrext_cmds=".so"
14165
 
postinstall_cmds=
14166
 
postuninstall_cmds=
14167
 
finish_cmds=
14168
 
finish_eval=
14169
 
shlibpath_var=
14170
 
shlibpath_overrides_runpath=unknown
14171
 
version_type=none
14172
 
dynamic_linker="$host_os ld.so"
14173
 
sys_lib_dlsearch_path_spec="/lib /usr/lib"
14174
 
if test "$GCC" = yes; then
14175
 
  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14176
 
  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14177
 
    # if the path contains ";" then we assume it to be the separator
14178
 
    # otherwise default to the standard path separator (i.e. ":") - it is
14179
 
    # assumed that no part of a normal pathname contains ";" but that should
14180
 
    # okay in the real world where ";" in dirpaths is itself problematic.
14181
 
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14182
 
  else
14183
 
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14184
 
  fi
14185
 
else
14186
 
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14187
 
fi
14188
 
need_lib_prefix=unknown
14189
 
hardcode_into_libs=no
14190
 
 
14191
 
# when you set need_version to no, make sure it does not cause -set_version
14192
 
# flags to be left without arguments
14193
 
need_version=unknown
14194
 
 
14195
 
case $host_os in
14196
 
aix3*)
14197
 
  version_type=linux
14198
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14199
 
  shlibpath_var=LIBPATH
14200
 
 
14201
 
  # AIX 3 has no versioning support, so we append a major version to the name.
14202
 
  soname_spec='${libname}${release}${shared_ext}$major'
14203
 
  ;;
14204
 
 
14205
 
aix4* | aix5*)
14206
 
  version_type=linux
14207
 
  need_lib_prefix=no
14208
 
  need_version=no
14209
 
  hardcode_into_libs=yes
14210
 
  if test "$host_cpu" = ia64; then
14211
 
    # AIX 5 supports IA64
14212
 
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14213
 
    shlibpath_var=LD_LIBRARY_PATH
14214
 
  else
14215
 
    # With GCC up to 2.95.x, collect2 would create an import file
14216
 
    # for dependence libraries.  The import file would start with
14217
 
    # the line `#! .'.  This would cause the generated library to
14218
 
    # depend on `.', always an invalid library.  This was fixed in
14219
 
    # development snapshots of GCC prior to 3.0.
14220
 
    case $host_os in
14221
 
      aix4 | aix4.[01] | aix4.[01].*)
14222
 
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14223
 
           echo ' yes '
14224
 
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14225
 
        :
14226
 
      else
14227
 
        can_build_shared=no
14228
 
      fi
14229
 
      ;;
14230
 
    esac
14231
 
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14232
 
    # soname into executable. Probably we can add versioning support to
14233
 
    # collect2, so additional links can be useful in future.
14234
 
    if test "$aix_use_runtimelinking" = yes; then
14235
 
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14236
 
      # instead of lib<name>.a to let people know that these are not
14237
 
      # typical AIX shared libraries.
14238
 
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14239
 
    else
14240
 
      # We preserve .a as extension for shared libraries through AIX4.2
14241
 
      # and later when we are not doing run time linking.
14242
 
      library_names_spec='${libname}${release}.a $libname.a'
14243
 
      soname_spec='${libname}${release}${shared_ext}$major'
14244
 
    fi
14245
 
    shlibpath_var=LIBPATH
14246
 
  fi
14247
 
  ;;
14248
 
 
14249
 
amigaos*)
14250
 
  library_names_spec='$libname.ixlibrary $libname.a'
14251
 
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
14252
 
  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'
14253
 
  ;;
14254
 
 
14255
 
beos*)
14256
 
  library_names_spec='${libname}${shared_ext}'
14257
 
  dynamic_linker="$host_os ld.so"
14258
 
  shlibpath_var=LIBRARY_PATH
14259
 
  ;;
14260
 
 
14261
 
bsdi[45]*)
14262
 
  version_type=linux
14263
 
  need_version=no
14264
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14265
 
  soname_spec='${libname}${release}${shared_ext}$major'
14266
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14267
 
  shlibpath_var=LD_LIBRARY_PATH
14268
 
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14269
 
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14270
 
  # the default ld.so.conf also contains /usr/contrib/lib and
14271
 
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14272
 
  # libtool to hard-code these into programs
14273
 
  ;;
14274
 
 
14275
 
cygwin* | mingw* | pw32*)
14276
 
  version_type=windows
14277
 
  shrext_cmds=".dll"
14278
 
  need_version=no
14279
 
  need_lib_prefix=no
14280
 
 
14281
 
  case $GCC,$host_os in
14282
 
  yes,cygwin* | yes,mingw* | yes,pw32*)
14283
 
    library_names_spec='$libname.dll.a'
14284
 
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
14285
 
    postinstall_cmds='base_file=`basename \${file}`~
14286
 
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14287
 
      dldir=$destdir/`dirname \$dlpath`~
14288
 
      test -d \$dldir || mkdir -p \$dldir~
14289
 
      $install_prog $dir/$dlname \$dldir/$dlname'
14290
 
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14291
 
      dlpath=$dir/\$dldll~
14292
 
       $rm \$dlpath'
14293
 
    shlibpath_overrides_runpath=yes
14294
 
 
14295
 
    case $host_os in
14296
 
    cygwin*)
14297
 
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14298
 
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14299
 
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14300
 
      ;;
14301
 
    mingw*)
14302
 
      # MinGW DLLs use traditional 'lib' prefix
14303
 
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14304
 
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14305
 
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14306
 
        # It is most probably a Windows format PATH printed by
14307
 
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
14308
 
        # path with ; separators, and with drive letters. We can handle the
14309
 
        # drive letters (cygwin fileutils understands them), so leave them,
14310
 
        # especially as we might pass files found there to a mingw objdump,
14311
 
        # which wouldn't understand a cygwinified path. Ahh.
14312
 
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14313
 
      else
14314
 
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14315
 
      fi
14316
 
      ;;
14317
 
    pw32*)
14318
 
      # pw32 DLLs use 'pw' prefix rather than 'lib'
14319
 
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14320
 
      ;;
14321
 
    esac
14322
 
    ;;
14323
 
 
14324
 
  *)
14325
 
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14326
 
    ;;
14327
 
  esac
14328
 
  dynamic_linker='Win32 ld.exe'
14329
 
  # FIXME: first we should search . and the directory the executable is in
14330
 
  shlibpath_var=PATH
14331
 
  ;;
14332
 
 
14333
 
darwin* | rhapsody*)
14334
 
  dynamic_linker="$host_os dyld"
14335
 
  version_type=darwin
14336
 
  need_lib_prefix=no
14337
 
  need_version=no
14338
 
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14339
 
  soname_spec='${libname}${release}${major}$shared_ext'
14340
 
  shlibpath_overrides_runpath=yes
14341
 
  shlibpath_var=DYLD_LIBRARY_PATH
14342
 
  shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
14343
 
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14344
 
  if test "$GCC" = yes; then
14345
 
    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"`
14346
 
  else
14347
 
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14348
 
  fi
14349
 
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14350
 
  ;;
14351
 
 
14352
 
dgux*)
14353
 
  version_type=linux
14354
 
  need_lib_prefix=no
14355
 
  need_version=no
14356
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14357
 
  soname_spec='${libname}${release}${shared_ext}$major'
14358
 
  shlibpath_var=LD_LIBRARY_PATH
14359
 
  ;;
14360
 
 
14361
 
freebsd1*)
14362
 
  dynamic_linker=no
14363
 
  ;;
14364
 
 
14365
 
kfreebsd*-gnu)
14366
 
  version_type=linux
14367
 
  need_lib_prefix=no
14368
 
  need_version=no
14369
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14370
 
  soname_spec='${libname}${release}${shared_ext}$major'
14371
 
  shlibpath_var=LD_LIBRARY_PATH
14372
 
  shlibpath_overrides_runpath=no
14373
 
  hardcode_into_libs=yes
14374
 
  dynamic_linker='GNU ld.so'
14375
 
  ;;
14376
 
 
14377
 
freebsd* | dragonfly*)
14378
 
  # DragonFly does not have aout.  When/if they implement a new
14379
 
  # versioning mechanism, adjust this.
14380
 
  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
14381
 
  version_type=freebsd-$objformat
14382
 
  case $version_type in
14383
 
    freebsd-elf*)
14384
 
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14385
 
      need_version=no
14386
 
      need_lib_prefix=no
14387
 
      ;;
14388
 
    freebsd-*)
14389
 
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14390
 
      need_version=yes
14391
 
      ;;
14392
 
  esac
14393
 
  shlibpath_var=LD_LIBRARY_PATH
14394
 
  case $host_os in
14395
 
  freebsd2*)
14396
 
    shlibpath_overrides_runpath=yes
14397
 
    ;;
14398
 
  freebsd3.[01]* | freebsdelf3.[01]*)
14399
 
    shlibpath_overrides_runpath=yes
14400
 
    hardcode_into_libs=yes
14401
 
    ;;
14402
 
  *) # from 3.2 on
14403
 
    shlibpath_overrides_runpath=no
14404
 
    hardcode_into_libs=yes
14405
 
    ;;
14406
 
  esac
14407
 
  ;;
14408
 
 
14409
 
gnu*)
14410
 
  version_type=linux
14411
 
  need_lib_prefix=no
14412
 
  need_version=no
14413
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14414
 
  soname_spec='${libname}${release}${shared_ext}$major'
14415
 
  shlibpath_var=LD_LIBRARY_PATH
14416
 
  hardcode_into_libs=yes
14417
 
  ;;
14418
 
 
14419
 
hpux9* | hpux10* | hpux11*)
14420
 
  # Give a soname corresponding to the major version so that dld.sl refuses to
14421
 
  # link against other versions.
14422
 
  version_type=sunos
14423
 
  need_lib_prefix=no
14424
 
  need_version=no
14425
 
  case "$host_cpu" in
14426
 
  ia64*)
14427
 
    shrext_cmds='.so'
14428
 
    hardcode_into_libs=yes
14429
 
    dynamic_linker="$host_os dld.so"
14430
 
    shlibpath_var=LD_LIBRARY_PATH
14431
 
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14432
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14433
 
    soname_spec='${libname}${release}${shared_ext}$major'
14434
 
    if test "X$HPUX_IA64_MODE" = X32; then
14435
 
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14436
 
    else
14437
 
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14438
 
    fi
14439
 
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14440
 
    ;;
14441
 
   hppa*64*)
14442
 
     shrext_cmds='.sl'
14443
 
     hardcode_into_libs=yes
14444
 
     dynamic_linker="$host_os dld.sl"
14445
 
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14446
 
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14447
 
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14448
 
     soname_spec='${libname}${release}${shared_ext}$major'
14449
 
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14450
 
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14451
 
     ;;
14452
 
   *)
14453
 
    shrext_cmds='.sl'
14454
 
    dynamic_linker="$host_os dld.sl"
14455
 
    shlibpath_var=SHLIB_PATH
14456
 
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14457
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14458
 
    soname_spec='${libname}${release}${shared_ext}$major'
14459
 
    ;;
14460
 
  esac
14461
 
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
14462
 
  postinstall_cmds='chmod 555 $lib'
14463
 
  ;;
14464
 
 
14465
 
irix5* | irix6* | nonstopux*)
14466
 
  case $host_os in
14467
 
    nonstopux*) version_type=nonstopux ;;
14468
 
    *)
14469
 
        if test "$lt_cv_prog_gnu_ld" = yes; then
14470
 
                version_type=linux
14471
 
        else
14472
 
                version_type=irix
14473
 
        fi ;;
14474
 
  esac
14475
 
  need_lib_prefix=no
14476
 
  need_version=no
14477
 
  soname_spec='${libname}${release}${shared_ext}$major'
14478
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14479
 
  case $host_os in
14480
 
  irix5* | nonstopux*)
14481
 
    libsuff= shlibsuff=
14482
 
    ;;
14483
 
  *)
14484
 
    case $LD in # libtool.m4 will add one of these switches to LD
14485
 
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14486
 
      libsuff= shlibsuff= libmagic=32-bit;;
14487
 
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14488
 
      libsuff=32 shlibsuff=N32 libmagic=N32;;
14489
 
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14490
 
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
14491
 
    *) libsuff= shlibsuff= libmagic=never-match;;
14492
 
    esac
14493
 
    ;;
14494
 
  esac
14495
 
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14496
 
  shlibpath_overrides_runpath=no
14497
 
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14498
 
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14499
 
  hardcode_into_libs=yes
14500
 
  ;;
14501
 
 
14502
 
# No shared lib support for Linux oldld, aout, or coff.
14503
 
linux*oldld* | linux*aout* | linux*coff*)
14504
 
  dynamic_linker=no
14505
 
  ;;
14506
 
 
14507
 
# This must be Linux ELF.
14508
 
linux*)
14509
 
  version_type=linux
14510
 
  need_lib_prefix=no
14511
 
  need_version=no
14512
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14513
 
  soname_spec='${libname}${release}${shared_ext}$major'
14514
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14515
 
  shlibpath_var=LD_LIBRARY_PATH
14516
 
  shlibpath_overrides_runpath=no
14517
 
  # This implies no fast_install, which is unacceptable.
14518
 
  # Some rework will be needed to allow for fast_install
14519
 
  # before this can be enabled.
14520
 
  hardcode_into_libs=yes
14521
 
 
14522
 
  # Append ld.so.conf contents to the search path
14523
 
  if test -f /etc/ld.so.conf; then
14524
 
    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/[:,\t]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
14525
 
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14526
 
  fi
14527
 
 
14528
 
  # We used to test for /lib/ld.so.1 and disable shared libraries on
14529
 
  # powerpc, because MkLinux only supported shared libraries with the
14530
 
  # GNU dynamic linker.  Since this was broken with cross compilers,
14531
 
  # most powerpc-linux boxes support dynamic linking these days and
14532
 
  # people can always --disable-shared, the test was removed, and we
14533
 
  # assume the GNU/Linux dynamic linker is in use.
14534
 
  dynamic_linker='GNU/Linux ld.so'
14535
 
  ;;
14536
 
 
14537
 
knetbsd*-gnu)
14538
 
  version_type=linux
14539
 
  need_lib_prefix=no
14540
 
  need_version=no
14541
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14542
 
  soname_spec='${libname}${release}${shared_ext}$major'
14543
 
  shlibpath_var=LD_LIBRARY_PATH
14544
 
  shlibpath_overrides_runpath=no
14545
 
  hardcode_into_libs=yes
14546
 
  dynamic_linker='GNU ld.so'
14547
 
  ;;
14548
 
 
14549
 
netbsd*)
14550
 
  version_type=sunos
14551
 
  need_lib_prefix=no
14552
 
  need_version=no
14553
 
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14554
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14555
 
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14556
 
    dynamic_linker='NetBSD (a.out) ld.so'
14557
 
  else
14558
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14559
 
    soname_spec='${libname}${release}${shared_ext}$major'
14560
 
    dynamic_linker='NetBSD ld.elf_so'
14561
 
  fi
14562
 
  shlibpath_var=LD_LIBRARY_PATH
14563
 
  shlibpath_overrides_runpath=yes
14564
 
  hardcode_into_libs=yes
14565
 
  ;;
14566
 
 
14567
 
newsos6)
14568
 
  version_type=linux
14569
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14570
 
  shlibpath_var=LD_LIBRARY_PATH
14571
 
  shlibpath_overrides_runpath=yes
14572
 
  ;;
14573
 
 
14574
 
nto-qnx*)
14575
 
  version_type=linux
14576
 
  need_lib_prefix=no
14577
 
  need_version=no
14578
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14579
 
  soname_spec='${libname}${release}${shared_ext}$major'
14580
 
  shlibpath_var=LD_LIBRARY_PATH
14581
 
  shlibpath_overrides_runpath=yes
14582
 
  ;;
14583
 
 
14584
 
openbsd*)
14585
 
  version_type=sunos
14586
 
  need_lib_prefix=no
14587
 
  need_version=no
14588
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14589
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14590
 
  shlibpath_var=LD_LIBRARY_PATH
14591
 
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14592
 
    case $host_os in
14593
 
      openbsd2.[89] | openbsd2.[89].*)
14594
 
        shlibpath_overrides_runpath=no
14595
 
        ;;
14596
 
      *)
14597
 
        shlibpath_overrides_runpath=yes
14598
 
        ;;
14599
 
      esac
14600
 
  else
14601
 
    shlibpath_overrides_runpath=yes
14602
 
  fi
14603
 
  ;;
14604
 
 
14605
 
os2*)
14606
 
  libname_spec='$name'
14607
 
  shrext_cmds=".dll"
14608
 
  need_lib_prefix=no
14609
 
  library_names_spec='$libname${shared_ext} $libname.a'
14610
 
  dynamic_linker='OS/2 ld.exe'
14611
 
  shlibpath_var=LIBPATH
14612
 
  ;;
14613
 
 
14614
 
osf3* | osf4* | osf5*)
14615
 
  version_type=osf
14616
 
  need_lib_prefix=no
14617
 
  need_version=no
14618
 
  soname_spec='${libname}${release}${shared_ext}$major'
14619
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14620
 
  shlibpath_var=LD_LIBRARY_PATH
14621
 
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14622
 
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14623
 
  ;;
14624
 
 
14625
 
sco3.2v5*)
14626
 
  version_type=osf
14627
 
  soname_spec='${libname}${release}${shared_ext}$major'
14628
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14629
 
  shlibpath_var=LD_LIBRARY_PATH
14630
 
  ;;
14631
 
 
14632
 
solaris*)
14633
 
  version_type=linux
14634
 
  need_lib_prefix=no
14635
 
  need_version=no
14636
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14637
 
  soname_spec='${libname}${release}${shared_ext}$major'
14638
 
  shlibpath_var=LD_LIBRARY_PATH
14639
 
  shlibpath_overrides_runpath=yes
14640
 
  hardcode_into_libs=yes
14641
 
  # ldd complains unless libraries are executable
14642
 
  postinstall_cmds='chmod +x $lib'
14643
 
  ;;
14644
 
 
14645
 
sunos4*)
14646
 
  version_type=sunos
14647
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14648
 
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14649
 
  shlibpath_var=LD_LIBRARY_PATH
14650
 
  shlibpath_overrides_runpath=yes
14651
 
  if test "$with_gnu_ld" = yes; then
14652
 
    need_lib_prefix=no
14653
 
  fi
14654
 
  need_version=yes
14655
 
  ;;
14656
 
 
14657
 
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14658
 
  version_type=linux
14659
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14660
 
  soname_spec='${libname}${release}${shared_ext}$major'
14661
 
  shlibpath_var=LD_LIBRARY_PATH
14662
 
  case $host_vendor in
14663
 
    sni)
14664
 
      shlibpath_overrides_runpath=no
14665
 
      need_lib_prefix=no
14666
 
      export_dynamic_flag_spec='${wl}-Blargedynsym'
14667
 
      runpath_var=LD_RUN_PATH
14668
 
      ;;
14669
 
    siemens)
14670
 
      need_lib_prefix=no
14671
 
      ;;
14672
 
    motorola)
14673
 
      need_lib_prefix=no
14674
 
      need_version=no
14675
 
      shlibpath_overrides_runpath=no
14676
 
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14677
 
      ;;
14678
 
  esac
14679
 
  ;;
14680
 
 
14681
 
sysv4*MP*)
14682
 
  if test -d /usr/nec ;then
14683
 
    version_type=linux
14684
 
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14685
 
    soname_spec='$libname${shared_ext}.$major'
14686
 
    shlibpath_var=LD_LIBRARY_PATH
14687
 
  fi
14688
 
  ;;
14689
 
 
14690
 
uts4*)
14691
 
  version_type=linux
14692
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14693
 
  soname_spec='${libname}${release}${shared_ext}$major'
14694
 
  shlibpath_var=LD_LIBRARY_PATH
14695
 
  ;;
14696
 
 
14697
 
*)
14698
 
  dynamic_linker=no
14699
 
  ;;
14700
 
esac
14701
 
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14702
 
echo "${ECHO_T}$dynamic_linker" >&6
14703
 
test "$dynamic_linker" = no && can_build_shared=no
14704
 
 
14705
 
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14706
 
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
14707
 
hardcode_action_F77=
14708
 
if test -n "$hardcode_libdir_flag_spec_F77" || \
14709
 
   test -n "$runpath_var_F77" || \
14710
 
   test "X$hardcode_automatic_F77" = "Xyes" ; then
14711
 
 
14712
 
  # We can hardcode non-existant directories.
14713
 
  if test "$hardcode_direct_F77" != no &&
14714
 
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
14715
 
     # have to relink, otherwise we might link with an installed library
14716
 
     # when we should be linking with a yet-to-be-installed one
14717
 
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
14718
 
     test "$hardcode_minus_L_F77" != no; then
14719
 
    # Linking always hardcodes the temporary library directory.
14720
 
    hardcode_action_F77=relink
14721
 
  else
14722
 
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
14723
 
    hardcode_action_F77=immediate
14724
 
  fi
14725
 
else
14726
 
  # We cannot hardcode anything, or else we can only hardcode existing
14727
 
  # directories.
14728
 
  hardcode_action_F77=unsupported
14729
 
fi
14730
 
echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
14731
 
echo "${ECHO_T}$hardcode_action_F77" >&6
14732
 
 
14733
 
if test "$hardcode_action_F77" = relink; then
14734
 
  # Fast installation is not supported
14735
 
  enable_fast_install=no
14736
 
elif test "$shlibpath_overrides_runpath" = yes ||
14737
 
     test "$enable_shared" = no; then
14738
 
  # Fast installation is not necessary
14739
 
  enable_fast_install=needless
14740
 
fi
14741
 
 
14742
 
striplib=
14743
 
old_striplib=
14744
 
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
14745
 
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
14746
 
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
14747
 
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14748
 
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14749
 
  echo "$as_me:$LINENO: result: yes" >&5
14750
 
echo "${ECHO_T}yes" >&6
14751
 
else
14752
 
# FIXME - insert some real tests, host_os isn't really good enough
14753
 
  case $host_os in
14754
 
   darwin*)
14755
 
       if test -n "$STRIP" ; then
14756
 
         striplib="$STRIP -x"
14757
 
         echo "$as_me:$LINENO: result: yes" >&5
14758
 
echo "${ECHO_T}yes" >&6
14759
 
       else
14760
 
  echo "$as_me:$LINENO: result: no" >&5
14761
 
echo "${ECHO_T}no" >&6
14762
 
fi
14763
 
       ;;
14764
 
   *)
14765
 
  echo "$as_me:$LINENO: result: no" >&5
14766
 
echo "${ECHO_T}no" >&6
14767
 
    ;;
14768
 
  esac
14769
 
fi
14770
 
 
14771
 
 
14772
 
 
14773
 
# The else clause should only fire when bootstrapping the
14774
 
# libtool distribution, otherwise you forgot to ship ltmain.sh
14775
 
# with your package, and you will get complaints that there are
14776
 
# no rules to generate ltmain.sh.
14777
 
if test -f "$ltmain"; then
14778
 
  # See if we are running on zsh, and set the options which allow our commands through
14779
 
  # without removal of \ escapes.
14780
 
  if test -n "${ZSH_VERSION+set}" ; then
14781
 
    setopt NO_GLOB_SUBST
14782
 
  fi
14783
 
  # Now quote all the things that may contain metacharacters while being
14784
 
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
14785
 
  # variables and quote the copies for generation of the libtool script.
14786
 
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
14787
 
    SED SHELL STRIP \
14788
 
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14789
 
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14790
 
    deplibs_check_method reload_flag reload_cmds need_locks \
14791
 
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14792
 
    lt_cv_sys_global_symbol_to_c_name_address \
14793
 
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14794
 
    old_postinstall_cmds old_postuninstall_cmds \
14795
 
    compiler_F77 \
14796
 
    CC_F77 \
14797
 
    LD_F77 \
14798
 
    lt_prog_compiler_wl_F77 \
14799
 
    lt_prog_compiler_pic_F77 \
14800
 
    lt_prog_compiler_static_F77 \
14801
 
    lt_prog_compiler_no_builtin_flag_F77 \
14802
 
    export_dynamic_flag_spec_F77 \
14803
 
    thread_safe_flag_spec_F77 \
14804
 
    whole_archive_flag_spec_F77 \
14805
 
    enable_shared_with_static_runtimes_F77 \
14806
 
    old_archive_cmds_F77 \
14807
 
    old_archive_from_new_cmds_F77 \
14808
 
    predep_objects_F77 \
14809
 
    postdep_objects_F77 \
14810
 
    predeps_F77 \
14811
 
    postdeps_F77 \
14812
 
    compiler_lib_search_path_F77 \
14813
 
    archive_cmds_F77 \
14814
 
    archive_expsym_cmds_F77 \
14815
 
    postinstall_cmds_F77 \
14816
 
    postuninstall_cmds_F77 \
14817
 
    old_archive_from_expsyms_cmds_F77 \
14818
 
    allow_undefined_flag_F77 \
14819
 
    no_undefined_flag_F77 \
14820
 
    export_symbols_cmds_F77 \
14821
 
    hardcode_libdir_flag_spec_F77 \
14822
 
    hardcode_libdir_flag_spec_ld_F77 \
14823
 
    hardcode_libdir_separator_F77 \
14824
 
    hardcode_automatic_F77 \
14825
 
    module_cmds_F77 \
14826
 
    module_expsym_cmds_F77 \
14827
 
    lt_cv_prog_compiler_c_o_F77 \
14828
 
    exclude_expsyms_F77 \
14829
 
    include_expsyms_F77; do
14830
 
 
14831
 
    case $var in
14832
 
    old_archive_cmds_F77 | \
14833
 
    old_archive_from_new_cmds_F77 | \
14834
 
    archive_cmds_F77 | \
14835
 
    archive_expsym_cmds_F77 | \
14836
 
    module_cmds_F77 | \
14837
 
    module_expsym_cmds_F77 | \
14838
 
    old_archive_from_expsyms_cmds_F77 | \
14839
 
    export_symbols_cmds_F77 | \
14840
 
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
14841
 
    postinstall_cmds | postuninstall_cmds | \
14842
 
    old_postinstall_cmds | old_postuninstall_cmds | \
14843
 
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14844
 
      # Double-quote double-evaled strings.
14845
 
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14846
 
      ;;
14847
 
    *)
14848
 
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14849
 
      ;;
14850
 
    esac
14851
 
  done
14852
 
 
14853
 
  case $lt_echo in
14854
 
  *'\$0 --fallback-echo"')
14855
 
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14856
 
    ;;
14857
 
  esac
14858
 
 
14859
 
cfgfile="$ofile"
14860
 
 
14861
 
  cat <<__EOF__ >> "$cfgfile"
14862
 
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
14863
 
 
14864
 
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14865
 
 
14866
 
# Shell to use when invoking shell scripts.
14867
 
SHELL=$lt_SHELL
14868
 
 
14869
 
# Whether or not to build shared libraries.
14870
 
build_libtool_libs=$enable_shared
14871
 
 
14872
 
# Whether or not to build static libraries.
14873
 
build_old_libs=$enable_static
14874
 
 
14875
 
# Whether or not to add -lc for building shared libraries.
14876
 
build_libtool_need_lc=$archive_cmds_need_lc_F77
14877
 
 
14878
 
# Whether or not to disallow shared libs when runtime libs are static
14879
 
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
14880
 
 
14881
 
# Whether or not to optimize for fast installation.
14882
 
fast_install=$enable_fast_install
14883
 
 
14884
 
# The host system.
14885
 
host_alias=$host_alias
14886
 
host=$host
14887
 
host_os=$host_os
14888
 
 
14889
 
# The build system.
14890
 
build_alias=$build_alias
14891
 
build=$build
14892
 
build_os=$build_os
14893
 
 
14894
 
# An echo program that does not interpret backslashes.
14895
 
echo=$lt_echo
14896
 
 
14897
 
# The archiver.
14898
 
AR=$lt_AR
14899
 
AR_FLAGS=$lt_AR_FLAGS
14900
 
 
14901
 
# A C compiler.
14902
 
LTCC=$lt_LTCC
14903
 
 
14904
 
# A language-specific compiler.
14905
 
CC=$lt_compiler_F77
14906
 
 
14907
 
# Is the compiler the GNU C compiler?
14908
 
with_gcc=$GCC_F77
14909
 
 
14910
 
# An ERE matcher.
14911
 
EGREP=$lt_EGREP
14912
 
 
14913
 
# The linker used to build libraries.
14914
 
LD=$lt_LD_F77
14915
 
 
14916
 
# Whether we need hard or soft links.
14917
 
LN_S=$lt_LN_S
14918
 
 
14919
 
# A BSD-compatible nm program.
14920
 
NM=$lt_NM
14921
 
 
14922
 
# A symbol stripping program
14923
 
STRIP=$lt_STRIP
14924
 
 
14925
 
# Used to examine libraries when file_magic_cmd begins "file"
14926
 
MAGIC_CMD=$MAGIC_CMD
14927
 
 
14928
 
# Used on cygwin: DLL creation program.
14929
 
DLLTOOL="$DLLTOOL"
14930
 
 
14931
 
# Used on cygwin: object dumper.
14932
 
OBJDUMP="$OBJDUMP"
14933
 
 
14934
 
# Used on cygwin: assembler.
14935
 
AS="$AS"
14936
 
 
14937
 
# The name of the directory that contains temporary libtool files.
14938
 
objdir=$objdir
14939
 
 
14940
 
# How to create reloadable object files.
14941
 
reload_flag=$lt_reload_flag
14942
 
reload_cmds=$lt_reload_cmds
14943
 
 
14944
 
# How to pass a linker flag through the compiler.
14945
 
wl=$lt_lt_prog_compiler_wl_F77
14946
 
 
14947
 
# Object file suffix (normally "o").
14948
 
objext="$ac_objext"
14949
 
 
14950
 
# Old archive suffix (normally "a").
14951
 
libext="$libext"
14952
 
 
14953
 
# Shared library suffix (normally ".so").
14954
 
shrext_cmds='$shrext_cmds'
14955
 
 
14956
 
# Executable file suffix (normally "").
14957
 
exeext="$exeext"
14958
 
 
14959
 
# Additional compiler flags for building library objects.
14960
 
pic_flag=$lt_lt_prog_compiler_pic_F77
14961
 
pic_mode=$pic_mode
14962
 
 
14963
 
# What is the maximum length of a command?
14964
 
max_cmd_len=$lt_cv_sys_max_cmd_len
14965
 
 
14966
 
# Does compiler simultaneously support -c and -o options?
14967
 
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
14968
 
 
14969
 
# Must we lock files when doing compilation ?
14970
 
need_locks=$lt_need_locks
14971
 
 
14972
 
# Do we need the lib prefix for modules?
14973
 
need_lib_prefix=$need_lib_prefix
14974
 
 
14975
 
# Do we need a version for libraries?
14976
 
need_version=$need_version
14977
 
 
14978
 
# Whether dlopen is supported.
14979
 
dlopen_support=$enable_dlopen
14980
 
 
14981
 
# Whether dlopen of programs is supported.
14982
 
dlopen_self=$enable_dlopen_self
14983
 
 
14984
 
# Whether dlopen of statically linked programs is supported.
14985
 
dlopen_self_static=$enable_dlopen_self_static
14986
 
 
14987
 
# Compiler flag to prevent dynamic linking.
14988
 
link_static_flag=$lt_lt_prog_compiler_static_F77
14989
 
 
14990
 
# Compiler flag to turn off builtin functions.
14991
 
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
14992
 
 
14993
 
# Compiler flag to allow reflexive dlopens.
14994
 
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
14995
 
 
14996
 
# Compiler flag to generate shared objects directly from archives.
14997
 
whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
14998
 
 
14999
 
# Compiler flag to generate thread-safe objects.
15000
 
thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15001
 
 
15002
 
# Library versioning type.
15003
 
version_type=$version_type
15004
 
 
15005
 
# Format of library name prefix.
15006
 
libname_spec=$lt_libname_spec
15007
 
 
15008
 
# List of archive names.  First name is the real one, the rest are links.
15009
 
# The last name is the one that the linker finds with -lNAME.
15010
 
library_names_spec=$lt_library_names_spec
15011
 
 
15012
 
# The coded name of the library, if different from the real name.
15013
 
soname_spec=$lt_soname_spec
15014
 
 
15015
 
# Commands used to build and install an old-style archive.
15016
 
RANLIB=$lt_RANLIB
15017
 
old_archive_cmds=$lt_old_archive_cmds_F77
15018
 
old_postinstall_cmds=$lt_old_postinstall_cmds
15019
 
old_postuninstall_cmds=$lt_old_postuninstall_cmds
15020
 
 
15021
 
# Create an old-style archive from a shared archive.
15022
 
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15023
 
 
15024
 
# Create a temporary old-style archive to link instead of a shared archive.
15025
 
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15026
 
 
15027
 
# Commands used to build and install a shared archive.
15028
 
archive_cmds=$lt_archive_cmds_F77
15029
 
archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15030
 
postinstall_cmds=$lt_postinstall_cmds
15031
 
postuninstall_cmds=$lt_postuninstall_cmds
15032
 
 
15033
 
# Commands used to build a loadable module (assumed same as above if empty)
15034
 
module_cmds=$lt_module_cmds_F77
15035
 
module_expsym_cmds=$lt_module_expsym_cmds_F77
15036
 
 
15037
 
# Commands to strip libraries.
15038
 
old_striplib=$lt_old_striplib
15039
 
striplib=$lt_striplib
15040
 
 
15041
 
# Dependencies to place before the objects being linked to create a
15042
 
# shared library.
15043
 
predep_objects=$lt_predep_objects_F77
15044
 
 
15045
 
# Dependencies to place after the objects being linked to create a
15046
 
# shared library.
15047
 
postdep_objects=$lt_postdep_objects_F77
15048
 
 
15049
 
# Dependencies to place before the objects being linked to create a
15050
 
# shared library.
15051
 
predeps=$lt_predeps_F77
15052
 
 
15053
 
# Dependencies to place after the objects being linked to create a
15054
 
# shared library.
15055
 
postdeps=$lt_postdeps_F77
15056
 
 
15057
 
# The library search path used internally by the compiler when linking
15058
 
# a shared library.
15059
 
compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15060
 
 
15061
 
# Method to check whether dependent libraries are shared objects.
15062
 
deplibs_check_method=$lt_deplibs_check_method
15063
 
 
15064
 
# Command to use when deplibs_check_method == file_magic.
15065
 
file_magic_cmd=$lt_file_magic_cmd
15066
 
 
15067
 
# Flag that allows shared libraries with undefined symbols to be built.
15068
 
allow_undefined_flag=$lt_allow_undefined_flag_F77
15069
 
 
15070
 
# Flag that forces no undefined symbols.
15071
 
no_undefined_flag=$lt_no_undefined_flag_F77
15072
 
 
15073
 
# Commands used to finish a libtool library installation in a directory.
15074
 
finish_cmds=$lt_finish_cmds
15075
 
 
15076
 
# Same as above, but a single script fragment to be evaled but not shown.
15077
 
finish_eval=$lt_finish_eval
15078
 
 
15079
 
# Take the output of nm and produce a listing of raw symbols and C names.
15080
 
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15081
 
 
15082
 
# Transform the output of nm in a proper C declaration
15083
 
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15084
 
 
15085
 
# Transform the output of nm in a C name address pair
15086
 
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15087
 
 
15088
 
# This is the shared library runtime path variable.
15089
 
runpath_var=$runpath_var
15090
 
 
15091
 
# This is the shared library path variable.
15092
 
shlibpath_var=$shlibpath_var
15093
 
 
15094
 
# Is shlibpath searched before the hard-coded library search path?
15095
 
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15096
 
 
15097
 
# How to hardcode a shared library path into an executable.
15098
 
hardcode_action=$hardcode_action_F77
15099
 
 
15100
 
# Whether we should hardcode library paths into libraries.
15101
 
hardcode_into_libs=$hardcode_into_libs
15102
 
 
15103
 
# Flag to hardcode \$libdir into a binary during linking.
15104
 
# This must work even if \$libdir does not exist.
15105
 
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15106
 
 
15107
 
# If ld is used when linking, flag to hardcode \$libdir into
15108
 
# a binary during linking. This must work even if \$libdir does
15109
 
# not exist.
15110
 
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15111
 
 
15112
 
# Whether we need a single -rpath flag with a separated argument.
15113
 
hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15114
 
 
15115
 
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15116
 
# resulting binary.
15117
 
hardcode_direct=$hardcode_direct_F77
15118
 
 
15119
 
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15120
 
# resulting binary.
15121
 
hardcode_minus_L=$hardcode_minus_L_F77
15122
 
 
15123
 
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15124
 
# the resulting binary.
15125
 
hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15126
 
 
15127
 
# Set to yes if building a shared library automatically hardcodes DIR into the library
15128
 
# and all subsequent libraries and executables linked against it.
15129
 
hardcode_automatic=$hardcode_automatic_F77
15130
 
 
15131
 
# Variables whose values should be saved in libtool wrapper scripts and
15132
 
# restored at relink time.
15133
 
variables_saved_for_relink="$variables_saved_for_relink"
15134
 
 
15135
 
# Whether libtool must link a program against all its dependency libraries.
15136
 
link_all_deplibs=$link_all_deplibs_F77
15137
 
 
15138
 
# Compile-time system search path for libraries
15139
 
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15140
 
 
15141
 
# Run-time system search path for libraries
15142
 
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15143
 
 
15144
 
# Fix the shell variable \$srcfile for the compiler.
15145
 
fix_srcfile_path="$fix_srcfile_path_F77"
15146
 
 
15147
 
# Set to yes if exported symbols are required.
15148
 
always_export_symbols=$always_export_symbols_F77
15149
 
 
15150
 
# The commands to list exported symbols.
15151
 
export_symbols_cmds=$lt_export_symbols_cmds_F77
15152
 
 
15153
 
# The commands to extract the exported symbol list from a shared archive.
15154
 
extract_expsyms_cmds=$lt_extract_expsyms_cmds
15155
 
 
15156
 
# Symbols that should not be listed in the preloaded symbols.
15157
 
exclude_expsyms=$lt_exclude_expsyms_F77
15158
 
 
15159
 
# Symbols that must always be exported.
15160
 
include_expsyms=$lt_include_expsyms_F77
15161
 
 
15162
 
# ### END LIBTOOL TAG CONFIG: $tagname
15163
 
 
15164
 
__EOF__
15165
 
 
15166
 
 
15167
 
else
15168
 
  # If there is no Makefile yet, we rely on a make rule to execute
15169
 
  # `config.status --recheck' to rerun these tests and create the
15170
 
  # libtool script then.
15171
 
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15172
 
  if test -f "$ltmain_in"; then
15173
 
    test -f Makefile && make "$ltmain"
15174
 
  fi
15175
 
fi
15176
 
 
15177
 
 
15178
 
ac_ext=c
15179
 
ac_cpp='$CPP $CPPFLAGS'
15180
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15181
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15182
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
15183
 
 
15184
 
CC="$lt_save_CC"
15185
 
 
15186
 
        else
15187
 
          tagname=""
15188
 
        fi
15189
 
        ;;
15190
 
 
15191
 
      GCJ)
15192
 
        if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15193
 
 
15194
 
 
15195
 
 
15196
 
# Source file extension for Java test sources.
15197
 
ac_ext=java
15198
 
 
15199
 
# Object file extension for compiled Java test sources.
15200
 
objext=o
15201
 
objext_GCJ=$objext
15202
 
 
15203
 
# Code to be used in simple compile tests
15204
 
lt_simple_compile_test_code="class foo {}\n"
15205
 
 
15206
 
# Code to be used in simple link tests
15207
 
lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
15208
 
 
15209
 
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
15210
 
 
15211
 
# If no C compiler was specified, use CC.
15212
 
LTCC=${LTCC-"$CC"}
15213
 
 
15214
 
# Allow CC to be a program name with arguments.
15215
 
compiler=$CC
15216
 
 
15217
 
 
15218
 
# Allow CC to be a program name with arguments.
15219
 
lt_save_CC="$CC"
15220
 
CC=${GCJ-"gcj"}
15221
 
compiler=$CC
15222
 
compiler_GCJ=$CC
15223
 
 
15224
 
# GCJ did not exist at the time GCC didn't implicitly link libc in.
15225
 
archive_cmds_need_lc_GCJ=no
15226
 
 
15227
 
## CAVEAT EMPTOR:
15228
 
## There is no encapsulation within the following macros, do not change
15229
 
## the running order or otherwise move them around unless you know exactly
15230
 
## what you are doing...
15231
 
 
15232
 
lt_prog_compiler_no_builtin_flag_GCJ=
15233
 
 
15234
 
if test "$GCC" = yes; then
15235
 
  lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15236
 
 
15237
 
 
15238
 
echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15239
 
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15240
 
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15241
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
15242
 
else
15243
 
  lt_cv_prog_compiler_rtti_exceptions=no
15244
 
  ac_outfile=conftest.$ac_objext
15245
 
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15246
 
   lt_compiler_flag="-fno-rtti -fno-exceptions"
15247
 
   # Insert the option either (1) after the last *FLAGS variable, or
15248
 
   # (2) before a word containing "conftest.", or (3) at the end.
15249
 
   # Note that $ac_compile itself does not contain backslashes and begins
15250
 
   # with a dollar sign (not a hyphen), so the echo should work correctly.
15251
 
   # The option is referenced via a variable to avoid confusing sed.
15252
 
   lt_compile=`echo "$ac_compile" | $SED \
15253
 
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15254
 
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15255
 
   -e 's:$: $lt_compiler_flag:'`
15256
 
   (eval echo "\"\$as_me:15256: $lt_compile\"" >&5)
15257
 
   (eval "$lt_compile" 2>conftest.err)
15258
 
   ac_status=$?
15259
 
   cat conftest.err >&5
15260
 
   echo "$as_me:15260: \$? = $ac_status" >&5
15261
 
   if (exit $ac_status) && test -s "$ac_outfile"; then
15262
 
     # The compiler can only warn and ignore the option if not recognized
15263
 
     # So say no if there are warnings
15264
 
     if test ! -s conftest.err; then
15265
 
       lt_cv_prog_compiler_rtti_exceptions=yes
15266
 
     fi
15267
 
   fi
15268
 
   $rm conftest*
15269
 
 
15270
 
fi
15271
 
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15272
 
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15273
 
 
15274
 
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15275
 
    lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15276
 
else
15277
 
    :
15278
 
fi
15279
 
 
15280
 
fi
15281
 
 
15282
 
lt_prog_compiler_wl_GCJ=
15283
 
lt_prog_compiler_pic_GCJ=
15284
 
lt_prog_compiler_static_GCJ=
15285
 
 
15286
 
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15287
 
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15288
 
 
15289
 
  if test "$GCC" = yes; then
15290
 
    lt_prog_compiler_wl_GCJ='-Wl,'
15291
 
    lt_prog_compiler_static_GCJ='-static'
15292
 
 
15293
 
    case $host_os in
15294
 
      aix*)
15295
 
      # All AIX code is PIC.
15296
 
      if test "$host_cpu" = ia64; then
15297
 
        # AIX 5 now supports IA64 processor
15298
 
        lt_prog_compiler_static_GCJ='-Bstatic'
15299
 
      fi
15300
 
      ;;
15301
 
 
15302
 
    amigaos*)
15303
 
      # FIXME: we need at least 68020 code to build shared libraries, but
15304
 
      # adding the `-m68020' flag to GCC prevents building anything better,
15305
 
      # like `-m68040'.
15306
 
      lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15307
 
      ;;
15308
 
 
15309
 
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15310
 
      # PIC is the default for these OSes.
15311
 
      ;;
15312
 
 
15313
 
    mingw* | pw32* | os2*)
15314
 
      # This hack is so that the source file can tell whether it is being
15315
 
      # built for inclusion in a dll (and should export symbols for example).
15316
 
      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15317
 
      ;;
15318
 
 
15319
 
    darwin* | rhapsody*)
15320
 
      # PIC is the default on this platform
15321
 
      # Common symbols not allowed in MH_DYLIB files
15322
 
      lt_prog_compiler_pic_GCJ='-fno-common'
15323
 
      ;;
15324
 
 
15325
 
    msdosdjgpp*)
15326
 
      # Just because we use GCC doesn't mean we suddenly get shared libraries
15327
 
      # on systems that don't support them.
15328
 
      lt_prog_compiler_can_build_shared_GCJ=no
15329
 
      enable_shared=no
15330
 
      ;;
15331
 
 
15332
 
    sysv4*MP*)
15333
 
      if test -d /usr/nec; then
15334
 
        lt_prog_compiler_pic_GCJ=-Kconform_pic
15335
 
      fi
15336
 
      ;;
15337
 
 
15338
 
    hpux*)
15339
 
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15340
 
      # not for PA HP-UX.
15341
 
      case "$host_cpu" in
15342
 
      hppa*64*|ia64*)
15343
 
        # +Z the default
15344
 
        ;;
15345
 
      *)
15346
 
        lt_prog_compiler_pic_GCJ='-fPIC'
15347
 
        ;;
15348
 
      esac
15349
 
      ;;
15350
 
 
15351
 
    *)
15352
 
      lt_prog_compiler_pic_GCJ='-fPIC'
15353
 
      ;;
15354
 
    esac
15355
 
  else
15356
 
    # PORTME Check for flag to pass linker flags through the system compiler.
15357
 
    case $host_os in
15358
 
    aix*)
15359
 
      lt_prog_compiler_wl_GCJ='-Wl,'
15360
 
      if test "$host_cpu" = ia64; then
15361
 
        # AIX 5 now supports IA64 processor
15362
 
        lt_prog_compiler_static_GCJ='-Bstatic'
15363
 
      else
15364
 
        lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15365
 
      fi
15366
 
      ;;
15367
 
      darwin*)
15368
 
        # PIC is the default on this platform
15369
 
        # Common symbols not allowed in MH_DYLIB files
15370
 
       case "$cc_basename" in
15371
 
         xlc*)
15372
 
         lt_prog_compiler_pic_GCJ='-qnocommon'
15373
 
         lt_prog_compiler_wl_GCJ='-Wl,'
15374
 
         ;;
15375
 
       esac
15376
 
       ;;
15377
 
 
15378
 
    mingw* | pw32* | os2*)
15379
 
      # This hack is so that the source file can tell whether it is being
15380
 
      # built for inclusion in a dll (and should export symbols for example).
15381
 
      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15382
 
      ;;
15383
 
 
15384
 
    hpux9* | hpux10* | hpux11*)
15385
 
      lt_prog_compiler_wl_GCJ='-Wl,'
15386
 
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15387
 
      # not for PA HP-UX.
15388
 
      case "$host_cpu" in
15389
 
      hppa*64*|ia64*)
15390
 
        # +Z the default
15391
 
        ;;
15392
 
      *)
15393
 
        lt_prog_compiler_pic_GCJ='+Z'
15394
 
        ;;
15395
 
      esac
15396
 
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
15397
 
      lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15398
 
      ;;
15399
 
 
15400
 
    irix5* | irix6* | nonstopux*)
15401
 
      lt_prog_compiler_wl_GCJ='-Wl,'
15402
 
      # PIC (with -KPIC) is the default.
15403
 
      lt_prog_compiler_static_GCJ='-non_shared'
15404
 
      ;;
15405
 
 
15406
 
    newsos6)
15407
 
      lt_prog_compiler_pic_GCJ='-KPIC'
15408
 
      lt_prog_compiler_static_GCJ='-Bstatic'
15409
 
      ;;
15410
 
 
15411
 
    linux*)
15412
 
      case $cc_basename in
15413
 
      icc* | ecc*)
15414
 
        lt_prog_compiler_wl_GCJ='-Wl,'
15415
 
        lt_prog_compiler_pic_GCJ='-KPIC'
15416
 
        lt_prog_compiler_static_GCJ='-static'
15417
 
        ;;
15418
 
      pgcc | pgf77 | pgf90)
15419
 
        # Portland Group compilers (*not* the Pentium gcc compiler,
15420
 
        # which looks to be a dead project)
15421
 
        lt_prog_compiler_wl_GCJ='-Wl,'
15422
 
        lt_prog_compiler_pic_GCJ='-fpic'
15423
 
        lt_prog_compiler_static_GCJ='-static'
15424
 
        ;;
15425
 
      ccc*)
15426
 
        lt_prog_compiler_wl_GCJ='-Wl,'
15427
 
        # All Alpha code is PIC.
15428
 
        lt_prog_compiler_static_GCJ='-non_shared'
15429
 
        ;;
15430
 
      esac
15431
 
      ;;
15432
 
 
15433
 
    osf3* | osf4* | osf5*)
15434
 
      lt_prog_compiler_wl_GCJ='-Wl,'
15435
 
      # All OSF/1 code is PIC.
15436
 
      lt_prog_compiler_static_GCJ='-non_shared'
15437
 
      ;;
15438
 
 
15439
 
    sco3.2v5*)
15440
 
      lt_prog_compiler_pic_GCJ='-Kpic'
15441
 
      lt_prog_compiler_static_GCJ='-dn'
15442
 
      ;;
15443
 
 
15444
 
    solaris*)
15445
 
      lt_prog_compiler_wl_GCJ='-Wl,'
15446
 
      lt_prog_compiler_pic_GCJ='-KPIC'
15447
 
      lt_prog_compiler_static_GCJ='-Bstatic'
15448
 
      ;;
15449
 
 
15450
 
    sunos4*)
15451
 
      lt_prog_compiler_wl_GCJ='-Qoption ld '
15452
 
      lt_prog_compiler_pic_GCJ='-PIC'
15453
 
      lt_prog_compiler_static_GCJ='-Bstatic'
15454
 
      ;;
15455
 
 
15456
 
    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15457
 
      lt_prog_compiler_wl_GCJ='-Wl,'
15458
 
      lt_prog_compiler_pic_GCJ='-KPIC'
15459
 
      lt_prog_compiler_static_GCJ='-Bstatic'
15460
 
      ;;
15461
 
 
15462
 
    sysv4*MP*)
15463
 
      if test -d /usr/nec ;then
15464
 
        lt_prog_compiler_pic_GCJ='-Kconform_pic'
15465
 
        lt_prog_compiler_static_GCJ='-Bstatic'
15466
 
      fi
15467
 
      ;;
15468
 
 
15469
 
    unicos*)
15470
 
      lt_prog_compiler_wl_GCJ='-Wl,'
15471
 
      lt_prog_compiler_can_build_shared_GCJ=no
15472
 
      ;;
15473
 
 
15474
 
    uts4*)
15475
 
      lt_prog_compiler_pic_GCJ='-pic'
15476
 
      lt_prog_compiler_static_GCJ='-Bstatic'
15477
 
      ;;
15478
 
 
15479
 
    *)
15480
 
      lt_prog_compiler_can_build_shared_GCJ=no
15481
 
      ;;
15482
 
    esac
15483
 
  fi
15484
 
 
15485
 
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15486
 
echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
15487
 
 
15488
 
#
15489
 
# Check to make sure the PIC flag actually works.
15490
 
#
15491
 
if test -n "$lt_prog_compiler_pic_GCJ"; then
15492
 
 
15493
 
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15494
 
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
15495
 
if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15496
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
15497
 
else
15498
 
  lt_prog_compiler_pic_works_GCJ=no
15499
 
  ac_outfile=conftest.$ac_objext
15500
 
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15501
 
   lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15502
 
   # Insert the option either (1) after the last *FLAGS variable, or
15503
 
   # (2) before a word containing "conftest.", or (3) at the end.
15504
 
   # Note that $ac_compile itself does not contain backslashes and begins
15505
 
   # with a dollar sign (not a hyphen), so the echo should work correctly.
15506
 
   # The option is referenced via a variable to avoid confusing sed.
15507
 
   lt_compile=`echo "$ac_compile" | $SED \
15508
 
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15509
 
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15510
 
   -e 's:$: $lt_compiler_flag:'`
15511
 
   (eval echo "\"\$as_me:15511: $lt_compile\"" >&5)
15512
 
   (eval "$lt_compile" 2>conftest.err)
15513
 
   ac_status=$?
15514
 
   cat conftest.err >&5
15515
 
   echo "$as_me:15515: \$? = $ac_status" >&5
15516
 
   if (exit $ac_status) && test -s "$ac_outfile"; then
15517
 
     # The compiler can only warn and ignore the option if not recognized
15518
 
     # So say no if there are warnings
15519
 
     if test ! -s conftest.err; then
15520
 
       lt_prog_compiler_pic_works_GCJ=yes
15521
 
     fi
15522
 
   fi
15523
 
   $rm conftest*
15524
 
 
15525
 
fi
15526
 
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15527
 
echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
15528
 
 
15529
 
if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15530
 
    case $lt_prog_compiler_pic_GCJ in
15531
 
     "" | " "*) ;;
15532
 
     *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15533
 
     esac
15534
 
else
15535
 
    lt_prog_compiler_pic_GCJ=
15536
 
     lt_prog_compiler_can_build_shared_GCJ=no
15537
 
fi
15538
 
 
15539
 
fi
15540
 
case "$host_os" in
15541
 
  # For platforms which do not support PIC, -DPIC is meaningless:
15542
 
  *djgpp*)
15543
 
    lt_prog_compiler_pic_GCJ=
15544
 
    ;;
15545
 
  *)
15546
 
    lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15547
 
    ;;
15548
 
esac
15549
 
 
15550
 
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15551
 
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15552
 
if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
15553
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
15554
 
else
15555
 
  lt_cv_prog_compiler_c_o_GCJ=no
15556
 
   $rm -r conftest 2>/dev/null
15557
 
   mkdir conftest
15558
 
   cd conftest
15559
 
   mkdir out
15560
 
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15561
 
 
15562
 
   lt_compiler_flag="-o out/conftest2.$ac_objext"
15563
 
   # Insert the option either (1) after the last *FLAGS variable, or
15564
 
   # (2) before a word containing "conftest.", or (3) at the end.
15565
 
   # Note that $ac_compile itself does not contain backslashes and begins
15566
 
   # with a dollar sign (not a hyphen), so the echo should work correctly.
15567
 
   lt_compile=`echo "$ac_compile" | $SED \
15568
 
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15569
 
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15570
 
   -e 's:$: $lt_compiler_flag:'`
15571
 
   (eval echo "\"\$as_me:15571: $lt_compile\"" >&5)
15572
 
   (eval "$lt_compile" 2>out/conftest.err)
15573
 
   ac_status=$?
15574
 
   cat out/conftest.err >&5
15575
 
   echo "$as_me:15575: \$? = $ac_status" >&5
15576
 
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
15577
 
   then
15578
 
     # The compiler can only warn and ignore the option if not recognized
15579
 
     # So say no if there are warnings
15580
 
     if test ! -s out/conftest.err; then
15581
 
       lt_cv_prog_compiler_c_o_GCJ=yes
15582
 
     fi
15583
 
   fi
15584
 
   chmod u+w .
15585
 
   $rm conftest*
15586
 
   # SGI C++ compiler will create directory out/ii_files/ for
15587
 
   # template instantiation
15588
 
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15589
 
   $rm out/* && rmdir out
15590
 
   cd ..
15591
 
   rmdir conftest
15592
 
   $rm conftest*
15593
 
 
15594
 
fi
15595
 
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15596
 
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
15597
 
 
15598
 
 
15599
 
hard_links="nottested"
15600
 
if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15601
 
  # do not overwrite the value of need_locks provided by the user
15602
 
  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15603
 
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15604
 
  hard_links=yes
15605
 
  $rm conftest*
15606
 
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
15607
 
  touch conftest.a
15608
 
  ln conftest.a conftest.b 2>&5 || hard_links=no
15609
 
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
15610
 
  echo "$as_me:$LINENO: result: $hard_links" >&5
15611
 
echo "${ECHO_T}$hard_links" >&6
15612
 
  if test "$hard_links" = no; then
15613
 
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15614
 
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15615
 
    need_locks=warn
15616
 
  fi
15617
 
else
15618
 
  need_locks=no
15619
 
fi
15620
 
 
15621
 
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15622
 
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15623
 
 
15624
 
  runpath_var=
15625
 
  allow_undefined_flag_GCJ=
15626
 
  enable_shared_with_static_runtimes_GCJ=no
15627
 
  archive_cmds_GCJ=
15628
 
  archive_expsym_cmds_GCJ=
15629
 
  old_archive_From_new_cmds_GCJ=
15630
 
  old_archive_from_expsyms_cmds_GCJ=
15631
 
  export_dynamic_flag_spec_GCJ=
15632
 
  whole_archive_flag_spec_GCJ=
15633
 
  thread_safe_flag_spec_GCJ=
15634
 
  hardcode_libdir_flag_spec_GCJ=
15635
 
  hardcode_libdir_flag_spec_ld_GCJ=
15636
 
  hardcode_libdir_separator_GCJ=
15637
 
  hardcode_direct_GCJ=no
15638
 
  hardcode_minus_L_GCJ=no
15639
 
  hardcode_shlibpath_var_GCJ=unsupported
15640
 
  link_all_deplibs_GCJ=unknown
15641
 
  hardcode_automatic_GCJ=no
15642
 
  module_cmds_GCJ=
15643
 
  module_expsym_cmds_GCJ=
15644
 
  always_export_symbols_GCJ=no
15645
 
  export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15646
 
  # include_expsyms should be a list of space-separated symbols to be *always*
15647
 
  # included in the symbol list
15648
 
  include_expsyms_GCJ=
15649
 
  # exclude_expsyms can be an extended regexp of symbols to exclude
15650
 
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
15651
 
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15652
 
  # as well as any symbol that contains `d'.
15653
 
  exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
15654
 
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15655
 
  # platforms (ab)use it in PIC code, but their linkers get confused if
15656
 
  # the symbol is explicitly referenced.  Since portable code cannot
15657
 
  # rely on this symbol name, it's probably fine to never include it in
15658
 
  # preloaded symbol tables.
15659
 
  extract_expsyms_cmds=
15660
 
 
15661
 
  case $host_os in
15662
 
  cygwin* | mingw* | pw32*)
15663
 
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
15664
 
    # When not using gcc, we currently assume that we are using
15665
 
    # Microsoft Visual C++.
15666
 
    if test "$GCC" != yes; then
15667
 
      with_gnu_ld=no
15668
 
    fi
15669
 
    ;;
15670
 
  openbsd*)
15671
 
    with_gnu_ld=no
15672
 
    ;;
15673
 
  esac
15674
 
 
15675
 
  ld_shlibs_GCJ=yes
15676
 
  if test "$with_gnu_ld" = yes; then
15677
 
    # If archive_cmds runs LD, not CC, wlarc should be empty
15678
 
    wlarc='${wl}'
15679
 
 
15680
 
    # See if GNU ld supports shared libraries.
15681
 
    case $host_os in
15682
 
    aix3* | aix4* | aix5*)
15683
 
      # On AIX/PPC, the GNU linker is very broken
15684
 
      if test "$host_cpu" != ia64; then
15685
 
        ld_shlibs_GCJ=no
15686
 
        cat <<EOF 1>&2
15687
 
 
15688
 
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
15689
 
*** to be unable to reliably create shared libraries on AIX.
15690
 
*** Therefore, libtool is disabling shared libraries support.  If you
15691
 
*** really care for shared libraries, you may want to modify your PATH
15692
 
*** so that a non-GNU linker is found, and then restart.
15693
 
 
15694
 
EOF
15695
 
      fi
15696
 
      ;;
15697
 
 
15698
 
    amigaos*)
15699
 
      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)'
15700
 
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
15701
 
      hardcode_minus_L_GCJ=yes
15702
 
 
15703
 
      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15704
 
      # that the semantics of dynamic libraries on AmigaOS, at least up
15705
 
      # to version 4, is to share data among multiple programs linked
15706
 
      # with the same dynamic library.  Since this doesn't match the
15707
 
      # behavior of shared libraries on other platforms, we can't use
15708
 
      # them.
15709
 
      ld_shlibs_GCJ=no
15710
 
      ;;
15711
 
 
15712
 
    beos*)
15713
 
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15714
 
        allow_undefined_flag_GCJ=unsupported
15715
 
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15716
 
        # support --undefined.  This deserves some investigation.  FIXME
15717
 
        archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15718
 
      else
15719
 
        ld_shlibs_GCJ=no
15720
 
      fi
15721
 
      ;;
15722
 
 
15723
 
    cygwin* | mingw* | pw32*)
15724
 
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
15725
 
      # as there is no search path for DLLs.
15726
 
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
15727
 
      allow_undefined_flag_GCJ=unsupported
15728
 
      always_export_symbols_GCJ=no
15729
 
      enable_shared_with_static_runtimes_GCJ=yes
15730
 
      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15731
 
 
15732
 
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15733
 
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15734
 
        # If the export-symbols file already is a .def file (1st line
15735
 
        # is EXPORTS), use it as is; otherwise, prepend...
15736
 
        archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15737
 
          cp $export_symbols $output_objdir/$soname.def;
15738
 
        else
15739
 
          echo EXPORTS > $output_objdir/$soname.def;
15740
 
          cat $export_symbols >> $output_objdir/$soname.def;
15741
 
        fi~
15742
 
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
15743
 
      else
15744
 
        ld_shlibs_GCJ=no
15745
 
      fi
15746
 
      ;;
15747
 
 
15748
 
    netbsd*)
15749
 
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15750
 
        archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15751
 
        wlarc=
15752
 
      else
15753
 
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15754
 
        archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15755
 
      fi
15756
 
      ;;
15757
 
 
15758
 
    solaris* | sysv5*)
15759
 
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15760
 
        ld_shlibs_GCJ=no
15761
 
        cat <<EOF 1>&2
15762
 
 
15763
 
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
15764
 
*** create shared libraries on Solaris systems.  Therefore, libtool
15765
 
*** is disabling shared libraries support.  We urge you to upgrade GNU
15766
 
*** binutils to release 2.9.1 or newer.  Another option is to modify
15767
 
*** your PATH or compiler configuration so that the native linker is
15768
 
*** used, and then restart.
15769
 
 
15770
 
EOF
15771
 
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15772
 
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15773
 
        archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15774
 
      else
15775
 
        ld_shlibs_GCJ=no
15776
 
      fi
15777
 
      ;;
15778
 
 
15779
 
    sunos4*)
15780
 
      archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15781
 
      wlarc=
15782
 
      hardcode_direct_GCJ=yes
15783
 
      hardcode_shlibpath_var_GCJ=no
15784
 
      ;;
15785
 
 
15786
 
  linux*)
15787
 
    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15788
 
      tmp_addflag=
15789
 
      case $CC,$host_cpu in
15790
 
      pgf77* | pgf90* )                 # Portland Group f77 and f90 compilers
15791
 
        tmp_addflag=' -fpic' ;;
15792
 
      ecc*,ia64* | icc*,ia64*)          # Intel C compiler on ia64
15793
 
        tmp_addflag=' -i_dynamic' ;;
15794
 
      efc*,ia64* | ifort*,ia64*)        # Intel Fortran compiler on ia64
15795
 
        tmp_addflag=' -i_dynamic -nofor_main' ;;
15796
 
      ifc* | ifort*)                    # Intel Fortran compiler
15797
 
        tmp_addflag=' -nofor_main' ;;
15798
 
      esac
15799
 
      archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15800
 
      supports_anon_versioning=no
15801
 
      case `$LD -v 2>/dev/null` in
15802
 
        *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15803
 
        *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15804
 
        *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15805
 
        *\ 2.11.*) ;; # other 2.11 versions
15806
 
        *) supports_anon_versioning=yes ;;
15807
 
      esac
15808
 
      if test $supports_anon_versioning = yes; then
15809
 
        archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
15810
 
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15811
 
$echo "local: *; };" >> $output_objdir/$libname.ver~
15812
 
        $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15813
 
      else
15814
 
        archive_expsym_cmds_GCJ=$archive_cmds_GCJ
15815
 
      fi
15816
 
    else
15817
 
      ld_shlibs_GCJ=no
15818
 
    fi
15819
 
    ;;
15820
 
 
15821
 
    *)
15822
 
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15823
 
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15824
 
        archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15825
 
      else
15826
 
        ld_shlibs_GCJ=no
15827
 
      fi
15828
 
      ;;
15829
 
    esac
15830
 
 
15831
 
    if test "$ld_shlibs_GCJ" = yes; then
15832
 
      runpath_var=LD_RUN_PATH
15833
 
      hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
15834
 
      export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
15835
 
      # ancient GNU ld didn't support --whole-archive et. al.
15836
 
      if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15837
 
        whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15838
 
      else
15839
 
        whole_archive_flag_spec_GCJ=
15840
 
      fi
15841
 
    fi
15842
 
  else
15843
 
    # PORTME fill in a description of your system's linker (not GNU ld)
15844
 
    case $host_os in
15845
 
    aix3*)
15846
 
      allow_undefined_flag_GCJ=unsupported
15847
 
      always_export_symbols_GCJ=yes
15848
 
      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'
15849
 
      # Note: this linker hardcodes the directories in LIBPATH if there
15850
 
      # are no directories specified by -L.
15851
 
      hardcode_minus_L_GCJ=yes
15852
 
      if test "$GCC" = yes && test -z "$link_static_flag"; then
15853
 
        # Neither direct hardcoding nor static linking is supported with a
15854
 
        # broken collect2.
15855
 
        hardcode_direct_GCJ=unsupported
15856
 
      fi
15857
 
      ;;
15858
 
 
15859
 
    aix4* | aix5*)
15860
 
      if test "$host_cpu" = ia64; then
15861
 
        # On IA64, the linker does run time linking by default, so we don't
15862
 
        # have to do anything special.
15863
 
        aix_use_runtimelinking=no
15864
 
        exp_sym_flag='-Bexport'
15865
 
        no_entry_flag=""
15866
 
      else
15867
 
        # If we're using GNU nm, then we don't want the "-C" option.
15868
 
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
15869
 
        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15870
 
          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'
15871
 
        else
15872
 
          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'
15873
 
        fi
15874
 
        aix_use_runtimelinking=no
15875
 
 
15876
 
        # Test if we are trying to use run time linking or normal
15877
 
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15878
 
        # need to do runtime linking.
15879
 
        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15880
 
          for ld_flag in $LDFLAGS; do
15881
 
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15882
 
            aix_use_runtimelinking=yes
15883
 
            break
15884
 
          fi
15885
 
          done
15886
 
        esac
15887
 
 
15888
 
        exp_sym_flag='-bexport'
15889
 
        no_entry_flag='-bnoentry'
15890
 
      fi
15891
 
 
15892
 
      # When large executables or shared objects are built, AIX ld can
15893
 
      # have problems creating the table of contents.  If linking a library
15894
 
      # or program results in "error TOC overflow" add -mminimal-toc to
15895
 
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15896
 
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15897
 
 
15898
 
      archive_cmds_GCJ=''
15899
 
      hardcode_direct_GCJ=yes
15900
 
      hardcode_libdir_separator_GCJ=':'
15901
 
      link_all_deplibs_GCJ=yes
15902
 
 
15903
 
      if test "$GCC" = yes; then
15904
 
        case $host_os in aix4.[012]|aix4.[012].*)
15905
 
        # We only want to do this on AIX 4.2 and lower, the check
15906
 
        # below for broken collect2 doesn't work under 4.3+
15907
 
          collect2name=`${CC} -print-prog-name=collect2`
15908
 
          if test -f "$collect2name" && \
15909
 
           strings "$collect2name" | grep resolve_lib_name >/dev/null
15910
 
          then
15911
 
          # We have reworked collect2
15912
 
          hardcode_direct_GCJ=yes
15913
 
          else
15914
 
          # We have old collect2
15915
 
          hardcode_direct_GCJ=unsupported
15916
 
          # It fails to find uninstalled libraries when the uninstalled
15917
 
          # path is not listed in the libpath.  Setting hardcode_minus_L
15918
 
          # to unsupported forces relinking
15919
 
          hardcode_minus_L_GCJ=yes
15920
 
          hardcode_libdir_flag_spec_GCJ='-L$libdir'
15921
 
          hardcode_libdir_separator_GCJ=
15922
 
          fi
15923
 
        esac
15924
 
        shared_flag='-shared'
15925
 
        if test "$aix_use_runtimelinking" = yes; then
15926
 
          shared_flag="$shared_flag "'${wl}-G'
15927
 
        fi
15928
 
      else
15929
 
        # not using gcc
15930
 
        if test "$host_cpu" = ia64; then
15931
 
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15932
 
        # chokes on -Wl,-G. The following line is correct:
15933
 
          shared_flag='-G'
15934
 
        else
15935
 
        if test "$aix_use_runtimelinking" = yes; then
15936
 
            shared_flag='${wl}-G'
15937
 
          else
15938
 
            shared_flag='${wl}-bM:SRE'
15939
 
        fi
15940
 
        fi
15941
 
      fi
15942
 
 
15943
 
      # It seems that -bexpall does not export symbols beginning with
15944
 
      # underscore (_), so it is better to generate a list of symbols to export.
15945
 
      always_export_symbols_GCJ=yes
15946
 
      if test "$aix_use_runtimelinking" = yes; then
15947
 
        # Warning - without using the other runtime loading flags (-brtl),
15948
 
        # -berok will link without error, but may produce a broken library.
15949
 
        allow_undefined_flag_GCJ='-berok'
15950
 
       # Determine the default libpath from the value encoded in an empty executable.
15951
 
       cat >conftest.$ac_ext <<_ACEOF
15952
 
/* confdefs.h.  */
15953
 
_ACEOF
15954
 
cat confdefs.h >>conftest.$ac_ext
15955
 
cat >>conftest.$ac_ext <<_ACEOF
15956
 
/* end confdefs.h.  */
15957
 
 
15958
 
int
15959
 
main ()
15960
 
{
15961
 
 
15962
 
  ;
15963
 
  return 0;
15964
 
}
15965
 
_ACEOF
15966
 
rm -f conftest.$ac_objext conftest$ac_exeext
15967
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15968
 
  (eval $ac_link) 2>conftest.er1
15969
 
  ac_status=$?
15970
 
  grep -v '^ *+' conftest.er1 >conftest.err
15971
 
  rm -f conftest.er1
15972
 
  cat conftest.err >&5
15973
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15974
 
  (exit $ac_status); } &&
15975
 
         { ac_try='test -z "$ac_c_werror_flag"
15976
 
                         || test ! -s conftest.err'
15977
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15978
 
  (eval $ac_try) 2>&5
15979
 
  ac_status=$?
15980
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15981
 
  (exit $ac_status); }; } &&
15982
 
         { ac_try='test -s conftest$ac_exeext'
15983
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15984
 
  (eval $ac_try) 2>&5
15985
 
  ac_status=$?
15986
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15987
 
  (exit $ac_status); }; }; then
15988
 
 
15989
 
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15990
 
}'`
15991
 
# Check for a 64-bit object if we didn't find anything.
15992
 
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; }
15993
 
}'`; fi
15994
 
else
15995
 
  echo "$as_me: failed program was:" >&5
15996
 
sed 's/^/| /' conftest.$ac_ext >&5
15997
 
 
15998
 
fi
15999
 
rm -f conftest.err conftest.$ac_objext \
16000
 
      conftest$ac_exeext conftest.$ac_ext
16001
 
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16002
 
 
16003
 
       hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16004
 
        archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
16005
 
       else
16006
 
        if test "$host_cpu" = ia64; then
16007
 
          hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16008
 
          allow_undefined_flag_GCJ="-z nodefs"
16009
 
          archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
16010
 
        else
16011
 
         # Determine the default libpath from the value encoded in an empty executable.
16012
 
         cat >conftest.$ac_ext <<_ACEOF
16013
 
/* confdefs.h.  */
16014
 
_ACEOF
16015
 
cat confdefs.h >>conftest.$ac_ext
16016
 
cat >>conftest.$ac_ext <<_ACEOF
16017
 
/* end confdefs.h.  */
16018
 
 
16019
 
int
16020
 
main ()
16021
 
{
16022
 
 
16023
 
  ;
16024
 
  return 0;
16025
 
}
16026
 
_ACEOF
16027
 
rm -f conftest.$ac_objext conftest$ac_exeext
16028
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16029
 
  (eval $ac_link) 2>conftest.er1
16030
 
  ac_status=$?
16031
 
  grep -v '^ *+' conftest.er1 >conftest.err
16032
 
  rm -f conftest.er1
16033
 
  cat conftest.err >&5
16034
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16035
 
  (exit $ac_status); } &&
16036
 
         { ac_try='test -z "$ac_c_werror_flag"
16037
 
                         || test ! -s conftest.err'
16038
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16039
 
  (eval $ac_try) 2>&5
16040
 
  ac_status=$?
16041
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16042
 
  (exit $ac_status); }; } &&
16043
 
         { ac_try='test -s conftest$ac_exeext'
16044
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16045
 
  (eval $ac_try) 2>&5
16046
 
  ac_status=$?
16047
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16048
 
  (exit $ac_status); }; }; then
16049
 
 
16050
 
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16051
 
}'`
16052
 
# Check for a 64-bit object if we didn't find anything.
16053
 
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; }
16054
 
}'`; fi
16055
 
else
16056
 
  echo "$as_me: failed program was:" >&5
16057
 
sed 's/^/| /' conftest.$ac_ext >&5
16058
 
 
16059
 
fi
16060
 
rm -f conftest.err conftest.$ac_objext \
16061
 
      conftest$ac_exeext conftest.$ac_ext
16062
 
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16063
 
 
16064
 
         hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16065
 
          # Warning - without using the other run time loading flags,
16066
 
          # -berok will link without error, but may produce a broken library.
16067
 
          no_undefined_flag_GCJ=' ${wl}-bernotok'
16068
 
          allow_undefined_flag_GCJ=' ${wl}-berok'
16069
 
          # -bexpall does not export symbols beginning with underscore (_)
16070
 
          always_export_symbols_GCJ=yes
16071
 
          # Exported symbols can be pulled into shared objects from archives
16072
 
          whole_archive_flag_spec_GCJ=' '
16073
 
          archive_cmds_need_lc_GCJ=yes
16074
 
          # This is similar to how AIX traditionally builds it's shared libraries.
16075
 
          archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
16076
 
        fi
16077
 
      fi
16078
 
      ;;
16079
 
 
16080
 
    amigaos*)
16081
 
      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)'
16082
 
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16083
 
      hardcode_minus_L_GCJ=yes
16084
 
      # see comment about different semantics on the GNU ld section
16085
 
      ld_shlibs_GCJ=no
16086
 
      ;;
16087
 
 
16088
 
    bsdi[45]*)
16089
 
      export_dynamic_flag_spec_GCJ=-rdynamic
16090
 
      ;;
16091
 
 
16092
 
    cygwin* | mingw* | pw32*)
16093
 
      # When not using gcc, we currently assume that we are using
16094
 
      # Microsoft Visual C++.
16095
 
      # hardcode_libdir_flag_spec is actually meaningless, as there is
16096
 
      # no search path for DLLs.
16097
 
      hardcode_libdir_flag_spec_GCJ=' '
16098
 
      allow_undefined_flag_GCJ=unsupported
16099
 
      # Tell ltmain to make .lib files, not .a files.
16100
 
      libext=lib
16101
 
      # Tell ltmain to make .dll files, not .so files.
16102
 
      shrext_cmds=".dll"
16103
 
      # FIXME: Setting linknames here is a bad hack.
16104
 
      archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16105
 
      # The linker will automatically build a .lib file if we build a DLL.
16106
 
      old_archive_From_new_cmds_GCJ='true'
16107
 
      # FIXME: Should let the user specify the lib program.
16108
 
      old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16109
 
      fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
16110
 
      enable_shared_with_static_runtimes_GCJ=yes
16111
 
      ;;
16112
 
 
16113
 
    darwin* | rhapsody*)
16114
 
      case "$host_os" in
16115
 
        rhapsody* | darwin1.[012])
16116
 
         allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
16117
 
         ;;
16118
 
       *) # Darwin 1.3 on
16119
 
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16120
 
           allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16121
 
         else
16122
 
           case ${MACOSX_DEPLOYMENT_TARGET} in
16123
 
             10.[012])
16124
 
               allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16125
 
               ;;
16126
 
             10.*)
16127
 
               allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
16128
 
               ;;
16129
 
           esac
16130
 
         fi
16131
 
         ;;
16132
 
      esac
16133
 
      archive_cmds_need_lc_GCJ=no
16134
 
      hardcode_direct_GCJ=no
16135
 
      hardcode_automatic_GCJ=yes
16136
 
      hardcode_shlibpath_var_GCJ=unsupported
16137
 
      whole_archive_flag_spec_GCJ=''
16138
 
      link_all_deplibs_GCJ=yes
16139
 
    if test "$GCC" = yes ; then
16140
 
        output_verbose_link_cmd='echo'
16141
 
        archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16142
 
      module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16143
 
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16144
 
      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}'
16145
 
      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}'
16146
 
    else
16147
 
      case "$cc_basename" in
16148
 
        xlc*)
16149
 
         output_verbose_link_cmd='echo'
16150
 
         archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
16151
 
         module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16152
 
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16153
 
         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}'
16154
 
          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}'
16155
 
          ;;
16156
 
       *)
16157
 
         ld_shlibs_GCJ=no
16158
 
          ;;
16159
 
      esac
16160
 
    fi
16161
 
      ;;
16162
 
 
16163
 
    dgux*)
16164
 
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16165
 
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16166
 
      hardcode_shlibpath_var_GCJ=no
16167
 
      ;;
16168
 
 
16169
 
    freebsd1*)
16170
 
      ld_shlibs_GCJ=no
16171
 
      ;;
16172
 
 
16173
 
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16174
 
    # support.  Future versions do this automatically, but an explicit c++rt0.o
16175
 
    # does not break anything, and helps significantly (at the cost of a little
16176
 
    # extra space).
16177
 
    freebsd2.2*)
16178
 
      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16179
 
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
16180
 
      hardcode_direct_GCJ=yes
16181
 
      hardcode_shlibpath_var_GCJ=no
16182
 
      ;;
16183
 
 
16184
 
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16185
 
    freebsd2*)
16186
 
      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16187
 
      hardcode_direct_GCJ=yes
16188
 
      hardcode_minus_L_GCJ=yes
16189
 
      hardcode_shlibpath_var_GCJ=no
16190
 
      ;;
16191
 
 
16192
 
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16193
 
    freebsd* | kfreebsd*-gnu | dragonfly*)
16194
 
      archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16195
 
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
16196
 
      hardcode_direct_GCJ=yes
16197
 
      hardcode_shlibpath_var_GCJ=no
16198
 
      ;;
16199
 
 
16200
 
    hpux9*)
16201
 
      if test "$GCC" = yes; then
16202
 
        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'
16203
 
      else
16204
 
        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'
16205
 
      fi
16206
 
      hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16207
 
      hardcode_libdir_separator_GCJ=:
16208
 
      hardcode_direct_GCJ=yes
16209
 
 
16210
 
      # hardcode_minus_L: Not really in the search PATH,
16211
 
      # but as the default location of the library.
16212
 
      hardcode_minus_L_GCJ=yes
16213
 
      export_dynamic_flag_spec_GCJ='${wl}-E'
16214
 
      ;;
16215
 
 
16216
 
    hpux10* | hpux11*)
16217
 
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16218
 
        case "$host_cpu" in
16219
 
        hppa*64*|ia64*)
16220
 
          archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16221
 
          ;;
16222
 
        *)
16223
 
          archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16224
 
          ;;
16225
 
        esac
16226
 
      else
16227
 
        case "$host_cpu" in
16228
 
        hppa*64*|ia64*)
16229
 
          archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
16230
 
          ;;
16231
 
        *)
16232
 
          archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16233
 
          ;;
16234
 
        esac
16235
 
      fi
16236
 
      if test "$with_gnu_ld" = no; then
16237
 
        case "$host_cpu" in
16238
 
        hppa*64*)
16239
 
          hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16240
 
          hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16241
 
          hardcode_libdir_separator_GCJ=:
16242
 
          hardcode_direct_GCJ=no
16243
 
          hardcode_shlibpath_var_GCJ=no
16244
 
          ;;
16245
 
        ia64*)
16246
 
          hardcode_libdir_flag_spec_GCJ='-L$libdir'
16247
 
          hardcode_direct_GCJ=no
16248
 
          hardcode_shlibpath_var_GCJ=no
16249
 
 
16250
 
          # hardcode_minus_L: Not really in the search PATH,
16251
 
          # but as the default location of the library.
16252
 
          hardcode_minus_L_GCJ=yes
16253
 
          ;;
16254
 
        *)
16255
 
          hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16256
 
          hardcode_libdir_separator_GCJ=:
16257
 
          hardcode_direct_GCJ=yes
16258
 
          export_dynamic_flag_spec_GCJ='${wl}-E'
16259
 
 
16260
 
          # hardcode_minus_L: Not really in the search PATH,
16261
 
          # but as the default location of the library.
16262
 
          hardcode_minus_L_GCJ=yes
16263
 
          ;;
16264
 
        esac
16265
 
      fi
16266
 
      ;;
16267
 
 
16268
 
    irix5* | irix6* | nonstopux*)
16269
 
      if test "$GCC" = yes; then
16270
 
        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'
16271
 
      else
16272
 
        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'
16273
 
        hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16274
 
      fi
16275
 
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16276
 
      hardcode_libdir_separator_GCJ=:
16277
 
      link_all_deplibs_GCJ=yes
16278
 
      ;;
16279
 
 
16280
 
    netbsd*)
16281
 
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16282
 
        archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
16283
 
      else
16284
 
        archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
16285
 
      fi
16286
 
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
16287
 
      hardcode_direct_GCJ=yes
16288
 
      hardcode_shlibpath_var_GCJ=no
16289
 
      ;;
16290
 
 
16291
 
    newsos6)
16292
 
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16293
 
      hardcode_direct_GCJ=yes
16294
 
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16295
 
      hardcode_libdir_separator_GCJ=:
16296
 
      hardcode_shlibpath_var_GCJ=no
16297
 
      ;;
16298
 
 
16299
 
    openbsd*)
16300
 
      hardcode_direct_GCJ=yes
16301
 
      hardcode_shlibpath_var_GCJ=no
16302
 
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16303
 
        archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16304
 
        archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16305
 
        hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16306
 
        export_dynamic_flag_spec_GCJ='${wl}-E'
16307
 
      else
16308
 
       case $host_os in
16309
 
         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16310
 
           archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16311
 
           hardcode_libdir_flag_spec_GCJ='-R$libdir'
16312
 
           ;;
16313
 
         *)
16314
 
           archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16315
 
           hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16316
 
           ;;
16317
 
       esac
16318
 
      fi
16319
 
      ;;
16320
 
 
16321
 
    os2*)
16322
 
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16323
 
      hardcode_minus_L_GCJ=yes
16324
 
      allow_undefined_flag_GCJ=unsupported
16325
 
      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'
16326
 
      old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16327
 
      ;;
16328
 
 
16329
 
    osf3*)
16330
 
      if test "$GCC" = yes; then
16331
 
        allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16332
 
        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'
16333
 
      else
16334
 
        allow_undefined_flag_GCJ=' -expect_unresolved \*'
16335
 
        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'
16336
 
      fi
16337
 
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16338
 
      hardcode_libdir_separator_GCJ=:
16339
 
      ;;
16340
 
 
16341
 
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
16342
 
      if test "$GCC" = yes; then
16343
 
        allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16344
 
        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'
16345
 
        hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16346
 
      else
16347
 
        allow_undefined_flag_GCJ=' -expect_unresolved \*'
16348
 
        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'
16349
 
        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~
16350
 
        $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
16351
 
 
16352
 
        # Both c and cxx compiler support -rpath directly
16353
 
        hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16354
 
      fi
16355
 
      hardcode_libdir_separator_GCJ=:
16356
 
      ;;
16357
 
 
16358
 
    sco3.2v5*)
16359
 
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16360
 
      hardcode_shlibpath_var_GCJ=no
16361
 
      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16362
 
      runpath_var=LD_RUN_PATH
16363
 
      hardcode_runpath_var=yes
16364
 
      ;;
16365
 
 
16366
 
    solaris*)
16367
 
      no_undefined_flag_GCJ=' -z text'
16368
 
      if test "$GCC" = yes; then
16369
 
        archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16370
 
        archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16371
 
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16372
 
      else
16373
 
        archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16374
 
        archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16375
 
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16376
 
      fi
16377
 
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
16378
 
      hardcode_shlibpath_var_GCJ=no
16379
 
      case $host_os in
16380
 
      solaris2.[0-5] | solaris2.[0-5].*) ;;
16381
 
      *) # Supported since Solaris 2.6 (maybe 2.5.1?)
16382
 
        whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' ;;
16383
 
      esac
16384
 
      link_all_deplibs_GCJ=yes
16385
 
      ;;
16386
 
 
16387
 
    sunos4*)
16388
 
      if test "x$host_vendor" = xsequent; then
16389
 
        # Use $CC to link under sequent, because it throws in some extra .o
16390
 
        # files that make .init and .fini sections work.
16391
 
        archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16392
 
      else
16393
 
        archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16394
 
      fi
16395
 
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16396
 
      hardcode_direct_GCJ=yes
16397
 
      hardcode_minus_L_GCJ=yes
16398
 
      hardcode_shlibpath_var_GCJ=no
16399
 
      ;;
16400
 
 
16401
 
    sysv4)
16402
 
      case $host_vendor in
16403
 
        sni)
16404
 
          archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16405
 
          hardcode_direct_GCJ=yes # is this really true???
16406
 
        ;;
16407
 
        siemens)
16408
 
          ## LD is ld it makes a PLAMLIB
16409
 
          ## CC just makes a GrossModule.
16410
 
          archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16411
 
          reload_cmds_GCJ='$CC -r -o $output$reload_objs'
16412
 
          hardcode_direct_GCJ=no
16413
 
        ;;
16414
 
        motorola)
16415
 
          archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16416
 
          hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
16417
 
        ;;
16418
 
      esac
16419
 
      runpath_var='LD_RUN_PATH'
16420
 
      hardcode_shlibpath_var_GCJ=no
16421
 
      ;;
16422
 
 
16423
 
    sysv4.3*)
16424
 
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16425
 
      hardcode_shlibpath_var_GCJ=no
16426
 
      export_dynamic_flag_spec_GCJ='-Bexport'
16427
 
      ;;
16428
 
 
16429
 
    sysv4*MP*)
16430
 
      if test -d /usr/nec; then
16431
 
        archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16432
 
        hardcode_shlibpath_var_GCJ=no
16433
 
        runpath_var=LD_RUN_PATH
16434
 
        hardcode_runpath_var=yes
16435
 
        ld_shlibs_GCJ=yes
16436
 
      fi
16437
 
      ;;
16438
 
 
16439
 
    sysv4.2uw2*)
16440
 
      archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16441
 
      hardcode_direct_GCJ=yes
16442
 
      hardcode_minus_L_GCJ=no
16443
 
      hardcode_shlibpath_var_GCJ=no
16444
 
      hardcode_runpath_var=yes
16445
 
      runpath_var=LD_RUN_PATH
16446
 
      ;;
16447
 
 
16448
 
   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
16449
 
      no_undefined_flag_GCJ='${wl}-z ${wl}text'
16450
 
      if test "$GCC" = yes; then
16451
 
        archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16452
 
      else
16453
 
        archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16454
 
      fi
16455
 
      runpath_var='LD_RUN_PATH'
16456
 
      hardcode_shlibpath_var_GCJ=no
16457
 
      ;;
16458
 
 
16459
 
    sysv5*)
16460
 
      no_undefined_flag_GCJ=' -z text'
16461
 
      # $CC -shared without GNU ld will not create a library from C++
16462
 
      # object files and a static libstdc++, better avoid it by now
16463
 
      archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16464
 
      archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16465
 
                $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16466
 
      hardcode_libdir_flag_spec_GCJ=
16467
 
      hardcode_shlibpath_var_GCJ=no
16468
 
      runpath_var='LD_RUN_PATH'
16469
 
      ;;
16470
 
 
16471
 
    uts4*)
16472
 
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16473
 
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16474
 
      hardcode_shlibpath_var_GCJ=no
16475
 
      ;;
16476
 
 
16477
 
    *)
16478
 
      ld_shlibs_GCJ=no
16479
 
      ;;
16480
 
    esac
16481
 
  fi
16482
 
 
16483
 
echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
16484
 
echo "${ECHO_T}$ld_shlibs_GCJ" >&6
16485
 
test "$ld_shlibs_GCJ" = no && can_build_shared=no
16486
 
 
16487
 
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16488
 
if test "$GCC" = yes; then
16489
 
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16490
 
fi
16491
 
 
16492
 
#
16493
 
# Do we need to explicitly link libc?
16494
 
#
16495
 
case "x$archive_cmds_need_lc_GCJ" in
16496
 
x|xyes)
16497
 
  # Assume -lc should be added
16498
 
  archive_cmds_need_lc_GCJ=yes
16499
 
 
16500
 
  if test "$enable_shared" = yes && test "$GCC" = yes; then
16501
 
    case $archive_cmds_GCJ in
16502
 
    *'~'*)
16503
 
      # FIXME: we may have to deal with multi-command sequences.
16504
 
      ;;
16505
 
    '$CC '*)
16506
 
      # Test whether the compiler implicitly links with -lc since on some
16507
 
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
16508
 
      # to ld, don't add -lc before -lgcc.
16509
 
      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16510
 
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16511
 
      $rm conftest*
16512
 
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16513
 
 
16514
 
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16515
 
  (eval $ac_compile) 2>&5
16516
 
  ac_status=$?
16517
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16518
 
  (exit $ac_status); } 2>conftest.err; then
16519
 
        soname=conftest
16520
 
        lib=conftest
16521
 
        libobjs=conftest.$ac_objext
16522
 
        deplibs=
16523
 
        wl=$lt_prog_compiler_wl_GCJ
16524
 
        compiler_flags=-v
16525
 
        linker_flags=-v
16526
 
        verstring=
16527
 
        output_objdir=.
16528
 
        libname=conftest
16529
 
        lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
16530
 
        allow_undefined_flag_GCJ=
16531
 
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16532
 
  (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16533
 
  ac_status=$?
16534
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16535
 
  (exit $ac_status); }
16536
 
        then
16537
 
          archive_cmds_need_lc_GCJ=no
16538
 
        else
16539
 
          archive_cmds_need_lc_GCJ=yes
16540
 
        fi
16541
 
        allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
16542
 
      else
16543
 
        cat conftest.err 1>&5
16544
 
      fi
16545
 
      $rm conftest*
16546
 
      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
16547
 
echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
16548
 
      ;;
16549
 
    esac
16550
 
  fi
16551
 
  ;;
16552
 
esac
16553
 
 
16554
 
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16555
 
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16556
 
library_names_spec=
16557
 
libname_spec='lib$name'
16558
 
soname_spec=
16559
 
shrext_cmds=".so"
16560
 
postinstall_cmds=
16561
 
postuninstall_cmds=
16562
 
finish_cmds=
16563
 
finish_eval=
16564
 
shlibpath_var=
16565
 
shlibpath_overrides_runpath=unknown
16566
 
version_type=none
16567
 
dynamic_linker="$host_os ld.so"
16568
 
sys_lib_dlsearch_path_spec="/lib /usr/lib"
16569
 
if test "$GCC" = yes; then
16570
 
  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16571
 
  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16572
 
    # if the path contains ";" then we assume it to be the separator
16573
 
    # otherwise default to the standard path separator (i.e. ":") - it is
16574
 
    # assumed that no part of a normal pathname contains ";" but that should
16575
 
    # okay in the real world where ";" in dirpaths is itself problematic.
16576
 
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16577
 
  else
16578
 
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16579
 
  fi
16580
 
else
16581
 
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16582
 
fi
16583
 
need_lib_prefix=unknown
16584
 
hardcode_into_libs=no
16585
 
 
16586
 
# when you set need_version to no, make sure it does not cause -set_version
16587
 
# flags to be left without arguments
16588
 
need_version=unknown
16589
 
 
16590
 
case $host_os in
16591
 
aix3*)
16592
 
  version_type=linux
16593
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16594
 
  shlibpath_var=LIBPATH
16595
 
 
16596
 
  # AIX 3 has no versioning support, so we append a major version to the name.
16597
 
  soname_spec='${libname}${release}${shared_ext}$major'
16598
 
  ;;
16599
 
 
16600
 
aix4* | aix5*)
16601
 
  version_type=linux
16602
 
  need_lib_prefix=no
16603
 
  need_version=no
16604
 
  hardcode_into_libs=yes
16605
 
  if test "$host_cpu" = ia64; then
16606
 
    # AIX 5 supports IA64
16607
 
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16608
 
    shlibpath_var=LD_LIBRARY_PATH
16609
 
  else
16610
 
    # With GCC up to 2.95.x, collect2 would create an import file
16611
 
    # for dependence libraries.  The import file would start with
16612
 
    # the line `#! .'.  This would cause the generated library to
16613
 
    # depend on `.', always an invalid library.  This was fixed in
16614
 
    # development snapshots of GCC prior to 3.0.
16615
 
    case $host_os in
16616
 
      aix4 | aix4.[01] | aix4.[01].*)
16617
 
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16618
 
           echo ' yes '
16619
 
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16620
 
        :
16621
 
      else
16622
 
        can_build_shared=no
16623
 
      fi
16624
 
      ;;
16625
 
    esac
16626
 
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16627
 
    # soname into executable. Probably we can add versioning support to
16628
 
    # collect2, so additional links can be useful in future.
16629
 
    if test "$aix_use_runtimelinking" = yes; then
16630
 
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16631
 
      # instead of lib<name>.a to let people know that these are not
16632
 
      # typical AIX shared libraries.
16633
 
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16634
 
    else
16635
 
      # We preserve .a as extension for shared libraries through AIX4.2
16636
 
      # and later when we are not doing run time linking.
16637
 
      library_names_spec='${libname}${release}.a $libname.a'
16638
 
      soname_spec='${libname}${release}${shared_ext}$major'
16639
 
    fi
16640
 
    shlibpath_var=LIBPATH
16641
 
  fi
16642
 
  ;;
16643
 
 
16644
 
amigaos*)
16645
 
  library_names_spec='$libname.ixlibrary $libname.a'
16646
 
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
16647
 
  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'
16648
 
  ;;
16649
 
 
16650
 
beos*)
16651
 
  library_names_spec='${libname}${shared_ext}'
16652
 
  dynamic_linker="$host_os ld.so"
16653
 
  shlibpath_var=LIBRARY_PATH
16654
 
  ;;
16655
 
 
16656
 
bsdi[45]*)
16657
 
  version_type=linux
16658
 
  need_version=no
16659
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16660
 
  soname_spec='${libname}${release}${shared_ext}$major'
16661
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16662
 
  shlibpath_var=LD_LIBRARY_PATH
16663
 
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16664
 
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16665
 
  # the default ld.so.conf also contains /usr/contrib/lib and
16666
 
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16667
 
  # libtool to hard-code these into programs
16668
 
  ;;
16669
 
 
16670
 
cygwin* | mingw* | pw32*)
16671
 
  version_type=windows
16672
 
  shrext_cmds=".dll"
16673
 
  need_version=no
16674
 
  need_lib_prefix=no
16675
 
 
16676
 
  case $GCC,$host_os in
16677
 
  yes,cygwin* | yes,mingw* | yes,pw32*)
16678
 
    library_names_spec='$libname.dll.a'
16679
 
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
16680
 
    postinstall_cmds='base_file=`basename \${file}`~
16681
 
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16682
 
      dldir=$destdir/`dirname \$dlpath`~
16683
 
      test -d \$dldir || mkdir -p \$dldir~
16684
 
      $install_prog $dir/$dlname \$dldir/$dlname'
16685
 
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16686
 
      dlpath=$dir/\$dldll~
16687
 
       $rm \$dlpath'
16688
 
    shlibpath_overrides_runpath=yes
16689
 
 
16690
 
    case $host_os in
16691
 
    cygwin*)
16692
 
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16693
 
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16694
 
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16695
 
      ;;
16696
 
    mingw*)
16697
 
      # MinGW DLLs use traditional 'lib' prefix
16698
 
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16699
 
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16700
 
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16701
 
        # It is most probably a Windows format PATH printed by
16702
 
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
16703
 
        # path with ; separators, and with drive letters. We can handle the
16704
 
        # drive letters (cygwin fileutils understands them), so leave them,
16705
 
        # especially as we might pass files found there to a mingw objdump,
16706
 
        # which wouldn't understand a cygwinified path. Ahh.
16707
 
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16708
 
      else
16709
 
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16710
 
      fi
16711
 
      ;;
16712
 
    pw32*)
16713
 
      # pw32 DLLs use 'pw' prefix rather than 'lib'
16714
 
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16715
 
      ;;
16716
 
    esac
16717
 
    ;;
16718
 
 
16719
 
  *)
16720
 
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16721
 
    ;;
16722
 
  esac
16723
 
  dynamic_linker='Win32 ld.exe'
16724
 
  # FIXME: first we should search . and the directory the executable is in
16725
 
  shlibpath_var=PATH
16726
 
  ;;
16727
 
 
16728
 
darwin* | rhapsody*)
16729
 
  dynamic_linker="$host_os dyld"
16730
 
  version_type=darwin
16731
 
  need_lib_prefix=no
16732
 
  need_version=no
16733
 
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16734
 
  soname_spec='${libname}${release}${major}$shared_ext'
16735
 
  shlibpath_overrides_runpath=yes
16736
 
  shlibpath_var=DYLD_LIBRARY_PATH
16737
 
  shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
16738
 
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16739
 
  if test "$GCC" = yes; then
16740
 
    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"`
16741
 
  else
16742
 
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16743
 
  fi
16744
 
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16745
 
  ;;
16746
 
 
16747
 
dgux*)
16748
 
  version_type=linux
16749
 
  need_lib_prefix=no
16750
 
  need_version=no
16751
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16752
 
  soname_spec='${libname}${release}${shared_ext}$major'
16753
 
  shlibpath_var=LD_LIBRARY_PATH
16754
 
  ;;
16755
 
 
16756
 
freebsd1*)
16757
 
  dynamic_linker=no
16758
 
  ;;
16759
 
 
16760
 
kfreebsd*-gnu)
16761
 
  version_type=linux
16762
 
  need_lib_prefix=no
16763
 
  need_version=no
16764
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16765
 
  soname_spec='${libname}${release}${shared_ext}$major'
16766
 
  shlibpath_var=LD_LIBRARY_PATH
16767
 
  shlibpath_overrides_runpath=no
16768
 
  hardcode_into_libs=yes
16769
 
  dynamic_linker='GNU ld.so'
16770
 
  ;;
16771
 
 
16772
 
freebsd* | dragonfly*)
16773
 
  # DragonFly does not have aout.  When/if they implement a new
16774
 
  # versioning mechanism, adjust this.
16775
 
  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16776
 
  version_type=freebsd-$objformat
16777
 
  case $version_type in
16778
 
    freebsd-elf*)
16779
 
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16780
 
      need_version=no
16781
 
      need_lib_prefix=no
16782
 
      ;;
16783
 
    freebsd-*)
16784
 
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16785
 
      need_version=yes
16786
 
      ;;
16787
 
  esac
16788
 
  shlibpath_var=LD_LIBRARY_PATH
16789
 
  case $host_os in
16790
 
  freebsd2*)
16791
 
    shlibpath_overrides_runpath=yes
16792
 
    ;;
16793
 
  freebsd3.[01]* | freebsdelf3.[01]*)
16794
 
    shlibpath_overrides_runpath=yes
16795
 
    hardcode_into_libs=yes
16796
 
    ;;
16797
 
  *) # from 3.2 on
16798
 
    shlibpath_overrides_runpath=no
16799
 
    hardcode_into_libs=yes
16800
 
    ;;
16801
 
  esac
16802
 
  ;;
16803
 
 
16804
 
gnu*)
16805
 
  version_type=linux
16806
 
  need_lib_prefix=no
16807
 
  need_version=no
16808
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16809
 
  soname_spec='${libname}${release}${shared_ext}$major'
16810
 
  shlibpath_var=LD_LIBRARY_PATH
16811
 
  hardcode_into_libs=yes
16812
 
  ;;
16813
 
 
16814
 
hpux9* | hpux10* | hpux11*)
16815
 
  # Give a soname corresponding to the major version so that dld.sl refuses to
16816
 
  # link against other versions.
16817
 
  version_type=sunos
16818
 
  need_lib_prefix=no
16819
 
  need_version=no
16820
 
  case "$host_cpu" in
16821
 
  ia64*)
16822
 
    shrext_cmds='.so'
16823
 
    hardcode_into_libs=yes
16824
 
    dynamic_linker="$host_os dld.so"
16825
 
    shlibpath_var=LD_LIBRARY_PATH
16826
 
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16827
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16828
 
    soname_spec='${libname}${release}${shared_ext}$major'
16829
 
    if test "X$HPUX_IA64_MODE" = X32; then
16830
 
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16831
 
    else
16832
 
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16833
 
    fi
16834
 
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16835
 
    ;;
16836
 
   hppa*64*)
16837
 
     shrext_cmds='.sl'
16838
 
     hardcode_into_libs=yes
16839
 
     dynamic_linker="$host_os dld.sl"
16840
 
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16841
 
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16842
 
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16843
 
     soname_spec='${libname}${release}${shared_ext}$major'
16844
 
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16845
 
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16846
 
     ;;
16847
 
   *)
16848
 
    shrext_cmds='.sl'
16849
 
    dynamic_linker="$host_os dld.sl"
16850
 
    shlibpath_var=SHLIB_PATH
16851
 
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16852
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16853
 
    soname_spec='${libname}${release}${shared_ext}$major'
16854
 
    ;;
16855
 
  esac
16856
 
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
16857
 
  postinstall_cmds='chmod 555 $lib'
16858
 
  ;;
16859
 
 
16860
 
irix5* | irix6* | nonstopux*)
16861
 
  case $host_os in
16862
 
    nonstopux*) version_type=nonstopux ;;
16863
 
    *)
16864
 
        if test "$lt_cv_prog_gnu_ld" = yes; then
16865
 
                version_type=linux
16866
 
        else
16867
 
                version_type=irix
16868
 
        fi ;;
16869
 
  esac
16870
 
  need_lib_prefix=no
16871
 
  need_version=no
16872
 
  soname_spec='${libname}${release}${shared_ext}$major'
16873
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16874
 
  case $host_os in
16875
 
  irix5* | nonstopux*)
16876
 
    libsuff= shlibsuff=
16877
 
    ;;
16878
 
  *)
16879
 
    case $LD in # libtool.m4 will add one of these switches to LD
16880
 
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16881
 
      libsuff= shlibsuff= libmagic=32-bit;;
16882
 
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16883
 
      libsuff=32 shlibsuff=N32 libmagic=N32;;
16884
 
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16885
 
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
16886
 
    *) libsuff= shlibsuff= libmagic=never-match;;
16887
 
    esac
16888
 
    ;;
16889
 
  esac
16890
 
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16891
 
  shlibpath_overrides_runpath=no
16892
 
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16893
 
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16894
 
  hardcode_into_libs=yes
16895
 
  ;;
16896
 
 
16897
 
# No shared lib support for Linux oldld, aout, or coff.
16898
 
linux*oldld* | linux*aout* | linux*coff*)
16899
 
  dynamic_linker=no
16900
 
  ;;
16901
 
 
16902
 
# This must be Linux ELF.
16903
 
linux*)
16904
 
  version_type=linux
16905
 
  need_lib_prefix=no
16906
 
  need_version=no
16907
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16908
 
  soname_spec='${libname}${release}${shared_ext}$major'
16909
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16910
 
  shlibpath_var=LD_LIBRARY_PATH
16911
 
  shlibpath_overrides_runpath=no
16912
 
  # This implies no fast_install, which is unacceptable.
16913
 
  # Some rework will be needed to allow for fast_install
16914
 
  # before this can be enabled.
16915
 
  hardcode_into_libs=yes
16916
 
 
16917
 
  # Append ld.so.conf contents to the search path
16918
 
  if test -f /etc/ld.so.conf; then
16919
 
    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/[:,\t]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
16920
 
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16921
 
  fi
16922
 
 
16923
 
  # We used to test for /lib/ld.so.1 and disable shared libraries on
16924
 
  # powerpc, because MkLinux only supported shared libraries with the
16925
 
  # GNU dynamic linker.  Since this was broken with cross compilers,
16926
 
  # most powerpc-linux boxes support dynamic linking these days and
16927
 
  # people can always --disable-shared, the test was removed, and we
16928
 
  # assume the GNU/Linux dynamic linker is in use.
16929
 
  dynamic_linker='GNU/Linux ld.so'
16930
 
  ;;
16931
 
 
16932
 
knetbsd*-gnu)
16933
 
  version_type=linux
16934
 
  need_lib_prefix=no
16935
 
  need_version=no
16936
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16937
 
  soname_spec='${libname}${release}${shared_ext}$major'
16938
 
  shlibpath_var=LD_LIBRARY_PATH
16939
 
  shlibpath_overrides_runpath=no
16940
 
  hardcode_into_libs=yes
16941
 
  dynamic_linker='GNU ld.so'
16942
 
  ;;
16943
 
 
16944
 
netbsd*)
16945
 
  version_type=sunos
16946
 
  need_lib_prefix=no
16947
 
  need_version=no
16948
 
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16949
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16950
 
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16951
 
    dynamic_linker='NetBSD (a.out) ld.so'
16952
 
  else
16953
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16954
 
    soname_spec='${libname}${release}${shared_ext}$major'
16955
 
    dynamic_linker='NetBSD ld.elf_so'
16956
 
  fi
16957
 
  shlibpath_var=LD_LIBRARY_PATH
16958
 
  shlibpath_overrides_runpath=yes
16959
 
  hardcode_into_libs=yes
16960
 
  ;;
16961
 
 
16962
 
newsos6)
16963
 
  version_type=linux
16964
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16965
 
  shlibpath_var=LD_LIBRARY_PATH
16966
 
  shlibpath_overrides_runpath=yes
16967
 
  ;;
16968
 
 
16969
 
nto-qnx*)
16970
 
  version_type=linux
16971
 
  need_lib_prefix=no
16972
 
  need_version=no
16973
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16974
 
  soname_spec='${libname}${release}${shared_ext}$major'
16975
 
  shlibpath_var=LD_LIBRARY_PATH
16976
 
  shlibpath_overrides_runpath=yes
16977
 
  ;;
16978
 
 
16979
 
openbsd*)
16980
 
  version_type=sunos
16981
 
  need_lib_prefix=no
16982
 
  need_version=no
16983
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16984
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16985
 
  shlibpath_var=LD_LIBRARY_PATH
16986
 
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16987
 
    case $host_os in
16988
 
      openbsd2.[89] | openbsd2.[89].*)
16989
 
        shlibpath_overrides_runpath=no
16990
 
        ;;
16991
 
      *)
16992
 
        shlibpath_overrides_runpath=yes
16993
 
        ;;
16994
 
      esac
16995
 
  else
16996
 
    shlibpath_overrides_runpath=yes
16997
 
  fi
16998
 
  ;;
16999
 
 
17000
 
os2*)
17001
 
  libname_spec='$name'
17002
 
  shrext_cmds=".dll"
17003
 
  need_lib_prefix=no
17004
 
  library_names_spec='$libname${shared_ext} $libname.a'
17005
 
  dynamic_linker='OS/2 ld.exe'
17006
 
  shlibpath_var=LIBPATH
17007
 
  ;;
17008
 
 
17009
 
osf3* | osf4* | osf5*)
17010
 
  version_type=osf
17011
 
  need_lib_prefix=no
17012
 
  need_version=no
17013
 
  soname_spec='${libname}${release}${shared_ext}$major'
17014
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17015
 
  shlibpath_var=LD_LIBRARY_PATH
17016
 
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17017
 
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17018
 
  ;;
17019
 
 
17020
 
sco3.2v5*)
17021
 
  version_type=osf
17022
 
  soname_spec='${libname}${release}${shared_ext}$major'
17023
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17024
 
  shlibpath_var=LD_LIBRARY_PATH
17025
 
  ;;
17026
 
 
17027
 
solaris*)
17028
 
  version_type=linux
17029
 
  need_lib_prefix=no
17030
 
  need_version=no
17031
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17032
 
  soname_spec='${libname}${release}${shared_ext}$major'
17033
 
  shlibpath_var=LD_LIBRARY_PATH
17034
 
  shlibpath_overrides_runpath=yes
17035
 
  hardcode_into_libs=yes
17036
 
  # ldd complains unless libraries are executable
17037
 
  postinstall_cmds='chmod +x $lib'
17038
 
  ;;
17039
 
 
17040
 
sunos4*)
17041
 
  version_type=sunos
17042
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17043
 
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17044
 
  shlibpath_var=LD_LIBRARY_PATH
17045
 
  shlibpath_overrides_runpath=yes
17046
 
  if test "$with_gnu_ld" = yes; then
17047
 
    need_lib_prefix=no
17048
 
  fi
17049
 
  need_version=yes
17050
 
  ;;
17051
 
 
17052
 
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17053
 
  version_type=linux
17054
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17055
 
  soname_spec='${libname}${release}${shared_ext}$major'
17056
 
  shlibpath_var=LD_LIBRARY_PATH
17057
 
  case $host_vendor in
17058
 
    sni)
17059
 
      shlibpath_overrides_runpath=no
17060
 
      need_lib_prefix=no
17061
 
      export_dynamic_flag_spec='${wl}-Blargedynsym'
17062
 
      runpath_var=LD_RUN_PATH
17063
 
      ;;
17064
 
    siemens)
17065
 
      need_lib_prefix=no
17066
 
      ;;
17067
 
    motorola)
17068
 
      need_lib_prefix=no
17069
 
      need_version=no
17070
 
      shlibpath_overrides_runpath=no
17071
 
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17072
 
      ;;
17073
 
  esac
17074
 
  ;;
17075
 
 
17076
 
sysv4*MP*)
17077
 
  if test -d /usr/nec ;then
17078
 
    version_type=linux
17079
 
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17080
 
    soname_spec='$libname${shared_ext}.$major'
17081
 
    shlibpath_var=LD_LIBRARY_PATH
17082
 
  fi
17083
 
  ;;
17084
 
 
17085
 
uts4*)
17086
 
  version_type=linux
17087
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17088
 
  soname_spec='${libname}${release}${shared_ext}$major'
17089
 
  shlibpath_var=LD_LIBRARY_PATH
17090
 
  ;;
17091
 
 
17092
 
*)
17093
 
  dynamic_linker=no
17094
 
  ;;
17095
 
esac
17096
 
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17097
 
echo "${ECHO_T}$dynamic_linker" >&6
17098
 
test "$dynamic_linker" = no && can_build_shared=no
17099
 
 
17100
 
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17101
 
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17102
 
hardcode_action_GCJ=
17103
 
if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17104
 
   test -n "$runpath_var_GCJ" || \
17105
 
   test "X$hardcode_automatic_GCJ" = "Xyes" ; then
17106
 
 
17107
 
  # We can hardcode non-existant directories.
17108
 
  if test "$hardcode_direct_GCJ" != no &&
17109
 
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
17110
 
     # have to relink, otherwise we might link with an installed library
17111
 
     # when we should be linking with a yet-to-be-installed one
17112
 
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17113
 
     test "$hardcode_minus_L_GCJ" != no; then
17114
 
    # Linking always hardcodes the temporary library directory.
17115
 
    hardcode_action_GCJ=relink
17116
 
  else
17117
 
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
17118
 
    hardcode_action_GCJ=immediate
17119
 
  fi
17120
 
else
17121
 
  # We cannot hardcode anything, or else we can only hardcode existing
17122
 
  # directories.
17123
 
  hardcode_action_GCJ=unsupported
17124
 
fi
17125
 
echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17126
 
echo "${ECHO_T}$hardcode_action_GCJ" >&6
17127
 
 
17128
 
if test "$hardcode_action_GCJ" = relink; then
17129
 
  # Fast installation is not supported
17130
 
  enable_fast_install=no
17131
 
elif test "$shlibpath_overrides_runpath" = yes ||
17132
 
     test "$enable_shared" = no; then
17133
 
  # Fast installation is not necessary
17134
 
  enable_fast_install=needless
17135
 
fi
17136
 
 
17137
 
striplib=
17138
 
old_striplib=
17139
 
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17140
 
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17141
 
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17142
 
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17143
 
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17144
 
  echo "$as_me:$LINENO: result: yes" >&5
17145
 
echo "${ECHO_T}yes" >&6
17146
 
else
17147
 
# FIXME - insert some real tests, host_os isn't really good enough
17148
 
  case $host_os in
17149
 
   darwin*)
17150
 
       if test -n "$STRIP" ; then
17151
 
         striplib="$STRIP -x"
17152
 
         echo "$as_me:$LINENO: result: yes" >&5
17153
 
echo "${ECHO_T}yes" >&6
17154
 
       else
17155
 
  echo "$as_me:$LINENO: result: no" >&5
17156
 
echo "${ECHO_T}no" >&6
17157
 
fi
17158
 
       ;;
17159
 
   *)
17160
 
  echo "$as_me:$LINENO: result: no" >&5
17161
 
echo "${ECHO_T}no" >&6
17162
 
    ;;
17163
 
  esac
17164
 
fi
17165
 
 
17166
 
if test "x$enable_dlopen" != xyes; then
17167
 
  enable_dlopen=unknown
17168
 
  enable_dlopen_self=unknown
17169
 
  enable_dlopen_self_static=unknown
17170
 
else
17171
 
  lt_cv_dlopen=no
17172
 
  lt_cv_dlopen_libs=
17173
 
 
17174
 
  case $host_os in
17175
 
  beos*)
17176
 
    lt_cv_dlopen="load_add_on"
17177
 
    lt_cv_dlopen_libs=
17178
 
    lt_cv_dlopen_self=yes
17179
 
    ;;
17180
 
 
17181
 
  mingw* | pw32*)
17182
 
    lt_cv_dlopen="LoadLibrary"
17183
 
    lt_cv_dlopen_libs=
17184
 
   ;;
17185
 
 
17186
 
  cygwin*)
17187
 
    lt_cv_dlopen="dlopen"
17188
 
    lt_cv_dlopen_libs=
17189
 
   ;;
17190
 
 
17191
 
  darwin*)
17192
 
  # if libdl is installed we need to link against it
17193
 
    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17194
 
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17195
 
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17196
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
17197
 
else
17198
 
  ac_check_lib_save_LIBS=$LIBS
17199
 
LIBS="-ldl  $LIBS"
17200
 
cat >conftest.$ac_ext <<_ACEOF
17201
 
/* confdefs.h.  */
17202
 
_ACEOF
17203
 
cat confdefs.h >>conftest.$ac_ext
17204
 
cat >>conftest.$ac_ext <<_ACEOF
17205
 
/* end confdefs.h.  */
17206
 
 
17207
 
/* Override any gcc2 internal prototype to avoid an error.  */
17208
 
#ifdef __cplusplus
17209
 
extern "C"
17210
 
#endif
17211
 
/* We use char because int might match the return type of a gcc2
17212
 
   builtin and then its argument prototype would still apply.  */
17213
 
char dlopen ();
17214
 
int
17215
 
main ()
17216
 
{
17217
 
dlopen ();
17218
 
  ;
17219
 
  return 0;
17220
 
}
17221
 
_ACEOF
17222
 
rm -f conftest.$ac_objext conftest$ac_exeext
17223
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17224
 
  (eval $ac_link) 2>conftest.er1
17225
 
  ac_status=$?
17226
 
  grep -v '^ *+' conftest.er1 >conftest.err
17227
 
  rm -f conftest.er1
17228
 
  cat conftest.err >&5
17229
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17230
 
  (exit $ac_status); } &&
17231
 
         { ac_try='test -z "$ac_c_werror_flag"
17232
 
                         || test ! -s conftest.err'
17233
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17234
 
  (eval $ac_try) 2>&5
17235
 
  ac_status=$?
17236
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17237
 
  (exit $ac_status); }; } &&
17238
 
         { ac_try='test -s conftest$ac_exeext'
17239
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17240
 
  (eval $ac_try) 2>&5
17241
 
  ac_status=$?
17242
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17243
 
  (exit $ac_status); }; }; then
17244
 
  ac_cv_lib_dl_dlopen=yes
17245
 
else
17246
 
  echo "$as_me: failed program was:" >&5
17247
 
sed 's/^/| /' conftest.$ac_ext >&5
17248
 
 
17249
 
ac_cv_lib_dl_dlopen=no
17250
 
fi
17251
 
rm -f conftest.err conftest.$ac_objext \
17252
 
      conftest$ac_exeext conftest.$ac_ext
17253
 
LIBS=$ac_check_lib_save_LIBS
17254
 
fi
17255
 
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17256
 
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17257
 
if test $ac_cv_lib_dl_dlopen = yes; then
17258
 
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17259
 
else
17260
 
 
17261
 
    lt_cv_dlopen="dyld"
17262
 
    lt_cv_dlopen_libs=
17263
 
    lt_cv_dlopen_self=yes
17264
 
 
17265
 
fi
17266
 
 
17267
 
   ;;
17268
 
 
17269
 
  *)
17270
 
    echo "$as_me:$LINENO: checking for shl_load" >&5
17271
 
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17272
 
if test "${ac_cv_func_shl_load+set}" = set; then
17273
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
17274
 
else
17275
 
  cat >conftest.$ac_ext <<_ACEOF
17276
 
/* confdefs.h.  */
17277
 
_ACEOF
17278
 
cat confdefs.h >>conftest.$ac_ext
17279
 
cat >>conftest.$ac_ext <<_ACEOF
17280
 
/* end confdefs.h.  */
17281
 
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17282
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17283
 
#define shl_load innocuous_shl_load
17284
 
 
17285
 
/* System header to define __stub macros and hopefully few prototypes,
17286
 
    which can conflict with char shl_load (); below.
17287
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17288
 
    <limits.h> exists even on freestanding compilers.  */
17289
 
 
17290
 
#ifdef __STDC__
17291
 
# include <limits.h>
17292
 
#else
17293
 
# include <assert.h>
17294
 
#endif
17295
 
 
17296
 
#undef shl_load
17297
 
 
17298
 
/* Override any gcc2 internal prototype to avoid an error.  */
17299
 
#ifdef __cplusplus
17300
 
extern "C"
17301
 
{
17302
 
#endif
17303
 
/* We use char because int might match the return type of a gcc2
17304
 
   builtin and then its argument prototype would still apply.  */
17305
 
char shl_load ();
17306
 
/* The GNU C library defines this for functions which it implements
17307
 
    to always fail with ENOSYS.  Some functions are actually named
17308
 
    something starting with __ and the normal name is an alias.  */
17309
 
#if defined (__stub_shl_load) || defined (__stub___shl_load)
17310
 
choke me
17311
 
#else
17312
 
char (*f) () = shl_load;
17313
 
#endif
17314
 
#ifdef __cplusplus
17315
 
}
17316
 
#endif
17317
 
 
17318
 
int
17319
 
main ()
17320
 
{
17321
 
return f != shl_load;
17322
 
  ;
17323
 
  return 0;
17324
 
}
17325
 
_ACEOF
17326
 
rm -f conftest.$ac_objext conftest$ac_exeext
17327
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17328
 
  (eval $ac_link) 2>conftest.er1
17329
 
  ac_status=$?
17330
 
  grep -v '^ *+' conftest.er1 >conftest.err
17331
 
  rm -f conftest.er1
17332
 
  cat conftest.err >&5
17333
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17334
 
  (exit $ac_status); } &&
17335
 
         { ac_try='test -z "$ac_c_werror_flag"
17336
 
                         || test ! -s conftest.err'
17337
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17338
 
  (eval $ac_try) 2>&5
17339
 
  ac_status=$?
17340
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17341
 
  (exit $ac_status); }; } &&
17342
 
         { ac_try='test -s conftest$ac_exeext'
17343
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17344
 
  (eval $ac_try) 2>&5
17345
 
  ac_status=$?
17346
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17347
 
  (exit $ac_status); }; }; then
17348
 
  ac_cv_func_shl_load=yes
17349
 
else
17350
 
  echo "$as_me: failed program was:" >&5
17351
 
sed 's/^/| /' conftest.$ac_ext >&5
17352
 
 
17353
 
ac_cv_func_shl_load=no
17354
 
fi
17355
 
rm -f conftest.err conftest.$ac_objext \
17356
 
      conftest$ac_exeext conftest.$ac_ext
17357
 
fi
17358
 
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17359
 
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17360
 
if test $ac_cv_func_shl_load = yes; then
17361
 
  lt_cv_dlopen="shl_load"
17362
 
else
17363
 
  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17364
 
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17365
 
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17366
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
17367
 
else
17368
 
  ac_check_lib_save_LIBS=$LIBS
17369
 
LIBS="-ldld  $LIBS"
17370
 
cat >conftest.$ac_ext <<_ACEOF
17371
 
/* confdefs.h.  */
17372
 
_ACEOF
17373
 
cat confdefs.h >>conftest.$ac_ext
17374
 
cat >>conftest.$ac_ext <<_ACEOF
17375
 
/* end confdefs.h.  */
17376
 
 
17377
 
/* Override any gcc2 internal prototype to avoid an error.  */
17378
 
#ifdef __cplusplus
17379
 
extern "C"
17380
 
#endif
17381
 
/* We use char because int might match the return type of a gcc2
17382
 
   builtin and then its argument prototype would still apply.  */
17383
 
char shl_load ();
17384
 
int
17385
 
main ()
17386
 
{
17387
 
shl_load ();
17388
 
  ;
17389
 
  return 0;
17390
 
}
17391
 
_ACEOF
17392
 
rm -f conftest.$ac_objext conftest$ac_exeext
17393
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17394
 
  (eval $ac_link) 2>conftest.er1
17395
 
  ac_status=$?
17396
 
  grep -v '^ *+' conftest.er1 >conftest.err
17397
 
  rm -f conftest.er1
17398
 
  cat conftest.err >&5
17399
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17400
 
  (exit $ac_status); } &&
17401
 
         { ac_try='test -z "$ac_c_werror_flag"
17402
 
                         || test ! -s conftest.err'
17403
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17404
 
  (eval $ac_try) 2>&5
17405
 
  ac_status=$?
17406
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17407
 
  (exit $ac_status); }; } &&
17408
 
         { ac_try='test -s conftest$ac_exeext'
17409
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17410
 
  (eval $ac_try) 2>&5
17411
 
  ac_status=$?
17412
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17413
 
  (exit $ac_status); }; }; then
17414
 
  ac_cv_lib_dld_shl_load=yes
17415
 
else
17416
 
  echo "$as_me: failed program was:" >&5
17417
 
sed 's/^/| /' conftest.$ac_ext >&5
17418
 
 
17419
 
ac_cv_lib_dld_shl_load=no
17420
 
fi
17421
 
rm -f conftest.err conftest.$ac_objext \
17422
 
      conftest$ac_exeext conftest.$ac_ext
17423
 
LIBS=$ac_check_lib_save_LIBS
17424
 
fi
17425
 
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17426
 
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17427
 
if test $ac_cv_lib_dld_shl_load = yes; then
17428
 
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17429
 
else
17430
 
  echo "$as_me:$LINENO: checking for dlopen" >&5
17431
 
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17432
 
if test "${ac_cv_func_dlopen+set}" = set; then
17433
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
17434
 
else
17435
 
  cat >conftest.$ac_ext <<_ACEOF
17436
 
/* confdefs.h.  */
17437
 
_ACEOF
17438
 
cat confdefs.h >>conftest.$ac_ext
17439
 
cat >>conftest.$ac_ext <<_ACEOF
17440
 
/* end confdefs.h.  */
17441
 
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17442
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17443
 
#define dlopen innocuous_dlopen
17444
 
 
17445
 
/* System header to define __stub macros and hopefully few prototypes,
17446
 
    which can conflict with char dlopen (); below.
17447
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17448
 
    <limits.h> exists even on freestanding compilers.  */
17449
 
 
17450
 
#ifdef __STDC__
17451
 
# include <limits.h>
17452
 
#else
17453
 
# include <assert.h>
17454
 
#endif
17455
 
 
17456
 
#undef dlopen
17457
 
 
17458
 
/* Override any gcc2 internal prototype to avoid an error.  */
17459
 
#ifdef __cplusplus
17460
 
extern "C"
17461
 
{
17462
 
#endif
17463
 
/* We use char because int might match the return type of a gcc2
17464
 
   builtin and then its argument prototype would still apply.  */
17465
 
char dlopen ();
17466
 
/* The GNU C library defines this for functions which it implements
17467
 
    to always fail with ENOSYS.  Some functions are actually named
17468
 
    something starting with __ and the normal name is an alias.  */
17469
 
#if defined (__stub_dlopen) || defined (__stub___dlopen)
17470
 
choke me
17471
 
#else
17472
 
char (*f) () = dlopen;
17473
 
#endif
17474
 
#ifdef __cplusplus
17475
 
}
17476
 
#endif
17477
 
 
17478
 
int
17479
 
main ()
17480
 
{
17481
 
return f != dlopen;
17482
 
  ;
17483
 
  return 0;
17484
 
}
17485
 
_ACEOF
17486
 
rm -f conftest.$ac_objext conftest$ac_exeext
17487
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17488
 
  (eval $ac_link) 2>conftest.er1
17489
 
  ac_status=$?
17490
 
  grep -v '^ *+' conftest.er1 >conftest.err
17491
 
  rm -f conftest.er1
17492
 
  cat conftest.err >&5
17493
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17494
 
  (exit $ac_status); } &&
17495
 
         { ac_try='test -z "$ac_c_werror_flag"
17496
 
                         || test ! -s conftest.err'
17497
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17498
 
  (eval $ac_try) 2>&5
17499
 
  ac_status=$?
17500
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17501
 
  (exit $ac_status); }; } &&
17502
 
         { ac_try='test -s conftest$ac_exeext'
17503
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17504
 
  (eval $ac_try) 2>&5
17505
 
  ac_status=$?
17506
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17507
 
  (exit $ac_status); }; }; then
17508
 
  ac_cv_func_dlopen=yes
17509
 
else
17510
 
  echo "$as_me: failed program was:" >&5
17511
 
sed 's/^/| /' conftest.$ac_ext >&5
17512
 
 
17513
 
ac_cv_func_dlopen=no
17514
 
fi
17515
 
rm -f conftest.err conftest.$ac_objext \
17516
 
      conftest$ac_exeext conftest.$ac_ext
17517
 
fi
17518
 
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17519
 
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17520
 
if test $ac_cv_func_dlopen = yes; then
17521
 
  lt_cv_dlopen="dlopen"
17522
 
else
17523
 
  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17524
 
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17525
 
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17526
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
17527
 
else
17528
 
  ac_check_lib_save_LIBS=$LIBS
17529
 
LIBS="-ldl  $LIBS"
17530
 
cat >conftest.$ac_ext <<_ACEOF
17531
 
/* confdefs.h.  */
17532
 
_ACEOF
17533
 
cat confdefs.h >>conftest.$ac_ext
17534
 
cat >>conftest.$ac_ext <<_ACEOF
17535
 
/* end confdefs.h.  */
17536
 
 
17537
 
/* Override any gcc2 internal prototype to avoid an error.  */
17538
 
#ifdef __cplusplus
17539
 
extern "C"
17540
 
#endif
17541
 
/* We use char because int might match the return type of a gcc2
17542
 
   builtin and then its argument prototype would still apply.  */
17543
 
char dlopen ();
17544
 
int
17545
 
main ()
17546
 
{
17547
 
dlopen ();
17548
 
  ;
17549
 
  return 0;
17550
 
}
17551
 
_ACEOF
17552
 
rm -f conftest.$ac_objext conftest$ac_exeext
17553
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17554
 
  (eval $ac_link) 2>conftest.er1
17555
 
  ac_status=$?
17556
 
  grep -v '^ *+' conftest.er1 >conftest.err
17557
 
  rm -f conftest.er1
17558
 
  cat conftest.err >&5
17559
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17560
 
  (exit $ac_status); } &&
17561
 
         { ac_try='test -z "$ac_c_werror_flag"
17562
 
                         || test ! -s conftest.err'
17563
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17564
 
  (eval $ac_try) 2>&5
17565
 
  ac_status=$?
17566
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17567
 
  (exit $ac_status); }; } &&
17568
 
         { ac_try='test -s conftest$ac_exeext'
17569
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17570
 
  (eval $ac_try) 2>&5
17571
 
  ac_status=$?
17572
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17573
 
  (exit $ac_status); }; }; then
17574
 
  ac_cv_lib_dl_dlopen=yes
17575
 
else
17576
 
  echo "$as_me: failed program was:" >&5
17577
 
sed 's/^/| /' conftest.$ac_ext >&5
17578
 
 
17579
 
ac_cv_lib_dl_dlopen=no
17580
 
fi
17581
 
rm -f conftest.err conftest.$ac_objext \
17582
 
      conftest$ac_exeext conftest.$ac_ext
17583
 
LIBS=$ac_check_lib_save_LIBS
17584
 
fi
17585
 
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17586
 
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17587
 
if test $ac_cv_lib_dl_dlopen = yes; then
17588
 
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17589
 
else
17590
 
  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17591
 
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17592
 
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17593
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
17594
 
else
17595
 
  ac_check_lib_save_LIBS=$LIBS
17596
 
LIBS="-lsvld  $LIBS"
17597
 
cat >conftest.$ac_ext <<_ACEOF
17598
 
/* confdefs.h.  */
17599
 
_ACEOF
17600
 
cat confdefs.h >>conftest.$ac_ext
17601
 
cat >>conftest.$ac_ext <<_ACEOF
17602
 
/* end confdefs.h.  */
17603
 
 
17604
 
/* Override any gcc2 internal prototype to avoid an error.  */
17605
 
#ifdef __cplusplus
17606
 
extern "C"
17607
 
#endif
17608
 
/* We use char because int might match the return type of a gcc2
17609
 
   builtin and then its argument prototype would still apply.  */
17610
 
char dlopen ();
17611
 
int
17612
 
main ()
17613
 
{
17614
 
dlopen ();
17615
 
  ;
17616
 
  return 0;
17617
 
}
17618
 
_ACEOF
17619
 
rm -f conftest.$ac_objext conftest$ac_exeext
17620
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17621
 
  (eval $ac_link) 2>conftest.er1
17622
 
  ac_status=$?
17623
 
  grep -v '^ *+' conftest.er1 >conftest.err
17624
 
  rm -f conftest.er1
17625
 
  cat conftest.err >&5
17626
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17627
 
  (exit $ac_status); } &&
17628
 
         { ac_try='test -z "$ac_c_werror_flag"
17629
 
                         || test ! -s conftest.err'
17630
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17631
 
  (eval $ac_try) 2>&5
17632
 
  ac_status=$?
17633
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17634
 
  (exit $ac_status); }; } &&
17635
 
         { ac_try='test -s conftest$ac_exeext'
17636
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17637
 
  (eval $ac_try) 2>&5
17638
 
  ac_status=$?
17639
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17640
 
  (exit $ac_status); }; }; then
17641
 
  ac_cv_lib_svld_dlopen=yes
17642
 
else
17643
 
  echo "$as_me: failed program was:" >&5
17644
 
sed 's/^/| /' conftest.$ac_ext >&5
17645
 
 
17646
 
ac_cv_lib_svld_dlopen=no
17647
 
fi
17648
 
rm -f conftest.err conftest.$ac_objext \
17649
 
      conftest$ac_exeext conftest.$ac_ext
17650
 
LIBS=$ac_check_lib_save_LIBS
17651
 
fi
17652
 
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17653
 
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
17654
 
if test $ac_cv_lib_svld_dlopen = yes; then
17655
 
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17656
 
else
17657
 
  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17658
 
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
17659
 
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17660
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
17661
 
else
17662
 
  ac_check_lib_save_LIBS=$LIBS
17663
 
LIBS="-ldld  $LIBS"
17664
 
cat >conftest.$ac_ext <<_ACEOF
17665
 
/* confdefs.h.  */
17666
 
_ACEOF
17667
 
cat confdefs.h >>conftest.$ac_ext
17668
 
cat >>conftest.$ac_ext <<_ACEOF
17669
 
/* end confdefs.h.  */
17670
 
 
17671
 
/* Override any gcc2 internal prototype to avoid an error.  */
17672
 
#ifdef __cplusplus
17673
 
extern "C"
17674
 
#endif
17675
 
/* We use char because int might match the return type of a gcc2
17676
 
   builtin and then its argument prototype would still apply.  */
17677
 
char dld_link ();
17678
 
int
17679
 
main ()
17680
 
{
17681
 
dld_link ();
17682
 
  ;
17683
 
  return 0;
17684
 
}
17685
 
_ACEOF
17686
 
rm -f conftest.$ac_objext conftest$ac_exeext
17687
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17688
 
  (eval $ac_link) 2>conftest.er1
17689
 
  ac_status=$?
17690
 
  grep -v '^ *+' conftest.er1 >conftest.err
17691
 
  rm -f conftest.er1
17692
 
  cat conftest.err >&5
17693
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17694
 
  (exit $ac_status); } &&
17695
 
         { ac_try='test -z "$ac_c_werror_flag"
17696
 
                         || test ! -s conftest.err'
17697
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17698
 
  (eval $ac_try) 2>&5
17699
 
  ac_status=$?
17700
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17701
 
  (exit $ac_status); }; } &&
17702
 
         { ac_try='test -s conftest$ac_exeext'
17703
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17704
 
  (eval $ac_try) 2>&5
17705
 
  ac_status=$?
17706
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17707
 
  (exit $ac_status); }; }; then
17708
 
  ac_cv_lib_dld_dld_link=yes
17709
 
else
17710
 
  echo "$as_me: failed program was:" >&5
17711
 
sed 's/^/| /' conftest.$ac_ext >&5
17712
 
 
17713
 
ac_cv_lib_dld_dld_link=no
17714
 
fi
17715
 
rm -f conftest.err conftest.$ac_objext \
17716
 
      conftest$ac_exeext conftest.$ac_ext
17717
 
LIBS=$ac_check_lib_save_LIBS
17718
 
fi
17719
 
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17720
 
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
17721
 
if test $ac_cv_lib_dld_dld_link = yes; then
17722
 
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17723
 
fi
17724
 
 
17725
 
 
17726
 
fi
17727
 
 
17728
 
 
17729
 
fi
17730
 
 
17731
 
 
17732
 
fi
17733
 
 
17734
 
 
17735
 
fi
17736
 
 
17737
 
 
17738
 
fi
17739
 
 
17740
 
    ;;
17741
 
  esac
17742
 
 
17743
 
  if test "x$lt_cv_dlopen" != xno; then
17744
 
    enable_dlopen=yes
17745
 
  else
17746
 
    enable_dlopen=no
17747
 
  fi
17748
 
 
17749
 
  case $lt_cv_dlopen in
17750
 
  dlopen)
17751
 
    save_CPPFLAGS="$CPPFLAGS"
17752
 
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17753
 
 
17754
 
    save_LDFLAGS="$LDFLAGS"
17755
 
    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17756
 
 
17757
 
    save_LIBS="$LIBS"
17758
 
    LIBS="$lt_cv_dlopen_libs $LIBS"
17759
 
 
17760
 
    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17761
 
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
17762
 
if test "${lt_cv_dlopen_self+set}" = set; then
17763
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
17764
 
else
17765
 
          if test "$cross_compiling" = yes; then :
17766
 
  lt_cv_dlopen_self=cross
17767
 
else
17768
 
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17769
 
  lt_status=$lt_dlunknown
17770
 
  cat > conftest.$ac_ext <<EOF
17771
 
#line 17771 "configure"
17772
 
#include "confdefs.h"
17773
 
 
17774
 
#if HAVE_DLFCN_H
17775
 
#include <dlfcn.h>
17776
 
#endif
17777
 
 
17778
 
#include <stdio.h>
17779
 
 
17780
 
#ifdef RTLD_GLOBAL
17781
 
#  define LT_DLGLOBAL           RTLD_GLOBAL
17782
 
#else
17783
 
#  ifdef DL_GLOBAL
17784
 
#    define LT_DLGLOBAL         DL_GLOBAL
17785
 
#  else
17786
 
#    define LT_DLGLOBAL         0
17787
 
#  endif
17788
 
#endif
17789
 
 
17790
 
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17791
 
   find out it does not work in some platform. */
17792
 
#ifndef LT_DLLAZY_OR_NOW
17793
 
#  ifdef RTLD_LAZY
17794
 
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
17795
 
#  else
17796
 
#    ifdef DL_LAZY
17797
 
#      define LT_DLLAZY_OR_NOW          DL_LAZY
17798
 
#    else
17799
 
#      ifdef RTLD_NOW
17800
 
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
17801
 
#      else
17802
 
#        ifdef DL_NOW
17803
 
#          define LT_DLLAZY_OR_NOW      DL_NOW
17804
 
#        else
17805
 
#          define LT_DLLAZY_OR_NOW      0
17806
 
#        endif
17807
 
#      endif
17808
 
#    endif
17809
 
#  endif
17810
 
#endif
17811
 
 
17812
 
#ifdef __cplusplus
17813
 
extern "C" void exit (int);
17814
 
#endif
17815
 
 
17816
 
void fnord() { int i=42;}
17817
 
int main ()
17818
 
{
17819
 
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17820
 
  int status = $lt_dlunknown;
17821
 
 
17822
 
  if (self)
17823
 
    {
17824
 
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17825
 
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17826
 
      /* dlclose (self); */
17827
 
    }
17828
 
 
17829
 
    exit (status);
17830
 
}
17831
 
EOF
17832
 
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17833
 
  (eval $ac_link) 2>&5
17834
 
  ac_status=$?
17835
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17836
 
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17837
 
    (./conftest; exit; ) 2>/dev/null
17838
 
    lt_status=$?
17839
 
    case x$lt_status in
17840
 
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17841
 
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17842
 
      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
17843
 
    esac
17844
 
  else :
17845
 
    # compilation failed
17846
 
    lt_cv_dlopen_self=no
17847
 
  fi
17848
 
fi
17849
 
rm -fr conftest*
17850
 
 
17851
 
 
17852
 
fi
17853
 
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17854
 
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
17855
 
 
17856
 
    if test "x$lt_cv_dlopen_self" = xyes; then
17857
 
      LDFLAGS="$LDFLAGS $link_static_flag"
17858
 
      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17859
 
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
17860
 
if test "${lt_cv_dlopen_self_static+set}" = set; then
17861
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
17862
 
else
17863
 
          if test "$cross_compiling" = yes; then :
17864
 
  lt_cv_dlopen_self_static=cross
17865
 
else
17866
 
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17867
 
  lt_status=$lt_dlunknown
17868
 
  cat > conftest.$ac_ext <<EOF
17869
 
#line 17869 "configure"
17870
 
#include "confdefs.h"
17871
 
 
17872
 
#if HAVE_DLFCN_H
17873
 
#include <dlfcn.h>
17874
 
#endif
17875
 
 
17876
 
#include <stdio.h>
17877
 
 
17878
 
#ifdef RTLD_GLOBAL
17879
 
#  define LT_DLGLOBAL           RTLD_GLOBAL
17880
 
#else
17881
 
#  ifdef DL_GLOBAL
17882
 
#    define LT_DLGLOBAL         DL_GLOBAL
17883
 
#  else
17884
 
#    define LT_DLGLOBAL         0
17885
 
#  endif
17886
 
#endif
17887
 
 
17888
 
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17889
 
   find out it does not work in some platform. */
17890
 
#ifndef LT_DLLAZY_OR_NOW
17891
 
#  ifdef RTLD_LAZY
17892
 
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
17893
 
#  else
17894
 
#    ifdef DL_LAZY
17895
 
#      define LT_DLLAZY_OR_NOW          DL_LAZY
17896
 
#    else
17897
 
#      ifdef RTLD_NOW
17898
 
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
17899
 
#      else
17900
 
#        ifdef DL_NOW
17901
 
#          define LT_DLLAZY_OR_NOW      DL_NOW
17902
 
#        else
17903
 
#          define LT_DLLAZY_OR_NOW      0
17904
 
#        endif
17905
 
#      endif
17906
 
#    endif
17907
 
#  endif
17908
 
#endif
17909
 
 
17910
 
#ifdef __cplusplus
17911
 
extern "C" void exit (int);
17912
 
#endif
17913
 
 
17914
 
void fnord() { int i=42;}
17915
 
int main ()
17916
 
{
17917
 
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17918
 
  int status = $lt_dlunknown;
17919
 
 
17920
 
  if (self)
17921
 
    {
17922
 
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17923
 
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17924
 
      /* dlclose (self); */
17925
 
    }
17926
 
 
17927
 
    exit (status);
17928
 
}
17929
 
EOF
17930
 
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17931
 
  (eval $ac_link) 2>&5
17932
 
  ac_status=$?
17933
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17934
 
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17935
 
    (./conftest; exit; ) 2>/dev/null
17936
 
    lt_status=$?
17937
 
    case x$lt_status in
17938
 
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17939
 
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17940
 
      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
17941
 
    esac
17942
 
  else :
17943
 
    # compilation failed
17944
 
    lt_cv_dlopen_self_static=no
17945
 
  fi
17946
 
fi
17947
 
rm -fr conftest*
17948
 
 
17949
 
 
17950
 
fi
17951
 
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17952
 
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
17953
 
    fi
17954
 
 
17955
 
    CPPFLAGS="$save_CPPFLAGS"
17956
 
    LDFLAGS="$save_LDFLAGS"
17957
 
    LIBS="$save_LIBS"
17958
 
    ;;
17959
 
  esac
17960
 
 
17961
 
  case $lt_cv_dlopen_self in
17962
 
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17963
 
  *) enable_dlopen_self=unknown ;;
17964
 
  esac
17965
 
 
17966
 
  case $lt_cv_dlopen_self_static in
17967
 
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17968
 
  *) enable_dlopen_self_static=unknown ;;
17969
 
  esac
17970
 
fi
17971
 
 
17972
 
 
17973
 
# The else clause should only fire when bootstrapping the
17974
 
# libtool distribution, otherwise you forgot to ship ltmain.sh
17975
 
# with your package, and you will get complaints that there are
17976
 
# no rules to generate ltmain.sh.
17977
 
if test -f "$ltmain"; then
17978
 
  # See if we are running on zsh, and set the options which allow our commands through
17979
 
  # without removal of \ escapes.
17980
 
  if test -n "${ZSH_VERSION+set}" ; then
17981
 
    setopt NO_GLOB_SUBST
17982
 
  fi
17983
 
  # Now quote all the things that may contain metacharacters while being
17984
 
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
17985
 
  # variables and quote the copies for generation of the libtool script.
17986
 
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
17987
 
    SED SHELL STRIP \
17988
 
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17989
 
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17990
 
    deplibs_check_method reload_flag reload_cmds need_locks \
17991
 
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17992
 
    lt_cv_sys_global_symbol_to_c_name_address \
17993
 
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17994
 
    old_postinstall_cmds old_postuninstall_cmds \
17995
 
    compiler_GCJ \
17996
 
    CC_GCJ \
17997
 
    LD_GCJ \
17998
 
    lt_prog_compiler_wl_GCJ \
17999
 
    lt_prog_compiler_pic_GCJ \
18000
 
    lt_prog_compiler_static_GCJ \
18001
 
    lt_prog_compiler_no_builtin_flag_GCJ \
18002
 
    export_dynamic_flag_spec_GCJ \
18003
 
    thread_safe_flag_spec_GCJ \
18004
 
    whole_archive_flag_spec_GCJ \
18005
 
    enable_shared_with_static_runtimes_GCJ \
18006
 
    old_archive_cmds_GCJ \
18007
 
    old_archive_from_new_cmds_GCJ \
18008
 
    predep_objects_GCJ \
18009
 
    postdep_objects_GCJ \
18010
 
    predeps_GCJ \
18011
 
    postdeps_GCJ \
18012
 
    compiler_lib_search_path_GCJ \
18013
 
    archive_cmds_GCJ \
18014
 
    archive_expsym_cmds_GCJ \
18015
 
    postinstall_cmds_GCJ \
18016
 
    postuninstall_cmds_GCJ \
18017
 
    old_archive_from_expsyms_cmds_GCJ \
18018
 
    allow_undefined_flag_GCJ \
18019
 
    no_undefined_flag_GCJ \
18020
 
    export_symbols_cmds_GCJ \
18021
 
    hardcode_libdir_flag_spec_GCJ \
18022
 
    hardcode_libdir_flag_spec_ld_GCJ \
18023
 
    hardcode_libdir_separator_GCJ \
18024
 
    hardcode_automatic_GCJ \
18025
 
    module_cmds_GCJ \
18026
 
    module_expsym_cmds_GCJ \
18027
 
    lt_cv_prog_compiler_c_o_GCJ \
18028
 
    exclude_expsyms_GCJ \
18029
 
    include_expsyms_GCJ; do
18030
 
 
18031
 
    case $var in
18032
 
    old_archive_cmds_GCJ | \
18033
 
    old_archive_from_new_cmds_GCJ | \
18034
 
    archive_cmds_GCJ | \
18035
 
    archive_expsym_cmds_GCJ | \
18036
 
    module_cmds_GCJ | \
18037
 
    module_expsym_cmds_GCJ | \
18038
 
    old_archive_from_expsyms_cmds_GCJ | \
18039
 
    export_symbols_cmds_GCJ | \
18040
 
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
18041
 
    postinstall_cmds | postuninstall_cmds | \
18042
 
    old_postinstall_cmds | old_postuninstall_cmds | \
18043
 
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18044
 
      # Double-quote double-evaled strings.
18045
 
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18046
 
      ;;
18047
 
    *)
18048
 
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18049
 
      ;;
18050
 
    esac
18051
 
  done
18052
 
 
18053
 
  case $lt_echo in
18054
 
  *'\$0 --fallback-echo"')
18055
 
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18056
 
    ;;
18057
 
  esac
18058
 
 
18059
 
cfgfile="$ofile"
18060
 
 
18061
 
  cat <<__EOF__ >> "$cfgfile"
18062
 
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18063
 
 
18064
 
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18065
 
 
18066
 
# Shell to use when invoking shell scripts.
18067
 
SHELL=$lt_SHELL
18068
 
 
18069
 
# Whether or not to build shared libraries.
18070
 
build_libtool_libs=$enable_shared
18071
 
 
18072
 
# Whether or not to build static libraries.
18073
 
build_old_libs=$enable_static
18074
 
 
18075
 
# Whether or not to add -lc for building shared libraries.
18076
 
build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18077
 
 
18078
 
# Whether or not to disallow shared libs when runtime libs are static
18079
 
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18080
 
 
18081
 
# Whether or not to optimize for fast installation.
18082
 
fast_install=$enable_fast_install
18083
 
 
18084
 
# The host system.
18085
 
host_alias=$host_alias
18086
 
host=$host
18087
 
host_os=$host_os
18088
 
 
18089
 
# The build system.
18090
 
build_alias=$build_alias
18091
 
build=$build
18092
 
build_os=$build_os
18093
 
 
18094
 
# An echo program that does not interpret backslashes.
18095
 
echo=$lt_echo
18096
 
 
18097
 
# The archiver.
18098
 
AR=$lt_AR
18099
 
AR_FLAGS=$lt_AR_FLAGS
18100
 
 
18101
 
# A C compiler.
18102
 
LTCC=$lt_LTCC
18103
 
 
18104
 
# A language-specific compiler.
18105
 
CC=$lt_compiler_GCJ
18106
 
 
18107
 
# Is the compiler the GNU C compiler?
18108
 
with_gcc=$GCC_GCJ
18109
 
 
18110
 
# An ERE matcher.
18111
 
EGREP=$lt_EGREP
18112
 
 
18113
 
# The linker used to build libraries.
18114
 
LD=$lt_LD_GCJ
18115
 
 
18116
 
# Whether we need hard or soft links.
18117
 
LN_S=$lt_LN_S
18118
 
 
18119
 
# A BSD-compatible nm program.
18120
 
NM=$lt_NM
18121
 
 
18122
 
# A symbol stripping program
18123
 
STRIP=$lt_STRIP
18124
 
 
18125
 
# Used to examine libraries when file_magic_cmd begins "file"
18126
 
MAGIC_CMD=$MAGIC_CMD
18127
 
 
18128
 
# Used on cygwin: DLL creation program.
18129
 
DLLTOOL="$DLLTOOL"
18130
 
 
18131
 
# Used on cygwin: object dumper.
18132
 
OBJDUMP="$OBJDUMP"
18133
 
 
18134
 
# Used on cygwin: assembler.
18135
 
AS="$AS"
18136
 
 
18137
 
# The name of the directory that contains temporary libtool files.
18138
 
objdir=$objdir
18139
 
 
18140
 
# How to create reloadable object files.
18141
 
reload_flag=$lt_reload_flag
18142
 
reload_cmds=$lt_reload_cmds
18143
 
 
18144
 
# How to pass a linker flag through the compiler.
18145
 
wl=$lt_lt_prog_compiler_wl_GCJ
18146
 
 
18147
 
# Object file suffix (normally "o").
18148
 
objext="$ac_objext"
18149
 
 
18150
 
# Old archive suffix (normally "a").
18151
 
libext="$libext"
18152
 
 
18153
 
# Shared library suffix (normally ".so").
18154
 
shrext_cmds='$shrext_cmds'
18155
 
 
18156
 
# Executable file suffix (normally "").
18157
 
exeext="$exeext"
18158
 
 
18159
 
# Additional compiler flags for building library objects.
18160
 
pic_flag=$lt_lt_prog_compiler_pic_GCJ
18161
 
pic_mode=$pic_mode
18162
 
 
18163
 
# What is the maximum length of a command?
18164
 
max_cmd_len=$lt_cv_sys_max_cmd_len
18165
 
 
18166
 
# Does compiler simultaneously support -c and -o options?
18167
 
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18168
 
 
18169
 
# Must we lock files when doing compilation ?
18170
 
need_locks=$lt_need_locks
18171
 
 
18172
 
# Do we need the lib prefix for modules?
18173
 
need_lib_prefix=$need_lib_prefix
18174
 
 
18175
 
# Do we need a version for libraries?
18176
 
need_version=$need_version
18177
 
 
18178
 
# Whether dlopen is supported.
18179
 
dlopen_support=$enable_dlopen
18180
 
 
18181
 
# Whether dlopen of programs is supported.
18182
 
dlopen_self=$enable_dlopen_self
18183
 
 
18184
 
# Whether dlopen of statically linked programs is supported.
18185
 
dlopen_self_static=$enable_dlopen_self_static
18186
 
 
18187
 
# Compiler flag to prevent dynamic linking.
18188
 
link_static_flag=$lt_lt_prog_compiler_static_GCJ
18189
 
 
18190
 
# Compiler flag to turn off builtin functions.
18191
 
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18192
 
 
18193
 
# Compiler flag to allow reflexive dlopens.
18194
 
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18195
 
 
18196
 
# Compiler flag to generate shared objects directly from archives.
18197
 
whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18198
 
 
18199
 
# Compiler flag to generate thread-safe objects.
18200
 
thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18201
 
 
18202
 
# Library versioning type.
18203
 
version_type=$version_type
18204
 
 
18205
 
# Format of library name prefix.
18206
 
libname_spec=$lt_libname_spec
18207
 
 
18208
 
# List of archive names.  First name is the real one, the rest are links.
18209
 
# The last name is the one that the linker finds with -lNAME.
18210
 
library_names_spec=$lt_library_names_spec
18211
 
 
18212
 
# The coded name of the library, if different from the real name.
18213
 
soname_spec=$lt_soname_spec
18214
 
 
18215
 
# Commands used to build and install an old-style archive.
18216
 
RANLIB=$lt_RANLIB
18217
 
old_archive_cmds=$lt_old_archive_cmds_GCJ
18218
 
old_postinstall_cmds=$lt_old_postinstall_cmds
18219
 
old_postuninstall_cmds=$lt_old_postuninstall_cmds
18220
 
 
18221
 
# Create an old-style archive from a shared archive.
18222
 
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18223
 
 
18224
 
# Create a temporary old-style archive to link instead of a shared archive.
18225
 
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18226
 
 
18227
 
# Commands used to build and install a shared archive.
18228
 
archive_cmds=$lt_archive_cmds_GCJ
18229
 
archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18230
 
postinstall_cmds=$lt_postinstall_cmds
18231
 
postuninstall_cmds=$lt_postuninstall_cmds
18232
 
 
18233
 
# Commands used to build a loadable module (assumed same as above if empty)
18234
 
module_cmds=$lt_module_cmds_GCJ
18235
 
module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18236
 
 
18237
 
# Commands to strip libraries.
18238
 
old_striplib=$lt_old_striplib
18239
 
striplib=$lt_striplib
18240
 
 
18241
 
# Dependencies to place before the objects being linked to create a
18242
 
# shared library.
18243
 
predep_objects=$lt_predep_objects_GCJ
18244
 
 
18245
 
# Dependencies to place after the objects being linked to create a
18246
 
# shared library.
18247
 
postdep_objects=$lt_postdep_objects_GCJ
18248
 
 
18249
 
# Dependencies to place before the objects being linked to create a
18250
 
# shared library.
18251
 
predeps=$lt_predeps_GCJ
18252
 
 
18253
 
# Dependencies to place after the objects being linked to create a
18254
 
# shared library.
18255
 
postdeps=$lt_postdeps_GCJ
18256
 
 
18257
 
# The library search path used internally by the compiler when linking
18258
 
# a shared library.
18259
 
compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18260
 
 
18261
 
# Method to check whether dependent libraries are shared objects.
18262
 
deplibs_check_method=$lt_deplibs_check_method
18263
 
 
18264
 
# Command to use when deplibs_check_method == file_magic.
18265
 
file_magic_cmd=$lt_file_magic_cmd
18266
 
 
18267
 
# Flag that allows shared libraries with undefined symbols to be built.
18268
 
allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18269
 
 
18270
 
# Flag that forces no undefined symbols.
18271
 
no_undefined_flag=$lt_no_undefined_flag_GCJ
18272
 
 
18273
 
# Commands used to finish a libtool library installation in a directory.
18274
 
finish_cmds=$lt_finish_cmds
18275
 
 
18276
 
# Same as above, but a single script fragment to be evaled but not shown.
18277
 
finish_eval=$lt_finish_eval
18278
 
 
18279
 
# Take the output of nm and produce a listing of raw symbols and C names.
18280
 
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18281
 
 
18282
 
# Transform the output of nm in a proper C declaration
18283
 
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18284
 
 
18285
 
# Transform the output of nm in a C name address pair
18286
 
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18287
 
 
18288
 
# This is the shared library runtime path variable.
18289
 
runpath_var=$runpath_var
18290
 
 
18291
 
# This is the shared library path variable.
18292
 
shlibpath_var=$shlibpath_var
18293
 
 
18294
 
# Is shlibpath searched before the hard-coded library search path?
18295
 
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18296
 
 
18297
 
# How to hardcode a shared library path into an executable.
18298
 
hardcode_action=$hardcode_action_GCJ
18299
 
 
18300
 
# Whether we should hardcode library paths into libraries.
18301
 
hardcode_into_libs=$hardcode_into_libs
18302
 
 
18303
 
# Flag to hardcode \$libdir into a binary during linking.
18304
 
# This must work even if \$libdir does not exist.
18305
 
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18306
 
 
18307
 
# If ld is used when linking, flag to hardcode \$libdir into
18308
 
# a binary during linking. This must work even if \$libdir does
18309
 
# not exist.
18310
 
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18311
 
 
18312
 
# Whether we need a single -rpath flag with a separated argument.
18313
 
hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18314
 
 
18315
 
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18316
 
# resulting binary.
18317
 
hardcode_direct=$hardcode_direct_GCJ
18318
 
 
18319
 
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18320
 
# resulting binary.
18321
 
hardcode_minus_L=$hardcode_minus_L_GCJ
18322
 
 
18323
 
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18324
 
# the resulting binary.
18325
 
hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18326
 
 
18327
 
# Set to yes if building a shared library automatically hardcodes DIR into the library
18328
 
# and all subsequent libraries and executables linked against it.
18329
 
hardcode_automatic=$hardcode_automatic_GCJ
18330
 
 
18331
 
# Variables whose values should be saved in libtool wrapper scripts and
18332
 
# restored at relink time.
18333
 
variables_saved_for_relink="$variables_saved_for_relink"
18334
 
 
18335
 
# Whether libtool must link a program against all its dependency libraries.
18336
 
link_all_deplibs=$link_all_deplibs_GCJ
18337
 
 
18338
 
# Compile-time system search path for libraries
18339
 
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18340
 
 
18341
 
# Run-time system search path for libraries
18342
 
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18343
 
 
18344
 
# Fix the shell variable \$srcfile for the compiler.
18345
 
fix_srcfile_path="$fix_srcfile_path_GCJ"
18346
 
 
18347
 
# Set to yes if exported symbols are required.
18348
 
always_export_symbols=$always_export_symbols_GCJ
18349
 
 
18350
 
# The commands to list exported symbols.
18351
 
export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18352
 
 
18353
 
# The commands to extract the exported symbol list from a shared archive.
18354
 
extract_expsyms_cmds=$lt_extract_expsyms_cmds
18355
 
 
18356
 
# Symbols that should not be listed in the preloaded symbols.
18357
 
exclude_expsyms=$lt_exclude_expsyms_GCJ
18358
 
 
18359
 
# Symbols that must always be exported.
18360
 
include_expsyms=$lt_include_expsyms_GCJ
18361
 
 
18362
 
# ### END LIBTOOL TAG CONFIG: $tagname
18363
 
 
18364
 
__EOF__
18365
 
 
18366
 
 
18367
 
else
18368
 
  # If there is no Makefile yet, we rely on a make rule to execute
18369
 
  # `config.status --recheck' to rerun these tests and create the
18370
 
  # libtool script then.
18371
 
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18372
 
  if test -f "$ltmain_in"; then
18373
 
    test -f Makefile && make "$ltmain"
18374
 
  fi
18375
 
fi
18376
 
 
18377
 
 
18378
 
ac_ext=c
18379
 
ac_cpp='$CPP $CPPFLAGS'
18380
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18381
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18382
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
18383
 
 
18384
 
CC="$lt_save_CC"
18385
 
 
18386
 
        else
18387
 
          tagname=""
18388
 
        fi
18389
 
        ;;
18390
 
 
18391
 
      RC)
18392
 
 
18393
 
 
18394
 
 
18395
 
# Source file extension for RC test sources.
18396
 
ac_ext=rc
18397
 
 
18398
 
# Object file extension for compiled RC test sources.
18399
 
objext=o
18400
 
objext_RC=$objext
18401
 
 
18402
 
# Code to be used in simple compile tests
18403
 
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18404
 
 
18405
 
# Code to be used in simple link tests
18406
 
lt_simple_link_test_code="$lt_simple_compile_test_code"
18407
 
 
18408
 
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
18409
 
 
18410
 
# If no C compiler was specified, use CC.
18411
 
LTCC=${LTCC-"$CC"}
18412
 
 
18413
 
# Allow CC to be a program name with arguments.
18414
 
compiler=$CC
18415
 
 
18416
 
 
18417
 
# Allow CC to be a program name with arguments.
18418
 
lt_save_CC="$CC"
18419
 
CC=${RC-"windres"}
18420
 
compiler=$CC
18421
 
compiler_RC=$CC
18422
 
lt_cv_prog_compiler_c_o_RC=yes
18423
 
 
18424
 
# The else clause should only fire when bootstrapping the
18425
 
# libtool distribution, otherwise you forgot to ship ltmain.sh
18426
 
# with your package, and you will get complaints that there are
18427
 
# no rules to generate ltmain.sh.
18428
 
if test -f "$ltmain"; then
18429
 
  # See if we are running on zsh, and set the options which allow our commands through
18430
 
  # without removal of \ escapes.
18431
 
  if test -n "${ZSH_VERSION+set}" ; then
18432
 
    setopt NO_GLOB_SUBST
18433
 
  fi
18434
 
  # Now quote all the things that may contain metacharacters while being
18435
 
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
18436
 
  # variables and quote the copies for generation of the libtool script.
18437
 
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18438
 
    SED SHELL STRIP \
18439
 
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18440
 
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18441
 
    deplibs_check_method reload_flag reload_cmds need_locks \
18442
 
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18443
 
    lt_cv_sys_global_symbol_to_c_name_address \
18444
 
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18445
 
    old_postinstall_cmds old_postuninstall_cmds \
18446
 
    compiler_RC \
18447
 
    CC_RC \
18448
 
    LD_RC \
18449
 
    lt_prog_compiler_wl_RC \
18450
 
    lt_prog_compiler_pic_RC \
18451
 
    lt_prog_compiler_static_RC \
18452
 
    lt_prog_compiler_no_builtin_flag_RC \
18453
 
    export_dynamic_flag_spec_RC \
18454
 
    thread_safe_flag_spec_RC \
18455
 
    whole_archive_flag_spec_RC \
18456
 
    enable_shared_with_static_runtimes_RC \
18457
 
    old_archive_cmds_RC \
18458
 
    old_archive_from_new_cmds_RC \
18459
 
    predep_objects_RC \
18460
 
    postdep_objects_RC \
18461
 
    predeps_RC \
18462
 
    postdeps_RC \
18463
 
    compiler_lib_search_path_RC \
18464
 
    archive_cmds_RC \
18465
 
    archive_expsym_cmds_RC \
18466
 
    postinstall_cmds_RC \
18467
 
    postuninstall_cmds_RC \
18468
 
    old_archive_from_expsyms_cmds_RC \
18469
 
    allow_undefined_flag_RC \
18470
 
    no_undefined_flag_RC \
18471
 
    export_symbols_cmds_RC \
18472
 
    hardcode_libdir_flag_spec_RC \
18473
 
    hardcode_libdir_flag_spec_ld_RC \
18474
 
    hardcode_libdir_separator_RC \
18475
 
    hardcode_automatic_RC \
18476
 
    module_cmds_RC \
18477
 
    module_expsym_cmds_RC \
18478
 
    lt_cv_prog_compiler_c_o_RC \
18479
 
    exclude_expsyms_RC \
18480
 
    include_expsyms_RC; do
18481
 
 
18482
 
    case $var in
18483
 
    old_archive_cmds_RC | \
18484
 
    old_archive_from_new_cmds_RC | \
18485
 
    archive_cmds_RC | \
18486
 
    archive_expsym_cmds_RC | \
18487
 
    module_cmds_RC | \
18488
 
    module_expsym_cmds_RC | \
18489
 
    old_archive_from_expsyms_cmds_RC | \
18490
 
    export_symbols_cmds_RC | \
18491
 
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
18492
 
    postinstall_cmds | postuninstall_cmds | \
18493
 
    old_postinstall_cmds | old_postuninstall_cmds | \
18494
 
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18495
 
      # Double-quote double-evaled strings.
18496
 
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18497
 
      ;;
18498
 
    *)
18499
 
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18500
 
      ;;
18501
 
    esac
18502
 
  done
18503
 
 
18504
 
  case $lt_echo in
18505
 
  *'\$0 --fallback-echo"')
18506
 
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18507
 
    ;;
18508
 
  esac
18509
 
 
18510
 
cfgfile="$ofile"
18511
 
 
18512
 
  cat <<__EOF__ >> "$cfgfile"
18513
 
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18514
 
 
18515
 
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18516
 
 
18517
 
# Shell to use when invoking shell scripts.
18518
 
SHELL=$lt_SHELL
18519
 
 
18520
 
# Whether or not to build shared libraries.
18521
 
build_libtool_libs=$enable_shared
18522
 
 
18523
 
# Whether or not to build static libraries.
18524
 
build_old_libs=$enable_static
18525
 
 
18526
 
# Whether or not to add -lc for building shared libraries.
18527
 
build_libtool_need_lc=$archive_cmds_need_lc_RC
18528
 
 
18529
 
# Whether or not to disallow shared libs when runtime libs are static
18530
 
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18531
 
 
18532
 
# Whether or not to optimize for fast installation.
18533
 
fast_install=$enable_fast_install
18534
 
 
18535
 
# The host system.
18536
 
host_alias=$host_alias
18537
 
host=$host
18538
 
host_os=$host_os
18539
 
 
18540
 
# The build system.
18541
 
build_alias=$build_alias
18542
 
build=$build
18543
 
build_os=$build_os
18544
 
 
18545
 
# An echo program that does not interpret backslashes.
18546
 
echo=$lt_echo
18547
 
 
18548
 
# The archiver.
18549
 
AR=$lt_AR
18550
 
AR_FLAGS=$lt_AR_FLAGS
18551
 
 
18552
 
# A C compiler.
18553
 
LTCC=$lt_LTCC
18554
 
 
18555
 
# A language-specific compiler.
18556
 
CC=$lt_compiler_RC
18557
 
 
18558
 
# Is the compiler the GNU C compiler?
18559
 
with_gcc=$GCC_RC
18560
 
 
18561
 
# An ERE matcher.
18562
 
EGREP=$lt_EGREP
18563
 
 
18564
 
# The linker used to build libraries.
18565
 
LD=$lt_LD_RC
18566
 
 
18567
 
# Whether we need hard or soft links.
18568
 
LN_S=$lt_LN_S
18569
 
 
18570
 
# A BSD-compatible nm program.
18571
 
NM=$lt_NM
18572
 
 
18573
 
# A symbol stripping program
18574
 
STRIP=$lt_STRIP
18575
 
 
18576
 
# Used to examine libraries when file_magic_cmd begins "file"
18577
 
MAGIC_CMD=$MAGIC_CMD
18578
 
 
18579
 
# Used on cygwin: DLL creation program.
18580
 
DLLTOOL="$DLLTOOL"
18581
 
 
18582
 
# Used on cygwin: object dumper.
18583
 
OBJDUMP="$OBJDUMP"
18584
 
 
18585
 
# Used on cygwin: assembler.
18586
 
AS="$AS"
18587
 
 
18588
 
# The name of the directory that contains temporary libtool files.
18589
 
objdir=$objdir
18590
 
 
18591
 
# How to create reloadable object files.
18592
 
reload_flag=$lt_reload_flag
18593
 
reload_cmds=$lt_reload_cmds
18594
 
 
18595
 
# How to pass a linker flag through the compiler.
18596
 
wl=$lt_lt_prog_compiler_wl_RC
18597
 
 
18598
 
# Object file suffix (normally "o").
18599
 
objext="$ac_objext"
18600
 
 
18601
 
# Old archive suffix (normally "a").
18602
 
libext="$libext"
18603
 
 
18604
 
# Shared library suffix (normally ".so").
18605
 
shrext_cmds='$shrext_cmds'
18606
 
 
18607
 
# Executable file suffix (normally "").
18608
 
exeext="$exeext"
18609
 
 
18610
 
# Additional compiler flags for building library objects.
18611
 
pic_flag=$lt_lt_prog_compiler_pic_RC
18612
 
pic_mode=$pic_mode
18613
 
 
18614
 
# What is the maximum length of a command?
18615
 
max_cmd_len=$lt_cv_sys_max_cmd_len
18616
 
 
18617
 
# Does compiler simultaneously support -c and -o options?
18618
 
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18619
 
 
18620
 
# Must we lock files when doing compilation ?
18621
 
need_locks=$lt_need_locks
18622
 
 
18623
 
# Do we need the lib prefix for modules?
18624
 
need_lib_prefix=$need_lib_prefix
18625
 
 
18626
 
# Do we need a version for libraries?
18627
 
need_version=$need_version
18628
 
 
18629
 
# Whether dlopen is supported.
18630
 
dlopen_support=$enable_dlopen
18631
 
 
18632
 
# Whether dlopen of programs is supported.
18633
 
dlopen_self=$enable_dlopen_self
18634
 
 
18635
 
# Whether dlopen of statically linked programs is supported.
18636
 
dlopen_self_static=$enable_dlopen_self_static
18637
 
 
18638
 
# Compiler flag to prevent dynamic linking.
18639
 
link_static_flag=$lt_lt_prog_compiler_static_RC
18640
 
 
18641
 
# Compiler flag to turn off builtin functions.
18642
 
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18643
 
 
18644
 
# Compiler flag to allow reflexive dlopens.
18645
 
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18646
 
 
18647
 
# Compiler flag to generate shared objects directly from archives.
18648
 
whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18649
 
 
18650
 
# Compiler flag to generate thread-safe objects.
18651
 
thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18652
 
 
18653
 
# Library versioning type.
18654
 
version_type=$version_type
18655
 
 
18656
 
# Format of library name prefix.
18657
 
libname_spec=$lt_libname_spec
18658
 
 
18659
 
# List of archive names.  First name is the real one, the rest are links.
18660
 
# The last name is the one that the linker finds with -lNAME.
18661
 
library_names_spec=$lt_library_names_spec
18662
 
 
18663
 
# The coded name of the library, if different from the real name.
18664
 
soname_spec=$lt_soname_spec
18665
 
 
18666
 
# Commands used to build and install an old-style archive.
18667
 
RANLIB=$lt_RANLIB
18668
 
old_archive_cmds=$lt_old_archive_cmds_RC
18669
 
old_postinstall_cmds=$lt_old_postinstall_cmds
18670
 
old_postuninstall_cmds=$lt_old_postuninstall_cmds
18671
 
 
18672
 
# Create an old-style archive from a shared archive.
18673
 
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18674
 
 
18675
 
# Create a temporary old-style archive to link instead of a shared archive.
18676
 
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18677
 
 
18678
 
# Commands used to build and install a shared archive.
18679
 
archive_cmds=$lt_archive_cmds_RC
18680
 
archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18681
 
postinstall_cmds=$lt_postinstall_cmds
18682
 
postuninstall_cmds=$lt_postuninstall_cmds
18683
 
 
18684
 
# Commands used to build a loadable module (assumed same as above if empty)
18685
 
module_cmds=$lt_module_cmds_RC
18686
 
module_expsym_cmds=$lt_module_expsym_cmds_RC
18687
 
 
18688
 
# Commands to strip libraries.
18689
 
old_striplib=$lt_old_striplib
18690
 
striplib=$lt_striplib
18691
 
 
18692
 
# Dependencies to place before the objects being linked to create a
18693
 
# shared library.
18694
 
predep_objects=$lt_predep_objects_RC
18695
 
 
18696
 
# Dependencies to place after the objects being linked to create a
18697
 
# shared library.
18698
 
postdep_objects=$lt_postdep_objects_RC
18699
 
 
18700
 
# Dependencies to place before the objects being linked to create a
18701
 
# shared library.
18702
 
predeps=$lt_predeps_RC
18703
 
 
18704
 
# Dependencies to place after the objects being linked to create a
18705
 
# shared library.
18706
 
postdeps=$lt_postdeps_RC
18707
 
 
18708
 
# The library search path used internally by the compiler when linking
18709
 
# a shared library.
18710
 
compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18711
 
 
18712
 
# Method to check whether dependent libraries are shared objects.
18713
 
deplibs_check_method=$lt_deplibs_check_method
18714
 
 
18715
 
# Command to use when deplibs_check_method == file_magic.
18716
 
file_magic_cmd=$lt_file_magic_cmd
18717
 
 
18718
 
# Flag that allows shared libraries with undefined symbols to be built.
18719
 
allow_undefined_flag=$lt_allow_undefined_flag_RC
18720
 
 
18721
 
# Flag that forces no undefined symbols.
18722
 
no_undefined_flag=$lt_no_undefined_flag_RC
18723
 
 
18724
 
# Commands used to finish a libtool library installation in a directory.
18725
 
finish_cmds=$lt_finish_cmds
18726
 
 
18727
 
# Same as above, but a single script fragment to be evaled but not shown.
18728
 
finish_eval=$lt_finish_eval
18729
 
 
18730
 
# Take the output of nm and produce a listing of raw symbols and C names.
18731
 
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18732
 
 
18733
 
# Transform the output of nm in a proper C declaration
18734
 
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18735
 
 
18736
 
# Transform the output of nm in a C name address pair
18737
 
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18738
 
 
18739
 
# This is the shared library runtime path variable.
18740
 
runpath_var=$runpath_var
18741
 
 
18742
 
# This is the shared library path variable.
18743
 
shlibpath_var=$shlibpath_var
18744
 
 
18745
 
# Is shlibpath searched before the hard-coded library search path?
18746
 
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18747
 
 
18748
 
# How to hardcode a shared library path into an executable.
18749
 
hardcode_action=$hardcode_action_RC
18750
 
 
18751
 
# Whether we should hardcode library paths into libraries.
18752
 
hardcode_into_libs=$hardcode_into_libs
18753
 
 
18754
 
# Flag to hardcode \$libdir into a binary during linking.
18755
 
# This must work even if \$libdir does not exist.
18756
 
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18757
 
 
18758
 
# If ld is used when linking, flag to hardcode \$libdir into
18759
 
# a binary during linking. This must work even if \$libdir does
18760
 
# not exist.
18761
 
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18762
 
 
18763
 
# Whether we need a single -rpath flag with a separated argument.
18764
 
hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18765
 
 
18766
 
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18767
 
# resulting binary.
18768
 
hardcode_direct=$hardcode_direct_RC
18769
 
 
18770
 
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18771
 
# resulting binary.
18772
 
hardcode_minus_L=$hardcode_minus_L_RC
18773
 
 
18774
 
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18775
 
# the resulting binary.
18776
 
hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18777
 
 
18778
 
# Set to yes if building a shared library automatically hardcodes DIR into the library
18779
 
# and all subsequent libraries and executables linked against it.
18780
 
hardcode_automatic=$hardcode_automatic_RC
18781
 
 
18782
 
# Variables whose values should be saved in libtool wrapper scripts and
18783
 
# restored at relink time.
18784
 
variables_saved_for_relink="$variables_saved_for_relink"
18785
 
 
18786
 
# Whether libtool must link a program against all its dependency libraries.
18787
 
link_all_deplibs=$link_all_deplibs_RC
18788
 
 
18789
 
# Compile-time system search path for libraries
18790
 
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18791
 
 
18792
 
# Run-time system search path for libraries
18793
 
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18794
 
 
18795
 
# Fix the shell variable \$srcfile for the compiler.
18796
 
fix_srcfile_path="$fix_srcfile_path_RC"
18797
 
 
18798
 
# Set to yes if exported symbols are required.
18799
 
always_export_symbols=$always_export_symbols_RC
18800
 
 
18801
 
# The commands to list exported symbols.
18802
 
export_symbols_cmds=$lt_export_symbols_cmds_RC
18803
 
 
18804
 
# The commands to extract the exported symbol list from a shared archive.
18805
 
extract_expsyms_cmds=$lt_extract_expsyms_cmds
18806
 
 
18807
 
# Symbols that should not be listed in the preloaded symbols.
18808
 
exclude_expsyms=$lt_exclude_expsyms_RC
18809
 
 
18810
 
# Symbols that must always be exported.
18811
 
include_expsyms=$lt_include_expsyms_RC
18812
 
 
18813
 
# ### END LIBTOOL TAG CONFIG: $tagname
18814
 
 
18815
 
__EOF__
18816
 
 
18817
 
 
18818
 
else
18819
 
  # If there is no Makefile yet, we rely on a make rule to execute
18820
 
  # `config.status --recheck' to rerun these tests and create the
18821
 
  # libtool script then.
18822
 
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18823
 
  if test -f "$ltmain_in"; then
18824
 
    test -f Makefile && make "$ltmain"
18825
 
  fi
18826
 
fi
18827
 
 
18828
 
 
18829
 
ac_ext=c
18830
 
ac_cpp='$CPP $CPPFLAGS'
18831
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18832
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18833
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
18834
 
 
18835
 
CC="$lt_save_CC"
18836
 
 
18837
 
        ;;
18838
 
 
18839
 
      *)
18840
 
        { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18841
 
echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18842
 
   { (exit 1); exit 1; }; }
18843
 
        ;;
18844
 
      esac
18845
 
 
18846
 
      # Append the new tag name to the list of available tags.
18847
 
      if test -n "$tagname" ; then
18848
 
      available_tags="$available_tags $tagname"
18849
 
    fi
18850
 
    fi
18851
 
  done
18852
 
  IFS="$lt_save_ifs"
18853
 
 
18854
 
  # Now substitute the updated list of available tags.
18855
 
  if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18856
 
    mv "${ofile}T" "$ofile"
18857
 
    chmod +x "$ofile"
18858
 
  else
18859
 
    rm -f "${ofile}T"
18860
 
    { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18861
 
echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18862
 
   { (exit 1); exit 1; }; }
18863
 
  fi
18864
 
fi
18865
 
 
18866
 
 
18867
 
 
18868
 
# This can be used to rebuild libtool when needed
18869
 
LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18870
 
 
18871
 
# Always use our own libtool.
18872
 
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
18873
 
 
18874
 
# Prevent multiple expansion
18875
 
 
18876
 
 
18877
 
 
18878
 
 
18879
 
 
18880
 
 
18881
 
 
18882
 
 
18883
 
 
18884
 
 
18885
 
 
18886
 
 
18887
 
 
18888
 
 
18889
 
 
18890
 
 
18891
 
 
18892
 
 
18893
 
 
18894
 
 
18895
 
 
18896
 
 
18897
2998
case "$host_os" in
18898
2999
  *win32) exeext='.exe';;
18899
3000
  *) exeext='';;
19569
3670
 
19570
3671
fi
19571
3672
 
 
3673
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
 
3674
 
 
3675
 
 
3676
 
 
3677
 
 
3678
 
 
3679
 
 
3680
 
 
3681
 
 
3682
 
 
3683
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
 
3684
                  inttypes.h stdint.h unistd.h
 
3685
do
 
3686
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
3687
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
3688
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
3689
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
3690
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3691
else
 
3692
  cat >conftest.$ac_ext <<_ACEOF
 
3693
/* confdefs.h.  */
 
3694
_ACEOF
 
3695
cat confdefs.h >>conftest.$ac_ext
 
3696
cat >>conftest.$ac_ext <<_ACEOF
 
3697
/* end confdefs.h.  */
 
3698
$ac_includes_default
 
3699
 
 
3700
#include <$ac_header>
 
3701
_ACEOF
 
3702
rm -f conftest.$ac_objext
 
3703
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3704
  (eval $ac_compile) 2>conftest.er1
 
3705
  ac_status=$?
 
3706
  grep -v '^ *+' conftest.er1 >conftest.err
 
3707
  rm -f conftest.er1
 
3708
  cat conftest.err >&5
 
3709
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3710
  (exit $ac_status); } &&
 
3711
         { ac_try='test -z "$ac_c_werror_flag"
 
3712
                         || test ! -s conftest.err'
 
3713
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3714
  (eval $ac_try) 2>&5
 
3715
  ac_status=$?
 
3716
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3717
  (exit $ac_status); }; } &&
 
3718
         { ac_try='test -s conftest.$ac_objext'
 
3719
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3720
  (eval $ac_try) 2>&5
 
3721
  ac_status=$?
 
3722
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3723
  (exit $ac_status); }; }; then
 
3724
  eval "$as_ac_Header=yes"
 
3725
else
 
3726
  echo "$as_me: failed program was:" >&5
 
3727
sed 's/^/| /' conftest.$ac_ext >&5
 
3728
 
 
3729
eval "$as_ac_Header=no"
 
3730
fi
 
3731
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
3732
fi
 
3733
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
3734
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
3735
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
3736
  cat >>confdefs.h <<_ACEOF
 
3737
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
3738
_ACEOF
 
3739
 
 
3740
fi
 
3741
 
 
3742
done
 
3743
 
 
3744
 
19572
3745
 
19573
3746
 
19574
3747
for ac_header in sys/types.h sys/stat.h
24102
8275
 
24103
8276
 
24104
8277
 
24105
 
for ac_func in gettimeofday mktime strptime strerror snprintf vsnprintf
 
8278
 
 
8279
for ac_func in gettimeofday mktime strptime timegm strerror snprintf vsnprintf
24106
8280
do
24107
8281
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24108
8282
echo "$as_me:$LINENO: checking for $ac_func" >&5
24313
8487
 
24314
8488
 
24315
8489
 
24316
 
for ac_func in symlink access isatty
 
8490
 
 
8491
 
 
8492
for ac_func in symlink access isatty strtoll strtoimax
24317
8493
do
24318
8494
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24319
8495
echo "$as_me:$LINENO: checking for $ac_func" >&5
25545
9721
 
25546
9722
 
25547
9723
 
25548
 
 
25549
 
if test x"$with_ssl" = x; then
25550
 
        with_ssl=auto
25551
 
fi
25552
 
 
25553
 
 
25554
 
if test x"$with_ssl" != x"no"; then
25555
 
 
25556
 
  wget_force_ssl=no
25557
 
  if test x"$with_ssl" = x"yes"; then
25558
 
    wget_force_ssl=yes
25559
 
  fi
25560
 
 
25561
 
  if test x"$with_ssl" = x"yes" || test x"$with_ssl" = x"auto"; then
25562
 
                    ssl_all_roots="system-default /usr/local/ssl /usr/local /opt"
25563
 
  else
25564
 
        ssl_all_roots=$with_ssl
25565
 
    wget_force_ssl=yes
25566
 
  fi
25567
 
 
25568
 
  wget_save_CC=$CC
25569
 
  wget_save_LIBS=$LIBS
25570
 
  wget_save_LDFLAGS=$LDFLAGS
25571
 
  wget_save_CPPFLAGS=$CPPFLAGS
25572
 
 
25573
 
      CC="$SHELL ./libtool $CC"
25574
 
 
 
9724
if test x"$with_ssl" != x"no"
 
9725
then
25575
9726
 
25576
9727
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
25577
9728
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
25644
9795
 
25645
9796
  LIBS="-ldl $LIBS"
25646
9797
 
25647
 
fi
 
9798
else
25648
9799
 
25649
9800
 
25650
9801
echo "$as_me:$LINENO: checking for shl_load in -ldl" >&5
25721
9872
fi
25722
9873
 
25723
9874
 
25724
 
  ssl_success=no
25725
 
 
25726
 
    for ssl_root in $ssl_all_roots
25727
 
  do
25728
 
    if test x"$ssl_root" = x"system-default"; then
25729
 
            SSL_INCLUDES=
25730
 
    else
25731
 
            SSL_INCLUDES=-I$ssl_root/include
25732
 
                  LDFLAGS="-L$ssl_root/lib -R$ssl_root/lib $wget_save_LDFLAGS"
25733
 
    fi
25734
 
 
25735
 
    { echo "$as_me:$LINENO: looking for SSL libraries in $ssl_root" >&5
25736
 
echo "$as_me: looking for SSL libraries in $ssl_root" >&6;}
25737
 
 
25738
 
 
25739
 
    ssl_found_includes=no
25740
 
    CPPFLAGS="$SSL_INCLUDES $wget_save_CPPFLAGS"
25741
 
 
25742
 
                echo "$as_me:$LINENO: checking for includes" >&5
25743
 
echo $ECHO_N "checking for includes... $ECHO_C" >&6
 
9875
fi
 
9876
 
 
9877
 
 
9878
 
 
9879
      if test "X$prefix" = "XNONE"; then
 
9880
    acl_final_prefix="$ac_default_prefix"
 
9881
  else
 
9882
    acl_final_prefix="$prefix"
 
9883
  fi
 
9884
  if test "X$exec_prefix" = "XNONE"; then
 
9885
    acl_final_exec_prefix='${prefix}'
 
9886
  else
 
9887
    acl_final_exec_prefix="$exec_prefix"
 
9888
  fi
 
9889
  acl_save_prefix="$prefix"
 
9890
  prefix="$acl_final_prefix"
 
9891
  eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
 
9892
  prefix="$acl_save_prefix"
 
9893
 
 
9894
 
 
9895
# Check whether --with-gnu-ld or --without-gnu-ld was given.
 
9896
if test "${with_gnu_ld+set}" = set; then
 
9897
  withval="$with_gnu_ld"
 
9898
  test "$withval" = no || with_gnu_ld=yes
 
9899
else
 
9900
  with_gnu_ld=no
 
9901
fi;
 
9902
# Prepare PATH_SEPARATOR.
 
9903
# The user is always right.
 
9904
if test "${PATH_SEPARATOR+set}" != set; then
 
9905
  echo "#! /bin/sh" >conf$$.sh
 
9906
  echo  "exit 0"   >>conf$$.sh
 
9907
  chmod +x conf$$.sh
 
9908
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
 
9909
    PATH_SEPARATOR=';'
 
9910
  else
 
9911
    PATH_SEPARATOR=:
 
9912
  fi
 
9913
  rm -f conf$$.sh
 
9914
fi
 
9915
ac_prog=ld
 
9916
if test "$GCC" = yes; then
 
9917
  # Check if gcc -print-prog-name=ld gives a path.
 
9918
  echo "$as_me:$LINENO: checking for ld used by GCC" >&5
 
9919
echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
 
9920
  case $host in
 
9921
  *-*-mingw*)
 
9922
    # gcc leaves a trailing carriage return which upsets mingw
 
9923
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
 
9924
  *)
 
9925
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
 
9926
  esac
 
9927
  case $ac_prog in
 
9928
    # Accept absolute paths.
 
9929
    [\\/]* | [A-Za-z]:[\\/]*)
 
9930
      re_direlt='/[^/][^/]*/\.\./'
 
9931
      # Canonicalize the path of ld
 
9932
      ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
 
9933
      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
 
9934
        ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
 
9935
      done
 
9936
      test -z "$LD" && LD="$ac_prog"
 
9937
      ;;
 
9938
  "")
 
9939
    # If it fails, then pretend we aren't using GCC.
 
9940
    ac_prog=ld
 
9941
    ;;
 
9942
  *)
 
9943
    # If it is relative, then search for the first ld in PATH.
 
9944
    with_gnu_ld=unknown
 
9945
    ;;
 
9946
  esac
 
9947
elif test "$with_gnu_ld" = yes; then
 
9948
  echo "$as_me:$LINENO: checking for GNU ld" >&5
 
9949
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
 
9950
else
 
9951
  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
 
9952
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
 
9953
fi
 
9954
if test "${acl_cv_path_LD+set}" = set; then
 
9955
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9956
else
 
9957
  if test -z "$LD"; then
 
9958
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
 
9959
  for ac_dir in $PATH; do
 
9960
    test -z "$ac_dir" && ac_dir=.
 
9961
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
 
9962
      acl_cv_path_LD="$ac_dir/$ac_prog"
 
9963
      # Check to see if the program is GNU ld.  I'd rather use --version,
 
9964
      # but apparently some GNU ld's only accept -v.
 
9965
      # Break only if it was the GNU/non-GNU ld that we prefer.
 
9966
      case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
 
9967
      *GNU* | *'with BFD'*)
 
9968
        test "$with_gnu_ld" != no && break ;;
 
9969
      *)
 
9970
        test "$with_gnu_ld" != yes && break ;;
 
9971
      esac
 
9972
    fi
 
9973
  done
 
9974
  IFS="$ac_save_ifs"
 
9975
else
 
9976
  acl_cv_path_LD="$LD" # Let the user override the test with a path.
 
9977
fi
 
9978
fi
 
9979
 
 
9980
LD="$acl_cv_path_LD"
 
9981
if test -n "$LD"; then
 
9982
  echo "$as_me:$LINENO: result: $LD" >&5
 
9983
echo "${ECHO_T}$LD" >&6
 
9984
else
 
9985
  echo "$as_me:$LINENO: result: no" >&5
 
9986
echo "${ECHO_T}no" >&6
 
9987
fi
 
9988
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
 
9989
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
 
9990
   { (exit 1); exit 1; }; }
 
9991
echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
 
9992
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
 
9993
if test "${acl_cv_prog_gnu_ld+set}" = set; then
 
9994
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9995
else
 
9996
  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
 
9997
case `$LD -v 2>&1 </dev/null` in
 
9998
*GNU* | *'with BFD'*)
 
9999
  acl_cv_prog_gnu_ld=yes ;;
 
10000
*)
 
10001
  acl_cv_prog_gnu_ld=no ;;
 
10002
esac
 
10003
fi
 
10004
echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
 
10005
echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
 
10006
with_gnu_ld=$acl_cv_prog_gnu_ld
 
10007
 
 
10008
 
 
10009
 
 
10010
 
 
10011
                                                echo "$as_me:$LINENO: checking for shared library run path origin" >&5
 
10012
echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
 
10013
if test "${acl_cv_rpath+set}" = set; then
 
10014
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10015
else
 
10016
 
 
10017
    CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
 
10018
    ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
 
10019
    . ./conftest.sh
 
10020
    rm -f ./conftest.sh
 
10021
    acl_cv_rpath=done
 
10022
 
 
10023
fi
 
10024
echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
 
10025
echo "${ECHO_T}$acl_cv_rpath" >&6
 
10026
  wl="$acl_cv_wl"
 
10027
  libext="$acl_cv_libext"
 
10028
  shlibext="$acl_cv_shlibext"
 
10029
  hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
 
10030
  hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
 
10031
  hardcode_direct="$acl_cv_hardcode_direct"
 
10032
  hardcode_minus_L="$acl_cv_hardcode_minus_L"
 
10033
    # Check whether --enable-rpath or --disable-rpath was given.
 
10034
if test "${enable_rpath+set}" = set; then
 
10035
  enableval="$enable_rpath"
 
10036
  :
 
10037
else
 
10038
  enable_rpath=yes
 
10039
fi;
 
10040
 
 
10041
 
 
10042
 
 
10043
 
 
10044
 
 
10045
 
 
10046
 
 
10047
 
 
10048
 
 
10049
    use_additional=yes
 
10050
 
 
10051
  acl_save_prefix="$prefix"
 
10052
  prefix="$acl_final_prefix"
 
10053
  acl_save_exec_prefix="$exec_prefix"
 
10054
  exec_prefix="$acl_final_exec_prefix"
 
10055
 
 
10056
    eval additional_includedir=\"$includedir\"
 
10057
    eval additional_libdir=\"$libdir\"
 
10058
 
 
10059
  exec_prefix="$acl_save_exec_prefix"
 
10060
  prefix="$acl_save_prefix"
 
10061
 
 
10062
 
 
10063
# Check whether --with-libssl-prefix or --without-libssl-prefix was given.
 
10064
if test "${with_libssl_prefix+set}" = set; then
 
10065
  withval="$with_libssl_prefix"
 
10066
 
 
10067
    if test "X$withval" = "Xno"; then
 
10068
      use_additional=no
 
10069
    else
 
10070
      if test "X$withval" = "X"; then
 
10071
 
 
10072
  acl_save_prefix="$prefix"
 
10073
  prefix="$acl_final_prefix"
 
10074
  acl_save_exec_prefix="$exec_prefix"
 
10075
  exec_prefix="$acl_final_exec_prefix"
 
10076
 
 
10077
          eval additional_includedir=\"$includedir\"
 
10078
          eval additional_libdir=\"$libdir\"
 
10079
 
 
10080
  exec_prefix="$acl_save_exec_prefix"
 
10081
  prefix="$acl_save_prefix"
 
10082
 
 
10083
      else
 
10084
        additional_includedir="$withval/include"
 
10085
        additional_libdir="$withval/lib"
 
10086
      fi
 
10087
    fi
 
10088
 
 
10089
fi;
 
10090
      LIBSSL=
 
10091
  LTLIBSSL=
 
10092
  INCSSL=
 
10093
  rpathdirs=
 
10094
  ltrpathdirs=
 
10095
  names_already_handled=
 
10096
  names_next_round='ssl crypto'
 
10097
  while test -n "$names_next_round"; do
 
10098
    names_this_round="$names_next_round"
 
10099
    names_next_round=
 
10100
    for name in $names_this_round; do
 
10101
      already_handled=
 
10102
      for n in $names_already_handled; do
 
10103
        if test "$n" = "$name"; then
 
10104
          already_handled=yes
 
10105
          break
 
10106
        fi
 
10107
      done
 
10108
      if test -z "$already_handled"; then
 
10109
        names_already_handled="$names_already_handled $name"
 
10110
                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
 
10111
        eval value=\"\$HAVE_LIB$uppername\"
 
10112
        if test -n "$value"; then
 
10113
          if test "$value" = yes; then
 
10114
            eval value=\"\$LIB$uppername\"
 
10115
            test -z "$value" || LIBSSL="${LIBSSL}${LIBSSL:+ }$value"
 
10116
            eval value=\"\$LTLIB$uppername\"
 
10117
            test -z "$value" || LTLIBSSL="${LTLIBSSL}${LTLIBSSL:+ }$value"
 
10118
          else
 
10119
                                    :
 
10120
          fi
 
10121
        else
 
10122
                              found_dir=
 
10123
          found_la=
 
10124
          found_so=
 
10125
          found_a=
 
10126
          if test $use_additional = yes; then
 
10127
            if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
 
10128
              found_dir="$additional_libdir"
 
10129
              found_so="$additional_libdir/lib$name.$shlibext"
 
10130
              if test -f "$additional_libdir/lib$name.la"; then
 
10131
                found_la="$additional_libdir/lib$name.la"
 
10132
              fi
 
10133
            else
 
10134
              if test -f "$additional_libdir/lib$name.$libext"; then
 
10135
                found_dir="$additional_libdir"
 
10136
                found_a="$additional_libdir/lib$name.$libext"
 
10137
                if test -f "$additional_libdir/lib$name.la"; then
 
10138
                  found_la="$additional_libdir/lib$name.la"
 
10139
                fi
 
10140
              fi
 
10141
            fi
 
10142
          fi
 
10143
          if test "X$found_dir" = "X"; then
 
10144
            for x in $LDFLAGS $LTLIBSSL; do
 
10145
 
 
10146
  acl_save_prefix="$prefix"
 
10147
  prefix="$acl_final_prefix"
 
10148
  acl_save_exec_prefix="$exec_prefix"
 
10149
  exec_prefix="$acl_final_exec_prefix"
 
10150
  eval x=\"$x\"
 
10151
  exec_prefix="$acl_save_exec_prefix"
 
10152
  prefix="$acl_save_prefix"
 
10153
 
 
10154
              case "$x" in
 
10155
                -L*)
 
10156
                  dir=`echo "X$x" | sed -e 's/^X-L//'`
 
10157
                  if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
 
10158
                    found_dir="$dir"
 
10159
                    found_so="$dir/lib$name.$shlibext"
 
10160
                    if test -f "$dir/lib$name.la"; then
 
10161
                      found_la="$dir/lib$name.la"
 
10162
                    fi
 
10163
                  else
 
10164
                    if test -f "$dir/lib$name.$libext"; then
 
10165
                      found_dir="$dir"
 
10166
                      found_a="$dir/lib$name.$libext"
 
10167
                      if test -f "$dir/lib$name.la"; then
 
10168
                        found_la="$dir/lib$name.la"
 
10169
                      fi
 
10170
                    fi
 
10171
                  fi
 
10172
                  ;;
 
10173
              esac
 
10174
              if test "X$found_dir" != "X"; then
 
10175
                break
 
10176
              fi
 
10177
            done
 
10178
          fi
 
10179
          if test "X$found_dir" != "X"; then
 
10180
                        LTLIBSSL="${LTLIBSSL}${LTLIBSSL:+ }-L$found_dir -l$name"
 
10181
            if test "X$found_so" != "X"; then
 
10182
                                                        if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
 
10183
                                LIBSSL="${LIBSSL}${LIBSSL:+ }$found_so"
 
10184
              else
 
10185
                                                                                haveit=
 
10186
                for x in $ltrpathdirs; do
 
10187
                  if test "X$x" = "X$found_dir"; then
 
10188
                    haveit=yes
 
10189
                    break
 
10190
                  fi
 
10191
                done
 
10192
                if test -z "$haveit"; then
 
10193
                  ltrpathdirs="$ltrpathdirs $found_dir"
 
10194
                fi
 
10195
                                if test "$hardcode_direct" = yes; then
 
10196
                                                      LIBSSL="${LIBSSL}${LIBSSL:+ }$found_so"
 
10197
                else
 
10198
                  if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
 
10199
                                                            LIBSSL="${LIBSSL}${LIBSSL:+ }$found_so"
 
10200
                                                            haveit=
 
10201
                    for x in $rpathdirs; do
 
10202
                      if test "X$x" = "X$found_dir"; then
 
10203
                        haveit=yes
 
10204
                        break
 
10205
                      fi
 
10206
                    done
 
10207
                    if test -z "$haveit"; then
 
10208
                      rpathdirs="$rpathdirs $found_dir"
 
10209
                    fi
 
10210
                  else
 
10211
                                                                                haveit=
 
10212
                    for x in $LDFLAGS $LIBSSL; do
 
10213
 
 
10214
  acl_save_prefix="$prefix"
 
10215
  prefix="$acl_final_prefix"
 
10216
  acl_save_exec_prefix="$exec_prefix"
 
10217
  exec_prefix="$acl_final_exec_prefix"
 
10218
  eval x=\"$x\"
 
10219
  exec_prefix="$acl_save_exec_prefix"
 
10220
  prefix="$acl_save_prefix"
 
10221
 
 
10222
                      if test "X$x" = "X-L$found_dir"; then
 
10223
                        haveit=yes
 
10224
                        break
 
10225
                      fi
 
10226
                    done
 
10227
                    if test -z "$haveit"; then
 
10228
                      LIBSSL="${LIBSSL}${LIBSSL:+ }-L$found_dir"
 
10229
                    fi
 
10230
                    if test "$hardcode_minus_L" != no; then
 
10231
                                                                                        LIBSSL="${LIBSSL}${LIBSSL:+ }$found_so"
 
10232
                    else
 
10233
                                                                                                                                                                                LIBSSL="${LIBSSL}${LIBSSL:+ }-l$name"
 
10234
                    fi
 
10235
                  fi
 
10236
                fi
 
10237
              fi
 
10238
            else
 
10239
              if test "X$found_a" != "X"; then
 
10240
                                LIBSSL="${LIBSSL}${LIBSSL:+ }$found_a"
 
10241
              else
 
10242
                                                LIBSSL="${LIBSSL}${LIBSSL:+ }-L$found_dir -l$name"
 
10243
              fi
 
10244
            fi
 
10245
                        additional_includedir=
 
10246
            case "$found_dir" in
 
10247
              */lib | */lib/)
 
10248
                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
 
10249
                additional_includedir="$basedir/include"
 
10250
                ;;
 
10251
            esac
 
10252
            if test "X$additional_includedir" != "X"; then
 
10253
                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
 
10254
                haveit=
 
10255
                if test "X$additional_includedir" = "X/usr/local/include"; then
 
10256
                  if test -n "$GCC"; then
 
10257
                    case $host_os in
 
10258
                      linux* | gnu* | k*bsd*-gnu) haveit=yes;;
 
10259
                    esac
 
10260
                  fi
 
10261
                fi
 
10262
                if test -z "$haveit"; then
 
10263
                  for x in $CPPFLAGS $INCSSL; do
 
10264
 
 
10265
  acl_save_prefix="$prefix"
 
10266
  prefix="$acl_final_prefix"
 
10267
  acl_save_exec_prefix="$exec_prefix"
 
10268
  exec_prefix="$acl_final_exec_prefix"
 
10269
  eval x=\"$x\"
 
10270
  exec_prefix="$acl_save_exec_prefix"
 
10271
  prefix="$acl_save_prefix"
 
10272
 
 
10273
                    if test "X$x" = "X-I$additional_includedir"; then
 
10274
                      haveit=yes
 
10275
                      break
 
10276
                    fi
 
10277
                  done
 
10278
                  if test -z "$haveit"; then
 
10279
                    if test -d "$additional_includedir"; then
 
10280
                                            INCSSL="${INCSSL}${INCSSL:+ }-I$additional_includedir"
 
10281
                    fi
 
10282
                  fi
 
10283
                fi
 
10284
              fi
 
10285
            fi
 
10286
                        if test -n "$found_la"; then
 
10287
                                                        save_libdir="$libdir"
 
10288
              case "$found_la" in
 
10289
                */* | *\\*) . "$found_la" ;;
 
10290
                *) . "./$found_la" ;;
 
10291
              esac
 
10292
              libdir="$save_libdir"
 
10293
                            for dep in $dependency_libs; do
 
10294
                case "$dep" in
 
10295
                  -L*)
 
10296
                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
 
10297
                                                                                                                                                                if test "X$additional_libdir" != "X/usr/lib"; then
 
10298
                      haveit=
 
10299
                      if test "X$additional_libdir" = "X/usr/local/lib"; then
 
10300
                        if test -n "$GCC"; then
 
10301
                          case $host_os in
 
10302
                            linux* | gnu* | k*bsd*-gnu) haveit=yes;;
 
10303
                          esac
 
10304
                        fi
 
10305
                      fi
 
10306
                      if test -z "$haveit"; then
 
10307
                        haveit=
 
10308
                        for x in $LDFLAGS $LIBSSL; do
 
10309
 
 
10310
  acl_save_prefix="$prefix"
 
10311
  prefix="$acl_final_prefix"
 
10312
  acl_save_exec_prefix="$exec_prefix"
 
10313
  exec_prefix="$acl_final_exec_prefix"
 
10314
  eval x=\"$x\"
 
10315
  exec_prefix="$acl_save_exec_prefix"
 
10316
  prefix="$acl_save_prefix"
 
10317
 
 
10318
                          if test "X$x" = "X-L$additional_libdir"; then
 
10319
                            haveit=yes
 
10320
                            break
 
10321
                          fi
 
10322
                        done
 
10323
                        if test -z "$haveit"; then
 
10324
                          if test -d "$additional_libdir"; then
 
10325
                                                        LIBSSL="${LIBSSL}${LIBSSL:+ }-L$additional_libdir"
 
10326
                          fi
 
10327
                        fi
 
10328
                        haveit=
 
10329
                        for x in $LDFLAGS $LTLIBSSL; do
 
10330
 
 
10331
  acl_save_prefix="$prefix"
 
10332
  prefix="$acl_final_prefix"
 
10333
  acl_save_exec_prefix="$exec_prefix"
 
10334
  exec_prefix="$acl_final_exec_prefix"
 
10335
  eval x=\"$x\"
 
10336
  exec_prefix="$acl_save_exec_prefix"
 
10337
  prefix="$acl_save_prefix"
 
10338
 
 
10339
                          if test "X$x" = "X-L$additional_libdir"; then
 
10340
                            haveit=yes
 
10341
                            break
 
10342
                          fi
 
10343
                        done
 
10344
                        if test -z "$haveit"; then
 
10345
                          if test -d "$additional_libdir"; then
 
10346
                                                        LTLIBSSL="${LTLIBSSL}${LTLIBSSL:+ }-L$additional_libdir"
 
10347
                          fi
 
10348
                        fi
 
10349
                      fi
 
10350
                    fi
 
10351
                    ;;
 
10352
                  -R*)
 
10353
                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
 
10354
                    if test "$enable_rpath" != no; then
 
10355
                                                                  haveit=
 
10356
                      for x in $rpathdirs; do
 
10357
                        if test "X$x" = "X$dir"; then
 
10358
                          haveit=yes
 
10359
                          break
 
10360
                        fi
 
10361
                      done
 
10362
                      if test -z "$haveit"; then
 
10363
                        rpathdirs="$rpathdirs $dir"
 
10364
                      fi
 
10365
                                                                  haveit=
 
10366
                      for x in $ltrpathdirs; do
 
10367
                        if test "X$x" = "X$dir"; then
 
10368
                          haveit=yes
 
10369
                          break
 
10370
                        fi
 
10371
                      done
 
10372
                      if test -z "$haveit"; then
 
10373
                        ltrpathdirs="$ltrpathdirs $dir"
 
10374
                      fi
 
10375
                    fi
 
10376
                    ;;
 
10377
                  -l*)
 
10378
                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
 
10379
                    ;;
 
10380
                  *.la)
 
10381
                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
 
10382
                    ;;
 
10383
                  *)
 
10384
                                        LIBSSL="${LIBSSL}${LIBSSL:+ }$dep"
 
10385
                    LTLIBSSL="${LTLIBSSL}${LTLIBSSL:+ }$dep"
 
10386
                    ;;
 
10387
                esac
 
10388
              done
 
10389
            fi
 
10390
          else
 
10391
                                                            LIBSSL="${LIBSSL}${LIBSSL:+ }-l$name"
 
10392
            LTLIBSSL="${LTLIBSSL}${LTLIBSSL:+ }-l$name"
 
10393
          fi
 
10394
        fi
 
10395
      fi
 
10396
    done
 
10397
  done
 
10398
  if test "X$rpathdirs" != "X"; then
 
10399
    if test -n "$hardcode_libdir_separator"; then
 
10400
                        alldirs=
 
10401
      for found_dir in $rpathdirs; do
 
10402
        alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
 
10403
      done
 
10404
            acl_save_libdir="$libdir"
 
10405
      libdir="$alldirs"
 
10406
      eval flag=\"$hardcode_libdir_flag_spec\"
 
10407
      libdir="$acl_save_libdir"
 
10408
      LIBSSL="${LIBSSL}${LIBSSL:+ }$flag"
 
10409
    else
 
10410
            for found_dir in $rpathdirs; do
 
10411
        acl_save_libdir="$libdir"
 
10412
        libdir="$found_dir"
 
10413
        eval flag=\"$hardcode_libdir_flag_spec\"
 
10414
        libdir="$acl_save_libdir"
 
10415
        LIBSSL="${LIBSSL}${LIBSSL:+ }$flag"
 
10416
      done
 
10417
    fi
 
10418
  fi
 
10419
  if test "X$ltrpathdirs" != "X"; then
 
10420
            for found_dir in $ltrpathdirs; do
 
10421
      LTLIBSSL="${LTLIBSSL}${LTLIBSSL:+ }-R$found_dir"
 
10422
    done
 
10423
  fi
 
10424
 
 
10425
 
 
10426
        ac_save_CPPFLAGS="$CPPFLAGS"
 
10427
 
 
10428
  for element in $INCSSL; do
 
10429
    haveit=
 
10430
    for x in $CPPFLAGS; do
 
10431
 
 
10432
  acl_save_prefix="$prefix"
 
10433
  prefix="$acl_final_prefix"
 
10434
  acl_save_exec_prefix="$exec_prefix"
 
10435
  exec_prefix="$acl_final_exec_prefix"
 
10436
  eval x=\"$x\"
 
10437
  exec_prefix="$acl_save_exec_prefix"
 
10438
  prefix="$acl_save_prefix"
 
10439
 
 
10440
      if test "X$x" = "X$element"; then
 
10441
        haveit=yes
 
10442
        break
 
10443
      fi
 
10444
    done
 
10445
    if test -z "$haveit"; then
 
10446
      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
 
10447
    fi
 
10448
  done
 
10449
 
 
10450
 
 
10451
  echo "$as_me:$LINENO: checking for libssl" >&5
 
10452
echo $ECHO_N "checking for libssl... $ECHO_C" >&6
 
10453
if test "${ac_cv_libssl+set}" = set; then
 
10454
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10455
else
 
10456
 
 
10457
    ac_save_LIBS="$LIBS"
 
10458
    LIBS="$LIBS $LIBSSL"
25744
10459
    cat >conftest.$ac_ext <<_ACEOF
 
10460
/* confdefs.h.  */
 
10461
_ACEOF
 
10462
cat confdefs.h >>conftest.$ac_ext
 
10463
cat >>conftest.$ac_ext <<_ACEOF
 
10464
/* end confdefs.h.  */
25745
10465
 
25746
10466
#include <openssl/ssl.h>
25747
10467
#include <openssl/x509.h>
25751
10471
#include <openssl/md4.h>
25752
10472
#include <openssl/md5.h>
25753
10473
 
25754
 
_ACEOF
25755
 
rm -f conftest.$ac_objext
25756
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25757
 
  (eval $ac_compile) 2>conftest.er1
25758
 
  ac_status=$?
25759
 
  grep -v '^ *+' conftest.er1 >conftest.err
25760
 
  rm -f conftest.er1
25761
 
  cat conftest.err >&5
25762
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25763
 
  (exit $ac_status); } &&
25764
 
         { ac_try='test -z "$ac_c_werror_flag"
25765
 
                         || test ! -s conftest.err'
25766
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25767
 
  (eval $ac_try) 2>&5
25768
 
  ac_status=$?
25769
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25770
 
  (exit $ac_status); }; } &&
25771
 
         { ac_try='test -s conftest.$ac_objext'
25772
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25773
 
  (eval $ac_try) 2>&5
25774
 
  ac_status=$?
25775
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25776
 
  (exit $ac_status); }; }; then
25777
 
 
25778
 
      echo "$as_me:$LINENO: result: found" >&5
25779
 
echo "${ECHO_T}found" >&6
25780
 
      ssl_found_includes=yes
25781
 
 
25782
 
else
25783
 
  echo "$as_me: failed program was:" >&5
25784
 
sed 's/^/| /' conftest.$ac_ext >&5
25785
 
 
25786
 
 
25787
 
      echo "$as_me:$LINENO: result: not found" >&5
25788
 
echo "${ECHO_T}not found" >&6
25789
 
 
25790
 
fi
25791
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25792
 
 
25793
 
    if test x"$ssl_found_includes" = xno; then
25794
 
      continue
25795
 
    fi
25796
 
 
25797
 
    ssl_link_failure=no
25798
 
 
25799
 
 
25800
 
    unset ac_cv_lib_crypto_RSA_new
25801
 
    unset ac_cv_lib_ssl_SSL_new
25802
 
 
25803
 
 
25804
 
 
25805
 
echo "$as_me:$LINENO: checking for RSA_new in -lcrypto" >&5
25806
 
echo $ECHO_N "checking for RSA_new in -lcrypto... $ECHO_C" >&6
25807
 
if test "${ac_cv_lib_crypto_RSA_new+set}" = set; then
25808
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
25809
 
else
25810
 
  ac_check_lib_save_LIBS=$LIBS
25811
 
LIBS="-lcrypto  $LIBS"
25812
 
cat >conftest.$ac_ext <<_ACEOF
25813
 
/* confdefs.h.  */
25814
 
_ACEOF
25815
 
cat confdefs.h >>conftest.$ac_ext
25816
 
cat >>conftest.$ac_ext <<_ACEOF
25817
 
/* end confdefs.h.  */
25818
 
 
25819
 
/* Override any gcc2 internal prototype to avoid an error.  */
25820
 
#ifdef __cplusplus
25821
 
extern "C"
25822
 
#endif
25823
 
/* We use char because int might match the return type of a gcc2
25824
 
   builtin and then its argument prototype would still apply.  */
25825
 
char RSA_new ();
25826
 
int
25827
 
main ()
25828
 
{
25829
 
RSA_new ();
25830
 
  ;
25831
 
  return 0;
25832
 
}
25833
 
_ACEOF
25834
 
rm -f conftest.$ac_objext conftest$ac_exeext
25835
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25836
 
  (eval $ac_link) 2>conftest.er1
25837
 
  ac_status=$?
25838
 
  grep -v '^ *+' conftest.er1 >conftest.err
25839
 
  rm -f conftest.er1
25840
 
  cat conftest.err >&5
25841
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25842
 
  (exit $ac_status); } &&
25843
 
         { ac_try='test -z "$ac_c_werror_flag"
25844
 
                         || test ! -s conftest.err'
25845
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25846
 
  (eval $ac_try) 2>&5
25847
 
  ac_status=$?
25848
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25849
 
  (exit $ac_status); }; } &&
25850
 
         { ac_try='test -s conftest$ac_exeext'
25851
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25852
 
  (eval $ac_try) 2>&5
25853
 
  ac_status=$?
25854
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25855
 
  (exit $ac_status); }; }; then
25856
 
  ac_cv_lib_crypto_RSA_new=yes
25857
 
else
25858
 
  echo "$as_me: failed program was:" >&5
25859
 
sed 's/^/| /' conftest.$ac_ext >&5
25860
 
 
25861
 
ac_cv_lib_crypto_RSA_new=no
25862
 
fi
25863
 
rm -f conftest.err conftest.$ac_objext \
25864
 
      conftest$ac_exeext conftest.$ac_ext
25865
 
LIBS=$ac_check_lib_save_LIBS
25866
 
fi
25867
 
echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_RSA_new" >&5
25868
 
echo "${ECHO_T}$ac_cv_lib_crypto_RSA_new" >&6
25869
 
if test $ac_cv_lib_crypto_RSA_new = yes; then
25870
 
  cat >>confdefs.h <<_ACEOF
25871
 
#define HAVE_LIBCRYPTO 1
25872
 
_ACEOF
25873
 
 
25874
 
  LIBS="-lcrypto $LIBS"
25875
 
 
25876
 
else
25877
 
  ssl_link_failure=yes
25878
 
fi
25879
 
 
25880
 
 
25881
 
echo "$as_me:$LINENO: checking for SSL_new in -lssl" >&5
25882
 
echo $ECHO_N "checking for SSL_new in -lssl... $ECHO_C" >&6
25883
 
if test "${ac_cv_lib_ssl_SSL_new+set}" = set; then
25884
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
25885
 
else
25886
 
  ac_check_lib_save_LIBS=$LIBS
25887
 
LIBS="-lssl  $LIBS"
25888
 
cat >conftest.$ac_ext <<_ACEOF
25889
 
/* confdefs.h.  */
25890
 
_ACEOF
25891
 
cat confdefs.h >>conftest.$ac_ext
25892
 
cat >>conftest.$ac_ext <<_ACEOF
25893
 
/* end confdefs.h.  */
25894
 
 
25895
 
/* Override any gcc2 internal prototype to avoid an error.  */
25896
 
#ifdef __cplusplus
25897
 
extern "C"
25898
 
#endif
25899
 
/* We use char because int might match the return type of a gcc2
25900
 
   builtin and then its argument prototype would still apply.  */
25901
 
char SSL_new ();
25902
 
int
25903
 
main ()
25904
 
{
25905
 
SSL_new ();
25906
 
  ;
25907
 
  return 0;
25908
 
}
25909
 
_ACEOF
25910
 
rm -f conftest.$ac_objext conftest$ac_exeext
25911
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25912
 
  (eval $ac_link) 2>conftest.er1
25913
 
  ac_status=$?
25914
 
  grep -v '^ *+' conftest.er1 >conftest.err
25915
 
  rm -f conftest.er1
25916
 
  cat conftest.err >&5
25917
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25918
 
  (exit $ac_status); } &&
25919
 
         { ac_try='test -z "$ac_c_werror_flag"
25920
 
                         || test ! -s conftest.err'
25921
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25922
 
  (eval $ac_try) 2>&5
25923
 
  ac_status=$?
25924
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25925
 
  (exit $ac_status); }; } &&
25926
 
         { ac_try='test -s conftest$ac_exeext'
25927
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25928
 
  (eval $ac_try) 2>&5
25929
 
  ac_status=$?
25930
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25931
 
  (exit $ac_status); }; }; then
25932
 
  ac_cv_lib_ssl_SSL_new=yes
25933
 
else
25934
 
  echo "$as_me: failed program was:" >&5
25935
 
sed 's/^/| /' conftest.$ac_ext >&5
25936
 
 
25937
 
ac_cv_lib_ssl_SSL_new=no
25938
 
fi
25939
 
rm -f conftest.err conftest.$ac_objext \
25940
 
      conftest$ac_exeext conftest.$ac_ext
25941
 
LIBS=$ac_check_lib_save_LIBS
25942
 
fi
25943
 
echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_new" >&5
25944
 
echo "${ECHO_T}$ac_cv_lib_ssl_SSL_new" >&6
25945
 
if test $ac_cv_lib_ssl_SSL_new = yes; then
25946
 
  cat >>confdefs.h <<_ACEOF
 
10474
int
 
10475
main ()
 
10476
{
 
10477
SSL_library_init ()
 
10478
  ;
 
10479
  return 0;
 
10480
}
 
10481
_ACEOF
 
10482
rm -f conftest.$ac_objext conftest$ac_exeext
 
10483
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
10484
  (eval $ac_link) 2>conftest.er1
 
10485
  ac_status=$?
 
10486
  grep -v '^ *+' conftest.er1 >conftest.err
 
10487
  rm -f conftest.er1
 
10488
  cat conftest.err >&5
 
10489
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10490
  (exit $ac_status); } &&
 
10491
         { ac_try='test -z "$ac_c_werror_flag"
 
10492
                         || test ! -s conftest.err'
 
10493
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10494
  (eval $ac_try) 2>&5
 
10495
  ac_status=$?
 
10496
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10497
  (exit $ac_status); }; } &&
 
10498
         { ac_try='test -s conftest$ac_exeext'
 
10499
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10500
  (eval $ac_try) 2>&5
 
10501
  ac_status=$?
 
10502
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10503
  (exit $ac_status); }; }; then
 
10504
  ac_cv_libssl=yes
 
10505
else
 
10506
  echo "$as_me: failed program was:" >&5
 
10507
sed 's/^/| /' conftest.$ac_ext >&5
 
10508
 
 
10509
ac_cv_libssl=no
 
10510
fi
 
10511
rm -f conftest.err conftest.$ac_objext \
 
10512
      conftest$ac_exeext conftest.$ac_ext
 
10513
    LIBS="$ac_save_LIBS"
 
10514
 
 
10515
fi
 
10516
echo "$as_me:$LINENO: result: $ac_cv_libssl" >&5
 
10517
echo "${ECHO_T}$ac_cv_libssl" >&6
 
10518
  if test "$ac_cv_libssl" = yes; then
 
10519
    HAVE_LIBSSL=yes
 
10520
 
 
10521
cat >>confdefs.h <<\_ACEOF
25947
10522
#define HAVE_LIBSSL 1
25948
10523
_ACEOF
25949
10524
 
25950
 
  LIBS="-lssl $LIBS"
25951
 
 
25952
 
else
25953
 
  ssl_link_failure=yes
25954
 
fi
25955
 
 
25956
 
 
25957
 
    if test x"$ssl_link_failure" = xyes; then
25958
 
            continue
25959
 
    fi
25960
 
 
25961
 
 
25962
 
 
25963
 
    ssl_run_failure=no
25964
 
 
25965
 
    echo "$as_me:$LINENO: checking whether SSL libs are resolved at runtime" >&5
25966
 
echo $ECHO_N "checking whether SSL libs are resolved at runtime... $ECHO_C" >&6
25967
 
    if test "$cross_compiling" = yes; then
25968
 
  echo "$as_me:$LINENO: result: cross" >&5
25969
 
echo "${ECHO_T}cross" >&6
25970
 
 
25971
 
else
25972
 
  cat >conftest.$ac_ext <<_ACEOF
25973
 
/* confdefs.h.  */
25974
 
_ACEOF
25975
 
cat confdefs.h >>conftest.$ac_ext
25976
 
cat >>conftest.$ac_ext <<_ACEOF
25977
 
/* end confdefs.h.  */
25978
 
 
25979
 
int RSA_new();
25980
 
int SSL_new();
25981
 
main(){return 0;}
25982
 
 
25983
 
_ACEOF
25984
 
rm -f conftest$ac_exeext
25985
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25986
 
  (eval $ac_link) 2>&5
25987
 
  ac_status=$?
25988
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25989
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25990
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25991
 
  (eval $ac_try) 2>&5
25992
 
  ac_status=$?
25993
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25994
 
  (exit $ac_status); }; }; then
25995
 
  echo "$as_me:$LINENO: result: yes" >&5
25996
 
echo "${ECHO_T}yes" >&6
25997
 
else
25998
 
  echo "$as_me: program exited with status $ac_status" >&5
25999
 
echo "$as_me: failed program was:" >&5
26000
 
sed 's/^/| /' conftest.$ac_ext >&5
26001
 
 
26002
 
( exit $ac_status )
26003
 
echo "$as_me:$LINENO: result: no" >&5
26004
 
echo "${ECHO_T}no" >&6; ssl_run_failure=yes
26005
 
fi
26006
 
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26007
 
fi
26008
 
 
26009
 
    if test x"$ssl_run_failure" = xno; then
26010
 
      ssl_success=yes
26011
 
      break
26012
 
    fi
26013
 
  done
26014
 
 
26015
 
  if test x"$ssl_success" = xyes; then
26016
 
    { echo "$as_me:$LINENO: compiling in support for SSL in $ssl_root" >&5
26017
 
echo "$as_me: compiling in support for SSL in $ssl_root" >&6;}
 
10525
    echo "$as_me:$LINENO: checking how to link with libssl" >&5
 
10526
echo $ECHO_N "checking how to link with libssl... $ECHO_C" >&6
 
10527
    echo "$as_me:$LINENO: result: $LIBSSL" >&5
 
10528
echo "${ECHO_T}$LIBSSL" >&6
 
10529
  else
 
10530
    HAVE_LIBSSL=no
 
10531
            CPPFLAGS="$ac_save_CPPFLAGS"
 
10532
    LIBSSL=
 
10533
    LTLIBSSL=
 
10534
  fi
 
10535
 
 
10536
 
 
10537
 
 
10538
 
 
10539
 
 
10540
 
 
10541
  if test x"$LIBSSL" != x
 
10542
  then
 
10543
    { echo "$as_me:$LINENO: compiling in support for SSL" >&5
 
10544
echo "$as_me: compiling in support for SSL" >&6;}
26018
10545
 
26019
10546
cat >>confdefs.h <<\_ACEOF
26020
10547
#define HAVE_SSL 1
26021
10548
_ACEOF
26022
10549
 
26023
 
 
26024
10550
    SSL_OBJ='openssl$o'
26025
 
 
26026
 
  else
26027
 
    LDFLAGS=$wget_save_LDFLAGS
26028
 
    LIBS=$wget_save_LIBS
26029
 
 
26030
 
            if test x"$wget_force_ssl" = x"yes"; then
26031
 
      { { echo "$as_me:$LINENO: error: failed to find OpenSSL libraries" >&5
26032
 
echo "$as_me: error: failed to find OpenSSL libraries" >&2;}
26033
 
   { (exit 2); exit 2; }; }
26034
 
    fi
 
10551
  elif test x"$with_ssl" != x
 
10552
  then
 
10553
    { { echo "$as_me:$LINENO: error: --with-ssl was given, but OpenSSL is not available." >&5
 
10554
echo "$as_me: error: --with-ssl was given, but OpenSSL is not available." >&2;}
 
10555
   { (exit 1); exit 1; }; }
26035
10556
  fi
26036
 
 
26037
 
    CC=$wget_save_CC
26038
 
 
26039
 
        CPPFLAGS=$wget_save_CPPFLAGS
26040
10557
fi
26041
10558
 
 
10559
 
26042
10560
NTLM_OBJ=''
26043
 
if test x"$ssl_success" = xyes
 
10561
if test x"$LIBSSL" != x
26044
10562
then
26045
10563
  if test x"$ENABLE_NTLM" != xno
26046
10564
  then
26068
10586
  MD5_OBJ='gen-md5$o'
26069
10587
  found_md5=no
26070
10588
 
26071
 
          if test x"$found_md5" = xno; then
 
10589
            if test x"$found_md5" = xno; then
26072
10590
    echo "$as_me:$LINENO: checking for md5_calc in -lmd5" >&5
26073
10591
echo $ECHO_N "checking for md5_calc in -lmd5... $ECHO_C" >&6
26074
10592
if test "${ac_cv_lib_md5_md5_calc+set}" = set; then
26190
10708
  fi
26191
10709
 
26192
10710
      if test x"$found_md5" = xno; then
26193
 
    if test x"$ssl_success" = xyes; then
 
10711
    if test x"$LIBSSL" != x; then
26194
10712
 
26195
10713
cat >>confdefs.h <<\_ACEOF
26196
10714
#define HAVE_OPENSSL_MD5 1
26758
11276
 
26759
11277
ALL_LINGUAS=`(cd ${srcdir}/po && ls *.po | sed -e 's/\.po$//' | tr '\012' ' ')`
26760
11278
 
26761
 
 
26762
11279
echo "$as_me:$LINENO: checking whether NLS is requested" >&5
26763
11280
echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
26764
11281
        # Check whether --enable-nls or --disable-nls was given.
28074
12591
s,@OBJEXT@,$OBJEXT,;t t
28075
12592
s,@CPP@,$CPP,;t t
28076
12593
s,@EGREP@,$EGREP,;t t
28077
 
s,@LN_S@,$LN_S,;t t
28078
 
s,@ECHO@,$ECHO,;t t
28079
 
s,@AR@,$AR,;t t
28080
 
s,@ac_ct_AR@,$ac_ct_AR,;t t
28081
 
s,@RANLIB@,$RANLIB,;t t
28082
 
s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
28083
 
s,@STRIP@,$STRIP,;t t
28084
 
s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
28085
 
s,@CXX@,$CXX,;t t
28086
 
s,@CXXFLAGS@,$CXXFLAGS,;t t
28087
 
s,@ac_ct_CXX@,$ac_ct_CXX,;t t
28088
 
s,@CXXCPP@,$CXXCPP,;t t
28089
 
s,@F77@,$F77,;t t
28090
 
s,@FFLAGS@,$FFLAGS,;t t
28091
 
s,@ac_ct_F77@,$ac_ct_F77,;t t
28092
 
s,@LIBTOOL@,$LIBTOOL,;t t
28093
 
s,@LIBTOOL_DEPS@,$LIBTOOL_DEPS,;t t
28094
12594
s,@exeext@,$exeext,;t t
28095
12595
s,@U@,$U,;t t
28096
12596
s,@ANSI2KNR@,$ANSI2KNR,;t t
28097
12597
s,@ALLOCA@,$ALLOCA,;t t
28098
12598
s,@GETOPT_OBJ@,$GETOPT_OBJ,;t t
28099
 
s,@SSL_INCLUDES@,$SSL_INCLUDES,;t t
 
12599
s,@HAVE_LIBSSL@,$HAVE_LIBSSL,;t t
 
12600
s,@LIBSSL@,$LIBSSL,;t t
 
12601
s,@LTLIBSSL@,$LTLIBSSL,;t t
28100
12602
s,@SSL_OBJ@,$SSL_OBJ,;t t
28101
12603
s,@NTLM_OBJ@,$NTLM_OBJ,;t t
28102
12604
s,@MD5_OBJ@,$MD5_OBJ,;t t