ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/configure
(Generate patch)

Comparing deliantra/server/configure (file contents):
Revision 1.1 by root, Fri Feb 3 07:11:29 2006 UTC vs.
Revision 1.2 by root, Fri Feb 3 07:25:24 2006 UTC

271fi 271fi
272 272
273if test "X$1" = X--fallback-echo; then 273if test "X$1" = X--fallback-echo; then
274 # used as fallback echo 274 # used as fallback echo
275 shift 275 shift
276 cat <<EOF 276 cat <<_LT_EOF
277$* 277$*
278EOF 278_LT_EOF
279 exit 0 279 exit 0
280fi 280fi
281 281
282# The HP-UX ksh and POSIX shell print the target directory to stdout 282# The HP-UX ksh and POSIX shell print the target directory to stdout
283# if CDPATH is set. 283# if CDPATH is set.
392fi 392fi
393 393
394 394
395 395
396 396
397tagnames=${tagnames+${tagnames},}CXX
398
399tagnames=${tagnames+${tagnames},}F77
400
401# Name of the host. 397# Name of the host.
402# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 398# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
403# so uname gets run too. 399# so uname gets run too.
404ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 400ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
405 401
465#endif 461#endif
466#if HAVE_UNISTD_H 462#if HAVE_UNISTD_H
467# include <unistd.h> 463# include <unistd.h>
468#endif" 464#endif"
469 465
470ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL LEX LEXLIB LEX_OUTPUT_ROOT LATEX GZIP GUNZIP TAR PERL BASENAME COMPRESS UNCOMPRESS BZIP BUNZIP X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS LIBOBJS x_includes x_libraries no_x HAVE_X_TRUE HAVE_X_FALSE X11LIBS pkgstatedir pkgconfdir HAVE_LIBDL_TRUE HAVE_LIBDL_FALSE PYTHON_LIB PY_LIBS PY_INCLUDES PYTHON_PLUGIN_TRUE PYTHON_PLUGIN_FALSE PLUGIN_PYTHON LTLIBOBJS' 466ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT LIBTOOL build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE SED EGREP LD NM LN_S AR ac_ct_AR RANLIB ac_ct_RANLIB ECHO CPP LEX LEXLIB LEX_OUTPUT_ROOT LATEX GZIP GUNZIP TAR PERL BASENAME COMPRESS UNCOMPRESS BZIP BUNZIP X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS LIBOBJS x_includes x_libraries no_x HAVE_X_TRUE HAVE_X_FALSE X11LIBS pkgstatedir pkgconfdir PERLLIB PERLFLAGS PERLPRIVLIBEXP PERL_PLUGIN_TRUE PERL_PLUGIN_FALSE PERL_PLUGIN HAVE_LIBDL_TRUE HAVE_LIBDL_FALSE PYTHON_LIB PY_LIBS PY_INCLUDES PYTHON_PLUGIN_TRUE PYTHON_PLUGIN_FALSE PLUGIN_PYTHON LTLIBOBJS'
471ac_subst_files='' 467ac_subst_files=''
472 468
473# Initialize some variables set by options. 469# Initialize some variables set by options.
474ac_init_help= 470ac_init_help=
475ac_init_version=false 471ac_init_version=false
926ac_cv_env_CPPFLAGS_value=$CPPFLAGS 922ac_cv_env_CPPFLAGS_value=$CPPFLAGS
927ac_env_CPP_set=${CPP+set} 923ac_env_CPP_set=${CPP+set}
928ac_env_CPP_value=$CPP 924ac_env_CPP_value=$CPP
929ac_cv_env_CPP_set=${CPP+set} 925ac_cv_env_CPP_set=${CPP+set}
930ac_cv_env_CPP_value=$CPP 926ac_cv_env_CPP_value=$CPP
931ac_env_CXX_set=${CXX+set}
932ac_env_CXX_value=$CXX
933ac_cv_env_CXX_set=${CXX+set}
934ac_cv_env_CXX_value=$CXX
935ac_env_CXXFLAGS_set=${CXXFLAGS+set}
936ac_env_CXXFLAGS_value=$CXXFLAGS
937ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
938ac_cv_env_CXXFLAGS_value=$CXXFLAGS
939ac_env_CXXCPP_set=${CXXCPP+set}
940ac_env_CXXCPP_value=$CXXCPP
941ac_cv_env_CXXCPP_set=${CXXCPP+set}
942ac_cv_env_CXXCPP_value=$CXXCPP
943ac_env_F77_set=${F77+set}
944ac_env_F77_value=$F77
945ac_cv_env_F77_set=${F77+set}
946ac_cv_env_F77_value=$F77
947ac_env_FFLAGS_set=${FFLAGS+set}
948ac_env_FFLAGS_value=$FFLAGS
949ac_cv_env_FFLAGS_set=${FFLAGS+set}
950ac_cv_env_FFLAGS_value=$FFLAGS
951 927
952# 928#
953# Report the --help message. 929# Report the --help message.
954# 930#
955if test "$ac_init_help" = "long"; then 931if test "$ac_init_help" = "long"; then
1047 --enable-dmalloc Use the dmalloc library if available, may prevent plugins from working 1023 --enable-dmalloc Use the dmalloc library if available, may prevent plugins from working
1048 1024
1049Optional Packages: 1025Optional Packages:
1050 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1026 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1051 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1027 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1052 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1053 --with-pic try to use only PIC/non-PIC objects [default=use 1028 --with-pic try to use only PIC/non-PIC objects [default=use
1054 both] 1029 both]
1055 --with-tags[=TAGS] 1030 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1056 include additional configurations [automatic]
1057 --with-python=dir Directory to look for python headers/library (default=standard system location) 1031 --with-python=dir Directory to look for python headers/library (default=standard system location)
1058 --with-x use the X Window System 1032 --with-x use the X Window System
1059 1033
1060Some influential environment variables: 1034Some influential environment variables:
1061 CC C compiler command 1035 CC C compiler command
1063 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1037 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1064 nonstandard directory <lib dir> 1038 nonstandard directory <lib dir>
1065 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have 1039 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1066 headers in a nonstandard directory <include dir> 1040 headers in a nonstandard directory <include dir>
1067 CPP C preprocessor 1041 CPP C preprocessor
1068 CXX C++ compiler command
1069 CXXFLAGS C++ compiler flags
1070 CXXCPP C++ preprocessor
1071 F77 Fortran 77 compiler command
1072 FFLAGS Fortran 77 compiler flags
1073 1042
1074Use these variables to override the choices made by `configure' or to help 1043Use these variables to override the choices made by `configure' or to help
1075it to find libraries and programs with nonstandard names/locations. 1044it to find libraries and programs with nonstandard names/locations.
1076 1045
1077Report bugs to <crossfire-devel@listserv.real-time.com>. 1046Report bugs to <crossfire-devel@listserv.real-time.com>.
1987 1956
1988 1957
1989 1958
1990 1959
1991 1960
1992# Check whether --enable-shared or --disable-shared was given.
1993if test "${enable_shared+set}" = set; then
1994 enableval="$enable_shared"
1995 p=${PACKAGE-default}
1996 case $enableval in
1997 yes) enable_shared=yes ;;
1998 no) enable_shared=no ;;
1999 *)
2000 enable_shared=no
2001 # Look at the argument we got. We use all the common list separators.
2002 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2003 for pkg in $enableval; do
2004 IFS="$lt_save_ifs"
2005 if test "X$pkg" = "X$p"; then
2006 enable_shared=yes
2007 fi
2008 done
2009 IFS="$lt_save_ifs"
2010 ;;
2011 esac
2012else
2013 enable_shared=yes
2014fi;
2015 1961
2016# Check whether --enable-static or --disable-static was given.
2017if test "${enable_static+set}" = set; then
2018 enableval="$enable_static"
2019 p=${PACKAGE-default}
2020 case $enableval in
2021 yes) enable_static=yes ;;
2022 no) enable_static=no ;;
2023 *)
2024 enable_static=no
2025 # Look at the argument we got. We use all the common list separators.
2026 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2027 for pkg in $enableval; do
2028 IFS="$lt_save_ifs"
2029 if test "X$pkg" = "X$p"; then
2030 enable_static=yes
2031 fi
2032 done
2033 IFS="$lt_save_ifs"
2034 ;;
2035 esac
2036else
2037 enable_static=yes
2038fi;
2039 1962
2040# Check whether --enable-fast-install or --disable-fast-install was given. 1963macro_version=''
2041if test "${enable_fast_install+set}" = set; then 1964macro_revision='1.1467'
2042 enableval="$enable_fast_install" 1965
2043 p=${PACKAGE-default} 1966
2044 case $enableval in 1967
2045 yes) enable_fast_install=yes ;; 1968
2046 no) enable_fast_install=no ;; 1969
2047 *) 1970
2048 enable_fast_install=no 1971
2049 # Look at the argument we got. We use all the common list separators. 1972
2050 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 1973
2051 for pkg in $enableval; do 1974
2052 IFS="$lt_save_ifs" 1975
2053 if test "X$pkg" = "X$p"; then 1976
2054 enable_fast_install=yes 1977case $ac_aux_dir in
2055 fi 1978 $srcdir) ltmain=./ltmain.sh ;;
2056 done 1979 $srcdir/*) ltmain=`expr "$ac_aux_dir" : "$srcdir/\(.*\)"`/ltmain.sh ;;
2057 IFS="$lt_save_ifs" 1980esac
2058 ;; 1981test -f "$ltmain" || ltmain="$ac_aux_dir/ltmain.sh"
2059 esac
2060else
2061 enable_fast_install=yes
2062fi;
2063 1982
2064# Make sure we can run config.sub. 1983# Make sure we can run config.sub.
2065$ac_config_sub sun4 >/dev/null 2>&1 || 1984$ac_config_sub sun4 >/dev/null 2>&1 ||
2066 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 1985 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
2067echo "$as_me: error: cannot run $ac_config_sub" >&2;} 1986echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3263 fi 3182 fi
3264 done 3183 done
3265done 3184done
3266SED=$lt_cv_path_SED 3185SED=$lt_cv_path_SED
3267 3186
3187
3268fi 3188fi
3269 3189
3270echo "$as_me:$LINENO: result: $SED" >&5 3190echo "$as_me:$LINENO: result: $SED" >&5
3271echo "${ECHO_T}$SED" >&6 3191echo "${ECHO_T}$SED" >&6
3192
3193test -z "$SED" && SED=sed
3194
3195
3196
3197
3198
3199
3200
3201
3202
3203
3272 3204
3273echo "$as_me:$LINENO: checking for egrep" >&5 3205echo "$as_me:$LINENO: checking for egrep" >&5
3274echo $ECHO_N "checking for egrep... $ECHO_C" >&6 3206echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3275if test "${ac_cv_prog_egrep+set}" = set; then 3207if test "${ac_cv_prog_egrep+set}" = set; then
3276 echo $ECHO_N "(cached) $ECHO_C" >&6 3208 echo $ECHO_N "(cached) $ECHO_C" >&6
3284echo "${ECHO_T}$ac_cv_prog_egrep" >&6 3216echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3285 EGREP=$ac_cv_prog_egrep 3217 EGREP=$ac_cv_prog_egrep
3286 3218
3287 3219
3288 3220
3221test -z "$GREP" && GREP=grep
3222
3223
3224
3225
3226
3227
3228
3229
3230
3231
3232
3233
3289# Check whether --with-gnu-ld or --without-gnu-ld was given. 3234# Check whether --with-gnu-ld or --without-gnu-ld was given.
3290if test "${with_gnu_ld+set}" = set; then 3235if test "${with_gnu_ld+set}" = set; then
3291 withval="$with_gnu_ld" 3236 withval="$with_gnu_ld"
3292 test "$withval" = no || with_gnu_ld=yes 3237 test "$withval" = no || with_gnu_ld=yes
3293else 3238else
3294 with_gnu_ld=no 3239 with_gnu_ld=no
3295fi; 3240fi;
3241
3296ac_prog=ld 3242ac_prog=ld
3297if test "$GCC" = yes; then 3243if test "$GCC" = yes; then
3298 # Check if gcc -print-prog-name=ld gives a path. 3244 # Check if gcc -print-prog-name=ld gives a path.
3299 echo "$as_me:$LINENO: checking for ld used by $CC" >&5 3245 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3300echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6 3246echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3309 # Accept absolute paths. 3255 # Accept absolute paths.
3310 [\\/]* | ?:[\\/]*) 3256 [\\/]* | ?:[\\/]*)
3311 re_direlt='/[^/][^/]*/\.\./' 3257 re_direlt='/[^/][^/]*/\.\./'
3312 # Canonicalize the pathname of ld 3258 # Canonicalize the pathname of ld
3313 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` 3259 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3314 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 3260 while echo $ac_prog | $GREP "$re_direlt" > /dev/null 2>&1; do
3315 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` 3261 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3316 done 3262 done
3317 test -z "$LD" && LD="$ac_prog" 3263 test -z "$LD" && LD="$ac_prog"
3318 ;; 3264 ;;
3319 "") 3265 "")
3390echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 3336echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3391echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 3337echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3392with_gnu_ld=$lt_cv_prog_gnu_ld 3338with_gnu_ld=$lt_cv_prog_gnu_ld
3393 3339
3394 3340
3341
3342
3343
3344
3345
3346
3347
3395echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 3348echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3396echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6 3349echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3397if test "${lt_cv_ld_reload_flag+set}" = set; then 3350if test "${lt_cv_ld_reload_flag+set}" = set; then
3398 echo $ECHO_N "(cached) $ECHO_C" >&6 3351 echo $ECHO_N "(cached) $ECHO_C" >&6
3399else 3352else
3405case $reload_flag in 3358case $reload_flag in
3406"" | " "*) ;; 3359"" | " "*) ;;
3407*) reload_flag=" $reload_flag" ;; 3360*) reload_flag=" $reload_flag" ;;
3408esac 3361esac
3409reload_cmds='$LD$reload_flag -o $output$reload_objs' 3362reload_cmds='$LD$reload_flag -o $output$reload_objs'
3363case $host_os in
3364 darwin*)
3365 if test "$GCC" = yes; then
3366 reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
3367 else
3368 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3369 fi
3370 ;;
3371esac
3372
3373
3374
3375
3376
3377
3378
3379
3410 3380
3411echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 3381echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3412echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6 3382echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3413if test "${lt_cv_path_NM+set}" = set; then 3383if test "${lt_cv_path_NM+set}" = set; then
3414 echo $ECHO_N "(cached) $ECHO_C" >&6 3384 echo $ECHO_N "(cached) $ECHO_C" >&6
3451fi 3421fi
3452fi 3422fi
3453echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 3423echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3454echo "${ECHO_T}$lt_cv_path_NM" >&6 3424echo "${ECHO_T}$lt_cv_path_NM" >&6
3455NM="$lt_cv_path_NM" 3425NM="$lt_cv_path_NM"
3426test -z "$NM" && NM=nm
3427
3428
3429
3430
3431
3456 3432
3457echo "$as_me:$LINENO: checking whether ln -s works" >&5 3433echo "$as_me:$LINENO: checking whether ln -s works" >&5
3458echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 3434echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3459LN_S=$as_ln_s 3435LN_S=$as_ln_s
3460if test "$LN_S" = "ln -s"; then 3436if test "$LN_S" = "ln -s"; then
3462echo "${ECHO_T}yes" >&6 3438echo "${ECHO_T}yes" >&6
3463else 3439else
3464 echo "$as_me:$LINENO: result: no, using $LN_S" >&5 3440 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3465echo "${ECHO_T}no, using $LN_S" >&6 3441echo "${ECHO_T}no, using $LN_S" >&6
3466fi 3442fi
3443
3467 3444
3468echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5 3445echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3469echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6 3446echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3470if test "${lt_cv_deplibs_check_method+set}" = set; then 3447if test "${lt_cv_deplibs_check_method+set}" = set; then
3471 echo $ECHO_N "(cached) $ECHO_C" >&6 3448 echo $ECHO_N "(cached) $ECHO_C" >&6
3503 # func_win32_libid is a shell function defined in ltmain.sh 3480 # func_win32_libid is a shell function defined in ltmain.sh
3504 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 3481 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3505 lt_cv_file_magic_cmd='func_win32_libid' 3482 lt_cv_file_magic_cmd='func_win32_libid'
3506 ;; 3483 ;;
3507 3484
3508mingw* | pw32*)
3509 # Base MSYS/MinGW do not provide the 'file' command needed by 3485 # Base MSYS/MinGW do not provide the 'file' command needed by
3510 # func_win32_libid shell function, so use a weaker test based on 'objdump'. 3486 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
3487mingw* | pw32*)
3511 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 3488 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3512 lt_cv_file_magic_cmd='$OBJDUMP -f' 3489 lt_cv_file_magic_cmd='$OBJDUMP -f'
3513 ;; 3490 ;;
3514 3491
3515darwin* | rhapsody*) 3492darwin* | rhapsody*)
3516 lt_cv_deplibs_check_method=pass_all 3493 lt_cv_deplibs_check_method=pass_all
3517 ;; 3494 ;;
3518 3495
3519freebsd* | kfreebsd*-gnu) 3496freebsd* | kfreebsd*-gnu)
3520 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 3497 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
3521 case $host_cpu in 3498 case $host_cpu in
3522 i*86 ) 3499 i*86 )
3523 # Not sure whether the presence of OpenBSD here was a mistake. 3500 # Not sure whether the presence of OpenBSD here was a mistake.
3524 # Let's accept both of them until this is cleared up. 3501 # Let's accept both of them until this is cleared up.
3525 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library' 3502 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3564 lt_cv_deplibs_check_method=pass_all 3541 lt_cv_deplibs_check_method=pass_all
3565 ;; 3542 ;;
3566 3543
3567# This must be Linux ELF. 3544# This must be Linux ELF.
3568linux*) 3545linux*)
3546 case $host_cpu in
3547 alpha*|hppa*|i*86|ia64*|m68*|mips*|powerpc*|sparc*|s390*|sh*)
3548 lt_cv_deplibs_check_method=pass_all ;;
3549 *)
3550 # glibc up to 2.1.1 does not perform some relocations on ARM
3551 # this will be overridden with pass_all, but let us keep it just in case
3552 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3553 esac
3554 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3569 lt_cv_deplibs_check_method=pass_all 3555 lt_cv_deplibs_check_method=pass_all
3570 ;; 3556 ;;
3571 3557
3572netbsd* | netbsdelf*-gnu | knetbsd*-gnu) 3558netbsd* | knetbsd*-gnu)
3573 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 3559 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
3574 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 3560 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3575 else 3561 else
3576 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 3562 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
3577 fi 3563 fi
3578 ;; 3564 ;;
3588 ;; 3574 ;;
3589 3575
3590openbsd*) 3576openbsd*)
3591 lt_cv_file_magic_cmd=/usr/bin/file 3577 lt_cv_file_magic_cmd=/usr/bin/file
3592 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 3578 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3593 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 3579 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3594 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object' 3580 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
3595 else 3581 else
3596 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library' 3582 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
3597 fi 3583 fi
3598 ;; 3584 ;;
3646test -z "$deplibs_check_method" && deplibs_check_method=unknown 3632test -z "$deplibs_check_method" && deplibs_check_method=unknown
3647 3633
3648 3634
3649 3635
3650 3636
3637
3638
3639
3640
3641
3642
3643
3644
3645if test -n "$ac_tool_prefix"; then
3646 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3647set dummy ${ac_tool_prefix}ar; ac_word=$2
3648echo "$as_me:$LINENO: checking for $ac_word" >&5
3649echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3650if test "${ac_cv_prog_AR+set}" = set; then
3651 echo $ECHO_N "(cached) $ECHO_C" >&6
3652else
3653 if test -n "$AR"; then
3654 ac_cv_prog_AR="$AR" # Let the user override the test.
3655else
3656as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3657for as_dir in $PATH
3658do
3659 IFS=$as_save_IFS
3660 test -z "$as_dir" && as_dir=.
3661 for ac_exec_ext in '' $ac_executable_extensions; do
3662 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3663 ac_cv_prog_AR="${ac_tool_prefix}ar"
3664 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3665 break 2
3666 fi
3667done
3668done
3669
3670fi
3671fi
3672AR=$ac_cv_prog_AR
3673if test -n "$AR"; then
3674 echo "$as_me:$LINENO: result: $AR" >&5
3675echo "${ECHO_T}$AR" >&6
3676else
3677 echo "$as_me:$LINENO: result: no" >&5
3678echo "${ECHO_T}no" >&6
3679fi
3680
3681fi
3682if test -z "$ac_cv_prog_AR"; then
3683 ac_ct_AR=$AR
3684 # Extract the first word of "ar", so it can be a program name with args.
3685set dummy ar; ac_word=$2
3686echo "$as_me:$LINENO: checking for $ac_word" >&5
3687echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3688if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3689 echo $ECHO_N "(cached) $ECHO_C" >&6
3690else
3691 if test -n "$ac_ct_AR"; then
3692 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3693else
3694as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3695for as_dir in $PATH
3696do
3697 IFS=$as_save_IFS
3698 test -z "$as_dir" && as_dir=.
3699 for ac_exec_ext in '' $ac_executable_extensions; do
3700 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3701 ac_cv_prog_ac_ct_AR="ar"
3702 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3703 break 2
3704 fi
3705done
3706done
3707
3708 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
3709fi
3710fi
3711ac_ct_AR=$ac_cv_prog_ac_ct_AR
3712if test -n "$ac_ct_AR"; then
3713 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
3714echo "${ECHO_T}$ac_ct_AR" >&6
3715else
3716 echo "$as_me:$LINENO: result: no" >&5
3717echo "${ECHO_T}no" >&6
3718fi
3719
3720 AR=$ac_ct_AR
3721else
3722 AR="$ac_cv_prog_AR"
3723fi
3724
3725test -z "$AR" && AR=ar
3726test -z "$AR_FLAGS" && AR_FLAGS=cru
3727
3728
3729
3730
3731
3732
3733
3734
3735
3736
3737
3738if test -n "$ac_tool_prefix"; then
3739 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3740set dummy ${ac_tool_prefix}strip; ac_word=$2
3741echo "$as_me:$LINENO: checking for $ac_word" >&5
3742echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3743if test "${ac_cv_prog_STRIP+set}" = set; then
3744 echo $ECHO_N "(cached) $ECHO_C" >&6
3745else
3746 if test -n "$STRIP"; then
3747 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3748else
3749as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3750for as_dir in $PATH
3751do
3752 IFS=$as_save_IFS
3753 test -z "$as_dir" && as_dir=.
3754 for ac_exec_ext in '' $ac_executable_extensions; do
3755 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3756 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3757 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3758 break 2
3759 fi
3760done
3761done
3762
3763fi
3764fi
3765STRIP=$ac_cv_prog_STRIP
3766if test -n "$STRIP"; then
3767 echo "$as_me:$LINENO: result: $STRIP" >&5
3768echo "${ECHO_T}$STRIP" >&6
3769else
3770 echo "$as_me:$LINENO: result: no" >&5
3771echo "${ECHO_T}no" >&6
3772fi
3773
3774fi
3775if test -z "$ac_cv_prog_STRIP"; then
3776 ac_ct_STRIP=$STRIP
3777 # Extract the first word of "strip", so it can be a program name with args.
3778set dummy strip; ac_word=$2
3779echo "$as_me:$LINENO: checking for $ac_word" >&5
3780echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3781if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3782 echo $ECHO_N "(cached) $ECHO_C" >&6
3783else
3784 if test -n "$ac_ct_STRIP"; then
3785 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3786else
3787as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3788for as_dir in $PATH
3789do
3790 IFS=$as_save_IFS
3791 test -z "$as_dir" && as_dir=.
3792 for ac_exec_ext in '' $ac_executable_extensions; do
3793 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3794 ac_cv_prog_ac_ct_STRIP="strip"
3795 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3796 break 2
3797 fi
3798done
3799done
3800
3801 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
3802fi
3803fi
3804ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3805if test -n "$ac_ct_STRIP"; then
3806 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3807echo "${ECHO_T}$ac_ct_STRIP" >&6
3808else
3809 echo "$as_me:$LINENO: result: no" >&5
3810echo "${ECHO_T}no" >&6
3811fi
3812
3813 STRIP=$ac_ct_STRIP
3814else
3815 STRIP="$ac_cv_prog_STRIP"
3816fi
3817
3818test -z "$STRIP" && STRIP=:
3819
3820
3821
3822
3823
3824
3825if test -n "$ac_tool_prefix"; then
3826 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3827set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3828echo "$as_me:$LINENO: checking for $ac_word" >&5
3829echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3830if test "${ac_cv_prog_RANLIB+set}" = set; then
3831 echo $ECHO_N "(cached) $ECHO_C" >&6
3832else
3833 if test -n "$RANLIB"; then
3834 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3835else
3836as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3837for as_dir in $PATH
3838do
3839 IFS=$as_save_IFS
3840 test -z "$as_dir" && as_dir=.
3841 for ac_exec_ext in '' $ac_executable_extensions; do
3842 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3843 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3844 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3845 break 2
3846 fi
3847done
3848done
3849
3850fi
3851fi
3852RANLIB=$ac_cv_prog_RANLIB
3853if test -n "$RANLIB"; then
3854 echo "$as_me:$LINENO: result: $RANLIB" >&5
3855echo "${ECHO_T}$RANLIB" >&6
3856else
3857 echo "$as_me:$LINENO: result: no" >&5
3858echo "${ECHO_T}no" >&6
3859fi
3860
3861fi
3862if test -z "$ac_cv_prog_RANLIB"; then
3863 ac_ct_RANLIB=$RANLIB
3864 # Extract the first word of "ranlib", so it can be a program name with args.
3865set dummy ranlib; ac_word=$2
3866echo "$as_me:$LINENO: checking for $ac_word" >&5
3867echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3868if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3869 echo $ECHO_N "(cached) $ECHO_C" >&6
3870else
3871 if test -n "$ac_ct_RANLIB"; then
3872 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3873else
3874as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3875for as_dir in $PATH
3876do
3877 IFS=$as_save_IFS
3878 test -z "$as_dir" && as_dir=.
3879 for ac_exec_ext in '' $ac_executable_extensions; do
3880 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3881 ac_cv_prog_ac_ct_RANLIB="ranlib"
3882 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3883 break 2
3884 fi
3885done
3886done
3887
3888 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3889fi
3890fi
3891ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3892if test -n "$ac_ct_RANLIB"; then
3893 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3894echo "${ECHO_T}$ac_ct_RANLIB" >&6
3895else
3896 echo "$as_me:$LINENO: result: no" >&5
3897echo "${ECHO_T}no" >&6
3898fi
3899
3900 RANLIB=$ac_ct_RANLIB
3901else
3902 RANLIB="$ac_cv_prog_RANLIB"
3903fi
3904
3905test -z "$RANLIB" && RANLIB=:
3906
3907
3908
3909
3910
3911
3912# Determine commands to create old-style static archives.
3913old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
3914old_postinstall_cmds='chmod 644 $oldlib'
3915old_postuninstall_cmds=
3916
3917if test -n "$RANLIB"; then
3918 case $host_os in
3919 openbsd*)
3920 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
3921 ;;
3922 *)
3923 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
3924 ;;
3925 esac
3926 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
3927fi
3928
3929
3930
3931
3932
3933
3934
3935
3936
3937
3938
3939
3940
3941
3942
3943
3944# find the maximum length of command line arguments
3945echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
3946echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
3947if test "${lt_cv_sys_max_cmd_len+set}" = set; then
3948 echo $ECHO_N "(cached) $ECHO_C" >&6
3949else
3950 i=0
3951 teststring="ABCD"
3952
3953 case $build_os in
3954 msdosdjgpp*)
3955 # On DJGPP, this test can blow up pretty badly due to problems in libc
3956 # (any single argument exceeding 2000 bytes causes a buffer overrun
3957 # during glob expansion). Even if it were fixed, the result of this
3958 # check would be larger than it should be.
3959 lt_cv_sys_max_cmd_len=12288; # 12K is about right
3960 ;;
3961
3962 gnu*)
3963 # Under GNU Hurd, this test is not required because there is
3964 # no limit to the length of command line arguments.
3965 # Libtool will interpret -1 as no limit whatsoever
3966 lt_cv_sys_max_cmd_len=-1;
3967 ;;
3968
3969 cygwin* | mingw*)
3970 # On Win9x/ME, this test blows up -- it succeeds, but takes
3971 # about 5 minutes as the teststring grows exponentially.
3972 # Worse, since 9x/ME are not pre-emptively multitasking,
3973 # you end up with a "frozen" computer, even though with patience
3974 # the test eventually succeeds (with a max line length of 256k).
3975 # Instead, let's just punt: use the minimum linelength reported by
3976 # all of the supported platforms: 8192 (on NT/2K/XP).
3977 lt_cv_sys_max_cmd_len=8192;
3978 ;;
3979
3980 amigaos*)
3981 # On AmigaOS with pdksh, this test takes hours, literally.
3982 # So we just punt and use a minimum line length of 8192.
3983 lt_cv_sys_max_cmd_len=8192;
3984 ;;
3985
3986 *)
3987 # Make teststring a little bigger before we do anything with it.
3988 # a 1K string should be a reasonable start.
3989 for i in 1 2 3 4 5 6 7 8 ; do
3990 teststring=$teststring$teststring
3991 done
3992 # If test is not a shell built-in, we'll probably end up computing a
3993 # maximum length that is only half of the actual maximum length, but
3994 # we can't tell.
3995 while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
3996 = "XX$teststring$teststring") >/dev/null 2>&1 &&
3997 test $i != 17 # 1/2 MB should be enough
3998 do
3999 i=`expr $i + 1`
4000 teststring=$teststring$teststring
4001 done
4002 # Only check the string length outside the loop.
4003 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4004 teststring=
4005 # Add a significant safety factor because C++ compilers can tack on massive
4006 # amounts of additional arguments before passing them to the linker.
4007 # It appears as though 1/2 is a usable value.
4008 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4009 ;;
4010 esac
4011
4012fi
4013
4014if test -n $lt_cv_sys_max_cmd_len ; then
4015 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4016echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
4017else
4018 echo "$as_me:$LINENO: result: none" >&5
4019echo "${ECHO_T}none" >&6
4020fi
4021
4022
4023
4024
4025
4026
4027
4028# Check for command to grab the raw symbol name followed by C symbol from nm.
4029echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
4030echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
4031if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
4032 echo $ECHO_N "(cached) $ECHO_C" >&6
4033else
4034
4035# These are sane defaults that work on at least a few old systems.
4036# [They come from Ultrix. What could be older than Ultrix?!! ;)]
4037
4038# Character class describing NM global symbol codes.
4039symcode='[BCDEGRST]'
4040
4041# Regexp to match symbols that can be accessed directly from C.
4042sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
4043
4044# Transform the above into a raw symbol and a C symbol.
4045symxfrm='\1 \2\3 \3'
4046
4047# Transform an extracted symbol line into a proper C declaration
4048lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
4049
4050# Transform an extracted symbol line into symbol name and symbol address
4051lt_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'"
4052
4053# Define system-specific variables.
4054case $host_os in
4055aix*)
4056 symcode='[BCDT]'
4057 ;;
4058cygwin* | mingw* | pw32*)
4059 symcode='[ABCDGISTW]'
4060 ;;
4061hpux*) # Its linker distinguishes data from code symbols
4062 if test "$host_cpu" = ia64; then
4063 symcode='[ABCDEGRST]'
4064 fi
4065 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4066 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'"
4067 ;;
4068irix* | nonstopux*)
4069 symcode='[BCDEGRST]'
4070 ;;
4071osf*)
4072 symcode='[BCDEGQRST]'
4073 ;;
4074solaris* | sysv5*)
4075 symcode='[BDRT]'
4076 ;;
4077sysv4)
4078 symcode='[DFNSTU]'
4079 ;;
4080esac
4081
4082# Handle CRLF in mingw tool chain
4083opt_cr=
4084case $build_os in
4085mingw*)
4086 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
4087 ;;
4088esac
4089
4090# If we're using GNU nm, then use its standard symbol codes.
4091case `$NM -V 2>&1` in
4092*GNU* | *'with BFD'*)
4093 symcode='[ABCDGIRSTW]' ;;
4094esac
4095
4096# Try without a prefix undercore, then with it.
4097for ac_symprfx in "" "_"; do
4098
4099 # Write the raw and C identifiers.
4100 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
4101
4102 # Check to see that the pipe works correctly.
4103 pipe_works=no
4104
4105 rm -f conftest*
4106 cat > conftest.$ac_ext <<_LT_EOF
4107#ifdef __cplusplus
4108extern "C" {
4109#endif
4110char nm_test_var;
4111void nm_test_func(){}
4112#ifdef __cplusplus
4113}
4114#endif
4115int main(){nm_test_var='a';nm_test_func();return(0);}
4116_LT_EOF
4117
4118 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4119 (eval $ac_compile) 2>&5
4120 ac_status=$?
4121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4122 (exit $ac_status); }; then
4123 # Now try to grab the symbols.
4124 nlist=conftest.nm
4125 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
4126 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
4127 ac_status=$?
4128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4129 (exit $ac_status); } && test -s "$nlist"; then
4130 # Try sorting and uniquifying the output.
4131 if sort "$nlist" | uniq > "$nlist"T; then
4132 mv -f "$nlist"T "$nlist"
4133 else
4134 rm -f "$nlist"T
4135 fi
4136
4137 # Make sure that we snagged all the symbols we need.
4138 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
4139 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
4140 cat <<_LT_EOF > conftest.$ac_ext
4141#ifdef __cplusplus
4142extern "C" {
4143#endif
4144
4145_LT_EOF
4146 # Now generate the symbol file.
4147 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
4148
4149 cat <<_LT_EOF >> conftest.$ac_ext
4150#if defined (__STDC__) && __STDC__
4151# define lt_ptr_t void *
4152#else
4153# define lt_ptr_t char *
4154# define const
4155#endif
4156
4157/* The mapping between symbol names and symbols. */
4158const struct {
4159 const char *name;
4160 lt_ptr_t address;
4161}
4162lt_preloaded_symbols[] =
4163{
4164_LT_EOF
4165 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
4166 cat <<\_LT_EOF >> conftest.$ac_ext
4167 {0, (lt_ptr_t) 0}
4168};
4169
4170#ifdef __cplusplus
4171}
4172#endif
4173_LT_EOF
4174 # Now try linking the two files.
4175 mv conftest.$ac_objext conftstm.$ac_objext
4176 lt_save_LIBS="$LIBS"
4177 lt_save_CFLAGS="$CFLAGS"
4178 LIBS="conftstm.$ac_objext"
4179 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
4180 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4181 (eval $ac_link) 2>&5
4182 ac_status=$?
4183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4184 (exit $ac_status); } && test -s conftest${ac_exeext}; then
4185 pipe_works=yes
4186 fi
4187 LIBS="$lt_save_LIBS"
4188 CFLAGS="$lt_save_CFLAGS"
4189 else
4190 echo "cannot find nm_test_func in $nlist" >&5
4191 fi
4192 else
4193 echo "cannot find nm_test_var in $nlist" >&5
4194 fi
4195 else
4196 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
4197 fi
4198 else
4199 echo "$progname: failed program was:" >&5
4200 cat conftest.$ac_ext >&5
4201 fi
4202 rm -f conftest* conftst*
4203
4204 # Do not use the global_symbol_pipe unless it works.
4205 if test "$pipe_works" = yes; then
4206 break
4207 else
4208 lt_cv_sys_global_symbol_pipe=
4209 fi
4210done
4211
4212fi
4213
4214if test -z "$lt_cv_sys_global_symbol_pipe"; then
4215 lt_cv_sys_global_symbol_to_cdecl=
4216fi
4217if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
4218 echo "$as_me:$LINENO: result: failed" >&5
4219echo "${ECHO_T}failed" >&6
4220else
4221 echo "$as_me:$LINENO: result: ok" >&5
4222echo "${ECHO_T}ok" >&6
4223fi
4224
4225
4226
4227
4228
4229
4230
4231
4232
4233
4234
4235
4236
4237
4238
4239
4240
4241
4242
4243
4244
4245
4246
4247
4248
4249
4250
4251
4252
4253
4254
4255
4256
4257
3651# If no C compiler was specified, use CC. 4258# If no C compiler was specified, use CC.
3652LTCC=${LTCC-"$CC"} 4259LTCC=${LTCC-"$CC"}
3653 4260
3654# Allow CC to be a program name with arguments. 4261# Allow CC to be a program name with arguments.
3655compiler=$CC 4262compiler=$CC
3684 fi 4291 fi
3685 rm -rf conftest* 4292 rm -rf conftest*
3686 ;; 4293 ;;
3687*-*-irix6*) 4294*-*-irix6*)
3688 # Find out which ABI we are using. 4295 # Find out which ABI we are using.
3689 echo '#line 3689 "configure"' > conftest.$ac_ext 4296 echo '#line 4296 "configure"' > conftest.$ac_ext
3690 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4297 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3691 (eval $ac_compile) 2>&5 4298 (eval $ac_compile) 2>&5
3692 ac_status=$? 4299 ac_status=$?
3693 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3694 (exit $ac_status); }; then 4301 (exit $ac_status); }; then
3839 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 4446 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3840 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 4447 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3841 CFLAGS="$SAVE_CFLAGS" 4448 CFLAGS="$SAVE_CFLAGS"
3842 fi 4449 fi
3843 ;; 4450 ;;
3844
3845esac 4451esac
3846 4452
3847need_locks="$enable_libtool_lock" 4453need_locks="$enable_libtool_lock"
3848
3849 4454
3850ac_ext=c 4455ac_ext=c
3851ac_cpp='$CPP $CPPFLAGS' 4456ac_cpp='$CPP $CPPFLAGS'
3852ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4457ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3853ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4458ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4320 4925
4321 4926
4322for ac_header in dlfcn.h 4927for ac_header in dlfcn.h
4323do 4928do
4324as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 4929as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4325if eval "test \"\${$as_ac_Header+set}\" = set"; then
4326 echo "$as_me:$LINENO: checking for $ac_header" >&5 4930echo "$as_me:$LINENO: checking for $ac_header" >&5
4327echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 4931echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4328if eval "test \"\${$as_ac_Header+set}\" = set"; then 4932if eval "test \"\${$as_ac_Header+set}\" = set"; then
4329 echo $ECHO_N "(cached) $ECHO_C" >&6 4933 echo $ECHO_N "(cached) $ECHO_C" >&6
4330fi
4331echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4332echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4333else 4934else
4334 # Is the header compilable?
4335echo "$as_me:$LINENO: checking $ac_header usability" >&5
4336echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4337cat >conftest.$ac_ext <<_ACEOF 4935 cat >conftest.$ac_ext <<_ACEOF
4338/* confdefs.h. */ 4936/* confdefs.h. */
4339_ACEOF 4937_ACEOF
4340cat confdefs.h >>conftest.$ac_ext 4938cat confdefs.h >>conftest.$ac_ext
4341cat >>conftest.$ac_ext <<_ACEOF 4939cat >>conftest.$ac_ext <<_ACEOF
4342/* end confdefs.h. */ 4940/* end confdefs.h. */
4343$ac_includes_default 4941$ac_includes_default
4942
4344#include <$ac_header> 4943#include <$ac_header>
4345_ACEOF 4944_ACEOF
4346rm -f conftest.$ac_objext 4945rm -f conftest.$ac_objext
4347if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4946if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4348 (eval $ac_compile) 2>conftest.er1 4947 (eval $ac_compile) 2>conftest.er1
4362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4363 (eval $ac_try) 2>&5 4962 (eval $ac_try) 2>&5
4364 ac_status=$? 4963 ac_status=$?
4365 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4366 (exit $ac_status); }; }; then 4965 (exit $ac_status); }; }; then
4367 ac_header_compiler=yes 4966 eval "$as_ac_Header=yes"
4368else 4967else
4369 echo "$as_me: failed program was:" >&5 4968 echo "$as_me: failed program was:" >&5
4370sed 's/^/| /' conftest.$ac_ext >&5 4969sed 's/^/| /' conftest.$ac_ext >&5
4371 4970
4372ac_header_compiler=no 4971eval "$as_ac_Header=no"
4373fi 4972fi
4374rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4973rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4375echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4376echo "${ECHO_T}$ac_header_compiler" >&6
4377
4378# Is the header present?
4379echo "$as_me:$LINENO: checking $ac_header presence" >&5
4380echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4381cat >conftest.$ac_ext <<_ACEOF
4382/* confdefs.h. */
4383_ACEOF
4384cat confdefs.h >>conftest.$ac_ext
4385cat >>conftest.$ac_ext <<_ACEOF
4386/* end confdefs.h. */
4387#include <$ac_header>
4388_ACEOF
4389if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4390 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4391 ac_status=$?
4392 grep -v '^ *+' conftest.er1 >conftest.err
4393 rm -f conftest.er1
4394 cat conftest.err >&5
4395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4396 (exit $ac_status); } >/dev/null; then
4397 if test -s conftest.err; then
4398 ac_cpp_err=$ac_c_preproc_warn_flag
4399 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4400 else
4401 ac_cpp_err=
4402 fi
4403else
4404 ac_cpp_err=yes
4405fi
4406if test -z "$ac_cpp_err"; then
4407 ac_header_preproc=yes
4408else
4409 echo "$as_me: failed program was:" >&5
4410sed 's/^/| /' conftest.$ac_ext >&5
4411
4412 ac_header_preproc=no
4413fi
4414rm -f conftest.err conftest.$ac_ext
4415echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4416echo "${ECHO_T}$ac_header_preproc" >&6
4417
4418# So? What about this header?
4419case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4420 yes:no: )
4421 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4422echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4423 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4424echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4425 ac_header_preproc=yes
4426 ;;
4427 no:yes:* )
4428 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4429echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4430 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4431echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4432 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4433echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4434 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4435echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4436 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4437echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4438 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4439echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4440 (
4441 cat <<\_ASBOX
4442## ----------------------------------------------------- ##
4443## Report this to crossfire-devel@listserv.real-time.com ##
4444## ----------------------------------------------------- ##
4445_ASBOX
4446 ) |
4447 sed "s/^/$as_me: WARNING: /" >&2
4448 ;;
4449esac
4450echo "$as_me:$LINENO: checking for $ac_header" >&5
4451echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4452if eval "test \"\${$as_ac_Header+set}\" = set"; then
4453 echo $ECHO_N "(cached) $ECHO_C" >&6
4454else
4455 eval "$as_ac_Header=\$ac_header_preproc"
4456fi 4974fi
4457echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 4975echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4458echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 4976echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4459
4460fi
4461if test `eval echo '${'$as_ac_Header'}'` = yes; then 4977if test `eval echo '${'$as_ac_Header'}'` = yes; then
4462 cat >>confdefs.h <<_ACEOF 4978 cat >>confdefs.h <<_ACEOF
4463#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 4979#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4464_ACEOF 4980_ACEOF
4465 4981
4466fi 4982fi
4467 4983
4468done 4984done
4469 4985
4470ac_ext=cc 4986
4471ac_cpp='$CXXCPP $CPPFLAGS' 4987# This can be used to rebuild libtool when needed
4472ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4988LIBTOOL_DEPS="$ltmain"
4473ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4989
4474ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 4990# Always use our own libtool.
4475if test -n "$ac_tool_prefix"; then 4991LIBTOOL='$(SHELL) $(top_builddir)/libtool'
4476 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC 4992
4477 do 4993# Set options
4478 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4994enable_dlopen=no
4479set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4995
4480echo "$as_me:$LINENO: checking for $ac_word" >&5 4996enable_win32_dll=no
4481echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 4997
4998# Check whether --enable-shared or --disable-shared was given.
4482if test "${ac_cv_prog_CXX+set}" = set; then 4999if test "${enable_shared+set}" = set; then
4483 echo $ECHO_N "(cached) $ECHO_C" >&6 5000 enableval="$enable_shared"
4484else 5001 p=${PACKAGE-default}
4485 if test -n "$CXX"; then 5002 case $enableval in
4486 ac_cv_prog_CXX="$CXX" # Let the user override the test. 5003 yes) enable_shared=yes ;;
4487else 5004 no) enable_shared=no ;;
4488as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5005 *)
4489for as_dir in $PATH 5006 enable_shared=no
4490do 5007 # Look at the argument we got. We use all the common list separators.
4491 IFS=$as_save_IFS 5008 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4492 test -z "$as_dir" && as_dir=. 5009 for pkg in $enableval; do
4493 for ac_exec_ext in '' $ac_executable_extensions; do 5010 IFS="$lt_save_ifs"
4494 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5011 if test "X$pkg" = "X$p"; then
4495 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 5012 enable_shared=yes
4496 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4497 break 2
4498 fi
4499done
4500done
4501
4502fi 5013 fi
4503fi
4504CXX=$ac_cv_prog_CXX
4505if test -n "$CXX"; then
4506 echo "$as_me:$LINENO: result: $CXX" >&5
4507echo "${ECHO_T}$CXX" >&6
4508else
4509 echo "$as_me:$LINENO: result: no" >&5
4510echo "${ECHO_T}no" >&6
4511fi
4512
4513 test -n "$CXX" && break
4514 done
4515fi
4516if test -z "$CXX"; then
4517 ac_ct_CXX=$CXX
4518 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4519do
4520 # Extract the first word of "$ac_prog", so it can be a program name with args.
4521set dummy $ac_prog; ac_word=$2
4522echo "$as_me:$LINENO: checking for $ac_word" >&5
4523echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4524if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4525 echo $ECHO_N "(cached) $ECHO_C" >&6
4526else
4527 if test -n "$ac_ct_CXX"; then
4528 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4529else
4530as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4531for as_dir in $PATH
4532do
4533 IFS=$as_save_IFS
4534 test -z "$as_dir" && as_dir=.
4535 for ac_exec_ext in '' $ac_executable_extensions; do
4536 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4537 ac_cv_prog_ac_ct_CXX="$ac_prog"
4538 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4539 break 2
4540 fi
4541done
4542done
4543
4544fi
4545fi
4546ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4547if test -n "$ac_ct_CXX"; then
4548 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4549echo "${ECHO_T}$ac_ct_CXX" >&6
4550else
4551 echo "$as_me:$LINENO: result: no" >&5
4552echo "${ECHO_T}no" >&6
4553fi
4554
4555 test -n "$ac_ct_CXX" && break
4556done
4557test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
4558
4559 CXX=$ac_ct_CXX
4560fi
4561
4562
4563# Provide some information about the compiler.
4564echo "$as_me:$LINENO:" \
4565 "checking for C++ compiler version" >&5
4566ac_compiler=`set X $ac_compile; echo $2`
4567{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4568 (eval $ac_compiler --version </dev/null >&5) 2>&5
4569 ac_status=$?
4570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4571 (exit $ac_status); }
4572{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4573 (eval $ac_compiler -v </dev/null >&5) 2>&5
4574 ac_status=$?
4575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4576 (exit $ac_status); }
4577{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4578 (eval $ac_compiler -V </dev/null >&5) 2>&5
4579 ac_status=$?
4580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4581 (exit $ac_status); }
4582
4583echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4584echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
4585if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4586 echo $ECHO_N "(cached) $ECHO_C" >&6
4587else
4588 cat >conftest.$ac_ext <<_ACEOF
4589/* confdefs.h. */
4590_ACEOF
4591cat confdefs.h >>conftest.$ac_ext
4592cat >>conftest.$ac_ext <<_ACEOF
4593/* end confdefs.h. */
4594
4595int
4596main ()
4597{
4598#ifndef __GNUC__
4599 choke me
4600#endif
4601
4602 ;
4603 return 0;
4604}
4605_ACEOF
4606rm -f conftest.$ac_objext
4607if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4608 (eval $ac_compile) 2>conftest.er1
4609 ac_status=$?
4610 grep -v '^ *+' conftest.er1 >conftest.err
4611 rm -f conftest.er1
4612 cat conftest.err >&5
4613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4614 (exit $ac_status); } &&
4615 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4617 (eval $ac_try) 2>&5
4618 ac_status=$?
4619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4620 (exit $ac_status); }; } &&
4621 { ac_try='test -s conftest.$ac_objext'
4622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4623 (eval $ac_try) 2>&5
4624 ac_status=$?
4625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4626 (exit $ac_status); }; }; then
4627 ac_compiler_gnu=yes
4628else
4629 echo "$as_me: failed program was:" >&5
4630sed 's/^/| /' conftest.$ac_ext >&5
4631
4632ac_compiler_gnu=no
4633fi
4634rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4635ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4636
4637fi
4638echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4639echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
4640GXX=`test $ac_compiler_gnu = yes && echo yes`
4641ac_test_CXXFLAGS=${CXXFLAGS+set}
4642ac_save_CXXFLAGS=$CXXFLAGS
4643CXXFLAGS="-g"
4644echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4645echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
4646if test "${ac_cv_prog_cxx_g+set}" = set; then
4647 echo $ECHO_N "(cached) $ECHO_C" >&6
4648else
4649 cat >conftest.$ac_ext <<_ACEOF
4650/* confdefs.h. */
4651_ACEOF
4652cat confdefs.h >>conftest.$ac_ext
4653cat >>conftest.$ac_ext <<_ACEOF
4654/* end confdefs.h. */
4655
4656int
4657main ()
4658{
4659
4660 ;
4661 return 0;
4662}
4663_ACEOF
4664rm -f conftest.$ac_objext
4665if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4666 (eval $ac_compile) 2>conftest.er1
4667 ac_status=$?
4668 grep -v '^ *+' conftest.er1 >conftest.err
4669 rm -f conftest.er1
4670 cat conftest.err >&5
4671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4672 (exit $ac_status); } &&
4673 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4675 (eval $ac_try) 2>&5
4676 ac_status=$?
4677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4678 (exit $ac_status); }; } &&
4679 { ac_try='test -s conftest.$ac_objext'
4680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4681 (eval $ac_try) 2>&5
4682 ac_status=$?
4683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4684 (exit $ac_status); }; }; then
4685 ac_cv_prog_cxx_g=yes
4686else
4687 echo "$as_me: failed program was:" >&5
4688sed 's/^/| /' conftest.$ac_ext >&5
4689
4690ac_cv_prog_cxx_g=no
4691fi
4692rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4693fi
4694echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4695echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
4696if test "$ac_test_CXXFLAGS" = set; then
4697 CXXFLAGS=$ac_save_CXXFLAGS
4698elif test $ac_cv_prog_cxx_g = yes; then
4699 if test "$GXX" = yes; then
4700 CXXFLAGS="-g -O2"
4701 else
4702 CXXFLAGS="-g"
4703 fi
4704else
4705 if test "$GXX" = yes; then
4706 CXXFLAGS="-O2"
4707 else
4708 CXXFLAGS=
4709 fi
4710fi
4711for ac_declaration in \
4712 '' \
4713 'extern "C" void std::exit (int) throw (); using std::exit;' \
4714 'extern "C" void std::exit (int); using std::exit;' \
4715 'extern "C" void exit (int) throw ();' \
4716 'extern "C" void exit (int);' \
4717 'void exit (int);'
4718do
4719 cat >conftest.$ac_ext <<_ACEOF
4720/* confdefs.h. */
4721_ACEOF
4722cat confdefs.h >>conftest.$ac_ext
4723cat >>conftest.$ac_ext <<_ACEOF
4724/* end confdefs.h. */
4725$ac_declaration
4726#include <stdlib.h>
4727int
4728main ()
4729{
4730exit (42);
4731 ;
4732 return 0;
4733}
4734_ACEOF
4735rm -f conftest.$ac_objext
4736if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4737 (eval $ac_compile) 2>conftest.er1
4738 ac_status=$?
4739 grep -v '^ *+' conftest.er1 >conftest.err
4740 rm -f conftest.er1
4741 cat conftest.err >&5
4742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4743 (exit $ac_status); } &&
4744 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4746 (eval $ac_try) 2>&5
4747 ac_status=$?
4748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4749 (exit $ac_status); }; } &&
4750 { ac_try='test -s conftest.$ac_objext'
4751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4752 (eval $ac_try) 2>&5
4753 ac_status=$?
4754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4755 (exit $ac_status); }; }; then
4756 :
4757else
4758 echo "$as_me: failed program was:" >&5
4759sed 's/^/| /' conftest.$ac_ext >&5
4760
4761continue
4762fi
4763rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4764 cat >conftest.$ac_ext <<_ACEOF
4765/* confdefs.h. */
4766_ACEOF
4767cat confdefs.h >>conftest.$ac_ext
4768cat >>conftest.$ac_ext <<_ACEOF
4769/* end confdefs.h. */
4770$ac_declaration
4771int
4772main ()
4773{
4774exit (42);
4775 ;
4776 return 0;
4777}
4778_ACEOF
4779rm -f conftest.$ac_objext
4780if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4781 (eval $ac_compile) 2>conftest.er1
4782 ac_status=$?
4783 grep -v '^ *+' conftest.er1 >conftest.err
4784 rm -f conftest.er1
4785 cat conftest.err >&5
4786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4787 (exit $ac_status); } &&
4788 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4790 (eval $ac_try) 2>&5
4791 ac_status=$?
4792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4793 (exit $ac_status); }; } &&
4794 { ac_try='test -s conftest.$ac_objext'
4795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4796 (eval $ac_try) 2>&5
4797 ac_status=$?
4798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4799 (exit $ac_status); }; }; then
4800 break
4801else
4802 echo "$as_me: failed program was:" >&5
4803sed 's/^/| /' conftest.$ac_ext >&5
4804
4805fi
4806rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4807done
4808rm -f conftest*
4809if test -n "$ac_declaration"; then
4810 echo '#ifdef __cplusplus' >>confdefs.h
4811 echo $ac_declaration >>confdefs.h
4812 echo '#endif' >>confdefs.h
4813fi
4814
4815ac_ext=cc
4816ac_cpp='$CXXCPP $CPPFLAGS'
4817ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4818ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4819ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4820
4821depcc="$CXX" am_compiler_list=
4822
4823echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4824echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4825if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4826 echo $ECHO_N "(cached) $ECHO_C" >&6
4827else
4828 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4829 # We make a subdir and do the tests there. Otherwise we can end up
4830 # making bogus files that we don't know about and never remove. For
4831 # instance it was reported that on HP-UX the gcc test will end up
4832 # making a dummy file named `D' -- because `-MD' means `put the output
4833 # in D'.
4834 mkdir conftest.dir
4835 # Copy depcomp to subdir because otherwise we won't find it if we're
4836 # using a relative directory.
4837 cp "$am_depcomp" conftest.dir
4838 cd conftest.dir
4839 # We will build objects and dependencies in a subdirectory because
4840 # it helps to detect inapplicable dependency modes. For instance
4841 # both Tru64's cc and ICC support -MD to output dependencies as a
4842 # side effect of compilation, but ICC will put the dependencies in
4843 # the current directory while Tru64 will put them in the object
4844 # directory.
4845 mkdir sub
4846
4847 am_cv_CXX_dependencies_compiler_type=none
4848 if test "$am_compiler_list" = ""; then
4849 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4850 fi
4851 for depmode in $am_compiler_list; do
4852 # Setup a source with many dependencies, because some compilers
4853 # like to wrap large dependency lists on column 80 (with \), and
4854 # we should not choose a depcomp mode which is confused by this.
4855 #
4856 # We need to recreate these files for each test, as the compiler may
4857 # overwrite some of them when testing with obscure command lines.
4858 # This happens at least with the AIX C compiler.
4859 : > sub/conftest.c
4860 for i in 1 2 3 4 5 6; do
4861 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4862 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4863 # Solaris 8's {/usr,}/bin/sh.
4864 touch sub/conftst$i.h
4865 done 5014 done
4866 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 5015 IFS="$lt_save_ifs"
4867
4868 case $depmode in
4869 nosideeffect)
4870 # after this tag, mechanisms are not by side-effect, so they'll
4871 # only be used when explicitly requested
4872 if test "x$enable_dependency_tracking" = xyes; then
4873 continue
4874 else
4875 break
4876 fi
4877 ;; 5016 ;;
4878 none) break ;;
4879 esac 5017 esac
4880 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4881 # mode. It turns out that the SunPro C++ compiler does not properly
4882 # handle `-M -o', and we need to detect this.
4883 if depmode=$depmode \
4884 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4885 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4886 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4887 >/dev/null 2>conftest.err &&
4888 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4889 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4890 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4891 # icc doesn't choke on unknown options, it will just issue warnings
4892 # or remarks (even with -Werror). So we grep stderr for any message
4893 # that says an option was ignored or not supported.
4894 # When given -MP, icc 7.0 and 7.1 complain thusly:
4895 # icc: Command line warning: ignoring option '-M'; no argument required
4896 # The diagnosis changed in icc 8.0:
4897 # icc: Command line remark: option '-MP' not supported
4898 if (grep 'ignoring option' conftest.err ||
4899 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4900 am_cv_CXX_dependencies_compiler_type=$depmode
4901 break
4902 fi
4903 fi
4904 done
4905
4906 cd ..
4907 rm -rf conftest.dir
4908else
4909 am_cv_CXX_dependencies_compiler_type=none
4910fi
4911
4912fi
4913echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
4914echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
4915CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4916
4917
4918
4919if
4920 test "x$enable_dependency_tracking" != xno \
4921 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4922 am__fastdepCXX_TRUE=
4923 am__fastdepCXX_FALSE='#'
4924else
4925 am__fastdepCXX_TRUE='#'
4926 am__fastdepCXX_FALSE=
4927fi
4928
4929
4930ac_ext=cc
4931ac_cpp='$CXXCPP $CPPFLAGS'
4932ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4933ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4934ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4935echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4936echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4937if test -z "$CXXCPP"; then
4938 if test "${ac_cv_prog_CXXCPP+set}" = set; then
4939 echo $ECHO_N "(cached) $ECHO_C" >&6
4940else
4941 # Double quotes because CXXCPP needs to be expanded
4942 for CXXCPP in "$CXX -E" "/lib/cpp"
4943 do
4944 ac_preproc_ok=false
4945for ac_cxx_preproc_warn_flag in '' yes
4946do
4947 # Use a header file that comes with gcc, so configuring glibc
4948 # with a fresh cross-compiler works.
4949 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4950 # <limits.h> exists even on freestanding compilers.
4951 # On the NeXT, cc -E runs the code through the compiler's parser,
4952 # not just through cpp. "Syntax error" is here to catch this case.
4953 cat >conftest.$ac_ext <<_ACEOF
4954/* confdefs.h. */
4955_ACEOF
4956cat confdefs.h >>conftest.$ac_ext
4957cat >>conftest.$ac_ext <<_ACEOF
4958/* end confdefs.h. */
4959#ifdef __STDC__
4960# include <limits.h>
4961#else 5018else
4962# include <assert.h> 5019 enable_shared=yes
4963#endif
4964 Syntax error
4965_ACEOF
4966if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4967 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4968 ac_status=$?
4969 grep -v '^ *+' conftest.er1 >conftest.err
4970 rm -f conftest.er1
4971 cat conftest.err >&5
4972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4973 (exit $ac_status); } >/dev/null; then
4974 if test -s conftest.err; then
4975 ac_cpp_err=$ac_cxx_preproc_warn_flag
4976 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4977 else
4978 ac_cpp_err=
4979 fi
4980else
4981 ac_cpp_err=yes
4982fi 5020fi;
4983if test -z "$ac_cpp_err"; then
4984 :
4985else
4986 echo "$as_me: failed program was:" >&5
4987sed 's/^/| /' conftest.$ac_ext >&5
4988 5021
4989 # Broken: fails on valid input.
4990continue
4991fi
4992rm -f conftest.err conftest.$ac_ext
4993 5022
4994 # OK, works on sane cases. Now check whether non-existent headers
4995 # can be detected and how.
4996 cat >conftest.$ac_ext <<_ACEOF
4997/* confdefs.h. */
4998_ACEOF
4999cat confdefs.h >>conftest.$ac_ext
5000cat >>conftest.$ac_ext <<_ACEOF
5001/* end confdefs.h. */
5002#include <ac_nonexistent.h>
5003_ACEOF
5004if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5005 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5006 ac_status=$?
5007 grep -v '^ *+' conftest.er1 >conftest.err
5008 rm -f conftest.er1
5009 cat conftest.err >&5
5010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5011 (exit $ac_status); } >/dev/null; then
5012 if test -s conftest.err; then
5013 ac_cpp_err=$ac_cxx_preproc_warn_flag
5014 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5015 else
5016 ac_cpp_err=
5017 fi
5018else
5019 ac_cpp_err=yes
5020fi
5021if test -z "$ac_cpp_err"; then
5022 # Broken: success on invalid input.
5023continue
5024else
5025 echo "$as_me: failed program was:" >&5
5026sed 's/^/| /' conftest.$ac_ext >&5
5027 5023
5028 # Passes both tests.
5029ac_preproc_ok=:
5030break
5031fi
5032rm -f conftest.err conftest.$ac_ext
5033 5024
5034done
5035# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5036rm -f conftest.err conftest.$ac_ext
5037if $ac_preproc_ok; then
5038 break
5039fi
5040 5025
5041 done
5042 ac_cv_prog_CXXCPP=$CXXCPP
5043 5026
5044fi
5045 CXXCPP=$ac_cv_prog_CXXCPP
5046else
5047 ac_cv_prog_CXXCPP=$CXXCPP
5048fi
5049echo "$as_me:$LINENO: result: $CXXCPP" >&5
5050echo "${ECHO_T}$CXXCPP" >&6
5051ac_preproc_ok=false
5052for ac_cxx_preproc_warn_flag in '' yes
5053do
5054 # Use a header file that comes with gcc, so configuring glibc
5055 # with a fresh cross-compiler works.
5056 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5057 # <limits.h> exists even on freestanding compilers.
5058 # On the NeXT, cc -E runs the code through the compiler's parser,
5059 # not just through cpp. "Syntax error" is here to catch this case.
5060 cat >conftest.$ac_ext <<_ACEOF
5061/* confdefs.h. */
5062_ACEOF
5063cat confdefs.h >>conftest.$ac_ext
5064cat >>conftest.$ac_ext <<_ACEOF
5065/* end confdefs.h. */
5066#ifdef __STDC__
5067# include <limits.h>
5068#else
5069# include <assert.h>
5070#endif
5071 Syntax error
5072_ACEOF
5073if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5074 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5075 ac_status=$?
5076 grep -v '^ *+' conftest.er1 >conftest.err
5077 rm -f conftest.er1
5078 cat conftest.err >&5
5079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5080 (exit $ac_status); } >/dev/null; then
5081 if test -s conftest.err; then
5082 ac_cpp_err=$ac_cxx_preproc_warn_flag
5083 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5084 else
5085 ac_cpp_err=
5086 fi
5087else
5088 ac_cpp_err=yes
5089fi
5090if test -z "$ac_cpp_err"; then
5091 :
5092else
5093 echo "$as_me: failed program was:" >&5
5094sed 's/^/| /' conftest.$ac_ext >&5
5095 5027
5096 # Broken: fails on valid input.
5097continue
5098fi
5099rm -f conftest.err conftest.$ac_ext
5100 5028
5101 # OK, works on sane cases. Now check whether non-existent headers 5029# Check whether --enable-static or --disable-static was given.
5102 # can be detected and how. 5030if test "${enable_static+set}" = set; then
5103 cat >conftest.$ac_ext <<_ACEOF 5031 enableval="$enable_static"
5104/* confdefs.h. */ 5032 p=${PACKAGE-default}
5105_ACEOF 5033 case $enableval in
5106cat confdefs.h >>conftest.$ac_ext 5034 yes) enable_static=yes ;;
5107cat >>conftest.$ac_ext <<_ACEOF 5035 no) enable_static=no ;;
5108/* end confdefs.h. */ 5036 *)
5109#include <ac_nonexistent.h> 5037 enable_static=no
5110_ACEOF 5038 # Look at the argument we got. We use all the common list separators.
5111if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 5039 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5112 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 5040 for pkg in $enableval; do
5113 ac_status=$? 5041 IFS="$lt_save_ifs"
5114 grep -v '^ *+' conftest.er1 >conftest.err 5042 if test "X$pkg" = "X$p"; then
5115 rm -f conftest.er1 5043 enable_static=yes
5116 cat conftest.err >&5
5117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5118 (exit $ac_status); } >/dev/null; then
5119 if test -s conftest.err; then
5120 ac_cpp_err=$ac_cxx_preproc_warn_flag
5121 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5122 else
5123 ac_cpp_err=
5124 fi
5125else
5126 ac_cpp_err=yes
5127fi
5128if test -z "$ac_cpp_err"; then
5129 # Broken: success on invalid input.
5130continue
5131else
5132 echo "$as_me: failed program was:" >&5
5133sed 's/^/| /' conftest.$ac_ext >&5
5134
5135 # Passes both tests.
5136ac_preproc_ok=:
5137break
5138fi
5139rm -f conftest.err conftest.$ac_ext
5140
5141done
5142# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5143rm -f conftest.err conftest.$ac_ext
5144if $ac_preproc_ok; then
5145 :
5146else
5147 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5148See \`config.log' for more details." >&5
5149echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5150See \`config.log' for more details." >&2;}
5151 { (exit 1); exit 1; }; }
5152fi
5153
5154ac_ext=cc
5155ac_cpp='$CXXCPP $CPPFLAGS'
5156ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5157ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5158ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5159
5160
5161ac_ext=f
5162ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5163ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5164ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5165if test -n "$ac_tool_prefix"; then
5166 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5167 do
5168 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5169set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5170echo "$as_me:$LINENO: checking for $ac_word" >&5
5171echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5172if test "${ac_cv_prog_F77+set}" = set; then
5173 echo $ECHO_N "(cached) $ECHO_C" >&6
5174else
5175 if test -n "$F77"; then
5176 ac_cv_prog_F77="$F77" # Let the user override the test.
5177else
5178as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5179for as_dir in $PATH
5180do
5181 IFS=$as_save_IFS
5182 test -z "$as_dir" && as_dir=.
5183 for ac_exec_ext in '' $ac_executable_extensions; do
5184 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5185 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5186 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5187 break 2
5188 fi
5189done
5190done
5191
5192fi
5193fi
5194F77=$ac_cv_prog_F77
5195if test -n "$F77"; then
5196 echo "$as_me:$LINENO: result: $F77" >&5
5197echo "${ECHO_T}$F77" >&6
5198else
5199 echo "$as_me:$LINENO: result: no" >&5
5200echo "${ECHO_T}no" >&6
5201fi
5202
5203 test -n "$F77" && break
5204 done
5205fi
5206if test -z "$F77"; then
5207 ac_ct_F77=$F77
5208 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5209do
5210 # Extract the first word of "$ac_prog", so it can be a program name with args.
5211set dummy $ac_prog; ac_word=$2
5212echo "$as_me:$LINENO: checking for $ac_word" >&5
5213echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5214if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5215 echo $ECHO_N "(cached) $ECHO_C" >&6
5216else
5217 if test -n "$ac_ct_F77"; then
5218 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5219else
5220as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5221for as_dir in $PATH
5222do
5223 IFS=$as_save_IFS
5224 test -z "$as_dir" && as_dir=.
5225 for ac_exec_ext in '' $ac_executable_extensions; do
5226 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5227 ac_cv_prog_ac_ct_F77="$ac_prog"
5228 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5229 break 2
5230 fi
5231done
5232done
5233
5234fi
5235fi
5236ac_ct_F77=$ac_cv_prog_ac_ct_F77
5237if test -n "$ac_ct_F77"; then
5238 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5239echo "${ECHO_T}$ac_ct_F77" >&6
5240else
5241 echo "$as_me:$LINENO: result: no" >&5
5242echo "${ECHO_T}no" >&6
5243fi
5244
5245 test -n "$ac_ct_F77" && break
5246done
5247
5248 F77=$ac_ct_F77
5249fi
5250
5251
5252# Provide some information about the compiler.
5253echo "$as_me:5253:" \
5254 "checking for Fortran 77 compiler version" >&5
5255ac_compiler=`set X $ac_compile; echo $2`
5256{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5257 (eval $ac_compiler --version </dev/null >&5) 2>&5
5258 ac_status=$?
5259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5260 (exit $ac_status); }
5261{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5262 (eval $ac_compiler -v </dev/null >&5) 2>&5
5263 ac_status=$?
5264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5265 (exit $ac_status); }
5266{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5267 (eval $ac_compiler -V </dev/null >&5) 2>&5
5268 ac_status=$?
5269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5270 (exit $ac_status); }
5271rm -f a.out
5272
5273# If we don't use `.F' as extension, the preprocessor is not run on the
5274# input file. (Note that this only needs to work for GNU compilers.)
5275ac_save_ext=$ac_ext
5276ac_ext=F
5277echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5278echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5279if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5280 echo $ECHO_N "(cached) $ECHO_C" >&6
5281else
5282 cat >conftest.$ac_ext <<_ACEOF
5283 program main
5284#ifndef __GNUC__
5285 choke me
5286#endif
5287
5288 end
5289_ACEOF
5290rm -f conftest.$ac_objext
5291if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5292 (eval $ac_compile) 2>conftest.er1
5293 ac_status=$?
5294 grep -v '^ *+' conftest.er1 >conftest.err
5295 rm -f conftest.er1
5296 cat conftest.err >&5
5297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5298 (exit $ac_status); } &&
5299 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
5300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5301 (eval $ac_try) 2>&5
5302 ac_status=$?
5303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5304 (exit $ac_status); }; } &&
5305 { ac_try='test -s conftest.$ac_objext'
5306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5307 (eval $ac_try) 2>&5
5308 ac_status=$?
5309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5310 (exit $ac_status); }; }; then
5311 ac_compiler_gnu=yes
5312else
5313 echo "$as_me: failed program was:" >&5
5314sed 's/^/| /' conftest.$ac_ext >&5
5315
5316ac_compiler_gnu=no
5317fi
5318rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5319ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5320
5321fi
5322echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5323echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5324ac_ext=$ac_save_ext
5325ac_test_FFLAGS=${FFLAGS+set}
5326ac_save_FFLAGS=$FFLAGS
5327FFLAGS=
5328echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5329echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5330if test "${ac_cv_prog_f77_g+set}" = set; then
5331 echo $ECHO_N "(cached) $ECHO_C" >&6
5332else
5333 FFLAGS=-g
5334cat >conftest.$ac_ext <<_ACEOF
5335 program main
5336
5337 end
5338_ACEOF
5339rm -f conftest.$ac_objext
5340if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5341 (eval $ac_compile) 2>conftest.er1
5342 ac_status=$?
5343 grep -v '^ *+' conftest.er1 >conftest.err
5344 rm -f conftest.er1
5345 cat conftest.err >&5
5346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5347 (exit $ac_status); } &&
5348 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
5349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5350 (eval $ac_try) 2>&5
5351 ac_status=$?
5352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5353 (exit $ac_status); }; } &&
5354 { ac_try='test -s conftest.$ac_objext'
5355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5356 (eval $ac_try) 2>&5
5357 ac_status=$?
5358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5359 (exit $ac_status); }; }; then
5360 ac_cv_prog_f77_g=yes
5361else
5362 echo "$as_me: failed program was:" >&5
5363sed 's/^/| /' conftest.$ac_ext >&5
5364
5365ac_cv_prog_f77_g=no
5366fi
5367rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5368
5369fi
5370echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5371echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5372if test "$ac_test_FFLAGS" = set; then
5373 FFLAGS=$ac_save_FFLAGS
5374elif test $ac_cv_prog_f77_g = yes; then
5375 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5376 FFLAGS="-g -O2"
5377 else
5378 FFLAGS="-g"
5379 fi
5380else
5381 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5382 FFLAGS="-O2"
5383 else
5384 FFLAGS=
5385 fi
5386fi
5387
5388G77=`test $ac_compiler_gnu = yes && echo yes`
5389ac_ext=c
5390ac_cpp='$CPP $CPPFLAGS'
5391ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5392ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5393ac_compiler_gnu=$ac_cv_c_compiler_gnu
5394
5395
5396
5397# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5398
5399# find the maximum length of command line arguments
5400echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5401echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5402if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5403 echo $ECHO_N "(cached) $ECHO_C" >&6
5404else
5405 i=0
5406 teststring="ABCD"
5407
5408 case $build_os in
5409 msdosdjgpp*)
5410 # On DJGPP, this test can blow up pretty badly due to problems in libc
5411 # (any single argument exceeding 2000 bytes causes a buffer overrun
5412 # during glob expansion). Even if it were fixed, the result of this
5413 # check would be larger than it should be.
5414 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5415 ;;
5416
5417 gnu*)
5418 # Under GNU Hurd, this test is not required because there is
5419 # no limit to the length of command line arguments.
5420 # Libtool will interpret -1 as no limit whatsoever
5421 lt_cv_sys_max_cmd_len=-1;
5422 ;;
5423
5424 cygwin* | mingw*)
5425 # On Win9x/ME, this test blows up -- it succeeds, but takes
5426 # about 5 minutes as the teststring grows exponentially.
5427 # Worse, since 9x/ME are not pre-emptively multitasking,
5428 # you end up with a "frozen" computer, even though with patience
5429 # the test eventually succeeds (with a max line length of 256k).
5430 # Instead, let's just punt: use the minimum linelength reported by
5431 # all of the supported platforms: 8192 (on NT/2K/XP).
5432 lt_cv_sys_max_cmd_len=8192;
5433 ;;
5434
5435 amigaos*)
5436 # On AmigaOS with pdksh, this test takes hours, literally.
5437 # So we just punt and use a minimum line length of 8192.
5438 lt_cv_sys_max_cmd_len=8192;
5439 ;;
5440
5441 *)
5442 # If test is not a shell built-in, we'll probably end up computing a
5443 # maximum length that is only half of the actual maximum length, but
5444 # we can't tell.
5445 while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5446 = "XX$teststring") >/dev/null 2>&1 &&
5447 new_result=`expr "X$teststring" : ".*" 2>&1` &&
5448 lt_cv_sys_max_cmd_len=$new_result &&
5449 test $i != 17 # 1/2 MB should be enough
5450 do
5451 i=`expr $i + 1`
5452 teststring=$teststring$teststring
5453 done
5454 teststring=
5455 # Add a significant safety factor because C++ compilers can tack on massive
5456 # amounts of additional arguments before passing them to the linker.
5457 # It appears as though 1/2 is a usable value.
5458 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5459 ;;
5460 esac
5461
5462fi
5463
5464if test -n $lt_cv_sys_max_cmd_len ; then
5465 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5466echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5467else
5468 echo "$as_me:$LINENO: result: none" >&5
5469echo "${ECHO_T}none" >&6
5470fi
5471
5472
5473
5474
5475# Check for command to grab the raw symbol name followed by C symbol from nm.
5476echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5477echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5478if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5479 echo $ECHO_N "(cached) $ECHO_C" >&6
5480else
5481
5482# These are sane defaults that work on at least a few old systems.
5483# [They come from Ultrix. What could be older than Ultrix?!! ;)]
5484
5485# Character class describing NM global symbol codes.
5486symcode='[BCDEGRST]'
5487
5488# Regexp to match symbols that can be accessed directly from C.
5489sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5490
5491# Transform the above into a raw symbol and a C symbol.
5492symxfrm='\1 \2\3 \3'
5493
5494# Transform an extracted symbol line into a proper C declaration
5495lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5496
5497# Transform an extracted symbol line into symbol name and symbol address
5498lt_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'"
5499
5500# Define system-specific variables.
5501case $host_os in
5502aix*)
5503 symcode='[BCDT]'
5504 ;;
5505cygwin* | mingw* | pw32*)
5506 symcode='[ABCDGISTW]'
5507 ;;
5508hpux*) # Its linker distinguishes data from code symbols
5509 if test "$host_cpu" = ia64; then
5510 symcode='[ABCDEGRST]'
5511 fi
5512 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5513 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'"
5514 ;;
5515irix* | nonstopux*)
5516 symcode='[BCDEGRST]'
5517 ;;
5518osf*)
5519 symcode='[BCDEGQRST]'
5520 ;;
5521solaris* | sysv5*)
5522 symcode='[BDRT]'
5523 ;;
5524sysv4)
5525 symcode='[DFNSTU]'
5526 ;;
5527esac
5528
5529# Handle CRLF in mingw tool chain
5530opt_cr=
5531case $build_os in
5532mingw*)
5533 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5534 ;;
5535esac
5536
5537# If we're using GNU nm, then use its standard symbol codes.
5538case `$NM -V 2>&1` in
5539*GNU* | *'with BFD'*)
5540 symcode='[ABCDGIRSTW]' ;;
5541esac
5542
5543# Try without a prefix undercore, then with it.
5544for ac_symprfx in "" "_"; do
5545
5546 # Write the raw and C identifiers.
5547 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
5548
5549 # Check to see that the pipe works correctly.
5550 pipe_works=no
5551
5552 rm -f conftest*
5553 cat > conftest.$ac_ext <<EOF
5554#ifdef __cplusplus
5555extern "C" {
5556#endif
5557char nm_test_var;
5558void nm_test_func(){}
5559#ifdef __cplusplus
5560}
5561#endif
5562int main(){nm_test_var='a';nm_test_func();return(0);}
5563EOF
5564
5565 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5566 (eval $ac_compile) 2>&5
5567 ac_status=$?
5568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5569 (exit $ac_status); }; then
5570 # Now try to grab the symbols.
5571 nlist=conftest.nm
5572 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5573 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5574 ac_status=$?
5575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5576 (exit $ac_status); } && test -s "$nlist"; then
5577 # Try sorting and uniquifying the output.
5578 if sort "$nlist" | uniq > "$nlist"T; then
5579 mv -f "$nlist"T "$nlist"
5580 else
5581 rm -f "$nlist"T
5582 fi
5583
5584 # Make sure that we snagged all the symbols we need.
5585 if grep ' nm_test_var$' "$nlist" >/dev/null; then
5586 if grep ' nm_test_func$' "$nlist" >/dev/null; then
5587 cat <<EOF > conftest.$ac_ext
5588#ifdef __cplusplus
5589extern "C" {
5590#endif
5591
5592EOF
5593 # Now generate the symbol file.
5594 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5595
5596 cat <<EOF >> conftest.$ac_ext
5597#if defined (__STDC__) && __STDC__
5598# define lt_ptr_t void *
5599#else
5600# define lt_ptr_t char *
5601# define const
5602#endif
5603
5604/* The mapping between symbol names and symbols. */
5605const struct {
5606 const char *name;
5607 lt_ptr_t address;
5608}
5609lt_preloaded_symbols[] =
5610{
5611EOF
5612 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5613 cat <<\EOF >> conftest.$ac_ext
5614 {0, (lt_ptr_t) 0}
5615};
5616
5617#ifdef __cplusplus
5618}
5619#endif
5620EOF
5621 # Now try linking the two files.
5622 mv conftest.$ac_objext conftstm.$ac_objext
5623 lt_save_LIBS="$LIBS"
5624 lt_save_CFLAGS="$CFLAGS"
5625 LIBS="conftstm.$ac_objext"
5626 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5627 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5628 (eval $ac_link) 2>&5
5629 ac_status=$?
5630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5631 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5632 pipe_works=yes
5633 fi
5634 LIBS="$lt_save_LIBS"
5635 CFLAGS="$lt_save_CFLAGS"
5636 else
5637 echo "cannot find nm_test_func in $nlist" >&5
5638 fi 5044 fi
5639 else 5045 done
5640 echo "cannot find nm_test_var in $nlist" >&5 5046 IFS="$lt_save_ifs"
5641 fi 5047 ;;
5642 else 5048 esac
5643 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5644 fi
5645 else 5049else
5646 echo "$progname: failed program was:" >&5 5050 enable_static=yes
5647 cat conftest.$ac_ext >&5
5648 fi
5649 rm -f conftest* conftst*
5650
5651 # Do not use the global_symbol_pipe unless it works.
5652 if test "$pipe_works" = yes; then
5653 break
5654 else
5655 lt_cv_sys_global_symbol_pipe=
5656 fi
5657done
5658
5659fi 5051fi;
5660 5052
5661if test -z "$lt_cv_sys_global_symbol_pipe"; then 5053
5662 lt_cv_sys_global_symbol_to_cdecl= 5054
5055
5056
5057
5058
5059
5060
5061# Check whether --with-pic or --without-pic was given.
5062if test "${with_pic+set}" = set; then
5063 withval="$with_pic"
5064 pic_mode="$withval"
5065else
5066 pic_mode=default
5663fi 5067fi;
5664if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 5068
5665 echo "$as_me:$LINENO: result: failed" >&5 5069test -z "$pic_mode" && pic_mode=default
5666echo "${ECHO_T}failed" >&6 5070
5071
5072
5073
5074
5075
5076
5077# Check whether --enable-fast-install or --disable-fast-install was given.
5078if test "${enable_fast_install+set}" = set; then
5079 enableval="$enable_fast_install"
5080 p=${PACKAGE-default}
5081 case $enableval in
5082 yes) enable_fast_install=yes ;;
5083 no) enable_fast_install=no ;;
5084 *)
5085 enable_fast_install=no
5086 # Look at the argument we got. We use all the common list separators.
5087 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5088 for pkg in $enableval; do
5089 IFS="$lt_save_ifs"
5090 if test "X$pkg" = "X$p"; then
5091 enable_fast_install=yes
5092 fi
5093 done
5094 IFS="$lt_save_ifs"
5095 ;;
5096 esac
5667else 5097else
5668 echo "$as_me:$LINENO: result: ok" >&5 5098 enable_fast_install=yes
5669echo "${ECHO_T}ok" >&6 5099fi;
5100
5101
5102
5103
5104
5105
5106
5107
5108
5109
5110
5111
5112
5113
5114
5115
5116test -z "$LN_S" && LN_S="ln -s"
5117
5118
5119
5120
5121
5122
5123
5124
5125
5126
5127
5128
5129
5130
5131if test -n "${ZSH_VERSION+set}" ; then
5132 setopt NO_GLOB_SUBST
5670fi 5133fi
5671 5134
5672echo "$as_me:$LINENO: checking for objdir" >&5 5135echo "$as_me:$LINENO: checking for objdir" >&5
5673echo $ECHO_N "checking for objdir... $ECHO_C" >&6 5136echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5674if test "${lt_cv_objdir+set}" = set; then 5137if test "${lt_cv_objdir+set}" = set; then
5685rmdir .libs 2>/dev/null 5148rmdir .libs 2>/dev/null
5686fi 5149fi
5687echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 5150echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5688echo "${ECHO_T}$lt_cv_objdir" >&6 5151echo "${ECHO_T}$lt_cv_objdir" >&6
5689objdir=$lt_cv_objdir 5152objdir=$lt_cv_objdir
5153
5154
5155
5156
5157
5158
5159
5160
5161
5162
5163
5164
5165
5166
5167
5690 5168
5691 5169
5692 5170
5693 5171
5694 5172
5714 5192
5715# Sed substitution to delay expansion of an escaped shell variable in a 5193# Sed substitution to delay expansion of an escaped shell variable in a
5716# double_quote_subst'ed string. 5194# double_quote_subst'ed string.
5717delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 5195delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5718 5196
5197# Sed substitution to delay expansion of an escaped single quote.
5198delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5199
5719# Sed substitution to avoid accidental globbing in evaled expressions 5200# Sed substitution to avoid accidental globbing in evaled expressions
5720no_glob_subst='s/\*/\\\*/g' 5201no_glob_subst='s/\*/\\\*/g'
5721 5202
5722# Constants: 5203# Constants:
5723rm="rm -f" 5204rm="rm -f"
5724 5205
5725# Global variables: 5206# Global variables:
5726default_ofile=libtool 5207default_ofile=libtool
5208ofile="$default_ofile"
5727can_build_shared=yes 5209can_build_shared=yes
5728 5210
5729# All known linkers require a `.a' archive for static linking (except M$VC, 5211# All known linkers require a `.a' archive for static linking (except M$VC,
5730# which needs '.lib'). 5212# which needs '.lib').
5731libext=a 5213libext=a
5732ltmain="$ac_aux_dir/ltmain.sh" 5214
5733ofile="$default_ofile"
5734with_gnu_ld="$lt_cv_prog_gnu_ld" 5215with_gnu_ld="$lt_cv_prog_gnu_ld"
5735
5736if test -n "$ac_tool_prefix"; then
5737 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5738set dummy ${ac_tool_prefix}ar; ac_word=$2
5739echo "$as_me:$LINENO: checking for $ac_word" >&5
5740echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5741if test "${ac_cv_prog_AR+set}" = set; then
5742 echo $ECHO_N "(cached) $ECHO_C" >&6
5743else
5744 if test -n "$AR"; then
5745 ac_cv_prog_AR="$AR" # Let the user override the test.
5746else
5747as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5748for as_dir in $PATH
5749do
5750 IFS=$as_save_IFS
5751 test -z "$as_dir" && as_dir=.
5752 for ac_exec_ext in '' $ac_executable_extensions; do
5753 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5754 ac_cv_prog_AR="${ac_tool_prefix}ar"
5755 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5756 break 2
5757 fi
5758done
5759done
5760
5761fi
5762fi
5763AR=$ac_cv_prog_AR
5764if test -n "$AR"; then
5765 echo "$as_me:$LINENO: result: $AR" >&5
5766echo "${ECHO_T}$AR" >&6
5767else
5768 echo "$as_me:$LINENO: result: no" >&5
5769echo "${ECHO_T}no" >&6
5770fi
5771
5772fi
5773if test -z "$ac_cv_prog_AR"; then
5774 ac_ct_AR=$AR
5775 # Extract the first word of "ar", so it can be a program name with args.
5776set dummy ar; ac_word=$2
5777echo "$as_me:$LINENO: checking for $ac_word" >&5
5778echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5779if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5780 echo $ECHO_N "(cached) $ECHO_C" >&6
5781else
5782 if test -n "$ac_ct_AR"; then
5783 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5784else
5785as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5786for as_dir in $PATH
5787do
5788 IFS=$as_save_IFS
5789 test -z "$as_dir" && as_dir=.
5790 for ac_exec_ext in '' $ac_executable_extensions; do
5791 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5792 ac_cv_prog_ac_ct_AR="ar"
5793 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5794 break 2
5795 fi
5796done
5797done
5798
5799 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5800fi
5801fi
5802ac_ct_AR=$ac_cv_prog_ac_ct_AR
5803if test -n "$ac_ct_AR"; then
5804 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5805echo "${ECHO_T}$ac_ct_AR" >&6
5806else
5807 echo "$as_me:$LINENO: result: no" >&5
5808echo "${ECHO_T}no" >&6
5809fi
5810
5811 AR=$ac_ct_AR
5812else
5813 AR="$ac_cv_prog_AR"
5814fi
5815
5816if test -n "$ac_tool_prefix"; then
5817 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5818set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5819echo "$as_me:$LINENO: checking for $ac_word" >&5
5820echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5821if test "${ac_cv_prog_RANLIB+set}" = set; then
5822 echo $ECHO_N "(cached) $ECHO_C" >&6
5823else
5824 if test -n "$RANLIB"; then
5825 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5826else
5827as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5828for as_dir in $PATH
5829do
5830 IFS=$as_save_IFS
5831 test -z "$as_dir" && as_dir=.
5832 for ac_exec_ext in '' $ac_executable_extensions; do
5833 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5834 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5835 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5836 break 2
5837 fi
5838done
5839done
5840
5841fi
5842fi
5843RANLIB=$ac_cv_prog_RANLIB
5844if test -n "$RANLIB"; then
5845 echo "$as_me:$LINENO: result: $RANLIB" >&5
5846echo "${ECHO_T}$RANLIB" >&6
5847else
5848 echo "$as_me:$LINENO: result: no" >&5
5849echo "${ECHO_T}no" >&6
5850fi
5851
5852fi
5853if test -z "$ac_cv_prog_RANLIB"; then
5854 ac_ct_RANLIB=$RANLIB
5855 # Extract the first word of "ranlib", so it can be a program name with args.
5856set dummy ranlib; ac_word=$2
5857echo "$as_me:$LINENO: checking for $ac_word" >&5
5858echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5859if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5860 echo $ECHO_N "(cached) $ECHO_C" >&6
5861else
5862 if test -n "$ac_ct_RANLIB"; then
5863 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5864else
5865as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5866for as_dir in $PATH
5867do
5868 IFS=$as_save_IFS
5869 test -z "$as_dir" && as_dir=.
5870 for ac_exec_ext in '' $ac_executable_extensions; do
5871 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5872 ac_cv_prog_ac_ct_RANLIB="ranlib"
5873 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5874 break 2
5875 fi
5876done
5877done
5878
5879 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5880fi
5881fi
5882ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5883if test -n "$ac_ct_RANLIB"; then
5884 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5885echo "${ECHO_T}$ac_ct_RANLIB" >&6
5886else
5887 echo "$as_me:$LINENO: result: no" >&5
5888echo "${ECHO_T}no" >&6
5889fi
5890
5891 RANLIB=$ac_ct_RANLIB
5892else
5893 RANLIB="$ac_cv_prog_RANLIB"
5894fi
5895
5896if test -n "$ac_tool_prefix"; then
5897 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5898set dummy ${ac_tool_prefix}strip; ac_word=$2
5899echo "$as_me:$LINENO: checking for $ac_word" >&5
5900echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5901if test "${ac_cv_prog_STRIP+set}" = set; then
5902 echo $ECHO_N "(cached) $ECHO_C" >&6
5903else
5904 if test -n "$STRIP"; then
5905 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5906else
5907as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5908for as_dir in $PATH
5909do
5910 IFS=$as_save_IFS
5911 test -z "$as_dir" && as_dir=.
5912 for ac_exec_ext in '' $ac_executable_extensions; do
5913 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5914 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5915 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5916 break 2
5917 fi
5918done
5919done
5920
5921fi
5922fi
5923STRIP=$ac_cv_prog_STRIP
5924if test -n "$STRIP"; then
5925 echo "$as_me:$LINENO: result: $STRIP" >&5
5926echo "${ECHO_T}$STRIP" >&6
5927else
5928 echo "$as_me:$LINENO: result: no" >&5
5929echo "${ECHO_T}no" >&6
5930fi
5931
5932fi
5933if test -z "$ac_cv_prog_STRIP"; then
5934 ac_ct_STRIP=$STRIP
5935 # Extract the first word of "strip", so it can be a program name with args.
5936set dummy strip; ac_word=$2
5937echo "$as_me:$LINENO: checking for $ac_word" >&5
5938echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5939if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5940 echo $ECHO_N "(cached) $ECHO_C" >&6
5941else
5942 if test -n "$ac_ct_STRIP"; then
5943 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5944else
5945as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5946for as_dir in $PATH
5947do
5948 IFS=$as_save_IFS
5949 test -z "$as_dir" && as_dir=.
5950 for ac_exec_ext in '' $ac_executable_extensions; do
5951 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5952 ac_cv_prog_ac_ct_STRIP="strip"
5953 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5954 break 2
5955 fi
5956done
5957done
5958
5959 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5960fi
5961fi
5962ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5963if test -n "$ac_ct_STRIP"; then
5964 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5965echo "${ECHO_T}$ac_ct_STRIP" >&6
5966else
5967 echo "$as_me:$LINENO: result: no" >&5
5968echo "${ECHO_T}no" >&6
5969fi
5970
5971 STRIP=$ac_ct_STRIP
5972else
5973 STRIP="$ac_cv_prog_STRIP"
5974fi
5975
5976 5216
5977old_CC="$CC" 5217old_CC="$CC"
5978old_CFLAGS="$CFLAGS" 5218old_CFLAGS="$CFLAGS"
5979 5219
5980# Set sane defaults for various variables 5220# Set sane defaults for various variables
5981test -z "$AR" && AR=ar
5982test -z "$AR_FLAGS" && AR_FLAGS=cru
5983test -z "$AS" && AS=as
5984test -z "$CC" && CC=cc 5221test -z "$CC" && CC=cc
5985test -z "$LTCC" && LTCC=$CC 5222test -z "$LTCC" && LTCC=$CC
5986test -z "$DLLTOOL" && DLLTOOL=dlltool
5987test -z "$LD" && LD=ld 5223test -z "$LD" && LD=ld
5988test -z "$LN_S" && LN_S="ln -s" 5224test -z "$ac_objext" && ac_objext=o
5225
5226cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
5227
5228# Only perform the check for file, if the check method requires it
5989test -z "$MAGIC_CMD" && MAGIC_CMD=file 5229test -z "$MAGIC_CMD" && MAGIC_CMD=file
5990test -z "$NM" && NM=nm
5991test -z "$SED" && SED=sed
5992test -z "$OBJDUMP" && OBJDUMP=objdump
5993test -z "$RANLIB" && RANLIB=:
5994test -z "$STRIP" && STRIP=:
5995test -z "$ac_objext" && ac_objext=o
5996
5997# Determine commands to create old-style static archives.
5998old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5999old_postinstall_cmds='chmod 644 $oldlib'
6000old_postuninstall_cmds=
6001
6002if test -n "$RANLIB"; then
6003 case $host_os in
6004 openbsd*)
6005 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
6006 ;;
6007 *)
6008 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
6009 ;;
6010 esac
6011 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6012fi
6013
6014# Only perform the check for file, if the check method requires it
6015case $deplibs_check_method in 5230case $deplibs_check_method in
6016file_magic*) 5231file_magic*)
6017 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 5232 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6018 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 5233 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6019echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6 5234echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6040 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 5255 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6041 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 5256 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6042 $EGREP "$file_magic_regex" > /dev/null; then 5257 $EGREP "$file_magic_regex" > /dev/null; then
6043 : 5258 :
6044 else 5259 else
6045 cat <<EOF 1>&2 5260 cat <<_LT_EOF 1>&2
6046 5261
6047*** Warning: the command libtool uses to detect shared libraries, 5262*** Warning: the command libtool uses to detect shared libraries,
6048*** $file_magic_cmd, produces output that libtool cannot recognize. 5263*** $file_magic_cmd, produces output that libtool cannot recognize.
6049*** The result is that libtool may fail to recognize shared libraries 5264*** The result is that libtool may fail to recognize shared libraries
6050*** as such. This will affect the creation of libtool libraries that 5265*** as such. This will affect the creation of libtool libraries that
6051*** depend on shared libraries, but programs linked with such libtool 5266*** depend on shared libraries, but programs linked with such libtool
6052*** libraries will work regardless of this problem. Nevertheless, you 5267*** libraries will work regardless of this problem. Nevertheless, you
6053*** may want to report the problem to your system manager and/or to 5268*** may want to report the problem to your system manager and/or to
6054*** bug-libtool@gnu.org 5269*** bug-libtool@gnu.org
6055 5270
6056EOF 5271_LT_EOF
6057 fi ;; 5272 fi ;;
6058 esac 5273 esac
6059 fi 5274 fi
6060 break 5275 break
6061 fi 5276 fi
6072echo "${ECHO_T}$MAGIC_CMD" >&6 5287echo "${ECHO_T}$MAGIC_CMD" >&6
6073else 5288else
6074 echo "$as_me:$LINENO: result: no" >&5 5289 echo "$as_me:$LINENO: result: no" >&5
6075echo "${ECHO_T}no" >&6 5290echo "${ECHO_T}no" >&6
6076fi 5291fi
5292
5293
5294
5295
6077 5296
6078if test -z "$lt_cv_path_MAGIC_CMD"; then 5297if test -z "$lt_cv_path_MAGIC_CMD"; then
6079 if test -n "$ac_tool_prefix"; then 5298 if test -n "$ac_tool_prefix"; then
6080 echo "$as_me:$LINENO: checking for file" >&5 5299 echo "$as_me:$LINENO: checking for file" >&5
6081echo $ECHO_N "checking for file... $ECHO_C" >&6 5300echo $ECHO_N "checking for file... $ECHO_C" >&6
6102 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 5321 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6103 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 5322 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6104 $EGREP "$file_magic_regex" > /dev/null; then 5323 $EGREP "$file_magic_regex" > /dev/null; then
6105 : 5324 :
6106 else 5325 else
6107 cat <<EOF 1>&2 5326 cat <<_LT_EOF 1>&2
6108 5327
6109*** Warning: the command libtool uses to detect shared libraries, 5328*** Warning: the command libtool uses to detect shared libraries,
6110*** $file_magic_cmd, produces output that libtool cannot recognize. 5329*** $file_magic_cmd, produces output that libtool cannot recognize.
6111*** The result is that libtool may fail to recognize shared libraries 5330*** The result is that libtool may fail to recognize shared libraries
6112*** as such. This will affect the creation of libtool libraries that 5331*** as such. This will affect the creation of libtool libraries that
6113*** depend on shared libraries, but programs linked with such libtool 5332*** depend on shared libraries, but programs linked with such libtool
6114*** libraries will work regardless of this problem. Nevertheless, you 5333*** libraries will work regardless of this problem. Nevertheless, you
6115*** may want to report the problem to your system manager and/or to 5334*** may want to report the problem to your system manager and/or to
6116*** bug-libtool@gnu.org 5335*** bug-libtool@gnu.org
6117 5336
6118EOF 5337_LT_EOF
6119 fi ;; 5338 fi ;;
6120 esac 5339 esac
6121 fi 5340 fi
6122 break 5341 break
6123 fi 5342 fi
6135else 5354else
6136 echo "$as_me:$LINENO: result: no" >&5 5355 echo "$as_me:$LINENO: result: no" >&5
6137echo "${ECHO_T}no" >&6 5356echo "${ECHO_T}no" >&6
6138fi 5357fi
6139 5358
5359
6140 else 5360 else
6141 MAGIC_CMD=: 5361 MAGIC_CMD=:
6142 fi 5362 fi
6143fi 5363fi
6144 5364
6145 fi 5365 fi
6146 ;; 5366 ;;
6147esac 5367esac
6148 5368
6149enable_dlopen=no
6150enable_win32_dll=no
6151
6152# Check whether --enable-libtool-lock or --disable-libtool-lock was given. 5369# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6153if test "${enable_libtool_lock+set}" = set; then 5370if test "${enable_libtool_lock+set}" = set; then
6154 enableval="$enable_libtool_lock" 5371 enableval="$enable_libtool_lock"
6155 5372
6156fi; 5373fi;
6157test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 5374test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6158 5375
6159
6160# Check whether --with-pic or --without-pic was given.
6161if test "${with_pic+set}" = set; then
6162 withval="$with_pic"
6163 pic_mode="$withval"
6164else
6165 pic_mode=default
6166fi;
6167test -z "$pic_mode" && pic_mode=default
6168
6169# Use C for the default configuration in the libtool script 5376# Use C for the default configuration in the libtool script
6170tagname= 5377
6171lt_save_CC="$CC" 5378lt_save_CC="$CC"
6172ac_ext=c 5379ac_ext=c
6173ac_cpp='$CPP $CPPFLAGS' 5380ac_cpp='$CPP $CPPFLAGS'
6174ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5381ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6175ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5382ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6188 5395
6189# Code to be used in simple link tests 5396# Code to be used in simple link tests
6190lt_simple_link_test_code='int main(){return(0);}\n' 5397lt_simple_link_test_code='int main(){return(0);}\n'
6191 5398
6192 5399
5400
5401
5402
5403
5404
5405
6193# If no C compiler was specified, use CC. 5406# If no C compiler was specified, use CC.
6194LTCC=${LTCC-"$CC"} 5407LTCC=${LTCC-"$CC"}
6195 5408
6196# Allow CC to be a program name with arguments. 5409# Allow CC to be a program name with arguments.
6197compiler=$CC 5410compiler=$CC
6198 5411
5412# Save the default compiler, since it gets overwritten when the other
5413# tags are being tested, and _LT_AC_TAGVAR(compiler, []) is a NOP.
5414compiler_DEFAULT=$CC
6199 5415
6200# 5416#
6201# Check for any special shared library compilation flags. 5417# Check for any special shared library compilation flags.
6202# 5418#
6203lt_prog_cc_shlib= 5419lt_prog_cc_shlib=
6209 esac 5425 esac
6210fi 5426fi
6211if test -n "$lt_prog_cc_shlib"; then 5427if test -n "$lt_prog_cc_shlib"; then
6212 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5 5428 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6213echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;} 5429echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6214 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then : 5430 if echo "$old_CC $old_CFLAGS " | $GREP "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
6215 else 5431 else
6216 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5 5432 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6217echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;} 5433echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6218 lt_cv_prog_cc_can_build_shared=no 5434 lt_cv_prog_cc_can_build_shared=no
6219 fi 5435 fi
6220fi 5436fi
5437
5438
5439## CAVEAT EMPTOR:
5440## There is no encapsulation within the following macros, do not change
5441## the running order or otherwise move them around unless you know exactly
5442## what you are doing...
5443if test -n "$compiler"; then
5444
5445lt_prog_compiler_no_builtin_flag=
5446
5447if test "$GCC" = yes; then
5448 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
5449
5450 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
5451echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
5452if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
5453 echo $ECHO_N "(cached) $ECHO_C" >&6
5454else
5455 lt_cv_prog_compiler_rtti_exceptions=no
5456 ac_outfile=conftest.$ac_objext
5457 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
5458 lt_compiler_flag="-fno-rtti -fno-exceptions"
5459 # Insert the option either (1) after the last *FLAGS variable, or
5460 # (2) before a word containing "conftest.", or (3) at the end.
5461 # Note that $ac_compile itself does not contain backslashes and begins
5462 # with a dollar sign (not a hyphen), so the echo should work correctly.
5463 # The option is referenced via a variable to avoid confusing sed.
5464 lt_compile=`echo "$ac_compile" | $SED \
5465 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
5466 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
5467 -e 's:$: $lt_compiler_flag:'`
5468 (eval echo "\"\$as_me:5468: $lt_compile\"" >&5)
5469 (eval "$lt_compile" 2>conftest.err)
5470 ac_status=$?
5471 cat conftest.err >&5
5472 echo "$as_me:5472: \$? = $ac_status" >&5
5473 if (exit $ac_status) && test -s "$ac_outfile"; then
5474 # The compiler can only warn and ignore the option if not recognized
5475 # So say no if there are warnings
5476 if test ! -s conftest.err; then
5477 lt_cv_prog_compiler_rtti_exceptions=yes
5478 fi
5479 fi
5480 $rm conftest*
5481
5482fi
5483echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
5484echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
5485
5486if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
5487 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
5488else
5489 :
5490fi
5491
5492fi
5493
5494
5495
5496
5497
5498
5499 lt_prog_compiler_wl=
5500lt_prog_compiler_pic=
5501lt_prog_compiler_static=
5502
5503echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
5504echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
5505
5506 if test "$GCC" = yes; then
5507 lt_prog_compiler_wl='-Wl,'
5508 lt_prog_compiler_static='-static'
5509
5510 case $host_os in
5511 aix*)
5512 # All AIX code is PIC.
5513 if test "$host_cpu" = ia64; then
5514 # AIX 5 now supports IA64 processor
5515 lt_prog_compiler_static='-Bstatic'
5516 fi
5517 ;;
5518
5519 amigaos*)
5520 if test "$host_cpu" = m68k; then
5521 # FIXME: we need at least 68020 code to build shared libraries, but
5522 # adding the `-m68020' flag to GCC prevents building anything better,
5523 # like `-m68040'.
5524 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
5525 fi
5526 ;;
5527
5528 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
5529 # PIC is the default for these OSes.
5530 ;;
5531
5532 mingw* | pw32* | os2*)
5533 # This hack is so that the source file can tell whether it is being
5534 # built for inclusion in a dll (and should export symbols for example).
5535 lt_prog_compiler_pic='-DDLL_EXPORT'
5536 ;;
5537
5538 darwin* | rhapsody*)
5539 # PIC is the default on this platform
5540 # Common symbols not allowed in MH_DYLIB files
5541 lt_prog_compiler_pic='-fno-common'
5542 ;;
5543
5544 msdosdjgpp*)
5545 # Just because we use GCC doesn't mean we suddenly get shared libraries
5546 # on systems that don't support them.
5547 lt_prog_compiler_can_build_shared=no
5548 enable_shared=no
5549 ;;
5550
5551 sysv4*MP*)
5552 if test -d /usr/nec; then
5553 lt_prog_compiler_pic=-Kconform_pic
5554 fi
5555 ;;
5556
5557 hpux*)
5558 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
5559 # not for PA HP-UX.
5560 case "$host_cpu" in
5561 hppa*64*|ia64*)
5562 # +Z the default
5563 ;;
5564 *)
5565 lt_prog_compiler_pic='-fPIC'
5566 ;;
5567 esac
5568 ;;
5569
5570 *)
5571 lt_prog_compiler_pic='-fPIC'
5572 ;;
5573 esac
5574 else
5575 # PORTME Check for flag to pass linker flags through the system compiler.
5576 case $host_os in
5577 aix*)
5578 lt_prog_compiler_wl='-Wl,'
5579 if test "$host_cpu" = ia64; then
5580 # AIX 5 now supports IA64 processor
5581 lt_prog_compiler_static='-Bstatic'
5582 else
5583 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
5584 fi
5585 ;;
5586 darwin*)
5587 # PIC is the default on this platform
5588 # Common symbols not allowed in MH_DYLIB files
5589 case "$cc_basename" in
5590 xlc*)
5591 lt_prog_compiler_pic='-qnocommon'
5592 lt_prog_compiler_wl='-Wl,'
5593 ;;
5594 esac
5595 ;;
5596
5597 mingw* | pw32* | os2*)
5598 # This hack is so that the source file can tell whether it is being
5599 # built for inclusion in a dll (and should export symbols for example).
5600 lt_prog_compiler_pic='-DDLL_EXPORT'
5601 ;;
5602
5603 hpux9* | hpux10* | hpux11*)
5604 lt_prog_compiler_wl='-Wl,'
5605 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
5606 # not for PA HP-UX.
5607 case "$host_cpu" in
5608 hppa*64*|ia64*)
5609 # +Z the default
5610 ;;
5611 *)
5612 lt_prog_compiler_pic='+Z'
5613 ;;
5614 esac
5615 # Is there a better lt_prog_compiler_static that works with the bundled CC?
5616 lt_prog_compiler_static='${wl}-a ${wl}archive'
5617 ;;
5618
5619 irix5* | irix6* | nonstopux*)
5620 lt_prog_compiler_wl='-Wl,'
5621 # PIC (with -KPIC) is the default.
5622 lt_prog_compiler_static='-non_shared'
5623 ;;
5624
5625 newsos6)
5626 lt_prog_compiler_pic='-KPIC'
5627 lt_prog_compiler_static='-Bstatic'
5628 ;;
5629
5630 linux*)
5631 case $CC in
5632 icc* | ecc*)
5633 lt_prog_compiler_wl='-Wl,'
5634 lt_prog_compiler_pic='-KPIC'
5635 lt_prog_compiler_static='-static'
5636 ;;
5637 ccc*)
5638 lt_prog_compiler_wl='-Wl,'
5639 # All Alpha code is PIC.
5640 lt_prog_compiler_static='-non_shared'
5641 ;;
5642 esac
5643 ;;
5644
5645 osf3* | osf4* | osf5*)
5646 lt_prog_compiler_wl='-Wl,'
5647 # All OSF/1 code is PIC.
5648 lt_prog_compiler_static='-non_shared'
5649 ;;
5650
5651 sco3.2v5*)
5652 lt_prog_compiler_pic='-Kpic'
5653 lt_prog_compiler_static='-dn'
5654 ;;
5655
5656 solaris*)
5657 lt_prog_compiler_wl='-Wl,'
5658 lt_prog_compiler_pic='-KPIC'
5659 lt_prog_compiler_static='-Bstatic'
5660 ;;
5661
5662 sunos4*)
5663 lt_prog_compiler_wl='-Qoption ld '
5664 lt_prog_compiler_pic='-PIC'
5665 lt_prog_compiler_static='-Bstatic'
5666 ;;
5667
5668 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5669 lt_prog_compiler_wl='-Wl,'
5670 lt_prog_compiler_pic='-KPIC'
5671 lt_prog_compiler_static='-Bstatic'
5672 ;;
5673
5674 sysv4*MP*)
5675 if test -d /usr/nec ;then
5676 lt_prog_compiler_pic='-Kconform_pic'
5677 lt_prog_compiler_static='-Bstatic'
5678 fi
5679 ;;
5680
5681 uts4*)
5682 lt_prog_compiler_pic='-pic'
5683 lt_prog_compiler_static='-Bstatic'
5684 ;;
5685
5686 *)
5687 lt_prog_compiler_can_build_shared=no
5688 ;;
5689 esac
5690 fi
5691
5692case "$host_os" in
5693 # For platforms which do not support PIC, -DPIC is meaningless:
5694 *djgpp*)
5695 lt_prog_compiler_pic=
5696 ;;
5697 *)
5698 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
5699 ;;
5700esac
5701echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
5702echo "${ECHO_T}$lt_prog_compiler_pic" >&6
5703
5704
5705
5706
5707
5708
5709#
5710# Check to make sure the PIC flag actually works.
5711#
5712if test -n "$lt_prog_compiler_pic"; then
5713 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
5714echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
5715if test "${lt_prog_compiler_pic_works+set}" = set; then
5716 echo $ECHO_N "(cached) $ECHO_C" >&6
5717else
5718 lt_prog_compiler_pic_works=no
5719 ac_outfile=conftest.$ac_objext
5720 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
5721 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
5722 # Insert the option either (1) after the last *FLAGS variable, or
5723 # (2) before a word containing "conftest.", or (3) at the end.
5724 # Note that $ac_compile itself does not contain backslashes and begins
5725 # with a dollar sign (not a hyphen), so the echo should work correctly.
5726 # The option is referenced via a variable to avoid confusing sed.
5727 lt_compile=`echo "$ac_compile" | $SED \
5728 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
5729 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
5730 -e 's:$: $lt_compiler_flag:'`
5731 (eval echo "\"\$as_me:5731: $lt_compile\"" >&5)
5732 (eval "$lt_compile" 2>conftest.err)
5733 ac_status=$?
5734 cat conftest.err >&5
5735 echo "$as_me:5735: \$? = $ac_status" >&5
5736 if (exit $ac_status) && test -s "$ac_outfile"; then
5737 # The compiler can only warn and ignore the option if not recognized
5738 # So say no if there are warnings
5739 if test ! -s conftest.err; then
5740 lt_prog_compiler_pic_works=yes
5741 fi
5742 fi
5743 $rm conftest*
5744
5745fi
5746echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
5747echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
5748
5749if test x"$lt_prog_compiler_pic_works" = xyes; then
5750 case $lt_prog_compiler_pic in
5751 "" | " "*) ;;
5752 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
5753 esac
5754else
5755 lt_prog_compiler_pic=
5756 lt_prog_compiler_can_build_shared=no
5757fi
5758
5759fi
5760
5761
5762
5763
6221 5764
6222 5765
6223# 5766#
6224# Check to make sure the static flag actually works. 5767# Check to make sure the static flag actually works.
6225# 5768#
6256fi 5799fi
6257 5800
6258 5801
6259 5802
6260 5803
6261lt_prog_compiler_no_builtin_flag=
6262 5804
6263if test "$GCC" = yes; then
6264 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6265 5805
6266 5806
6267echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6268echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6269if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6270 echo $ECHO_N "(cached) $ECHO_C" >&6
6271else
6272 lt_cv_prog_compiler_rtti_exceptions=no
6273 ac_outfile=conftest.$ac_objext
6274 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6275 lt_compiler_flag="-fno-rtti -fno-exceptions"
6276 # Insert the option either (1) after the last *FLAGS variable, or
6277 # (2) before a word containing "conftest.", or (3) at the end.
6278 # Note that $ac_compile itself does not contain backslashes and begins
6279 # with a dollar sign (not a hyphen), so the echo should work correctly.
6280 # The option is referenced via a variable to avoid confusing sed.
6281 lt_compile=`echo "$ac_compile" | $SED \
6282 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6283 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6284 -e 's:$: $lt_compiler_flag:'`
6285 (eval echo "\"\$as_me:6285: $lt_compile\"" >&5)
6286 (eval "$lt_compile" 2>conftest.err)
6287 ac_status=$?
6288 cat conftest.err >&5
6289 echo "$as_me:6289: \$? = $ac_status" >&5
6290 if (exit $ac_status) && test -s "$ac_outfile"; then
6291 # The compiler can only warn and ignore the option if not recognized
6292 # So say no if there are warnings
6293 if test ! -s conftest.err; then
6294 lt_cv_prog_compiler_rtti_exceptions=yes
6295 fi
6296 fi
6297 $rm conftest*
6298
6299fi
6300echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6301echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6302
6303if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6304 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6305else
6306 :
6307fi
6308
6309fi
6310
6311lt_prog_compiler_wl=
6312lt_prog_compiler_pic=
6313lt_prog_compiler_static=
6314
6315echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6316echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6317
6318 if test "$GCC" = yes; then
6319 lt_prog_compiler_wl='-Wl,'
6320 lt_prog_compiler_static='-static'
6321
6322 case $host_os in
6323 aix*)
6324 # All AIX code is PIC.
6325 if test "$host_cpu" = ia64; then
6326 # AIX 5 now supports IA64 processor
6327 lt_prog_compiler_static='-Bstatic'
6328 fi
6329 ;;
6330
6331 amigaos*)
6332 # FIXME: we need at least 68020 code to build shared libraries, but
6333 # adding the `-m68020' flag to GCC prevents building anything better,
6334 # like `-m68040'.
6335 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6336 ;;
6337
6338 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6339 # PIC is the default for these OSes.
6340 ;;
6341
6342 mingw* | pw32* | os2*)
6343 # This hack is so that the source file can tell whether it is being
6344 # built for inclusion in a dll (and should export symbols for example).
6345 lt_prog_compiler_pic='-DDLL_EXPORT'
6346 ;;
6347
6348 darwin* | rhapsody*)
6349 # PIC is the default on this platform
6350 # Common symbols not allowed in MH_DYLIB files
6351 lt_prog_compiler_pic='-fno-common'
6352 ;;
6353
6354 msdosdjgpp*)
6355 # Just because we use GCC doesn't mean we suddenly get shared libraries
6356 # on systems that don't support them.
6357 lt_prog_compiler_can_build_shared=no
6358 enable_shared=no
6359 ;;
6360
6361 sysv4*MP*)
6362 if test -d /usr/nec; then
6363 lt_prog_compiler_pic=-Kconform_pic
6364 fi
6365 ;;
6366
6367 hpux*)
6368 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6369 # not for PA HP-UX.
6370 case "$host_cpu" in
6371 hppa*64*|ia64*)
6372 # +Z the default
6373 ;;
6374 *)
6375 lt_prog_compiler_pic='-fPIC'
6376 ;;
6377 esac
6378 ;;
6379
6380 *)
6381 lt_prog_compiler_pic='-fPIC'
6382 ;;
6383 esac
6384 else
6385 # PORTME Check for flag to pass linker flags through the system compiler.
6386 case $host_os in
6387 aix*)
6388 lt_prog_compiler_wl='-Wl,'
6389 if test "$host_cpu" = ia64; then
6390 # AIX 5 now supports IA64 processor
6391 lt_prog_compiler_static='-Bstatic'
6392 else
6393 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6394 fi
6395 ;;
6396
6397 mingw* | pw32* | os2*)
6398 # This hack is so that the source file can tell whether it is being
6399 # built for inclusion in a dll (and should export symbols for example).
6400 lt_prog_compiler_pic='-DDLL_EXPORT'
6401 ;;
6402
6403 hpux9* | hpux10* | hpux11*)
6404 lt_prog_compiler_wl='-Wl,'
6405 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6406 # not for PA HP-UX.
6407 case "$host_cpu" in
6408 hppa*64*|ia64*)
6409 # +Z the default
6410 ;;
6411 *)
6412 lt_prog_compiler_pic='+Z'
6413 ;;
6414 esac
6415 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6416 lt_prog_compiler_static='${wl}-a ${wl}archive'
6417 ;;
6418
6419 irix5* | irix6* | nonstopux*)
6420 lt_prog_compiler_wl='-Wl,'
6421 # PIC (with -KPIC) is the default.
6422 lt_prog_compiler_static='-non_shared'
6423 ;;
6424
6425 newsos6)
6426 lt_prog_compiler_pic='-KPIC'
6427 lt_prog_compiler_static='-Bstatic'
6428 ;;
6429
6430 linux*)
6431 case $CC in
6432 icc* | ecc*)
6433 lt_prog_compiler_wl='-Wl,'
6434 lt_prog_compiler_pic='-KPIC'
6435 lt_prog_compiler_static='-static'
6436 ;;
6437 ccc*)
6438 lt_prog_compiler_wl='-Wl,'
6439 # All Alpha code is PIC.
6440 lt_prog_compiler_static='-non_shared'
6441 ;;
6442 esac
6443 ;;
6444
6445 osf3* | osf4* | osf5*)
6446 lt_prog_compiler_wl='-Wl,'
6447 # All OSF/1 code is PIC.
6448 lt_prog_compiler_static='-non_shared'
6449 ;;
6450
6451 sco3.2v5*)
6452 lt_prog_compiler_pic='-Kpic'
6453 lt_prog_compiler_static='-dn'
6454 ;;
6455
6456 solaris*)
6457 lt_prog_compiler_wl='-Wl,'
6458 lt_prog_compiler_pic='-KPIC'
6459 lt_prog_compiler_static='-Bstatic'
6460 ;;
6461
6462 sunos4*)
6463 lt_prog_compiler_wl='-Qoption ld '
6464 lt_prog_compiler_pic='-PIC'
6465 lt_prog_compiler_static='-Bstatic'
6466 ;;
6467
6468 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6469 lt_prog_compiler_wl='-Wl,'
6470 lt_prog_compiler_pic='-KPIC'
6471 lt_prog_compiler_static='-Bstatic'
6472 ;;
6473
6474 sysv4*MP*)
6475 if test -d /usr/nec ;then
6476 lt_prog_compiler_pic='-Kconform_pic'
6477 lt_prog_compiler_static='-Bstatic'
6478 fi
6479 ;;
6480
6481 uts4*)
6482 lt_prog_compiler_pic='-pic'
6483 lt_prog_compiler_static='-Bstatic'
6484 ;;
6485
6486 *)
6487 lt_prog_compiler_can_build_shared=no
6488 ;;
6489 esac
6490 fi
6491
6492echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6493echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6494
6495#
6496# Check to make sure the PIC flag actually works.
6497#
6498if test -n "$lt_prog_compiler_pic"; then
6499
6500echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6501echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6502if test "${lt_prog_compiler_pic_works+set}" = set; then
6503 echo $ECHO_N "(cached) $ECHO_C" >&6
6504else
6505 lt_prog_compiler_pic_works=no
6506 ac_outfile=conftest.$ac_objext
6507 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6508 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6509 # Insert the option either (1) after the last *FLAGS variable, or
6510 # (2) before a word containing "conftest.", or (3) at the end.
6511 # Note that $ac_compile itself does not contain backslashes and begins
6512 # with a dollar sign (not a hyphen), so the echo should work correctly.
6513 # The option is referenced via a variable to avoid confusing sed.
6514 lt_compile=`echo "$ac_compile" | $SED \
6515 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6516 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6517 -e 's:$: $lt_compiler_flag:'`
6518 (eval echo "\"\$as_me:6518: $lt_compile\"" >&5)
6519 (eval "$lt_compile" 2>conftest.err)
6520 ac_status=$?
6521 cat conftest.err >&5
6522 echo "$as_me:6522: \$? = $ac_status" >&5
6523 if (exit $ac_status) && test -s "$ac_outfile"; then
6524 # The compiler can only warn and ignore the option if not recognized
6525 # So say no if there are warnings
6526 if test ! -s conftest.err; then
6527 lt_prog_compiler_pic_works=yes
6528 fi
6529 fi
6530 $rm conftest*
6531
6532fi
6533echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6534echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6535
6536if test x"$lt_prog_compiler_pic_works" = xyes; then
6537 case $lt_prog_compiler_pic in
6538 "" | " "*) ;;
6539 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6540 esac
6541else
6542 lt_prog_compiler_pic=
6543 lt_prog_compiler_can_build_shared=no
6544fi
6545
6546fi
6547case "$host_os" in
6548 # For platforms which do not support PIC, -DPIC is meaningless:
6549 *djgpp*)
6550 lt_prog_compiler_pic=
6551 ;;
6552 *)
6553 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6554 ;;
6555esac
6556
6557echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 5807 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6558echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 5808echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6559if test "${lt_cv_prog_compiler_c_o+set}" = set; then 5809if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6560 echo $ECHO_N "(cached) $ECHO_C" >&6 5810 echo $ECHO_N "(cached) $ECHO_C" >&6
6561else 5811else
6562 lt_cv_prog_compiler_c_o=no 5812 lt_cv_prog_compiler_c_o=no
6573 # with a dollar sign (not a hyphen), so the echo should work correctly. 5823 # with a dollar sign (not a hyphen), so the echo should work correctly.
6574 lt_compile=`echo "$ac_compile" | $SED \ 5824 lt_compile=`echo "$ac_compile" | $SED \
6575 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ 5825 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6576 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 5826 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6577 -e 's:$: $lt_compiler_flag:'` 5827 -e 's:$: $lt_compiler_flag:'`
6578 (eval echo "\"\$as_me:6578: $lt_compile\"" >&5) 5828 (eval echo "\"\$as_me:5828: $lt_compile\"" >&5)
6579 (eval "$lt_compile" 2>out/conftest.err) 5829 (eval "$lt_compile" 2>out/conftest.err)
6580 ac_status=$? 5830 ac_status=$?
6581 cat out/conftest.err >&5 5831 cat out/conftest.err >&5
6582 echo "$as_me:6582: \$? = $ac_status" >&5 5832 echo "$as_me:5832: \$? = $ac_status" >&5
6583 if (exit $ac_status) && test -s out/conftest2.$ac_objext 5833 if (exit $ac_status) && test -s out/conftest2.$ac_objext
6584 then 5834 then
6585 # The compiler can only warn and ignore the option if not recognized 5835 # The compiler can only warn and ignore the option if not recognized
6586 # So say no if there are warnings 5836 # So say no if there are warnings
6587 if test ! -s out/conftest.err; then 5837 if test ! -s out/conftest.err; then
6599 $rm conftest* 5849 $rm conftest*
6600 5850
6601fi 5851fi
6602echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 5852echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6603echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6 5853echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
5854
5855
5856
5857
5858
6604 5859
6605 5860
6606hard_links="nottested" 5861hard_links="nottested"
6607if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 5862if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6608 # do not overwrite the value of need_locks provided by the user 5863 # do not overwrite the value of need_locks provided by the user
6623 fi 5878 fi
6624else 5879else
6625 need_locks=no 5880 need_locks=no
6626fi 5881fi
6627 5882
5883
5884
5885
5886
5887
6628echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 5888 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6629echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 5889echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6630 5890
6631 runpath_var= 5891 runpath_var=
6632 allow_undefined_flag= 5892 allow_undefined_flag=
6633 enable_shared_with_static_runtimes=no 5893 always_export_symbols=no
6634 archive_cmds= 5894 archive_cmds=
6635 archive_expsym_cmds= 5895 archive_expsym_cmds=
6636 old_archive_From_new_cmds= 5896 enable_shared_with_static_runtimes=no
6637 old_archive_from_expsyms_cmds=
6638 export_dynamic_flag_spec= 5897 export_dynamic_flag_spec=
6639 whole_archive_flag_spec= 5898 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6640 thread_safe_flag_spec= 5899 hardcode_automatic=no
5900 hardcode_direct=no
6641 hardcode_libdir_flag_spec= 5901 hardcode_libdir_flag_spec=
6642 hardcode_libdir_flag_spec_ld= 5902 hardcode_libdir_flag_spec_ld=
6643 hardcode_libdir_separator= 5903 hardcode_libdir_separator=
6644 hardcode_direct=no
6645 hardcode_minus_L=no 5904 hardcode_minus_L=no
6646 hardcode_shlibpath_var=unsupported 5905 hardcode_shlibpath_var=unsupported
5906 inherit_rpath=no
6647 link_all_deplibs=unknown 5907 link_all_deplibs=unknown
6648 hardcode_automatic=no
6649 module_cmds= 5908 module_cmds=
6650 module_expsym_cmds= 5909 module_expsym_cmds=
6651 always_export_symbols=no 5910 old_archive_from_new_cmds=
6652 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 5911 old_archive_from_expsyms_cmds=
5912 thread_safe_flag_spec=
5913 whole_archive_flag_spec=
6653 # include_expsyms should be a list of space-separated symbols to be *always* 5914 # include_expsyms should be a list of space-separated symbols to be *always*
6654 # included in the symbol list 5915 # included in the symbol list
6655 include_expsyms= 5916 include_expsyms=
6656 # exclude_expsyms can be an extended regexp of symbols to exclude 5917 # exclude_expsyms can be an extended regexp of symbols to exclude
6657 # it will be wrapped by ` (' and `)$', so one must not match beginning or 5918 # it will be wrapped by ` (' and `)$', so one must not match beginning or
6688 case $host_os in 5949 case $host_os in
6689 aix3* | aix4* | aix5*) 5950 aix3* | aix4* | aix5*)
6690 # On AIX/PPC, the GNU linker is very broken 5951 # On AIX/PPC, the GNU linker is very broken
6691 if test "$host_cpu" != ia64; then 5952 if test "$host_cpu" != ia64; then
6692 ld_shlibs=no 5953 ld_shlibs=no
6693 cat <<EOF 1>&2 5954 cat <<_LT_EOF 1>&2
6694 5955
6695*** Warning: the GNU linker, at least up to release 2.9.1, is reported 5956*** Warning: the GNU linker, at least up to release 2.9.1, is reported
6696*** to be unable to reliably create shared libraries on AIX. 5957*** to be unable to reliably create shared libraries on AIX.
6697*** Therefore, libtool is disabling shared libraries support. If you 5958*** Therefore, libtool is disabling shared libraries support. If you
6698*** really care for shared libraries, you may want to modify your PATH 5959*** really care for shared libraries, you may want to modify your PATH
6699*** so that a non-GNU linker is found, and then restart. 5960*** so that a non-GNU linker is found, and then restart.
6700 5961
6701EOF 5962_LT_EOF
6702 fi 5963 fi
6703 ;; 5964 ;;
6704 5965
6705 amigaos*) 5966 amigaos*)
5967 if test "$host_cpu" = m68k; then
6706 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)' 5968 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)'
6707 hardcode_libdir_flag_spec='-L$libdir' 5969 hardcode_libdir_flag_spec='-L$libdir'
6708 hardcode_minus_L=yes 5970 hardcode_minus_L=yes
5971 fi
6709 5972
6710 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 5973 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6711 # that the semantics of dynamic libraries on AmigaOS, at least up 5974 # that the semantics of dynamic libraries on AmigaOS, at least up
6712 # to version 4, is to share data among multiple programs linked 5975 # to version 4, is to share data among multiple programs linked
6713 # with the same dynamic library. Since this doesn't match the 5976 # with the same dynamic library. Since this doesn't match the
6715 # them. 5978 # them.
6716 ld_shlibs=no 5979 ld_shlibs=no
6717 ;; 5980 ;;
6718 5981
6719 beos*) 5982 beos*)
6720 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 5983 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
6721 allow_undefined_flag=unsupported 5984 allow_undefined_flag=unsupported
6722 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 5985 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6723 # support --undefined. This deserves some investigation. FIXME 5986 # support --undefined. This deserves some investigation. FIXME
6724 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 5987 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6725 else 5988 else
6734 allow_undefined_flag=unsupported 5997 allow_undefined_flag=unsupported
6735 always_export_symbols=no 5998 always_export_symbols=no
6736 enable_shared_with_static_runtimes=yes 5999 enable_shared_with_static_runtimes=yes
6737 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 6000 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6738 6001
6739 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 6002 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
6740 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' 6003 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6741 # If the export-symbols file already is a .def file (1st line 6004 # If the export-symbols file already is a .def file (1st line
6742 # is EXPORTS), use it as is; otherwise, prepend... 6005 # is EXPORTS), use it as is; otherwise, prepend...
6743 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 6006 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6744 cp $export_symbols $output_objdir/$soname.def; 6007 cp $export_symbols $output_objdir/$soname.def;
6750 else 6013 else
6751 ld_shlibs=no 6014 ld_shlibs=no
6752 fi 6015 fi
6753 ;; 6016 ;;
6754 6017
6755 netbsd* | netbsdelf*-gnu | knetbsd*-gnu) 6018 netbsd*)
6756 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 6019 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
6757 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 6020 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6758 wlarc= 6021 wlarc=
6759 else 6022 else
6760 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 6023 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6761 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 6024 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6762 fi 6025 fi
6763 ;; 6026 ;;
6764 6027
6765 solaris* | sysv5*) 6028 solaris* | sysv5*)
6766 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 6029 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
6767 ld_shlibs=no 6030 ld_shlibs=no
6768 cat <<EOF 1>&2 6031 cat <<_LT_EOF 1>&2
6769 6032
6770*** Warning: The releases 2.8.* of the GNU linker cannot reliably 6033*** Warning: The releases 2.8.* of the GNU linker cannot reliably
6771*** create shared libraries on Solaris systems. Therefore, libtool 6034*** create shared libraries on Solaris systems. Therefore, libtool
6772*** is disabling shared libraries support. We urge you to upgrade GNU 6035*** is disabling shared libraries support. We urge you to upgrade GNU
6773*** binutils to release 2.9.1 or newer. Another option is to modify 6036*** binutils to release 2.9.1 or newer. Another option is to modify
6774*** your PATH or compiler configuration so that the native linker is 6037*** your PATH or compiler configuration so that the native linker is
6775*** used, and then restart. 6038*** used, and then restart.
6776 6039
6777EOF 6040_LT_EOF
6778 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 6041 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
6779 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 6042 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6780 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 6043 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6781 else 6044 else
6782 ld_shlibs=no 6045 ld_shlibs=no
6783 fi 6046 fi
6789 hardcode_direct=yes 6052 hardcode_direct=yes
6790 hardcode_shlibpath_var=no 6053 hardcode_shlibpath_var=no
6791 ;; 6054 ;;
6792 6055
6793 linux*) 6056 linux*)
6794 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 6057 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null; then
6795 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 6058 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6796 archive_cmds="$tmp_archive_cmds"
6797 supports_anon_versioning=no
6798 case `$LD -v 2>/dev/null` in 6059 case `$LD -v 2>&1` in
6799 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 6060 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
6800 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 6061 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6801 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 6062 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6802 *\ 2.11.*) ;; # other 2.11 versions 6063 *\ 2.11.*) ;; # other 2.11 versions
6803 *) supports_anon_versioning=yes ;; 6064 *) supports_anon_versioning=yes ;;
6804 esac 6065 esac
6805 if test $supports_anon_versioning = yes; then 6066 if test "x$supports_anon_versioning" = xyes; then
6806 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~ 6067 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~$echo "local: *; };" >> $output_objdir/$libname.ver~$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6807cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6808$echo "local: *; };" >> $output_objdir/$libname.ver~
6809 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6810 else 6068 else
6811 archive_expsym_cmds="$tmp_archive_cmds" 6069 archive_expsym_cmds=$archive_cmds
6812 fi 6070 fi
6813 link_all_deplibs=no
6814 else 6071 else
6815 ld_shlibs=no 6072 ld_shlibs=no
6816 fi 6073 fi
6817 ;; 6074 ;;
6818 6075
6819 *) 6076 *)
6820 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 6077 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
6821 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 6078 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6822 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 6079 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6823 else 6080 else
6824 ld_shlibs=no 6081 ld_shlibs=no
6825 fi 6082 fi
6829 if test "$ld_shlibs" = yes; then 6086 if test "$ld_shlibs" = yes; then
6830 runpath_var=LD_RUN_PATH 6087 runpath_var=LD_RUN_PATH
6831 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' 6088 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6832 export_dynamic_flag_spec='${wl}--export-dynamic' 6089 export_dynamic_flag_spec='${wl}--export-dynamic'
6833 # ancient GNU ld didn't support --whole-archive et. al. 6090 # ancient GNU ld didn't support --whole-archive et. al.
6834 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 6091 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
6835 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 6092 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6836 else 6093 else
6837 whole_archive_flag_spec= 6094 whole_archive_flag_spec=
6838 fi 6095 fi
6839 fi 6096 fi
6862 exp_sym_flag='-Bexport' 6119 exp_sym_flag='-Bexport'
6863 no_entry_flag="" 6120 no_entry_flag=""
6864 else 6121 else
6865 # If we're using GNU nm, then we don't want the "-C" option. 6122 # If we're using GNU nm, then we don't want the "-C" option.
6866 # -C means demangle to AIX nm, but means don't demangle with GNU nm 6123 # -C means demangle to AIX nm, but means don't demangle with GNU nm
6867 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 6124 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
6868 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' 6125 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'
6869 else 6126 else
6870 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' 6127 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'
6871 fi 6128 fi
6872 aix_use_runtimelinking=no 6129 aix_use_runtimelinking=no
6901 if test "$GCC" = yes; then 6158 if test "$GCC" = yes; then
6902 case $host_os in aix4.012|aix4.012.*) 6159 case $host_os in aix4.012|aix4.012.*)
6903 # We only want to do this on AIX 4.2 and lower, the check 6160 # We only want to do this on AIX 4.2 and lower, the check
6904 # below for broken collect2 doesn't work under 4.3+ 6161 # below for broken collect2 doesn't work under 4.3+
6905 collect2name=`${CC} -print-prog-name=collect2` 6162 collect2name=`${CC} -print-prog-name=collect2`
6906 if test -f "$collect2name" && \ 6163 if test -f "$collect2name" &&
6907 strings "$collect2name" | grep resolve_lib_name >/dev/null 6164 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
6908 then 6165 then
6909 # We have reworked collect2 6166 # We have reworked collect2
6910 hardcode_direct=yes 6167 hardcode_direct=yes
6911 else 6168 else
6912 # We have old collect2 6169 # We have old collect2
6940 always_export_symbols=yes 6197 always_export_symbols=yes
6941 if test "$aix_use_runtimelinking" = yes; then 6198 if test "$aix_use_runtimelinking" = yes; then
6942 # Warning - without using the other runtime loading flags (-brtl), 6199 # Warning - without using the other runtime loading flags (-brtl),
6943 # -berok will link without error, but may produce a broken library. 6200 # -berok will link without error, but may produce a broken library.
6944 allow_undefined_flag='-berok' 6201 allow_undefined_flag='-berok'
6945 # Determine the default libpath from the value encoded in an empty executable. 6202 # Determine the default libpath from the value encoded in an
6203 # empty executable.
6946 cat >conftest.$ac_ext <<_ACEOF 6204 cat >conftest.$ac_ext <<_ACEOF
6947/* confdefs.h. */ 6205/* confdefs.h. */
6948_ACEOF 6206_ACEOF
6949cat confdefs.h >>conftest.$ac_ext 6207cat confdefs.h >>conftest.$ac_ext
6950cat >>conftest.$ac_ext <<_ACEOF 6208cat >>conftest.$ac_ext <<_ACEOF
6994 conftest$ac_exeext conftest.$ac_ext 6252 conftest$ac_exeext conftest.$ac_ext
6995if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 6253if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6996 6254
6997 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 6255 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6998 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" 6256 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"
6999 else 6257 else
7000 if test "$host_cpu" = ia64; then 6258 if test "$host_cpu" = ia64; then
7001 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 6259 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7002 allow_undefined_flag="-z nodefs" 6260 allow_undefined_flag="-z nodefs"
7003 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" 6261 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"
7004 else 6262 else
7005 # Determine the default libpath from the value encoded in an empty executable. 6263 # Determine the default libpath from the value encoded in an
6264 # empty executable.
7006 cat >conftest.$ac_ext <<_ACEOF 6265 cat >conftest.$ac_ext <<_ACEOF
7007/* confdefs.h. */ 6266/* confdefs.h. */
7008_ACEOF 6267_ACEOF
7009cat confdefs.h >>conftest.$ac_ext 6268cat confdefs.h >>conftest.$ac_ext
7010cat >>conftest.$ac_ext <<_ACEOF 6269cat >>conftest.$ac_ext <<_ACEOF
7069 fi 6328 fi
7070 fi 6329 fi
7071 ;; 6330 ;;
7072 6331
7073 amigaos*) 6332 amigaos*)
6333 if test "$host_cpu" = m68k; then
7074 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)' 6334 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)'
7075 hardcode_libdir_flag_spec='-L$libdir' 6335 hardcode_libdir_flag_spec='-L$libdir'
7076 hardcode_minus_L=yes 6336 hardcode_minus_L=yes
6337 fi
7077 # see comment about different semantics on the GNU ld section 6338 # see comment about different semantics on the GNU ld section
7078 ld_shlibs=no 6339 ld_shlibs=no
7079 ;; 6340 ;;
7080 6341
7081 bsdi4*) 6342 bsdi4*)
7094 # Tell ltmain to make .dll files, not .so files. 6355 # Tell ltmain to make .dll files, not .so files.
7095 shrext_cmds=".dll" 6356 shrext_cmds=".dll"
7096 # FIXME: Setting linknames here is a bad hack. 6357 # FIXME: Setting linknames here is a bad hack.
7097 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 6358 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7098 # The linker will automatically build a .lib file if we build a DLL. 6359 # The linker will automatically build a .lib file if we build a DLL.
7099 old_archive_From_new_cmds='true' 6360 old_archive_from_new_cmds='true'
7100 # FIXME: Should let the user specify the lib program. 6361 # FIXME: Should let the user specify the lib program.
7101 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs' 6362 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7102 fix_srcfile_path='`cygpath -w "$srcfile"`' 6363 fix_srcfile_path='`cygpath -w "$srcfile"`'
7103 enable_shared_with_static_runtimes=yes 6364 enable_shared_with_static_runtimes=yes
7104 ;; 6365 ;;
7105 6366
7106 darwin* | rhapsody*) 6367 darwin* | rhapsody*)
7107 if test "$GXX" = yes ; then 6368 case "$host_os" in
6369 rhapsody* | darwin1.[012])
6370 allow_undefined_flag='${wl}-undefined ${wl}suppress'
6371 ;;
6372 *) # Darwin 1.3 on
6373 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
6374 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${Wl}suppress'
6375 else
6376 case ${MACOSX_DEPLOYMENT_TARGET} in
6377 10.[012])
6378 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
6379 ;;
6380 10.*)
6381 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
6382 ;;
6383 esac
6384 fi
6385 ;;
6386 esac
7108 archive_cmds_need_lc=no 6387 archive_cmds_need_lc=no
7109 case "$host_os" in
7110 rhapsody* | darwin1.[012])
7111 allow_undefined_flag='-undefined suppress'
7112 ;;
7113 *) # Darwin 1.3 on
7114 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7115 allow_undefined_flag='-flat_namespace -undefined suppress'
7116 else
7117 case ${MACOSX_DEPLOYMENT_TARGET} in
7118 10.[012])
7119 allow_undefined_flag='-flat_namespace -undefined suppress'
7120 ;;
7121 10.*)
7122 allow_undefined_flag='-undefined dynamic_lookup'
7123 ;;
7124 esac
7125 fi
7126 ;;
7127 esac
7128 lt_int_apple_cc_single_mod=no
7129 output_verbose_link_cmd='echo'
7130 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
7131 lt_int_apple_cc_single_mod=yes
7132 fi
7133 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7134 archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7135 else
7136 archive_cmds='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7137 fi
7138 module_cmds='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7139 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7140 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7141 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7142 else
7143 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7144 fi
7145 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}'
7146 hardcode_direct=no 6388 hardcode_direct=no
7147 hardcode_automatic=yes 6389 hardcode_automatic=yes
7148 hardcode_shlibpath_var=unsupported 6390 hardcode_shlibpath_var=unsupported
7149 whole_archive_flag_spec='-all_load $convenience' 6391 whole_archive_flag_spec='-all_load $convenience'
7150 link_all_deplibs=yes 6392 link_all_deplibs=yes
6393 if test "$GCC" = yes ; then
6394 output_verbose_link_cmd='echo'
6395 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
6396 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
6397 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
6398 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}'
6399 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}'
7151 else 6400 else
6401 case "$cc_basename" in
6402 xlc*)
6403 output_verbose_link_cmd='echo'
6404 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
6405 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
6406 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
6407 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}'
6408 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}'
6409 ;;
6410 *)
7152 ld_shlibs=no 6411 ld_shlibs=no
6412 ;;
6413 esac
7153 fi 6414 fi
7154 ;; 6415 ;;
7155
7156 dgux*) 6416 dgux*)
7157 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 6417 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7158 hardcode_libdir_flag_spec='-L$libdir' 6418 hardcode_libdir_flag_spec='-L$libdir'
7159 hardcode_shlibpath_var=no 6419 hardcode_shlibpath_var=no
7160 ;; 6420 ;;
7259 ;; 6519 ;;
7260 6520
7261 irix5* | irix6* | nonstopux*) 6521 irix5* | irix6* | nonstopux*)
7262 if test "$GCC" = yes; then 6522 if test "$GCC" = yes; then
7263 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' 6523 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'
6524 archive_expsym_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 ${wl}-exports_file ${wl}$export_symbols -o $lib'
7264 else 6525 else
7265 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' 6526 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'
6527 archive_expsym_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
7266 hardcode_libdir_flag_spec_ld='-rpath $libdir' 6528 hardcode_libdir_flag_spec_ld='-rpath $libdir'
7267 fi 6529 fi
7268 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 6530 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7269 hardcode_libdir_separator=: 6531 hardcode_libdir_separator=:
6532 inherit_rpath=yes
7270 link_all_deplibs=yes 6533 link_all_deplibs=yes
7271 ;; 6534 ;;
7272 6535
7273 netbsd* | netbsdelf*-gnu | knetbsd*-gnu) 6536 netbsd*)
7274 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 6537 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
7275 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 6538 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7276 else 6539 else
7277 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 6540 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7278 fi 6541 fi
7279 hardcode_libdir_flag_spec='-R$libdir' 6542 hardcode_libdir_flag_spec='-R$libdir'
7290 ;; 6553 ;;
7291 6554
7292 openbsd*) 6555 openbsd*)
7293 hardcode_direct=yes 6556 hardcode_direct=yes
7294 hardcode_shlibpath_var=no 6557 hardcode_shlibpath_var=no
7295 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 6558 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7296 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 6559 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7297 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 6560 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7298 export_dynamic_flag_spec='${wl}-E' 6561 export_dynamic_flag_spec='${wl}-E'
7299 else 6562 else
7300 case $host_os in 6563 case $host_os in
7313 os2*) 6576 os2*)
7314 hardcode_libdir_flag_spec='-L$libdir' 6577 hardcode_libdir_flag_spec='-L$libdir'
7315 hardcode_minus_L=yes 6578 hardcode_minus_L=yes
7316 allow_undefined_flag=unsupported 6579 allow_undefined_flag=unsupported
7317 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' 6580 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'
7318 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 6581 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7319 ;; 6582 ;;
7320 6583
7321 osf3*) 6584 osf3*)
7322 if test "$GCC" = yes; then 6585 if test "$GCC" = yes; then
7323 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 6586 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7468 6731
7469 *) 6732 *)
7470 ld_shlibs=no 6733 ld_shlibs=no
7471 ;; 6734 ;;
7472 esac 6735 esac
6736
6737 if test x$host_vendor = xsni; then
6738 case $host in
6739 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6740 export_dynamic_flag_spec='${wl}-Blargedynsym'
6741 ;;
6742 esac
6743 fi
7473 fi 6744 fi
7474 6745
7475echo "$as_me:$LINENO: result: $ld_shlibs" >&5 6746echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7476echo "${ECHO_T}$ld_shlibs" >&6 6747echo "${ECHO_T}$ld_shlibs" >&6
7477test "$ld_shlibs" = no && can_build_shared=no 6748test "$ld_shlibs" = no && can_build_shared=no
7478 6749
6750
6751
6752
6753
6754
6755
6756
6757
6758
6759
6760
6761
6762
6763
7479variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 6764variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7480if test "$GCC" = yes; then 6765if test "$GCC" = yes; then
7481 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 6766 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7482fi 6767fi
6768
6769
6770
6771
6772
7483 6773
7484# 6774#
7485# Do we need to explicitly link libc? 6775# Do we need to explicitly link libc?
7486# 6776#
7487case "x$archive_cmds_need_lc" in 6777case "x$archive_cmds_need_lc" in
7518 verstring= 6808 verstring=
7519 output_objdir=. 6809 output_objdir=.
7520 libname=conftest 6810 libname=conftest
7521 lt_save_allow_undefined_flag=$allow_undefined_flag 6811 lt_save_allow_undefined_flag=$allow_undefined_flag
7522 allow_undefined_flag= 6812 allow_undefined_flag=
7523 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 6813 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
7524 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 6814 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
7525 ac_status=$? 6815 ac_status=$?
7526 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7527 (exit $ac_status); } 6817 (exit $ac_status); }
7528 then 6818 then
7529 archive_cmds_need_lc=no 6819 archive_cmds_need_lc=no
7541 esac 6831 esac
7542 fi 6832 fi
7543 ;; 6833 ;;
7544esac 6834esac
7545 6835
6836
6837
6838
6839
6840
6841
6842
6843
6844
6845
6846
6847
6848
6849
6850
6851
6852
6853
6854
6855
6856
6857
6858
6859
6860
6861
6862
6863
6864
6865
6866
6867
6868
6869
6870
6871
6872
6873
6874
6875
6876
6877
6878
6879
6880
6881
6882
6883
6884
6885
6886
6887
6888
6889
6890
6891
6892
6893
6894
6895
6896
6897
6898
6899
6900
6901
6902
6903
6904
6905
6906
6907
6908
6909
6910
6911
6912
6913
6914
6915
6916
6917
6918
6919
6920
6921
6922
6923
6924
6925
6926
6927
6928
6929
6930
6931
6932
6933
6934
6935
6936
6937
6938
6939
6940
6941
6942
6943
6944
6945
6946
6947
6948
6949
6950
6951
6952
6953
6954
6955
6956
6957
6958
6959
6960
6961
6962
6963
6964
6965
6966
6967
7546echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 6968echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7547echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 6969echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7548library_names_spec= 6970library_names_spec=
7549libname_spec='lib$name' 6971libname_spec='lib$name'
7550soname_spec= 6972soname_spec=
7557shlibpath_overrides_runpath=unknown 6979shlibpath_overrides_runpath=unknown
7558version_type=none 6980version_type=none
7559dynamic_linker="$host_os ld.so" 6981dynamic_linker="$host_os ld.so"
7560sys_lib_dlsearch_path_spec="/lib /usr/lib" 6982sys_lib_dlsearch_path_spec="/lib /usr/lib"
7561if test "$GCC" = yes; then 6983if test "$GCC" = yes; then
7562 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 6984 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7563 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 6985 if echo "$sys_lib_search_path_spec" | $GREP ';' >/dev/null ; then
7564 # if the path contains ";" then we assume it to be the separator 6986 # if the path contains ";" then we assume it to be the separator
7565 # otherwise default to the standard path separator (i.e. ":") - it is 6987 # otherwise default to the standard path separator (i.e. ":") - it is
7566 # assumed that no part of a normal pathname contains ";" but that should 6988 # assumed that no part of a normal pathname contains ";" but that should
7567 # okay in the real world where ";" in dirpaths is itself problematic. 6989 # okay in the real world where ";" in dirpaths is itself problematic.
7568 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 6990 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7606 # development snapshots of GCC prior to 3.0. 7028 # development snapshots of GCC prior to 3.0.
7607 case $host_os in 7029 case $host_os in
7608 aix4 | aix4.[01] | aix4.[01].*) 7030 aix4 | aix4.[01] | aix4.[01].*)
7609 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 7031 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7610 echo ' yes ' 7032 echo ' yes '
7611 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 7033 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
7612 : 7034 :
7613 else 7035 else
7614 can_build_shared=no 7036 can_build_shared=no
7615 fi 7037 fi
7616 ;; 7038 ;;
7632 shlibpath_var=LIBPATH 7054 shlibpath_var=LIBPATH
7633 fi 7055 fi
7634 ;; 7056 ;;
7635 7057
7636amigaos*) 7058amigaos*)
7059 if test "$host_cpu" = m68k; then
7637 library_names_spec='$libname.ixlibrary $libname.a' 7060 library_names_spec='$libname.ixlibrary $libname.a'
7638 # Create ${libname}_ixlibrary.a entries in /sys/libs. 7061 # Create ${libname}_ixlibrary.a entries in /sys/libs.
7639 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' 7062 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'
7063 else
7064 dynamic_linker=no
7065 fi
7640 ;; 7066 ;;
7641 7067
7642beos*) 7068beos*)
7643 library_names_spec='${libname}${shared_ext}' 7069 library_names_spec='${libname}${shared_ext}'
7644 dynamic_linker="$host_os ld.so" 7070 dynamic_linker="$host_os ld.so"
7686 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 7112 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
7687 ;; 7113 ;;
7688 mingw*) 7114 mingw*)
7689 # MinGW DLLs use traditional 'lib' prefix 7115 # MinGW DLLs use traditional 'lib' prefix
7690 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 7116 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7691 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 7117 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7692 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 7118 if echo "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
7693 # It is most probably a Windows format PATH printed by 7119 # It is most probably a Windows format PATH printed by
7694 # mingw gcc, but we are running on Cygwin. Gcc prints its search 7120 # mingw gcc, but we are running on Cygwin. Gcc prints its search
7695 # path with ; separators, and with drive letters. We can handle the 7121 # path with ; separators, and with drive letters. We can handle the
7696 # drive letters (cygwin fileutils understands them), so leave them, 7122 # drive letters (cygwin fileutils understands them), so leave them,
7697 # especially as we might pass files found there to a mingw objdump, 7123 # especially as we might pass files found there to a mingw objdump,
7727 shlibpath_overrides_runpath=yes 7153 shlibpath_overrides_runpath=yes
7728 shlibpath_var=DYLD_LIBRARY_PATH 7154 shlibpath_var=DYLD_LIBRARY_PATH
7729 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)' 7155 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
7730 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 7156 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7731 if test "$GCC" = yes; then 7157 if test "$GCC" = yes; then
7732 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"` 7158 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"`
7733 else 7159 else
7734 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 7160 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
7735 fi 7161 fi
7736 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 7162 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7737 ;; 7163 ;;
7917 # people can always --disable-shared, the test was removed, and we 7343 # people can always --disable-shared, the test was removed, and we
7918 # assume the GNU/Linux dynamic linker is in use. 7344 # assume the GNU/Linux dynamic linker is in use.
7919 dynamic_linker='GNU/Linux ld.so' 7345 dynamic_linker='GNU/Linux ld.so'
7920 ;; 7346 ;;
7921 7347
7922netbsdelf*-gnu)
7923 version_type=linux
7924 need_lib_prefix=no
7925 need_version=no
7926 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7927 soname_spec='${libname}${release}${shared_ext}$major'
7928 shlibpath_var=LD_LIBRARY_PATH
7929 shlibpath_overrides_runpath=no
7930 hardcode_into_libs=yes
7931 dynamic_linker='NetBSD ld.elf_so'
7932 ;;
7933
7934knetbsd*-gnu) 7348knetbsd*-gnu)
7935 version_type=linux 7349 version_type=linux
7936 need_lib_prefix=no 7350 need_lib_prefix=no
7937 need_version=no 7351 need_version=no
7938 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 7352 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7945 7359
7946netbsd*) 7360netbsd*)
7947 version_type=sunos 7361 version_type=sunos
7948 need_lib_prefix=no 7362 need_lib_prefix=no
7949 need_version=no 7363 need_version=no
7950 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 7364 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
7951 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 7365 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7952 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 7366 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7953 dynamic_linker='NetBSD (a.out) ld.so' 7367 dynamic_linker='NetBSD (a.out) ld.so'
7954 else 7368 else
7955 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 7369 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7983 need_lib_prefix=no 7397 need_lib_prefix=no
7984 need_version=yes 7398 need_version=yes
7985 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 7399 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7986 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 7400 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7987 shlibpath_var=LD_LIBRARY_PATH 7401 shlibpath_var=LD_LIBRARY_PATH
7988 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 7402 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7989 case $host_os in 7403 case $host_os in
7990 openbsd2.[89] | openbsd2.[89].*) 7404 openbsd2.[89] | openbsd2.[89].*)
7991 shlibpath_overrides_runpath=no 7405 shlibpath_overrides_runpath=no
7992 ;; 7406 ;;
7993 *) 7407 *)
8058 shlibpath_var=LD_LIBRARY_PATH 7472 shlibpath_var=LD_LIBRARY_PATH
8059 case $host_vendor in 7473 case $host_vendor in
8060 sni) 7474 sni)
8061 shlibpath_overrides_runpath=no 7475 shlibpath_overrides_runpath=no
8062 need_lib_prefix=no 7476 need_lib_prefix=no
8063 export_dynamic_flag_spec='${wl}-Blargedynsym'
8064 runpath_var=LD_RUN_PATH 7477 runpath_var=LD_RUN_PATH
8065 ;; 7478 ;;
8066 siemens) 7479 siemens)
8067 need_lib_prefix=no 7480 need_lib_prefix=no
8068 ;; 7481 ;;
8097esac 7510esac
8098echo "$as_me:$LINENO: result: $dynamic_linker" >&5 7511echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8099echo "${ECHO_T}$dynamic_linker" >&6 7512echo "${ECHO_T}$dynamic_linker" >&6
8100test "$dynamic_linker" = no && can_build_shared=no 7513test "$dynamic_linker" = no && can_build_shared=no
8101 7514
7515
7516
7517
7518
7519
7520
7521
7522
7523
7524
7525
7526
7527
7528
7529
7530
7531
7532
7533
7534
7535
7536
7537
7538
7539
7540
7541
7542
7543
7544
7545
7546
7547
7548
7549
7550
7551
7552
7553
7554
7555
7556
7557
7558
7559
7560
7561
7562
7563
7564
7565
7566
7567
7568
7569
7570
7571
7572
7573
7574
7575
7576
7577
7578
7579
7580
7581
7582
7583
7584
7585
7586
7587
7588
7589
7590
7591
7592
7593
7594
8102echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 7595 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8103echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 7596echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8104hardcode_action= 7597hardcode_action=
8105if test -n "$hardcode_libdir_flag_spec" || \ 7598if test -n "$hardcode_libdir_flag_spec" ||
8106 test -n "$runpath_var " || \ 7599 test -n "$runpath_var " ||
8107 test "X$hardcode_automatic"="Xyes" ; then 7600 test "X$hardcode_automatic"="Xyes" ; then
8108 7601
8109 # We can hardcode non-existant directories. 7602 # We can hardcode non-existant directories.
8110 if test "$hardcode_direct" != no && 7603 if test "$hardcode_direct" != no &&
8111 # If the only mechanism to avoid hardcoding is shlibpath_var, we 7604 # If the only mechanism to avoid hardcoding is shlibpath_var, we
8125 hardcode_action=unsupported 7618 hardcode_action=unsupported
8126fi 7619fi
8127echo "$as_me:$LINENO: result: $hardcode_action" >&5 7620echo "$as_me:$LINENO: result: $hardcode_action" >&5
8128echo "${ECHO_T}$hardcode_action" >&6 7621echo "${ECHO_T}$hardcode_action" >&6
8129 7622
8130if test "$hardcode_action" = relink; then 7623if test "$hardcode_action" = relink ||
7624 test "$inherit_rpath" = yes; then
8131 # Fast installation is not supported 7625 # Fast installation is not supported
8132 enable_fast_install=no 7626 enable_fast_install=no
8133elif test "$shlibpath_overrides_runpath" = yes || 7627elif test "$shlibpath_overrides_runpath" = yes ||
8134 test "$enable_shared" = no; then 7628 test "$enable_shared" = no; then
8135 # Fast installation is not necessary 7629 # Fast installation is not necessary
8136 enable_fast_install=needless 7630 enable_fast_install=needless
8137fi 7631fi
8138 7632
7633
7634
7635
7636
7637
7638
8139striplib= 7639striplib=
8140old_striplib= 7640old_striplib=
8141echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 7641echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8142echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 7642echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
8143if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then 7643if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
8144 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 7644 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8145 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 7645 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8146 echo "$as_me:$LINENO: result: yes" >&5 7646 echo "$as_me:$LINENO: result: yes" >&5
8147echo "${ECHO_T}yes" >&6 7647echo "${ECHO_T}yes" >&6
8148else 7648else
8163echo "${ECHO_T}no" >&6 7663echo "${ECHO_T}no" >&6
8164 ;; 7664 ;;
8165 esac 7665 esac
8166fi 7666fi
8167 7667
7668
7669
7670
7671
7672
7673
7674
7675
7676
7677
8168if test "x$enable_dlopen" != xyes; then 7678 if test "x$enable_dlopen" != xyes; then
8169 enable_dlopen=unknown 7679 enable_dlopen=unknown
8170 enable_dlopen_self=unknown 7680 enable_dlopen_self=unknown
8171 enable_dlopen_self_static=unknown 7681 enable_dlopen_self_static=unknown
8172else 7682else
8173 lt_cv_dlopen=no 7683 lt_cv_dlopen=no
8760 if test "$cross_compiling" = yes; then : 8270 if test "$cross_compiling" = yes; then :
8761 lt_cv_dlopen_self=cross 8271 lt_cv_dlopen_self=cross
8762else 8272else
8763 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 8273 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8764 lt_status=$lt_dlunknown 8274 lt_status=$lt_dlunknown
8765 cat > conftest.$ac_ext <<EOF 8275 cat > conftest.$ac_ext <<_LT_EOF
8766#line 8766 "configure" 8276#line 8276 "configure"
8767#include "confdefs.h" 8277#include "confdefs.h"
8768 8278
8769#if HAVE_DLFCN_H 8279#if HAVE_DLFCN_H
8770#include <dlfcn.h> 8280#include <dlfcn.h>
8771#endif 8281#endif
8821 /* dlclose (self); */ 8331 /* dlclose (self); */
8822 } 8332 }
8823 8333
8824 exit (status); 8334 exit (status);
8825} 8335}
8826EOF 8336_LT_EOF
8827 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8337 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8828 (eval $ac_link) 2>&5 8338 (eval $ac_link) 2>&5
8829 ac_status=$? 8339 ac_status=$?
8830 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8831 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 8341 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8858 if test "$cross_compiling" = yes; then : 8368 if test "$cross_compiling" = yes; then :
8859 lt_cv_dlopen_self_static=cross 8369 lt_cv_dlopen_self_static=cross
8860else 8370else
8861 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 8371 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8862 lt_status=$lt_dlunknown 8372 lt_status=$lt_dlunknown
8863 cat > conftest.$ac_ext <<EOF 8373 cat > conftest.$ac_ext <<_LT_EOF
8864#line 8864 "configure" 8374#line 8374 "configure"
8865#include "confdefs.h" 8375#include "confdefs.h"
8866 8376
8867#if HAVE_DLFCN_H 8377#if HAVE_DLFCN_H
8868#include <dlfcn.h> 8378#include <dlfcn.h>
8869#endif 8379#endif
8919 /* dlclose (self); */ 8429 /* dlclose (self); */
8920 } 8430 }
8921 8431
8922 exit (status); 8432 exit (status);
8923} 8433}
8924EOF 8434_LT_EOF
8925 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8435 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8926 (eval $ac_link) 2>&5 8436 (eval $ac_link) 2>&5
8927 ac_status=$? 8437 ac_status=$?
8928 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8929 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 8439 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8963 *) enable_dlopen_self_static=unknown ;; 8473 *) enable_dlopen_self_static=unknown ;;
8964 esac 8474 esac
8965fi 8475fi
8966 8476
8967 8477
8478
8479
8480
8481
8482
8483
8484
8485
8486
8487
8488
8489
8490
8491
8492
8968# Report which librarie types wil actually be built 8493 # Report which library types will actually be built
8969echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 8494 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
8970echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6 8495echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
8971echo "$as_me:$LINENO: result: $can_build_shared" >&5 8496 echo "$as_me:$LINENO: result: $can_build_shared" >&5
8972echo "${ECHO_T}$can_build_shared" >&6 8497echo "${ECHO_T}$can_build_shared" >&6
8973 8498
8974echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 8499 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
8975echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6 8500echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
8976test "$can_build_shared" = "no" && enable_shared=no 8501 test "$can_build_shared" = "no" && enable_shared=no
8977 8502
8978# On AIX, shared libraries and static libraries use the same namespace, and 8503 # On AIX, shared libraries and static libraries use the same namespace, and
8979# are all built from PIC. 8504 # are all built from PIC.
8980case "$host_os" in 8505 case "$host_os" in
8981aix3*) 8506 aix3*)
8982 test "$enable_shared" = yes && enable_static=no
8983 if test -n "$RANLIB"; then
8984 archive_cmds="$archive_cmds~\$RANLIB \$lib"
8985 postinstall_cmds='$RANLIB $lib'
8986 fi
8987 ;;
8988
8989aix4* | aix5*)
8990 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
8991 test "$enable_shared" = yes && enable_static=no 8507 test "$enable_shared" = yes && enable_static=no
8992 fi 8508 if test -n "$RANLIB"; then
8993 ;; 8509 archive_cmds="$archive_cmds~\$RANLIB \$lib"
8994 darwin* | rhapsody*) 8510 postinstall_cmds='$RANLIB $lib'
8995 if test "$GCC" = yes; then
8996 archive_cmds_need_lc=no
8997 case "$host_os" in
8998 rhapsody* | darwin1.[012])
8999 allow_undefined_flag='-undefined suppress'
9000 ;;
9001 *) # Darwin 1.3 on
9002 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9003 allow_undefined_flag='-flat_namespace -undefined suppress'
9004 else
9005 case ${MACOSX_DEPLOYMENT_TARGET} in
9006 10.[012])
9007 allow_undefined_flag='-flat_namespace -undefined suppress'
9008 ;;
9009 10.*)
9010 allow_undefined_flag='-undefined dynamic_lookup'
9011 ;;
9012 esac
9013 fi 8511 fi
9014 ;;
9015 esac
9016 output_verbose_link_cmd='echo'
9017 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
9018 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9019 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9020 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}'
9021 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}'
9022 hardcode_direct=no
9023 hardcode_automatic=yes
9024 hardcode_shlibpath_var=unsupported
9025 whole_archive_flag_spec='-all_load $convenience'
9026 link_all_deplibs=yes
9027 else
9028 ld_shlibs=no
9029 fi
9030 ;; 8512 ;;
9031esac
9032echo "$as_me:$LINENO: result: $enable_shared" >&5
9033echo "${ECHO_T}$enable_shared" >&6
9034 8513
9035echo "$as_me:$LINENO: checking whether to build static libraries" >&5 8514 aix4* | aix5*)
9036echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6 8515 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9037# Make sure either enable_shared or enable_static is yes.
9038test "$enable_shared" = yes || enable_static=yes 8516 test "$enable_shared" = yes && enable_static=no
9039echo "$as_me:$LINENO: result: $enable_static" >&5
9040echo "${ECHO_T}$enable_static" >&6
9041
9042# The else clause should only fire when bootstrapping the
9043# libtool distribution, otherwise you forgot to ship ltmain.sh
9044# with your package, and you will get complaints that there are
9045# no rules to generate ltmain.sh.
9046if test -f "$ltmain"; then
9047 # See if we are running on zsh, and set the options which allow our commands through
9048 # without removal of \ escapes.
9049 if test -n "${ZSH_VERSION+set}" ; then
9050 setopt NO_GLOB_SUBST
9051 fi 8517 fi
9052 # Now quote all the things that may contain metacharacters while being
9053 # careful not to overquote the AC_SUBSTed values. We take copies of the
9054 # variables and quote the copies for generation of the libtool script.
9055 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
9056 SED SHELL STRIP \
9057 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9058 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9059 deplibs_check_method reload_flag reload_cmds need_locks \
9060 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9061 lt_cv_sys_global_symbol_to_c_name_address \
9062 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9063 old_postinstall_cmds old_postuninstall_cmds \
9064 compiler \
9065 CC \
9066 LD \
9067 lt_prog_compiler_wl \
9068 lt_prog_compiler_pic \
9069 lt_prog_compiler_static \
9070 lt_prog_compiler_no_builtin_flag \
9071 export_dynamic_flag_spec \
9072 thread_safe_flag_spec \
9073 whole_archive_flag_spec \
9074 enable_shared_with_static_runtimes \
9075 old_archive_cmds \
9076 old_archive_from_new_cmds \
9077 predep_objects \
9078 postdep_objects \
9079 predeps \
9080 postdeps \
9081 compiler_lib_search_path \
9082 archive_cmds \
9083 archive_expsym_cmds \
9084 postinstall_cmds \
9085 postuninstall_cmds \
9086 old_archive_from_expsyms_cmds \
9087 allow_undefined_flag \
9088 no_undefined_flag \
9089 export_symbols_cmds \
9090 hardcode_libdir_flag_spec \
9091 hardcode_libdir_flag_spec_ld \
9092 hardcode_libdir_separator \
9093 hardcode_automatic \
9094 module_cmds \
9095 module_expsym_cmds \
9096 lt_cv_prog_compiler_c_o \
9097 exclude_expsyms \
9098 include_expsyms; do
9099
9100 case $var in
9101 old_archive_cmds | \
9102 old_archive_from_new_cmds | \
9103 archive_cmds | \
9104 archive_expsym_cmds | \
9105 module_cmds | \
9106 module_expsym_cmds | \
9107 old_archive_from_expsyms_cmds | \
9108 export_symbols_cmds | \
9109 extract_expsyms_cmds | reload_cmds | finish_cmds | \
9110 postinstall_cmds | postuninstall_cmds | \
9111 old_postinstall_cmds | old_postuninstall_cmds | \
9112 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9113 # Double-quote double-evaled strings.
9114 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9115 ;;
9116 *)
9117 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9118 ;;
9119 esac
9120 done
9121
9122 case $lt_echo in
9123 *'\$0 --fallback-echo"')
9124 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9125 ;; 8518 ;;
9126 esac 8519 esac
8520 echo "$as_me:$LINENO: result: $enable_shared" >&5
8521echo "${ECHO_T}$enable_shared" >&6
9127 8522
9128cfgfile="${ofile}T" 8523 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9129 trap "$rm \"$cfgfile\"; exit 1" 1 2 15 8524echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9130 $rm -f "$cfgfile" 8525 # Make sure either enable_shared or enable_static is yes.
9131 { echo "$as_me:$LINENO: creating $ofile" >&5 8526 test "$enable_shared" = yes || enable_static=yes
9132echo "$as_me: creating $ofile" >&6;} 8527 echo "$as_me:$LINENO: result: $enable_static" >&5
8528echo "${ECHO_T}$enable_static" >&6
9133 8529
9134 cat <<__EOF__ >> "$cfgfile"
9135#! $SHELL
9136 8530
9137# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9138# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9139# NOTE: Changes made to this file will be lost: look at ltmain.sh.
9140#
9141# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9142# Free Software Foundation, Inc.
9143#
9144# This file is part of GNU Libtool:
9145# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9146#
9147# This program is free software; you can redistribute it and/or modify
9148# it under the terms of the GNU General Public License as published by
9149# the Free Software Foundation; either version 2 of the License, or
9150# (at your option) any later version.
9151#
9152# This program is distributed in the hope that it will be useful, but
9153# WITHOUT ANY WARRANTY; without even the implied warranty of
9154# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
9155# General Public License for more details.
9156#
9157# You should have received a copy of the GNU General Public License
9158# along with this program; if not, write to the Free Software
9159# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
9160#
9161# As a special exception to the GNU General Public License, if you
9162# distribute this file as part of a program that contains a
9163# configuration script generated by Autoconf, you may include it under
9164# the same distribution terms that you use for the rest of that program.
9165 8531
9166# A sed program that does not truncate output.
9167SED=$lt_SED
9168 8532
9169# Sed that helps us avoid accidentally triggering echo(1) options like -n.
9170Xsed="$SED -e s/^X//"
9171
9172# The HP-UX ksh and POSIX shell print the target directory to stdout
9173# if CDPATH is set.
9174if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
9175
9176# The names of the tagged configurations supported by this script.
9177available_tags=
9178
9179# ### BEGIN LIBTOOL CONFIG
9180
9181# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9182
9183# Shell to use when invoking shell scripts.
9184SHELL=$lt_SHELL
9185
9186# Whether or not to build shared libraries.
9187build_libtool_libs=$enable_shared
9188
9189# Whether or not to build static libraries.
9190build_old_libs=$enable_static
9191
9192# Whether or not to add -lc for building shared libraries.
9193build_libtool_need_lc=$archive_cmds_need_lc
9194
9195# Whether or not to disallow shared libs when runtime libs are static
9196allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9197
9198# Whether or not to optimize for fast installation.
9199fast_install=$enable_fast_install
9200
9201# The host system.
9202host_alias=$host_alias
9203host=$host
9204
9205# An echo program that does not interpret backslashes.
9206echo=$lt_echo
9207
9208# The archiver.
9209AR=$lt_AR
9210AR_FLAGS=$lt_AR_FLAGS
9211
9212# A C compiler.
9213LTCC=$lt_LTCC
9214
9215# A language-specific compiler.
9216CC=$lt_compiler
9217
9218# Is the compiler the GNU C compiler?
9219with_gcc=$GCC
9220
9221# An ERE matcher.
9222EGREP=$lt_EGREP
9223
9224# The linker used to build libraries.
9225LD=$lt_LD
9226
9227# Whether we need hard or soft links.
9228LN_S=$lt_LN_S
9229
9230# A BSD-compatible nm program.
9231NM=$lt_NM
9232
9233# A symbol stripping program
9234STRIP=$lt_STRIP
9235
9236# Used to examine libraries when file_magic_cmd begins "file"
9237MAGIC_CMD=$MAGIC_CMD
9238
9239# Used on cygwin: DLL creation program.
9240DLLTOOL="$DLLTOOL"
9241
9242# Used on cygwin: object dumper.
9243OBJDUMP="$OBJDUMP"
9244
9245# Used on cygwin: assembler.
9246AS="$AS"
9247
9248# The name of the directory that contains temporary libtool files.
9249objdir=$objdir
9250
9251# How to create reloadable object files.
9252reload_flag=$lt_reload_flag
9253reload_cmds=$lt_reload_cmds
9254
9255# How to pass a linker flag through the compiler.
9256wl=$lt_lt_prog_compiler_wl
9257
9258# Object file suffix (normally "o").
9259objext="$ac_objext"
9260
9261# Old archive suffix (normally "a").
9262libext="$libext"
9263
9264# Shared library suffix (normally ".so").
9265shrext_cmds='$shrext_cmds'
9266
9267# Executable file suffix (normally "").
9268exeext="$exeext"
9269
9270# Additional compiler flags for building library objects.
9271pic_flag=$lt_lt_prog_compiler_pic
9272pic_mode=$pic_mode
9273
9274# What is the maximum length of a command?
9275max_cmd_len=$lt_cv_sys_max_cmd_len
9276
9277# Does compiler simultaneously support -c and -o options?
9278compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9279
9280# Must we lock files when doing compilation ?
9281need_locks=$lt_need_locks
9282
9283# Do we need the lib prefix for modules?
9284need_lib_prefix=$need_lib_prefix
9285
9286# Do we need a version for libraries?
9287need_version=$need_version
9288
9289# Whether dlopen is supported.
9290dlopen_support=$enable_dlopen
9291
9292# Whether dlopen of programs is supported.
9293dlopen_self=$enable_dlopen_self
9294
9295# Whether dlopen of statically linked programs is supported.
9296dlopen_self_static=$enable_dlopen_self_static
9297
9298# Compiler flag to prevent dynamic linking.
9299link_static_flag=$lt_lt_prog_compiler_static
9300
9301# Compiler flag to turn off builtin functions.
9302no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9303
9304# Compiler flag to allow reflexive dlopens.
9305export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9306
9307# Compiler flag to generate shared objects directly from archives.
9308whole_archive_flag_spec=$lt_whole_archive_flag_spec
9309
9310# Compiler flag to generate thread-safe objects.
9311thread_safe_flag_spec=$lt_thread_safe_flag_spec
9312
9313# Library versioning type.
9314version_type=$version_type
9315
9316# Format of library name prefix.
9317libname_spec=$lt_libname_spec
9318
9319# List of archive names. First name is the real one, the rest are links.
9320# The last name is the one that the linker finds with -lNAME.
9321library_names_spec=$lt_library_names_spec
9322
9323# The coded name of the library, if different from the real name.
9324soname_spec=$lt_soname_spec
9325
9326# Commands used to build and install an old-style archive.
9327RANLIB=$lt_RANLIB
9328old_archive_cmds=$lt_old_archive_cmds
9329old_postinstall_cmds=$lt_old_postinstall_cmds
9330old_postuninstall_cmds=$lt_old_postuninstall_cmds
9331
9332# Create an old-style archive from a shared archive.
9333old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9334
9335# Create a temporary old-style archive to link instead of a shared archive.
9336old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9337
9338# Commands used to build and install a shared archive.
9339archive_cmds=$lt_archive_cmds
9340archive_expsym_cmds=$lt_archive_expsym_cmds
9341postinstall_cmds=$lt_postinstall_cmds
9342postuninstall_cmds=$lt_postuninstall_cmds
9343
9344# Commands used to build a loadable module (assumed same as above if empty)
9345module_cmds=$lt_module_cmds
9346module_expsym_cmds=$lt_module_expsym_cmds
9347
9348# Commands to strip libraries.
9349old_striplib=$lt_old_striplib
9350striplib=$lt_striplib
9351
9352# Dependencies to place before the objects being linked to create a
9353# shared library.
9354predep_objects=$lt_predep_objects
9355
9356# Dependencies to place after the objects being linked to create a
9357# shared library.
9358postdep_objects=$lt_postdep_objects
9359
9360# Dependencies to place before the objects being linked to create a
9361# shared library.
9362predeps=$lt_predeps
9363
9364# Dependencies to place after the objects being linked to create a
9365# shared library.
9366postdeps=$lt_postdeps
9367
9368# The library search path used internally by the compiler when linking
9369# a shared library.
9370compiler_lib_search_path=$lt_compiler_lib_search_path
9371
9372# Method to check whether dependent libraries are shared objects.
9373deplibs_check_method=$lt_deplibs_check_method
9374
9375# Command to use when deplibs_check_method == file_magic.
9376file_magic_cmd=$lt_file_magic_cmd
9377
9378# Flag that allows shared libraries with undefined symbols to be built.
9379allow_undefined_flag=$lt_allow_undefined_flag
9380
9381# Flag that forces no undefined symbols.
9382no_undefined_flag=$lt_no_undefined_flag
9383
9384# Commands used to finish a libtool library installation in a directory.
9385finish_cmds=$lt_finish_cmds
9386
9387# Same as above, but a single script fragment to be evaled but not shown.
9388finish_eval=$lt_finish_eval
9389
9390# Take the output of nm and produce a listing of raw symbols and C names.
9391global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9392
9393# Transform the output of nm in a proper C declaration
9394global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9395
9396# Transform the output of nm in a C name address pair
9397global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9398
9399# This is the shared library runtime path variable.
9400runpath_var=$runpath_var
9401
9402# This is the shared library path variable.
9403shlibpath_var=$shlibpath_var
9404
9405# Is shlibpath searched before the hard-coded library search path?
9406shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9407
9408# How to hardcode a shared library path into an executable.
9409hardcode_action=$hardcode_action
9410
9411# Whether we should hardcode library paths into libraries.
9412hardcode_into_libs=$hardcode_into_libs
9413
9414# Flag to hardcode \$libdir into a binary during linking.
9415# This must work even if \$libdir does not exist.
9416hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9417
9418# If ld is used when linking, flag to hardcode \$libdir into
9419# a binary during linking. This must work even if \$libdir does
9420# not exist.
9421hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9422
9423# Whether we need a single -rpath flag with a separated argument.
9424hardcode_libdir_separator=$lt_hardcode_libdir_separator
9425
9426# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9427# resulting binary.
9428hardcode_direct=$hardcode_direct
9429
9430# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9431# resulting binary.
9432hardcode_minus_L=$hardcode_minus_L
9433
9434# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9435# the resulting binary.
9436hardcode_shlibpath_var=$hardcode_shlibpath_var
9437
9438# Set to yes if building a shared library automatically hardcodes DIR into the library
9439# and all subsequent libraries and executables linked against it.
9440hardcode_automatic=$hardcode_automatic
9441
9442# Variables whose values should be saved in libtool wrapper scripts and
9443# restored at relink time.
9444variables_saved_for_relink="$variables_saved_for_relink"
9445
9446# Whether libtool must link a program against all its dependency libraries.
9447link_all_deplibs=$link_all_deplibs
9448
9449# Compile-time system search path for libraries
9450sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9451
9452# Run-time system search path for libraries
9453sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9454
9455# Fix the shell variable \$srcfile for the compiler.
9456fix_srcfile_path="$fix_srcfile_path"
9457
9458# Set to yes if exported symbols are required.
9459always_export_symbols=$always_export_symbols
9460
9461# The commands to list exported symbols.
9462export_symbols_cmds=$lt_export_symbols_cmds
9463
9464# The commands to extract the exported symbol list from a shared archive.
9465extract_expsyms_cmds=$lt_extract_expsyms_cmds
9466
9467# Symbols that should not be listed in the preloaded symbols.
9468exclude_expsyms=$lt_exclude_expsyms
9469
9470# Symbols that must always be exported.
9471include_expsyms=$lt_include_expsyms
9472
9473# ### END LIBTOOL CONFIG
9474
9475__EOF__
9476
9477
9478 case $host_os in
9479 aix3*)
9480 cat <<\EOF >> "$cfgfile"
9481
9482# AIX sometimes has problems with the GCC collect2 program. For some
9483# reason, if we set the COLLECT_NAMES environment variable, the problems
9484# vanish in a puff of smoke.
9485if test "X${COLLECT_NAMES+set}" != Xset; then
9486 COLLECT_NAMES=
9487 export COLLECT_NAMES
9488fi 8533fi
9489EOF
9490 ;;
9491 esac
9492
9493 # We use sed instead of cat because bash on DJGPP gets confused if
9494 # if finds mixed CR/LF and LF-only lines. Since sed operates in
9495 # text mode, it properly converts lines to CR/LF. This bash problem
9496 # is reportedly fixed, but why not run on old versions too?
9497 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9498
9499 mv -f "$cfgfile" "$ofile" || \
9500 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9501 chmod +x "$ofile"
9502
9503else
9504 # If there is no Makefile yet, we rely on a make rule to execute
9505 # `config.status --recheck' to rerun these tests and create the
9506 # libtool script then.
9507 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
9508 if test -f "$ltmain_in"; then
9509 test -f Makefile && make "$ltmain"
9510 fi
9511fi
9512
9513
9514ac_ext=c 8534ac_ext=c
9515ac_cpp='$CPP $CPPFLAGS' 8535ac_cpp='$CPP $CPPFLAGS'
9516ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8536ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9517ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8537ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9518ac_compiler_gnu=$ac_cv_c_compiler_gnu 8538ac_compiler_gnu=$ac_cv_c_compiler_gnu
9519 8539
9520CC="$lt_save_CC" 8540CC="$lt_save_CC"
9521 8541
9522 8542
9523# Check whether --with-tags or --without-tags was given.
9524if test "${with_tags+set}" = set; then
9525 withval="$with_tags"
9526 tagnames="$withval"
9527fi;
9528 8543
9529if test -f "$ltmain" && test -n "$tagnames"; then
9530 if test ! -f "${ofile}"; then
9531 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9532echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9533 fi
9534 8544
9535 if test -z "$LTCC"; then
9536 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9537 if test -z "$LTCC"; then
9538 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9539echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9540 else
9541 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9542echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9543 fi
9544 fi
9545 8545
9546 # Extract list of available tagged configurations in $ofile.
9547 # Note that this assumes the entire list is on one line.
9548 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9549 8546
9550 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9551 for tagname in $tagnames; do
9552 IFS="$lt_save_ifs"
9553 # Check whether tagname contains only valid characters
9554 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9555 "") ;;
9556 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9557echo "$as_me: error: invalid tag name: $tagname" >&2;}
9558 { (exit 1); exit 1; }; }
9559 ;;
9560 esac
9561 8547
9562 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9563 then
9564 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9565echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9566 { (exit 1); exit 1; }; }
9567 fi
9568 8548
9569 # Update the list of available tags.
9570 if test -n "$tagname"; then
9571 echo appending configuration tag \"$tagname\" to $ofile
9572 8549
9573 case $tagname in
9574 CXX)
9575 if test -n "$CXX" && test "X$CXX" != "Xno"; then
9576 ac_ext=cc
9577ac_cpp='$CXXCPP $CPPFLAGS'
9578ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9579ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9580ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9581 8550
9582 8551
8552 ac_config_commands="$ac_config_commands libtool"
9583 8553
9584 8554
9585archive_cmds_need_lc_CXX=no
9586allow_undefined_flag_CXX=
9587always_export_symbols_CXX=no
9588archive_expsym_cmds_CXX=
9589export_dynamic_flag_spec_CXX=
9590hardcode_direct_CXX=no
9591hardcode_libdir_flag_spec_CXX=
9592hardcode_libdir_flag_spec_ld_CXX=
9593hardcode_libdir_separator_CXX=
9594hardcode_minus_L_CXX=no
9595hardcode_automatic_CXX=no
9596module_cmds_CXX=
9597module_expsym_cmds_CXX=
9598link_all_deplibs_CXX=unknown
9599old_archive_cmds_CXX=$old_archive_cmds
9600no_undefined_flag_CXX=
9601whole_archive_flag_spec_CXX=
9602enable_shared_with_static_runtimes_CXX=no
9603 8555
9604# Dependencies to place before and after the object being linked:
9605predep_objects_CXX=
9606postdep_objects_CXX=
9607predeps_CXX=
9608postdeps_CXX=
9609compiler_lib_search_path_CXX=
9610 8556
9611# Source file extension for C++ test sources. 8557# Only expand once:
9612ac_ext=cc
9613
9614# Object file extension for compiled C++ test sources.
9615objext=o
9616objext_CXX=$objext
9617
9618# Code to be used in simple compile tests
9619lt_simple_compile_test_code="int some_variable = 0;\n"
9620
9621# Code to be used in simple link tests
9622lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
9623
9624# ltmain only uses $CC for tagged configurations so make sure $CC is set.
9625
9626# If no C compiler was specified, use CC.
9627LTCC=${LTCC-"$CC"}
9628
9629# Allow CC to be a program name with arguments.
9630compiler=$CC
9631
9632
9633# Allow CC to be a program name with arguments.
9634lt_save_CC=$CC
9635lt_save_LD=$LD
9636lt_save_GCC=$GCC
9637GCC=$GXX
9638lt_save_with_gnu_ld=$with_gnu_ld
9639lt_save_path_LD=$lt_cv_path_LD
9640if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9641 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9642else
9643 unset lt_cv_prog_gnu_ld
9644fi
9645if test -n "${lt_cv_path_LDCXX+set}"; then
9646 lt_cv_path_LD=$lt_cv_path_LDCXX
9647else
9648 unset lt_cv_path_LD
9649fi
9650test -z "${LDCXX+set}" || LD=$LDCXX
9651CC=${CXX-"c++"}
9652compiler=$CC
9653compiler_CXX=$CC
9654cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
9655
9656# We don't want -fno-exception wen compiling C++ code, so set the
9657# no_builtin_flag separately
9658if test "$GXX" = yes; then
9659 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9660else
9661 lt_prog_compiler_no_builtin_flag_CXX=
9662fi
9663
9664if test "$GXX" = yes; then
9665 # Set up default GNU C++ configuration
9666
9667
9668# Check whether --with-gnu-ld or --without-gnu-ld was given.
9669if test "${with_gnu_ld+set}" = set; then
9670 withval="$with_gnu_ld"
9671 test "$withval" = no || with_gnu_ld=yes
9672else
9673 with_gnu_ld=no
9674fi;
9675ac_prog=ld
9676if test "$GCC" = yes; then
9677 # Check if gcc -print-prog-name=ld gives a path.
9678 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9679echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9680 case $host in
9681 *-*-mingw*)
9682 # gcc leaves a trailing carriage return which upsets mingw
9683 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9684 *)
9685 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9686 esac
9687 case $ac_prog in
9688 # Accept absolute paths.
9689 [\\/]* | ?:[\\/]*)
9690 re_direlt='/[^/][^/]*/\.\./'
9691 # Canonicalize the pathname of ld
9692 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9693 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9694 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9695 done
9696 test -z "$LD" && LD="$ac_prog"
9697 ;;
9698 "")
9699 # If it fails, then pretend we aren't using GCC.
9700 ac_prog=ld
9701 ;;
9702 *)
9703 # If it is relative, then search for the first ld in PATH.
9704 with_gnu_ld=unknown
9705 ;;
9706 esac
9707elif test "$with_gnu_ld" = yes; then
9708 echo "$as_me:$LINENO: checking for GNU ld" >&5
9709echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9710else
9711 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9712echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9713fi
9714if test "${lt_cv_path_LD+set}" = set; then
9715 echo $ECHO_N "(cached) $ECHO_C" >&6
9716else
9717 if test -z "$LD"; then
9718 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9719 for ac_dir in $PATH; do
9720 IFS="$lt_save_ifs"
9721 test -z "$ac_dir" && ac_dir=.
9722 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9723 lt_cv_path_LD="$ac_dir/$ac_prog"
9724 # Check to see if the program is GNU ld. I'd rather use --version,
9725 # but apparently some GNU ld's only accept -v.
9726 # Break only if it was the GNU/non-GNU ld that we prefer.
9727 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9728 *GNU* | *'with BFD'*)
9729 test "$with_gnu_ld" != no && break
9730 ;;
9731 *)
9732 test "$with_gnu_ld" != yes && break
9733 ;;
9734 esac
9735 fi
9736 done
9737 IFS="$lt_save_ifs"
9738else
9739 lt_cv_path_LD="$LD" # Let the user override the test with a path.
9740fi
9741fi
9742
9743LD="$lt_cv_path_LD"
9744if test -n "$LD"; then
9745 echo "$as_me:$LINENO: result: $LD" >&5
9746echo "${ECHO_T}$LD" >&6
9747else
9748 echo "$as_me:$LINENO: result: no" >&5
9749echo "${ECHO_T}no" >&6
9750fi
9751test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9752echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9753 { (exit 1); exit 1; }; }
9754echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9755echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9756if test "${lt_cv_prog_gnu_ld+set}" = set; then
9757 echo $ECHO_N "(cached) $ECHO_C" >&6
9758else
9759 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9760case `$LD -v 2>&1 </dev/null` in
9761*GNU* | *'with BFD'*)
9762 lt_cv_prog_gnu_ld=yes
9763 ;;
9764*)
9765 lt_cv_prog_gnu_ld=no
9766 ;;
9767esac
9768fi
9769echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9770echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9771with_gnu_ld=$lt_cv_prog_gnu_ld
9772
9773
9774
9775 # Check if GNU C++ uses GNU ld as the underlying linker, since the
9776 # archiving commands below assume that GNU ld is being used.
9777 if test "$with_gnu_ld" = yes; then
9778 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9779 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'
9780
9781 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9782 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9783
9784 # If archive_cmds runs LD, not CC, wlarc should be empty
9785 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9786 # investigate it a little bit more. (MM)
9787 wlarc='${wl}'
9788
9789 # ancient GNU ld didn't support --whole-archive et. al.
9790 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9791 grep 'no-whole-archive' > /dev/null; then
9792 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9793 else
9794 whole_archive_flag_spec_CXX=
9795 fi
9796 else
9797 with_gnu_ld=no
9798 wlarc=
9799
9800 # A generic and very simple default shared library creation
9801 # command for GNU C++ for the case where it uses the native
9802 # linker, instead of GNU ld. If possible, this setting should
9803 # overridden to take advantage of the native linker features on
9804 # the platform it is being used on.
9805 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9806 fi
9807
9808 # Commands to make compiler produce verbose output that lists
9809 # what "hidden" libraries, object files and flags are used when
9810 # linking a shared library.
9811 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9812
9813else
9814 GXX=no
9815 with_gnu_ld=no
9816 wlarc=
9817fi
9818
9819# PORTME: fill in a description of your system's C++ link characteristics
9820echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9821echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9822ld_shlibs_CXX=yes
9823case $host_os in
9824 aix3*)
9825 # FIXME: insert proper C++ library support
9826 ld_shlibs_CXX=no
9827 ;;
9828 aix4* | aix5*)
9829 if test "$host_cpu" = ia64; then
9830 # On IA64, the linker does run time linking by default, so we don't
9831 # have to do anything special.
9832 aix_use_runtimelinking=no
9833 exp_sym_flag='-Bexport'
9834 no_entry_flag=""
9835 else
9836 aix_use_runtimelinking=no
9837
9838 # Test if we are trying to use run time linking or normal
9839 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9840 # need to do runtime linking.
9841 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9842 for ld_flag in $LDFLAGS; do
9843 case $ld_flag in
9844 *-brtl*)
9845 aix_use_runtimelinking=yes
9846 break
9847 ;;
9848 esac
9849 done
9850 esac
9851
9852 exp_sym_flag='-bexport'
9853 no_entry_flag='-bnoentry'
9854 fi
9855
9856 # When large executables or shared objects are built, AIX ld can
9857 # have problems creating the table of contents. If linking a library
9858 # or program results in "error TOC overflow" add -mminimal-toc to
9859 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9860 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9861
9862 archive_cmds_CXX=''
9863 hardcode_direct_CXX=yes
9864 hardcode_libdir_separator_CXX=':'
9865 link_all_deplibs_CXX=yes
9866
9867 if test "$GXX" = yes; then
9868 case $host_os in aix4.012|aix4.012.*)
9869 # We only want to do this on AIX 4.2 and lower, the check
9870 # below for broken collect2 doesn't work under 4.3+
9871 collect2name=`${CC} -print-prog-name=collect2`
9872 if test -f "$collect2name" && \
9873 strings "$collect2name" | grep resolve_lib_name >/dev/null
9874 then
9875 # We have reworked collect2
9876 hardcode_direct_CXX=yes
9877 else
9878 # We have old collect2
9879 hardcode_direct_CXX=unsupported
9880 # It fails to find uninstalled libraries when the uninstalled
9881 # path is not listed in the libpath. Setting hardcode_minus_L
9882 # to unsupported forces relinking
9883 hardcode_minus_L_CXX=yes
9884 hardcode_libdir_flag_spec_CXX='-L$libdir'
9885 hardcode_libdir_separator_CXX=
9886 fi
9887 esac
9888 shared_flag='-shared'
9889 else
9890 # not using gcc
9891 if test "$host_cpu" = ia64; then
9892 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9893 # chokes on -Wl,-G. The following line is correct:
9894 shared_flag='-G'
9895 else
9896 if test "$aix_use_runtimelinking" = yes; then
9897 shared_flag='${wl}-G'
9898 else
9899 shared_flag='${wl}-bM:SRE'
9900 fi
9901 fi
9902 fi
9903
9904 # It seems that -bexpall does not export symbols beginning with
9905 # underscore (_), so it is better to generate a list of symbols to export.
9906 always_export_symbols_CXX=yes
9907 if test "$aix_use_runtimelinking" = yes; then
9908 # Warning - without using the other runtime loading flags (-brtl),
9909 # -berok will link without error, but may produce a broken library.
9910 allow_undefined_flag_CXX='-berok'
9911 # Determine the default libpath from the value encoded in an empty executable.
9912 cat >conftest.$ac_ext <<_ACEOF
9913/* confdefs.h. */
9914_ACEOF
9915cat confdefs.h >>conftest.$ac_ext
9916cat >>conftest.$ac_ext <<_ACEOF
9917/* end confdefs.h. */
9918
9919int
9920main ()
9921{
9922
9923 ;
9924 return 0;
9925}
9926_ACEOF
9927rm -f conftest.$ac_objext conftest$ac_exeext
9928if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9929 (eval $ac_link) 2>conftest.er1
9930 ac_status=$?
9931 grep -v '^ *+' conftest.er1 >conftest.err
9932 rm -f conftest.er1
9933 cat conftest.err >&5
9934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9935 (exit $ac_status); } &&
9936 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9938 (eval $ac_try) 2>&5
9939 ac_status=$?
9940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9941 (exit $ac_status); }; } &&
9942 { ac_try='test -s conftest$ac_exeext'
9943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9944 (eval $ac_try) 2>&5
9945 ac_status=$?
9946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9947 (exit $ac_status); }; }; then
9948
9949aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9950}'`
9951# Check for a 64-bit object if we didn't find anything.
9952if 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; }
9953}'`; fi
9954else
9955 echo "$as_me: failed program was:" >&5
9956sed 's/^/| /' conftest.$ac_ext >&5
9957
9958fi
9959rm -f conftest.err conftest.$ac_objext \
9960 conftest$ac_exeext conftest.$ac_ext
9961if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9962
9963 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9964
9965 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"
9966 else
9967 if test "$host_cpu" = ia64; then
9968 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
9969 allow_undefined_flag_CXX="-z nodefs"
9970 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"
9971 else
9972 # Determine the default libpath from the value encoded in an empty executable.
9973 cat >conftest.$ac_ext <<_ACEOF
9974/* confdefs.h. */
9975_ACEOF
9976cat confdefs.h >>conftest.$ac_ext
9977cat >>conftest.$ac_ext <<_ACEOF
9978/* end confdefs.h. */
9979
9980int
9981main ()
9982{
9983
9984 ;
9985 return 0;
9986}
9987_ACEOF
9988rm -f conftest.$ac_objext conftest$ac_exeext
9989if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9990 (eval $ac_link) 2>conftest.er1
9991 ac_status=$?
9992 grep -v '^ *+' conftest.er1 >conftest.err
9993 rm -f conftest.er1
9994 cat conftest.err >&5
9995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9996 (exit $ac_status); } &&
9997 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9999 (eval $ac_try) 2>&5
10000 ac_status=$?
10001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10002 (exit $ac_status); }; } &&
10003 { ac_try='test -s conftest$ac_exeext'
10004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10005 (eval $ac_try) 2>&5
10006 ac_status=$?
10007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10008 (exit $ac_status); }; }; then
10009
10010aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10011}'`
10012# Check for a 64-bit object if we didn't find anything.
10013if 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; }
10014}'`; fi
10015else
10016 echo "$as_me: failed program was:" >&5
10017sed 's/^/| /' conftest.$ac_ext >&5
10018
10019fi
10020rm -f conftest.err conftest.$ac_objext \
10021 conftest$ac_exeext conftest.$ac_ext
10022if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10023
10024 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10025 # Warning - without using the other run time loading flags,
10026 # -berok will link without error, but may produce a broken library.
10027 no_undefined_flag_CXX=' ${wl}-bernotok'
10028 allow_undefined_flag_CXX=' ${wl}-berok'
10029 # -bexpall does not export symbols beginning with underscore (_)
10030 always_export_symbols_CXX=yes
10031 # Exported symbols can be pulled into shared objects from archives
10032 whole_archive_flag_spec_CXX=' '
10033 archive_cmds_need_lc_CXX=yes
10034 # This is similar to how AIX traditionally builds it's shared libraries.
10035 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'
10036 fi
10037 fi
10038 ;;
10039 chorus*)
10040 case $cc_basename in
10041 *)
10042 # FIXME: insert proper C++ library support
10043 ld_shlibs_CXX=no
10044 ;;
10045 esac
10046 ;;
10047
10048 cygwin* | mingw* | pw32*)
10049 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10050 # as there is no search path for DLLs.
10051 hardcode_libdir_flag_spec_CXX='-L$libdir'
10052 allow_undefined_flag_CXX=unsupported
10053 always_export_symbols_CXX=no
10054 enable_shared_with_static_runtimes_CXX=yes
10055
10056 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10057 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'
10058 # If the export-symbols file already is a .def file (1st line
10059 # is EXPORTS), use it as is; otherwise, prepend...
10060 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10061 cp $export_symbols $output_objdir/$soname.def;
10062 else
10063 echo EXPORTS > $output_objdir/$soname.def;
10064 cat $export_symbols >> $output_objdir/$soname.def;
10065 fi~
10066 $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'
10067 else
10068 ld_shlibs_CXX=no
10069 fi
10070 ;;
10071
10072 darwin* | rhapsody*)
10073 if test "$GXX" = yes; then
10074 archive_cmds_need_lc_CXX=no
10075 case "$host_os" in
10076 rhapsody* | darwin1.[012])
10077 allow_undefined_flag_CXX='-undefined suppress'
10078 ;;
10079 *) # Darwin 1.3 on
10080 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10081 allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
10082 else
10083 case ${MACOSX_DEPLOYMENT_TARGET} in
10084 10.[012])
10085 allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
10086 ;;
10087 10.*)
10088 allow_undefined_flag_CXX='-undefined dynamic_lookup'
10089 ;;
10090 esac
10091 fi
10092 ;;
10093 esac
10094 lt_int_apple_cc_single_mod=no
10095 output_verbose_link_cmd='echo'
10096 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
10097 lt_int_apple_cc_single_mod=yes
10098 fi
10099 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10100 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10101 else
10102 archive_cmds_CXX='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10103 fi
10104 module_cmds_CXX='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10105
10106 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
10107 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10108 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}'
10109 else
10110 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10111 fi
10112 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}'
10113 hardcode_direct_CXX=no
10114 hardcode_automatic_CXX=yes
10115 hardcode_shlibpath_var_CXX=unsupported
10116 whole_archive_flag_spec_CXX='-all_load $convenience'
10117 link_all_deplibs_CXX=yes
10118 else
10119 ld_shlibs_CXX=no
10120 fi
10121 ;;
10122
10123 dgux*)
10124 case $cc_basename in
10125 ec++)
10126 # FIXME: insert proper C++ library support
10127 ld_shlibs_CXX=no
10128 ;;
10129 ghcx)
10130 # Green Hills C++ Compiler
10131 # FIXME: insert proper C++ library support
10132 ld_shlibs_CXX=no
10133 ;;
10134 *)
10135 # FIXME: insert proper C++ library support
10136 ld_shlibs_CXX=no
10137 ;;
10138 esac
10139 ;;
10140 freebsd12*)
10141 # C++ shared libraries reported to be fairly broken before switch to ELF
10142 ld_shlibs_CXX=no
10143 ;;
10144 freebsd-elf*)
10145 archive_cmds_need_lc_CXX=no
10146 ;;
10147 freebsd* | kfreebsd*-gnu)
10148 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10149 # conventions
10150 ld_shlibs_CXX=yes
10151 ;;
10152 gnu*)
10153 ;;
10154 hpux9*)
10155 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10156 hardcode_libdir_separator_CXX=:
10157 export_dynamic_flag_spec_CXX='${wl}-E'
10158 hardcode_direct_CXX=yes
10159 hardcode_minus_L_CXX=yes # Not in the search PATH,
10160 # but as the default
10161 # location of the library.
10162
10163 case $cc_basename in
10164 CC)
10165 # FIXME: insert proper C++ library support
10166 ld_shlibs_CXX=no
10167 ;;
10168 aCC)
10169 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'
10170 # Commands to make compiler produce verbose output that lists
10171 # what "hidden" libraries, object files and flags are used when
10172 # linking a shared library.
10173 #
10174 # There doesn't appear to be a way to prevent this compiler from
10175 # explicitly linking system object files so we need to strip them
10176 # from the output so that they don't get included in the library
10177 # dependencies.
10178 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'
10179 ;;
10180 *)
10181 if test "$GXX" = yes; then
10182 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'
10183 else
10184 # FIXME: insert proper C++ library support
10185 ld_shlibs_CXX=no
10186 fi
10187 ;;
10188 esac
10189 ;;
10190 hpux10*|hpux11*)
10191 if test $with_gnu_ld = no; then
10192 case "$host_cpu" in
10193 hppa*64*)
10194 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10195 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10196 hardcode_libdir_separator_CXX=:
10197 ;;
10198 ia64*)
10199 hardcode_libdir_flag_spec_CXX='-L$libdir'
10200 ;;
10201 *)
10202 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10203 hardcode_libdir_separator_CXX=:
10204 export_dynamic_flag_spec_CXX='${wl}-E'
10205 ;;
10206 esac
10207 fi
10208 case "$host_cpu" in
10209 hppa*64*)
10210 hardcode_direct_CXX=no
10211 hardcode_shlibpath_var_CXX=no
10212 ;;
10213 ia64*)
10214 hardcode_direct_CXX=no
10215 hardcode_shlibpath_var_CXX=no
10216 hardcode_minus_L_CXX=yes # Not in the search PATH,
10217 # but as the default
10218 # location of the library.
10219 ;;
10220 *)
10221 hardcode_direct_CXX=yes
10222 hardcode_minus_L_CXX=yes # Not in the search PATH,
10223 # but as the default
10224 # location of the library.
10225 ;;
10226 esac
10227
10228 case $cc_basename in
10229 CC)
10230 # FIXME: insert proper C++ library support
10231 ld_shlibs_CXX=no
10232 ;;
10233 aCC)
10234 case "$host_cpu" in
10235 hppa*64*|ia64*)
10236 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10237 ;;
10238 *)
10239 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10240 ;;
10241 esac
10242 # Commands to make compiler produce verbose output that lists
10243 # what "hidden" libraries, object files and flags are used when
10244 # linking a shared library.
10245 #
10246 # There doesn't appear to be a way to prevent this compiler from
10247 # explicitly linking system object files so we need to strip them
10248 # from the output so that they don't get included in the library
10249 # dependencies.
10250 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'
10251 ;;
10252 *)
10253 if test "$GXX" = yes; then
10254 if test $with_gnu_ld = no; then
10255 case "$host_cpu" in
10256 ia64*|hppa*64*)
10257 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10258 ;;
10259 *)
10260 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'
10261 ;;
10262 esac
10263 fi
10264 else
10265 # FIXME: insert proper C++ library support
10266 ld_shlibs_CXX=no
10267 fi
10268 ;;
10269 esac
10270 ;;
10271 irix5* | irix6*)
10272 case $cc_basename in
10273 CC)
10274 # SGI C++
10275 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'
10276
10277 # Archives containing C++ object files must be created using
10278 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
10279 # necessary to make sure instantiated templates are included
10280 # in the archive.
10281 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10282 ;;
10283 *)
10284 if test "$GXX" = yes; then
10285 if test "$with_gnu_ld" = no; then
10286 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'
10287 else
10288 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'
10289 fi
10290 fi
10291 link_all_deplibs_CXX=yes
10292 ;;
10293 esac
10294 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10295 hardcode_libdir_separator_CXX=:
10296 ;;
10297 linux*)
10298 case $cc_basename in
10299 KCC)
10300 # Kuck and Associates, Inc. (KAI) C++ Compiler
10301
10302 # KCC will only create a shared library if the output file
10303 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10304 # to its proper name (with version) after linking.
10305 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'
10306 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'
10307 # Commands to make compiler produce verbose output that lists
10308 # what "hidden" libraries, object files and flags are used when
10309 # linking a shared library.
10310 #
10311 # There doesn't appear to be a way to prevent this compiler from
10312 # explicitly linking system object files so we need to strip them
10313 # from the output so that they don't get included in the library
10314 # dependencies.
10315 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'
10316
10317 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10318 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10319
10320 # Archives containing C++ object files must be created using
10321 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10322 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10323 ;;
10324 icpc)
10325 # Intel C++
10326 with_gnu_ld=yes
10327 archive_cmds_need_lc_CXX=no
10328 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10329 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'
10330 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10331 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10332 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10333 ;;
10334 cxx)
10335 # Compaq C++
10336 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10337 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'
10338
10339 runpath_var=LD_RUN_PATH
10340 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10341 hardcode_libdir_separator_CXX=:
10342
10343 # Commands to make compiler produce verbose output that lists
10344 # what "hidden" libraries, object files and flags are used when
10345 # linking a shared library.
10346 #
10347 # There doesn't appear to be a way to prevent this compiler from
10348 # explicitly linking system object files so we need to strip them
10349 # from the output so that they don't get included in the library
10350 # dependencies.
10351 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'
10352 ;;
10353 esac
10354 ;;
10355 lynxos*)
10356 # FIXME: insert proper C++ library support
10357 ld_shlibs_CXX=no
10358 ;;
10359 m88k*)
10360 # FIXME: insert proper C++ library support
10361 ld_shlibs_CXX=no
10362 ;;
10363 mvs*)
10364 case $cc_basename in
10365 cxx)
10366 # FIXME: insert proper C++ library support
10367 ld_shlibs_CXX=no
10368 ;;
10369 *)
10370 # FIXME: insert proper C++ library support
10371 ld_shlibs_CXX=no
10372 ;;
10373 esac
10374 ;;
10375 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
10376 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10377 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10378 wlarc=
10379 hardcode_libdir_flag_spec_CXX='-R$libdir'
10380 hardcode_direct_CXX=yes
10381 hardcode_shlibpath_var_CXX=no
10382 fi
10383 # Workaround some broken pre-1.5 toolchains
10384 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10385 ;;
10386 osf3*)
10387 case $cc_basename in
10388 KCC)
10389 # Kuck and Associates, Inc. (KAI) C++ Compiler
10390
10391 # KCC will only create a shared library if the output file
10392 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10393 # to its proper name (with version) after linking.
10394 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'
10395
10396 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10397 hardcode_libdir_separator_CXX=:
10398
10399 # Archives containing C++ object files must be created using
10400 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10401 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10402
10403 ;;
10404 RCC)
10405 # Rational C++ 2.4.1
10406 # FIXME: insert proper C++ library support
10407 ld_shlibs_CXX=no
10408 ;;
10409 cxx)
10410 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10411 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'
10412
10413 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10414 hardcode_libdir_separator_CXX=:
10415
10416 # Commands to make compiler produce verbose output that lists
10417 # what "hidden" libraries, object files and flags are used when
10418 # linking a shared library.
10419 #
10420 # There doesn't appear to be a way to prevent this compiler from
10421 # explicitly linking system object files so we need to strip them
10422 # from the output so that they don't get included in the library
10423 # dependencies.
10424 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'
10425 ;;
10426 *)
10427 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10428 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10429 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'
10430
10431 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10432 hardcode_libdir_separator_CXX=:
10433
10434 # Commands to make compiler produce verbose output that lists
10435 # what "hidden" libraries, object files and flags are used when
10436 # linking a shared library.
10437 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10438
10439 else
10440 # FIXME: insert proper C++ library support
10441 ld_shlibs_CXX=no
10442 fi
10443 ;;
10444 esac
10445 ;;
10446 osf4* | osf5*)
10447 case $cc_basename in
10448 KCC)
10449 # Kuck and Associates, Inc. (KAI) C++ Compiler
10450
10451 # KCC will only create a shared library if the output file
10452 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10453 # to its proper name (with version) after linking.
10454 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'
10455
10456 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10457 hardcode_libdir_separator_CXX=:
10458
10459 # Archives containing C++ object files must be created using
10460 # the KAI C++ compiler.
10461 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10462 ;;
10463 RCC)
10464 # Rational C++ 2.4.1
10465 # FIXME: insert proper C++ library support
10466 ld_shlibs_CXX=no
10467 ;;
10468 cxx)
10469 allow_undefined_flag_CXX=' -expect_unresolved \*'
10470 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'
10471 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10472 echo "-hidden">> $lib.exp~
10473 $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~
10474 $rm $lib.exp'
10475
10476 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10477 hardcode_libdir_separator_CXX=:
10478
10479 # Commands to make compiler produce verbose output that lists
10480 # what "hidden" libraries, object files and flags are used when
10481 # linking a shared library.
10482 #
10483 # There doesn't appear to be a way to prevent this compiler from
10484 # explicitly linking system object files so we need to strip them
10485 # from the output so that they don't get included in the library
10486 # dependencies.
10487 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'
10488 ;;
10489 *)
10490 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10491 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10492 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'
10493
10494 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10495 hardcode_libdir_separator_CXX=:
10496
10497 # Commands to make compiler produce verbose output that lists
10498 # what "hidden" libraries, object files and flags are used when
10499 # linking a shared library.
10500 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10501
10502 else
10503 # FIXME: insert proper C++ library support
10504 ld_shlibs_CXX=no
10505 fi
10506 ;;
10507 esac
10508 ;;
10509 psos*)
10510 # FIXME: insert proper C++ library support
10511 ld_shlibs_CXX=no
10512 ;;
10513 sco*)
10514 archive_cmds_need_lc_CXX=no
10515 case $cc_basename in
10516 CC)
10517 # FIXME: insert proper C++ library support
10518 ld_shlibs_CXX=no
10519 ;;
10520 *)
10521 # FIXME: insert proper C++ library support
10522 ld_shlibs_CXX=no
10523 ;;
10524 esac
10525 ;;
10526 sunos4*)
10527 case $cc_basename in
10528 CC)
10529 # Sun C++ 4.x
10530 # FIXME: insert proper C++ library support
10531 ld_shlibs_CXX=no
10532 ;;
10533 lcc)
10534 # Lucid
10535 # FIXME: insert proper C++ library support
10536 ld_shlibs_CXX=no
10537 ;;
10538 *)
10539 # FIXME: insert proper C++ library support
10540 ld_shlibs_CXX=no
10541 ;;
10542 esac
10543 ;;
10544 solaris*)
10545 case $cc_basename in
10546 CC)
10547 # Sun C++ 4.2, 5.x and Centerline C++
10548 no_undefined_flag_CXX=' -zdefs'
10549 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10550 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10551 $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'
10552
10553 hardcode_libdir_flag_spec_CXX='-R$libdir'
10554 hardcode_shlibpath_var_CXX=no
10555 case $host_os in
10556 solaris2.0-5 | solaris2.0-5.*) ;;
10557 *)
10558 # The C++ compiler is used as linker so we must use $wl
10559 # flag to pass the commands to the underlying system
10560 # linker.
10561 # Supported since Solaris 2.6 (maybe 2.5.1?)
10562 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10563 ;;
10564 esac
10565 link_all_deplibs_CXX=yes
10566
10567 # Commands to make compiler produce verbose output that lists
10568 # what "hidden" libraries, object files and flags are used when
10569 # linking a shared library.
10570 #
10571 # There doesn't appear to be a way to prevent this compiler from
10572 # explicitly linking system object files so we need to strip them
10573 # from the output so that they don't get included in the library
10574 # dependencies.
10575 output_verbose_link_cmd='templist=`$CC -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'
10576
10577 # Archives containing C++ object files must be created using
10578 # "CC -xar", where "CC" is the Sun C++ compiler. This is
10579 # necessary to make sure instantiated templates are included
10580 # in the archive.
10581 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10582 ;;
10583 gcx)
10584 # Green Hills C++ Compiler
10585 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10586
10587 # The C++ compiler must be used to create the archive.
10588 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10589 ;;
10590 *)
10591 # GNU C++ compiler with Solaris linker
10592 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10593 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10594 if $CC --version | grep -v '^2\.7' > /dev/null; then
10595 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10596 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10597 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10598
10599 # Commands to make compiler produce verbose output that lists
10600 # what "hidden" libraries, object files and flags are used when
10601 # linking a shared library.
10602 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10603 else
10604 # g++ 2.7 appears to require `-G' NOT `-shared' on this
10605 # platform.
10606 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10607 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10608 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10609
10610 # Commands to make compiler produce verbose output that lists
10611 # what "hidden" libraries, object files and flags are used when
10612 # linking a shared library.
10613 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10614 fi
10615
10616 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10617 fi
10618 ;;
10619 esac
10620 ;;
10621 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10622 archive_cmds_need_lc_CXX=no
10623 ;;
10624 tandem*)
10625 case $cc_basename in
10626 NCC)
10627 # NonStop-UX NCC 3.20
10628 # FIXME: insert proper C++ library support
10629 ld_shlibs_CXX=no
10630 ;;
10631 *)
10632 # FIXME: insert proper C++ library support
10633 ld_shlibs_CXX=no
10634 ;;
10635 esac
10636 ;;
10637 vxworks*)
10638 # FIXME: insert proper C++ library support
10639 ld_shlibs_CXX=no
10640 ;;
10641 *)
10642 # FIXME: insert proper C++ library support
10643 ld_shlibs_CXX=no
10644 ;;
10645esac
10646echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10647echo "${ECHO_T}$ld_shlibs_CXX" >&6
10648test "$ld_shlibs_CXX" = no && can_build_shared=no
10649
10650GCC_CXX="$GXX"
10651LD_CXX="$LD"
10652
10653
10654cat > conftest.$ac_ext <<EOF
10655class Foo
10656{
10657public:
10658 Foo (void) { a = 0; }
10659private:
10660 int a;
10661};
10662EOF
10663
10664if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10665 (eval $ac_compile) 2>&5
10666 ac_status=$?
10667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10668 (exit $ac_status); }; then
10669 # Parse the compiler output and extract the necessary
10670 # objects, libraries and library flags.
10671
10672 # Sentinel used to keep track of whether or not we are before
10673 # the conftest object file.
10674 pre_test_object_deps_done=no
10675
10676 # The `*' in the case matches for architectures that use `case' in
10677 # $output_verbose_cmd can trigger glob expansion during the loop
10678 # eval without this substitution.
10679 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
10680
10681 for p in `eval $output_verbose_link_cmd`; do
10682 case $p in
10683
10684 -L* | -R* | -l*)
10685 # Some compilers place space between "-{L,R}" and the path.
10686 # Remove the space.
10687 if test $p = "-L" \
10688 || test $p = "-R"; then
10689 prev=$p
10690 continue
10691 else
10692 prev=
10693 fi
10694
10695 if test "$pre_test_object_deps_done" = no; then
10696 case $p in
10697 -L* | -R*)
10698 # Internal compiler library paths should come after those
10699 # provided the user. The postdeps already come after the
10700 # user supplied libs so there is no need to process them.
10701 if test -z "$compiler_lib_search_path_CXX"; then
10702 compiler_lib_search_path_CXX="${prev}${p}"
10703 else
10704 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
10705 fi
10706 ;;
10707 # The "-l" case would never come before the object being
10708 # linked, so don't bother handling this case.
10709 esac
10710 else
10711 if test -z "$postdeps_CXX"; then
10712 postdeps_CXX="${prev}${p}"
10713 else
10714 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10715 fi
10716 fi
10717 ;;
10718
10719 *.$objext)
10720 # This assumes that the test object file only shows up
10721 # once in the compiler output.
10722 if test "$p" = "conftest.$objext"; then
10723 pre_test_object_deps_done=yes
10724 continue
10725 fi
10726
10727 if test "$pre_test_object_deps_done" = no; then
10728 if test -z "$predep_objects_CXX"; then
10729 predep_objects_CXX="$p"
10730 else
10731 predep_objects_CXX="$predep_objects_CXX $p"
10732 fi
10733 else
10734 if test -z "$postdep_objects_CXX"; then
10735 postdep_objects_CXX="$p"
10736 else
10737 postdep_objects_CXX="$postdep_objects_CXX $p"
10738 fi
10739 fi
10740 ;;
10741
10742 *) ;; # Ignore the rest.
10743
10744 esac
10745 done
10746
10747 # Clean up.
10748 rm -f a.out a.exe
10749else
10750 echo "libtool.m4: error: problem compiling CXX test program"
10751fi
10752
10753$rm -f confest.$objext
10754
10755case " $postdeps_CXX " in
10756*" -lc "*) archive_cmds_need_lc_CXX=no ;;
10757esac
10758
10759lt_prog_compiler_wl_CXX=
10760lt_prog_compiler_pic_CXX=
10761lt_prog_compiler_static_CXX=
10762
10763echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10764echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
10765
10766 # C++ specific cases for pic, static, wl, etc.
10767 if test "$GXX" = yes; then
10768 lt_prog_compiler_wl_CXX='-Wl,'
10769 lt_prog_compiler_static_CXX='-static'
10770
10771 case $host_os in
10772 aix*)
10773 # All AIX code is PIC.
10774 if test "$host_cpu" = ia64; then
10775 # AIX 5 now supports IA64 processor
10776 lt_prog_compiler_static_CXX='-Bstatic'
10777 fi
10778 ;;
10779 amigaos*)
10780 # FIXME: we need at least 68020 code to build shared libraries, but
10781 # adding the `-m68020' flag to GCC prevents building anything better,
10782 # like `-m68040'.
10783 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
10784 ;;
10785 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10786 # PIC is the default for these OSes.
10787 ;;
10788 mingw* | os2* | pw32*)
10789 # This hack is so that the source file can tell whether it is being
10790 # built for inclusion in a dll (and should export symbols for example).
10791 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
10792 ;;
10793 darwin* | rhapsody*)
10794 # PIC is the default on this platform
10795 # Common symbols not allowed in MH_DYLIB files
10796 lt_prog_compiler_pic_CXX='-fno-common'
10797 ;;
10798 *djgpp*)
10799 # DJGPP does not support shared libraries at all
10800 lt_prog_compiler_pic_CXX=
10801 ;;
10802 sysv4*MP*)
10803 if test -d /usr/nec; then
10804 lt_prog_compiler_pic_CXX=-Kconform_pic
10805 fi
10806 ;;
10807 hpux*)
10808 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10809 # not for PA HP-UX.
10810 case "$host_cpu" in
10811 hppa*64*|ia64*)
10812 ;;
10813 *)
10814 lt_prog_compiler_pic_CXX='-fPIC'
10815 ;;
10816 esac
10817 ;;
10818 *)
10819 lt_prog_compiler_pic_CXX='-fPIC'
10820 ;;
10821 esac
10822 else
10823 case $host_os in
10824 aix4* | aix5*)
10825 # All AIX code is PIC.
10826 if test "$host_cpu" = ia64; then
10827 # AIX 5 now supports IA64 processor
10828 lt_prog_compiler_static_CXX='-Bstatic'
10829 else
10830 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
10831 fi
10832 ;;
10833 chorus*)
10834 case $cc_basename in
10835 cxch68)
10836 # Green Hills C++ Compiler
10837 # _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"
10838 ;;
10839 esac
10840 ;;
10841 dgux*)
10842 case $cc_basename in
10843 ec++)
10844 lt_prog_compiler_pic_CXX='-KPIC'
10845 ;;
10846 ghcx)
10847 # Green Hills C++ Compiler
10848 lt_prog_compiler_pic_CXX='-pic'
10849 ;;
10850 *)
10851 ;;
10852 esac
10853 ;;
10854 freebsd* | kfreebsd*-gnu)
10855 # FreeBSD uses GNU C++
10856 ;;
10857 hpux9* | hpux10* | hpux11*)
10858 case $cc_basename in
10859 CC)
10860 lt_prog_compiler_wl_CXX='-Wl,'
10861 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10862 if test "$host_cpu" != ia64; then
10863 lt_prog_compiler_pic_CXX='+Z'
10864 fi
10865 ;;
10866 aCC)
10867 lt_prog_compiler_wl_CXX='-Wl,'
10868 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10869 case "$host_cpu" in
10870 hppa*64*|ia64*)
10871 # +Z the default
10872 ;;
10873 *)
10874 lt_prog_compiler_pic_CXX='+Z'
10875 ;;
10876 esac
10877 ;;
10878 *)
10879 ;;
10880 esac
10881 ;;
10882 irix5* | irix6* | nonstopux*)
10883 case $cc_basename in
10884 CC)
10885 lt_prog_compiler_wl_CXX='-Wl,'
10886 lt_prog_compiler_static_CXX='-non_shared'
10887 # CC pic flag -KPIC is the default.
10888 ;;
10889 *)
10890 ;;
10891 esac
10892 ;;
10893 linux*)
10894 case $cc_basename in
10895 KCC)
10896 # KAI C++ Compiler
10897 lt_prog_compiler_wl_CXX='--backend -Wl,'
10898 lt_prog_compiler_pic_CXX='-fPIC'
10899 ;;
10900 icpc)
10901 # Intel C++
10902 lt_prog_compiler_wl_CXX='-Wl,'
10903 lt_prog_compiler_pic_CXX='-KPIC'
10904 lt_prog_compiler_static_CXX='-static'
10905 ;;
10906 cxx)
10907 # Compaq C++
10908 # Make sure the PIC flag is empty. It appears that all Alpha
10909 # Linux and Compaq Tru64 Unix objects are PIC.
10910 lt_prog_compiler_pic_CXX=
10911 lt_prog_compiler_static_CXX='-non_shared'
10912 ;;
10913 *)
10914 ;;
10915 esac
10916 ;;
10917 lynxos*)
10918 ;;
10919 m88k*)
10920 ;;
10921 mvs*)
10922 case $cc_basename in
10923 cxx)
10924 lt_prog_compiler_pic_CXX='-W c,exportall'
10925 ;;
10926 *)
10927 ;;
10928 esac
10929 ;;
10930 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
10931 ;;
10932 osf3* | osf4* | osf5*)
10933 case $cc_basename in
10934 KCC)
10935 lt_prog_compiler_wl_CXX='--backend -Wl,'
10936 ;;
10937 RCC)
10938 # Rational C++ 2.4.1
10939 lt_prog_compiler_pic_CXX='-pic'
10940 ;;
10941 cxx)
10942 # Digital/Compaq C++
10943 lt_prog_compiler_wl_CXX='-Wl,'
10944 # Make sure the PIC flag is empty. It appears that all Alpha
10945 # Linux and Compaq Tru64 Unix objects are PIC.
10946 lt_prog_compiler_pic_CXX=
10947 lt_prog_compiler_static_CXX='-non_shared'
10948 ;;
10949 *)
10950 ;;
10951 esac
10952 ;;
10953 psos*)
10954 ;;
10955 sco*)
10956 case $cc_basename in
10957 CC)
10958 lt_prog_compiler_pic_CXX='-fPIC'
10959 ;;
10960 *)
10961 ;;
10962 esac
10963 ;;
10964 solaris*)
10965 case $cc_basename in
10966 CC)
10967 # Sun C++ 4.2, 5.x and Centerline C++
10968 lt_prog_compiler_pic_CXX='-KPIC'
10969 lt_prog_compiler_static_CXX='-Bstatic'
10970 lt_prog_compiler_wl_CXX='-Qoption ld '
10971 ;;
10972 gcx)
10973 # Green Hills C++ Compiler
10974 lt_prog_compiler_pic_CXX='-PIC'
10975 ;;
10976 *)
10977 ;;
10978 esac
10979 ;;
10980 sunos4*)
10981 case $cc_basename in
10982 CC)
10983 # Sun C++ 4.x
10984 lt_prog_compiler_pic_CXX='-pic'
10985 lt_prog_compiler_static_CXX='-Bstatic'
10986 ;;
10987 lcc)
10988 # Lucid
10989 lt_prog_compiler_pic_CXX='-pic'
10990 ;;
10991 *)
10992 ;;
10993 esac
10994 ;;
10995 tandem*)
10996 case $cc_basename in
10997 NCC)
10998 # NonStop-UX NCC 3.20
10999 lt_prog_compiler_pic_CXX='-KPIC'
11000 ;;
11001 *)
11002 ;;
11003 esac
11004 ;;
11005 unixware*)
11006 ;;
11007 vxworks*)
11008 ;;
11009 *)
11010 lt_prog_compiler_can_build_shared_CXX=no
11011 ;;
11012 esac
11013 fi
11014
11015echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11016echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
11017
11018#
11019# Check to make sure the PIC flag actually works.
11020#
11021if test -n "$lt_prog_compiler_pic_CXX"; then
11022
11023echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11024echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
11025if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11026 echo $ECHO_N "(cached) $ECHO_C" >&6
11027else
11028 lt_prog_compiler_pic_works_CXX=no
11029 ac_outfile=conftest.$ac_objext
11030 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11031 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11032 # Insert the option either (1) after the last *FLAGS variable, or
11033 # (2) before a word containing "conftest.", or (3) at the end.
11034 # Note that $ac_compile itself does not contain backslashes and begins
11035 # with a dollar sign (not a hyphen), so the echo should work correctly.
11036 # The option is referenced via a variable to avoid confusing sed.
11037 lt_compile=`echo "$ac_compile" | $SED \
11038 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11039 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11040 -e 's:$: $lt_compiler_flag:'`
11041 (eval echo "\"\$as_me:11041: $lt_compile\"" >&5)
11042 (eval "$lt_compile" 2>conftest.err)
11043 ac_status=$?
11044 cat conftest.err >&5
11045 echo "$as_me:11045: \$? = $ac_status" >&5
11046 if (exit $ac_status) && test -s "$ac_outfile"; then
11047 # The compiler can only warn and ignore the option if not recognized
11048 # So say no if there are warnings
11049 if test ! -s conftest.err; then
11050 lt_prog_compiler_pic_works_CXX=yes
11051 fi
11052 fi
11053 $rm conftest*
11054
11055fi
11056echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11057echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
11058
11059if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11060 case $lt_prog_compiler_pic_CXX in
11061 "" | " "*) ;;
11062 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11063 esac
11064else
11065 lt_prog_compiler_pic_CXX=
11066 lt_prog_compiler_can_build_shared_CXX=no
11067fi
11068
11069fi
11070case "$host_os" in
11071 # For platforms which do not support PIC, -DPIC is meaningless:
11072 *djgpp*)
11073 lt_prog_compiler_pic_CXX=
11074 ;;
11075 *)
11076 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11077 ;;
11078esac
11079
11080echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11081echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11082if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11083 echo $ECHO_N "(cached) $ECHO_C" >&6
11084else
11085 lt_cv_prog_compiler_c_o_CXX=no
11086 $rm -r conftest 2>/dev/null
11087 mkdir conftest
11088 cd conftest
11089 mkdir out
11090 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11091
11092 lt_compiler_flag="-o out/conftest2.$ac_objext"
11093 # Insert the option either (1) after the last *FLAGS variable, or
11094 # (2) before a word containing "conftest.", or (3) at the end.
11095 # Note that $ac_compile itself does not contain backslashes and begins
11096 # with a dollar sign (not a hyphen), so the echo should work correctly.
11097 lt_compile=`echo "$ac_compile" | $SED \
11098 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11099 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11100 -e 's:$: $lt_compiler_flag:'`
11101 (eval echo "\"\$as_me:11101: $lt_compile\"" >&5)
11102 (eval "$lt_compile" 2>out/conftest.err)
11103 ac_status=$?
11104 cat out/conftest.err >&5
11105 echo "$as_me:11105: \$? = $ac_status" >&5
11106 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11107 then
11108 # The compiler can only warn and ignore the option if not recognized
11109 # So say no if there are warnings
11110 if test ! -s out/conftest.err; then
11111 lt_cv_prog_compiler_c_o_CXX=yes
11112 fi
11113 fi
11114 chmod u+w .
11115 $rm conftest*
11116 # SGI C++ compiler will create directory out/ii_files/ for
11117 # template instantiation
11118 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11119 $rm out/* && rmdir out
11120 cd ..
11121 rmdir conftest
11122 $rm conftest*
11123
11124fi
11125echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11126echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
11127
11128
11129hard_links="nottested"
11130if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11131 # do not overwrite the value of need_locks provided by the user
11132 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11133echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
11134 hard_links=yes
11135 $rm conftest*
11136 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11137 touch conftest.a
11138 ln conftest.a conftest.b 2>&5 || hard_links=no
11139 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11140 echo "$as_me:$LINENO: result: $hard_links" >&5
11141echo "${ECHO_T}$hard_links" >&6
11142 if test "$hard_links" = no; then
11143 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11144echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11145 need_locks=warn
11146 fi
11147else
11148 need_locks=no
11149fi
11150
11151echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11152echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11153
11154 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11155 case $host_os in
11156 aix4* | aix5*)
11157 # If we're using GNU nm, then we don't want the "-C" option.
11158 # -C means demangle to AIX nm, but means don't demangle with GNU nm
11159 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11160 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'
11161 else
11162 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'
11163 fi
11164 ;;
11165 pw32*)
11166 export_symbols_cmds_CXX="$ltdll_cmds"
11167 ;;
11168 cygwin* | mingw*)
11169 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
11170 ;;
11171 linux*)
11172 link_all_deplibs_CXX=no
11173 ;;
11174 *)
11175 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11176 ;;
11177 esac
11178
11179echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11180echo "${ECHO_T}$ld_shlibs_CXX" >&6
11181test "$ld_shlibs_CXX" = no && can_build_shared=no
11182
11183variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11184if test "$GCC" = yes; then
11185 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11186fi
11187
11188#
11189# Do we need to explicitly link libc?
11190#
11191case "x$archive_cmds_need_lc_CXX" in
11192x|xyes)
11193 # Assume -lc should be added
11194 archive_cmds_need_lc_CXX=yes
11195
11196 if test "$enable_shared" = yes && test "$GCC" = yes; then
11197 case $archive_cmds_CXX in
11198 *'~'*)
11199 # FIXME: we may have to deal with multi-command sequences.
11200 ;;
11201 '$CC '*)
11202 # Test whether the compiler implicitly links with -lc since on some
11203 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11204 # to ld, don't add -lc before -lgcc.
11205 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11206echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
11207 $rm conftest*
11208 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11209
11210 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11211 (eval $ac_compile) 2>&5
11212 ac_status=$?
11213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11214 (exit $ac_status); } 2>conftest.err; then
11215 soname=conftest
11216 lib=conftest
11217 libobjs=conftest.$ac_objext
11218 deplibs=
11219 wl=$lt_prog_compiler_wl_CXX
11220 compiler_flags=-v
11221 linker_flags=-v
11222 verstring=
11223 output_objdir=.
11224 libname=conftest
11225 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11226 allow_undefined_flag_CXX=
11227 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11228 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11229 ac_status=$?
11230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11231 (exit $ac_status); }
11232 then
11233 archive_cmds_need_lc_CXX=no
11234 else
11235 archive_cmds_need_lc_CXX=yes
11236 fi
11237 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11238 else
11239 cat conftest.err 1>&5
11240 fi
11241 $rm conftest*
11242 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11243echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
11244 ;;
11245 esac
11246 fi
11247 ;;
11248esac
11249
11250echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11251echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11252library_names_spec=
11253libname_spec='lib$name'
11254soname_spec=
11255shrext_cmds=".so"
11256postinstall_cmds=
11257postuninstall_cmds=
11258finish_cmds=
11259finish_eval=
11260shlibpath_var=
11261shlibpath_overrides_runpath=unknown
11262version_type=none
11263dynamic_linker="$host_os ld.so"
11264sys_lib_dlsearch_path_spec="/lib /usr/lib"
11265if test "$GCC" = yes; then
11266 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11267 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11268 # if the path contains ";" then we assume it to be the separator
11269 # otherwise default to the standard path separator (i.e. ":") - it is
11270 # assumed that no part of a normal pathname contains ";" but that should
11271 # okay in the real world where ";" in dirpaths is itself problematic.
11272 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11273 else
11274 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11275 fi
11276else
11277 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11278fi
11279need_lib_prefix=unknown
11280hardcode_into_libs=no
11281
11282# when you set need_version to no, make sure it does not cause -set_version
11283# flags to be left without arguments
11284need_version=unknown
11285
11286case $host_os in
11287aix3*)
11288 version_type=linux
11289 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11290 shlibpath_var=LIBPATH
11291
11292 # AIX 3 has no versioning support, so we append a major version to the name.
11293 soname_spec='${libname}${release}${shared_ext}$major'
11294 ;;
11295
11296aix4* | aix5*)
11297 version_type=linux
11298 need_lib_prefix=no
11299 need_version=no
11300 hardcode_into_libs=yes
11301 if test "$host_cpu" = ia64; then
11302 # AIX 5 supports IA64
11303 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11304 shlibpath_var=LD_LIBRARY_PATH
11305 else
11306 # With GCC up to 2.95.x, collect2 would create an import file
11307 # for dependence libraries. The import file would start with
11308 # the line `#! .'. This would cause the generated library to
11309 # depend on `.', always an invalid library. This was fixed in
11310 # development snapshots of GCC prior to 3.0.
11311 case $host_os in
11312 aix4 | aix4.[01] | aix4.[01].*)
11313 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11314 echo ' yes '
11315 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11316 :
11317 else
11318 can_build_shared=no
11319 fi
11320 ;;
11321 esac
11322 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11323 # soname into executable. Probably we can add versioning support to
11324 # collect2, so additional links can be useful in future.
11325 if test "$aix_use_runtimelinking" = yes; then
11326 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11327 # instead of lib<name>.a to let people know that these are not
11328 # typical AIX shared libraries.
11329 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11330 else
11331 # We preserve .a as extension for shared libraries through AIX4.2
11332 # and later when we are not doing run time linking.
11333 library_names_spec='${libname}${release}.a $libname.a'
11334 soname_spec='${libname}${release}${shared_ext}$major'
11335 fi
11336 shlibpath_var=LIBPATH
11337 fi
11338 ;;
11339
11340amigaos*)
11341 library_names_spec='$libname.ixlibrary $libname.a'
11342 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11343 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'
11344 ;;
11345
11346beos*)
11347 library_names_spec='${libname}${shared_ext}'
11348 dynamic_linker="$host_os ld.so"
11349 shlibpath_var=LIBRARY_PATH
11350 ;;
11351
11352bsdi4*)
11353 version_type=linux
11354 need_version=no
11355 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11356 soname_spec='${libname}${release}${shared_ext}$major'
11357 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11358 shlibpath_var=LD_LIBRARY_PATH
11359 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11360 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11361 # the default ld.so.conf also contains /usr/contrib/lib and
11362 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11363 # libtool to hard-code these into programs
11364 ;;
11365
11366cygwin* | mingw* | pw32*)
11367 version_type=windows
11368 shrext_cmds=".dll"
11369 need_version=no
11370 need_lib_prefix=no
11371
11372 case $GCC,$host_os in
11373 yes,cygwin* | yes,mingw* | yes,pw32*)
11374 library_names_spec='$libname.dll.a'
11375 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11376 postinstall_cmds='base_file=`basename \${file}`~
11377 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11378 dldir=$destdir/`dirname \$dlpath`~
11379 test -d \$dldir || mkdir -p \$dldir~
11380 $install_prog $dir/$dlname \$dldir/$dlname'
11381 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11382 dlpath=$dir/\$dldll~
11383 $rm \$dlpath'
11384 shlibpath_overrides_runpath=yes
11385
11386 case $host_os in
11387 cygwin*)
11388 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11389 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11390 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11391 ;;
11392 mingw*)
11393 # MinGW DLLs use traditional 'lib' prefix
11394 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11395 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11396 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11397 # It is most probably a Windows format PATH printed by
11398 # mingw gcc, but we are running on Cygwin. Gcc prints its search
11399 # path with ; separators, and with drive letters. We can handle the
11400 # drive letters (cygwin fileutils understands them), so leave them,
11401 # especially as we might pass files found there to a mingw objdump,
11402 # which wouldn't understand a cygwinified path. Ahh.
11403 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11404 else
11405 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11406 fi
11407 ;;
11408 pw32*)
11409 # pw32 DLLs use 'pw' prefix rather than 'lib'
11410 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
11411 ;;
11412 esac
11413 ;;
11414
11415 *)
11416 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11417 ;;
11418 esac
11419 dynamic_linker='Win32 ld.exe'
11420 # FIXME: first we should search . and the directory the executable is in
11421 shlibpath_var=PATH
11422 ;;
11423
11424darwin* | rhapsody*)
11425 dynamic_linker="$host_os dyld"
11426 version_type=darwin
11427 need_lib_prefix=no
11428 need_version=no
11429 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11430 soname_spec='${libname}${release}${major}$shared_ext'
11431 shlibpath_overrides_runpath=yes
11432 shlibpath_var=DYLD_LIBRARY_PATH
11433 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
11434 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11435 if test "$GCC" = yes; then
11436 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"`
11437 else
11438 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
11439 fi
11440 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11441 ;;
11442
11443dgux*)
11444 version_type=linux
11445 need_lib_prefix=no
11446 need_version=no
11447 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11448 soname_spec='${libname}${release}${shared_ext}$major'
11449 shlibpath_var=LD_LIBRARY_PATH
11450 ;;
11451
11452freebsd1*)
11453 dynamic_linker=no
11454 ;;
11455
11456kfreebsd*-gnu)
11457 version_type=linux
11458 need_lib_prefix=no
11459 need_version=no
11460 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11461 soname_spec='${libname}${release}${shared_ext}$major'
11462 shlibpath_var=LD_LIBRARY_PATH
11463 shlibpath_overrides_runpath=no
11464 hardcode_into_libs=yes
11465 dynamic_linker='GNU ld.so'
11466 ;;
11467
11468freebsd*)
11469 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
11470 version_type=freebsd-$objformat
11471 case $version_type in
11472 freebsd-elf*)
11473 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11474 need_version=no
11475 need_lib_prefix=no
11476 ;;
11477 freebsd-*)
11478 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11479 need_version=yes
11480 ;;
11481 esac
11482 shlibpath_var=LD_LIBRARY_PATH
11483 case $host_os in
11484 freebsd2*)
11485 shlibpath_overrides_runpath=yes
11486 ;;
11487 freebsd3.01* | freebsdelf3.01*)
11488 shlibpath_overrides_runpath=yes
11489 hardcode_into_libs=yes
11490 ;;
11491 *) # from 3.2 on
11492 shlibpath_overrides_runpath=no
11493 hardcode_into_libs=yes
11494 ;;
11495 esac
11496 ;;
11497
11498gnu*)
11499 version_type=linux
11500 need_lib_prefix=no
11501 need_version=no
11502 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11503 soname_spec='${libname}${release}${shared_ext}$major'
11504 shlibpath_var=LD_LIBRARY_PATH
11505 hardcode_into_libs=yes
11506 ;;
11507
11508hpux9* | hpux10* | hpux11*)
11509 # Give a soname corresponding to the major version so that dld.sl refuses to
11510 # link against other versions.
11511 version_type=sunos
11512 need_lib_prefix=no
11513 need_version=no
11514 case "$host_cpu" in
11515 ia64*)
11516 shrext_cmds='.so'
11517 hardcode_into_libs=yes
11518 dynamic_linker="$host_os dld.so"
11519 shlibpath_var=LD_LIBRARY_PATH
11520 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11521 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11522 soname_spec='${libname}${release}${shared_ext}$major'
11523 if test "X$HPUX_IA64_MODE" = X32; then
11524 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11525 else
11526 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11527 fi
11528 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11529 ;;
11530 hppa*64*)
11531 shrext_cmds='.sl'
11532 hardcode_into_libs=yes
11533 dynamic_linker="$host_os dld.sl"
11534 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11535 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11536 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11537 soname_spec='${libname}${release}${shared_ext}$major'
11538 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11539 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11540 ;;
11541 *)
11542 shrext_cmds='.sl'
11543 dynamic_linker="$host_os dld.sl"
11544 shlibpath_var=SHLIB_PATH
11545 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11546 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11547 soname_spec='${libname}${release}${shared_ext}$major'
11548 ;;
11549 esac
11550 # HP-UX runs *really* slowly unless shared libraries are mode 555.
11551 postinstall_cmds='chmod 555 $lib'
11552 ;;
11553
11554irix5* | irix6* | nonstopux*)
11555 case $host_os in
11556 nonstopux*) version_type=nonstopux ;;
11557 *)
11558 if test "$lt_cv_prog_gnu_ld" = yes; then
11559 version_type=linux
11560 else
11561 version_type=irix
11562 fi ;;
11563 esac
11564 need_lib_prefix=no
11565 need_version=no
11566 soname_spec='${libname}${release}${shared_ext}$major'
11567 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11568 case $host_os in
11569 irix5* | nonstopux*)
11570 libsuff= shlibsuff=
11571 ;;
11572 *)
11573 case $LD in # libtool.m4 will add one of these switches to LD
11574 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11575 libsuff= shlibsuff= libmagic=32-bit;;
11576 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11577 libsuff=32 shlibsuff=N32 libmagic=N32;;
11578 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11579 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11580 *) libsuff= shlibsuff= libmagic=never-match;;
11581 esac
11582 ;;
11583 esac
11584 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11585 shlibpath_overrides_runpath=no
11586 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11587 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11588 hardcode_into_libs=yes
11589 ;;
11590
11591# No shared lib support for Linux oldld, aout, or coff.
11592linux*oldld* | linux*aout* | linux*coff*)
11593 dynamic_linker=no
11594 ;;
11595
11596# This must be Linux ELF.
11597linux*)
11598 version_type=linux
11599 need_lib_prefix=no
11600 need_version=no
11601 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11602 soname_spec='${libname}${release}${shared_ext}$major'
11603 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11604 shlibpath_var=LD_LIBRARY_PATH
11605 shlibpath_overrides_runpath=no
11606 # This implies no fast_install, which is unacceptable.
11607 # Some rework will be needed to allow for fast_install
11608 # before this can be enabled.
11609 hardcode_into_libs=yes
11610
11611 # Append ld.so.conf contents to the search path
11612 if test -f /etc/ld.so.conf; then
11613 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
11614 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11615 fi
11616
11617 # We used to test for /lib/ld.so.1 and disable shared libraries on
11618 # powerpc, because MkLinux only supported shared libraries with the
11619 # GNU dynamic linker. Since this was broken with cross compilers,
11620 # most powerpc-linux boxes support dynamic linking these days and
11621 # people can always --disable-shared, the test was removed, and we
11622 # assume the GNU/Linux dynamic linker is in use.
11623 dynamic_linker='GNU/Linux ld.so'
11624 ;;
11625
11626netbsdelf*-gnu)
11627 version_type=linux
11628 need_lib_prefix=no
11629 need_version=no
11630 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11631 soname_spec='${libname}${release}${shared_ext}$major'
11632 shlibpath_var=LD_LIBRARY_PATH
11633 shlibpath_overrides_runpath=no
11634 hardcode_into_libs=yes
11635 dynamic_linker='NetBSD ld.elf_so'
11636 ;;
11637
11638knetbsd*-gnu)
11639 version_type=linux
11640 need_lib_prefix=no
11641 need_version=no
11642 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11643 soname_spec='${libname}${release}${shared_ext}$major'
11644 shlibpath_var=LD_LIBRARY_PATH
11645 shlibpath_overrides_runpath=no
11646 hardcode_into_libs=yes
11647 dynamic_linker='GNU ld.so'
11648 ;;
11649
11650netbsd*)
11651 version_type=sunos
11652 need_lib_prefix=no
11653 need_version=no
11654 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11655 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11656 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11657 dynamic_linker='NetBSD (a.out) ld.so'
11658 else
11659 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11660 soname_spec='${libname}${release}${shared_ext}$major'
11661 dynamic_linker='NetBSD ld.elf_so'
11662 fi
11663 shlibpath_var=LD_LIBRARY_PATH
11664 shlibpath_overrides_runpath=yes
11665 hardcode_into_libs=yes
11666 ;;
11667
11668newsos6)
11669 version_type=linux
11670 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11671 shlibpath_var=LD_LIBRARY_PATH
11672 shlibpath_overrides_runpath=yes
11673 ;;
11674
11675nto-qnx*)
11676 version_type=linux
11677 need_lib_prefix=no
11678 need_version=no
11679 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11680 soname_spec='${libname}${release}${shared_ext}$major'
11681 shlibpath_var=LD_LIBRARY_PATH
11682 shlibpath_overrides_runpath=yes
11683 ;;
11684
11685openbsd*)
11686 version_type=sunos
11687 need_lib_prefix=no
11688 need_version=yes
11689 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11690 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11691 shlibpath_var=LD_LIBRARY_PATH
11692 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11693 case $host_os in
11694 openbsd2.[89] | openbsd2.[89].*)
11695 shlibpath_overrides_runpath=no
11696 ;;
11697 *)
11698 shlibpath_overrides_runpath=yes
11699 ;;
11700 esac
11701 else
11702 shlibpath_overrides_runpath=yes
11703 fi
11704 ;;
11705
11706os2*)
11707 libname_spec='$name'
11708 shrext_cmds=".dll"
11709 need_lib_prefix=no
11710 library_names_spec='$libname${shared_ext} $libname.a'
11711 dynamic_linker='OS/2 ld.exe'
11712 shlibpath_var=LIBPATH
11713 ;;
11714
11715osf3* | osf4* | osf5*)
11716 version_type=osf
11717 need_lib_prefix=no
11718 need_version=no
11719 soname_spec='${libname}${release}${shared_ext}$major'
11720 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11721 shlibpath_var=LD_LIBRARY_PATH
11722 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11723 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11724 ;;
11725
11726sco3.2v5*)
11727 version_type=osf
11728 soname_spec='${libname}${release}${shared_ext}$major'
11729 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11730 shlibpath_var=LD_LIBRARY_PATH
11731 ;;
11732
11733solaris*)
11734 version_type=linux
11735 need_lib_prefix=no
11736 need_version=no
11737 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11738 soname_spec='${libname}${release}${shared_ext}$major'
11739 shlibpath_var=LD_LIBRARY_PATH
11740 shlibpath_overrides_runpath=yes
11741 hardcode_into_libs=yes
11742 # ldd complains unless libraries are executable
11743 postinstall_cmds='chmod +x $lib'
11744 ;;
11745
11746sunos4*)
11747 version_type=sunos
11748 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11749 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11750 shlibpath_var=LD_LIBRARY_PATH
11751 shlibpath_overrides_runpath=yes
11752 if test "$with_gnu_ld" = yes; then
11753 need_lib_prefix=no
11754 fi
11755 need_version=yes
11756 ;;
11757
11758sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11759 version_type=linux
11760 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11761 soname_spec='${libname}${release}${shared_ext}$major'
11762 shlibpath_var=LD_LIBRARY_PATH
11763 case $host_vendor in
11764 sni)
11765 shlibpath_overrides_runpath=no
11766 need_lib_prefix=no
11767 export_dynamic_flag_spec='${wl}-Blargedynsym'
11768 runpath_var=LD_RUN_PATH
11769 ;;
11770 siemens)
11771 need_lib_prefix=no
11772 ;;
11773 motorola)
11774 need_lib_prefix=no
11775 need_version=no
11776 shlibpath_overrides_runpath=no
11777 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11778 ;;
11779 esac
11780 ;;
11781
11782sysv4*MP*)
11783 if test -d /usr/nec ;then
11784 version_type=linux
11785 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11786 soname_spec='$libname${shared_ext}.$major'
11787 shlibpath_var=LD_LIBRARY_PATH
11788 fi
11789 ;;
11790
11791uts4*)
11792 version_type=linux
11793 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11794 soname_spec='${libname}${release}${shared_ext}$major'
11795 shlibpath_var=LD_LIBRARY_PATH
11796 ;;
11797
11798*)
11799 dynamic_linker=no
11800 ;;
11801esac
11802echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11803echo "${ECHO_T}$dynamic_linker" >&6
11804test "$dynamic_linker" = no && can_build_shared=no
11805
11806echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11807echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
11808hardcode_action_CXX=
11809if test -n "$hardcode_libdir_flag_spec_CXX" || \
11810 test -n "$runpath_var CXX" || \
11811 test "X$hardcode_automatic_CXX"="Xyes" ; then
11812
11813 # We can hardcode non-existant directories.
11814 if test "$hardcode_direct_CXX" != no &&
11815 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11816 # have to relink, otherwise we might link with an installed library
11817 # when we should be linking with a yet-to-be-installed one
11818 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
11819 test "$hardcode_minus_L_CXX" != no; then
11820 # Linking always hardcodes the temporary library directory.
11821 hardcode_action_CXX=relink
11822 else
11823 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11824 hardcode_action_CXX=immediate
11825 fi
11826else
11827 # We cannot hardcode anything, or else we can only hardcode existing
11828 # directories.
11829 hardcode_action_CXX=unsupported
11830fi
11831echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
11832echo "${ECHO_T}$hardcode_action_CXX" >&6
11833
11834if test "$hardcode_action_CXX" = relink; then
11835 # Fast installation is not supported
11836 enable_fast_install=no
11837elif test "$shlibpath_overrides_runpath" = yes ||
11838 test "$enable_shared" = no; then
11839 # Fast installation is not necessary
11840 enable_fast_install=needless
11841fi
11842
11843striplib=
11844old_striplib=
11845echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11846echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
11847if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
11848 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11849 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11850 echo "$as_me:$LINENO: result: yes" >&5
11851echo "${ECHO_T}yes" >&6
11852else
11853# FIXME - insert some real tests, host_os isn't really good enough
11854 case $host_os in
11855 darwin*)
11856 if test -n "$STRIP" ; then
11857 striplib="$STRIP -x"
11858 echo "$as_me:$LINENO: result: yes" >&5
11859echo "${ECHO_T}yes" >&6
11860 else
11861 echo "$as_me:$LINENO: result: no" >&5
11862echo "${ECHO_T}no" >&6
11863fi
11864 ;;
11865 *)
11866 echo "$as_me:$LINENO: result: no" >&5
11867echo "${ECHO_T}no" >&6
11868 ;;
11869 esac
11870fi
11871
11872if test "x$enable_dlopen" != xyes; then
11873 enable_dlopen=unknown
11874 enable_dlopen_self=unknown
11875 enable_dlopen_self_static=unknown
11876else
11877 lt_cv_dlopen=no
11878 lt_cv_dlopen_libs=
11879
11880 case $host_os in
11881 beos*)
11882 lt_cv_dlopen="load_add_on"
11883 lt_cv_dlopen_libs=
11884 lt_cv_dlopen_self=yes
11885 ;;
11886
11887 mingw* | pw32*)
11888 lt_cv_dlopen="LoadLibrary"
11889 lt_cv_dlopen_libs=
11890 ;;
11891
11892 cygwin*)
11893 lt_cv_dlopen="dlopen"
11894 lt_cv_dlopen_libs=
11895 ;;
11896
11897 darwin*)
11898 # if libdl is installed we need to link against it
11899 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11900echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11901if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11902 echo $ECHO_N "(cached) $ECHO_C" >&6
11903else
11904 ac_check_lib_save_LIBS=$LIBS
11905LIBS="-ldl $LIBS"
11906cat >conftest.$ac_ext <<_ACEOF
11907/* confdefs.h. */
11908_ACEOF
11909cat confdefs.h >>conftest.$ac_ext
11910cat >>conftest.$ac_ext <<_ACEOF
11911/* end confdefs.h. */
11912
11913/* Override any gcc2 internal prototype to avoid an error. */
11914#ifdef __cplusplus
11915extern "C"
11916#endif
11917/* We use char because int might match the return type of a gcc2
11918 builtin and then its argument prototype would still apply. */
11919char dlopen ();
11920int
11921main ()
11922{
11923dlopen ();
11924 ;
11925 return 0;
11926}
11927_ACEOF
11928rm -f conftest.$ac_objext conftest$ac_exeext
11929if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11930 (eval $ac_link) 2>conftest.er1
11931 ac_status=$?
11932 grep -v '^ *+' conftest.er1 >conftest.err
11933 rm -f conftest.er1
11934 cat conftest.err >&5
11935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11936 (exit $ac_status); } &&
11937 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11939 (eval $ac_try) 2>&5
11940 ac_status=$?
11941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11942 (exit $ac_status); }; } &&
11943 { ac_try='test -s conftest$ac_exeext'
11944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11945 (eval $ac_try) 2>&5
11946 ac_status=$?
11947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11948 (exit $ac_status); }; }; then
11949 ac_cv_lib_dl_dlopen=yes
11950else
11951 echo "$as_me: failed program was:" >&5
11952sed 's/^/| /' conftest.$ac_ext >&5
11953
11954ac_cv_lib_dl_dlopen=no
11955fi
11956rm -f conftest.err conftest.$ac_objext \
11957 conftest$ac_exeext conftest.$ac_ext
11958LIBS=$ac_check_lib_save_LIBS
11959fi
11960echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11961echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11962if test $ac_cv_lib_dl_dlopen = yes; then
11963 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11964else
11965
11966 lt_cv_dlopen="dyld"
11967 lt_cv_dlopen_libs=
11968 lt_cv_dlopen_self=yes
11969
11970fi
11971
11972 ;;
11973
11974 *)
11975 echo "$as_me:$LINENO: checking for shl_load" >&5
11976echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
11977if test "${ac_cv_func_shl_load+set}" = set; then
11978 echo $ECHO_N "(cached) $ECHO_C" >&6
11979else
11980 cat >conftest.$ac_ext <<_ACEOF
11981/* confdefs.h. */
11982_ACEOF
11983cat confdefs.h >>conftest.$ac_ext
11984cat >>conftest.$ac_ext <<_ACEOF
11985/* end confdefs.h. */
11986/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
11987 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11988#define shl_load innocuous_shl_load
11989
11990/* System header to define __stub macros and hopefully few prototypes,
11991 which can conflict with char shl_load (); below.
11992 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11993 <limits.h> exists even on freestanding compilers. */
11994
11995#ifdef __STDC__
11996# include <limits.h>
11997#else
11998# include <assert.h>
11999#endif
12000
12001#undef shl_load
12002
12003/* Override any gcc2 internal prototype to avoid an error. */
12004#ifdef __cplusplus
12005extern "C"
12006{
12007#endif
12008/* We use char because int might match the return type of a gcc2
12009 builtin and then its argument prototype would still apply. */
12010char shl_load ();
12011/* The GNU C library defines this for functions which it implements
12012 to always fail with ENOSYS. Some functions are actually named
12013 something starting with __ and the normal name is an alias. */
12014#if defined (__stub_shl_load) || defined (__stub___shl_load)
12015choke me
12016#else
12017char (*f) () = shl_load;
12018#endif
12019#ifdef __cplusplus
12020}
12021#endif
12022
12023int
12024main ()
12025{
12026return f != shl_load;
12027 ;
12028 return 0;
12029}
12030_ACEOF
12031rm -f conftest.$ac_objext conftest$ac_exeext
12032if { (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" || test ! -s conftest.err'
12041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12042 (eval $ac_try) 2>&5
12043 ac_status=$?
12044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12045 (exit $ac_status); }; } &&
12046 { ac_try='test -s conftest$ac_exeext'
12047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12048 (eval $ac_try) 2>&5
12049 ac_status=$?
12050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12051 (exit $ac_status); }; }; then
12052 ac_cv_func_shl_load=yes
12053else
12054 echo "$as_me: failed program was:" >&5
12055sed 's/^/| /' conftest.$ac_ext >&5
12056
12057ac_cv_func_shl_load=no
12058fi
12059rm -f conftest.err conftest.$ac_objext \
12060 conftest$ac_exeext conftest.$ac_ext
12061fi
12062echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12063echo "${ECHO_T}$ac_cv_func_shl_load" >&6
12064if test $ac_cv_func_shl_load = yes; then
12065 lt_cv_dlopen="shl_load"
12066else
12067 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12068echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
12069if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12070 echo $ECHO_N "(cached) $ECHO_C" >&6
12071else
12072 ac_check_lib_save_LIBS=$LIBS
12073LIBS="-ldld $LIBS"
12074cat >conftest.$ac_ext <<_ACEOF
12075/* confdefs.h. */
12076_ACEOF
12077cat confdefs.h >>conftest.$ac_ext
12078cat >>conftest.$ac_ext <<_ACEOF
12079/* end confdefs.h. */
12080
12081/* Override any gcc2 internal prototype to avoid an error. */
12082#ifdef __cplusplus
12083extern "C"
12084#endif
12085/* We use char because int might match the return type of a gcc2
12086 builtin and then its argument prototype would still apply. */
12087char shl_load ();
12088int
12089main ()
12090{
12091shl_load ();
12092 ;
12093 return 0;
12094}
12095_ACEOF
12096rm -f conftest.$ac_objext conftest$ac_exeext
12097if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12098 (eval $ac_link) 2>conftest.er1
12099 ac_status=$?
12100 grep -v '^ *+' conftest.er1 >conftest.err
12101 rm -f conftest.er1
12102 cat conftest.err >&5
12103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12104 (exit $ac_status); } &&
12105 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12107 (eval $ac_try) 2>&5
12108 ac_status=$?
12109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12110 (exit $ac_status); }; } &&
12111 { ac_try='test -s conftest$ac_exeext'
12112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12113 (eval $ac_try) 2>&5
12114 ac_status=$?
12115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12116 (exit $ac_status); }; }; then
12117 ac_cv_lib_dld_shl_load=yes
12118else
12119 echo "$as_me: failed program was:" >&5
12120sed 's/^/| /' conftest.$ac_ext >&5
12121
12122ac_cv_lib_dld_shl_load=no
12123fi
12124rm -f conftest.err conftest.$ac_objext \
12125 conftest$ac_exeext conftest.$ac_ext
12126LIBS=$ac_check_lib_save_LIBS
12127fi
12128echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12129echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
12130if test $ac_cv_lib_dld_shl_load = yes; then
12131 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
12132else
12133 echo "$as_me:$LINENO: checking for dlopen" >&5
12134echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
12135if test "${ac_cv_func_dlopen+set}" = set; then
12136 echo $ECHO_N "(cached) $ECHO_C" >&6
12137else
12138 cat >conftest.$ac_ext <<_ACEOF
12139/* confdefs.h. */
12140_ACEOF
12141cat confdefs.h >>conftest.$ac_ext
12142cat >>conftest.$ac_ext <<_ACEOF
12143/* end confdefs.h. */
12144/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
12145 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12146#define dlopen innocuous_dlopen
12147
12148/* System header to define __stub macros and hopefully few prototypes,
12149 which can conflict with char dlopen (); below.
12150 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12151 <limits.h> exists even on freestanding compilers. */
12152
12153#ifdef __STDC__
12154# include <limits.h>
12155#else
12156# include <assert.h>
12157#endif
12158
12159#undef dlopen
12160
12161/* Override any gcc2 internal prototype to avoid an error. */
12162#ifdef __cplusplus
12163extern "C"
12164{
12165#endif
12166/* We use char because int might match the return type of a gcc2
12167 builtin and then its argument prototype would still apply. */
12168char dlopen ();
12169/* The GNU C library defines this for functions which it implements
12170 to always fail with ENOSYS. Some functions are actually named
12171 something starting with __ and the normal name is an alias. */
12172#if defined (__stub_dlopen) || defined (__stub___dlopen)
12173choke me
12174#else
12175char (*f) () = dlopen;
12176#endif
12177#ifdef __cplusplus
12178}
12179#endif
12180
12181int
12182main ()
12183{
12184return f != dlopen;
12185 ;
12186 return 0;
12187}
12188_ACEOF
12189rm -f conftest.$ac_objext conftest$ac_exeext
12190if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12191 (eval $ac_link) 2>conftest.er1
12192 ac_status=$?
12193 grep -v '^ *+' conftest.er1 >conftest.err
12194 rm -f conftest.er1
12195 cat conftest.err >&5
12196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12197 (exit $ac_status); } &&
12198 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12200 (eval $ac_try) 2>&5
12201 ac_status=$?
12202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12203 (exit $ac_status); }; } &&
12204 { ac_try='test -s conftest$ac_exeext'
12205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12206 (eval $ac_try) 2>&5
12207 ac_status=$?
12208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12209 (exit $ac_status); }; }; then
12210 ac_cv_func_dlopen=yes
12211else
12212 echo "$as_me: failed program was:" >&5
12213sed 's/^/| /' conftest.$ac_ext >&5
12214
12215ac_cv_func_dlopen=no
12216fi
12217rm -f conftest.err conftest.$ac_objext \
12218 conftest$ac_exeext conftest.$ac_ext
12219fi
12220echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12221echo "${ECHO_T}$ac_cv_func_dlopen" >&6
12222if test $ac_cv_func_dlopen = yes; then
12223 lt_cv_dlopen="dlopen"
12224else
12225 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12226echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12227if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12228 echo $ECHO_N "(cached) $ECHO_C" >&6
12229else
12230 ac_check_lib_save_LIBS=$LIBS
12231LIBS="-ldl $LIBS"
12232cat >conftest.$ac_ext <<_ACEOF
12233/* confdefs.h. */
12234_ACEOF
12235cat confdefs.h >>conftest.$ac_ext
12236cat >>conftest.$ac_ext <<_ACEOF
12237/* end confdefs.h. */
12238
12239/* Override any gcc2 internal prototype to avoid an error. */
12240#ifdef __cplusplus
12241extern "C"
12242#endif
12243/* We use char because int might match the return type of a gcc2
12244 builtin and then its argument prototype would still apply. */
12245char dlopen ();
12246int
12247main ()
12248{
12249dlopen ();
12250 ;
12251 return 0;
12252}
12253_ACEOF
12254rm -f conftest.$ac_objext conftest$ac_exeext
12255if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12256 (eval $ac_link) 2>conftest.er1
12257 ac_status=$?
12258 grep -v '^ *+' conftest.er1 >conftest.err
12259 rm -f conftest.er1
12260 cat conftest.err >&5
12261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12262 (exit $ac_status); } &&
12263 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12265 (eval $ac_try) 2>&5
12266 ac_status=$?
12267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12268 (exit $ac_status); }; } &&
12269 { ac_try='test -s conftest$ac_exeext'
12270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12271 (eval $ac_try) 2>&5
12272 ac_status=$?
12273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12274 (exit $ac_status); }; }; then
12275 ac_cv_lib_dl_dlopen=yes
12276else
12277 echo "$as_me: failed program was:" >&5
12278sed 's/^/| /' conftest.$ac_ext >&5
12279
12280ac_cv_lib_dl_dlopen=no
12281fi
12282rm -f conftest.err conftest.$ac_objext \
12283 conftest$ac_exeext conftest.$ac_ext
12284LIBS=$ac_check_lib_save_LIBS
12285fi
12286echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12287echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12288if test $ac_cv_lib_dl_dlopen = yes; then
12289 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12290else
12291 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12292echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
12293if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12294 echo $ECHO_N "(cached) $ECHO_C" >&6
12295else
12296 ac_check_lib_save_LIBS=$LIBS
12297LIBS="-lsvld $LIBS"
12298cat >conftest.$ac_ext <<_ACEOF
12299/* confdefs.h. */
12300_ACEOF
12301cat confdefs.h >>conftest.$ac_ext
12302cat >>conftest.$ac_ext <<_ACEOF
12303/* end confdefs.h. */
12304
12305/* Override any gcc2 internal prototype to avoid an error. */
12306#ifdef __cplusplus
12307extern "C"
12308#endif
12309/* We use char because int might match the return type of a gcc2
12310 builtin and then its argument prototype would still apply. */
12311char dlopen ();
12312int
12313main ()
12314{
12315dlopen ();
12316 ;
12317 return 0;
12318}
12319_ACEOF
12320rm -f conftest.$ac_objext conftest$ac_exeext
12321if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12322 (eval $ac_link) 2>conftest.er1
12323 ac_status=$?
12324 grep -v '^ *+' conftest.er1 >conftest.err
12325 rm -f conftest.er1
12326 cat conftest.err >&5
12327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12328 (exit $ac_status); } &&
12329 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12331 (eval $ac_try) 2>&5
12332 ac_status=$?
12333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12334 (exit $ac_status); }; } &&
12335 { ac_try='test -s conftest$ac_exeext'
12336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12337 (eval $ac_try) 2>&5
12338 ac_status=$?
12339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12340 (exit $ac_status); }; }; then
12341 ac_cv_lib_svld_dlopen=yes
12342else
12343 echo "$as_me: failed program was:" >&5
12344sed 's/^/| /' conftest.$ac_ext >&5
12345
12346ac_cv_lib_svld_dlopen=no
12347fi
12348rm -f conftest.err conftest.$ac_objext \
12349 conftest$ac_exeext conftest.$ac_ext
12350LIBS=$ac_check_lib_save_LIBS
12351fi
12352echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12353echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
12354if test $ac_cv_lib_svld_dlopen = yes; then
12355 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12356else
12357 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12358echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
12359if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12360 echo $ECHO_N "(cached) $ECHO_C" >&6
12361else
12362 ac_check_lib_save_LIBS=$LIBS
12363LIBS="-ldld $LIBS"
12364cat >conftest.$ac_ext <<_ACEOF
12365/* confdefs.h. */
12366_ACEOF
12367cat confdefs.h >>conftest.$ac_ext
12368cat >>conftest.$ac_ext <<_ACEOF
12369/* end confdefs.h. */
12370
12371/* Override any gcc2 internal prototype to avoid an error. */
12372#ifdef __cplusplus
12373extern "C"
12374#endif
12375/* We use char because int might match the return type of a gcc2
12376 builtin and then its argument prototype would still apply. */
12377char dld_link ();
12378int
12379main ()
12380{
12381dld_link ();
12382 ;
12383 return 0;
12384}
12385_ACEOF
12386rm -f conftest.$ac_objext conftest$ac_exeext
12387if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12388 (eval $ac_link) 2>conftest.er1
12389 ac_status=$?
12390 grep -v '^ *+' conftest.er1 >conftest.err
12391 rm -f conftest.er1
12392 cat conftest.err >&5
12393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12394 (exit $ac_status); } &&
12395 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12397 (eval $ac_try) 2>&5
12398 ac_status=$?
12399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12400 (exit $ac_status); }; } &&
12401 { ac_try='test -s conftest$ac_exeext'
12402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12403 (eval $ac_try) 2>&5
12404 ac_status=$?
12405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12406 (exit $ac_status); }; }; then
12407 ac_cv_lib_dld_dld_link=yes
12408else
12409 echo "$as_me: failed program was:" >&5
12410sed 's/^/| /' conftest.$ac_ext >&5
12411
12412ac_cv_lib_dld_dld_link=no
12413fi
12414rm -f conftest.err conftest.$ac_objext \
12415 conftest$ac_exeext conftest.$ac_ext
12416LIBS=$ac_check_lib_save_LIBS
12417fi
12418echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12419echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
12420if test $ac_cv_lib_dld_dld_link = yes; then
12421 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12422fi
12423
12424
12425fi
12426
12427
12428fi
12429
12430
12431fi
12432
12433
12434fi
12435
12436
12437fi
12438
12439 ;;
12440 esac
12441
12442 if test "x$lt_cv_dlopen" != xno; then
12443 enable_dlopen=yes
12444 else
12445 enable_dlopen=no
12446 fi
12447
12448 case $lt_cv_dlopen in
12449 dlopen)
12450 save_CPPFLAGS="$CPPFLAGS"
12451 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12452
12453 save_LDFLAGS="$LDFLAGS"
12454 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12455
12456 save_LIBS="$LIBS"
12457 LIBS="$lt_cv_dlopen_libs $LIBS"
12458
12459 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12460echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
12461if test "${lt_cv_dlopen_self+set}" = set; then
12462 echo $ECHO_N "(cached) $ECHO_C" >&6
12463else
12464 if test "$cross_compiling" = yes; then :
12465 lt_cv_dlopen_self=cross
12466else
12467 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12468 lt_status=$lt_dlunknown
12469 cat > conftest.$ac_ext <<EOF
12470#line 12470 "configure"
12471#include "confdefs.h"
12472
12473#if HAVE_DLFCN_H
12474#include <dlfcn.h>
12475#endif
12476
12477#include <stdio.h>
12478
12479#ifdef RTLD_GLOBAL
12480# define LT_DLGLOBAL RTLD_GLOBAL
12481#else
12482# ifdef DL_GLOBAL
12483# define LT_DLGLOBAL DL_GLOBAL
12484# else
12485# define LT_DLGLOBAL 0
12486# endif
12487#endif
12488
12489/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12490 find out it does not work in some platform. */
12491#ifndef LT_DLLAZY_OR_NOW
12492# ifdef RTLD_LAZY
12493# define LT_DLLAZY_OR_NOW RTLD_LAZY
12494# else
12495# ifdef DL_LAZY
12496# define LT_DLLAZY_OR_NOW DL_LAZY
12497# else
12498# ifdef RTLD_NOW
12499# define LT_DLLAZY_OR_NOW RTLD_NOW
12500# else
12501# ifdef DL_NOW
12502# define LT_DLLAZY_OR_NOW DL_NOW
12503# else
12504# define LT_DLLAZY_OR_NOW 0
12505# endif
12506# endif
12507# endif
12508# endif
12509#endif
12510
12511#ifdef __cplusplus
12512extern "C" void exit (int);
12513#endif
12514
12515void fnord() { int i=42;}
12516int main ()
12517{
12518 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12519 int status = $lt_dlunknown;
12520
12521 if (self)
12522 {
12523 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12524 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12525 /* dlclose (self); */
12526 }
12527
12528 exit (status);
12529}
12530EOF
12531 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12532 (eval $ac_link) 2>&5
12533 ac_status=$?
12534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12535 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12536 (./conftest; exit; ) 2>/dev/null
12537 lt_status=$?
12538 case x$lt_status in
12539 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12540 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12541 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12542 esac
12543 else :
12544 # compilation failed
12545 lt_cv_dlopen_self=no
12546 fi
12547fi
12548rm -fr conftest*
12549
12550
12551fi
12552echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12553echo "${ECHO_T}$lt_cv_dlopen_self" >&6
12554
12555 if test "x$lt_cv_dlopen_self" = xyes; then
12556 LDFLAGS="$LDFLAGS $link_static_flag"
12557 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12558echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
12559if test "${lt_cv_dlopen_self_static+set}" = set; then
12560 echo $ECHO_N "(cached) $ECHO_C" >&6
12561else
12562 if test "$cross_compiling" = yes; then :
12563 lt_cv_dlopen_self_static=cross
12564else
12565 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12566 lt_status=$lt_dlunknown
12567 cat > conftest.$ac_ext <<EOF
12568#line 12568 "configure"
12569#include "confdefs.h"
12570
12571#if HAVE_DLFCN_H
12572#include <dlfcn.h>
12573#endif
12574
12575#include <stdio.h>
12576
12577#ifdef RTLD_GLOBAL
12578# define LT_DLGLOBAL RTLD_GLOBAL
12579#else
12580# ifdef DL_GLOBAL
12581# define LT_DLGLOBAL DL_GLOBAL
12582# else
12583# define LT_DLGLOBAL 0
12584# endif
12585#endif
12586
12587/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12588 find out it does not work in some platform. */
12589#ifndef LT_DLLAZY_OR_NOW
12590# ifdef RTLD_LAZY
12591# define LT_DLLAZY_OR_NOW RTLD_LAZY
12592# else
12593# ifdef DL_LAZY
12594# define LT_DLLAZY_OR_NOW DL_LAZY
12595# else
12596# ifdef RTLD_NOW
12597# define LT_DLLAZY_OR_NOW RTLD_NOW
12598# else
12599# ifdef DL_NOW
12600# define LT_DLLAZY_OR_NOW DL_NOW
12601# else
12602# define LT_DLLAZY_OR_NOW 0
12603# endif
12604# endif
12605# endif
12606# endif
12607#endif
12608
12609#ifdef __cplusplus
12610extern "C" void exit (int);
12611#endif
12612
12613void fnord() { int i=42;}
12614int main ()
12615{
12616 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12617 int status = $lt_dlunknown;
12618
12619 if (self)
12620 {
12621 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12622 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12623 /* dlclose (self); */
12624 }
12625
12626 exit (status);
12627}
12628EOF
12629 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12630 (eval $ac_link) 2>&5
12631 ac_status=$?
12632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12633 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12634 (./conftest; exit; ) 2>/dev/null
12635 lt_status=$?
12636 case x$lt_status in
12637 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12638 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12639 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
12640 esac
12641 else :
12642 # compilation failed
12643 lt_cv_dlopen_self_static=no
12644 fi
12645fi
12646rm -fr conftest*
12647
12648
12649fi
12650echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12651echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
12652 fi
12653
12654 CPPFLAGS="$save_CPPFLAGS"
12655 LDFLAGS="$save_LDFLAGS"
12656 LIBS="$save_LIBS"
12657 ;;
12658 esac
12659
12660 case $lt_cv_dlopen_self in
12661 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12662 *) enable_dlopen_self=unknown ;;
12663 esac
12664
12665 case $lt_cv_dlopen_self_static in
12666 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12667 *) enable_dlopen_self_static=unknown ;;
12668 esac
12669fi
12670
12671
12672# The else clause should only fire when bootstrapping the
12673# libtool distribution, otherwise you forgot to ship ltmain.sh
12674# with your package, and you will get complaints that there are
12675# no rules to generate ltmain.sh.
12676if test -f "$ltmain"; then
12677 # See if we are running on zsh, and set the options which allow our commands through
12678 # without removal of \ escapes.
12679 if test -n "${ZSH_VERSION+set}" ; then
12680 setopt NO_GLOB_SUBST
12681 fi
12682 # Now quote all the things that may contain metacharacters while being
12683 # careful not to overquote the AC_SUBSTed values. We take copies of the
12684 # variables and quote the copies for generation of the libtool script.
12685 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
12686 SED SHELL STRIP \
12687 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12688 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12689 deplibs_check_method reload_flag reload_cmds need_locks \
12690 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12691 lt_cv_sys_global_symbol_to_c_name_address \
12692 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12693 old_postinstall_cmds old_postuninstall_cmds \
12694 compiler_CXX \
12695 CC_CXX \
12696 LD_CXX \
12697 lt_prog_compiler_wl_CXX \
12698 lt_prog_compiler_pic_CXX \
12699 lt_prog_compiler_static_CXX \
12700 lt_prog_compiler_no_builtin_flag_CXX \
12701 export_dynamic_flag_spec_CXX \
12702 thread_safe_flag_spec_CXX \
12703 whole_archive_flag_spec_CXX \
12704 enable_shared_with_static_runtimes_CXX \
12705 old_archive_cmds_CXX \
12706 old_archive_from_new_cmds_CXX \
12707 predep_objects_CXX \
12708 postdep_objects_CXX \
12709 predeps_CXX \
12710 postdeps_CXX \
12711 compiler_lib_search_path_CXX \
12712 archive_cmds_CXX \
12713 archive_expsym_cmds_CXX \
12714 postinstall_cmds_CXX \
12715 postuninstall_cmds_CXX \
12716 old_archive_from_expsyms_cmds_CXX \
12717 allow_undefined_flag_CXX \
12718 no_undefined_flag_CXX \
12719 export_symbols_cmds_CXX \
12720 hardcode_libdir_flag_spec_CXX \
12721 hardcode_libdir_flag_spec_ld_CXX \
12722 hardcode_libdir_separator_CXX \
12723 hardcode_automatic_CXX \
12724 module_cmds_CXX \
12725 module_expsym_cmds_CXX \
12726 lt_cv_prog_compiler_c_o_CXX \
12727 exclude_expsyms_CXX \
12728 include_expsyms_CXX; do
12729
12730 case $var in
12731 old_archive_cmds_CXX | \
12732 old_archive_from_new_cmds_CXX | \
12733 archive_cmds_CXX | \
12734 archive_expsym_cmds_CXX | \
12735 module_cmds_CXX | \
12736 module_expsym_cmds_CXX | \
12737 old_archive_from_expsyms_cmds_CXX | \
12738 export_symbols_cmds_CXX | \
12739 extract_expsyms_cmds | reload_cmds | finish_cmds | \
12740 postinstall_cmds | postuninstall_cmds | \
12741 old_postinstall_cmds | old_postuninstall_cmds | \
12742 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12743 # Double-quote double-evaled strings.
12744 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12745 ;;
12746 *)
12747 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12748 ;;
12749 esac
12750 done
12751
12752 case $lt_echo in
12753 *'\$0 --fallback-echo"')
12754 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12755 ;;
12756 esac
12757
12758cfgfile="$ofile"
12759
12760 cat <<__EOF__ >> "$cfgfile"
12761# ### BEGIN LIBTOOL TAG CONFIG: $tagname
12762
12763# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12764
12765# Shell to use when invoking shell scripts.
12766SHELL=$lt_SHELL
12767
12768# Whether or not to build shared libraries.
12769build_libtool_libs=$enable_shared
12770
12771# Whether or not to build static libraries.
12772build_old_libs=$enable_static
12773
12774# Whether or not to add -lc for building shared libraries.
12775build_libtool_need_lc=$archive_cmds_need_lc_CXX
12776
12777# Whether or not to disallow shared libs when runtime libs are static
12778allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12779
12780# Whether or not to optimize for fast installation.
12781fast_install=$enable_fast_install
12782
12783# The host system.
12784host_alias=$host_alias
12785host=$host
12786
12787# An echo program that does not interpret backslashes.
12788echo=$lt_echo
12789
12790# The archiver.
12791AR=$lt_AR
12792AR_FLAGS=$lt_AR_FLAGS
12793
12794# A C compiler.
12795LTCC=$lt_LTCC
12796
12797# A language-specific compiler.
12798CC=$lt_compiler_CXX
12799
12800# Is the compiler the GNU C compiler?
12801with_gcc=$GCC_CXX
12802
12803# An ERE matcher.
12804EGREP=$lt_EGREP
12805
12806# The linker used to build libraries.
12807LD=$lt_LD_CXX
12808
12809# Whether we need hard or soft links.
12810LN_S=$lt_LN_S
12811
12812# A BSD-compatible nm program.
12813NM=$lt_NM
12814
12815# A symbol stripping program
12816STRIP=$lt_STRIP
12817
12818# Used to examine libraries when file_magic_cmd begins "file"
12819MAGIC_CMD=$MAGIC_CMD
12820
12821# Used on cygwin: DLL creation program.
12822DLLTOOL="$DLLTOOL"
12823
12824# Used on cygwin: object dumper.
12825OBJDUMP="$OBJDUMP"
12826
12827# Used on cygwin: assembler.
12828AS="$AS"
12829
12830# The name of the directory that contains temporary libtool files.
12831objdir=$objdir
12832
12833# How to create reloadable object files.
12834reload_flag=$lt_reload_flag
12835reload_cmds=$lt_reload_cmds
12836
12837# How to pass a linker flag through the compiler.
12838wl=$lt_lt_prog_compiler_wl_CXX
12839
12840# Object file suffix (normally "o").
12841objext="$ac_objext"
12842
12843# Old archive suffix (normally "a").
12844libext="$libext"
12845
12846# Shared library suffix (normally ".so").
12847shrext_cmds='$shrext_cmds'
12848
12849# Executable file suffix (normally "").
12850exeext="$exeext"
12851
12852# Additional compiler flags for building library objects.
12853pic_flag=$lt_lt_prog_compiler_pic_CXX
12854pic_mode=$pic_mode
12855
12856# What is the maximum length of a command?
12857max_cmd_len=$lt_cv_sys_max_cmd_len
12858
12859# Does compiler simultaneously support -c and -o options?
12860compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12861
12862# Must we lock files when doing compilation ?
12863need_locks=$lt_need_locks
12864
12865# Do we need the lib prefix for modules?
12866need_lib_prefix=$need_lib_prefix
12867
12868# Do we need a version for libraries?
12869need_version=$need_version
12870
12871# Whether dlopen is supported.
12872dlopen_support=$enable_dlopen
12873
12874# Whether dlopen of programs is supported.
12875dlopen_self=$enable_dlopen_self
12876
12877# Whether dlopen of statically linked programs is supported.
12878dlopen_self_static=$enable_dlopen_self_static
12879
12880# Compiler flag to prevent dynamic linking.
12881link_static_flag=$lt_lt_prog_compiler_static_CXX
12882
12883# Compiler flag to turn off builtin functions.
12884no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12885
12886# Compiler flag to allow reflexive dlopens.
12887export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12888
12889# Compiler flag to generate shared objects directly from archives.
12890whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12891
12892# Compiler flag to generate thread-safe objects.
12893thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12894
12895# Library versioning type.
12896version_type=$version_type
12897
12898# Format of library name prefix.
12899libname_spec=$lt_libname_spec
12900
12901# List of archive names. First name is the real one, the rest are links.
12902# The last name is the one that the linker finds with -lNAME.
12903library_names_spec=$lt_library_names_spec
12904
12905# The coded name of the library, if different from the real name.
12906soname_spec=$lt_soname_spec
12907
12908# Commands used to build and install an old-style archive.
12909RANLIB=$lt_RANLIB
12910old_archive_cmds=$lt_old_archive_cmds_CXX
12911old_postinstall_cmds=$lt_old_postinstall_cmds
12912old_postuninstall_cmds=$lt_old_postuninstall_cmds
12913
12914# Create an old-style archive from a shared archive.
12915old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12916
12917# Create a temporary old-style archive to link instead of a shared archive.
12918old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12919
12920# Commands used to build and install a shared archive.
12921archive_cmds=$lt_archive_cmds_CXX
12922archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12923postinstall_cmds=$lt_postinstall_cmds
12924postuninstall_cmds=$lt_postuninstall_cmds
12925
12926# Commands used to build a loadable module (assumed same as above if empty)
12927module_cmds=$lt_module_cmds_CXX
12928module_expsym_cmds=$lt_module_expsym_cmds_CXX
12929
12930# Commands to strip libraries.
12931old_striplib=$lt_old_striplib
12932striplib=$lt_striplib
12933
12934# Dependencies to place before the objects being linked to create a
12935# shared library.
12936predep_objects=$lt_predep_objects_CXX
12937
12938# Dependencies to place after the objects being linked to create a
12939# shared library.
12940postdep_objects=$lt_postdep_objects_CXX
12941
12942# Dependencies to place before the objects being linked to create a
12943# shared library.
12944predeps=$lt_predeps_CXX
12945
12946# Dependencies to place after the objects being linked to create a
12947# shared library.
12948postdeps=$lt_postdeps_CXX
12949
12950# The library search path used internally by the compiler when linking
12951# a shared library.
12952compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12953
12954# Method to check whether dependent libraries are shared objects.
12955deplibs_check_method=$lt_deplibs_check_method
12956
12957# Command to use when deplibs_check_method == file_magic.
12958file_magic_cmd=$lt_file_magic_cmd
12959
12960# Flag that allows shared libraries with undefined symbols to be built.
12961allow_undefined_flag=$lt_allow_undefined_flag_CXX
12962
12963# Flag that forces no undefined symbols.
12964no_undefined_flag=$lt_no_undefined_flag_CXX
12965
12966# Commands used to finish a libtool library installation in a directory.
12967finish_cmds=$lt_finish_cmds
12968
12969# Same as above, but a single script fragment to be evaled but not shown.
12970finish_eval=$lt_finish_eval
12971
12972# Take the output of nm and produce a listing of raw symbols and C names.
12973global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12974
12975# Transform the output of nm in a proper C declaration
12976global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12977
12978# Transform the output of nm in a C name address pair
12979global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12980
12981# This is the shared library runtime path variable.
12982runpath_var=$runpath_var
12983
12984# This is the shared library path variable.
12985shlibpath_var=$shlibpath_var
12986
12987# Is shlibpath searched before the hard-coded library search path?
12988shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12989
12990# How to hardcode a shared library path into an executable.
12991hardcode_action=$hardcode_action_CXX
12992
12993# Whether we should hardcode library paths into libraries.
12994hardcode_into_libs=$hardcode_into_libs
12995
12996# Flag to hardcode \$libdir into a binary during linking.
12997# This must work even if \$libdir does not exist.
12998hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12999
13000# If ld is used when linking, flag to hardcode \$libdir into
13001# a binary during linking. This must work even if \$libdir does
13002# not exist.
13003hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13004
13005# Whether we need a single -rpath flag with a separated argument.
13006hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13007
13008# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13009# resulting binary.
13010hardcode_direct=$hardcode_direct_CXX
13011
13012# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13013# resulting binary.
13014hardcode_minus_L=$hardcode_minus_L_CXX
13015
13016# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13017# the resulting binary.
13018hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13019
13020# Set to yes if building a shared library automatically hardcodes DIR into the library
13021# and all subsequent libraries and executables linked against it.
13022hardcode_automatic=$hardcode_automatic_CXX
13023
13024# Variables whose values should be saved in libtool wrapper scripts and
13025# restored at relink time.
13026variables_saved_for_relink="$variables_saved_for_relink"
13027
13028# Whether libtool must link a program against all its dependency libraries.
13029link_all_deplibs=$link_all_deplibs_CXX
13030
13031# Compile-time system search path for libraries
13032sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13033
13034# Run-time system search path for libraries
13035sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13036
13037# Fix the shell variable \$srcfile for the compiler.
13038fix_srcfile_path="$fix_srcfile_path_CXX"
13039
13040# Set to yes if exported symbols are required.
13041always_export_symbols=$always_export_symbols_CXX
13042
13043# The commands to list exported symbols.
13044export_symbols_cmds=$lt_export_symbols_cmds_CXX
13045
13046# The commands to extract the exported symbol list from a shared archive.
13047extract_expsyms_cmds=$lt_extract_expsyms_cmds
13048
13049# Symbols that should not be listed in the preloaded symbols.
13050exclude_expsyms=$lt_exclude_expsyms_CXX
13051
13052# Symbols that must always be exported.
13053include_expsyms=$lt_include_expsyms_CXX
13054
13055# ### END LIBTOOL TAG CONFIG: $tagname
13056
13057__EOF__
13058
13059
13060else
13061 # If there is no Makefile yet, we rely on a make rule to execute
13062 # `config.status --recheck' to rerun these tests and create the
13063 # libtool script then.
13064 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13065 if test -f "$ltmain_in"; then
13066 test -f Makefile && make "$ltmain"
13067 fi
13068fi
13069
13070
13071ac_ext=c
13072ac_cpp='$CPP $CPPFLAGS'
13073ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13074ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13075ac_compiler_gnu=$ac_cv_c_compiler_gnu
13076
13077CC=$lt_save_CC
13078LDCXX=$LD
13079LD=$lt_save_LD
13080GCC=$lt_save_GCC
13081with_gnu_ldcxx=$with_gnu_ld
13082with_gnu_ld=$lt_save_with_gnu_ld
13083lt_cv_path_LDCXX=$lt_cv_path_LD
13084lt_cv_path_LD=$lt_save_path_LD
13085lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13086lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13087
13088 else
13089 tagname=""
13090 fi
13091 ;;
13092
13093 F77)
13094 if test -n "$F77" && test "X$F77" != "Xno"; then
13095
13096ac_ext=f
13097ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13098ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13099ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13100
13101
13102archive_cmds_need_lc_F77=no
13103allow_undefined_flag_F77=
13104always_export_symbols_F77=no
13105archive_expsym_cmds_F77=
13106export_dynamic_flag_spec_F77=
13107hardcode_direct_F77=no
13108hardcode_libdir_flag_spec_F77=
13109hardcode_libdir_flag_spec_ld_F77=
13110hardcode_libdir_separator_F77=
13111hardcode_minus_L_F77=no
13112hardcode_automatic_F77=no
13113module_cmds_F77=
13114module_expsym_cmds_F77=
13115link_all_deplibs_F77=unknown
13116old_archive_cmds_F77=$old_archive_cmds
13117no_undefined_flag_F77=
13118whole_archive_flag_spec_F77=
13119enable_shared_with_static_runtimes_F77=no
13120
13121# Source file extension for f77 test sources.
13122ac_ext=f
13123
13124# Object file extension for compiled f77 test sources.
13125objext=o
13126objext_F77=$objext
13127
13128# Code to be used in simple compile tests
13129lt_simple_compile_test_code=" subroutine t\n return\n end\n"
13130
13131# Code to be used in simple link tests
13132lt_simple_link_test_code=" program t\n end\n"
13133
13134# ltmain only uses $CC for tagged configurations so make sure $CC is set.
13135
13136# If no C compiler was specified, use CC.
13137LTCC=${LTCC-"$CC"}
13138
13139# Allow CC to be a program name with arguments.
13140compiler=$CC
13141
13142
13143# Allow CC to be a program name with arguments.
13144lt_save_CC="$CC"
13145CC=${F77-"f77"}
13146compiler=$CC
13147compiler_F77=$CC
13148cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
13149
13150echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13151echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
13152echo "$as_me:$LINENO: result: $can_build_shared" >&5
13153echo "${ECHO_T}$can_build_shared" >&6
13154
13155echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13156echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
13157test "$can_build_shared" = "no" && enable_shared=no
13158
13159# On AIX, shared libraries and static libraries use the same namespace, and
13160# are all built from PIC.
13161case "$host_os" in
13162aix3*)
13163 test "$enable_shared" = yes && enable_static=no
13164 if test -n "$RANLIB"; then
13165 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13166 postinstall_cmds='$RANLIB $lib'
13167 fi
13168 ;;
13169aix4* | aix5*)
13170 test "$enable_shared" = yes && enable_static=no
13171 ;;
13172esac
13173echo "$as_me:$LINENO: result: $enable_shared" >&5
13174echo "${ECHO_T}$enable_shared" >&6
13175
13176echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13177echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
13178# Make sure either enable_shared or enable_static is yes.
13179test "$enable_shared" = yes || enable_static=yes
13180echo "$as_me:$LINENO: result: $enable_static" >&5
13181echo "${ECHO_T}$enable_static" >&6
13182
13183test "$ld_shlibs_F77" = no && can_build_shared=no
13184
13185GCC_F77="$G77"
13186LD_F77="$LD"
13187
13188lt_prog_compiler_wl_F77=
13189lt_prog_compiler_pic_F77=
13190lt_prog_compiler_static_F77=
13191
13192echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13193echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13194
13195 if test "$GCC" = yes; then
13196 lt_prog_compiler_wl_F77='-Wl,'
13197 lt_prog_compiler_static_F77='-static'
13198
13199 case $host_os in
13200 aix*)
13201 # All AIX code is PIC.
13202 if test "$host_cpu" = ia64; then
13203 # AIX 5 now supports IA64 processor
13204 lt_prog_compiler_static_F77='-Bstatic'
13205 fi
13206 ;;
13207
13208 amigaos*)
13209 # FIXME: we need at least 68020 code to build shared libraries, but
13210 # adding the `-m68020' flag to GCC prevents building anything better,
13211 # like `-m68040'.
13212 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13213 ;;
13214
13215 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13216 # PIC is the default for these OSes.
13217 ;;
13218
13219 mingw* | pw32* | os2*)
13220 # This hack is so that the source file can tell whether it is being
13221 # built for inclusion in a dll (and should export symbols for example).
13222 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13223 ;;
13224
13225 darwin* | rhapsody*)
13226 # PIC is the default on this platform
13227 # Common symbols not allowed in MH_DYLIB files
13228 lt_prog_compiler_pic_F77='-fno-common'
13229 ;;
13230
13231 msdosdjgpp*)
13232 # Just because we use GCC doesn't mean we suddenly get shared libraries
13233 # on systems that don't support them.
13234 lt_prog_compiler_can_build_shared_F77=no
13235 enable_shared=no
13236 ;;
13237
13238 sysv4*MP*)
13239 if test -d /usr/nec; then
13240 lt_prog_compiler_pic_F77=-Kconform_pic
13241 fi
13242 ;;
13243
13244 hpux*)
13245 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13246 # not for PA HP-UX.
13247 case "$host_cpu" in
13248 hppa*64*|ia64*)
13249 # +Z the default
13250 ;;
13251 *)
13252 lt_prog_compiler_pic_F77='-fPIC'
13253 ;;
13254 esac
13255 ;;
13256
13257 *)
13258 lt_prog_compiler_pic_F77='-fPIC'
13259 ;;
13260 esac
13261 else
13262 # PORTME Check for flag to pass linker flags through the system compiler.
13263 case $host_os in
13264 aix*)
13265 lt_prog_compiler_wl_F77='-Wl,'
13266 if test "$host_cpu" = ia64; then
13267 # AIX 5 now supports IA64 processor
13268 lt_prog_compiler_static_F77='-Bstatic'
13269 else
13270 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13271 fi
13272 ;;
13273
13274 mingw* | pw32* | os2*)
13275 # This hack is so that the source file can tell whether it is being
13276 # built for inclusion in a dll (and should export symbols for example).
13277 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13278 ;;
13279
13280 hpux9* | hpux10* | hpux11*)
13281 lt_prog_compiler_wl_F77='-Wl,'
13282 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13283 # not for PA HP-UX.
13284 case "$host_cpu" in
13285 hppa*64*|ia64*)
13286 # +Z the default
13287 ;;
13288 *)
13289 lt_prog_compiler_pic_F77='+Z'
13290 ;;
13291 esac
13292 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13293 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13294 ;;
13295
13296 irix5* | irix6* | nonstopux*)
13297 lt_prog_compiler_wl_F77='-Wl,'
13298 # PIC (with -KPIC) is the default.
13299 lt_prog_compiler_static_F77='-non_shared'
13300 ;;
13301
13302 newsos6)
13303 lt_prog_compiler_pic_F77='-KPIC'
13304 lt_prog_compiler_static_F77='-Bstatic'
13305 ;;
13306
13307 linux*)
13308 case $CC in
13309 icc* | ecc*)
13310 lt_prog_compiler_wl_F77='-Wl,'
13311 lt_prog_compiler_pic_F77='-KPIC'
13312 lt_prog_compiler_static_F77='-static'
13313 ;;
13314 ccc*)
13315 lt_prog_compiler_wl_F77='-Wl,'
13316 # All Alpha code is PIC.
13317 lt_prog_compiler_static_F77='-non_shared'
13318 ;;
13319 esac
13320 ;;
13321
13322 osf3* | osf4* | osf5*)
13323 lt_prog_compiler_wl_F77='-Wl,'
13324 # All OSF/1 code is PIC.
13325 lt_prog_compiler_static_F77='-non_shared'
13326 ;;
13327
13328 sco3.2v5*)
13329 lt_prog_compiler_pic_F77='-Kpic'
13330 lt_prog_compiler_static_F77='-dn'
13331 ;;
13332
13333 solaris*)
13334 lt_prog_compiler_wl_F77='-Wl,'
13335 lt_prog_compiler_pic_F77='-KPIC'
13336 lt_prog_compiler_static_F77='-Bstatic'
13337 ;;
13338
13339 sunos4*)
13340 lt_prog_compiler_wl_F77='-Qoption ld '
13341 lt_prog_compiler_pic_F77='-PIC'
13342 lt_prog_compiler_static_F77='-Bstatic'
13343 ;;
13344
13345 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13346 lt_prog_compiler_wl_F77='-Wl,'
13347 lt_prog_compiler_pic_F77='-KPIC'
13348 lt_prog_compiler_static_F77='-Bstatic'
13349 ;;
13350
13351 sysv4*MP*)
13352 if test -d /usr/nec ;then
13353 lt_prog_compiler_pic_F77='-Kconform_pic'
13354 lt_prog_compiler_static_F77='-Bstatic'
13355 fi
13356 ;;
13357
13358 uts4*)
13359 lt_prog_compiler_pic_F77='-pic'
13360 lt_prog_compiler_static_F77='-Bstatic'
13361 ;;
13362
13363 *)
13364 lt_prog_compiler_can_build_shared_F77=no
13365 ;;
13366 esac
13367 fi
13368
13369echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13370echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13371
13372#
13373# Check to make sure the PIC flag actually works.
13374#
13375if test -n "$lt_prog_compiler_pic_F77"; then
13376
13377echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13378echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13379if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13380 echo $ECHO_N "(cached) $ECHO_C" >&6
13381else
13382 lt_prog_compiler_pic_works_F77=no
13383 ac_outfile=conftest.$ac_objext
13384 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13385 lt_compiler_flag="$lt_prog_compiler_pic_F77"
13386 # Insert the option either (1) after the last *FLAGS variable, or
13387 # (2) before a word containing "conftest.", or (3) at the end.
13388 # Note that $ac_compile itself does not contain backslashes and begins
13389 # with a dollar sign (not a hyphen), so the echo should work correctly.
13390 # The option is referenced via a variable to avoid confusing sed.
13391 lt_compile=`echo "$ac_compile" | $SED \
13392 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13393 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13394 -e 's:$: $lt_compiler_flag:'`
13395 (eval echo "\"\$as_me:13395: $lt_compile\"" >&5)
13396 (eval "$lt_compile" 2>conftest.err)
13397 ac_status=$?
13398 cat conftest.err >&5
13399 echo "$as_me:13399: \$? = $ac_status" >&5
13400 if (exit $ac_status) && test -s "$ac_outfile"; then
13401 # The compiler can only warn and ignore the option if not recognized
13402 # So say no if there are warnings
13403 if test ! -s conftest.err; then
13404 lt_prog_compiler_pic_works_F77=yes
13405 fi
13406 fi
13407 $rm conftest*
13408
13409fi
13410echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13411echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13412
13413if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13414 case $lt_prog_compiler_pic_F77 in
13415 "" | " "*) ;;
13416 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13417 esac
13418else
13419 lt_prog_compiler_pic_F77=
13420 lt_prog_compiler_can_build_shared_F77=no
13421fi
13422
13423fi
13424case "$host_os" in
13425 # For platforms which do not support PIC, -DPIC is meaningless:
13426 *djgpp*)
13427 lt_prog_compiler_pic_F77=
13428 ;;
13429 *)
13430 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13431 ;;
13432esac
13433
13434echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13435echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13436if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13437 echo $ECHO_N "(cached) $ECHO_C" >&6
13438else
13439 lt_cv_prog_compiler_c_o_F77=no
13440 $rm -r conftest 2>/dev/null
13441 mkdir conftest
13442 cd conftest
13443 mkdir out
13444 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13445
13446 lt_compiler_flag="-o out/conftest2.$ac_objext"
13447 # Insert the option either (1) after the last *FLAGS variable, or
13448 # (2) before a word containing "conftest.", or (3) at the end.
13449 # Note that $ac_compile itself does not contain backslashes and begins
13450 # with a dollar sign (not a hyphen), so the echo should work correctly.
13451 lt_compile=`echo "$ac_compile" | $SED \
13452 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13453 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13454 -e 's:$: $lt_compiler_flag:'`
13455 (eval echo "\"\$as_me:13455: $lt_compile\"" >&5)
13456 (eval "$lt_compile" 2>out/conftest.err)
13457 ac_status=$?
13458 cat out/conftest.err >&5
13459 echo "$as_me:13459: \$? = $ac_status" >&5
13460 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13461 then
13462 # The compiler can only warn and ignore the option if not recognized
13463 # So say no if there are warnings
13464 if test ! -s out/conftest.err; then
13465 lt_cv_prog_compiler_c_o_F77=yes
13466 fi
13467 fi
13468 chmod u+w .
13469 $rm conftest*
13470 # SGI C++ compiler will create directory out/ii_files/ for
13471 # template instantiation
13472 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13473 $rm out/* && rmdir out
13474 cd ..
13475 rmdir conftest
13476 $rm conftest*
13477
13478fi
13479echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13480echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13481
13482
13483hard_links="nottested"
13484if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13485 # do not overwrite the value of need_locks provided by the user
13486 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13487echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13488 hard_links=yes
13489 $rm conftest*
13490 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13491 touch conftest.a
13492 ln conftest.a conftest.b 2>&5 || hard_links=no
13493 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13494 echo "$as_me:$LINENO: result: $hard_links" >&5
13495echo "${ECHO_T}$hard_links" >&6
13496 if test "$hard_links" = no; then
13497 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13498echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13499 need_locks=warn
13500 fi
13501else
13502 need_locks=no
13503fi
13504
13505echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13506echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13507
13508 runpath_var=
13509 allow_undefined_flag_F77=
13510 enable_shared_with_static_runtimes_F77=no
13511 archive_cmds_F77=
13512 archive_expsym_cmds_F77=
13513 old_archive_From_new_cmds_F77=
13514 old_archive_from_expsyms_cmds_F77=
13515 export_dynamic_flag_spec_F77=
13516 whole_archive_flag_spec_F77=
13517 thread_safe_flag_spec_F77=
13518 hardcode_libdir_flag_spec_F77=
13519 hardcode_libdir_flag_spec_ld_F77=
13520 hardcode_libdir_separator_F77=
13521 hardcode_direct_F77=no
13522 hardcode_minus_L_F77=no
13523 hardcode_shlibpath_var_F77=unsupported
13524 link_all_deplibs_F77=unknown
13525 hardcode_automatic_F77=no
13526 module_cmds_F77=
13527 module_expsym_cmds_F77=
13528 always_export_symbols_F77=no
13529 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13530 # include_expsyms should be a list of space-separated symbols to be *always*
13531 # included in the symbol list
13532 include_expsyms_F77=
13533 # exclude_expsyms can be an extended regexp of symbols to exclude
13534 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13535 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13536 # as well as any symbol that contains `d'.
13537 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13538 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13539 # platforms (ab)use it in PIC code, but their linkers get confused if
13540 # the symbol is explicitly referenced. Since portable code cannot
13541 # rely on this symbol name, it's probably fine to never include it in
13542 # preloaded symbol tables.
13543 extract_expsyms_cmds=
13544
13545 case $host_os in
13546 cygwin* | mingw* | pw32*)
13547 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13548 # When not using gcc, we currently assume that we are using
13549 # Microsoft Visual C++.
13550 if test "$GCC" != yes; then
13551 with_gnu_ld=no
13552 fi
13553 ;;
13554 openbsd*)
13555 with_gnu_ld=no
13556 ;;
13557 esac
13558
13559 ld_shlibs_F77=yes
13560 if test "$with_gnu_ld" = yes; then
13561 # If archive_cmds runs LD, not CC, wlarc should be empty
13562 wlarc='${wl}'
13563
13564 # See if GNU ld supports shared libraries.
13565 case $host_os in
13566 aix3* | aix4* | aix5*)
13567 # On AIX/PPC, the GNU linker is very broken
13568 if test "$host_cpu" != ia64; then
13569 ld_shlibs_F77=no
13570 cat <<EOF 1>&2
13571
13572*** Warning: the GNU linker, at least up to release 2.9.1, is reported
13573*** to be unable to reliably create shared libraries on AIX.
13574*** Therefore, libtool is disabling shared libraries support. If you
13575*** really care for shared libraries, you may want to modify your PATH
13576*** so that a non-GNU linker is found, and then restart.
13577
13578EOF
13579 fi
13580 ;;
13581
13582 amigaos*)
13583 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)'
13584 hardcode_libdir_flag_spec_F77='-L$libdir'
13585 hardcode_minus_L_F77=yes
13586
13587 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13588 # that the semantics of dynamic libraries on AmigaOS, at least up
13589 # to version 4, is to share data among multiple programs linked
13590 # with the same dynamic library. Since this doesn't match the
13591 # behavior of shared libraries on other platforms, we can't use
13592 # them.
13593 ld_shlibs_F77=no
13594 ;;
13595
13596 beos*)
13597 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13598 allow_undefined_flag_F77=unsupported
13599 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13600 # support --undefined. This deserves some investigation. FIXME
13601 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13602 else
13603 ld_shlibs_F77=no
13604 fi
13605 ;;
13606
13607 cygwin* | mingw* | pw32*)
13608 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13609 # as there is no search path for DLLs.
13610 hardcode_libdir_flag_spec_F77='-L$libdir'
13611 allow_undefined_flag_F77=unsupported
13612 always_export_symbols_F77=no
13613 enable_shared_with_static_runtimes_F77=yes
13614 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13615
13616 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13617 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13618 # If the export-symbols file already is a .def file (1st line
13619 # is EXPORTS), use it as is; otherwise, prepend...
13620 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13621 cp $export_symbols $output_objdir/$soname.def;
13622 else
13623 echo EXPORTS > $output_objdir/$soname.def;
13624 cat $export_symbols >> $output_objdir/$soname.def;
13625 fi~
13626 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13627 else
13628 ld_shlibs=no
13629 fi
13630 ;;
13631
13632 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
13633 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13634 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13635 wlarc=
13636 else
13637 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13638 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13639 fi
13640 ;;
13641
13642 solaris* | sysv5*)
13643 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13644 ld_shlibs_F77=no
13645 cat <<EOF 1>&2
13646
13647*** Warning: The releases 2.8.* of the GNU linker cannot reliably
13648*** create shared libraries on Solaris systems. Therefore, libtool
13649*** is disabling shared libraries support. We urge you to upgrade GNU
13650*** binutils to release 2.9.1 or newer. Another option is to modify
13651*** your PATH or compiler configuration so that the native linker is
13652*** used, and then restart.
13653
13654EOF
13655 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13656 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13657 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13658 else
13659 ld_shlibs_F77=no
13660 fi
13661 ;;
13662
13663 sunos4*)
13664 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13665 wlarc=
13666 hardcode_direct_F77=yes
13667 hardcode_shlibpath_var_F77=no
13668 ;;
13669
13670 linux*)
13671 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13672 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13673 archive_cmds_F77="$tmp_archive_cmds"
13674 supports_anon_versioning=no
13675 case `$LD -v 2>/dev/null` in
13676 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13677 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13678 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13679 *\ 2.11.*) ;; # other 2.11 versions
13680 *) supports_anon_versioning=yes ;;
13681 esac
13682 if test $supports_anon_versioning = yes; then
13683 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
13684cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13685$echo "local: *; };" >> $output_objdir/$libname.ver~
13686 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13687 else
13688 archive_expsym_cmds_F77="$tmp_archive_cmds"
13689 fi
13690 link_all_deplibs_F77=no
13691 else
13692 ld_shlibs_F77=no
13693 fi
13694 ;;
13695
13696 *)
13697 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13698 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13699 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13700 else
13701 ld_shlibs_F77=no
13702 fi
13703 ;;
13704 esac
13705
13706 if test "$ld_shlibs_F77" = yes; then
13707 runpath_var=LD_RUN_PATH
13708 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13709 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13710 # ancient GNU ld didn't support --whole-archive et. al.
13711 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13712 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13713 else
13714 whole_archive_flag_spec_F77=
13715 fi
13716 fi
13717 else
13718 # PORTME fill in a description of your system's linker (not GNU ld)
13719 case $host_os in
13720 aix3*)
13721 allow_undefined_flag_F77=unsupported
13722 always_export_symbols_F77=yes
13723 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'
13724 # Note: this linker hardcodes the directories in LIBPATH if there
13725 # are no directories specified by -L.
13726 hardcode_minus_L_F77=yes
13727 if test "$GCC" = yes && test -z "$link_static_flag"; then
13728 # Neither direct hardcoding nor static linking is supported with a
13729 # broken collect2.
13730 hardcode_direct_F77=unsupported
13731 fi
13732 ;;
13733
13734 aix4* | aix5*)
13735 if test "$host_cpu" = ia64; then
13736 # On IA64, the linker does run time linking by default, so we don't
13737 # have to do anything special.
13738 aix_use_runtimelinking=no
13739 exp_sym_flag='-Bexport'
13740 no_entry_flag=""
13741 else
13742 # If we're using GNU nm, then we don't want the "-C" option.
13743 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13744 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13745 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'
13746 else
13747 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'
13748 fi
13749 aix_use_runtimelinking=no
13750
13751 # Test if we are trying to use run time linking or normal
13752 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13753 # need to do runtime linking.
13754 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13755 for ld_flag in $LDFLAGS; do
13756 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13757 aix_use_runtimelinking=yes
13758 break
13759 fi
13760 done
13761 esac
13762
13763 exp_sym_flag='-bexport'
13764 no_entry_flag='-bnoentry'
13765 fi
13766
13767 # When large executables or shared objects are built, AIX ld can
13768 # have problems creating the table of contents. If linking a library
13769 # or program results in "error TOC overflow" add -mminimal-toc to
13770 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13771 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13772
13773 archive_cmds_F77=''
13774 hardcode_direct_F77=yes
13775 hardcode_libdir_separator_F77=':'
13776 link_all_deplibs_F77=yes
13777
13778 if test "$GCC" = yes; then
13779 case $host_os in aix4.012|aix4.012.*)
13780 # We only want to do this on AIX 4.2 and lower, the check
13781 # below for broken collect2 doesn't work under 4.3+
13782 collect2name=`${CC} -print-prog-name=collect2`
13783 if test -f "$collect2name" && \
13784 strings "$collect2name" | grep resolve_lib_name >/dev/null
13785 then
13786 # We have reworked collect2
13787 hardcode_direct_F77=yes
13788 else
13789 # We have old collect2
13790 hardcode_direct_F77=unsupported
13791 # It fails to find uninstalled libraries when the uninstalled
13792 # path is not listed in the libpath. Setting hardcode_minus_L
13793 # to unsupported forces relinking
13794 hardcode_minus_L_F77=yes
13795 hardcode_libdir_flag_spec_F77='-L$libdir'
13796 hardcode_libdir_separator_F77=
13797 fi
13798 esac
13799 shared_flag='-shared'
13800 else
13801 # not using gcc
13802 if test "$host_cpu" = ia64; then
13803 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13804 # chokes on -Wl,-G. The following line is correct:
13805 shared_flag='-G'
13806 else
13807 if test "$aix_use_runtimelinking" = yes; then
13808 shared_flag='${wl}-G'
13809 else
13810 shared_flag='${wl}-bM:SRE'
13811 fi
13812 fi
13813 fi
13814
13815 # It seems that -bexpall does not export symbols beginning with
13816 # underscore (_), so it is better to generate a list of symbols to export.
13817 always_export_symbols_F77=yes
13818 if test "$aix_use_runtimelinking" = yes; then
13819 # Warning - without using the other runtime loading flags (-brtl),
13820 # -berok will link without error, but may produce a broken library.
13821 allow_undefined_flag_F77='-berok'
13822 # Determine the default libpath from the value encoded in an empty executable.
13823 cat >conftest.$ac_ext <<_ACEOF
13824 program main
13825
13826 end
13827_ACEOF
13828rm -f conftest.$ac_objext conftest$ac_exeext
13829if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13830 (eval $ac_link) 2>conftest.er1
13831 ac_status=$?
13832 grep -v '^ *+' conftest.er1 >conftest.err
13833 rm -f conftest.er1
13834 cat conftest.err >&5
13835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13836 (exit $ac_status); } &&
13837 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13839 (eval $ac_try) 2>&5
13840 ac_status=$?
13841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13842 (exit $ac_status); }; } &&
13843 { ac_try='test -s conftest$ac_exeext'
13844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13845 (eval $ac_try) 2>&5
13846 ac_status=$?
13847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13848 (exit $ac_status); }; }; then
13849
13850aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13851}'`
13852# Check for a 64-bit object if we didn't find anything.
13853if 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; }
13854}'`; fi
13855else
13856 echo "$as_me: failed program was:" >&5
13857sed 's/^/| /' conftest.$ac_ext >&5
13858
13859fi
13860rm -f conftest.err conftest.$ac_objext \
13861 conftest$ac_exeext conftest.$ac_ext
13862if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13863
13864 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13865 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"
13866 else
13867 if test "$host_cpu" = ia64; then
13868 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13869 allow_undefined_flag_F77="-z nodefs"
13870 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"
13871 else
13872 # Determine the default libpath from the value encoded in an empty executable.
13873 cat >conftest.$ac_ext <<_ACEOF
13874 program main
13875
13876 end
13877_ACEOF
13878rm -f conftest.$ac_objext conftest$ac_exeext
13879if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13880 (eval $ac_link) 2>conftest.er1
13881 ac_status=$?
13882 grep -v '^ *+' conftest.er1 >conftest.err
13883 rm -f conftest.er1
13884 cat conftest.err >&5
13885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13886 (exit $ac_status); } &&
13887 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13889 (eval $ac_try) 2>&5
13890 ac_status=$?
13891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13892 (exit $ac_status); }; } &&
13893 { ac_try='test -s conftest$ac_exeext'
13894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13895 (eval $ac_try) 2>&5
13896 ac_status=$?
13897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13898 (exit $ac_status); }; }; then
13899
13900aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13901}'`
13902# Check for a 64-bit object if we didn't find anything.
13903if 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; }
13904}'`; fi
13905else
13906 echo "$as_me: failed program was:" >&5
13907sed 's/^/| /' conftest.$ac_ext >&5
13908
13909fi
13910rm -f conftest.err conftest.$ac_objext \
13911 conftest$ac_exeext conftest.$ac_ext
13912if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13913
13914 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13915 # Warning - without using the other run time loading flags,
13916 # -berok will link without error, but may produce a broken library.
13917 no_undefined_flag_F77=' ${wl}-bernotok'
13918 allow_undefined_flag_F77=' ${wl}-berok'
13919 # -bexpall does not export symbols beginning with underscore (_)
13920 always_export_symbols_F77=yes
13921 # Exported symbols can be pulled into shared objects from archives
13922 whole_archive_flag_spec_F77=' '
13923 archive_cmds_need_lc_F77=yes
13924 # This is similar to how AIX traditionally builds it's shared libraries.
13925 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'
13926 fi
13927 fi
13928 ;;
13929
13930 amigaos*)
13931 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)'
13932 hardcode_libdir_flag_spec_F77='-L$libdir'
13933 hardcode_minus_L_F77=yes
13934 # see comment about different semantics on the GNU ld section
13935 ld_shlibs_F77=no
13936 ;;
13937
13938 bsdi4*)
13939 export_dynamic_flag_spec_F77=-rdynamic
13940 ;;
13941
13942 cygwin* | mingw* | pw32*)
13943 # When not using gcc, we currently assume that we are using
13944 # Microsoft Visual C++.
13945 # hardcode_libdir_flag_spec is actually meaningless, as there is
13946 # no search path for DLLs.
13947 hardcode_libdir_flag_spec_F77=' '
13948 allow_undefined_flag_F77=unsupported
13949 # Tell ltmain to make .lib files, not .a files.
13950 libext=lib
13951 # Tell ltmain to make .dll files, not .so files.
13952 shrext_cmds=".dll"
13953 # FIXME: Setting linknames here is a bad hack.
13954 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13955 # The linker will automatically build a .lib file if we build a DLL.
13956 old_archive_From_new_cmds_F77='true'
13957 # FIXME: Should let the user specify the lib program.
13958 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13959 fix_srcfile_path='`cygpath -w "$srcfile"`'
13960 enable_shared_with_static_runtimes_F77=yes
13961 ;;
13962
13963 darwin* | rhapsody*)
13964 if test "$GXX" = yes ; then
13965 archive_cmds_need_lc_F77=no
13966 case "$host_os" in
13967 rhapsody* | darwin1.[012])
13968 allow_undefined_flag_F77='-undefined suppress'
13969 ;;
13970 *) # Darwin 1.3 on
13971 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
13972 allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13973 else
13974 case ${MACOSX_DEPLOYMENT_TARGET} in
13975 10.[012])
13976 allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13977 ;;
13978 10.*)
13979 allow_undefined_flag_F77='-undefined dynamic_lookup'
13980 ;;
13981 esac
13982 fi
13983 ;;
13984 esac
13985 lt_int_apple_cc_single_mod=no
13986 output_verbose_link_cmd='echo'
13987 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
13988 lt_int_apple_cc_single_mod=yes
13989 fi
13990 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13991 archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13992 else
13993 archive_cmds_F77='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13994 fi
13995 module_cmds_F77='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13996 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
13997 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13998 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13999 else
14000 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14001 fi
14002 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}'
14003 hardcode_direct_F77=no
14004 hardcode_automatic_F77=yes
14005 hardcode_shlibpath_var_F77=unsupported
14006 whole_archive_flag_spec_F77='-all_load $convenience'
14007 link_all_deplibs_F77=yes
14008 else
14009 ld_shlibs_F77=no
14010 fi
14011 ;;
14012
14013 dgux*)
14014 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14015 hardcode_libdir_flag_spec_F77='-L$libdir'
14016 hardcode_shlibpath_var_F77=no
14017 ;;
14018
14019 freebsd1*)
14020 ld_shlibs_F77=no
14021 ;;
14022
14023 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14024 # support. Future versions do this automatically, but an explicit c++rt0.o
14025 # does not break anything, and helps significantly (at the cost of a little
14026 # extra space).
14027 freebsd2.2*)
14028 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14029 hardcode_libdir_flag_spec_F77='-R$libdir'
14030 hardcode_direct_F77=yes
14031 hardcode_shlibpath_var_F77=no
14032 ;;
14033
14034 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14035 freebsd2*)
14036 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14037 hardcode_direct_F77=yes
14038 hardcode_minus_L_F77=yes
14039 hardcode_shlibpath_var_F77=no
14040 ;;
14041
14042 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14043 freebsd* | kfreebsd*-gnu)
14044 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14045 hardcode_libdir_flag_spec_F77='-R$libdir'
14046 hardcode_direct_F77=yes
14047 hardcode_shlibpath_var_F77=no
14048 ;;
14049
14050 hpux9*)
14051 if test "$GCC" = yes; then
14052 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'
14053 else
14054 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'
14055 fi
14056 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14057 hardcode_libdir_separator_F77=:
14058 hardcode_direct_F77=yes
14059
14060 # hardcode_minus_L: Not really in the search PATH,
14061 # but as the default location of the library.
14062 hardcode_minus_L_F77=yes
14063 export_dynamic_flag_spec_F77='${wl}-E'
14064 ;;
14065
14066 hpux10* | hpux11*)
14067 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14068 case "$host_cpu" in
14069 hppa*64*|ia64*)
14070 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14071 ;;
14072 *)
14073 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14074 ;;
14075 esac
14076 else
14077 case "$host_cpu" in
14078 hppa*64*|ia64*)
14079 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
14080 ;;
14081 *)
14082 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14083 ;;
14084 esac
14085 fi
14086 if test "$with_gnu_ld" = no; then
14087 case "$host_cpu" in
14088 hppa*64*)
14089 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14090 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14091 hardcode_libdir_separator_F77=:
14092 hardcode_direct_F77=no
14093 hardcode_shlibpath_var_F77=no
14094 ;;
14095 ia64*)
14096 hardcode_libdir_flag_spec_F77='-L$libdir'
14097 hardcode_direct_F77=no
14098 hardcode_shlibpath_var_F77=no
14099
14100 # hardcode_minus_L: Not really in the search PATH,
14101 # but as the default location of the library.
14102 hardcode_minus_L_F77=yes
14103 ;;
14104 *)
14105 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14106 hardcode_libdir_separator_F77=:
14107 hardcode_direct_F77=yes
14108 export_dynamic_flag_spec_F77='${wl}-E'
14109
14110 # hardcode_minus_L: Not really in the search PATH,
14111 # but as the default location of the library.
14112 hardcode_minus_L_F77=yes
14113 ;;
14114 esac
14115 fi
14116 ;;
14117
14118 irix5* | irix6* | nonstopux*)
14119 if test "$GCC" = yes; then
14120 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'
14121 else
14122 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'
14123 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14124 fi
14125 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14126 hardcode_libdir_separator_F77=:
14127 link_all_deplibs_F77=yes
14128 ;;
14129
14130 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
14131 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14132 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14133 else
14134 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14135 fi
14136 hardcode_libdir_flag_spec_F77='-R$libdir'
14137 hardcode_direct_F77=yes
14138 hardcode_shlibpath_var_F77=no
14139 ;;
14140
14141 newsos6)
14142 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14143 hardcode_direct_F77=yes
14144 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14145 hardcode_libdir_separator_F77=:
14146 hardcode_shlibpath_var_F77=no
14147 ;;
14148
14149 openbsd*)
14150 hardcode_direct_F77=yes
14151 hardcode_shlibpath_var_F77=no
14152 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14153 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14154 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14155 export_dynamic_flag_spec_F77='${wl}-E'
14156 else
14157 case $host_os in
14158 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14159 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14160 hardcode_libdir_flag_spec_F77='-R$libdir'
14161 ;;
14162 *)
14163 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14164 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14165 ;;
14166 esac
14167 fi
14168 ;;
14169
14170 os2*)
14171 hardcode_libdir_flag_spec_F77='-L$libdir'
14172 hardcode_minus_L_F77=yes
14173 allow_undefined_flag_F77=unsupported
14174 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'
14175 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14176 ;;
14177
14178 osf3*)
14179 if test "$GCC" = yes; then
14180 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14181 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'
14182 else
14183 allow_undefined_flag_F77=' -expect_unresolved \*'
14184 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'
14185 fi
14186 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14187 hardcode_libdir_separator_F77=:
14188 ;;
14189
14190 osf4* | osf5*) # as osf3* with the addition of -msym flag
14191 if test "$GCC" = yes; then
14192 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14193 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'
14194 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14195 else
14196 allow_undefined_flag_F77=' -expect_unresolved \*'
14197 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'
14198 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~
14199 $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'
14200
14201 # Both c and cxx compiler support -rpath directly
14202 hardcode_libdir_flag_spec_F77='-rpath $libdir'
14203 fi
14204 hardcode_libdir_separator_F77=:
14205 ;;
14206
14207 sco3.2v5*)
14208 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14209 hardcode_shlibpath_var_F77=no
14210 export_dynamic_flag_spec_F77='${wl}-Bexport'
14211 runpath_var=LD_RUN_PATH
14212 hardcode_runpath_var=yes
14213 ;;
14214
14215 solaris*)
14216 no_undefined_flag_F77=' -z text'
14217 if test "$GCC" = yes; then
14218 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14219 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14220 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14221 else
14222 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14223 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14224 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14225 fi
14226 hardcode_libdir_flag_spec_F77='-R$libdir'
14227 hardcode_shlibpath_var_F77=no
14228 case $host_os in
14229 solaris2.[0-5] | solaris2.[0-5].*) ;;
14230 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
14231 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14232 esac
14233 link_all_deplibs_F77=yes
14234 ;;
14235
14236 sunos4*)
14237 if test "x$host_vendor" = xsequent; then
14238 # Use $CC to link under sequent, because it throws in some extra .o
14239 # files that make .init and .fini sections work.
14240 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14241 else
14242 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14243 fi
14244 hardcode_libdir_flag_spec_F77='-L$libdir'
14245 hardcode_direct_F77=yes
14246 hardcode_minus_L_F77=yes
14247 hardcode_shlibpath_var_F77=no
14248 ;;
14249
14250 sysv4)
14251 case $host_vendor in
14252 sni)
14253 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14254 hardcode_direct_F77=yes # is this really true???
14255 ;;
14256 siemens)
14257 ## LD is ld it makes a PLAMLIB
14258 ## CC just makes a GrossModule.
14259 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14260 reload_cmds_F77='$CC -r -o $output$reload_objs'
14261 hardcode_direct_F77=no
14262 ;;
14263 motorola)
14264 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14265 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14266 ;;
14267 esac
14268 runpath_var='LD_RUN_PATH'
14269 hardcode_shlibpath_var_F77=no
14270 ;;
14271
14272 sysv4.3*)
14273 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14274 hardcode_shlibpath_var_F77=no
14275 export_dynamic_flag_spec_F77='-Bexport'
14276 ;;
14277
14278 sysv4*MP*)
14279 if test -d /usr/nec; then
14280 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14281 hardcode_shlibpath_var_F77=no
14282 runpath_var=LD_RUN_PATH
14283 hardcode_runpath_var=yes
14284 ld_shlibs_F77=yes
14285 fi
14286 ;;
14287
14288 sysv4.2uw2*)
14289 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14290 hardcode_direct_F77=yes
14291 hardcode_minus_L_F77=no
14292 hardcode_shlibpath_var_F77=no
14293 hardcode_runpath_var=yes
14294 runpath_var=LD_RUN_PATH
14295 ;;
14296
14297 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
14298 no_undefined_flag_F77='${wl}-z ${wl}text'
14299 if test "$GCC" = yes; then
14300 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14301 else
14302 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14303 fi
14304 runpath_var='LD_RUN_PATH'
14305 hardcode_shlibpath_var_F77=no
14306 ;;
14307
14308 sysv5*)
14309 no_undefined_flag_F77=' -z text'
14310 # $CC -shared without GNU ld will not create a library from C++
14311 # object files and a static libstdc++, better avoid it by now
14312 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14313 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14314 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14315 hardcode_libdir_flag_spec_F77=
14316 hardcode_shlibpath_var_F77=no
14317 runpath_var='LD_RUN_PATH'
14318 ;;
14319
14320 uts4*)
14321 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14322 hardcode_libdir_flag_spec_F77='-L$libdir'
14323 hardcode_shlibpath_var_F77=no
14324 ;;
14325
14326 *)
14327 ld_shlibs_F77=no
14328 ;;
14329 esac
14330 fi
14331
14332echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14333echo "${ECHO_T}$ld_shlibs_F77" >&6
14334test "$ld_shlibs_F77" = no && can_build_shared=no
14335
14336variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14337if test "$GCC" = yes; then
14338 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14339fi
14340
14341#
14342# Do we need to explicitly link libc?
14343#
14344case "x$archive_cmds_need_lc_F77" in
14345x|xyes)
14346 # Assume -lc should be added
14347 archive_cmds_need_lc_F77=yes
14348
14349 if test "$enable_shared" = yes && test "$GCC" = yes; then
14350 case $archive_cmds_F77 in
14351 *'~'*)
14352 # FIXME: we may have to deal with multi-command sequences.
14353 ;;
14354 '$CC '*)
14355 # Test whether the compiler implicitly links with -lc since on some
14356 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14357 # to ld, don't add -lc before -lgcc.
14358 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14359echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14360 $rm conftest*
14361 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14362
14363 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14364 (eval $ac_compile) 2>&5
14365 ac_status=$?
14366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14367 (exit $ac_status); } 2>conftest.err; then
14368 soname=conftest
14369 lib=conftest
14370 libobjs=conftest.$ac_objext
14371 deplibs=
14372 wl=$lt_prog_compiler_wl_F77
14373 compiler_flags=-v
14374 linker_flags=-v
14375 verstring=
14376 output_objdir=.
14377 libname=conftest
14378 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14379 allow_undefined_flag_F77=
14380 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14381 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14382 ac_status=$?
14383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14384 (exit $ac_status); }
14385 then
14386 archive_cmds_need_lc_F77=no
14387 else
14388 archive_cmds_need_lc_F77=yes
14389 fi
14390 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14391 else
14392 cat conftest.err 1>&5
14393 fi
14394 $rm conftest*
14395 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14396echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14397 ;;
14398 esac
14399 fi
14400 ;;
14401esac
14402
14403echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14404echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14405library_names_spec=
14406libname_spec='lib$name'
14407soname_spec=
14408shrext_cmds=".so"
14409postinstall_cmds=
14410postuninstall_cmds=
14411finish_cmds=
14412finish_eval=
14413shlibpath_var=
14414shlibpath_overrides_runpath=unknown
14415version_type=none
14416dynamic_linker="$host_os ld.so"
14417sys_lib_dlsearch_path_spec="/lib /usr/lib"
14418if test "$GCC" = yes; then
14419 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14420 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14421 # if the path contains ";" then we assume it to be the separator
14422 # otherwise default to the standard path separator (i.e. ":") - it is
14423 # assumed that no part of a normal pathname contains ";" but that should
14424 # okay in the real world where ";" in dirpaths is itself problematic.
14425 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14426 else
14427 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14428 fi
14429else
14430 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14431fi
14432need_lib_prefix=unknown
14433hardcode_into_libs=no
14434
14435# when you set need_version to no, make sure it does not cause -set_version
14436# flags to be left without arguments
14437need_version=unknown
14438
14439case $host_os in
14440aix3*)
14441 version_type=linux
14442 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14443 shlibpath_var=LIBPATH
14444
14445 # AIX 3 has no versioning support, so we append a major version to the name.
14446 soname_spec='${libname}${release}${shared_ext}$major'
14447 ;;
14448
14449aix4* | aix5*)
14450 version_type=linux
14451 need_lib_prefix=no
14452 need_version=no
14453 hardcode_into_libs=yes
14454 if test "$host_cpu" = ia64; then
14455 # AIX 5 supports IA64
14456 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14457 shlibpath_var=LD_LIBRARY_PATH
14458 else
14459 # With GCC up to 2.95.x, collect2 would create an import file
14460 # for dependence libraries. The import file would start with
14461 # the line `#! .'. This would cause the generated library to
14462 # depend on `.', always an invalid library. This was fixed in
14463 # development snapshots of GCC prior to 3.0.
14464 case $host_os in
14465 aix4 | aix4.[01] | aix4.[01].*)
14466 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14467 echo ' yes '
14468 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14469 :
14470 else
14471 can_build_shared=no
14472 fi
14473 ;;
14474 esac
14475 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14476 # soname into executable. Probably we can add versioning support to
14477 # collect2, so additional links can be useful in future.
14478 if test "$aix_use_runtimelinking" = yes; then
14479 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14480 # instead of lib<name>.a to let people know that these are not
14481 # typical AIX shared libraries.
14482 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14483 else
14484 # We preserve .a as extension for shared libraries through AIX4.2
14485 # and later when we are not doing run time linking.
14486 library_names_spec='${libname}${release}.a $libname.a'
14487 soname_spec='${libname}${release}${shared_ext}$major'
14488 fi
14489 shlibpath_var=LIBPATH
14490 fi
14491 ;;
14492
14493amigaos*)
14494 library_names_spec='$libname.ixlibrary $libname.a'
14495 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14496 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'
14497 ;;
14498
14499beos*)
14500 library_names_spec='${libname}${shared_ext}'
14501 dynamic_linker="$host_os ld.so"
14502 shlibpath_var=LIBRARY_PATH
14503 ;;
14504
14505bsdi4*)
14506 version_type=linux
14507 need_version=no
14508 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14509 soname_spec='${libname}${release}${shared_ext}$major'
14510 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14511 shlibpath_var=LD_LIBRARY_PATH
14512 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14513 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14514 # the default ld.so.conf also contains /usr/contrib/lib and
14515 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14516 # libtool to hard-code these into programs
14517 ;;
14518
14519cygwin* | mingw* | pw32*)
14520 version_type=windows
14521 shrext_cmds=".dll"
14522 need_version=no
14523 need_lib_prefix=no
14524
14525 case $GCC,$host_os in
14526 yes,cygwin* | yes,mingw* | yes,pw32*)
14527 library_names_spec='$libname.dll.a'
14528 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14529 postinstall_cmds='base_file=`basename \${file}`~
14530 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14531 dldir=$destdir/`dirname \$dlpath`~
14532 test -d \$dldir || mkdir -p \$dldir~
14533 $install_prog $dir/$dlname \$dldir/$dlname'
14534 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14535 dlpath=$dir/\$dldll~
14536 $rm \$dlpath'
14537 shlibpath_overrides_runpath=yes
14538
14539 case $host_os in
14540 cygwin*)
14541 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14542 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14543 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14544 ;;
14545 mingw*)
14546 # MinGW DLLs use traditional 'lib' prefix
14547 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14548 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14549 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14550 # It is most probably a Windows format PATH printed by
14551 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14552 # path with ; separators, and with drive letters. We can handle the
14553 # drive letters (cygwin fileutils understands them), so leave them,
14554 # especially as we might pass files found there to a mingw objdump,
14555 # which wouldn't understand a cygwinified path. Ahh.
14556 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14557 else
14558 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14559 fi
14560 ;;
14561 pw32*)
14562 # pw32 DLLs use 'pw' prefix rather than 'lib'
14563 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
14564 ;;
14565 esac
14566 ;;
14567
14568 *)
14569 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14570 ;;
14571 esac
14572 dynamic_linker='Win32 ld.exe'
14573 # FIXME: first we should search . and the directory the executable is in
14574 shlibpath_var=PATH
14575 ;;
14576
14577darwin* | rhapsody*)
14578 dynamic_linker="$host_os dyld"
14579 version_type=darwin
14580 need_lib_prefix=no
14581 need_version=no
14582 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14583 soname_spec='${libname}${release}${major}$shared_ext'
14584 shlibpath_overrides_runpath=yes
14585 shlibpath_var=DYLD_LIBRARY_PATH
14586 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
14587 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14588 if test "$GCC" = yes; then
14589 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"`
14590 else
14591 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14592 fi
14593 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14594 ;;
14595
14596dgux*)
14597 version_type=linux
14598 need_lib_prefix=no
14599 need_version=no
14600 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14601 soname_spec='${libname}${release}${shared_ext}$major'
14602 shlibpath_var=LD_LIBRARY_PATH
14603 ;;
14604
14605freebsd1*)
14606 dynamic_linker=no
14607 ;;
14608
14609kfreebsd*-gnu)
14610 version_type=linux
14611 need_lib_prefix=no
14612 need_version=no
14613 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14614 soname_spec='${libname}${release}${shared_ext}$major'
14615 shlibpath_var=LD_LIBRARY_PATH
14616 shlibpath_overrides_runpath=no
14617 hardcode_into_libs=yes
14618 dynamic_linker='GNU ld.so'
14619 ;;
14620
14621freebsd*)
14622 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
14623 version_type=freebsd-$objformat
14624 case $version_type in
14625 freebsd-elf*)
14626 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14627 need_version=no
14628 need_lib_prefix=no
14629 ;;
14630 freebsd-*)
14631 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14632 need_version=yes
14633 ;;
14634 esac
14635 shlibpath_var=LD_LIBRARY_PATH
14636 case $host_os in
14637 freebsd2*)
14638 shlibpath_overrides_runpath=yes
14639 ;;
14640 freebsd3.01* | freebsdelf3.01*)
14641 shlibpath_overrides_runpath=yes
14642 hardcode_into_libs=yes
14643 ;;
14644 *) # from 3.2 on
14645 shlibpath_overrides_runpath=no
14646 hardcode_into_libs=yes
14647 ;;
14648 esac
14649 ;;
14650
14651gnu*)
14652 version_type=linux
14653 need_lib_prefix=no
14654 need_version=no
14655 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14656 soname_spec='${libname}${release}${shared_ext}$major'
14657 shlibpath_var=LD_LIBRARY_PATH
14658 hardcode_into_libs=yes
14659 ;;
14660
14661hpux9* | hpux10* | hpux11*)
14662 # Give a soname corresponding to the major version so that dld.sl refuses to
14663 # link against other versions.
14664 version_type=sunos
14665 need_lib_prefix=no
14666 need_version=no
14667 case "$host_cpu" in
14668 ia64*)
14669 shrext_cmds='.so'
14670 hardcode_into_libs=yes
14671 dynamic_linker="$host_os dld.so"
14672 shlibpath_var=LD_LIBRARY_PATH
14673 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14674 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14675 soname_spec='${libname}${release}${shared_ext}$major'
14676 if test "X$HPUX_IA64_MODE" = X32; then
14677 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14678 else
14679 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14680 fi
14681 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14682 ;;
14683 hppa*64*)
14684 shrext_cmds='.sl'
14685 hardcode_into_libs=yes
14686 dynamic_linker="$host_os dld.sl"
14687 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14688 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14689 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14690 soname_spec='${libname}${release}${shared_ext}$major'
14691 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14692 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14693 ;;
14694 *)
14695 shrext_cmds='.sl'
14696 dynamic_linker="$host_os dld.sl"
14697 shlibpath_var=SHLIB_PATH
14698 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14699 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14700 soname_spec='${libname}${release}${shared_ext}$major'
14701 ;;
14702 esac
14703 # HP-UX runs *really* slowly unless shared libraries are mode 555.
14704 postinstall_cmds='chmod 555 $lib'
14705 ;;
14706
14707irix5* | irix6* | nonstopux*)
14708 case $host_os in
14709 nonstopux*) version_type=nonstopux ;;
14710 *)
14711 if test "$lt_cv_prog_gnu_ld" = yes; then
14712 version_type=linux
14713 else
14714 version_type=irix
14715 fi ;;
14716 esac
14717 need_lib_prefix=no
14718 need_version=no
14719 soname_spec='${libname}${release}${shared_ext}$major'
14720 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14721 case $host_os in
14722 irix5* | nonstopux*)
14723 libsuff= shlibsuff=
14724 ;;
14725 *)
14726 case $LD in # libtool.m4 will add one of these switches to LD
14727 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14728 libsuff= shlibsuff= libmagic=32-bit;;
14729 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14730 libsuff=32 shlibsuff=N32 libmagic=N32;;
14731 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14732 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14733 *) libsuff= shlibsuff= libmagic=never-match;;
14734 esac
14735 ;;
14736 esac
14737 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14738 shlibpath_overrides_runpath=no
14739 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14740 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14741 hardcode_into_libs=yes
14742 ;;
14743
14744# No shared lib support for Linux oldld, aout, or coff.
14745linux*oldld* | linux*aout* | linux*coff*)
14746 dynamic_linker=no
14747 ;;
14748
14749# This must be Linux ELF.
14750linux*)
14751 version_type=linux
14752 need_lib_prefix=no
14753 need_version=no
14754 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14755 soname_spec='${libname}${release}${shared_ext}$major'
14756 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14757 shlibpath_var=LD_LIBRARY_PATH
14758 shlibpath_overrides_runpath=no
14759 # This implies no fast_install, which is unacceptable.
14760 # Some rework will be needed to allow for fast_install
14761 # before this can be enabled.
14762 hardcode_into_libs=yes
14763
14764 # Append ld.so.conf contents to the search path
14765 if test -f /etc/ld.so.conf; then
14766 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
14767 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14768 fi
14769
14770 # We used to test for /lib/ld.so.1 and disable shared libraries on
14771 # powerpc, because MkLinux only supported shared libraries with the
14772 # GNU dynamic linker. Since this was broken with cross compilers,
14773 # most powerpc-linux boxes support dynamic linking these days and
14774 # people can always --disable-shared, the test was removed, and we
14775 # assume the GNU/Linux dynamic linker is in use.
14776 dynamic_linker='GNU/Linux ld.so'
14777 ;;
14778
14779netbsdelf*-gnu)
14780 version_type=linux
14781 need_lib_prefix=no
14782 need_version=no
14783 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14784 soname_spec='${libname}${release}${shared_ext}$major'
14785 shlibpath_var=LD_LIBRARY_PATH
14786 shlibpath_overrides_runpath=no
14787 hardcode_into_libs=yes
14788 dynamic_linker='NetBSD ld.elf_so'
14789 ;;
14790
14791knetbsd*-gnu)
14792 version_type=linux
14793 need_lib_prefix=no
14794 need_version=no
14795 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14796 soname_spec='${libname}${release}${shared_ext}$major'
14797 shlibpath_var=LD_LIBRARY_PATH
14798 shlibpath_overrides_runpath=no
14799 hardcode_into_libs=yes
14800 dynamic_linker='GNU ld.so'
14801 ;;
14802
14803netbsd*)
14804 version_type=sunos
14805 need_lib_prefix=no
14806 need_version=no
14807 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14808 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14809 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14810 dynamic_linker='NetBSD (a.out) ld.so'
14811 else
14812 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14813 soname_spec='${libname}${release}${shared_ext}$major'
14814 dynamic_linker='NetBSD ld.elf_so'
14815 fi
14816 shlibpath_var=LD_LIBRARY_PATH
14817 shlibpath_overrides_runpath=yes
14818 hardcode_into_libs=yes
14819 ;;
14820
14821newsos6)
14822 version_type=linux
14823 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14824 shlibpath_var=LD_LIBRARY_PATH
14825 shlibpath_overrides_runpath=yes
14826 ;;
14827
14828nto-qnx*)
14829 version_type=linux
14830 need_lib_prefix=no
14831 need_version=no
14832 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14833 soname_spec='${libname}${release}${shared_ext}$major'
14834 shlibpath_var=LD_LIBRARY_PATH
14835 shlibpath_overrides_runpath=yes
14836 ;;
14837
14838openbsd*)
14839 version_type=sunos
14840 need_lib_prefix=no
14841 need_version=yes
14842 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14843 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14844 shlibpath_var=LD_LIBRARY_PATH
14845 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14846 case $host_os in
14847 openbsd2.[89] | openbsd2.[89].*)
14848 shlibpath_overrides_runpath=no
14849 ;;
14850 *)
14851 shlibpath_overrides_runpath=yes
14852 ;;
14853 esac
14854 else
14855 shlibpath_overrides_runpath=yes
14856 fi
14857 ;;
14858
14859os2*)
14860 libname_spec='$name'
14861 shrext_cmds=".dll"
14862 need_lib_prefix=no
14863 library_names_spec='$libname${shared_ext} $libname.a'
14864 dynamic_linker='OS/2 ld.exe'
14865 shlibpath_var=LIBPATH
14866 ;;
14867
14868osf3* | osf4* | osf5*)
14869 version_type=osf
14870 need_lib_prefix=no
14871 need_version=no
14872 soname_spec='${libname}${release}${shared_ext}$major'
14873 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14874 shlibpath_var=LD_LIBRARY_PATH
14875 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14876 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14877 ;;
14878
14879sco3.2v5*)
14880 version_type=osf
14881 soname_spec='${libname}${release}${shared_ext}$major'
14882 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14883 shlibpath_var=LD_LIBRARY_PATH
14884 ;;
14885
14886solaris*)
14887 version_type=linux
14888 need_lib_prefix=no
14889 need_version=no
14890 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14891 soname_spec='${libname}${release}${shared_ext}$major'
14892 shlibpath_var=LD_LIBRARY_PATH
14893 shlibpath_overrides_runpath=yes
14894 hardcode_into_libs=yes
14895 # ldd complains unless libraries are executable
14896 postinstall_cmds='chmod +x $lib'
14897 ;;
14898
14899sunos4*)
14900 version_type=sunos
14901 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14902 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14903 shlibpath_var=LD_LIBRARY_PATH
14904 shlibpath_overrides_runpath=yes
14905 if test "$with_gnu_ld" = yes; then
14906 need_lib_prefix=no
14907 fi
14908 need_version=yes
14909 ;;
14910
14911sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14912 version_type=linux
14913 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14914 soname_spec='${libname}${release}${shared_ext}$major'
14915 shlibpath_var=LD_LIBRARY_PATH
14916 case $host_vendor in
14917 sni)
14918 shlibpath_overrides_runpath=no
14919 need_lib_prefix=no
14920 export_dynamic_flag_spec='${wl}-Blargedynsym'
14921 runpath_var=LD_RUN_PATH
14922 ;;
14923 siemens)
14924 need_lib_prefix=no
14925 ;;
14926 motorola)
14927 need_lib_prefix=no
14928 need_version=no
14929 shlibpath_overrides_runpath=no
14930 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14931 ;;
14932 esac
14933 ;;
14934
14935sysv4*MP*)
14936 if test -d /usr/nec ;then
14937 version_type=linux
14938 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14939 soname_spec='$libname${shared_ext}.$major'
14940 shlibpath_var=LD_LIBRARY_PATH
14941 fi
14942 ;;
14943
14944uts4*)
14945 version_type=linux
14946 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14947 soname_spec='${libname}${release}${shared_ext}$major'
14948 shlibpath_var=LD_LIBRARY_PATH
14949 ;;
14950
14951*)
14952 dynamic_linker=no
14953 ;;
14954esac
14955echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14956echo "${ECHO_T}$dynamic_linker" >&6
14957test "$dynamic_linker" = no && can_build_shared=no
14958
14959echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14960echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
14961hardcode_action_F77=
14962if test -n "$hardcode_libdir_flag_spec_F77" || \
14963 test -n "$runpath_var F77" || \
14964 test "X$hardcode_automatic_F77"="Xyes" ; then
14965
14966 # We can hardcode non-existant directories.
14967 if test "$hardcode_direct_F77" != no &&
14968 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14969 # have to relink, otherwise we might link with an installed library
14970 # when we should be linking with a yet-to-be-installed one
14971 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
14972 test "$hardcode_minus_L_F77" != no; then
14973 # Linking always hardcodes the temporary library directory.
14974 hardcode_action_F77=relink
14975 else
14976 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14977 hardcode_action_F77=immediate
14978 fi
14979else
14980 # We cannot hardcode anything, or else we can only hardcode existing
14981 # directories.
14982 hardcode_action_F77=unsupported
14983fi
14984echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
14985echo "${ECHO_T}$hardcode_action_F77" >&6
14986
14987if test "$hardcode_action_F77" = relink; then
14988 # Fast installation is not supported
14989 enable_fast_install=no
14990elif test "$shlibpath_overrides_runpath" = yes ||
14991 test "$enable_shared" = no; then
14992 # Fast installation is not necessary
14993 enable_fast_install=needless
14994fi
14995
14996striplib=
14997old_striplib=
14998echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
14999echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
15000if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
15001 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15002 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15003 echo "$as_me:$LINENO: result: yes" >&5
15004echo "${ECHO_T}yes" >&6
15005else
15006# FIXME - insert some real tests, host_os isn't really good enough
15007 case $host_os in
15008 darwin*)
15009 if test -n "$STRIP" ; then
15010 striplib="$STRIP -x"
15011 echo "$as_me:$LINENO: result: yes" >&5
15012echo "${ECHO_T}yes" >&6
15013 else
15014 echo "$as_me:$LINENO: result: no" >&5
15015echo "${ECHO_T}no" >&6
15016fi
15017 ;;
15018 *)
15019 echo "$as_me:$LINENO: result: no" >&5
15020echo "${ECHO_T}no" >&6
15021 ;;
15022 esac
15023fi
15024
15025
15026
15027# The else clause should only fire when bootstrapping the
15028# libtool distribution, otherwise you forgot to ship ltmain.sh
15029# with your package, and you will get complaints that there are
15030# no rules to generate ltmain.sh.
15031if test -f "$ltmain"; then
15032 # See if we are running on zsh, and set the options which allow our commands through
15033 # without removal of \ escapes.
15034 if test -n "${ZSH_VERSION+set}" ; then
15035 setopt NO_GLOB_SUBST
15036 fi
15037 # Now quote all the things that may contain metacharacters while being
15038 # careful not to overquote the AC_SUBSTed values. We take copies of the
15039 # variables and quote the copies for generation of the libtool script.
15040 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
15041 SED SHELL STRIP \
15042 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15043 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15044 deplibs_check_method reload_flag reload_cmds need_locks \
15045 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15046 lt_cv_sys_global_symbol_to_c_name_address \
15047 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15048 old_postinstall_cmds old_postuninstall_cmds \
15049 compiler_F77 \
15050 CC_F77 \
15051 LD_F77 \
15052 lt_prog_compiler_wl_F77 \
15053 lt_prog_compiler_pic_F77 \
15054 lt_prog_compiler_static_F77 \
15055 lt_prog_compiler_no_builtin_flag_F77 \
15056 export_dynamic_flag_spec_F77 \
15057 thread_safe_flag_spec_F77 \
15058 whole_archive_flag_spec_F77 \
15059 enable_shared_with_static_runtimes_F77 \
15060 old_archive_cmds_F77 \
15061 old_archive_from_new_cmds_F77 \
15062 predep_objects_F77 \
15063 postdep_objects_F77 \
15064 predeps_F77 \
15065 postdeps_F77 \
15066 compiler_lib_search_path_F77 \
15067 archive_cmds_F77 \
15068 archive_expsym_cmds_F77 \
15069 postinstall_cmds_F77 \
15070 postuninstall_cmds_F77 \
15071 old_archive_from_expsyms_cmds_F77 \
15072 allow_undefined_flag_F77 \
15073 no_undefined_flag_F77 \
15074 export_symbols_cmds_F77 \
15075 hardcode_libdir_flag_spec_F77 \
15076 hardcode_libdir_flag_spec_ld_F77 \
15077 hardcode_libdir_separator_F77 \
15078 hardcode_automatic_F77 \
15079 module_cmds_F77 \
15080 module_expsym_cmds_F77 \
15081 lt_cv_prog_compiler_c_o_F77 \
15082 exclude_expsyms_F77 \
15083 include_expsyms_F77; do
15084
15085 case $var in
15086 old_archive_cmds_F77 | \
15087 old_archive_from_new_cmds_F77 | \
15088 archive_cmds_F77 | \
15089 archive_expsym_cmds_F77 | \
15090 module_cmds_F77 | \
15091 module_expsym_cmds_F77 | \
15092 old_archive_from_expsyms_cmds_F77 | \
15093 export_symbols_cmds_F77 | \
15094 extract_expsyms_cmds | reload_cmds | finish_cmds | \
15095 postinstall_cmds | postuninstall_cmds | \
15096 old_postinstall_cmds | old_postuninstall_cmds | \
15097 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15098 # Double-quote double-evaled strings.
15099 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15100 ;;
15101 *)
15102 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15103 ;;
15104 esac
15105 done
15106
15107 case $lt_echo in
15108 *'\$0 --fallback-echo"')
15109 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15110 ;;
15111 esac
15112
15113cfgfile="$ofile"
15114
15115 cat <<__EOF__ >> "$cfgfile"
15116# ### BEGIN LIBTOOL TAG CONFIG: $tagname
15117
15118# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15119
15120# Shell to use when invoking shell scripts.
15121SHELL=$lt_SHELL
15122
15123# Whether or not to build shared libraries.
15124build_libtool_libs=$enable_shared
15125
15126# Whether or not to build static libraries.
15127build_old_libs=$enable_static
15128
15129# Whether or not to add -lc for building shared libraries.
15130build_libtool_need_lc=$archive_cmds_need_lc_F77
15131
15132# Whether or not to disallow shared libs when runtime libs are static
15133allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15134
15135# Whether or not to optimize for fast installation.
15136fast_install=$enable_fast_install
15137
15138# The host system.
15139host_alias=$host_alias
15140host=$host
15141
15142# An echo program that does not interpret backslashes.
15143echo=$lt_echo
15144
15145# The archiver.
15146AR=$lt_AR
15147AR_FLAGS=$lt_AR_FLAGS
15148
15149# A C compiler.
15150LTCC=$lt_LTCC
15151
15152# A language-specific compiler.
15153CC=$lt_compiler_F77
15154
15155# Is the compiler the GNU C compiler?
15156with_gcc=$GCC_F77
15157
15158# An ERE matcher.
15159EGREP=$lt_EGREP
15160
15161# The linker used to build libraries.
15162LD=$lt_LD_F77
15163
15164# Whether we need hard or soft links.
15165LN_S=$lt_LN_S
15166
15167# A BSD-compatible nm program.
15168NM=$lt_NM
15169
15170# A symbol stripping program
15171STRIP=$lt_STRIP
15172
15173# Used to examine libraries when file_magic_cmd begins "file"
15174MAGIC_CMD=$MAGIC_CMD
15175
15176# Used on cygwin: DLL creation program.
15177DLLTOOL="$DLLTOOL"
15178
15179# Used on cygwin: object dumper.
15180OBJDUMP="$OBJDUMP"
15181
15182# Used on cygwin: assembler.
15183AS="$AS"
15184
15185# The name of the directory that contains temporary libtool files.
15186objdir=$objdir
15187
15188# How to create reloadable object files.
15189reload_flag=$lt_reload_flag
15190reload_cmds=$lt_reload_cmds
15191
15192# How to pass a linker flag through the compiler.
15193wl=$lt_lt_prog_compiler_wl_F77
15194
15195# Object file suffix (normally "o").
15196objext="$ac_objext"
15197
15198# Old archive suffix (normally "a").
15199libext="$libext"
15200
15201# Shared library suffix (normally ".so").
15202shrext_cmds='$shrext_cmds'
15203
15204# Executable file suffix (normally "").
15205exeext="$exeext"
15206
15207# Additional compiler flags for building library objects.
15208pic_flag=$lt_lt_prog_compiler_pic_F77
15209pic_mode=$pic_mode
15210
15211# What is the maximum length of a command?
15212max_cmd_len=$lt_cv_sys_max_cmd_len
15213
15214# Does compiler simultaneously support -c and -o options?
15215compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15216
15217# Must we lock files when doing compilation ?
15218need_locks=$lt_need_locks
15219
15220# Do we need the lib prefix for modules?
15221need_lib_prefix=$need_lib_prefix
15222
15223# Do we need a version for libraries?
15224need_version=$need_version
15225
15226# Whether dlopen is supported.
15227dlopen_support=$enable_dlopen
15228
15229# Whether dlopen of programs is supported.
15230dlopen_self=$enable_dlopen_self
15231
15232# Whether dlopen of statically linked programs is supported.
15233dlopen_self_static=$enable_dlopen_self_static
15234
15235# Compiler flag to prevent dynamic linking.
15236link_static_flag=$lt_lt_prog_compiler_static_F77
15237
15238# Compiler flag to turn off builtin functions.
15239no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15240
15241# Compiler flag to allow reflexive dlopens.
15242export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15243
15244# Compiler flag to generate shared objects directly from archives.
15245whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15246
15247# Compiler flag to generate thread-safe objects.
15248thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15249
15250# Library versioning type.
15251version_type=$version_type
15252
15253# Format of library name prefix.
15254libname_spec=$lt_libname_spec
15255
15256# List of archive names. First name is the real one, the rest are links.
15257# The last name is the one that the linker finds with -lNAME.
15258library_names_spec=$lt_library_names_spec
15259
15260# The coded name of the library, if different from the real name.
15261soname_spec=$lt_soname_spec
15262
15263# Commands used to build and install an old-style archive.
15264RANLIB=$lt_RANLIB
15265old_archive_cmds=$lt_old_archive_cmds_F77
15266old_postinstall_cmds=$lt_old_postinstall_cmds
15267old_postuninstall_cmds=$lt_old_postuninstall_cmds
15268
15269# Create an old-style archive from a shared archive.
15270old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15271
15272# Create a temporary old-style archive to link instead of a shared archive.
15273old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15274
15275# Commands used to build and install a shared archive.
15276archive_cmds=$lt_archive_cmds_F77
15277archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15278postinstall_cmds=$lt_postinstall_cmds
15279postuninstall_cmds=$lt_postuninstall_cmds
15280
15281# Commands used to build a loadable module (assumed same as above if empty)
15282module_cmds=$lt_module_cmds_F77
15283module_expsym_cmds=$lt_module_expsym_cmds_F77
15284
15285# Commands to strip libraries.
15286old_striplib=$lt_old_striplib
15287striplib=$lt_striplib
15288
15289# Dependencies to place before the objects being linked to create a
15290# shared library.
15291predep_objects=$lt_predep_objects_F77
15292
15293# Dependencies to place after the objects being linked to create a
15294# shared library.
15295postdep_objects=$lt_postdep_objects_F77
15296
15297# Dependencies to place before the objects being linked to create a
15298# shared library.
15299predeps=$lt_predeps_F77
15300
15301# Dependencies to place after the objects being linked to create a
15302# shared library.
15303postdeps=$lt_postdeps_F77
15304
15305# The library search path used internally by the compiler when linking
15306# a shared library.
15307compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15308
15309# Method to check whether dependent libraries are shared objects.
15310deplibs_check_method=$lt_deplibs_check_method
15311
15312# Command to use when deplibs_check_method == file_magic.
15313file_magic_cmd=$lt_file_magic_cmd
15314
15315# Flag that allows shared libraries with undefined symbols to be built.
15316allow_undefined_flag=$lt_allow_undefined_flag_F77
15317
15318# Flag that forces no undefined symbols.
15319no_undefined_flag=$lt_no_undefined_flag_F77
15320
15321# Commands used to finish a libtool library installation in a directory.
15322finish_cmds=$lt_finish_cmds
15323
15324# Same as above, but a single script fragment to be evaled but not shown.
15325finish_eval=$lt_finish_eval
15326
15327# Take the output of nm and produce a listing of raw symbols and C names.
15328global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15329
15330# Transform the output of nm in a proper C declaration
15331global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15332
15333# Transform the output of nm in a C name address pair
15334global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15335
15336# This is the shared library runtime path variable.
15337runpath_var=$runpath_var
15338
15339# This is the shared library path variable.
15340shlibpath_var=$shlibpath_var
15341
15342# Is shlibpath searched before the hard-coded library search path?
15343shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15344
15345# How to hardcode a shared library path into an executable.
15346hardcode_action=$hardcode_action_F77
15347
15348# Whether we should hardcode library paths into libraries.
15349hardcode_into_libs=$hardcode_into_libs
15350
15351# Flag to hardcode \$libdir into a binary during linking.
15352# This must work even if \$libdir does not exist.
15353hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15354
15355# If ld is used when linking, flag to hardcode \$libdir into
15356# a binary during linking. This must work even if \$libdir does
15357# not exist.
15358hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15359
15360# Whether we need a single -rpath flag with a separated argument.
15361hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15362
15363# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15364# resulting binary.
15365hardcode_direct=$hardcode_direct_F77
15366
15367# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15368# resulting binary.
15369hardcode_minus_L=$hardcode_minus_L_F77
15370
15371# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15372# the resulting binary.
15373hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15374
15375# Set to yes if building a shared library automatically hardcodes DIR into the library
15376# and all subsequent libraries and executables linked against it.
15377hardcode_automatic=$hardcode_automatic_F77
15378
15379# Variables whose values should be saved in libtool wrapper scripts and
15380# restored at relink time.
15381variables_saved_for_relink="$variables_saved_for_relink"
15382
15383# Whether libtool must link a program against all its dependency libraries.
15384link_all_deplibs=$link_all_deplibs_F77
15385
15386# Compile-time system search path for libraries
15387sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15388
15389# Run-time system search path for libraries
15390sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15391
15392# Fix the shell variable \$srcfile for the compiler.
15393fix_srcfile_path="$fix_srcfile_path_F77"
15394
15395# Set to yes if exported symbols are required.
15396always_export_symbols=$always_export_symbols_F77
15397
15398# The commands to list exported symbols.
15399export_symbols_cmds=$lt_export_symbols_cmds_F77
15400
15401# The commands to extract the exported symbol list from a shared archive.
15402extract_expsyms_cmds=$lt_extract_expsyms_cmds
15403
15404# Symbols that should not be listed in the preloaded symbols.
15405exclude_expsyms=$lt_exclude_expsyms_F77
15406
15407# Symbols that must always be exported.
15408include_expsyms=$lt_include_expsyms_F77
15409
15410# ### END LIBTOOL TAG CONFIG: $tagname
15411
15412__EOF__
15413
15414
15415else
15416 # If there is no Makefile yet, we rely on a make rule to execute
15417 # `config.status --recheck' to rerun these tests and create the
15418 # libtool script then.
15419 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15420 if test -f "$ltmain_in"; then
15421 test -f Makefile && make "$ltmain"
15422 fi
15423fi
15424
15425
15426ac_ext=c
15427ac_cpp='$CPP $CPPFLAGS'
15428ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15429ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15430ac_compiler_gnu=$ac_cv_c_compiler_gnu
15431
15432CC="$lt_save_CC"
15433
15434 else
15435 tagname=""
15436 fi
15437 ;;
15438
15439 GCJ)
15440 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15441
15442
15443
15444# Source file extension for Java test sources.
15445ac_ext=java
15446
15447# Object file extension for compiled Java test sources.
15448objext=o
15449objext_GCJ=$objext
15450
15451# Code to be used in simple compile tests
15452lt_simple_compile_test_code="class foo {}\n"
15453
15454# Code to be used in simple link tests
15455lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
15456
15457# ltmain only uses $CC for tagged configurations so make sure $CC is set.
15458
15459# If no C compiler was specified, use CC.
15460LTCC=${LTCC-"$CC"}
15461
15462# Allow CC to be a program name with arguments.
15463compiler=$CC
15464
15465
15466# Allow CC to be a program name with arguments.
15467lt_save_CC="$CC"
15468CC=${GCJ-"gcj"}
15469compiler=$CC
15470compiler_GCJ=$CC
15471
15472# GCJ did not exist at the time GCC didn't implicitly link libc in.
15473archive_cmds_need_lc_GCJ=no
15474
15475
15476lt_prog_compiler_no_builtin_flag_GCJ=
15477
15478if test "$GCC" = yes; then
15479 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15480
15481
15482echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15483echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15484if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15485 echo $ECHO_N "(cached) $ECHO_C" >&6
15486else
15487 lt_cv_prog_compiler_rtti_exceptions=no
15488 ac_outfile=conftest.$ac_objext
15489 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15490 lt_compiler_flag="-fno-rtti -fno-exceptions"
15491 # Insert the option either (1) after the last *FLAGS variable, or
15492 # (2) before a word containing "conftest.", or (3) at the end.
15493 # Note that $ac_compile itself does not contain backslashes and begins
15494 # with a dollar sign (not a hyphen), so the echo should work correctly.
15495 # The option is referenced via a variable to avoid confusing sed.
15496 lt_compile=`echo "$ac_compile" | $SED \
15497 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15498 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15499 -e 's:$: $lt_compiler_flag:'`
15500 (eval echo "\"\$as_me:15500: $lt_compile\"" >&5)
15501 (eval "$lt_compile" 2>conftest.err)
15502 ac_status=$?
15503 cat conftest.err >&5
15504 echo "$as_me:15504: \$? = $ac_status" >&5
15505 if (exit $ac_status) && test -s "$ac_outfile"; then
15506 # The compiler can only warn and ignore the option if not recognized
15507 # So say no if there are warnings
15508 if test ! -s conftest.err; then
15509 lt_cv_prog_compiler_rtti_exceptions=yes
15510 fi
15511 fi
15512 $rm conftest*
15513
15514fi
15515echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15516echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15517
15518if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15519 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15520else
15521 :
15522fi
15523
15524fi
15525
15526lt_prog_compiler_wl_GCJ=
15527lt_prog_compiler_pic_GCJ=
15528lt_prog_compiler_static_GCJ=
15529
15530echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15531echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15532
15533 if test "$GCC" = yes; then
15534 lt_prog_compiler_wl_GCJ='-Wl,'
15535 lt_prog_compiler_static_GCJ='-static'
15536
15537 case $host_os in
15538 aix*)
15539 # All AIX code is PIC.
15540 if test "$host_cpu" = ia64; then
15541 # AIX 5 now supports IA64 processor
15542 lt_prog_compiler_static_GCJ='-Bstatic'
15543 fi
15544 ;;
15545
15546 amigaos*)
15547 # FIXME: we need at least 68020 code to build shared libraries, but
15548 # adding the `-m68020' flag to GCC prevents building anything better,
15549 # like `-m68040'.
15550 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15551 ;;
15552
15553 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15554 # PIC is the default for these OSes.
15555 ;;
15556
15557 mingw* | pw32* | os2*)
15558 # This hack is so that the source file can tell whether it is being
15559 # built for inclusion in a dll (and should export symbols for example).
15560 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15561 ;;
15562
15563 darwin* | rhapsody*)
15564 # PIC is the default on this platform
15565 # Common symbols not allowed in MH_DYLIB files
15566 lt_prog_compiler_pic_GCJ='-fno-common'
15567 ;;
15568
15569 msdosdjgpp*)
15570 # Just because we use GCC doesn't mean we suddenly get shared libraries
15571 # on systems that don't support them.
15572 lt_prog_compiler_can_build_shared_GCJ=no
15573 enable_shared=no
15574 ;;
15575
15576 sysv4*MP*)
15577 if test -d /usr/nec; then
15578 lt_prog_compiler_pic_GCJ=-Kconform_pic
15579 fi
15580 ;;
15581
15582 hpux*)
15583 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15584 # not for PA HP-UX.
15585 case "$host_cpu" in
15586 hppa*64*|ia64*)
15587 # +Z the default
15588 ;;
15589 *)
15590 lt_prog_compiler_pic_GCJ='-fPIC'
15591 ;;
15592 esac
15593 ;;
15594
15595 *)
15596 lt_prog_compiler_pic_GCJ='-fPIC'
15597 ;;
15598 esac
15599 else
15600 # PORTME Check for flag to pass linker flags through the system compiler.
15601 case $host_os in
15602 aix*)
15603 lt_prog_compiler_wl_GCJ='-Wl,'
15604 if test "$host_cpu" = ia64; then
15605 # AIX 5 now supports IA64 processor
15606 lt_prog_compiler_static_GCJ='-Bstatic'
15607 else
15608 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15609 fi
15610 ;;
15611
15612 mingw* | pw32* | os2*)
15613 # This hack is so that the source file can tell whether it is being
15614 # built for inclusion in a dll (and should export symbols for example).
15615 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15616 ;;
15617
15618 hpux9* | hpux10* | hpux11*)
15619 lt_prog_compiler_wl_GCJ='-Wl,'
15620 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15621 # not for PA HP-UX.
15622 case "$host_cpu" in
15623 hppa*64*|ia64*)
15624 # +Z the default
15625 ;;
15626 *)
15627 lt_prog_compiler_pic_GCJ='+Z'
15628 ;;
15629 esac
15630 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15631 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15632 ;;
15633
15634 irix5* | irix6* | nonstopux*)
15635 lt_prog_compiler_wl_GCJ='-Wl,'
15636 # PIC (with -KPIC) is the default.
15637 lt_prog_compiler_static_GCJ='-non_shared'
15638 ;;
15639
15640 newsos6)
15641 lt_prog_compiler_pic_GCJ='-KPIC'
15642 lt_prog_compiler_static_GCJ='-Bstatic'
15643 ;;
15644
15645 linux*)
15646 case $CC in
15647 icc* | ecc*)
15648 lt_prog_compiler_wl_GCJ='-Wl,'
15649 lt_prog_compiler_pic_GCJ='-KPIC'
15650 lt_prog_compiler_static_GCJ='-static'
15651 ;;
15652 ccc*)
15653 lt_prog_compiler_wl_GCJ='-Wl,'
15654 # All Alpha code is PIC.
15655 lt_prog_compiler_static_GCJ='-non_shared'
15656 ;;
15657 esac
15658 ;;
15659
15660 osf3* | osf4* | osf5*)
15661 lt_prog_compiler_wl_GCJ='-Wl,'
15662 # All OSF/1 code is PIC.
15663 lt_prog_compiler_static_GCJ='-non_shared'
15664 ;;
15665
15666 sco3.2v5*)
15667 lt_prog_compiler_pic_GCJ='-Kpic'
15668 lt_prog_compiler_static_GCJ='-dn'
15669 ;;
15670
15671 solaris*)
15672 lt_prog_compiler_wl_GCJ='-Wl,'
15673 lt_prog_compiler_pic_GCJ='-KPIC'
15674 lt_prog_compiler_static_GCJ='-Bstatic'
15675 ;;
15676
15677 sunos4*)
15678 lt_prog_compiler_wl_GCJ='-Qoption ld '
15679 lt_prog_compiler_pic_GCJ='-PIC'
15680 lt_prog_compiler_static_GCJ='-Bstatic'
15681 ;;
15682
15683 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15684 lt_prog_compiler_wl_GCJ='-Wl,'
15685 lt_prog_compiler_pic_GCJ='-KPIC'
15686 lt_prog_compiler_static_GCJ='-Bstatic'
15687 ;;
15688
15689 sysv4*MP*)
15690 if test -d /usr/nec ;then
15691 lt_prog_compiler_pic_GCJ='-Kconform_pic'
15692 lt_prog_compiler_static_GCJ='-Bstatic'
15693 fi
15694 ;;
15695
15696 uts4*)
15697 lt_prog_compiler_pic_GCJ='-pic'
15698 lt_prog_compiler_static_GCJ='-Bstatic'
15699 ;;
15700
15701 *)
15702 lt_prog_compiler_can_build_shared_GCJ=no
15703 ;;
15704 esac
15705 fi
15706
15707echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15708echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
15709
15710#
15711# Check to make sure the PIC flag actually works.
15712#
15713if test -n "$lt_prog_compiler_pic_GCJ"; then
15714
15715echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15716echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
15717if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15718 echo $ECHO_N "(cached) $ECHO_C" >&6
15719else
15720 lt_prog_compiler_pic_works_GCJ=no
15721 ac_outfile=conftest.$ac_objext
15722 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15723 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15724 # Insert the option either (1) after the last *FLAGS variable, or
15725 # (2) before a word containing "conftest.", or (3) at the end.
15726 # Note that $ac_compile itself does not contain backslashes and begins
15727 # with a dollar sign (not a hyphen), so the echo should work correctly.
15728 # The option is referenced via a variable to avoid confusing sed.
15729 lt_compile=`echo "$ac_compile" | $SED \
15730 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15731 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15732 -e 's:$: $lt_compiler_flag:'`
15733 (eval echo "\"\$as_me:15733: $lt_compile\"" >&5)
15734 (eval "$lt_compile" 2>conftest.err)
15735 ac_status=$?
15736 cat conftest.err >&5
15737 echo "$as_me:15737: \$? = $ac_status" >&5
15738 if (exit $ac_status) && test -s "$ac_outfile"; then
15739 # The compiler can only warn and ignore the option if not recognized
15740 # So say no if there are warnings
15741 if test ! -s conftest.err; then
15742 lt_prog_compiler_pic_works_GCJ=yes
15743 fi
15744 fi
15745 $rm conftest*
15746
15747fi
15748echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15749echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
15750
15751if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15752 case $lt_prog_compiler_pic_GCJ in
15753 "" | " "*) ;;
15754 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15755 esac
15756else
15757 lt_prog_compiler_pic_GCJ=
15758 lt_prog_compiler_can_build_shared_GCJ=no
15759fi
15760
15761fi
15762case "$host_os" in
15763 # For platforms which do not support PIC, -DPIC is meaningless:
15764 *djgpp*)
15765 lt_prog_compiler_pic_GCJ=
15766 ;;
15767 *)
15768 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15769 ;;
15770esac
15771
15772echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15773echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15774if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
15775 echo $ECHO_N "(cached) $ECHO_C" >&6
15776else
15777 lt_cv_prog_compiler_c_o_GCJ=no
15778 $rm -r conftest 2>/dev/null
15779 mkdir conftest
15780 cd conftest
15781 mkdir out
15782 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15783
15784 lt_compiler_flag="-o out/conftest2.$ac_objext"
15785 # Insert the option either (1) after the last *FLAGS variable, or
15786 # (2) before a word containing "conftest.", or (3) at the end.
15787 # Note that $ac_compile itself does not contain backslashes and begins
15788 # with a dollar sign (not a hyphen), so the echo should work correctly.
15789 lt_compile=`echo "$ac_compile" | $SED \
15790 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15791 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15792 -e 's:$: $lt_compiler_flag:'`
15793 (eval echo "\"\$as_me:15793: $lt_compile\"" >&5)
15794 (eval "$lt_compile" 2>out/conftest.err)
15795 ac_status=$?
15796 cat out/conftest.err >&5
15797 echo "$as_me:15797: \$? = $ac_status" >&5
15798 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15799 then
15800 # The compiler can only warn and ignore the option if not recognized
15801 # So say no if there are warnings
15802 if test ! -s out/conftest.err; then
15803 lt_cv_prog_compiler_c_o_GCJ=yes
15804 fi
15805 fi
15806 chmod u+w .
15807 $rm conftest*
15808 # SGI C++ compiler will create directory out/ii_files/ for
15809 # template instantiation
15810 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15811 $rm out/* && rmdir out
15812 cd ..
15813 rmdir conftest
15814 $rm conftest*
15815
15816fi
15817echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15818echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
15819
15820
15821hard_links="nottested"
15822if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15823 # do not overwrite the value of need_locks provided by the user
15824 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15825echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15826 hard_links=yes
15827 $rm conftest*
15828 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15829 touch conftest.a
15830 ln conftest.a conftest.b 2>&5 || hard_links=no
15831 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15832 echo "$as_me:$LINENO: result: $hard_links" >&5
15833echo "${ECHO_T}$hard_links" >&6
15834 if test "$hard_links" = no; then
15835 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15836echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15837 need_locks=warn
15838 fi
15839else
15840 need_locks=no
15841fi
15842
15843echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15844echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15845
15846 runpath_var=
15847 allow_undefined_flag_GCJ=
15848 enable_shared_with_static_runtimes_GCJ=no
15849 archive_cmds_GCJ=
15850 archive_expsym_cmds_GCJ=
15851 old_archive_From_new_cmds_GCJ=
15852 old_archive_from_expsyms_cmds_GCJ=
15853 export_dynamic_flag_spec_GCJ=
15854 whole_archive_flag_spec_GCJ=
15855 thread_safe_flag_spec_GCJ=
15856 hardcode_libdir_flag_spec_GCJ=
15857 hardcode_libdir_flag_spec_ld_GCJ=
15858 hardcode_libdir_separator_GCJ=
15859 hardcode_direct_GCJ=no
15860 hardcode_minus_L_GCJ=no
15861 hardcode_shlibpath_var_GCJ=unsupported
15862 link_all_deplibs_GCJ=unknown
15863 hardcode_automatic_GCJ=no
15864 module_cmds_GCJ=
15865 module_expsym_cmds_GCJ=
15866 always_export_symbols_GCJ=no
15867 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15868 # include_expsyms should be a list of space-separated symbols to be *always*
15869 # included in the symbol list
15870 include_expsyms_GCJ=
15871 # exclude_expsyms can be an extended regexp of symbols to exclude
15872 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15873 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15874 # as well as any symbol that contains `d'.
15875 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
15876 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15877 # platforms (ab)use it in PIC code, but their linkers get confused if
15878 # the symbol is explicitly referenced. Since portable code cannot
15879 # rely on this symbol name, it's probably fine to never include it in
15880 # preloaded symbol tables.
15881 extract_expsyms_cmds=
15882
15883 case $host_os in
15884 cygwin* | mingw* | pw32*)
15885 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15886 # When not using gcc, we currently assume that we are using
15887 # Microsoft Visual C++.
15888 if test "$GCC" != yes; then
15889 with_gnu_ld=no
15890 fi
15891 ;;
15892 openbsd*)
15893 with_gnu_ld=no
15894 ;;
15895 esac
15896
15897 ld_shlibs_GCJ=yes
15898 if test "$with_gnu_ld" = yes; then
15899 # If archive_cmds runs LD, not CC, wlarc should be empty
15900 wlarc='${wl}'
15901
15902 # See if GNU ld supports shared libraries.
15903 case $host_os in
15904 aix3* | aix4* | aix5*)
15905 # On AIX/PPC, the GNU linker is very broken
15906 if test "$host_cpu" != ia64; then
15907 ld_shlibs_GCJ=no
15908 cat <<EOF 1>&2
15909
15910*** Warning: the GNU linker, at least up to release 2.9.1, is reported
15911*** to be unable to reliably create shared libraries on AIX.
15912*** Therefore, libtool is disabling shared libraries support. If you
15913*** really care for shared libraries, you may want to modify your PATH
15914*** so that a non-GNU linker is found, and then restart.
15915
15916EOF
15917 fi
15918 ;;
15919
15920 amigaos*)
15921 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)'
15922 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15923 hardcode_minus_L_GCJ=yes
15924
15925 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15926 # that the semantics of dynamic libraries on AmigaOS, at least up
15927 # to version 4, is to share data among multiple programs linked
15928 # with the same dynamic library. Since this doesn't match the
15929 # behavior of shared libraries on other platforms, we can't use
15930 # them.
15931 ld_shlibs_GCJ=no
15932 ;;
15933
15934 beos*)
15935 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15936 allow_undefined_flag_GCJ=unsupported
15937 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15938 # support --undefined. This deserves some investigation. FIXME
15939 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15940 else
15941 ld_shlibs_GCJ=no
15942 fi
15943 ;;
15944
15945 cygwin* | mingw* | pw32*)
15946 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
15947 # as there is no search path for DLLs.
15948 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15949 allow_undefined_flag_GCJ=unsupported
15950 always_export_symbols_GCJ=no
15951 enable_shared_with_static_runtimes_GCJ=yes
15952 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15953
15954 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15955 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15956 # If the export-symbols file already is a .def file (1st line
15957 # is EXPORTS), use it as is; otherwise, prepend...
15958 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15959 cp $export_symbols $output_objdir/$soname.def;
15960 else
15961 echo EXPORTS > $output_objdir/$soname.def;
15962 cat $export_symbols >> $output_objdir/$soname.def;
15963 fi~
15964 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15965 else
15966 ld_shlibs=no
15967 fi
15968 ;;
15969
15970 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
15971 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15972 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15973 wlarc=
15974 else
15975 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15976 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15977 fi
15978 ;;
15979
15980 solaris* | sysv5*)
15981 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15982 ld_shlibs_GCJ=no
15983 cat <<EOF 1>&2
15984
15985*** Warning: The releases 2.8.* of the GNU linker cannot reliably
15986*** create shared libraries on Solaris systems. Therefore, libtool
15987*** is disabling shared libraries support. We urge you to upgrade GNU
15988*** binutils to release 2.9.1 or newer. Another option is to modify
15989*** your PATH or compiler configuration so that the native linker is
15990*** used, and then restart.
15991
15992EOF
15993 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15994 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15995 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15996 else
15997 ld_shlibs_GCJ=no
15998 fi
15999 ;;
16000
16001 sunos4*)
16002 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16003 wlarc=
16004 hardcode_direct_GCJ=yes
16005 hardcode_shlibpath_var_GCJ=no
16006 ;;
16007
16008 linux*)
16009 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16010 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16011 archive_cmds_GCJ="$tmp_archive_cmds"
16012 supports_anon_versioning=no
16013 case `$LD -v 2>/dev/null` in
16014 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16015 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16016 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16017 *\ 2.11.*) ;; # other 2.11 versions
16018 *) supports_anon_versioning=yes ;;
16019 esac
16020 if test $supports_anon_versioning = yes; then
16021 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16022cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16023$echo "local: *; };" >> $output_objdir/$libname.ver~
16024 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16025 else
16026 archive_expsym_cmds_GCJ="$tmp_archive_cmds"
16027 fi
16028 link_all_deplibs_GCJ=no
16029 else
16030 ld_shlibs_GCJ=no
16031 fi
16032 ;;
16033
16034 *)
16035 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16036 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16037 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16038 else
16039 ld_shlibs_GCJ=no
16040 fi
16041 ;;
16042 esac
16043
16044 if test "$ld_shlibs_GCJ" = yes; then
16045 runpath_var=LD_RUN_PATH
16046 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16047 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16048 # ancient GNU ld didn't support --whole-archive et. al.
16049 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16050 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16051 else
16052 whole_archive_flag_spec_GCJ=
16053 fi
16054 fi
16055 else
16056 # PORTME fill in a description of your system's linker (not GNU ld)
16057 case $host_os in
16058 aix3*)
16059 allow_undefined_flag_GCJ=unsupported
16060 always_export_symbols_GCJ=yes
16061 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'
16062 # Note: this linker hardcodes the directories in LIBPATH if there
16063 # are no directories specified by -L.
16064 hardcode_minus_L_GCJ=yes
16065 if test "$GCC" = yes && test -z "$link_static_flag"; then
16066 # Neither direct hardcoding nor static linking is supported with a
16067 # broken collect2.
16068 hardcode_direct_GCJ=unsupported
16069 fi
16070 ;;
16071
16072 aix4* | aix5*)
16073 if test "$host_cpu" = ia64; then
16074 # On IA64, the linker does run time linking by default, so we don't
16075 # have to do anything special.
16076 aix_use_runtimelinking=no
16077 exp_sym_flag='-Bexport'
16078 no_entry_flag=""
16079 else
16080 # If we're using GNU nm, then we don't want the "-C" option.
16081 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16082 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16083 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'
16084 else
16085 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'
16086 fi
16087 aix_use_runtimelinking=no
16088
16089 # Test if we are trying to use run time linking or normal
16090 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16091 # need to do runtime linking.
16092 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16093 for ld_flag in $LDFLAGS; do
16094 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16095 aix_use_runtimelinking=yes
16096 break
16097 fi
16098 done
16099 esac
16100
16101 exp_sym_flag='-bexport'
16102 no_entry_flag='-bnoentry'
16103 fi
16104
16105 # When large executables or shared objects are built, AIX ld can
16106 # have problems creating the table of contents. If linking a library
16107 # or program results in "error TOC overflow" add -mminimal-toc to
16108 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16109 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16110
16111 archive_cmds_GCJ=''
16112 hardcode_direct_GCJ=yes
16113 hardcode_libdir_separator_GCJ=':'
16114 link_all_deplibs_GCJ=yes
16115
16116 if test "$GCC" = yes; then
16117 case $host_os in aix4.012|aix4.012.*)
16118 # We only want to do this on AIX 4.2 and lower, the check
16119 # below for broken collect2 doesn't work under 4.3+
16120 collect2name=`${CC} -print-prog-name=collect2`
16121 if test -f "$collect2name" && \
16122 strings "$collect2name" | grep resolve_lib_name >/dev/null
16123 then
16124 # We have reworked collect2
16125 hardcode_direct_GCJ=yes
16126 else
16127 # We have old collect2
16128 hardcode_direct_GCJ=unsupported
16129 # It fails to find uninstalled libraries when the uninstalled
16130 # path is not listed in the libpath. Setting hardcode_minus_L
16131 # to unsupported forces relinking
16132 hardcode_minus_L_GCJ=yes
16133 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16134 hardcode_libdir_separator_GCJ=
16135 fi
16136 esac
16137 shared_flag='-shared'
16138 else
16139 # not using gcc
16140 if test "$host_cpu" = ia64; then
16141 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16142 # chokes on -Wl,-G. The following line is correct:
16143 shared_flag='-G'
16144 else
16145 if test "$aix_use_runtimelinking" = yes; then
16146 shared_flag='${wl}-G'
16147 else
16148 shared_flag='${wl}-bM:SRE'
16149 fi
16150 fi
16151 fi
16152
16153 # It seems that -bexpall does not export symbols beginning with
16154 # underscore (_), so it is better to generate a list of symbols to export.
16155 always_export_symbols_GCJ=yes
16156 if test "$aix_use_runtimelinking" = yes; then
16157 # Warning - without using the other runtime loading flags (-brtl),
16158 # -berok will link without error, but may produce a broken library.
16159 allow_undefined_flag_GCJ='-berok'
16160 # Determine the default libpath from the value encoded in an empty executable.
16161 cat >conftest.$ac_ext <<_ACEOF
16162/* confdefs.h. */
16163_ACEOF
16164cat confdefs.h >>conftest.$ac_ext
16165cat >>conftest.$ac_ext <<_ACEOF
16166/* end confdefs.h. */
16167
16168int
16169main ()
16170{
16171
16172 ;
16173 return 0;
16174}
16175_ACEOF
16176rm -f conftest.$ac_objext conftest$ac_exeext
16177if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16178 (eval $ac_link) 2>conftest.er1
16179 ac_status=$?
16180 grep -v '^ *+' conftest.er1 >conftest.err
16181 rm -f conftest.er1
16182 cat conftest.err >&5
16183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16184 (exit $ac_status); } &&
16185 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16187 (eval $ac_try) 2>&5
16188 ac_status=$?
16189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16190 (exit $ac_status); }; } &&
16191 { ac_try='test -s conftest$ac_exeext'
16192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16193 (eval $ac_try) 2>&5
16194 ac_status=$?
16195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16196 (exit $ac_status); }; }; then
16197
16198aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16199}'`
16200# Check for a 64-bit object if we didn't find anything.
16201if 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; }
16202}'`; fi
16203else
16204 echo "$as_me: failed program was:" >&5
16205sed 's/^/| /' conftest.$ac_ext >&5
16206
16207fi
16208rm -f conftest.err conftest.$ac_objext \
16209 conftest$ac_exeext conftest.$ac_ext
16210if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16211
16212 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16213 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"
16214 else
16215 if test "$host_cpu" = ia64; then
16216 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16217 allow_undefined_flag_GCJ="-z nodefs"
16218 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"
16219 else
16220 # Determine the default libpath from the value encoded in an empty executable.
16221 cat >conftest.$ac_ext <<_ACEOF
16222/* confdefs.h. */
16223_ACEOF
16224cat confdefs.h >>conftest.$ac_ext
16225cat >>conftest.$ac_ext <<_ACEOF
16226/* end confdefs.h. */
16227
16228int
16229main ()
16230{
16231
16232 ;
16233 return 0;
16234}
16235_ACEOF
16236rm -f conftest.$ac_objext conftest$ac_exeext
16237if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16238 (eval $ac_link) 2>conftest.er1
16239 ac_status=$?
16240 grep -v '^ *+' conftest.er1 >conftest.err
16241 rm -f conftest.er1
16242 cat conftest.err >&5
16243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16244 (exit $ac_status); } &&
16245 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16247 (eval $ac_try) 2>&5
16248 ac_status=$?
16249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16250 (exit $ac_status); }; } &&
16251 { ac_try='test -s conftest$ac_exeext'
16252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16253 (eval $ac_try) 2>&5
16254 ac_status=$?
16255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16256 (exit $ac_status); }; }; then
16257
16258aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16259}'`
16260# Check for a 64-bit object if we didn't find anything.
16261if 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; }
16262}'`; fi
16263else
16264 echo "$as_me: failed program was:" >&5
16265sed 's/^/| /' conftest.$ac_ext >&5
16266
16267fi
16268rm -f conftest.err conftest.$ac_objext \
16269 conftest$ac_exeext conftest.$ac_ext
16270if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16271
16272 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16273 # Warning - without using the other run time loading flags,
16274 # -berok will link without error, but may produce a broken library.
16275 no_undefined_flag_GCJ=' ${wl}-bernotok'
16276 allow_undefined_flag_GCJ=' ${wl}-berok'
16277 # -bexpall does not export symbols beginning with underscore (_)
16278 always_export_symbols_GCJ=yes
16279 # Exported symbols can be pulled into shared objects from archives
16280 whole_archive_flag_spec_GCJ=' '
16281 archive_cmds_need_lc_GCJ=yes
16282 # This is similar to how AIX traditionally builds it's shared libraries.
16283 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'
16284 fi
16285 fi
16286 ;;
16287
16288 amigaos*)
16289 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)'
16290 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16291 hardcode_minus_L_GCJ=yes
16292 # see comment about different semantics on the GNU ld section
16293 ld_shlibs_GCJ=no
16294 ;;
16295
16296 bsdi4*)
16297 export_dynamic_flag_spec_GCJ=-rdynamic
16298 ;;
16299
16300 cygwin* | mingw* | pw32*)
16301 # When not using gcc, we currently assume that we are using
16302 # Microsoft Visual C++.
16303 # hardcode_libdir_flag_spec is actually meaningless, as there is
16304 # no search path for DLLs.
16305 hardcode_libdir_flag_spec_GCJ=' '
16306 allow_undefined_flag_GCJ=unsupported
16307 # Tell ltmain to make .lib files, not .a files.
16308 libext=lib
16309 # Tell ltmain to make .dll files, not .so files.
16310 shrext_cmds=".dll"
16311 # FIXME: Setting linknames here is a bad hack.
16312 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16313 # The linker will automatically build a .lib file if we build a DLL.
16314 old_archive_From_new_cmds_GCJ='true'
16315 # FIXME: Should let the user specify the lib program.
16316 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16317 fix_srcfile_path='`cygpath -w "$srcfile"`'
16318 enable_shared_with_static_runtimes_GCJ=yes
16319 ;;
16320
16321 darwin* | rhapsody*)
16322 if test "$GXX" = yes ; then
16323 archive_cmds_need_lc_GCJ=no
16324 case "$host_os" in
16325 rhapsody* | darwin1.[012])
16326 allow_undefined_flag_GCJ='-undefined suppress'
16327 ;;
16328 *) # Darwin 1.3 on
16329 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16330 allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
16331 else
16332 case ${MACOSX_DEPLOYMENT_TARGET} in
16333 10.[012])
16334 allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
16335 ;;
16336 10.*)
16337 allow_undefined_flag_GCJ='-undefined dynamic_lookup'
16338 ;;
16339 esac
16340 fi
16341 ;;
16342 esac
16343 lt_int_apple_cc_single_mod=no
16344 output_verbose_link_cmd='echo'
16345 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
16346 lt_int_apple_cc_single_mod=yes
16347 fi
16348 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16349 archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16350 else
16351 archive_cmds_GCJ='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16352 fi
16353 module_cmds_GCJ='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16354 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16355 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16356 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16357 else
16358 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16359 fi
16360 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}'
16361 hardcode_direct_GCJ=no
16362 hardcode_automatic_GCJ=yes
16363 hardcode_shlibpath_var_GCJ=unsupported
16364 whole_archive_flag_spec_GCJ='-all_load $convenience'
16365 link_all_deplibs_GCJ=yes
16366 else
16367 ld_shlibs_GCJ=no
16368 fi
16369 ;;
16370
16371 dgux*)
16372 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16373 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16374 hardcode_shlibpath_var_GCJ=no
16375 ;;
16376
16377 freebsd1*)
16378 ld_shlibs_GCJ=no
16379 ;;
16380
16381 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16382 # support. Future versions do this automatically, but an explicit c++rt0.o
16383 # does not break anything, and helps significantly (at the cost of a little
16384 # extra space).
16385 freebsd2.2*)
16386 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16387 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16388 hardcode_direct_GCJ=yes
16389 hardcode_shlibpath_var_GCJ=no
16390 ;;
16391
16392 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16393 freebsd2*)
16394 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16395 hardcode_direct_GCJ=yes
16396 hardcode_minus_L_GCJ=yes
16397 hardcode_shlibpath_var_GCJ=no
16398 ;;
16399
16400 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16401 freebsd* | kfreebsd*-gnu)
16402 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16403 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16404 hardcode_direct_GCJ=yes
16405 hardcode_shlibpath_var_GCJ=no
16406 ;;
16407
16408 hpux9*)
16409 if test "$GCC" = yes; then
16410 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'
16411 else
16412 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'
16413 fi
16414 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16415 hardcode_libdir_separator_GCJ=:
16416 hardcode_direct_GCJ=yes
16417
16418 # hardcode_minus_L: Not really in the search PATH,
16419 # but as the default location of the library.
16420 hardcode_minus_L_GCJ=yes
16421 export_dynamic_flag_spec_GCJ='${wl}-E'
16422 ;;
16423
16424 hpux10* | hpux11*)
16425 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16426 case "$host_cpu" in
16427 hppa*64*|ia64*)
16428 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16429 ;;
16430 *)
16431 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16432 ;;
16433 esac
16434 else
16435 case "$host_cpu" in
16436 hppa*64*|ia64*)
16437 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
16438 ;;
16439 *)
16440 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16441 ;;
16442 esac
16443 fi
16444 if test "$with_gnu_ld" = no; then
16445 case "$host_cpu" in
16446 hppa*64*)
16447 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16448 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16449 hardcode_libdir_separator_GCJ=:
16450 hardcode_direct_GCJ=no
16451 hardcode_shlibpath_var_GCJ=no
16452 ;;
16453 ia64*)
16454 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16455 hardcode_direct_GCJ=no
16456 hardcode_shlibpath_var_GCJ=no
16457
16458 # hardcode_minus_L: Not really in the search PATH,
16459 # but as the default location of the library.
16460 hardcode_minus_L_GCJ=yes
16461 ;;
16462 *)
16463 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16464 hardcode_libdir_separator_GCJ=:
16465 hardcode_direct_GCJ=yes
16466 export_dynamic_flag_spec_GCJ='${wl}-E'
16467
16468 # hardcode_minus_L: Not really in the search PATH,
16469 # but as the default location of the library.
16470 hardcode_minus_L_GCJ=yes
16471 ;;
16472 esac
16473 fi
16474 ;;
16475
16476 irix5* | irix6* | nonstopux*)
16477 if test "$GCC" = yes; then
16478 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'
16479 else
16480 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'
16481 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16482 fi
16483 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16484 hardcode_libdir_separator_GCJ=:
16485 link_all_deplibs_GCJ=yes
16486 ;;
16487
16488 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
16489 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16490 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16491 else
16492 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16493 fi
16494 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16495 hardcode_direct_GCJ=yes
16496 hardcode_shlibpath_var_GCJ=no
16497 ;;
16498
16499 newsos6)
16500 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16501 hardcode_direct_GCJ=yes
16502 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16503 hardcode_libdir_separator_GCJ=:
16504 hardcode_shlibpath_var_GCJ=no
16505 ;;
16506
16507 openbsd*)
16508 hardcode_direct_GCJ=yes
16509 hardcode_shlibpath_var_GCJ=no
16510 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16511 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16512 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16513 export_dynamic_flag_spec_GCJ='${wl}-E'
16514 else
16515 case $host_os in
16516 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16517 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16518 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16519 ;;
16520 *)
16521 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16522 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16523 ;;
16524 esac
16525 fi
16526 ;;
16527
16528 os2*)
16529 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16530 hardcode_minus_L_GCJ=yes
16531 allow_undefined_flag_GCJ=unsupported
16532 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'
16533 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16534 ;;
16535
16536 osf3*)
16537 if test "$GCC" = yes; then
16538 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16539 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'
16540 else
16541 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16542 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'
16543 fi
16544 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16545 hardcode_libdir_separator_GCJ=:
16546 ;;
16547
16548 osf4* | osf5*) # as osf3* with the addition of -msym flag
16549 if test "$GCC" = yes; then
16550 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16551 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'
16552 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16553 else
16554 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16555 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'
16556 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~
16557 $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'
16558
16559 # Both c and cxx compiler support -rpath directly
16560 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16561 fi
16562 hardcode_libdir_separator_GCJ=:
16563 ;;
16564
16565 sco3.2v5*)
16566 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16567 hardcode_shlibpath_var_GCJ=no
16568 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16569 runpath_var=LD_RUN_PATH
16570 hardcode_runpath_var=yes
16571 ;;
16572
16573 solaris*)
16574 no_undefined_flag_GCJ=' -z text'
16575 if test "$GCC" = yes; then
16576 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16577 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16578 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16579 else
16580 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16581 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16582 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16583 fi
16584 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16585 hardcode_shlibpath_var_GCJ=no
16586 case $host_os in
16587 solaris2.[0-5] | solaris2.[0-5].*) ;;
16588 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
16589 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
16590 esac
16591 link_all_deplibs_GCJ=yes
16592 ;;
16593
16594 sunos4*)
16595 if test "x$host_vendor" = xsequent; then
16596 # Use $CC to link under sequent, because it throws in some extra .o
16597 # files that make .init and .fini sections work.
16598 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16599 else
16600 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16601 fi
16602 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16603 hardcode_direct_GCJ=yes
16604 hardcode_minus_L_GCJ=yes
16605 hardcode_shlibpath_var_GCJ=no
16606 ;;
16607
16608 sysv4)
16609 case $host_vendor in
16610 sni)
16611 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16612 hardcode_direct_GCJ=yes # is this really true???
16613 ;;
16614 siemens)
16615 ## LD is ld it makes a PLAMLIB
16616 ## CC just makes a GrossModule.
16617 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16618 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
16619 hardcode_direct_GCJ=no
16620 ;;
16621 motorola)
16622 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16623 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
16624 ;;
16625 esac
16626 runpath_var='LD_RUN_PATH'
16627 hardcode_shlibpath_var_GCJ=no
16628 ;;
16629
16630 sysv4.3*)
16631 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16632 hardcode_shlibpath_var_GCJ=no
16633 export_dynamic_flag_spec_GCJ='-Bexport'
16634 ;;
16635
16636 sysv4*MP*)
16637 if test -d /usr/nec; then
16638 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16639 hardcode_shlibpath_var_GCJ=no
16640 runpath_var=LD_RUN_PATH
16641 hardcode_runpath_var=yes
16642 ld_shlibs_GCJ=yes
16643 fi
16644 ;;
16645
16646 sysv4.2uw2*)
16647 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16648 hardcode_direct_GCJ=yes
16649 hardcode_minus_L_GCJ=no
16650 hardcode_shlibpath_var_GCJ=no
16651 hardcode_runpath_var=yes
16652 runpath_var=LD_RUN_PATH
16653 ;;
16654
16655 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
16656 no_undefined_flag_GCJ='${wl}-z ${wl}text'
16657 if test "$GCC" = yes; then
16658 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16659 else
16660 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16661 fi
16662 runpath_var='LD_RUN_PATH'
16663 hardcode_shlibpath_var_GCJ=no
16664 ;;
16665
16666 sysv5*)
16667 no_undefined_flag_GCJ=' -z text'
16668 # $CC -shared without GNU ld will not create a library from C++
16669 # object files and a static libstdc++, better avoid it by now
16670 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16671 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16672 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16673 hardcode_libdir_flag_spec_GCJ=
16674 hardcode_shlibpath_var_GCJ=no
16675 runpath_var='LD_RUN_PATH'
16676 ;;
16677
16678 uts4*)
16679 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16680 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16681 hardcode_shlibpath_var_GCJ=no
16682 ;;
16683
16684 *)
16685 ld_shlibs_GCJ=no
16686 ;;
16687 esac
16688 fi
16689
16690echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
16691echo "${ECHO_T}$ld_shlibs_GCJ" >&6
16692test "$ld_shlibs_GCJ" = no && can_build_shared=no
16693
16694variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16695if test "$GCC" = yes; then
16696 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16697fi
16698
16699#
16700# Do we need to explicitly link libc?
16701#
16702case "x$archive_cmds_need_lc_GCJ" in
16703x|xyes)
16704 # Assume -lc should be added
16705 archive_cmds_need_lc_GCJ=yes
16706
16707 if test "$enable_shared" = yes && test "$GCC" = yes; then
16708 case $archive_cmds_GCJ in
16709 *'~'*)
16710 # FIXME: we may have to deal with multi-command sequences.
16711 ;;
16712 '$CC '*)
16713 # Test whether the compiler implicitly links with -lc since on some
16714 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16715 # to ld, don't add -lc before -lgcc.
16716 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16717echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16718 $rm conftest*
16719 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16720
16721 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16722 (eval $ac_compile) 2>&5
16723 ac_status=$?
16724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16725 (exit $ac_status); } 2>conftest.err; then
16726 soname=conftest
16727 lib=conftest
16728 libobjs=conftest.$ac_objext
16729 deplibs=
16730 wl=$lt_prog_compiler_wl_GCJ
16731 compiler_flags=-v
16732 linker_flags=-v
16733 verstring=
16734 output_objdir=.
16735 libname=conftest
16736 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
16737 allow_undefined_flag_GCJ=
16738 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16739 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16740 ac_status=$?
16741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16742 (exit $ac_status); }
16743 then
16744 archive_cmds_need_lc_GCJ=no
16745 else
16746 archive_cmds_need_lc_GCJ=yes
16747 fi
16748 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
16749 else
16750 cat conftest.err 1>&5
16751 fi
16752 $rm conftest*
16753 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
16754echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
16755 ;;
16756 esac
16757 fi
16758 ;;
16759esac
16760
16761echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16762echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16763library_names_spec=
16764libname_spec='lib$name'
16765soname_spec=
16766shrext_cmds=".so"
16767postinstall_cmds=
16768postuninstall_cmds=
16769finish_cmds=
16770finish_eval=
16771shlibpath_var=
16772shlibpath_overrides_runpath=unknown
16773version_type=none
16774dynamic_linker="$host_os ld.so"
16775sys_lib_dlsearch_path_spec="/lib /usr/lib"
16776if test "$GCC" = yes; then
16777 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16778 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16779 # if the path contains ";" then we assume it to be the separator
16780 # otherwise default to the standard path separator (i.e. ":") - it is
16781 # assumed that no part of a normal pathname contains ";" but that should
16782 # okay in the real world where ";" in dirpaths is itself problematic.
16783 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16784 else
16785 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16786 fi
16787else
16788 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16789fi
16790need_lib_prefix=unknown
16791hardcode_into_libs=no
16792
16793# when you set need_version to no, make sure it does not cause -set_version
16794# flags to be left without arguments
16795need_version=unknown
16796
16797case $host_os in
16798aix3*)
16799 version_type=linux
16800 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16801 shlibpath_var=LIBPATH
16802
16803 # AIX 3 has no versioning support, so we append a major version to the name.
16804 soname_spec='${libname}${release}${shared_ext}$major'
16805 ;;
16806
16807aix4* | aix5*)
16808 version_type=linux
16809 need_lib_prefix=no
16810 need_version=no
16811 hardcode_into_libs=yes
16812 if test "$host_cpu" = ia64; then
16813 # AIX 5 supports IA64
16814 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16815 shlibpath_var=LD_LIBRARY_PATH
16816 else
16817 # With GCC up to 2.95.x, collect2 would create an import file
16818 # for dependence libraries. The import file would start with
16819 # the line `#! .'. This would cause the generated library to
16820 # depend on `.', always an invalid library. This was fixed in
16821 # development snapshots of GCC prior to 3.0.
16822 case $host_os in
16823 aix4 | aix4.[01] | aix4.[01].*)
16824 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16825 echo ' yes '
16826 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16827 :
16828 else
16829 can_build_shared=no
16830 fi
16831 ;;
16832 esac
16833 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16834 # soname into executable. Probably we can add versioning support to
16835 # collect2, so additional links can be useful in future.
16836 if test "$aix_use_runtimelinking" = yes; then
16837 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16838 # instead of lib<name>.a to let people know that these are not
16839 # typical AIX shared libraries.
16840 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16841 else
16842 # We preserve .a as extension for shared libraries through AIX4.2
16843 # and later when we are not doing run time linking.
16844 library_names_spec='${libname}${release}.a $libname.a'
16845 soname_spec='${libname}${release}${shared_ext}$major'
16846 fi
16847 shlibpath_var=LIBPATH
16848 fi
16849 ;;
16850
16851amigaos*)
16852 library_names_spec='$libname.ixlibrary $libname.a'
16853 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16854 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'
16855 ;;
16856
16857beos*)
16858 library_names_spec='${libname}${shared_ext}'
16859 dynamic_linker="$host_os ld.so"
16860 shlibpath_var=LIBRARY_PATH
16861 ;;
16862
16863bsdi4*)
16864 version_type=linux
16865 need_version=no
16866 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16867 soname_spec='${libname}${release}${shared_ext}$major'
16868 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16869 shlibpath_var=LD_LIBRARY_PATH
16870 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16871 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16872 # the default ld.so.conf also contains /usr/contrib/lib and
16873 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16874 # libtool to hard-code these into programs
16875 ;;
16876
16877cygwin* | mingw* | pw32*)
16878 version_type=windows
16879 shrext_cmds=".dll"
16880 need_version=no
16881 need_lib_prefix=no
16882
16883 case $GCC,$host_os in
16884 yes,cygwin* | yes,mingw* | yes,pw32*)
16885 library_names_spec='$libname.dll.a'
16886 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16887 postinstall_cmds='base_file=`basename \${file}`~
16888 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16889 dldir=$destdir/`dirname \$dlpath`~
16890 test -d \$dldir || mkdir -p \$dldir~
16891 $install_prog $dir/$dlname \$dldir/$dlname'
16892 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16893 dlpath=$dir/\$dldll~
16894 $rm \$dlpath'
16895 shlibpath_overrides_runpath=yes
16896
16897 case $host_os in
16898 cygwin*)
16899 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16900 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16901 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16902 ;;
16903 mingw*)
16904 # MinGW DLLs use traditional 'lib' prefix
16905 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16906 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16907 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16908 # It is most probably a Windows format PATH printed by
16909 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16910 # path with ; separators, and with drive letters. We can handle the
16911 # drive letters (cygwin fileutils understands them), so leave them,
16912 # especially as we might pass files found there to a mingw objdump,
16913 # which wouldn't understand a cygwinified path. Ahh.
16914 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16915 else
16916 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16917 fi
16918 ;;
16919 pw32*)
16920 # pw32 DLLs use 'pw' prefix rather than 'lib'
16921 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16922 ;;
16923 esac
16924 ;;
16925
16926 *)
16927 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16928 ;;
16929 esac
16930 dynamic_linker='Win32 ld.exe'
16931 # FIXME: first we should search . and the directory the executable is in
16932 shlibpath_var=PATH
16933 ;;
16934
16935darwin* | rhapsody*)
16936 dynamic_linker="$host_os dyld"
16937 version_type=darwin
16938 need_lib_prefix=no
16939 need_version=no
16940 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16941 soname_spec='${libname}${release}${major}$shared_ext'
16942 shlibpath_overrides_runpath=yes
16943 shlibpath_var=DYLD_LIBRARY_PATH
16944 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
16945 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16946 if test "$GCC" = yes; then
16947 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"`
16948 else
16949 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16950 fi
16951 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16952 ;;
16953
16954dgux*)
16955 version_type=linux
16956 need_lib_prefix=no
16957 need_version=no
16958 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16959 soname_spec='${libname}${release}${shared_ext}$major'
16960 shlibpath_var=LD_LIBRARY_PATH
16961 ;;
16962
16963freebsd1*)
16964 dynamic_linker=no
16965 ;;
16966
16967kfreebsd*-gnu)
16968 version_type=linux
16969 need_lib_prefix=no
16970 need_version=no
16971 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16972 soname_spec='${libname}${release}${shared_ext}$major'
16973 shlibpath_var=LD_LIBRARY_PATH
16974 shlibpath_overrides_runpath=no
16975 hardcode_into_libs=yes
16976 dynamic_linker='GNU ld.so'
16977 ;;
16978
16979freebsd*)
16980 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16981 version_type=freebsd-$objformat
16982 case $version_type in
16983 freebsd-elf*)
16984 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16985 need_version=no
16986 need_lib_prefix=no
16987 ;;
16988 freebsd-*)
16989 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16990 need_version=yes
16991 ;;
16992 esac
16993 shlibpath_var=LD_LIBRARY_PATH
16994 case $host_os in
16995 freebsd2*)
16996 shlibpath_overrides_runpath=yes
16997 ;;
16998 freebsd3.01* | freebsdelf3.01*)
16999 shlibpath_overrides_runpath=yes
17000 hardcode_into_libs=yes
17001 ;;
17002 *) # from 3.2 on
17003 shlibpath_overrides_runpath=no
17004 hardcode_into_libs=yes
17005 ;;
17006 esac
17007 ;;
17008
17009gnu*)
17010 version_type=linux
17011 need_lib_prefix=no
17012 need_version=no
17013 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17014 soname_spec='${libname}${release}${shared_ext}$major'
17015 shlibpath_var=LD_LIBRARY_PATH
17016 hardcode_into_libs=yes
17017 ;;
17018
17019hpux9* | hpux10* | hpux11*)
17020 # Give a soname corresponding to the major version so that dld.sl refuses to
17021 # link against other versions.
17022 version_type=sunos
17023 need_lib_prefix=no
17024 need_version=no
17025 case "$host_cpu" in
17026 ia64*)
17027 shrext_cmds='.so'
17028 hardcode_into_libs=yes
17029 dynamic_linker="$host_os dld.so"
17030 shlibpath_var=LD_LIBRARY_PATH
17031 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17032 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17033 soname_spec='${libname}${release}${shared_ext}$major'
17034 if test "X$HPUX_IA64_MODE" = X32; then
17035 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17036 else
17037 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17038 fi
17039 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17040 ;;
17041 hppa*64*)
17042 shrext_cmds='.sl'
17043 hardcode_into_libs=yes
17044 dynamic_linker="$host_os dld.sl"
17045 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17046 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17047 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17048 soname_spec='${libname}${release}${shared_ext}$major'
17049 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17050 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17051 ;;
17052 *)
17053 shrext_cmds='.sl'
17054 dynamic_linker="$host_os dld.sl"
17055 shlibpath_var=SHLIB_PATH
17056 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17057 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17058 soname_spec='${libname}${release}${shared_ext}$major'
17059 ;;
17060 esac
17061 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17062 postinstall_cmds='chmod 555 $lib'
17063 ;;
17064
17065irix5* | irix6* | nonstopux*)
17066 case $host_os in
17067 nonstopux*) version_type=nonstopux ;;
17068 *)
17069 if test "$lt_cv_prog_gnu_ld" = yes; then
17070 version_type=linux
17071 else
17072 version_type=irix
17073 fi ;;
17074 esac
17075 need_lib_prefix=no
17076 need_version=no
17077 soname_spec='${libname}${release}${shared_ext}$major'
17078 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17079 case $host_os in
17080 irix5* | nonstopux*)
17081 libsuff= shlibsuff=
17082 ;;
17083 *)
17084 case $LD in # libtool.m4 will add one of these switches to LD
17085 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17086 libsuff= shlibsuff= libmagic=32-bit;;
17087 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17088 libsuff=32 shlibsuff=N32 libmagic=N32;;
17089 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17090 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17091 *) libsuff= shlibsuff= libmagic=never-match;;
17092 esac
17093 ;;
17094 esac
17095 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17096 shlibpath_overrides_runpath=no
17097 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17098 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17099 hardcode_into_libs=yes
17100 ;;
17101
17102# No shared lib support for Linux oldld, aout, or coff.
17103linux*oldld* | linux*aout* | linux*coff*)
17104 dynamic_linker=no
17105 ;;
17106
17107# This must be Linux ELF.
17108linux*)
17109 version_type=linux
17110 need_lib_prefix=no
17111 need_version=no
17112 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17113 soname_spec='${libname}${release}${shared_ext}$major'
17114 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17115 shlibpath_var=LD_LIBRARY_PATH
17116 shlibpath_overrides_runpath=no
17117 # This implies no fast_install, which is unacceptable.
17118 # Some rework will be needed to allow for fast_install
17119 # before this can be enabled.
17120 hardcode_into_libs=yes
17121
17122 # Append ld.so.conf contents to the search path
17123 if test -f /etc/ld.so.conf; then
17124 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
17125 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17126 fi
17127
17128 # We used to test for /lib/ld.so.1 and disable shared libraries on
17129 # powerpc, because MkLinux only supported shared libraries with the
17130 # GNU dynamic linker. Since this was broken with cross compilers,
17131 # most powerpc-linux boxes support dynamic linking these days and
17132 # people can always --disable-shared, the test was removed, and we
17133 # assume the GNU/Linux dynamic linker is in use.
17134 dynamic_linker='GNU/Linux ld.so'
17135 ;;
17136
17137netbsdelf*-gnu)
17138 version_type=linux
17139 need_lib_prefix=no
17140 need_version=no
17141 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17142 soname_spec='${libname}${release}${shared_ext}$major'
17143 shlibpath_var=LD_LIBRARY_PATH
17144 shlibpath_overrides_runpath=no
17145 hardcode_into_libs=yes
17146 dynamic_linker='NetBSD ld.elf_so'
17147 ;;
17148
17149knetbsd*-gnu)
17150 version_type=linux
17151 need_lib_prefix=no
17152 need_version=no
17153 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17154 soname_spec='${libname}${release}${shared_ext}$major'
17155 shlibpath_var=LD_LIBRARY_PATH
17156 shlibpath_overrides_runpath=no
17157 hardcode_into_libs=yes
17158 dynamic_linker='GNU ld.so'
17159 ;;
17160
17161netbsd*)
17162 version_type=sunos
17163 need_lib_prefix=no
17164 need_version=no
17165 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17166 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17167 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17168 dynamic_linker='NetBSD (a.out) ld.so'
17169 else
17170 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17171 soname_spec='${libname}${release}${shared_ext}$major'
17172 dynamic_linker='NetBSD ld.elf_so'
17173 fi
17174 shlibpath_var=LD_LIBRARY_PATH
17175 shlibpath_overrides_runpath=yes
17176 hardcode_into_libs=yes
17177 ;;
17178
17179newsos6)
17180 version_type=linux
17181 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17182 shlibpath_var=LD_LIBRARY_PATH
17183 shlibpath_overrides_runpath=yes
17184 ;;
17185
17186nto-qnx*)
17187 version_type=linux
17188 need_lib_prefix=no
17189 need_version=no
17190 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17191 soname_spec='${libname}${release}${shared_ext}$major'
17192 shlibpath_var=LD_LIBRARY_PATH
17193 shlibpath_overrides_runpath=yes
17194 ;;
17195
17196openbsd*)
17197 version_type=sunos
17198 need_lib_prefix=no
17199 need_version=yes
17200 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17201 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17202 shlibpath_var=LD_LIBRARY_PATH
17203 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17204 case $host_os in
17205 openbsd2.[89] | openbsd2.[89].*)
17206 shlibpath_overrides_runpath=no
17207 ;;
17208 *)
17209 shlibpath_overrides_runpath=yes
17210 ;;
17211 esac
17212 else
17213 shlibpath_overrides_runpath=yes
17214 fi
17215 ;;
17216
17217os2*)
17218 libname_spec='$name'
17219 shrext_cmds=".dll"
17220 need_lib_prefix=no
17221 library_names_spec='$libname${shared_ext} $libname.a'
17222 dynamic_linker='OS/2 ld.exe'
17223 shlibpath_var=LIBPATH
17224 ;;
17225
17226osf3* | osf4* | osf5*)
17227 version_type=osf
17228 need_lib_prefix=no
17229 need_version=no
17230 soname_spec='${libname}${release}${shared_ext}$major'
17231 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17232 shlibpath_var=LD_LIBRARY_PATH
17233 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17234 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17235 ;;
17236
17237sco3.2v5*)
17238 version_type=osf
17239 soname_spec='${libname}${release}${shared_ext}$major'
17240 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17241 shlibpath_var=LD_LIBRARY_PATH
17242 ;;
17243
17244solaris*)
17245 version_type=linux
17246 need_lib_prefix=no
17247 need_version=no
17248 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17249 soname_spec='${libname}${release}${shared_ext}$major'
17250 shlibpath_var=LD_LIBRARY_PATH
17251 shlibpath_overrides_runpath=yes
17252 hardcode_into_libs=yes
17253 # ldd complains unless libraries are executable
17254 postinstall_cmds='chmod +x $lib'
17255 ;;
17256
17257sunos4*)
17258 version_type=sunos
17259 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17260 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17261 shlibpath_var=LD_LIBRARY_PATH
17262 shlibpath_overrides_runpath=yes
17263 if test "$with_gnu_ld" = yes; then
17264 need_lib_prefix=no
17265 fi
17266 need_version=yes
17267 ;;
17268
17269sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17270 version_type=linux
17271 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17272 soname_spec='${libname}${release}${shared_ext}$major'
17273 shlibpath_var=LD_LIBRARY_PATH
17274 case $host_vendor in
17275 sni)
17276 shlibpath_overrides_runpath=no
17277 need_lib_prefix=no
17278 export_dynamic_flag_spec='${wl}-Blargedynsym'
17279 runpath_var=LD_RUN_PATH
17280 ;;
17281 siemens)
17282 need_lib_prefix=no
17283 ;;
17284 motorola)
17285 need_lib_prefix=no
17286 need_version=no
17287 shlibpath_overrides_runpath=no
17288 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17289 ;;
17290 esac
17291 ;;
17292
17293sysv4*MP*)
17294 if test -d /usr/nec ;then
17295 version_type=linux
17296 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17297 soname_spec='$libname${shared_ext}.$major'
17298 shlibpath_var=LD_LIBRARY_PATH
17299 fi
17300 ;;
17301
17302uts4*)
17303 version_type=linux
17304 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17305 soname_spec='${libname}${release}${shared_ext}$major'
17306 shlibpath_var=LD_LIBRARY_PATH
17307 ;;
17308
17309*)
17310 dynamic_linker=no
17311 ;;
17312esac
17313echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17314echo "${ECHO_T}$dynamic_linker" >&6
17315test "$dynamic_linker" = no && can_build_shared=no
17316
17317echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17318echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17319hardcode_action_GCJ=
17320if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17321 test -n "$runpath_var GCJ" || \
17322 test "X$hardcode_automatic_GCJ"="Xyes" ; then
17323
17324 # We can hardcode non-existant directories.
17325 if test "$hardcode_direct_GCJ" != no &&
17326 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17327 # have to relink, otherwise we might link with an installed library
17328 # when we should be linking with a yet-to-be-installed one
17329 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17330 test "$hardcode_minus_L_GCJ" != no; then
17331 # Linking always hardcodes the temporary library directory.
17332 hardcode_action_GCJ=relink
17333 else
17334 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17335 hardcode_action_GCJ=immediate
17336 fi
17337else
17338 # We cannot hardcode anything, or else we can only hardcode existing
17339 # directories.
17340 hardcode_action_GCJ=unsupported
17341fi
17342echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17343echo "${ECHO_T}$hardcode_action_GCJ" >&6
17344
17345if test "$hardcode_action_GCJ" = relink; then
17346 # Fast installation is not supported
17347 enable_fast_install=no
17348elif test "$shlibpath_overrides_runpath" = yes ||
17349 test "$enable_shared" = no; then
17350 # Fast installation is not necessary
17351 enable_fast_install=needless
17352fi
17353
17354striplib=
17355old_striplib=
17356echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17357echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17358if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17359 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17360 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17361 echo "$as_me:$LINENO: result: yes" >&5
17362echo "${ECHO_T}yes" >&6
17363else
17364# FIXME - insert some real tests, host_os isn't really good enough
17365 case $host_os in
17366 darwin*)
17367 if test -n "$STRIP" ; then
17368 striplib="$STRIP -x"
17369 echo "$as_me:$LINENO: result: yes" >&5
17370echo "${ECHO_T}yes" >&6
17371 else
17372 echo "$as_me:$LINENO: result: no" >&5
17373echo "${ECHO_T}no" >&6
17374fi
17375 ;;
17376 *)
17377 echo "$as_me:$LINENO: result: no" >&5
17378echo "${ECHO_T}no" >&6
17379 ;;
17380 esac
17381fi
17382
17383if test "x$enable_dlopen" != xyes; then
17384 enable_dlopen=unknown
17385 enable_dlopen_self=unknown
17386 enable_dlopen_self_static=unknown
17387else
17388 lt_cv_dlopen=no
17389 lt_cv_dlopen_libs=
17390
17391 case $host_os in
17392 beos*)
17393 lt_cv_dlopen="load_add_on"
17394 lt_cv_dlopen_libs=
17395 lt_cv_dlopen_self=yes
17396 ;;
17397
17398 mingw* | pw32*)
17399 lt_cv_dlopen="LoadLibrary"
17400 lt_cv_dlopen_libs=
17401 ;;
17402
17403 cygwin*)
17404 lt_cv_dlopen="dlopen"
17405 lt_cv_dlopen_libs=
17406 ;;
17407
17408 darwin*)
17409 # if libdl is installed we need to link against it
17410 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17411echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17412if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17413 echo $ECHO_N "(cached) $ECHO_C" >&6
17414else
17415 ac_check_lib_save_LIBS=$LIBS
17416LIBS="-ldl $LIBS"
17417cat >conftest.$ac_ext <<_ACEOF
17418/* confdefs.h. */
17419_ACEOF
17420cat confdefs.h >>conftest.$ac_ext
17421cat >>conftest.$ac_ext <<_ACEOF
17422/* end confdefs.h. */
17423
17424/* Override any gcc2 internal prototype to avoid an error. */
17425#ifdef __cplusplus
17426extern "C"
17427#endif
17428/* We use char because int might match the return type of a gcc2
17429 builtin and then its argument prototype would still apply. */
17430char dlopen ();
17431int
17432main ()
17433{
17434dlopen ();
17435 ;
17436 return 0;
17437}
17438_ACEOF
17439rm -f conftest.$ac_objext conftest$ac_exeext
17440if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17441 (eval $ac_link) 2>conftest.er1
17442 ac_status=$?
17443 grep -v '^ *+' conftest.er1 >conftest.err
17444 rm -f conftest.er1
17445 cat conftest.err >&5
17446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17447 (exit $ac_status); } &&
17448 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17450 (eval $ac_try) 2>&5
17451 ac_status=$?
17452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17453 (exit $ac_status); }; } &&
17454 { ac_try='test -s conftest$ac_exeext'
17455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17456 (eval $ac_try) 2>&5
17457 ac_status=$?
17458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17459 (exit $ac_status); }; }; then
17460 ac_cv_lib_dl_dlopen=yes
17461else
17462 echo "$as_me: failed program was:" >&5
17463sed 's/^/| /' conftest.$ac_ext >&5
17464
17465ac_cv_lib_dl_dlopen=no
17466fi
17467rm -f conftest.err conftest.$ac_objext \
17468 conftest$ac_exeext conftest.$ac_ext
17469LIBS=$ac_check_lib_save_LIBS
17470fi
17471echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17472echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17473if test $ac_cv_lib_dl_dlopen = yes; then
17474 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17475else
17476
17477 lt_cv_dlopen="dyld"
17478 lt_cv_dlopen_libs=
17479 lt_cv_dlopen_self=yes
17480
17481fi
17482
17483 ;;
17484
17485 *)
17486 echo "$as_me:$LINENO: checking for shl_load" >&5
17487echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17488if test "${ac_cv_func_shl_load+set}" = set; then
17489 echo $ECHO_N "(cached) $ECHO_C" >&6
17490else
17491 cat >conftest.$ac_ext <<_ACEOF
17492/* confdefs.h. */
17493_ACEOF
17494cat confdefs.h >>conftest.$ac_ext
17495cat >>conftest.$ac_ext <<_ACEOF
17496/* end confdefs.h. */
17497/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17498 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17499#define shl_load innocuous_shl_load
17500
17501/* System header to define __stub macros and hopefully few prototypes,
17502 which can conflict with char shl_load (); below.
17503 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17504 <limits.h> exists even on freestanding compilers. */
17505
17506#ifdef __STDC__
17507# include <limits.h>
17508#else
17509# include <assert.h>
17510#endif
17511
17512#undef shl_load
17513
17514/* Override any gcc2 internal prototype to avoid an error. */
17515#ifdef __cplusplus
17516extern "C"
17517{
17518#endif
17519/* We use char because int might match the return type of a gcc2
17520 builtin and then its argument prototype would still apply. */
17521char shl_load ();
17522/* The GNU C library defines this for functions which it implements
17523 to always fail with ENOSYS. Some functions are actually named
17524 something starting with __ and the normal name is an alias. */
17525#if defined (__stub_shl_load) || defined (__stub___shl_load)
17526choke me
17527#else
17528char (*f) () = shl_load;
17529#endif
17530#ifdef __cplusplus
17531}
17532#endif
17533
17534int
17535main ()
17536{
17537return f != shl_load;
17538 ;
17539 return 0;
17540}
17541_ACEOF
17542rm -f conftest.$ac_objext conftest$ac_exeext
17543if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17544 (eval $ac_link) 2>conftest.er1
17545 ac_status=$?
17546 grep -v '^ *+' conftest.er1 >conftest.err
17547 rm -f conftest.er1
17548 cat conftest.err >&5
17549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17550 (exit $ac_status); } &&
17551 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17553 (eval $ac_try) 2>&5
17554 ac_status=$?
17555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17556 (exit $ac_status); }; } &&
17557 { ac_try='test -s conftest$ac_exeext'
17558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17559 (eval $ac_try) 2>&5
17560 ac_status=$?
17561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17562 (exit $ac_status); }; }; then
17563 ac_cv_func_shl_load=yes
17564else
17565 echo "$as_me: failed program was:" >&5
17566sed 's/^/| /' conftest.$ac_ext >&5
17567
17568ac_cv_func_shl_load=no
17569fi
17570rm -f conftest.err conftest.$ac_objext \
17571 conftest$ac_exeext conftest.$ac_ext
17572fi
17573echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17574echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17575if test $ac_cv_func_shl_load = yes; then
17576 lt_cv_dlopen="shl_load"
17577else
17578 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17579echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17580if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17581 echo $ECHO_N "(cached) $ECHO_C" >&6
17582else
17583 ac_check_lib_save_LIBS=$LIBS
17584LIBS="-ldld $LIBS"
17585cat >conftest.$ac_ext <<_ACEOF
17586/* confdefs.h. */
17587_ACEOF
17588cat confdefs.h >>conftest.$ac_ext
17589cat >>conftest.$ac_ext <<_ACEOF
17590/* end confdefs.h. */
17591
17592/* Override any gcc2 internal prototype to avoid an error. */
17593#ifdef __cplusplus
17594extern "C"
17595#endif
17596/* We use char because int might match the return type of a gcc2
17597 builtin and then its argument prototype would still apply. */
17598char shl_load ();
17599int
17600main ()
17601{
17602shl_load ();
17603 ;
17604 return 0;
17605}
17606_ACEOF
17607rm -f conftest.$ac_objext conftest$ac_exeext
17608if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17609 (eval $ac_link) 2>conftest.er1
17610 ac_status=$?
17611 grep -v '^ *+' conftest.er1 >conftest.err
17612 rm -f conftest.er1
17613 cat conftest.err >&5
17614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17615 (exit $ac_status); } &&
17616 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17618 (eval $ac_try) 2>&5
17619 ac_status=$?
17620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17621 (exit $ac_status); }; } &&
17622 { ac_try='test -s conftest$ac_exeext'
17623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17624 (eval $ac_try) 2>&5
17625 ac_status=$?
17626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17627 (exit $ac_status); }; }; then
17628 ac_cv_lib_dld_shl_load=yes
17629else
17630 echo "$as_me: failed program was:" >&5
17631sed 's/^/| /' conftest.$ac_ext >&5
17632
17633ac_cv_lib_dld_shl_load=no
17634fi
17635rm -f conftest.err conftest.$ac_objext \
17636 conftest$ac_exeext conftest.$ac_ext
17637LIBS=$ac_check_lib_save_LIBS
17638fi
17639echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17640echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17641if test $ac_cv_lib_dld_shl_load = yes; then
17642 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17643else
17644 echo "$as_me:$LINENO: checking for dlopen" >&5
17645echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17646if test "${ac_cv_func_dlopen+set}" = set; then
17647 echo $ECHO_N "(cached) $ECHO_C" >&6
17648else
17649 cat >conftest.$ac_ext <<_ACEOF
17650/* confdefs.h. */
17651_ACEOF
17652cat confdefs.h >>conftest.$ac_ext
17653cat >>conftest.$ac_ext <<_ACEOF
17654/* end confdefs.h. */
17655/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17656 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17657#define dlopen innocuous_dlopen
17658
17659/* System header to define __stub macros and hopefully few prototypes,
17660 which can conflict with char dlopen (); below.
17661 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17662 <limits.h> exists even on freestanding compilers. */
17663
17664#ifdef __STDC__
17665# include <limits.h>
17666#else
17667# include <assert.h>
17668#endif
17669
17670#undef dlopen
17671
17672/* Override any gcc2 internal prototype to avoid an error. */
17673#ifdef __cplusplus
17674extern "C"
17675{
17676#endif
17677/* We use char because int might match the return type of a gcc2
17678 builtin and then its argument prototype would still apply. */
17679char dlopen ();
17680/* The GNU C library defines this for functions which it implements
17681 to always fail with ENOSYS. Some functions are actually named
17682 something starting with __ and the normal name is an alias. */
17683#if defined (__stub_dlopen) || defined (__stub___dlopen)
17684choke me
17685#else
17686char (*f) () = dlopen;
17687#endif
17688#ifdef __cplusplus
17689}
17690#endif
17691
17692int
17693main ()
17694{
17695return f != dlopen;
17696 ;
17697 return 0;
17698}
17699_ACEOF
17700rm -f conftest.$ac_objext conftest$ac_exeext
17701if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17702 (eval $ac_link) 2>conftest.er1
17703 ac_status=$?
17704 grep -v '^ *+' conftest.er1 >conftest.err
17705 rm -f conftest.er1
17706 cat conftest.err >&5
17707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17708 (exit $ac_status); } &&
17709 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17711 (eval $ac_try) 2>&5
17712 ac_status=$?
17713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17714 (exit $ac_status); }; } &&
17715 { ac_try='test -s conftest$ac_exeext'
17716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17717 (eval $ac_try) 2>&5
17718 ac_status=$?
17719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17720 (exit $ac_status); }; }; then
17721 ac_cv_func_dlopen=yes
17722else
17723 echo "$as_me: failed program was:" >&5
17724sed 's/^/| /' conftest.$ac_ext >&5
17725
17726ac_cv_func_dlopen=no
17727fi
17728rm -f conftest.err conftest.$ac_objext \
17729 conftest$ac_exeext conftest.$ac_ext
17730fi
17731echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17732echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17733if test $ac_cv_func_dlopen = yes; then
17734 lt_cv_dlopen="dlopen"
17735else
17736 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17737echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17738if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17739 echo $ECHO_N "(cached) $ECHO_C" >&6
17740else
17741 ac_check_lib_save_LIBS=$LIBS
17742LIBS="-ldl $LIBS"
17743cat >conftest.$ac_ext <<_ACEOF
17744/* confdefs.h. */
17745_ACEOF
17746cat confdefs.h >>conftest.$ac_ext
17747cat >>conftest.$ac_ext <<_ACEOF
17748/* end confdefs.h. */
17749
17750/* Override any gcc2 internal prototype to avoid an error. */
17751#ifdef __cplusplus
17752extern "C"
17753#endif
17754/* We use char because int might match the return type of a gcc2
17755 builtin and then its argument prototype would still apply. */
17756char dlopen ();
17757int
17758main ()
17759{
17760dlopen ();
17761 ;
17762 return 0;
17763}
17764_ACEOF
17765rm -f conftest.$ac_objext conftest$ac_exeext
17766if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17767 (eval $ac_link) 2>conftest.er1
17768 ac_status=$?
17769 grep -v '^ *+' conftest.er1 >conftest.err
17770 rm -f conftest.er1
17771 cat conftest.err >&5
17772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17773 (exit $ac_status); } &&
17774 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17776 (eval $ac_try) 2>&5
17777 ac_status=$?
17778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17779 (exit $ac_status); }; } &&
17780 { ac_try='test -s conftest$ac_exeext'
17781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17782 (eval $ac_try) 2>&5
17783 ac_status=$?
17784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17785 (exit $ac_status); }; }; then
17786 ac_cv_lib_dl_dlopen=yes
17787else
17788 echo "$as_me: failed program was:" >&5
17789sed 's/^/| /' conftest.$ac_ext >&5
17790
17791ac_cv_lib_dl_dlopen=no
17792fi
17793rm -f conftest.err conftest.$ac_objext \
17794 conftest$ac_exeext conftest.$ac_ext
17795LIBS=$ac_check_lib_save_LIBS
17796fi
17797echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17798echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17799if test $ac_cv_lib_dl_dlopen = yes; then
17800 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17801else
17802 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17803echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17804if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17805 echo $ECHO_N "(cached) $ECHO_C" >&6
17806else
17807 ac_check_lib_save_LIBS=$LIBS
17808LIBS="-lsvld $LIBS"
17809cat >conftest.$ac_ext <<_ACEOF
17810/* confdefs.h. */
17811_ACEOF
17812cat confdefs.h >>conftest.$ac_ext
17813cat >>conftest.$ac_ext <<_ACEOF
17814/* end confdefs.h. */
17815
17816/* Override any gcc2 internal prototype to avoid an error. */
17817#ifdef __cplusplus
17818extern "C"
17819#endif
17820/* We use char because int might match the return type of a gcc2
17821 builtin and then its argument prototype would still apply. */
17822char dlopen ();
17823int
17824main ()
17825{
17826dlopen ();
17827 ;
17828 return 0;
17829}
17830_ACEOF
17831rm -f conftest.$ac_objext conftest$ac_exeext
17832if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17833 (eval $ac_link) 2>conftest.er1
17834 ac_status=$?
17835 grep -v '^ *+' conftest.er1 >conftest.err
17836 rm -f conftest.er1
17837 cat conftest.err >&5
17838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17839 (exit $ac_status); } &&
17840 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17842 (eval $ac_try) 2>&5
17843 ac_status=$?
17844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17845 (exit $ac_status); }; } &&
17846 { ac_try='test -s conftest$ac_exeext'
17847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17848 (eval $ac_try) 2>&5
17849 ac_status=$?
17850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17851 (exit $ac_status); }; }; then
17852 ac_cv_lib_svld_dlopen=yes
17853else
17854 echo "$as_me: failed program was:" >&5
17855sed 's/^/| /' conftest.$ac_ext >&5
17856
17857ac_cv_lib_svld_dlopen=no
17858fi
17859rm -f conftest.err conftest.$ac_objext \
17860 conftest$ac_exeext conftest.$ac_ext
17861LIBS=$ac_check_lib_save_LIBS
17862fi
17863echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17864echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
17865if test $ac_cv_lib_svld_dlopen = yes; then
17866 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17867else
17868 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17869echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
17870if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17871 echo $ECHO_N "(cached) $ECHO_C" >&6
17872else
17873 ac_check_lib_save_LIBS=$LIBS
17874LIBS="-ldld $LIBS"
17875cat >conftest.$ac_ext <<_ACEOF
17876/* confdefs.h. */
17877_ACEOF
17878cat confdefs.h >>conftest.$ac_ext
17879cat >>conftest.$ac_ext <<_ACEOF
17880/* end confdefs.h. */
17881
17882/* Override any gcc2 internal prototype to avoid an error. */
17883#ifdef __cplusplus
17884extern "C"
17885#endif
17886/* We use char because int might match the return type of a gcc2
17887 builtin and then its argument prototype would still apply. */
17888char dld_link ();
17889int
17890main ()
17891{
17892dld_link ();
17893 ;
17894 return 0;
17895}
17896_ACEOF
17897rm -f conftest.$ac_objext conftest$ac_exeext
17898if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17899 (eval $ac_link) 2>conftest.er1
17900 ac_status=$?
17901 grep -v '^ *+' conftest.er1 >conftest.err
17902 rm -f conftest.er1
17903 cat conftest.err >&5
17904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17905 (exit $ac_status); } &&
17906 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17908 (eval $ac_try) 2>&5
17909 ac_status=$?
17910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17911 (exit $ac_status); }; } &&
17912 { ac_try='test -s conftest$ac_exeext'
17913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17914 (eval $ac_try) 2>&5
17915 ac_status=$?
17916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17917 (exit $ac_status); }; }; then
17918 ac_cv_lib_dld_dld_link=yes
17919else
17920 echo "$as_me: failed program was:" >&5
17921sed 's/^/| /' conftest.$ac_ext >&5
17922
17923ac_cv_lib_dld_dld_link=no
17924fi
17925rm -f conftest.err conftest.$ac_objext \
17926 conftest$ac_exeext conftest.$ac_ext
17927LIBS=$ac_check_lib_save_LIBS
17928fi
17929echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17930echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
17931if test $ac_cv_lib_dld_dld_link = yes; then
17932 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17933fi
17934
17935
17936fi
17937
17938
17939fi
17940
17941
17942fi
17943
17944
17945fi
17946
17947
17948fi
17949
17950 ;;
17951 esac
17952
17953 if test "x$lt_cv_dlopen" != xno; then
17954 enable_dlopen=yes
17955 else
17956 enable_dlopen=no
17957 fi
17958
17959 case $lt_cv_dlopen in
17960 dlopen)
17961 save_CPPFLAGS="$CPPFLAGS"
17962 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17963
17964 save_LDFLAGS="$LDFLAGS"
17965 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17966
17967 save_LIBS="$LIBS"
17968 LIBS="$lt_cv_dlopen_libs $LIBS"
17969
17970 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17971echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
17972if test "${lt_cv_dlopen_self+set}" = set; then
17973 echo $ECHO_N "(cached) $ECHO_C" >&6
17974else
17975 if test "$cross_compiling" = yes; then :
17976 lt_cv_dlopen_self=cross
17977else
17978 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17979 lt_status=$lt_dlunknown
17980 cat > conftest.$ac_ext <<EOF
17981#line 17981 "configure"
17982#include "confdefs.h"
17983
17984#if HAVE_DLFCN_H
17985#include <dlfcn.h>
17986#endif
17987
17988#include <stdio.h>
17989
17990#ifdef RTLD_GLOBAL
17991# define LT_DLGLOBAL RTLD_GLOBAL
17992#else
17993# ifdef DL_GLOBAL
17994# define LT_DLGLOBAL DL_GLOBAL
17995# else
17996# define LT_DLGLOBAL 0
17997# endif
17998#endif
17999
18000/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18001 find out it does not work in some platform. */
18002#ifndef LT_DLLAZY_OR_NOW
18003# ifdef RTLD_LAZY
18004# define LT_DLLAZY_OR_NOW RTLD_LAZY
18005# else
18006# ifdef DL_LAZY
18007# define LT_DLLAZY_OR_NOW DL_LAZY
18008# else
18009# ifdef RTLD_NOW
18010# define LT_DLLAZY_OR_NOW RTLD_NOW
18011# else
18012# ifdef DL_NOW
18013# define LT_DLLAZY_OR_NOW DL_NOW
18014# else
18015# define LT_DLLAZY_OR_NOW 0
18016# endif
18017# endif
18018# endif
18019# endif
18020#endif
18021
18022#ifdef __cplusplus
18023extern "C" void exit (int);
18024#endif
18025
18026void fnord() { int i=42;}
18027int main ()
18028{
18029 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18030 int status = $lt_dlunknown;
18031
18032 if (self)
18033 {
18034 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18035 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18036 /* dlclose (self); */
18037 }
18038
18039 exit (status);
18040}
18041EOF
18042 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18043 (eval $ac_link) 2>&5
18044 ac_status=$?
18045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18046 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18047 (./conftest; exit; ) 2>/dev/null
18048 lt_status=$?
18049 case x$lt_status in
18050 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18051 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18052 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
18053 esac
18054 else :
18055 # compilation failed
18056 lt_cv_dlopen_self=no
18057 fi
18058fi
18059rm -fr conftest*
18060
18061
18062fi
18063echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
18064echo "${ECHO_T}$lt_cv_dlopen_self" >&6
18065
18066 if test "x$lt_cv_dlopen_self" = xyes; then
18067 LDFLAGS="$LDFLAGS $link_static_flag"
18068 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
18069echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
18070if test "${lt_cv_dlopen_self_static+set}" = set; then
18071 echo $ECHO_N "(cached) $ECHO_C" >&6
18072else
18073 if test "$cross_compiling" = yes; then :
18074 lt_cv_dlopen_self_static=cross
18075else
18076 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18077 lt_status=$lt_dlunknown
18078 cat > conftest.$ac_ext <<EOF
18079#line 18079 "configure"
18080#include "confdefs.h"
18081
18082#if HAVE_DLFCN_H
18083#include <dlfcn.h>
18084#endif
18085
18086#include <stdio.h>
18087
18088#ifdef RTLD_GLOBAL
18089# define LT_DLGLOBAL RTLD_GLOBAL
18090#else
18091# ifdef DL_GLOBAL
18092# define LT_DLGLOBAL DL_GLOBAL
18093# else
18094# define LT_DLGLOBAL 0
18095# endif
18096#endif
18097
18098/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18099 find out it does not work in some platform. */
18100#ifndef LT_DLLAZY_OR_NOW
18101# ifdef RTLD_LAZY
18102# define LT_DLLAZY_OR_NOW RTLD_LAZY
18103# else
18104# ifdef DL_LAZY
18105# define LT_DLLAZY_OR_NOW DL_LAZY
18106# else
18107# ifdef RTLD_NOW
18108# define LT_DLLAZY_OR_NOW RTLD_NOW
18109# else
18110# ifdef DL_NOW
18111# define LT_DLLAZY_OR_NOW DL_NOW
18112# else
18113# define LT_DLLAZY_OR_NOW 0
18114# endif
18115# endif
18116# endif
18117# endif
18118#endif
18119
18120#ifdef __cplusplus
18121extern "C" void exit (int);
18122#endif
18123
18124void fnord() { int i=42;}
18125int main ()
18126{
18127 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18128 int status = $lt_dlunknown;
18129
18130 if (self)
18131 {
18132 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18133 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18134 /* dlclose (self); */
18135 }
18136
18137 exit (status);
18138}
18139EOF
18140 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18141 (eval $ac_link) 2>&5
18142 ac_status=$?
18143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18144 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18145 (./conftest; exit; ) 2>/dev/null
18146 lt_status=$?
18147 case x$lt_status in
18148 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18149 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18150 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
18151 esac
18152 else :
18153 # compilation failed
18154 lt_cv_dlopen_self_static=no
18155 fi
18156fi
18157rm -fr conftest*
18158
18159
18160fi
18161echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18162echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
18163 fi
18164
18165 CPPFLAGS="$save_CPPFLAGS"
18166 LDFLAGS="$save_LDFLAGS"
18167 LIBS="$save_LIBS"
18168 ;;
18169 esac
18170
18171 case $lt_cv_dlopen_self in
18172 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18173 *) enable_dlopen_self=unknown ;;
18174 esac
18175
18176 case $lt_cv_dlopen_self_static in
18177 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18178 *) enable_dlopen_self_static=unknown ;;
18179 esac
18180fi
18181
18182
18183# The else clause should only fire when bootstrapping the
18184# libtool distribution, otherwise you forgot to ship ltmain.sh
18185# with your package, and you will get complaints that there are
18186# no rules to generate ltmain.sh.
18187if test -f "$ltmain"; then
18188 # See if we are running on zsh, and set the options which allow our commands through
18189 # without removal of \ escapes.
18190 if test -n "${ZSH_VERSION+set}" ; then
18191 setopt NO_GLOB_SUBST
18192 fi
18193 # Now quote all the things that may contain metacharacters while being
18194 # careful not to overquote the AC_SUBSTed values. We take copies of the
18195 # variables and quote the copies for generation of the libtool script.
18196 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18197 SED SHELL STRIP \
18198 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18199 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18200 deplibs_check_method reload_flag reload_cmds need_locks \
18201 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18202 lt_cv_sys_global_symbol_to_c_name_address \
18203 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18204 old_postinstall_cmds old_postuninstall_cmds \
18205 compiler_GCJ \
18206 CC_GCJ \
18207 LD_GCJ \
18208 lt_prog_compiler_wl_GCJ \
18209 lt_prog_compiler_pic_GCJ \
18210 lt_prog_compiler_static_GCJ \
18211 lt_prog_compiler_no_builtin_flag_GCJ \
18212 export_dynamic_flag_spec_GCJ \
18213 thread_safe_flag_spec_GCJ \
18214 whole_archive_flag_spec_GCJ \
18215 enable_shared_with_static_runtimes_GCJ \
18216 old_archive_cmds_GCJ \
18217 old_archive_from_new_cmds_GCJ \
18218 predep_objects_GCJ \
18219 postdep_objects_GCJ \
18220 predeps_GCJ \
18221 postdeps_GCJ \
18222 compiler_lib_search_path_GCJ \
18223 archive_cmds_GCJ \
18224 archive_expsym_cmds_GCJ \
18225 postinstall_cmds_GCJ \
18226 postuninstall_cmds_GCJ \
18227 old_archive_from_expsyms_cmds_GCJ \
18228 allow_undefined_flag_GCJ \
18229 no_undefined_flag_GCJ \
18230 export_symbols_cmds_GCJ \
18231 hardcode_libdir_flag_spec_GCJ \
18232 hardcode_libdir_flag_spec_ld_GCJ \
18233 hardcode_libdir_separator_GCJ \
18234 hardcode_automatic_GCJ \
18235 module_cmds_GCJ \
18236 module_expsym_cmds_GCJ \
18237 lt_cv_prog_compiler_c_o_GCJ \
18238 exclude_expsyms_GCJ \
18239 include_expsyms_GCJ; do
18240
18241 case $var in
18242 old_archive_cmds_GCJ | \
18243 old_archive_from_new_cmds_GCJ | \
18244 archive_cmds_GCJ | \
18245 archive_expsym_cmds_GCJ | \
18246 module_cmds_GCJ | \
18247 module_expsym_cmds_GCJ | \
18248 old_archive_from_expsyms_cmds_GCJ | \
18249 export_symbols_cmds_GCJ | \
18250 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18251 postinstall_cmds | postuninstall_cmds | \
18252 old_postinstall_cmds | old_postuninstall_cmds | \
18253 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18254 # Double-quote double-evaled strings.
18255 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18256 ;;
18257 *)
18258 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18259 ;;
18260 esac
18261 done
18262
18263 case $lt_echo in
18264 *'\$0 --fallback-echo"')
18265 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18266 ;;
18267 esac
18268
18269cfgfile="$ofile"
18270
18271 cat <<__EOF__ >> "$cfgfile"
18272# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18273
18274# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18275
18276# Shell to use when invoking shell scripts.
18277SHELL=$lt_SHELL
18278
18279# Whether or not to build shared libraries.
18280build_libtool_libs=$enable_shared
18281
18282# Whether or not to build static libraries.
18283build_old_libs=$enable_static
18284
18285# Whether or not to add -lc for building shared libraries.
18286build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18287
18288# Whether or not to disallow shared libs when runtime libs are static
18289allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18290
18291# Whether or not to optimize for fast installation.
18292fast_install=$enable_fast_install
18293
18294# The host system.
18295host_alias=$host_alias
18296host=$host
18297
18298# An echo program that does not interpret backslashes.
18299echo=$lt_echo
18300
18301# The archiver.
18302AR=$lt_AR
18303AR_FLAGS=$lt_AR_FLAGS
18304
18305# A C compiler.
18306LTCC=$lt_LTCC
18307
18308# A language-specific compiler.
18309CC=$lt_compiler_GCJ
18310
18311# Is the compiler the GNU C compiler?
18312with_gcc=$GCC_GCJ
18313
18314# An ERE matcher.
18315EGREP=$lt_EGREP
18316
18317# The linker used to build libraries.
18318LD=$lt_LD_GCJ
18319
18320# Whether we need hard or soft links.
18321LN_S=$lt_LN_S
18322
18323# A BSD-compatible nm program.
18324NM=$lt_NM
18325
18326# A symbol stripping program
18327STRIP=$lt_STRIP
18328
18329# Used to examine libraries when file_magic_cmd begins "file"
18330MAGIC_CMD=$MAGIC_CMD
18331
18332# Used on cygwin: DLL creation program.
18333DLLTOOL="$DLLTOOL"
18334
18335# Used on cygwin: object dumper.
18336OBJDUMP="$OBJDUMP"
18337
18338# Used on cygwin: assembler.
18339AS="$AS"
18340
18341# The name of the directory that contains temporary libtool files.
18342objdir=$objdir
18343
18344# How to create reloadable object files.
18345reload_flag=$lt_reload_flag
18346reload_cmds=$lt_reload_cmds
18347
18348# How to pass a linker flag through the compiler.
18349wl=$lt_lt_prog_compiler_wl_GCJ
18350
18351# Object file suffix (normally "o").
18352objext="$ac_objext"
18353
18354# Old archive suffix (normally "a").
18355libext="$libext"
18356
18357# Shared library suffix (normally ".so").
18358shrext_cmds='$shrext_cmds'
18359
18360# Executable file suffix (normally "").
18361exeext="$exeext"
18362
18363# Additional compiler flags for building library objects.
18364pic_flag=$lt_lt_prog_compiler_pic_GCJ
18365pic_mode=$pic_mode
18366
18367# What is the maximum length of a command?
18368max_cmd_len=$lt_cv_sys_max_cmd_len
18369
18370# Does compiler simultaneously support -c and -o options?
18371compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18372
18373# Must we lock files when doing compilation ?
18374need_locks=$lt_need_locks
18375
18376# Do we need the lib prefix for modules?
18377need_lib_prefix=$need_lib_prefix
18378
18379# Do we need a version for libraries?
18380need_version=$need_version
18381
18382# Whether dlopen is supported.
18383dlopen_support=$enable_dlopen
18384
18385# Whether dlopen of programs is supported.
18386dlopen_self=$enable_dlopen_self
18387
18388# Whether dlopen of statically linked programs is supported.
18389dlopen_self_static=$enable_dlopen_self_static
18390
18391# Compiler flag to prevent dynamic linking.
18392link_static_flag=$lt_lt_prog_compiler_static_GCJ
18393
18394# Compiler flag to turn off builtin functions.
18395no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18396
18397# Compiler flag to allow reflexive dlopens.
18398export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18399
18400# Compiler flag to generate shared objects directly from archives.
18401whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18402
18403# Compiler flag to generate thread-safe objects.
18404thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18405
18406# Library versioning type.
18407version_type=$version_type
18408
18409# Format of library name prefix.
18410libname_spec=$lt_libname_spec
18411
18412# List of archive names. First name is the real one, the rest are links.
18413# The last name is the one that the linker finds with -lNAME.
18414library_names_spec=$lt_library_names_spec
18415
18416# The coded name of the library, if different from the real name.
18417soname_spec=$lt_soname_spec
18418
18419# Commands used to build and install an old-style archive.
18420RANLIB=$lt_RANLIB
18421old_archive_cmds=$lt_old_archive_cmds_GCJ
18422old_postinstall_cmds=$lt_old_postinstall_cmds
18423old_postuninstall_cmds=$lt_old_postuninstall_cmds
18424
18425# Create an old-style archive from a shared archive.
18426old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18427
18428# Create a temporary old-style archive to link instead of a shared archive.
18429old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18430
18431# Commands used to build and install a shared archive.
18432archive_cmds=$lt_archive_cmds_GCJ
18433archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18434postinstall_cmds=$lt_postinstall_cmds
18435postuninstall_cmds=$lt_postuninstall_cmds
18436
18437# Commands used to build a loadable module (assumed same as above if empty)
18438module_cmds=$lt_module_cmds_GCJ
18439module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18440
18441# Commands to strip libraries.
18442old_striplib=$lt_old_striplib
18443striplib=$lt_striplib
18444
18445# Dependencies to place before the objects being linked to create a
18446# shared library.
18447predep_objects=$lt_predep_objects_GCJ
18448
18449# Dependencies to place after the objects being linked to create a
18450# shared library.
18451postdep_objects=$lt_postdep_objects_GCJ
18452
18453# Dependencies to place before the objects being linked to create a
18454# shared library.
18455predeps=$lt_predeps_GCJ
18456
18457# Dependencies to place after the objects being linked to create a
18458# shared library.
18459postdeps=$lt_postdeps_GCJ
18460
18461# The library search path used internally by the compiler when linking
18462# a shared library.
18463compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18464
18465# Method to check whether dependent libraries are shared objects.
18466deplibs_check_method=$lt_deplibs_check_method
18467
18468# Command to use when deplibs_check_method == file_magic.
18469file_magic_cmd=$lt_file_magic_cmd
18470
18471# Flag that allows shared libraries with undefined symbols to be built.
18472allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18473
18474# Flag that forces no undefined symbols.
18475no_undefined_flag=$lt_no_undefined_flag_GCJ
18476
18477# Commands used to finish a libtool library installation in a directory.
18478finish_cmds=$lt_finish_cmds
18479
18480# Same as above, but a single script fragment to be evaled but not shown.
18481finish_eval=$lt_finish_eval
18482
18483# Take the output of nm and produce a listing of raw symbols and C names.
18484global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18485
18486# Transform the output of nm in a proper C declaration
18487global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18488
18489# Transform the output of nm in a C name address pair
18490global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18491
18492# This is the shared library runtime path variable.
18493runpath_var=$runpath_var
18494
18495# This is the shared library path variable.
18496shlibpath_var=$shlibpath_var
18497
18498# Is shlibpath searched before the hard-coded library search path?
18499shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18500
18501# How to hardcode a shared library path into an executable.
18502hardcode_action=$hardcode_action_GCJ
18503
18504# Whether we should hardcode library paths into libraries.
18505hardcode_into_libs=$hardcode_into_libs
18506
18507# Flag to hardcode \$libdir into a binary during linking.
18508# This must work even if \$libdir does not exist.
18509hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18510
18511# If ld is used when linking, flag to hardcode \$libdir into
18512# a binary during linking. This must work even if \$libdir does
18513# not exist.
18514hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18515
18516# Whether we need a single -rpath flag with a separated argument.
18517hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18518
18519# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18520# resulting binary.
18521hardcode_direct=$hardcode_direct_GCJ
18522
18523# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18524# resulting binary.
18525hardcode_minus_L=$hardcode_minus_L_GCJ
18526
18527# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18528# the resulting binary.
18529hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18530
18531# Set to yes if building a shared library automatically hardcodes DIR into the library
18532# and all subsequent libraries and executables linked against it.
18533hardcode_automatic=$hardcode_automatic_GCJ
18534
18535# Variables whose values should be saved in libtool wrapper scripts and
18536# restored at relink time.
18537variables_saved_for_relink="$variables_saved_for_relink"
18538
18539# Whether libtool must link a program against all its dependency libraries.
18540link_all_deplibs=$link_all_deplibs_GCJ
18541
18542# Compile-time system search path for libraries
18543sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18544
18545# Run-time system search path for libraries
18546sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18547
18548# Fix the shell variable \$srcfile for the compiler.
18549fix_srcfile_path="$fix_srcfile_path_GCJ"
18550
18551# Set to yes if exported symbols are required.
18552always_export_symbols=$always_export_symbols_GCJ
18553
18554# The commands to list exported symbols.
18555export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18556
18557# The commands to extract the exported symbol list from a shared archive.
18558extract_expsyms_cmds=$lt_extract_expsyms_cmds
18559
18560# Symbols that should not be listed in the preloaded symbols.
18561exclude_expsyms=$lt_exclude_expsyms_GCJ
18562
18563# Symbols that must always be exported.
18564include_expsyms=$lt_include_expsyms_GCJ
18565
18566# ### END LIBTOOL TAG CONFIG: $tagname
18567
18568__EOF__
18569
18570
18571else
18572 # If there is no Makefile yet, we rely on a make rule to execute
18573 # `config.status --recheck' to rerun these tests and create the
18574 # libtool script then.
18575 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18576 if test -f "$ltmain_in"; then
18577 test -f Makefile && make "$ltmain"
18578 fi
18579fi
18580
18581
18582ac_ext=c
18583ac_cpp='$CPP $CPPFLAGS'
18584ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18585ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18586ac_compiler_gnu=$ac_cv_c_compiler_gnu
18587
18588CC="$lt_save_CC"
18589
18590 else
18591 tagname=""
18592 fi
18593 ;;
18594
18595 RC)
18596
18597
18598
18599# Source file extension for RC test sources.
18600ac_ext=rc
18601
18602# Object file extension for compiled RC test sources.
18603objext=o
18604objext_RC=$objext
18605
18606# Code to be used in simple compile tests
18607lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18608
18609# Code to be used in simple link tests
18610lt_simple_link_test_code="$lt_simple_compile_test_code"
18611
18612# ltmain only uses $CC for tagged configurations so make sure $CC is set.
18613
18614# If no C compiler was specified, use CC.
18615LTCC=${LTCC-"$CC"}
18616
18617# Allow CC to be a program name with arguments.
18618compiler=$CC
18619
18620
18621# Allow CC to be a program name with arguments.
18622lt_save_CC="$CC"
18623CC=${RC-"windres"}
18624compiler=$CC
18625compiler_RC=$CC
18626lt_cv_prog_compiler_c_o_RC=yes
18627
18628# The else clause should only fire when bootstrapping the
18629# libtool distribution, otherwise you forgot to ship ltmain.sh
18630# with your package, and you will get complaints that there are
18631# no rules to generate ltmain.sh.
18632if test -f "$ltmain"; then
18633 # See if we are running on zsh, and set the options which allow our commands through
18634 # without removal of \ escapes.
18635 if test -n "${ZSH_VERSION+set}" ; then
18636 setopt NO_GLOB_SUBST
18637 fi
18638 # Now quote all the things that may contain metacharacters while being
18639 # careful not to overquote the AC_SUBSTed values. We take copies of the
18640 # variables and quote the copies for generation of the libtool script.
18641 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18642 SED SHELL STRIP \
18643 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18644 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18645 deplibs_check_method reload_flag reload_cmds need_locks \
18646 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18647 lt_cv_sys_global_symbol_to_c_name_address \
18648 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18649 old_postinstall_cmds old_postuninstall_cmds \
18650 compiler_RC \
18651 CC_RC \
18652 LD_RC \
18653 lt_prog_compiler_wl_RC \
18654 lt_prog_compiler_pic_RC \
18655 lt_prog_compiler_static_RC \
18656 lt_prog_compiler_no_builtin_flag_RC \
18657 export_dynamic_flag_spec_RC \
18658 thread_safe_flag_spec_RC \
18659 whole_archive_flag_spec_RC \
18660 enable_shared_with_static_runtimes_RC \
18661 old_archive_cmds_RC \
18662 old_archive_from_new_cmds_RC \
18663 predep_objects_RC \
18664 postdep_objects_RC \
18665 predeps_RC \
18666 postdeps_RC \
18667 compiler_lib_search_path_RC \
18668 archive_cmds_RC \
18669 archive_expsym_cmds_RC \
18670 postinstall_cmds_RC \
18671 postuninstall_cmds_RC \
18672 old_archive_from_expsyms_cmds_RC \
18673 allow_undefined_flag_RC \
18674 no_undefined_flag_RC \
18675 export_symbols_cmds_RC \
18676 hardcode_libdir_flag_spec_RC \
18677 hardcode_libdir_flag_spec_ld_RC \
18678 hardcode_libdir_separator_RC \
18679 hardcode_automatic_RC \
18680 module_cmds_RC \
18681 module_expsym_cmds_RC \
18682 lt_cv_prog_compiler_c_o_RC \
18683 exclude_expsyms_RC \
18684 include_expsyms_RC; do
18685
18686 case $var in
18687 old_archive_cmds_RC | \
18688 old_archive_from_new_cmds_RC | \
18689 archive_cmds_RC | \
18690 archive_expsym_cmds_RC | \
18691 module_cmds_RC | \
18692 module_expsym_cmds_RC | \
18693 old_archive_from_expsyms_cmds_RC | \
18694 export_symbols_cmds_RC | \
18695 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18696 postinstall_cmds | postuninstall_cmds | \
18697 old_postinstall_cmds | old_postuninstall_cmds | \
18698 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18699 # Double-quote double-evaled strings.
18700 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18701 ;;
18702 *)
18703 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18704 ;;
18705 esac
18706 done
18707
18708 case $lt_echo in
18709 *'\$0 --fallback-echo"')
18710 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18711 ;;
18712 esac
18713
18714cfgfile="$ofile"
18715
18716 cat <<__EOF__ >> "$cfgfile"
18717# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18718
18719# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18720
18721# Shell to use when invoking shell scripts.
18722SHELL=$lt_SHELL
18723
18724# Whether or not to build shared libraries.
18725build_libtool_libs=$enable_shared
18726
18727# Whether or not to build static libraries.
18728build_old_libs=$enable_static
18729
18730# Whether or not to add -lc for building shared libraries.
18731build_libtool_need_lc=$archive_cmds_need_lc_RC
18732
18733# Whether or not to disallow shared libs when runtime libs are static
18734allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18735
18736# Whether or not to optimize for fast installation.
18737fast_install=$enable_fast_install
18738
18739# The host system.
18740host_alias=$host_alias
18741host=$host
18742
18743# An echo program that does not interpret backslashes.
18744echo=$lt_echo
18745
18746# The archiver.
18747AR=$lt_AR
18748AR_FLAGS=$lt_AR_FLAGS
18749
18750# A C compiler.
18751LTCC=$lt_LTCC
18752
18753# A language-specific compiler.
18754CC=$lt_compiler_RC
18755
18756# Is the compiler the GNU C compiler?
18757with_gcc=$GCC_RC
18758
18759# An ERE matcher.
18760EGREP=$lt_EGREP
18761
18762# The linker used to build libraries.
18763LD=$lt_LD_RC
18764
18765# Whether we need hard or soft links.
18766LN_S=$lt_LN_S
18767
18768# A BSD-compatible nm program.
18769NM=$lt_NM
18770
18771# A symbol stripping program
18772STRIP=$lt_STRIP
18773
18774# Used to examine libraries when file_magic_cmd begins "file"
18775MAGIC_CMD=$MAGIC_CMD
18776
18777# Used on cygwin: DLL creation program.
18778DLLTOOL="$DLLTOOL"
18779
18780# Used on cygwin: object dumper.
18781OBJDUMP="$OBJDUMP"
18782
18783# Used on cygwin: assembler.
18784AS="$AS"
18785
18786# The name of the directory that contains temporary libtool files.
18787objdir=$objdir
18788
18789# How to create reloadable object files.
18790reload_flag=$lt_reload_flag
18791reload_cmds=$lt_reload_cmds
18792
18793# How to pass a linker flag through the compiler.
18794wl=$lt_lt_prog_compiler_wl_RC
18795
18796# Object file suffix (normally "o").
18797objext="$ac_objext"
18798
18799# Old archive suffix (normally "a").
18800libext="$libext"
18801
18802# Shared library suffix (normally ".so").
18803shrext_cmds='$shrext_cmds'
18804
18805# Executable file suffix (normally "").
18806exeext="$exeext"
18807
18808# Additional compiler flags for building library objects.
18809pic_flag=$lt_lt_prog_compiler_pic_RC
18810pic_mode=$pic_mode
18811
18812# What is the maximum length of a command?
18813max_cmd_len=$lt_cv_sys_max_cmd_len
18814
18815# Does compiler simultaneously support -c and -o options?
18816compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18817
18818# Must we lock files when doing compilation ?
18819need_locks=$lt_need_locks
18820
18821# Do we need the lib prefix for modules?
18822need_lib_prefix=$need_lib_prefix
18823
18824# Do we need a version for libraries?
18825need_version=$need_version
18826
18827# Whether dlopen is supported.
18828dlopen_support=$enable_dlopen
18829
18830# Whether dlopen of programs is supported.
18831dlopen_self=$enable_dlopen_self
18832
18833# Whether dlopen of statically linked programs is supported.
18834dlopen_self_static=$enable_dlopen_self_static
18835
18836# Compiler flag to prevent dynamic linking.
18837link_static_flag=$lt_lt_prog_compiler_static_RC
18838
18839# Compiler flag to turn off builtin functions.
18840no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18841
18842# Compiler flag to allow reflexive dlopens.
18843export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18844
18845# Compiler flag to generate shared objects directly from archives.
18846whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18847
18848# Compiler flag to generate thread-safe objects.
18849thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18850
18851# Library versioning type.
18852version_type=$version_type
18853
18854# Format of library name prefix.
18855libname_spec=$lt_libname_spec
18856
18857# List of archive names. First name is the real one, the rest are links.
18858# The last name is the one that the linker finds with -lNAME.
18859library_names_spec=$lt_library_names_spec
18860
18861# The coded name of the library, if different from the real name.
18862soname_spec=$lt_soname_spec
18863
18864# Commands used to build and install an old-style archive.
18865RANLIB=$lt_RANLIB
18866old_archive_cmds=$lt_old_archive_cmds_RC
18867old_postinstall_cmds=$lt_old_postinstall_cmds
18868old_postuninstall_cmds=$lt_old_postuninstall_cmds
18869
18870# Create an old-style archive from a shared archive.
18871old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18872
18873# Create a temporary old-style archive to link instead of a shared archive.
18874old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18875
18876# Commands used to build and install a shared archive.
18877archive_cmds=$lt_archive_cmds_RC
18878archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18879postinstall_cmds=$lt_postinstall_cmds
18880postuninstall_cmds=$lt_postuninstall_cmds
18881
18882# Commands used to build a loadable module (assumed same as above if empty)
18883module_cmds=$lt_module_cmds_RC
18884module_expsym_cmds=$lt_module_expsym_cmds_RC
18885
18886# Commands to strip libraries.
18887old_striplib=$lt_old_striplib
18888striplib=$lt_striplib
18889
18890# Dependencies to place before the objects being linked to create a
18891# shared library.
18892predep_objects=$lt_predep_objects_RC
18893
18894# Dependencies to place after the objects being linked to create a
18895# shared library.
18896postdep_objects=$lt_postdep_objects_RC
18897
18898# Dependencies to place before the objects being linked to create a
18899# shared library.
18900predeps=$lt_predeps_RC
18901
18902# Dependencies to place after the objects being linked to create a
18903# shared library.
18904postdeps=$lt_postdeps_RC
18905
18906# The library search path used internally by the compiler when linking
18907# a shared library.
18908compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18909
18910# Method to check whether dependent libraries are shared objects.
18911deplibs_check_method=$lt_deplibs_check_method
18912
18913# Command to use when deplibs_check_method == file_magic.
18914file_magic_cmd=$lt_file_magic_cmd
18915
18916# Flag that allows shared libraries with undefined symbols to be built.
18917allow_undefined_flag=$lt_allow_undefined_flag_RC
18918
18919# Flag that forces no undefined symbols.
18920no_undefined_flag=$lt_no_undefined_flag_RC
18921
18922# Commands used to finish a libtool library installation in a directory.
18923finish_cmds=$lt_finish_cmds
18924
18925# Same as above, but a single script fragment to be evaled but not shown.
18926finish_eval=$lt_finish_eval
18927
18928# Take the output of nm and produce a listing of raw symbols and C names.
18929global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18930
18931# Transform the output of nm in a proper C declaration
18932global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18933
18934# Transform the output of nm in a C name address pair
18935global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18936
18937# This is the shared library runtime path variable.
18938runpath_var=$runpath_var
18939
18940# This is the shared library path variable.
18941shlibpath_var=$shlibpath_var
18942
18943# Is shlibpath searched before the hard-coded library search path?
18944shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18945
18946# How to hardcode a shared library path into an executable.
18947hardcode_action=$hardcode_action_RC
18948
18949# Whether we should hardcode library paths into libraries.
18950hardcode_into_libs=$hardcode_into_libs
18951
18952# Flag to hardcode \$libdir into a binary during linking.
18953# This must work even if \$libdir does not exist.
18954hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18955
18956# If ld is used when linking, flag to hardcode \$libdir into
18957# a binary during linking. This must work even if \$libdir does
18958# not exist.
18959hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18960
18961# Whether we need a single -rpath flag with a separated argument.
18962hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18963
18964# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18965# resulting binary.
18966hardcode_direct=$hardcode_direct_RC
18967
18968# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18969# resulting binary.
18970hardcode_minus_L=$hardcode_minus_L_RC
18971
18972# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18973# the resulting binary.
18974hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18975
18976# Set to yes if building a shared library automatically hardcodes DIR into the library
18977# and all subsequent libraries and executables linked against it.
18978hardcode_automatic=$hardcode_automatic_RC
18979
18980# Variables whose values should be saved in libtool wrapper scripts and
18981# restored at relink time.
18982variables_saved_for_relink="$variables_saved_for_relink"
18983
18984# Whether libtool must link a program against all its dependency libraries.
18985link_all_deplibs=$link_all_deplibs_RC
18986
18987# Compile-time system search path for libraries
18988sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18989
18990# Run-time system search path for libraries
18991sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18992
18993# Fix the shell variable \$srcfile for the compiler.
18994fix_srcfile_path="$fix_srcfile_path_RC"
18995
18996# Set to yes if exported symbols are required.
18997always_export_symbols=$always_export_symbols_RC
18998
18999# The commands to list exported symbols.
19000export_symbols_cmds=$lt_export_symbols_cmds_RC
19001
19002# The commands to extract the exported symbol list from a shared archive.
19003extract_expsyms_cmds=$lt_extract_expsyms_cmds
19004
19005# Symbols that should not be listed in the preloaded symbols.
19006exclude_expsyms=$lt_exclude_expsyms_RC
19007
19008# Symbols that must always be exported.
19009include_expsyms=$lt_include_expsyms_RC
19010
19011# ### END LIBTOOL TAG CONFIG: $tagname
19012
19013__EOF__
19014
19015
19016else
19017 # If there is no Makefile yet, we rely on a make rule to execute
19018 # `config.status --recheck' to rerun these tests and create the
19019 # libtool script then.
19020 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19021 if test -f "$ltmain_in"; then
19022 test -f Makefile && make "$ltmain"
19023 fi
19024fi
19025
19026
19027ac_ext=c
19028ac_cpp='$CPP $CPPFLAGS'
19029ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19030ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19031ac_compiler_gnu=$ac_cv_c_compiler_gnu
19032
19033CC="$lt_save_CC"
19034
19035 ;;
19036
19037 *)
19038 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19039echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19040 { (exit 1); exit 1; }; }
19041 ;;
19042 esac
19043
19044 # Append the new tag name to the list of available tags.
19045 if test -n "$tagname" ; then
19046 available_tags="$available_tags $tagname"
19047 fi
19048 fi
19049 done
19050 IFS="$lt_save_ifs"
19051
19052 # Now substitute the updated list of available tags.
19053 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19054 mv "${ofile}T" "$ofile"
19055 chmod +x "$ofile"
19056 else
19057 rm -f "${ofile}T"
19058 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19059echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19060 { (exit 1); exit 1; }; }
19061 fi
19062fi
19063
19064
19065
19066# This can be used to rebuild libtool when needed
19067LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19068
19069# Always use our own libtool.
19070LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19071
19072# Prevent multiple expansion
19073
19074
19075
19076
19077
19078
19079
19080
19081
19082
19083
19084
19085
19086
19087
19088
19089
19090
19091 8558
19092 8559
19093ac_ext=c 8560ac_ext=c
19094ac_cpp='$CPP $CPPFLAGS' 8561ac_cpp='$CPP $CPPFLAGS'
19095ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8562ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21150/* confdefs.h. */ 10617/* confdefs.h. */
21151_ACEOF 10618_ACEOF
21152cat confdefs.h >>conftest.$ac_ext 10619cat confdefs.h >>conftest.$ac_ext
21153cat >>conftest.$ac_ext <<_ACEOF 10620cat >>conftest.$ac_ext <<_ACEOF
21154/* end confdefs.h. */ 10621/* end confdefs.h. */
21155#include <X11/Intrinsic.h> 10622#include <X11/Xlib.h>
21156_ACEOF 10623_ACEOF
21157if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 10624if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21158 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 10625 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21159 ac_status=$? 10626 ac_status=$?
21160 grep -v '^ *+' conftest.er1 >conftest.err 10627 grep -v '^ *+' conftest.er1 >conftest.err
21177else 10644else
21178 echo "$as_me: failed program was:" >&5 10645 echo "$as_me: failed program was:" >&5
21179sed 's/^/| /' conftest.$ac_ext >&5 10646sed 's/^/| /' conftest.$ac_ext >&5
21180 10647
21181 for ac_dir in $ac_x_header_dirs; do 10648 for ac_dir in $ac_x_header_dirs; do
21182 if test -r "$ac_dir/X11/Intrinsic.h"; then 10649 if test -r "$ac_dir/X11/Xlib.h"; then
21183 ac_x_includes=$ac_dir 10650 ac_x_includes=$ac_dir
21184 break 10651 break
21185 fi 10652 fi
21186done 10653done
21187fi 10654fi
21191if test "$ac_x_libraries" = no; then 10658if test "$ac_x_libraries" = no; then
21192 # Check for the libraries. 10659 # Check for the libraries.
21193 # See if we find them without any special options. 10660 # See if we find them without any special options.
21194 # Don't add to $LIBS permanently. 10661 # Don't add to $LIBS permanently.
21195 ac_save_LIBS=$LIBS 10662 ac_save_LIBS=$LIBS
21196 LIBS="-lXt $LIBS" 10663 LIBS="-lX11 $LIBS"
21197 cat >conftest.$ac_ext <<_ACEOF 10664 cat >conftest.$ac_ext <<_ACEOF
21198/* confdefs.h. */ 10665/* confdefs.h. */
21199_ACEOF 10666_ACEOF
21200cat confdefs.h >>conftest.$ac_ext 10667cat confdefs.h >>conftest.$ac_ext
21201cat >>conftest.$ac_ext <<_ACEOF 10668cat >>conftest.$ac_ext <<_ACEOF
21202/* end confdefs.h. */ 10669/* end confdefs.h. */
21203#include <X11/Intrinsic.h> 10670#include <X11/Xlib.h>
21204int 10671int
21205main () 10672main ()
21206{ 10673{
21207XtMalloc (0) 10674XrmInitialize ()
21208 ; 10675 ;
21209 return 0; 10676 return 0;
21210} 10677}
21211_ACEOF 10678_ACEOF
21212rm -f conftest.$ac_objext conftest$ac_exeext 10679rm -f conftest.$ac_objext conftest$ac_exeext
21240LIBS=$ac_save_LIBS 10707LIBS=$ac_save_LIBS
21241for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` 10708for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
21242do 10709do
21243 # Don't even attempt the hair of trying to link an X program! 10710 # Don't even attempt the hair of trying to link an X program!
21244 for ac_extension in a so sl; do 10711 for ac_extension in a so sl; do
21245 if test -r $ac_dir/libXt.$ac_extension; then 10712 if test -r $ac_dir/libX11.$ac_extension; then
21246 ac_x_libraries=$ac_dir 10713 ac_x_libraries=$ac_dir
21247 break 2 10714 break 2
21248 fi 10715 fi
21249 done 10716 done
21250done 10717done
26422cat >>confdefs.h <<_ACEOF 15889cat >>confdefs.h <<_ACEOF
26423#define BUNZIP "${BUNZIP}" 15890#define BUNZIP "${BUNZIP}"
26424_ACEOF 15891_ACEOF
26425 15892
26426 15893
15894if true; then
15895 # Extract the first word of "perl5", so it can be a program name with args.
15896set dummy perl5; ac_word=$2
15897echo "$as_me:$LINENO: checking for $ac_word" >&5
15898echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15899if test "${ac_cv_path_PERL+set}" = set; then
15900 echo $ECHO_N "(cached) $ECHO_C" >&6
15901else
15902 case $PERL in
15903 [\\/]* | ?:[\\/]*)
15904 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
15905 ;;
15906 *)
15907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15908for as_dir in $PATH
15909do
15910 IFS=$as_save_IFS
15911 test -z "$as_dir" && as_dir=.
15912 for ac_exec_ext in '' $ac_executable_extensions; do
15913 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15914 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
15915 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15916 break 2
15917 fi
15918done
15919done
15920
15921 ;;
15922esac
15923fi
15924PERL=$ac_cv_path_PERL
15925
15926if test -n "$PERL"; then
15927 echo "$as_me:$LINENO: result: $PERL" >&5
15928echo "${ECHO_T}$PERL" >&6
15929else
15930 echo "$as_me:$LINENO: result: no" >&5
15931echo "${ECHO_T}no" >&6
15932fi
15933
15934 # Extract the first word of "perl", so it can be a program name with args.
15935set dummy perl; ac_word=$2
15936echo "$as_me:$LINENO: checking for $ac_word" >&5
15937echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15938if test "${ac_cv_path_PERL+set}" = set; then
15939 echo $ECHO_N "(cached) $ECHO_C" >&6
15940else
15941 case $PERL in
15942 [\\/]* | ?:[\\/]*)
15943 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
15944 ;;
15945 *)
15946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15947for as_dir in $PATH
15948do
15949 IFS=$as_save_IFS
15950 test -z "$as_dir" && as_dir=.
15951 for ac_exec_ext in '' $ac_executable_extensions; do
15952 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15953 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
15954 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15955 break 2
15956 fi
15957done
15958done
15959
15960 ;;
15961esac
15962fi
15963PERL=$ac_cv_path_PERL
15964
15965if test -n "$PERL"; then
15966 echo "$as_me:$LINENO: result: $PERL" >&5
15967echo "${ECHO_T}$PERL" >&6
15968else
15969 echo "$as_me:$LINENO: result: no" >&5
15970echo "${ECHO_T}no" >&6
15971fi
15972
15973
15974 echo "$as_me:$LINENO: checking for $PERL suitability" >&5
15975echo $ECHO_N "checking for $PERL suitability... $ECHO_C" >&6
15976 if $PERL -MExtUtils::Embed -e "use v5.8" >/dev/null 2>/dev/null; then
15977
15978 save_CFLAGS="$CFLAGS"
15979 save_LIBS="$LIBS"
15980 CFLAGS="$CFLAGS `$PERL -MExtUtils::Embed -e ccopts`"
15981 LIBS="$LIBS `$PERL -MExtUtils::Embed -e ldopts`"
15982 cat >conftest.$ac_ext <<_ACEOF
15983/* confdefs.h. */
15984_ACEOF
15985cat confdefs.h >>conftest.$ac_ext
15986cat >>conftest.$ac_ext <<_ACEOF
15987/* end confdefs.h. */
15988
15989#include <EXTERN.h>
15990#include <perl.h>
15991#include <XSUB.h>
15992
15993int
15994main ()
15995{
15996
15997 PerlInterpreter *perl = perl_alloc ();
15998
15999 ;
16000 return 0;
16001}
16002_ACEOF
16003rm -f conftest.$ac_objext conftest$ac_exeext
16004if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16005 (eval $ac_link) 2>conftest.er1
16006 ac_status=$?
16007 grep -v '^ *+' conftest.er1 >conftest.err
16008 rm -f conftest.er1
16009 cat conftest.err >&5
16010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16011 (exit $ac_status); } &&
16012 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16014 (eval $ac_try) 2>&5
16015 ac_status=$?
16016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16017 (exit $ac_status); }; } &&
16018 { ac_try='test -s conftest$ac_exeext'
16019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16020 (eval $ac_try) 2>&5
16021 ac_status=$?
16022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16023 (exit $ac_status); }; }; then
16024 perl_link=yes
16025else
16026 echo "$as_me: failed program was:" >&5
16027sed 's/^/| /' conftest.$ac_ext >&5
16028
16029perl_link=no
16030fi
16031rm -f conftest.err conftest.$ac_objext \
16032 conftest$ac_exeext conftest.$ac_ext
16033 CXXFLAGS="$save_CFLAGS"
16034 LIBS="$save_LIBS"
16035
16036 if test x$perl_link = xyes; then
16037 echo "$as_me:$LINENO: result: ok" >&5
16038echo "${ECHO_T}ok" >&6
16039
16040cat >>confdefs.h <<\_ACEOF
16041#define ENABLE_PERL 1
16042_ACEOF
16043
16044 PERLFLAGS="`$PERL -MExtUtils::Embed -e ccopts`"
16045 PERLLIB="`$PERL -MExtUtils::Embed -e ldopts`"
16046 PERLPRIVLIBEXP="`$PERL -MConfig -e 'print $Config{privlibexp}'`"
16047 PERL_PLUGIN=yes
16048 else
16049 { { echo "$as_me:$LINENO: error: no, unable to link" >&5
16050echo "$as_me: error: no, unable to link" >&2;}
16051 { (exit 1); exit 1; }; }
16052 fi
16053 else
16054 { { echo "$as_me:$LINENO: error: no working perl found, or perl not version >= 5.8" >&5
16055echo "$as_me: error: no working perl found, or perl not version >= 5.8" >&2;}
16056 { (exit 1); exit 1; }; }
16057 fi
16058fi
16059
16060
16061
16062
16063
16064
16065if test "x$PERL_PLUGIN" != "x"; then
16066 PERL_PLUGIN_TRUE=
16067 PERL_PLUGIN_FALSE='#'
16068else
16069 PERL_PLUGIN_TRUE='#'
16070 PERL_PLUGIN_FALSE=
16071fi
16072
16073
16074
16075 cat >conftest.$ac_ext <<_ACEOF
16076/* confdefs.h. */
16077_ACEOF
16078cat confdefs.h >>conftest.$ac_ext
16079cat >>conftest.$ac_ext <<_ACEOF
16080/* end confdefs.h. */
16081
16082#include <EXTERN.h>
16083#include <perl.h>
16084#include <XSUB.h>
16085
16086int
16087main ()
16088{
16089
16090 PerlInterpreter *perl = perl_alloc ();
16091
16092 ;
16093 return 0;
16094}
16095_ACEOF
16096rm -f conftest.$ac_objext conftest$ac_exeext
16097if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16098 (eval $ac_link) 2>conftest.er1
16099 ac_status=$?
16100 grep -v '^ *+' conftest.er1 >conftest.err
16101 rm -f conftest.er1
16102 cat conftest.err >&5
16103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16104 (exit $ac_status); } &&
16105 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16107 (eval $ac_try) 2>&5
16108 ac_status=$?
16109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16110 (exit $ac_status); }; } &&
16111 { ac_try='test -s conftest$ac_exeext'
16112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16113 (eval $ac_try) 2>&5
16114 ac_status=$?
16115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16116 (exit $ac_status); }; }; then
16117 rxvt_perl_link=yes
16118else
16119 echo "$as_me: failed program was:" >&5
16120sed 's/^/| /' conftest.$ac_ext >&5
16121
16122rxvt_perl_link=no
16123fi
16124rm -f conftest.err conftest.$ac_objext \
16125 conftest$ac_exeext conftest.$ac_ext
16126if test x$support_perl = xyes; then
16127 support_frills=yes
16128fi
16129
26427############################################# 16130#############################################
26428# Plugin configuration 16131# Plugin configuration
26429echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 16132echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
26430echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 16133echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
26431if test "${ac_cv_lib_dl_dlopen+set}" = set; then 16134if test "${ac_cv_lib_dl_dlopen+set}" = set; then
27402 PYTHON_PLUGIN_FALSE= 17105 PYTHON_PLUGIN_FALSE=
27403fi 17106fi
27404 17107
27405 17108
27406 17109
27407 ac_config_files="$ac_config_files Makefile crossedit/Makefile crossedit/doc/Makefile crossedit/include/Makefile crossedit/Cnv/Makefile crossedit/bitmaps/Makefile doc/Makefile doc/Developers/Makefile doc/spell-docs/Makefile doc/spoiler/Makefile doc/spoiler-html/Makefile doc/playbook/Makefile doc/playbook-html/Makefile doc/scripts/Makefile lib/Makefile random_maps/Makefile socket/Makefile server/Makefile include/Makefile utils/Makefile lib/checkarch.pl lib/collect.pl utils/add_throw.perl utils/crossloop.tmpl utils/crossloop.pl.tmpl utils/metaserver.pl utils/crossloop.web utils/scores.pl utils/player_dl.pl common/Makefile plugins/Makefile plugins/cfpython/Makefile plugins/cfanim/Makefile devel/Makefile" 17110 ac_config_files="$ac_config_files Makefile crossedit/Makefile crossedit/doc/Makefile crossedit/include/Makefile crossedit/Cnv/Makefile crossedit/bitmaps/Makefile doc/Makefile doc/Developers/Makefile doc/spell-docs/Makefile doc/spoiler/Makefile doc/spoiler-html/Makefile doc/playbook/Makefile doc/playbook-html/Makefile doc/scripts/Makefile lib/Makefile random_maps/Makefile socket/Makefile server/Makefile include/Makefile utils/Makefile lib/checkarch.pl lib/collect.pl utils/add_throw.perl utils/crossloop.tmpl utils/crossloop.pl.tmpl utils/metaserver.pl utils/crossloop.web utils/scores.pl utils/player_dl.pl common/Makefile plugins/Makefile plugins/cfperl/Makefile plugins/cfpython/Makefile plugins/cfanim/Makefile devel/Makefile"
27408cat >confcache <<\_ACEOF 17111cat >confcache <<\_ACEOF
27409# This file is a shell script that caches the results of configure 17112# This file is a shell script that caches the results of configure
27410# tests run on this system so they can be shared between configure 17113# tests run on this system so they can be shared between configure
27411# scripts and configure runs, see configure's option --config-cache. 17114# scripts and configure runs, see configure's option --config-cache.
27412# It is not useful on other systems. If it contains results you don't 17115# It is not useful on other systems. If it contains results you don't
27515Usually this means the macro was only invoked conditionally." >&5 17218Usually this means the macro was only invoked conditionally." >&5
27516echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. 17219echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
27517Usually this means the macro was only invoked conditionally." >&2;} 17220Usually this means the macro was only invoked conditionally." >&2;}
27518 { (exit 1); exit 1; }; } 17221 { (exit 1); exit 1; }; }
27519fi 17222fi
27520if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
27521 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
27522Usually this means the macro was only invoked conditionally." >&5
27523echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
27524Usually this means the macro was only invoked conditionally." >&2;}
27525 { (exit 1); exit 1; }; }
27526fi
27527if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 17223if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
27528 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. 17224 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
27529Usually this means the macro was only invoked conditionally." >&5 17225Usually this means the macro was only invoked conditionally." >&5
27530echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. 17226echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
27531Usually this means the macro was only invoked conditionally." >&2;} 17227Usually this means the macro was only invoked conditionally." >&2;}
27533fi 17229fi
27534if test -z "${HAVE_X_TRUE}" && test -z "${HAVE_X_FALSE}"; then 17230if test -z "${HAVE_X_TRUE}" && test -z "${HAVE_X_FALSE}"; then
27535 { { echo "$as_me:$LINENO: error: conditional \"HAVE_X\" was never defined. 17231 { { echo "$as_me:$LINENO: error: conditional \"HAVE_X\" was never defined.
27536Usually this means the macro was only invoked conditionally." >&5 17232Usually this means the macro was only invoked conditionally." >&5
27537echo "$as_me: error: conditional \"HAVE_X\" was never defined. 17233echo "$as_me: error: conditional \"HAVE_X\" was never defined.
17234Usually this means the macro was only invoked conditionally." >&2;}
17235 { (exit 1); exit 1; }; }
17236fi
17237if test -z "${PERL_PLUGIN_TRUE}" && test -z "${PERL_PLUGIN_FALSE}"; then
17238 { { echo "$as_me:$LINENO: error: conditional \"PERL_PLUGIN\" was never defined.
17239Usually this means the macro was only invoked conditionally." >&5
17240echo "$as_me: error: conditional \"PERL_PLUGIN\" was never defined.
27538Usually this means the macro was only invoked conditionally." >&2;} 17241Usually this means the macro was only invoked conditionally." >&2;}
27539 { (exit 1); exit 1; }; } 17242 { (exit 1); exit 1; }; }
27540fi 17243fi
27541if test -z "${HAVE_LIBDL_TRUE}" && test -z "${HAVE_LIBDL_FALSE}"; then 17244if test -z "${HAVE_LIBDL_TRUE}" && test -z "${HAVE_LIBDL_FALSE}"; then
27542 { { echo "$as_me:$LINENO: error: conditional \"HAVE_LIBDL\" was never defined. 17245 { { echo "$as_me:$LINENO: error: conditional \"HAVE_LIBDL\" was never defined.
27985# INIT-COMMANDS section. 17688# INIT-COMMANDS section.
27986# 17689#
27987 17690
27988AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 17691AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
27989 17692
17693
17694# The HP-UX ksh and POSIX shell print the target directory to stdout
17695# if CDPATH is set.
17696if test "X${CDPATH+set}" = Xset; then CDPATH=${ZSH_VERSION+.}:; export CDPATH; fi
17697
17698sed_quote_subst='$sed_quote_subst'
17699double_quote_subst='$double_quote_subst'
17700delay_variable_subst='$delay_variable_subst'
17701macro_version='`$echo "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
17702macro_revision='`$echo "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
17703enable_shared='`$echo "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
17704enable_static='`$echo "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
17705pic_mode='`$echo "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
17706enable_fast_install='`$echo "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
17707host_alias='`$echo "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
17708host='`$echo "X$host" | $Xsed -e "$delay_single_quote_subst"`'
17709SED='`$echo "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
17710Xsed='`$echo "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
17711GREP='`$echo "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
17712EGREP='`$echo "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
17713LD='`$echo "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
17714reload_flag='`$echo "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
17715reload_cmds='`$echo "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17716NM='`$echo "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
17717LN_S='`$echo "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
17718deplibs_check_method='`$echo "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
17719file_magic_cmd='`$echo "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
17720AR='`$echo "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
17721AR_FLAGS='`$echo "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
17722STRIP='`$echo "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
17723RANLIB='`$echo "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
17724old_postinstall_cmds='`$echo "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17725old_postuninstall_cmds='`$echo "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17726old_archive_cmds='`$echo "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17727lt_cv_sys_max_cmd_len='`$echo "X$lt_cv_sys_max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
17728lt_cv_sys_global_symbol_pipe='`$echo "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
17729lt_cv_sys_global_symbol_to_cdecl='`$echo "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
17730lt_cv_sys_global_symbol_to_c_name_address='`$echo "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
17731ac_objext='`$echo "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
17732exeext='`$echo "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
17733objdir='`$echo "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
17734CC='`$echo "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
17735compiler='`$echo "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
17736GCC='`$echo "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
17737SHELL='`$echo "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
17738echo='`$echo "X$echo" | $Xsed -e "$delay_single_quote_subst"`'
17739MAGIC_CMD='`$echo "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
17740lt_prog_compiler_no_builtin_flag='`$echo "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
17741lt_prog_compiler_wl='`$echo "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
17742lt_prog_compiler_pic='`$echo "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
17743lt_prog_compiler_static='`$echo "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
17744lt_cv_prog_compiler_c_o='`$echo "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
17745need_locks='`$echo "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
17746libext='`$echo "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
17747shrext_cmds='`$echo "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17748extract_expsyms_cmds='`$echo "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17749variables_saved_for_relink='`$echo "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
17750archive_cmds_need_lc='`$echo "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
17751enable_shared_with_static_runtimes='`$echo "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
17752export_dynamic_flag_spec='`$echo "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
17753whole_archive_flag_spec='`$echo "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
17754old_archive_from_new_cmds='`$echo "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17755old_archive_from_expsyms_cmds='`$echo "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17756archive_cmds='`$echo "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17757archive_expsym_cmds='`$echo "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17758module_cmds='`$echo "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17759module_expsym_cmds='`$echo "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17760allow_undefined_flag='`$echo "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
17761no_undefined_flag='`$echo "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
17762hardcode_libdir_flag_spec='`$echo "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
17763hardcode_libdir_flag_spec_ld='`$echo "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
17764hardcode_libdir_separator='`$echo "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
17765hardcode_direct='`$echo "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
17766hardcode_minus_L='`$echo "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
17767hardcode_shlibpath_var='`$echo "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
17768hardcode_automatic='`$echo "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
17769inherit_rpath='`$echo "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
17770link_all_deplibs='`$echo "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
17771fix_srcfile_path='`$echo "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
17772always_export_symbols='`$echo "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
17773export_symbols_cmds='`$echo "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17774exclude_expsyms='`$echo "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
17775include_expsyms='`$echo "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
17776need_lib_prefix='`$echo "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
17777need_version='`$echo "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
17778version_type='`$echo "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
17779runpath_var='`$echo "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
17780shlibpath_var='`$echo "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
17781shlibpath_overrides_runpath='`$echo "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
17782libname_spec='`$echo "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
17783library_names_spec='`$echo "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
17784soname_spec='`$echo "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
17785postinstall_cmds='`$echo "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17786postuninstall_cmds='`$echo "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17787finish_cmds='`$echo "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17788finish_eval='`$echo "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
17789hardcode_into_libs='`$echo "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
17790sys_lib_search_path_spec='`$echo "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
17791sys_lib_dlsearch_path_spec='`$echo "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
17792hardcode_action='`$echo "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
17793old_striplib='`$echo "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
17794striplib='`$echo "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
17795enable_dlopen='`$echo "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
17796enable_dlopen_self='`$echo "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
17797enable_dlopen_self_static='`$echo "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
17798
17799LTCC='$LTCC'
17800compiler='$compiler_DEFAULT'
17801
17802# Quote evaled strings.
17803for var in SED GREP EGREP LD reload_flag NM LN_S deplibs_check_method file_magic_cmd AR AR_FLAGS STRIP RANLIB lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl lt_cv_sys_global_symbol_to_c_name_address CC compiler SHELL echo lt_prog_compiler_no_builtin_flag lt_prog_compiler_wl lt_prog_compiler_pic lt_prog_compiler_static lt_cv_prog_compiler_c_o need_locks shrext_cmds variables_saved_for_relink export_dynamic_flag_spec whole_archive_flag_spec allow_undefined_flag no_undefined_flag hardcode_libdir_flag_spec hardcode_libdir_flag_spec_ld hardcode_libdir_separator fix_srcfile_path exclude_expsyms include_expsyms libname_spec library_names_spec soname_spec finish_eval old_striplib striplib; do
17804 eval "lt_\$var=\\\\\\"\\\`\\\$echo \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
17805done
17806
17807# Double-quote double-evaled strings.
17808for var in reload_cmds old_postinstall_cmds old_postuninstall_cmds old_archive_cmds extract_expsyms_cmds old_archive_from_new_cmds old_archive_from_expsyms_cmds archive_cmds archive_expsym_cmds module_cmds module_expsym_cmds export_symbols_cmds postinstall_cmds postuninstall_cmds finish_cmds sys_lib_search_path_spec sys_lib_dlsearch_path_spec; do
17809 eval "lt_\$var=\\\\\\"\\\`\\\$echo \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
17810done
17811
17812# Fix-up fallback echo if it was mangled by the above quoting rules.
17813case \$lt_echo in
17814*'\\\$0 --fallback-echo"') lt_echo=\`\$echo "X\$lt_echo" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
17815 ;;
17816esac
17817
17818ac_aux_dir='$ac_aux_dir'
17819
17820# See if we are running on zsh, and set the options which allow our
17821# commands through without removal of \ escapes INIT.
17822if test -n "\${ZSH_VERSION+set}" ; then
17823 setopt NO_GLOB_SUBST
17824fi
17825
17826
17827 PACKAGE='$PACKAGE'
17828 VERSION='$VERSION'
17829 TIMESTAMP='$TIMESTAMP'
17830 rm='$rm'
17831 ofile='$ofile'
17832
17833
17834
17835
27990_ACEOF 17836_ACEOF
27991 17837
27992 17838
27993 17839
27994cat >>$CONFIG_STATUS <<\_ACEOF 17840cat >>$CONFIG_STATUS <<\_ACEOF
28025 "utils/crossloop.web" ) CONFIG_FILES="$CONFIG_FILES utils/crossloop.web" ;; 17871 "utils/crossloop.web" ) CONFIG_FILES="$CONFIG_FILES utils/crossloop.web" ;;
28026 "utils/scores.pl" ) CONFIG_FILES="$CONFIG_FILES utils/scores.pl" ;; 17872 "utils/scores.pl" ) CONFIG_FILES="$CONFIG_FILES utils/scores.pl" ;;
28027 "utils/player_dl.pl" ) CONFIG_FILES="$CONFIG_FILES utils/player_dl.pl" ;; 17873 "utils/player_dl.pl" ) CONFIG_FILES="$CONFIG_FILES utils/player_dl.pl" ;;
28028 "common/Makefile" ) CONFIG_FILES="$CONFIG_FILES common/Makefile" ;; 17874 "common/Makefile" ) CONFIG_FILES="$CONFIG_FILES common/Makefile" ;;
28029 "plugins/Makefile" ) CONFIG_FILES="$CONFIG_FILES plugins/Makefile" ;; 17875 "plugins/Makefile" ) CONFIG_FILES="$CONFIG_FILES plugins/Makefile" ;;
17876 "plugins/cfperl/Makefile" ) CONFIG_FILES="$CONFIG_FILES plugins/cfperl/Makefile" ;;
28030 "plugins/cfpython/Makefile" ) CONFIG_FILES="$CONFIG_FILES plugins/cfpython/Makefile" ;; 17877 "plugins/cfpython/Makefile" ) CONFIG_FILES="$CONFIG_FILES plugins/cfpython/Makefile" ;;
28031 "plugins/cfanim/Makefile" ) CONFIG_FILES="$CONFIG_FILES plugins/cfanim/Makefile" ;; 17878 "plugins/cfanim/Makefile" ) CONFIG_FILES="$CONFIG_FILES plugins/cfanim/Makefile" ;;
28032 "devel/Makefile" ) CONFIG_FILES="$CONFIG_FILES devel/Makefile" ;; 17879 "devel/Makefile" ) CONFIG_FILES="$CONFIG_FILES devel/Makefile" ;;
28033 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 17880 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17881 "libtool" ) CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
28034 "include/autoconf.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/autoconf.h" ;; 17882 "include/autoconf.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/autoconf.h" ;;
28035 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 17883 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
28036echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 17884echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
28037 { (exit 1); exit 1; }; };; 17885 { (exit 1); exit 1; }; };;
28038 esac 17886 esac
28140s,@am__tar@,$am__tar,;t t 17988s,@am__tar@,$am__tar,;t t
28141s,@am__untar@,$am__untar,;t t 17989s,@am__untar@,$am__untar,;t t
28142s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t 17990s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
28143s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t 17991s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
28144s,@MAINT@,$MAINT,;t t 17992s,@MAINT@,$MAINT,;t t
17993s,@LIBTOOL@,$LIBTOOL,;t t
28145s,@build@,$build,;t t 17994s,@build@,$build,;t t
28146s,@build_cpu@,$build_cpu,;t t 17995s,@build_cpu@,$build_cpu,;t t
28147s,@build_vendor@,$build_vendor,;t t 17996s,@build_vendor@,$build_vendor,;t t
28148s,@build_os@,$build_os,;t t 17997s,@build_os@,$build_os,;t t
28149s,@host@,$host,;t t 17998s,@host@,$host,;t t
28164s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t 18013s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
28165s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t 18014s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
28166s,@CCDEPMODE@,$CCDEPMODE,;t t 18015s,@CCDEPMODE@,$CCDEPMODE,;t t
28167s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t 18016s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
28168s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t 18017s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
18018s,@SED@,$SED,;t t
28169s,@EGREP@,$EGREP,;t t 18019s,@EGREP@,$EGREP,;t t
18020s,@LD@,$LD,;t t
18021s,@NM@,$NM,;t t
28170s,@LN_S@,$LN_S,;t t 18022s,@LN_S@,$LN_S,;t t
28171s,@ECHO@,$ECHO,;t t
28172s,@AR@,$AR,;t t 18023s,@AR@,$AR,;t t
28173s,@ac_ct_AR@,$ac_ct_AR,;t t 18024s,@ac_ct_AR@,$ac_ct_AR,;t t
28174s,@RANLIB@,$RANLIB,;t t 18025s,@RANLIB@,$RANLIB,;t t
28175s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t 18026s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
18027s,@ECHO@,$ECHO,;t t
28176s,@CPP@,$CPP,;t t 18028s,@CPP@,$CPP,;t t
28177s,@CXX@,$CXX,;t t
28178s,@CXXFLAGS@,$CXXFLAGS,;t t
28179s,@ac_ct_CXX@,$ac_ct_CXX,;t t
28180s,@CXXDEPMODE@,$CXXDEPMODE,;t t
28181s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
28182s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
28183s,@CXXCPP@,$CXXCPP,;t t
28184s,@F77@,$F77,;t t
28185s,@FFLAGS@,$FFLAGS,;t t
28186s,@ac_ct_F77@,$ac_ct_F77,;t t
28187s,@LIBTOOL@,$LIBTOOL,;t t
28188s,@LEX@,$LEX,;t t 18029s,@LEX@,$LEX,;t t
28189s,@LEXLIB@,$LEXLIB,;t t 18030s,@LEXLIB@,$LEXLIB,;t t
28190s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t 18031s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
28191s,@LATEX@,$LATEX,;t t 18032s,@LATEX@,$LATEX,;t t
28192s,@GZIP@,$GZIP,;t t 18033s,@GZIP@,$GZIP,;t t
28209s,@HAVE_X_TRUE@,$HAVE_X_TRUE,;t t 18050s,@HAVE_X_TRUE@,$HAVE_X_TRUE,;t t
28210s,@HAVE_X_FALSE@,$HAVE_X_FALSE,;t t 18051s,@HAVE_X_FALSE@,$HAVE_X_FALSE,;t t
28211s,@X11LIBS@,$X11LIBS,;t t 18052s,@X11LIBS@,$X11LIBS,;t t
28212s,@pkgstatedir@,$pkgstatedir,;t t 18053s,@pkgstatedir@,$pkgstatedir,;t t
28213s,@pkgconfdir@,$pkgconfdir,;t t 18054s,@pkgconfdir@,$pkgconfdir,;t t
18055s,@PERLLIB@,$PERLLIB,;t t
18056s,@PERLFLAGS@,$PERLFLAGS,;t t
18057s,@PERLPRIVLIBEXP@,$PERLPRIVLIBEXP,;t t
18058s,@PERL_PLUGIN_TRUE@,$PERL_PLUGIN_TRUE,;t t
18059s,@PERL_PLUGIN_FALSE@,$PERL_PLUGIN_FALSE,;t t
18060s,@PERL_PLUGIN@,$PERL_PLUGIN,;t t
28214s,@HAVE_LIBDL_TRUE@,$HAVE_LIBDL_TRUE,;t t 18061s,@HAVE_LIBDL_TRUE@,$HAVE_LIBDL_TRUE,;t t
28215s,@HAVE_LIBDL_FALSE@,$HAVE_LIBDL_FALSE,;t t 18062s,@HAVE_LIBDL_FALSE@,$HAVE_LIBDL_FALSE,;t t
28216s,@PYTHON_LIB@,$PYTHON_LIB,;t t 18063s,@PYTHON_LIB@,$PYTHON_LIB,;t t
28217s,@PY_LIBS@,$PY_LIBS,;t t 18064s,@PY_LIBS@,$PY_LIBS,;t t
28218s,@PY_INCLUDES@,$PY_INCLUDES,;t t 18065s,@PY_INCLUDES@,$PY_INCLUDES,;t t
28901 # echo "creating $dirpart/$file" 18748 # echo "creating $dirpart/$file"
28902 echo '# dummy' > "$dirpart/$file" 18749 echo '# dummy' > "$dirpart/$file"
28903 done 18750 done
28904done 18751done
28905 ;; 18752 ;;
18753 libtool )
18754
18755 # See if we are running on zsh, and set the options which allow our
18756 # commands through without removal of \ escapes.
18757 if test -n "${ZSH_VERSION+set}" ; then
18758 setopt NO_GLOB_SUBST
18759 fi
18760
18761 cfgfile="${ofile}T"
18762 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
18763 $rm -f "$cfgfile"
18764
18765 cat <<_LT_EOF >> "$cfgfile"
18766#! $SHELL
18767
18768# `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
18769# Generated automatically by config.status (GNU $PACKAGE$TIMESTAMP) $VERSION
18770# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18771# NOTE: Changes made to this file will be lost: look at ltmain.sh.
18772#
18773# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004
18774# Free Software Foundation, Inc.
18775#
18776# This file is part of GNU Libtool:
18777# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
18778#
18779# This program is free software; you can redistribute it and/or modify
18780# it under the terms of the GNU General Public License as published by
18781# the Free Software Foundation; either version 2 of the License, or
18782# (at your option) any later version.
18783#
18784# This program is distributed in the hope that it will be useful, but
18785# WITHOUT ANY WARRANTY; without even the implied warranty of
18786# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18787# General Public License for more details.
18788#
18789# You should have received a copy of the GNU General Public License
18790# along with this program; if not, write to the Free Software
18791# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
18792#
18793# As a special exception to the GNU General Public License, if you
18794# distribute this file as part of a program that contains a
18795# configuration script generated by Autoconf, you may include it under
18796# the same distribution terms that you use for the rest of that program.
18797
18798
18799
18800# The names of the tagged configurations supported by this script.
18801available_tags=""
18802
18803# ### BEGIN LIBTOOL CONFIG
18804
18805# Which release of libtool.m4 was used?
18806macro_version=$macro_version
18807macro_revision=$macro_revision
18808
18809# Whether or not to build shared libraries.
18810build_libtool_libs=$enable_shared
18811
18812# Whether or not to build static libraries.
18813build_old_libs=$enable_static
18814
18815# What type of objects to build.
18816pic_mode=$pic_mode
18817
18818# Whether or not to optimize for fast installation.
18819fast_install=$enable_fast_install
18820
18821# The host system.
18822host_alias=$host_alias
18823host=$host
18824
18825# A sed program that does not truncate output.
18826SED=$lt_SED
18827
18828# Sed that helps us avoid accidentally triggering echo(1) options like -n.
18829Xsed="\$SED -e s/^X//"
18830
18831# A grep program that handles long line.
18832GREP=$lt_GREP
18833
18834# An ERE matcher.
18835EGREP=$lt_EGREP
18836
18837# How to create reloadable object files.
18838reload_flag=$lt_reload_flag
18839reload_cmds=$lt_reload_cmds
18840
18841# A BSD-compatible nm program.
18842NM=$lt_NM
18843
18844# Whether we need soft or hard links.
18845LN_S=$lt_LN_S
18846
18847# Method to check whether dependent libraries are shared objects.
18848deplibs_check_method=$lt_deplibs_check_method
18849
18850# Command to use when deplibs_check_method == "file_magic".
18851file_magic_cmd=$lt_file_magic_cmd
18852
18853# The archiver.
18854AR=$lt_AR
18855AR_FLAGS=$lt_AR_FLAGS
18856
18857# A symbol stripping program.
18858STRIP=$lt_STRIP
18859
18860# Commands used to install an old-style archive.
18861RANLIB=$lt_RANLIB
18862old_postinstall_cmds=$lt_old_postinstall_cmds
18863old_postuninstall_cmds=$lt_old_postuninstall_cmds
18864
18865# What is the maximum length of a command?
18866max_cmd_len=$lt_cv_sys_max_cmd_len
18867
18868# Take the output of nm and produce a listing of raw symbols and C names.
18869global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18870
18871# Transform the output of nm in a proper C declaration.
18872global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18873
18874# Transform the output of nm in a C name address pair.
18875global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18876
18877# Object file suffix (normally "o").
18878objext=$ac_objext
18879
18880# Executable file suffix (normally "").
18881exeext=$exeext
18882
18883# The name of the directory that contains temporary libtool files.
18884objdir=$objdir
18885
18886# A C compiler.
18887LTCC=$lt_CC
18888
18889# Shell to use when invoking shell scripts.
18890SHELL=$lt_SHELL
18891
18892# An echo program that does not interpret backslashes.
18893echo=$lt_echo
18894
18895# Used to examine libraries when file_magic_cmd begins "file".
18896MAGIC_CMD=$MAGIC_CMD
18897
18898# Does compiler simultaneously support -c and -o options?
18899compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18900
18901# Must we lock files when doing compilation?
18902need_locks=$lt_need_locks
18903
18904# Old archive suffix (normally "a").
18905libext=$libext
18906
18907# Shared library suffix (normally ".so").
18908shrext_cmds=$lt_shrext_cmds
18909
18910# The commands to extract the exported symbol list from a shared archive.
18911extract_expsyms_cmds=$lt_extract_expsyms_cmds
18912
18913# Variables whose values should be saved in libtool wrapper scripts and
18914# restored at link time.
18915variables_saved_for_relink=$lt_variables_saved_for_relink
18916
18917# Do we need the "lib" prefix for modules?
18918need_lib_prefix=$need_lib_prefix
18919
18920# Do we need a version for libraries?
18921need_version=$need_version
18922
18923# Library versioning type.
18924version_type=$version_type
18925
18926# Shared library runtime path variable.
18927runpath_var=$runpath_var
18928
18929# Shared library path variable.
18930shlibpath_var=$shlibpath_var
18931
18932# Is shibpath searched before the hard-coded library search path?
18933shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18934
18935# Format of library name prefix.
18936libname_spec=$lt_libname_spec
18937
18938# List of archive names. First name is the real one,the rest are links.
18939# The last name is the one that the linker finds with -lNAME
18940library_names_spec=$lt_library_names_spec
18941
18942# The coded name of the library,if different from the real name.
18943soname_spec=$lt_soname_spec
18944
18945# Command to use after installation of a shared archive.
18946postinstall_cmds=$lt_postinstall_cmds
18947
18948# Command to use after uninstallation of a shared archive.
18949postuninstall_cmds=$lt_postuninstall_cmds
18950
18951# Commands used to finish a libtool library installation in a directory.
18952finish_cmds=$lt_finish_cmds
18953
18954# As "finish_cmds",except a single script fragment to be evaled but
18955# not shown.
18956finish_eval=$lt_finish_eval
18957
18958# Whether we should hardcode library paths into libraries.
18959hardcode_into_libs=$hardcode_into_libs
18960
18961# Compile-time system search path for libraries.
18962sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18963
18964# Run-time system search path for libraries.
18965sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18966
18967# Commands to strip libraries.
18968old_striplib=$lt_old_striplib
18969striplib=$lt_striplib
18970
18971# Whether dlopen is supported.
18972dlopen_support=$enable_dlopen
18973
18974# Whether dlopen of programs is supported.
18975dlopen_self=$enable_dlopen_self
18976
18977# Whether dlopen of statically linked programs is supported.
18978dlopen_self_static=$enable_dlopen_self_static
18979
18980
18981# The linker used to build libraries.
18982LD=$lt_LD
18983
18984# Commands used to build an old-style archive.
18985old_archive_cmds=$lt_old_archive_cmds
18986
18987# A language specific compiler.
18988CC=$lt_compiler
18989
18990# Is the compiler the GNU C compiler?
18991with_gcc=$GCC
18992
18993# Compiler flag to turn off builtin functions.
18994no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18995
18996# How to pass a linker flag through the compiler.
18997wl=$lt_lt_prog_compiler_wl
18998
18999# Additional compiler flags for building library objects.
19000pic_flag=$lt_lt_prog_compiler_pic
19001
19002# Compiler flag to prevent dynamic linking.
19003link_static_flag=$lt_lt_prog_compiler_static
19004
19005# Whether or not to add -lc for building shared libraries.
19006build_libtool_need_lc=$archive_cmds_need_lc
19007
19008# Whether or not to disallow shared libs when runtime libs are static.
19009allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
19010
19011# Compiler flag to allow reflexive dlopens.
19012export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
19013
19014# Compiler flag to generate shared objects directly from archives.
19015whole_archive_flag_spec=$lt_whole_archive_flag_spec
19016
19017# Create an old-style archive from a shared archive.
19018old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
19019
19020# Create a temporary old-style archive to link instead of a shared archive.
19021old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
19022
19023# Commands used to build a shared archive.
19024archive_cmds=$lt_archive_cmds
19025archive_expsym_cmds=$lt_archive_expsym_cmds
19026
19027# Commands used to build a loadable module if different from building
19028# a shared archive.
19029module_cmds=$lt_module_cmds
19030module_expsym_cmds=$lt_module_expsym_cmds
19031
19032# Flag that allows shared libraries with undefined symbols to be built.
19033allow_undefined_flag=$lt_allow_undefined_flag
19034
19035# Flag that enforces no undefined symbols.
19036no_undefined_flag=$lt_no_undefined_flag
19037
19038# Flag to hardcode $libdir into a binary during linking.
19039# This must work even if $libdir does not exist
19040hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
19041
19042# If ld is used when linking,flag to hardcode $libdir into a binary
19043# during linking. This must work even if $libdir does not exist.
19044hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
19045
19046# Whether we need a single "-rpath" flag with a separated argument.
19047hardcode_libdir_separator=$lt_hardcode_libdir_separator
19048
19049# Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
19050# DIR into the resulting binary.
19051hardcode_direct=$hardcode_direct
19052
19053# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19054# into the resulting binary.
19055hardcode_minus_L=$hardcode_minus_L
19056
19057# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19058# into the resulting binary.
19059hardcode_shlibpath_var=$hardcode_shlibpath_var
19060
19061# Set to "yes" if building a shared library automatically hardcodes DIR
19062# into the library and all subsequent libraries and executables linked
19063# against it.
19064hardcode_automatic=$hardcode_automatic
19065
19066# Set to yes if linker adds runtime paths of dependent libraries
19067# to runtime path list.
19068inherit_rpath=$inherit_rpath
19069
19070# Whether libtool must link a program against all its dependency libraries.
19071link_all_deplibs=$link_all_deplibs
19072
19073# Fix the shell variable $srcfile for the compiler.
19074fix_srcfile_path=$lt_fix_srcfile_path
19075
19076# Set to "yes" if exported symbols are required.
19077always_export_symbols=$always_export_symbols
19078
19079# The commands to list exported symbols.
19080export_symbols_cmds=$lt_export_symbols_cmds
19081
19082# Symbols that should not be listed in the preloaded symbols.
19083exclude_expsyms=$lt_exclude_expsyms
19084
19085# Symbols that must always be exported.
19086include_expsyms=$lt_include_expsyms
19087
19088# How to hardcode a shared library path into an executable.
19089hardcode_action=$hardcode_action
19090
19091# ### END LIBTOOL CONFIG
19092
19093# The HP-UX ksh and POSIX shell print the target directory to stdout
19094# if CDPATH is set.
19095if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
19096
19097_LT_EOF
19098
19099 case $host_os in
19100 aix3*)
19101 cat <<\_LT_EOF >> "$cfgfile"
19102# AIX sometimes has problems with the GCC collect2 program. For some
19103# reason, if we set the COLLECT_NAMES environment variable, the problems
19104# vanish in a puff of smoke.
19105if test "X${COLLECT_NAMES+set}" != Xset; then
19106 COLLECT_NAMES=
19107 export COLLECT_NAMES
19108fi
19109_LT_EOF
19110 ;;
19111 esac
19112
19113
19114case $ac_aux_dir in
19115 $srcdir) ltmain=./ltmain.sh ;;
19116 $srcdir/*) ltmain=`expr "$ac_aux_dir" : "$srcdir/\(.*\)"`/ltmain.sh ;;
19117esac
19118test -f "$ltmain" || ltmain="$ac_aux_dir/ltmain.sh"
19119
19120
19121 # We use sed instead of cat because bash on DJGPP gets confused if
19122 # if finds mixed CR/LF and LF-only lines. Since sed operates in
19123 # text mode, it properly converts lines to CR/LF. This bash problem
19124 # is reportedly fixed, but why not run on old versions too?
19125 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
19126
19127 mv -f "$cfgfile" "$ofile" ||
19128 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19129 chmod +x "$ofile"
19130
19131 ;;
28906 esac 19132 esac
28907done 19133done
28908_ACEOF 19134_ACEOF
28909 19135
28910cat >>$CONFIG_STATUS <<\_ACEOF 19136cat >>$CONFIG_STATUS <<\_ACEOF

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines