cannam@86: #! /bin/sh cannam@86: # Guess values for system-dependent variables and create Makefiles. cannam@86: # Generated by GNU Autoconf 2.59. cannam@86: # cannam@86: # Copyright (C) 2003 Free Software Foundation, Inc. cannam@86: # This configure script is free software; the Free Software Foundation cannam@86: # gives unlimited permission to copy, distribute and modify it. cannam@86: ## --------------------- ## cannam@86: ## M4sh Initialization. ## cannam@86: ## --------------------- ## cannam@86: cannam@86: # Be Bourne compatible cannam@86: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then cannam@86: emulate sh cannam@86: NULLCMD=: cannam@86: # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which cannam@86: # is contrary to our usage. Disable this feature. cannam@86: alias -g '${1+"$@"}'='"$@"' cannam@86: elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then cannam@86: set -o posix cannam@86: fi cannam@86: DUALCASE=1; export DUALCASE # for MKS sh cannam@86: cannam@86: # Support unset when possible. cannam@86: if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then cannam@86: as_unset=unset cannam@86: else cannam@86: as_unset=false cannam@86: fi cannam@86: cannam@86: cannam@86: # Work around bugs in pre-3.0 UWIN ksh. cannam@86: $as_unset ENV MAIL MAILPATH cannam@86: PS1='$ ' cannam@86: PS2='> ' cannam@86: PS4='+ ' cannam@86: cannam@86: # NLS nuisances. cannam@86: for as_var in \ cannam@86: LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ cannam@86: LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ cannam@86: LC_TELEPHONE LC_TIME cannam@86: do cannam@86: if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then cannam@86: eval $as_var=C; export $as_var cannam@86: else cannam@86: $as_unset $as_var cannam@86: fi cannam@86: done cannam@86: cannam@86: # Required to use basename. cannam@86: if expr a : '\(a\)' >/dev/null 2>&1; then cannam@86: as_expr=expr cannam@86: else cannam@86: as_expr=false cannam@86: fi cannam@86: cannam@86: if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then cannam@86: as_basename=basename cannam@86: else cannam@86: as_basename=false cannam@86: fi cannam@86: cannam@86: cannam@86: # Name of the executable. cannam@86: as_me=`$as_basename "$0" || cannam@86: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ cannam@86: X"$0" : 'X\(//\)$' \| \ cannam@86: X"$0" : 'X\(/\)$' \| \ cannam@86: . : '\(.\)' 2>/dev/null || cannam@86: echo X/"$0" | cannam@86: sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } cannam@86: /^X\/\(\/\/\)$/{ s//\1/; q; } cannam@86: /^X\/\(\/\).*/{ s//\1/; q; } cannam@86: s/.*/./; q'` cannam@86: cannam@86: cannam@86: # PATH needs CR, and LINENO needs CR and PATH. cannam@86: # Avoid depending upon Character Ranges. cannam@86: as_cr_letters='abcdefghijklmnopqrstuvwxyz' cannam@86: as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' cannam@86: as_cr_Letters=$as_cr_letters$as_cr_LETTERS cannam@86: as_cr_digits='0123456789' cannam@86: as_cr_alnum=$as_cr_Letters$as_cr_digits cannam@86: cannam@86: # The user is always right. cannam@86: if test "${PATH_SEPARATOR+set}" != set; then cannam@86: echo "#! /bin/sh" >conf$$.sh cannam@86: echo "exit 0" >>conf$$.sh cannam@86: chmod +x conf$$.sh cannam@86: if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then cannam@86: PATH_SEPARATOR=';' cannam@86: else cannam@86: PATH_SEPARATOR=: cannam@86: fi cannam@86: rm -f conf$$.sh cannam@86: fi cannam@86: cannam@86: cannam@86: as_lineno_1=$LINENO cannam@86: as_lineno_2=$LINENO cannam@86: as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` cannam@86: test "x$as_lineno_1" != "x$as_lineno_2" && cannam@86: test "x$as_lineno_3" = "x$as_lineno_2" || { cannam@86: # Find who we are. Look in the path if we contain no path at all cannam@86: # relative or not. cannam@86: case $0 in cannam@86: *[\\/]* ) as_myself=$0 ;; cannam@86: *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR cannam@86: for as_dir in $PATH cannam@86: do cannam@86: IFS=$as_save_IFS cannam@86: test -z "$as_dir" && as_dir=. cannam@86: test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break cannam@86: done cannam@86: cannam@86: ;; cannam@86: esac cannam@86: # We did not find ourselves, most probably we were run as `sh COMMAND' cannam@86: # in which case we are not to be found in the path. cannam@86: if test "x$as_myself" = x; then cannam@86: as_myself=$0 cannam@86: fi cannam@86: if test ! -f "$as_myself"; then cannam@86: { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2 cannam@86: { (exit 1); exit 1; }; } cannam@86: fi cannam@86: case $CONFIG_SHELL in cannam@86: '') cannam@86: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR cannam@86: for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH cannam@86: do cannam@86: IFS=$as_save_IFS cannam@86: test -z "$as_dir" && as_dir=. cannam@86: for as_base in sh bash ksh sh5; do cannam@86: case $as_dir in cannam@86: /*) cannam@86: if ("$as_dir/$as_base" -c ' cannam@86: as_lineno_1=$LINENO cannam@86: as_lineno_2=$LINENO cannam@86: as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` cannam@86: test "x$as_lineno_1" != "x$as_lineno_2" && cannam@86: test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then cannam@86: $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } cannam@86: $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } cannam@86: CONFIG_SHELL=$as_dir/$as_base cannam@86: export CONFIG_SHELL cannam@86: exec "$CONFIG_SHELL" "$0" ${1+"$@"} cannam@86: fi;; cannam@86: esac cannam@86: done cannam@86: done cannam@86: ;; cannam@86: esac cannam@86: cannam@86: # Create $as_me.lineno as a copy of $as_myself, but with $LINENO cannam@86: # uniformly replaced by the line number. The first 'sed' inserts a cannam@86: # line-number line before each line; the second 'sed' does the real cannam@86: # work. The second script uses 'N' to pair each line-number line cannam@86: # with the numbered line, and appends trailing '-' during cannam@86: # substitution so that $LINENO is not a special case at line end. cannam@86: # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the cannam@86: # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) cannam@86: sed '=' <$as_myself | cannam@86: sed ' cannam@86: N cannam@86: s,$,-, cannam@86: : loop cannam@86: s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, cannam@86: t loop cannam@86: s,-$,, cannam@86: s,^['$as_cr_digits']*\n,, cannam@86: ' >$as_me.lineno && cannam@86: chmod +x $as_me.lineno || cannam@86: { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 cannam@86: { (exit 1); exit 1; }; } cannam@86: cannam@86: # Don't try to exec as it changes $[0], causing all sort of problems cannam@86: # (the dirname of $[0] is not the place where we might find the cannam@86: # original and so on. Autoconf is especially sensible to this). cannam@86: . ./$as_me.lineno cannam@86: # Exit status is that of the last command. cannam@86: exit cannam@86: } cannam@86: cannam@86: cannam@86: case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in cannam@86: *c*,-n*) ECHO_N= ECHO_C=' cannam@86: ' ECHO_T=' ' ;; cannam@86: *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; cannam@86: *) ECHO_N= ECHO_C='\c' ECHO_T= ;; cannam@86: esac cannam@86: cannam@86: if expr a : '\(a\)' >/dev/null 2>&1; then cannam@86: as_expr=expr cannam@86: else cannam@86: as_expr=false cannam@86: fi cannam@86: cannam@86: rm -f conf$$ conf$$.exe conf$$.file cannam@86: echo >conf$$.file cannam@86: if ln -s conf$$.file conf$$ 2>/dev/null; then cannam@86: # We could just check for DJGPP; but this test a) works b) is more generic cannam@86: # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). cannam@86: if test -f conf$$.exe; then cannam@86: # Don't use ln at all; we don't have any links cannam@86: as_ln_s='cp -p' cannam@86: else cannam@86: as_ln_s='ln -s' cannam@86: fi cannam@86: elif ln conf$$.file conf$$ 2>/dev/null; then cannam@86: as_ln_s=ln cannam@86: else cannam@86: as_ln_s='cp -p' cannam@86: fi cannam@86: rm -f conf$$ conf$$.exe conf$$.file cannam@86: cannam@86: if mkdir -p . 2>/dev/null; then cannam@86: as_mkdir_p=: cannam@86: else cannam@86: test -d ./-p && rmdir ./-p cannam@86: as_mkdir_p=false cannam@86: fi cannam@86: cannam@86: as_executable_p="test -f" cannam@86: cannam@86: # Sed expression to map a string onto a valid CPP name. cannam@86: as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" cannam@86: cannam@86: # Sed expression to map a string onto a valid variable name. cannam@86: as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" cannam@86: cannam@86: cannam@86: # IFS cannam@86: # We need space, tab and new line, in precisely that order. cannam@86: as_nl=' cannam@86: ' cannam@86: IFS=" $as_nl" cannam@86: cannam@86: # CDPATH. cannam@86: $as_unset CDPATH cannam@86: cannam@86: cannam@86: cannam@86: # Check that we are running under the correct shell. cannam@86: SHELL=${CONFIG_SHELL-/bin/sh} cannam@86: cannam@86: case X$ECHO in cannam@86: X*--fallback-echo) cannam@86: # Remove one level of quotation (which was required for Make). cannam@86: ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','` cannam@86: ;; cannam@86: esac cannam@86: cannam@86: echo=${ECHO-echo} cannam@86: if test "X$1" = X--no-reexec; then cannam@86: # Discard the --no-reexec flag, and continue. cannam@86: shift cannam@86: elif test "X$1" = X--fallback-echo; then cannam@86: # Avoid inline document here, it may be left over cannam@86: : cannam@86: elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then cannam@86: # Yippee, $echo works! cannam@86: : cannam@86: else cannam@86: # Restart under the correct shell. cannam@86: exec $SHELL "$0" --no-reexec ${1+"$@"} cannam@86: fi cannam@86: cannam@86: if test "X$1" = X--fallback-echo; then cannam@86: # used as fallback echo cannam@86: shift cannam@86: cat </dev/null 2>&1 && unset CDPATH cannam@86: cannam@86: if test -z "$ECHO"; then cannam@86: if test "X${echo_test_string+set}" != Xset; then cannam@86: # find a string as large as possible, as long as the shell can cope with it cannam@86: for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do cannam@86: # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... cannam@86: if (echo_test_string="`eval $cmd`") 2>/dev/null && cannam@86: echo_test_string="`eval $cmd`" && cannam@86: (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null cannam@86: then cannam@86: break cannam@86: fi cannam@86: done cannam@86: fi cannam@86: cannam@86: if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && cannam@86: echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && cannam@86: test "X$echo_testing_string" = "X$echo_test_string"; then cannam@86: : cannam@86: else cannam@86: # The Solaris, AIX, and Digital Unix default echo programs unquote cannam@86: # backslashes. This makes it impossible to quote backslashes using cannam@86: # echo "$something" | sed 's/\\/\\\\/g' cannam@86: # cannam@86: # So, first we look for a working echo in the user's PATH. cannam@86: cannam@86: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR cannam@86: for dir in $PATH /usr/ucb; do cannam@86: IFS="$lt_save_ifs" cannam@86: if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && cannam@86: test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && cannam@86: echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && cannam@86: test "X$echo_testing_string" = "X$echo_test_string"; then cannam@86: echo="$dir/echo" cannam@86: break cannam@86: fi cannam@86: done cannam@86: IFS="$lt_save_ifs" cannam@86: cannam@86: if test "X$echo" = Xecho; then cannam@86: # We didn't find a better echo, so look for alternatives. cannam@86: if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' && cannam@86: echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` && cannam@86: test "X$echo_testing_string" = "X$echo_test_string"; then cannam@86: # This shell has a builtin print -r that does the trick. cannam@86: echo='print -r' cannam@86: elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) && cannam@86: test "X$CONFIG_SHELL" != X/bin/ksh; then cannam@86: # If we have ksh, try running configure again with it. cannam@86: ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} cannam@86: export ORIGINAL_CONFIG_SHELL cannam@86: CONFIG_SHELL=/bin/ksh cannam@86: export CONFIG_SHELL cannam@86: exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} cannam@86: else cannam@86: # Try using printf. cannam@86: echo='printf %s\n' cannam@86: if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && cannam@86: echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && cannam@86: test "X$echo_testing_string" = "X$echo_test_string"; then cannam@86: # Cool, printf works cannam@86: : cannam@86: elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && cannam@86: test "X$echo_testing_string" = 'X\t' && cannam@86: echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && cannam@86: test "X$echo_testing_string" = "X$echo_test_string"; then cannam@86: CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL cannam@86: export CONFIG_SHELL cannam@86: SHELL="$CONFIG_SHELL" cannam@86: export SHELL cannam@86: echo="$CONFIG_SHELL $0 --fallback-echo" cannam@86: elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && cannam@86: test "X$echo_testing_string" = 'X\t' && cannam@86: echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && cannam@86: test "X$echo_testing_string" = "X$echo_test_string"; then cannam@86: echo="$CONFIG_SHELL $0 --fallback-echo" cannam@86: else cannam@86: # maybe with a smaller string... cannam@86: prev=: cannam@86: cannam@86: for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do cannam@86: if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null cannam@86: then cannam@86: break cannam@86: fi cannam@86: prev="$cmd" cannam@86: done cannam@86: cannam@86: if test "$prev" != 'sed 50q "$0"'; then cannam@86: echo_test_string=`eval $prev` cannam@86: export echo_test_string cannam@86: exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} cannam@86: else cannam@86: # Oops. We lost completely, so just stick with echo. cannam@86: echo=echo cannam@86: fi cannam@86: fi cannam@86: fi cannam@86: fi cannam@86: fi cannam@86: fi cannam@86: cannam@86: # Copy echo and quote the copy suitably for passing to libtool from cannam@86: # the Makefile, instead of quoting the original, which is used later. cannam@86: ECHO=$echo cannam@86: if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then cannam@86: ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" cannam@86: fi cannam@86: cannam@86: cannam@86: cannam@86: cannam@86: tagnames=${tagnames+${tagnames},}CXX cannam@86: cannam@86: tagnames=${tagnames+${tagnames},}F77 cannam@86: cannam@86: # Name of the host. cannam@86: # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, cannam@86: # so uname gets run too. cannam@86: ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` cannam@86: cannam@86: exec 6>&1 cannam@86: cannam@86: # cannam@86: # Initializations. cannam@86: # cannam@86: ac_default_prefix=/usr/local cannam@86: ac_config_libobj_dir=. cannam@86: cross_compiling=no cannam@86: subdirs= cannam@86: MFLAGS= cannam@86: MAKEFLAGS= cannam@86: SHELL=${CONFIG_SHELL-/bin/sh} cannam@86: cannam@86: # Maximum number of lines to put in a shell here document. cannam@86: # This variable seems obsolete. It should probably be removed, and cannam@86: # only ac_max_sed_lines should be used. cannam@86: : ${ac_max_here_lines=38} cannam@86: cannam@86: # Identity of this package. cannam@86: PACKAGE_NAME= cannam@86: PACKAGE_TARNAME= cannam@86: PACKAGE_VERSION= cannam@86: PACKAGE_STRING= cannam@86: PACKAGE_BUGREPORT= cannam@86: cannam@86: ac_unique_file="src/flac/main.c" cannam@86: # Factoring default headers for most tests. cannam@86: ac_includes_default="\ cannam@86: #include cannam@86: #if HAVE_SYS_TYPES_H cannam@86: # include cannam@86: #endif cannam@86: #if HAVE_SYS_STAT_H cannam@86: # include cannam@86: #endif cannam@86: #if STDC_HEADERS cannam@86: # include cannam@86: # include cannam@86: #else cannam@86: # if HAVE_STDLIB_H cannam@86: # include cannam@86: # endif cannam@86: #endif cannam@86: #if HAVE_STRING_H cannam@86: # if !STDC_HEADERS && HAVE_MEMORY_H cannam@86: # include cannam@86: # endif cannam@86: # include cannam@86: #endif cannam@86: #if HAVE_STRINGS_H cannam@86: # include cannam@86: #endif cannam@86: #if HAVE_INTTYPES_H cannam@86: # include cannam@86: #else cannam@86: # if HAVE_STDINT_H cannam@86: # include cannam@86: # endif cannam@86: #endif cannam@86: #if HAVE_UNISTD_H cannam@86: # include cannam@86: #endif" cannam@86: cannam@86: ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM AWK SET_MAKE am__leading_dot 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 ACLOCAL_AMFLAGS CCAS CCASFLAGS FLaC__CPU_IA32_TRUE FLaC__CPU_IA32_FALSE FLaC__CPU_PPC_TRUE FLaC__CPU_PPC_FALSE FLaC__CPU_SPARC_TRUE FLaC__CPU_SPARC_FALSE OBJ_FORMAT MINGW_WINSOCK_LIBS FLaC__SYS_DARWIN_TRUE FLaC__SYS_DARWIN_FALSE FLaC__SYS_LINUX_TRUE FLaC__SYS_LINUX_FALSE FLaC__NO_ASM_TRUE FLaC__NO_ASM_FALSE DEBUG_TRUE DEBUG_FALSE FLaC__SSE_OS_TRUE FLaC__SSE_OS_FALSE FLaC__USE_3DNOW_TRUE FLaC__USE_3DNOW_FALSE FLaC__USE_ALTIVEC_TRUE FLaC__USE_ALTIVEC_FALSE FLAC__TEST_LEVEL FLAC__TEST_WITH_VALGRIND DOXYGEN FLaC__HAS_DOXYGEN_TRUE FLaC__HAS_DOXYGEN_FALSE FLaC__INSTALL_XMMS_PLUGIN_LOCALLY_TRUE FLaC__INSTALL_XMMS_PLUGIN_LOCALLY_FALSE XMMS_CONFIG XMMS_CFLAGS XMMS_LIBS XMMS_VERSION XMMS_DATA_DIR XMMS_PLUGIN_DIR XMMS_VISUALIZATION_PLUGIN_DIR XMMS_INPUT_PLUGIN_DIR XMMS_OUTPUT_PLUGIN_DIR XMMS_GENERAL_PLUGIN_DIR XMMS_EFFECT_PLUGIN_DIR FLaC__HAS_XMMS_TRUE FLaC__HAS_XMMS_FALSE FLaC__WITH_CPPLIBS_TRUE FLaC__WITH_CPPLIBS_FALSE OGG_CFLAGS OGG_LIBS FLaC__HAS_OGG_TRUE FLaC__HAS_OGG_FALSE LIBICONV LTLIBICONV DOCBOOK_TO_MAN FLaC__HAS_DOCBOOK_TO_MAN_TRUE FLaC__HAS_DOCBOOK_TO_MAN_FALSE NASM FLaC__HAS_NASM_TRUE FLaC__HAS_NASM_FALSE AS GAS FLaC__HAS_AS_TRUE FLaC__HAS_AS_FALSE FLaC__HAS_GAS_TRUE FLaC__HAS_GAS_FALSE FLaC__HAS_AS__TEMPORARILY_DISABLED_TRUE FLaC__HAS_AS__TEMPORARILY_DISABLED_FALSE FLaC__HAS_GAS__TEMPORARILY_DISABLED_TRUE FLaC__HAS_GAS__TEMPORARILY_DISABLED_FALSE LIBOBJS LTLIBOBJS' cannam@86: ac_subst_files='' cannam@86: cannam@86: # Initialize some variables set by options. cannam@86: ac_init_help= cannam@86: ac_init_version=false cannam@86: # The variables have the same names as the options, with cannam@86: # dashes changed to underlines. cannam@86: cache_file=/dev/null cannam@86: exec_prefix=NONE cannam@86: no_create= cannam@86: no_recursion= cannam@86: prefix=NONE cannam@86: program_prefix=NONE cannam@86: program_suffix=NONE cannam@86: program_transform_name=s,x,x, cannam@86: silent= cannam@86: site= cannam@86: srcdir= cannam@86: verbose= cannam@86: x_includes=NONE cannam@86: x_libraries=NONE cannam@86: cannam@86: # Installation directory options. cannam@86: # These are left unexpanded so users can "make install exec_prefix=/foo" cannam@86: # and all the variables that are supposed to be based on exec_prefix cannam@86: # by default will actually change. cannam@86: # Use braces instead of parens because sh, perl, etc. also accept them. cannam@86: bindir='${exec_prefix}/bin' cannam@86: sbindir='${exec_prefix}/sbin' cannam@86: libexecdir='${exec_prefix}/libexec' cannam@86: datadir='${prefix}/share' cannam@86: sysconfdir='${prefix}/etc' cannam@86: sharedstatedir='${prefix}/com' cannam@86: localstatedir='${prefix}/var' cannam@86: libdir='${exec_prefix}/lib' cannam@86: includedir='${prefix}/include' cannam@86: oldincludedir='/usr/include' cannam@86: infodir='${prefix}/info' cannam@86: mandir='${prefix}/man' cannam@86: cannam@86: ac_prev= cannam@86: for ac_option cannam@86: do cannam@86: # If the previous option needs an argument, assign it. cannam@86: if test -n "$ac_prev"; then cannam@86: eval "$ac_prev=\$ac_option" cannam@86: ac_prev= cannam@86: continue cannam@86: fi cannam@86: cannam@86: ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` cannam@86: cannam@86: # Accept the important Cygnus configure options, so we can diagnose typos. cannam@86: cannam@86: case $ac_option in cannam@86: cannam@86: -bindir | --bindir | --bindi | --bind | --bin | --bi) cannam@86: ac_prev=bindir ;; cannam@86: -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) cannam@86: bindir=$ac_optarg ;; cannam@86: cannam@86: -build | --build | --buil | --bui | --bu) cannam@86: ac_prev=build_alias ;; cannam@86: -build=* | --build=* | --buil=* | --bui=* | --bu=*) cannam@86: build_alias=$ac_optarg ;; cannam@86: cannam@86: -cache-file | --cache-file | --cache-fil | --cache-fi \ cannam@86: | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) cannam@86: ac_prev=cache_file ;; cannam@86: -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ cannam@86: | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) cannam@86: cache_file=$ac_optarg ;; cannam@86: cannam@86: --config-cache | -C) cannam@86: cache_file=config.cache ;; cannam@86: cannam@86: -datadir | --datadir | --datadi | --datad | --data | --dat | --da) cannam@86: ac_prev=datadir ;; cannam@86: -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ cannam@86: | --da=*) cannam@86: datadir=$ac_optarg ;; cannam@86: cannam@86: -disable-* | --disable-*) cannam@86: ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` cannam@86: # Reject names that are not valid shell variable names. cannam@86: expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && cannam@86: { echo "$as_me: error: invalid feature name: $ac_feature" >&2 cannam@86: { (exit 1); exit 1; }; } cannam@86: ac_feature=`echo $ac_feature | sed 's/-/_/g'` cannam@86: eval "enable_$ac_feature=no" ;; cannam@86: cannam@86: -enable-* | --enable-*) cannam@86: ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` cannam@86: # Reject names that are not valid shell variable names. cannam@86: expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && cannam@86: { echo "$as_me: error: invalid feature name: $ac_feature" >&2 cannam@86: { (exit 1); exit 1; }; } cannam@86: ac_feature=`echo $ac_feature | sed 's/-/_/g'` cannam@86: case $ac_option in cannam@86: *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; cannam@86: *) ac_optarg=yes ;; cannam@86: esac cannam@86: eval "enable_$ac_feature='$ac_optarg'" ;; cannam@86: cannam@86: -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ cannam@86: | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ cannam@86: | --exec | --exe | --ex) cannam@86: ac_prev=exec_prefix ;; cannam@86: -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ cannam@86: | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ cannam@86: | --exec=* | --exe=* | --ex=*) cannam@86: exec_prefix=$ac_optarg ;; cannam@86: cannam@86: -gas | --gas | --ga | --g) cannam@86: # Obsolete; use --with-gas. cannam@86: with_gas=yes ;; cannam@86: cannam@86: -help | --help | --hel | --he | -h) cannam@86: ac_init_help=long ;; cannam@86: -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) cannam@86: ac_init_help=recursive ;; cannam@86: -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) cannam@86: ac_init_help=short ;; cannam@86: cannam@86: -host | --host | --hos | --ho) cannam@86: ac_prev=host_alias ;; cannam@86: -host=* | --host=* | --hos=* | --ho=*) cannam@86: host_alias=$ac_optarg ;; cannam@86: cannam@86: -includedir | --includedir | --includedi | --included | --include \ cannam@86: | --includ | --inclu | --incl | --inc) cannam@86: ac_prev=includedir ;; cannam@86: -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ cannam@86: | --includ=* | --inclu=* | --incl=* | --inc=*) cannam@86: includedir=$ac_optarg ;; cannam@86: cannam@86: -infodir | --infodir | --infodi | --infod | --info | --inf) cannam@86: ac_prev=infodir ;; cannam@86: -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) cannam@86: infodir=$ac_optarg ;; cannam@86: cannam@86: -libdir | --libdir | --libdi | --libd) cannam@86: ac_prev=libdir ;; cannam@86: -libdir=* | --libdir=* | --libdi=* | --libd=*) cannam@86: libdir=$ac_optarg ;; cannam@86: cannam@86: -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ cannam@86: | --libexe | --libex | --libe) cannam@86: ac_prev=libexecdir ;; cannam@86: -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ cannam@86: | --libexe=* | --libex=* | --libe=*) cannam@86: libexecdir=$ac_optarg ;; cannam@86: cannam@86: -localstatedir | --localstatedir | --localstatedi | --localstated \ cannam@86: | --localstate | --localstat | --localsta | --localst \ cannam@86: | --locals | --local | --loca | --loc | --lo) cannam@86: ac_prev=localstatedir ;; cannam@86: -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ cannam@86: | --localstate=* | --localstat=* | --localsta=* | --localst=* \ cannam@86: | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) cannam@86: localstatedir=$ac_optarg ;; cannam@86: cannam@86: -mandir | --mandir | --mandi | --mand | --man | --ma | --m) cannam@86: ac_prev=mandir ;; cannam@86: -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) cannam@86: mandir=$ac_optarg ;; cannam@86: cannam@86: -nfp | --nfp | --nf) cannam@86: # Obsolete; use --without-fp. cannam@86: with_fp=no ;; cannam@86: cannam@86: -no-create | --no-create | --no-creat | --no-crea | --no-cre \ cannam@86: | --no-cr | --no-c | -n) cannam@86: no_create=yes ;; cannam@86: cannam@86: -no-recursion | --no-recursion | --no-recursio | --no-recursi \ cannam@86: | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) cannam@86: no_recursion=yes ;; cannam@86: cannam@86: -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ cannam@86: | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ cannam@86: | --oldin | --oldi | --old | --ol | --o) cannam@86: ac_prev=oldincludedir ;; cannam@86: -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ cannam@86: | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ cannam@86: | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) cannam@86: oldincludedir=$ac_optarg ;; cannam@86: cannam@86: -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) cannam@86: ac_prev=prefix ;; cannam@86: -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) cannam@86: prefix=$ac_optarg ;; cannam@86: cannam@86: -program-prefix | --program-prefix | --program-prefi | --program-pref \ cannam@86: | --program-pre | --program-pr | --program-p) cannam@86: ac_prev=program_prefix ;; cannam@86: -program-prefix=* | --program-prefix=* | --program-prefi=* \ cannam@86: | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) cannam@86: program_prefix=$ac_optarg ;; cannam@86: cannam@86: -program-suffix | --program-suffix | --program-suffi | --program-suff \ cannam@86: | --program-suf | --program-su | --program-s) cannam@86: ac_prev=program_suffix ;; cannam@86: -program-suffix=* | --program-suffix=* | --program-suffi=* \ cannam@86: | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) cannam@86: program_suffix=$ac_optarg ;; cannam@86: cannam@86: -program-transform-name | --program-transform-name \ cannam@86: | --program-transform-nam | --program-transform-na \ cannam@86: | --program-transform-n | --program-transform- \ cannam@86: | --program-transform | --program-transfor \ cannam@86: | --program-transfo | --program-transf \ cannam@86: | --program-trans | --program-tran \ cannam@86: | --progr-tra | --program-tr | --program-t) cannam@86: ac_prev=program_transform_name ;; cannam@86: -program-transform-name=* | --program-transform-name=* \ cannam@86: | --program-transform-nam=* | --program-transform-na=* \ cannam@86: | --program-transform-n=* | --program-transform-=* \ cannam@86: | --program-transform=* | --program-transfor=* \ cannam@86: | --program-transfo=* | --program-transf=* \ cannam@86: | --program-trans=* | --program-tran=* \ cannam@86: | --progr-tra=* | --program-tr=* | --program-t=*) cannam@86: program_transform_name=$ac_optarg ;; cannam@86: cannam@86: -q | -quiet | --quiet | --quie | --qui | --qu | --q \ cannam@86: | -silent | --silent | --silen | --sile | --sil) cannam@86: silent=yes ;; cannam@86: cannam@86: -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) cannam@86: ac_prev=sbindir ;; cannam@86: -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ cannam@86: | --sbi=* | --sb=*) cannam@86: sbindir=$ac_optarg ;; cannam@86: cannam@86: -sharedstatedir | --sharedstatedir | --sharedstatedi \ cannam@86: | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ cannam@86: | --sharedst | --shareds | --shared | --share | --shar \ cannam@86: | --sha | --sh) cannam@86: ac_prev=sharedstatedir ;; cannam@86: -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ cannam@86: | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ cannam@86: | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ cannam@86: | --sha=* | --sh=*) cannam@86: sharedstatedir=$ac_optarg ;; cannam@86: cannam@86: -site | --site | --sit) cannam@86: ac_prev=site ;; cannam@86: -site=* | --site=* | --sit=*) cannam@86: site=$ac_optarg ;; cannam@86: cannam@86: -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) cannam@86: ac_prev=srcdir ;; cannam@86: -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) cannam@86: srcdir=$ac_optarg ;; cannam@86: cannam@86: -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ cannam@86: | --syscon | --sysco | --sysc | --sys | --sy) cannam@86: ac_prev=sysconfdir ;; cannam@86: -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ cannam@86: | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) cannam@86: sysconfdir=$ac_optarg ;; cannam@86: cannam@86: -target | --target | --targe | --targ | --tar | --ta | --t) cannam@86: ac_prev=target_alias ;; cannam@86: -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) cannam@86: target_alias=$ac_optarg ;; cannam@86: cannam@86: -v | -verbose | --verbose | --verbos | --verbo | --verb) cannam@86: verbose=yes ;; cannam@86: cannam@86: -version | --version | --versio | --versi | --vers | -V) cannam@86: ac_init_version=: ;; cannam@86: cannam@86: -with-* | --with-*) cannam@86: ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` cannam@86: # Reject names that are not valid shell variable names. cannam@86: expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && cannam@86: { echo "$as_me: error: invalid package name: $ac_package" >&2 cannam@86: { (exit 1); exit 1; }; } cannam@86: ac_package=`echo $ac_package| sed 's/-/_/g'` cannam@86: case $ac_option in cannam@86: *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; cannam@86: *) ac_optarg=yes ;; cannam@86: esac cannam@86: eval "with_$ac_package='$ac_optarg'" ;; cannam@86: cannam@86: -without-* | --without-*) cannam@86: ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` cannam@86: # Reject names that are not valid shell variable names. cannam@86: expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && cannam@86: { echo "$as_me: error: invalid package name: $ac_package" >&2 cannam@86: { (exit 1); exit 1; }; } cannam@86: ac_package=`echo $ac_package | sed 's/-/_/g'` cannam@86: eval "with_$ac_package=no" ;; cannam@86: cannam@86: --x) cannam@86: # Obsolete; use --with-x. cannam@86: with_x=yes ;; cannam@86: cannam@86: -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ cannam@86: | --x-incl | --x-inc | --x-in | --x-i) cannam@86: ac_prev=x_includes ;; cannam@86: -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ cannam@86: | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) cannam@86: x_includes=$ac_optarg ;; cannam@86: cannam@86: -x-libraries | --x-libraries | --x-librarie | --x-librari \ cannam@86: | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) cannam@86: ac_prev=x_libraries ;; cannam@86: -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ cannam@86: | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) cannam@86: x_libraries=$ac_optarg ;; cannam@86: cannam@86: -*) { echo "$as_me: error: unrecognized option: $ac_option cannam@86: Try \`$0 --help' for more information." >&2 cannam@86: { (exit 1); exit 1; }; } cannam@86: ;; cannam@86: cannam@86: *=*) cannam@86: ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` cannam@86: # Reject names that are not valid shell variable names. cannam@86: expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && cannam@86: { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 cannam@86: { (exit 1); exit 1; }; } cannam@86: ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` cannam@86: eval "$ac_envvar='$ac_optarg'" cannam@86: export $ac_envvar ;; cannam@86: cannam@86: *) cannam@86: # FIXME: should be removed in autoconf 3.0. cannam@86: echo "$as_me: WARNING: you should use --build, --host, --target" >&2 cannam@86: expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && cannam@86: echo "$as_me: WARNING: invalid host type: $ac_option" >&2 cannam@86: : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} cannam@86: ;; cannam@86: cannam@86: esac cannam@86: done cannam@86: cannam@86: if test -n "$ac_prev"; then cannam@86: ac_option=--`echo $ac_prev | sed 's/_/-/g'` cannam@86: { echo "$as_me: error: missing argument to $ac_option" >&2 cannam@86: { (exit 1); exit 1; }; } cannam@86: fi cannam@86: cannam@86: # Be sure to have absolute paths. cannam@86: for ac_var in exec_prefix prefix cannam@86: do cannam@86: eval ac_val=$`echo $ac_var` cannam@86: case $ac_val in cannam@86: [\\/$]* | ?:[\\/]* | NONE | '' ) ;; cannam@86: *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 cannam@86: { (exit 1); exit 1; }; };; cannam@86: esac cannam@86: done cannam@86: cannam@86: # Be sure to have absolute paths. cannam@86: for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ cannam@86: localstatedir libdir includedir oldincludedir infodir mandir cannam@86: do cannam@86: eval ac_val=$`echo $ac_var` cannam@86: case $ac_val in cannam@86: [\\/$]* | ?:[\\/]* ) ;; cannam@86: *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 cannam@86: { (exit 1); exit 1; }; };; cannam@86: esac cannam@86: done cannam@86: cannam@86: # There might be people who depend on the old broken behavior: `$host' cannam@86: # used to hold the argument of --host etc. cannam@86: # FIXME: To remove some day. cannam@86: build=$build_alias cannam@86: host=$host_alias cannam@86: target=$target_alias cannam@86: cannam@86: # FIXME: To remove some day. cannam@86: if test "x$host_alias" != x; then cannam@86: if test "x$build_alias" = x; then cannam@86: cross_compiling=maybe cannam@86: echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. cannam@86: If a cross compiler is detected then cross compile mode will be used." >&2 cannam@86: elif test "x$build_alias" != "x$host_alias"; then cannam@86: cross_compiling=yes cannam@86: fi cannam@86: fi cannam@86: cannam@86: ac_tool_prefix= cannam@86: test -n "$host_alias" && ac_tool_prefix=$host_alias- cannam@86: cannam@86: test "$silent" = yes && exec 6>/dev/null cannam@86: cannam@86: cannam@86: # Find the source files, if location was not specified. cannam@86: if test -z "$srcdir"; then cannam@86: ac_srcdir_defaulted=yes cannam@86: # Try the directory containing this script, then its parent. cannam@86: ac_confdir=`(dirname "$0") 2>/dev/null || cannam@86: $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ cannam@86: X"$0" : 'X\(//\)[^/]' \| \ cannam@86: X"$0" : 'X\(//\)$' \| \ cannam@86: X"$0" : 'X\(/\)' \| \ cannam@86: . : '\(.\)' 2>/dev/null || cannam@86: echo X"$0" | cannam@86: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } cannam@86: /^X\(\/\/\)[^/].*/{ s//\1/; q; } cannam@86: /^X\(\/\/\)$/{ s//\1/; q; } cannam@86: /^X\(\/\).*/{ s//\1/; q; } cannam@86: s/.*/./; q'` cannam@86: srcdir=$ac_confdir cannam@86: if test ! -r $srcdir/$ac_unique_file; then cannam@86: srcdir=.. cannam@86: fi cannam@86: else cannam@86: ac_srcdir_defaulted=no cannam@86: fi cannam@86: if test ! -r $srcdir/$ac_unique_file; then cannam@86: if test "$ac_srcdir_defaulted" = yes; then cannam@86: { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 cannam@86: { (exit 1); exit 1; }; } cannam@86: else cannam@86: { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 cannam@86: { (exit 1); exit 1; }; } cannam@86: fi cannam@86: fi cannam@86: (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || cannam@86: { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 cannam@86: { (exit 1); exit 1; }; } cannam@86: srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` cannam@86: ac_env_build_alias_set=${build_alias+set} cannam@86: ac_env_build_alias_value=$build_alias cannam@86: ac_cv_env_build_alias_set=${build_alias+set} cannam@86: ac_cv_env_build_alias_value=$build_alias cannam@86: ac_env_host_alias_set=${host_alias+set} cannam@86: ac_env_host_alias_value=$host_alias cannam@86: ac_cv_env_host_alias_set=${host_alias+set} cannam@86: ac_cv_env_host_alias_value=$host_alias cannam@86: ac_env_target_alias_set=${target_alias+set} cannam@86: ac_env_target_alias_value=$target_alias cannam@86: ac_cv_env_target_alias_set=${target_alias+set} cannam@86: ac_cv_env_target_alias_value=$target_alias cannam@86: ac_env_CC_set=${CC+set} cannam@86: ac_env_CC_value=$CC cannam@86: ac_cv_env_CC_set=${CC+set} cannam@86: ac_cv_env_CC_value=$CC cannam@86: ac_env_CFLAGS_set=${CFLAGS+set} cannam@86: ac_env_CFLAGS_value=$CFLAGS cannam@86: ac_cv_env_CFLAGS_set=${CFLAGS+set} cannam@86: ac_cv_env_CFLAGS_value=$CFLAGS cannam@86: ac_env_LDFLAGS_set=${LDFLAGS+set} cannam@86: ac_env_LDFLAGS_value=$LDFLAGS cannam@86: ac_cv_env_LDFLAGS_set=${LDFLAGS+set} cannam@86: ac_cv_env_LDFLAGS_value=$LDFLAGS cannam@86: ac_env_CPPFLAGS_set=${CPPFLAGS+set} cannam@86: ac_env_CPPFLAGS_value=$CPPFLAGS cannam@86: ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} cannam@86: ac_cv_env_CPPFLAGS_value=$CPPFLAGS cannam@86: ac_env_CPP_set=${CPP+set} cannam@86: ac_env_CPP_value=$CPP cannam@86: ac_cv_env_CPP_set=${CPP+set} cannam@86: ac_cv_env_CPP_value=$CPP cannam@86: ac_env_CXX_set=${CXX+set} cannam@86: ac_env_CXX_value=$CXX cannam@86: ac_cv_env_CXX_set=${CXX+set} cannam@86: ac_cv_env_CXX_value=$CXX cannam@86: ac_env_CXXFLAGS_set=${CXXFLAGS+set} cannam@86: ac_env_CXXFLAGS_value=$CXXFLAGS cannam@86: ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set} cannam@86: ac_cv_env_CXXFLAGS_value=$CXXFLAGS cannam@86: ac_env_CXXCPP_set=${CXXCPP+set} cannam@86: ac_env_CXXCPP_value=$CXXCPP cannam@86: ac_cv_env_CXXCPP_set=${CXXCPP+set} cannam@86: ac_cv_env_CXXCPP_value=$CXXCPP cannam@86: ac_env_F77_set=${F77+set} cannam@86: ac_env_F77_value=$F77 cannam@86: ac_cv_env_F77_set=${F77+set} cannam@86: ac_cv_env_F77_value=$F77 cannam@86: ac_env_FFLAGS_set=${FFLAGS+set} cannam@86: ac_env_FFLAGS_value=$FFLAGS cannam@86: ac_cv_env_FFLAGS_set=${FFLAGS+set} cannam@86: ac_cv_env_FFLAGS_value=$FFLAGS cannam@86: cannam@86: # cannam@86: # Report the --help message. cannam@86: # cannam@86: if test "$ac_init_help" = "long"; then cannam@86: # Omit some internal or obsolete options to make the list less imposing. cannam@86: # This message is too long to be a string in the A/UX 3.1 sh. cannam@86: cat <<_ACEOF cannam@86: \`configure' configures this package to adapt to many kinds of systems. cannam@86: cannam@86: Usage: $0 [OPTION]... [VAR=VALUE]... cannam@86: cannam@86: To assign environment variables (e.g., CC, CFLAGS...), specify them as cannam@86: VAR=VALUE. See below for descriptions of some of the useful variables. cannam@86: cannam@86: Defaults for the options are specified in brackets. cannam@86: cannam@86: Configuration: cannam@86: -h, --help display this help and exit cannam@86: --help=short display options specific to this package cannam@86: --help=recursive display the short help of all the included packages cannam@86: -V, --version display version information and exit cannam@86: -q, --quiet, --silent do not print \`checking...' messages cannam@86: --cache-file=FILE cache test results in FILE [disabled] cannam@86: -C, --config-cache alias for \`--cache-file=config.cache' cannam@86: -n, --no-create do not create output files cannam@86: --srcdir=DIR find the sources in DIR [configure dir or \`..'] cannam@86: cannam@86: _ACEOF cannam@86: cannam@86: cat <<_ACEOF cannam@86: Installation directories: cannam@86: --prefix=PREFIX install architecture-independent files in PREFIX cannam@86: [$ac_default_prefix] cannam@86: --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX cannam@86: [PREFIX] cannam@86: cannam@86: By default, \`make install' will install all the files in cannam@86: \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify cannam@86: an installation prefix other than \`$ac_default_prefix' using \`--prefix', cannam@86: for instance \`--prefix=\$HOME'. cannam@86: cannam@86: For better control, use the options below. cannam@86: cannam@86: Fine tuning of the installation directories: cannam@86: --bindir=DIR user executables [EPREFIX/bin] cannam@86: --sbindir=DIR system admin executables [EPREFIX/sbin] cannam@86: --libexecdir=DIR program executables [EPREFIX/libexec] cannam@86: --datadir=DIR read-only architecture-independent data [PREFIX/share] cannam@86: --sysconfdir=DIR read-only single-machine data [PREFIX/etc] cannam@86: --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] cannam@86: --localstatedir=DIR modifiable single-machine data [PREFIX/var] cannam@86: --libdir=DIR object code libraries [EPREFIX/lib] cannam@86: --includedir=DIR C header files [PREFIX/include] cannam@86: --oldincludedir=DIR C header files for non-gcc [/usr/include] cannam@86: --infodir=DIR info documentation [PREFIX/info] cannam@86: --mandir=DIR man documentation [PREFIX/man] cannam@86: _ACEOF cannam@86: cannam@86: cat <<\_ACEOF cannam@86: cannam@86: Program names: cannam@86: --program-prefix=PREFIX prepend PREFIX to installed program names cannam@86: --program-suffix=SUFFIX append SUFFIX to installed program names cannam@86: --program-transform-name=PROGRAM run sed PROGRAM on installed program names cannam@86: cannam@86: System types: cannam@86: --build=BUILD configure for building on BUILD [guessed] cannam@86: --host=HOST cross-compile to build programs to run on HOST [BUILD] cannam@86: _ACEOF cannam@86: fi cannam@86: cannam@86: if test -n "$ac_init_help"; then cannam@86: cannam@86: cat <<\_ACEOF cannam@86: cannam@86: Optional Features: cannam@86: --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) cannam@86: --enable-FEATURE[=ARG] include FEATURE [ARG=yes] cannam@86: --enable-maintainer-mode enable make rules and dependencies not useful cannam@86: (and sometimes confusing) to the casual installer cannam@86: --enable-shared[=PKGS] cannam@86: build shared libraries [default=yes] cannam@86: --enable-static[=PKGS] cannam@86: build static libraries [default=yes] cannam@86: --enable-fast-install[=PKGS] cannam@86: optimize for fast installation [default=yes] cannam@86: --disable-dependency-tracking Speeds up one-time builds cannam@86: --enable-dependency-tracking Do not reject slow dependency extractors cannam@86: --disable-libtool-lock avoid locking (might break parallel builds) cannam@86: --disable-largefile omit support for large files cannam@86: --disable-asm-optimizations cannam@86: Don't use any assembly optimization routines cannam@86: --enable-debug Turn on debugging cannam@86: --enable-sse Enable SSE support by asserting that the OS supports cannam@86: SSE instructions cannam@86: --disable-3dnow Disable 3DNOW! optimizations cannam@86: --disable-altivec Disable Altivec optimizations cannam@86: --disable-thorough-tests cannam@86: Disable thorough (long) testing, do only basic tests cannam@86: --enable-exhaustive-tests cannam@86: Enable exhaustive testing (VERY long) cannam@86: --enable-valgrind-testing cannam@86: Run all tests inside Valgrind cannam@86: --disable-doxygen-docs Disable API documentation building via Doxygen cannam@86: --enable-local-xmms-plugin cannam@86: Install XMMS plugin to ~/.xmms/Plugins instead of cannam@86: system location cannam@86: --disable-xmms-plugin Do not build XMMS plugin cannam@86: --disable-cpplibs Do not build libFLAC++ cannam@86: --disable-ogg Disable ogg support (default: test for libogg) cannam@86: --disable-oggtest Do not try to compile and run a test Ogg program cannam@86: --disable-rpath do not hardcode runtime library paths cannam@86: cannam@86: Optional Packages: cannam@86: --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] cannam@86: --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) cannam@86: --with-gnu-ld assume the C compiler uses GNU ld [default=no] cannam@86: --with-pic try to use only PIC/non-PIC objects [default=use cannam@86: both] cannam@86: --with-tags[=TAGS] cannam@86: include additional configurations [automatic] cannam@86: --with-xmms-prefix=PFX Prefix where XMMS is installed (optional) cannam@86: --with-xmms-exec-prefix=PFX Exec prefix where XMMS is installed (optional) cannam@86: --with-ogg=PFX Prefix where libogg is installed (optional) cannam@86: --with-ogg-libraries=DIR Directory where libogg library is installed (optional) cannam@86: --with-ogg-includes=DIR Directory where libogg header files are installed (optional) cannam@86: --with-gnu-ld assume the C compiler uses GNU ld default=no cannam@86: --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib cannam@86: --without-libiconv-prefix don't search for libiconv in includedir and libdir cannam@86: cannam@86: Some influential environment variables: cannam@86: CC C compiler command cannam@86: CFLAGS C compiler flags cannam@86: LDFLAGS linker flags, e.g. -L if you have libraries in a cannam@86: nonstandard directory cannam@86: CPPFLAGS C/C++ preprocessor flags, e.g. -I if you have cannam@86: headers in a nonstandard directory cannam@86: CPP C preprocessor cannam@86: CXX C++ compiler command cannam@86: CXXFLAGS C++ compiler flags cannam@86: CXXCPP C++ preprocessor cannam@86: F77 Fortran 77 compiler command cannam@86: FFLAGS Fortran 77 compiler flags cannam@86: cannam@86: Use these variables to override the choices made by `configure' or to help cannam@86: it to find libraries and programs with nonstandard names/locations. cannam@86: cannam@86: _ACEOF cannam@86: fi cannam@86: cannam@86: if test "$ac_init_help" = "recursive"; then cannam@86: # If there are subdirs, report their specific --help. cannam@86: ac_popdir=`pwd` cannam@86: for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue cannam@86: test -d $ac_dir || continue cannam@86: ac_builddir=. cannam@86: cannam@86: if test "$ac_dir" != .; then cannam@86: ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` cannam@86: # A "../" for each directory in $ac_dir_suffix. cannam@86: ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` cannam@86: else cannam@86: ac_dir_suffix= ac_top_builddir= cannam@86: fi cannam@86: cannam@86: case $srcdir in cannam@86: .) # No --srcdir option. We are building in place. cannam@86: ac_srcdir=. cannam@86: if test -z "$ac_top_builddir"; then cannam@86: ac_top_srcdir=. cannam@86: else cannam@86: ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` cannam@86: fi ;; cannam@86: [\\/]* | ?:[\\/]* ) # Absolute path. cannam@86: ac_srcdir=$srcdir$ac_dir_suffix; cannam@86: ac_top_srcdir=$srcdir ;; cannam@86: *) # Relative path. cannam@86: ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix cannam@86: ac_top_srcdir=$ac_top_builddir$srcdir ;; cannam@86: esac cannam@86: cannam@86: # Do not use `cd foo && pwd` to compute absolute paths, because cannam@86: # the directories may not exist. cannam@86: case `pwd` in cannam@86: .) ac_abs_builddir="$ac_dir";; cannam@86: *) cannam@86: case "$ac_dir" in cannam@86: .) ac_abs_builddir=`pwd`;; cannam@86: [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; cannam@86: *) ac_abs_builddir=`pwd`/"$ac_dir";; cannam@86: esac;; cannam@86: esac cannam@86: case $ac_abs_builddir in cannam@86: .) ac_abs_top_builddir=${ac_top_builddir}.;; cannam@86: *) cannam@86: case ${ac_top_builddir}. in cannam@86: .) ac_abs_top_builddir=$ac_abs_builddir;; cannam@86: [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; cannam@86: *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; cannam@86: esac;; cannam@86: esac cannam@86: case $ac_abs_builddir in cannam@86: .) ac_abs_srcdir=$ac_srcdir;; cannam@86: *) cannam@86: case $ac_srcdir in cannam@86: .) ac_abs_srcdir=$ac_abs_builddir;; cannam@86: [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; cannam@86: *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; cannam@86: esac;; cannam@86: esac cannam@86: case $ac_abs_builddir in cannam@86: .) ac_abs_top_srcdir=$ac_top_srcdir;; cannam@86: *) cannam@86: case $ac_top_srcdir in cannam@86: .) ac_abs_top_srcdir=$ac_abs_builddir;; cannam@86: [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; cannam@86: *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; cannam@86: esac;; cannam@86: esac cannam@86: cannam@86: cd $ac_dir cannam@86: # Check for guested configure; otherwise get Cygnus style configure. cannam@86: if test -f $ac_srcdir/configure.gnu; then cannam@86: echo cannam@86: $SHELL $ac_srcdir/configure.gnu --help=recursive cannam@86: elif test -f $ac_srcdir/configure; then cannam@86: echo cannam@86: $SHELL $ac_srcdir/configure --help=recursive cannam@86: elif test -f $ac_srcdir/configure.ac || cannam@86: test -f $ac_srcdir/configure.in; then cannam@86: echo cannam@86: $ac_configure --help cannam@86: else cannam@86: echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 cannam@86: fi cannam@86: cd $ac_popdir cannam@86: done cannam@86: fi cannam@86: cannam@86: test -n "$ac_init_help" && exit 0 cannam@86: if $ac_init_version; then cannam@86: cat <<\_ACEOF cannam@86: cannam@86: Copyright (C) 2003 Free Software Foundation, Inc. cannam@86: This configure script is free software; the Free Software Foundation cannam@86: gives unlimited permission to copy, distribute and modify it. cannam@86: _ACEOF cannam@86: exit 0 cannam@86: fi cannam@86: exec 5>config.log cannam@86: cat >&5 <<_ACEOF cannam@86: This file contains any messages produced by compilers while cannam@86: running configure, to aid debugging if configure makes a mistake. cannam@86: cannam@86: It was created by $as_me, which was cannam@86: generated by GNU Autoconf 2.59. Invocation command line was cannam@86: cannam@86: $ $0 $@ cannam@86: cannam@86: _ACEOF cannam@86: { cannam@86: cat <<_ASUNAME cannam@86: ## --------- ## cannam@86: ## Platform. ## cannam@86: ## --------- ## cannam@86: cannam@86: hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` cannam@86: uname -m = `(uname -m) 2>/dev/null || echo unknown` cannam@86: uname -r = `(uname -r) 2>/dev/null || echo unknown` cannam@86: uname -s = `(uname -s) 2>/dev/null || echo unknown` cannam@86: uname -v = `(uname -v) 2>/dev/null || echo unknown` cannam@86: cannam@86: /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` cannam@86: /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` cannam@86: cannam@86: /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` cannam@86: /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` cannam@86: /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` cannam@86: hostinfo = `(hostinfo) 2>/dev/null || echo unknown` cannam@86: /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` cannam@86: /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` cannam@86: /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` cannam@86: cannam@86: _ASUNAME cannam@86: cannam@86: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR cannam@86: for as_dir in $PATH cannam@86: do cannam@86: IFS=$as_save_IFS cannam@86: test -z "$as_dir" && as_dir=. cannam@86: echo "PATH: $as_dir" cannam@86: done cannam@86: cannam@86: } >&5 cannam@86: cannam@86: cat >&5 <<_ACEOF cannam@86: cannam@86: cannam@86: ## ----------- ## cannam@86: ## Core tests. ## cannam@86: ## ----------- ## cannam@86: cannam@86: _ACEOF cannam@86: cannam@86: cannam@86: # Keep a trace of the command line. cannam@86: # Strip out --no-create and --no-recursion so they do not pile up. cannam@86: # Strip out --silent because we don't want to record it for future runs. cannam@86: # Also quote any args containing shell meta-characters. cannam@86: # Make two passes to allow for proper duplicate-argument suppression. cannam@86: ac_configure_args= cannam@86: ac_configure_args0= cannam@86: ac_configure_args1= cannam@86: ac_sep= cannam@86: ac_must_keep_next=false cannam@86: for ac_pass in 1 2 cannam@86: do cannam@86: for ac_arg cannam@86: do cannam@86: case $ac_arg in cannam@86: -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; cannam@86: -q | -quiet | --quiet | --quie | --qui | --qu | --q \ cannam@86: | -silent | --silent | --silen | --sile | --sil) cannam@86: continue ;; cannam@86: *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) cannam@86: ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; cannam@86: esac cannam@86: case $ac_pass in cannam@86: 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; cannam@86: 2) cannam@86: ac_configure_args1="$ac_configure_args1 '$ac_arg'" cannam@86: if test $ac_must_keep_next = true; then cannam@86: ac_must_keep_next=false # Got value, back to normal. cannam@86: else cannam@86: case $ac_arg in cannam@86: *=* | --config-cache | -C | -disable-* | --disable-* \ cannam@86: | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ cannam@86: | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ cannam@86: | -with-* | --with-* | -without-* | --without-* | --x) cannam@86: case "$ac_configure_args0 " in cannam@86: "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; cannam@86: esac cannam@86: ;; cannam@86: -* ) ac_must_keep_next=true ;; cannam@86: esac cannam@86: fi cannam@86: ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" cannam@86: # Get rid of the leading space. cannam@86: ac_sep=" " cannam@86: ;; cannam@86: esac cannam@86: done cannam@86: done cannam@86: $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } cannam@86: $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } cannam@86: cannam@86: # When interrupted or exit'd, cleanup temporary files, and complete cannam@86: # config.log. We remove comments because anyway the quotes in there cannam@86: # would cause problems or look ugly. cannam@86: # WARNING: Be sure not to use single quotes in there, as some shells, cannam@86: # such as our DU 5.0 friend, will then `close' the trap. cannam@86: trap 'exit_status=$? cannam@86: # Save into config.log some information that might help in debugging. cannam@86: { cannam@86: echo cannam@86: cannam@86: cat <<\_ASBOX cannam@86: ## ---------------- ## cannam@86: ## Cache variables. ## cannam@86: ## ---------------- ## cannam@86: _ASBOX cannam@86: echo cannam@86: # The following way of writing the cache mishandles newlines in values, cannam@86: { cannam@86: (set) 2>&1 | cannam@86: case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in cannam@86: *ac_space=\ *) cannam@86: sed -n \ cannam@86: "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; cannam@86: s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" cannam@86: ;; cannam@86: *) cannam@86: sed -n \ cannam@86: "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" cannam@86: ;; cannam@86: esac; cannam@86: } cannam@86: echo cannam@86: cannam@86: cat <<\_ASBOX cannam@86: ## ----------------- ## cannam@86: ## Output variables. ## cannam@86: ## ----------------- ## cannam@86: _ASBOX cannam@86: echo cannam@86: for ac_var in $ac_subst_vars cannam@86: do cannam@86: eval ac_val=$`echo $ac_var` cannam@86: echo "$ac_var='"'"'$ac_val'"'"'" cannam@86: done | sort cannam@86: echo cannam@86: cannam@86: if test -n "$ac_subst_files"; then cannam@86: cat <<\_ASBOX cannam@86: ## ------------- ## cannam@86: ## Output files. ## cannam@86: ## ------------- ## cannam@86: _ASBOX cannam@86: echo cannam@86: for ac_var in $ac_subst_files cannam@86: do cannam@86: eval ac_val=$`echo $ac_var` cannam@86: echo "$ac_var='"'"'$ac_val'"'"'" cannam@86: done | sort cannam@86: echo cannam@86: fi cannam@86: cannam@86: if test -s confdefs.h; then cannam@86: cat <<\_ASBOX cannam@86: ## ----------- ## cannam@86: ## confdefs.h. ## cannam@86: ## ----------- ## cannam@86: _ASBOX cannam@86: echo cannam@86: sed "/^$/d" confdefs.h | sort cannam@86: echo cannam@86: fi cannam@86: test "$ac_signal" != 0 && cannam@86: echo "$as_me: caught signal $ac_signal" cannam@86: echo "$as_me: exit $exit_status" cannam@86: } >&5 cannam@86: rm -f core *.core && cannam@86: rm -rf conftest* confdefs* conf$$* $ac_clean_files && cannam@86: exit $exit_status cannam@86: ' 0 cannam@86: for ac_signal in 1 2 13 15; do cannam@86: trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal cannam@86: done cannam@86: ac_signal=0 cannam@86: cannam@86: # confdefs.h avoids OS command line length limits that DEFS can exceed. cannam@86: rm -rf conftest* confdefs.h cannam@86: # AIX cpp loses on an empty file, so make sure it contains at least a newline. cannam@86: echo >confdefs.h cannam@86: cannam@86: # Predefined preprocessor variables. cannam@86: cannam@86: cat >>confdefs.h <<_ACEOF cannam@86: #define PACKAGE_NAME "$PACKAGE_NAME" cannam@86: _ACEOF cannam@86: cannam@86: cannam@86: cat >>confdefs.h <<_ACEOF cannam@86: #define PACKAGE_TARNAME "$PACKAGE_TARNAME" cannam@86: _ACEOF cannam@86: cannam@86: cannam@86: cat >>confdefs.h <<_ACEOF cannam@86: #define PACKAGE_VERSION "$PACKAGE_VERSION" cannam@86: _ACEOF cannam@86: cannam@86: cannam@86: cat >>confdefs.h <<_ACEOF cannam@86: #define PACKAGE_STRING "$PACKAGE_STRING" cannam@86: _ACEOF cannam@86: cannam@86: cannam@86: cat >>confdefs.h <<_ACEOF cannam@86: #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" cannam@86: _ACEOF cannam@86: cannam@86: cannam@86: # Let the site file select an alternate cache file if it wants to. cannam@86: # Prefer explicitly selected file to automatically selected ones. cannam@86: if test -z "$CONFIG_SITE"; then cannam@86: if test "x$prefix" != xNONE; then cannam@86: CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" cannam@86: else cannam@86: CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" cannam@86: fi cannam@86: fi cannam@86: for ac_site_file in $CONFIG_SITE; do cannam@86: if test -r "$ac_site_file"; then cannam@86: { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 cannam@86: echo "$as_me: loading site script $ac_site_file" >&6;} cannam@86: sed 's/^/| /' "$ac_site_file" >&5 cannam@86: . "$ac_site_file" cannam@86: fi cannam@86: done cannam@86: cannam@86: if test -r "$cache_file"; then cannam@86: # Some versions of bash will fail to source /dev/null (special cannam@86: # files actually), so we avoid doing that. cannam@86: if test -f "$cache_file"; then cannam@86: { echo "$as_me:$LINENO: loading cache $cache_file" >&5 cannam@86: echo "$as_me: loading cache $cache_file" >&6;} cannam@86: case $cache_file in cannam@86: [\\/]* | ?:[\\/]* ) . $cache_file;; cannam@86: *) . ./$cache_file;; cannam@86: esac cannam@86: fi cannam@86: else cannam@86: { echo "$as_me:$LINENO: creating cache $cache_file" >&5 cannam@86: echo "$as_me: creating cache $cache_file" >&6;} cannam@86: >$cache_file cannam@86: fi cannam@86: cannam@86: # Check that the precious variables saved in the cache have kept the same cannam@86: # value. cannam@86: ac_cache_corrupted=false cannam@86: for ac_var in `(set) 2>&1 | cannam@86: sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do cannam@86: eval ac_old_set=\$ac_cv_env_${ac_var}_set cannam@86: eval ac_new_set=\$ac_env_${ac_var}_set cannam@86: eval ac_old_val="\$ac_cv_env_${ac_var}_value" cannam@86: eval ac_new_val="\$ac_env_${ac_var}_value" cannam@86: case $ac_old_set,$ac_new_set in cannam@86: set,) cannam@86: { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 cannam@86: echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} cannam@86: ac_cache_corrupted=: ;; cannam@86: ,set) cannam@86: { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 cannam@86: echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} cannam@86: ac_cache_corrupted=: ;; cannam@86: ,);; cannam@86: *) cannam@86: if test "x$ac_old_val" != "x$ac_new_val"; then cannam@86: { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 cannam@86: echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} cannam@86: { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 cannam@86: echo "$as_me: former value: $ac_old_val" >&2;} cannam@86: { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 cannam@86: echo "$as_me: current value: $ac_new_val" >&2;} cannam@86: ac_cache_corrupted=: cannam@86: fi;; cannam@86: esac cannam@86: # Pass precious variables to config.status. cannam@86: if test "$ac_new_set" = set; then cannam@86: case $ac_new_val in cannam@86: *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) cannam@86: ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; cannam@86: *) ac_arg=$ac_var=$ac_new_val ;; cannam@86: esac cannam@86: case " $ac_configure_args " in cannam@86: *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. cannam@86: *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; cannam@86: esac cannam@86: fi cannam@86: done cannam@86: if $ac_cache_corrupted; then cannam@86: { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 cannam@86: echo "$as_me: error: changes in the environment can compromise the build" >&2;} cannam@86: { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 cannam@86: echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} cannam@86: { (exit 1); exit 1; }; } cannam@86: fi cannam@86: cannam@86: ac_ext=c cannam@86: ac_cpp='$CPP $CPPFLAGS' cannam@86: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' cannam@86: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' cannam@86: ac_compiler_gnu=$ac_cv_c_compiler_gnu cannam@86: cannam@86: cannam@86: cannam@86: cannam@86: cannam@86: cannam@86: cannam@86: cannam@86: cannam@86: cannam@86: cannam@86: cannam@86: cannam@86: cannam@86: cannam@86: cannam@86: cannam@86: cannam@86: cannam@86: am__api_version="1.7" cannam@86: ac_aux_dir= cannam@86: for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do cannam@86: if test -f $ac_dir/install-sh; then cannam@86: ac_aux_dir=$ac_dir cannam@86: ac_install_sh="$ac_aux_dir/install-sh -c" cannam@86: break cannam@86: elif test -f $ac_dir/install.sh; then cannam@86: ac_aux_dir=$ac_dir cannam@86: ac_install_sh="$ac_aux_dir/install.sh -c" cannam@86: break cannam@86: elif test -f $ac_dir/shtool; then cannam@86: ac_aux_dir=$ac_dir cannam@86: ac_install_sh="$ac_aux_dir/shtool install -c" cannam@86: break cannam@86: fi cannam@86: done cannam@86: if test -z "$ac_aux_dir"; then cannam@86: { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 cannam@86: echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} cannam@86: { (exit 1); exit 1; }; } cannam@86: fi cannam@86: ac_config_guess="$SHELL $ac_aux_dir/config.guess" cannam@86: ac_config_sub="$SHELL $ac_aux_dir/config.sub" cannam@86: ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. cannam@86: cannam@86: # Find a good install program. We prefer a C program (faster), cannam@86: # so one script is as good as another. But avoid the broken or cannam@86: # incompatible versions: cannam@86: # SysV /etc/install, /usr/sbin/install cannam@86: # SunOS /usr/etc/install cannam@86: # IRIX /sbin/install cannam@86: # AIX /bin/install cannam@86: # AmigaOS /C/install, which installs bootblocks on floppy discs cannam@86: # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag cannam@86: # AFS /usr/afsws/bin/install, which mishandles nonexistent args cannam@86: # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" cannam@86: # OS/2's system install, which has a completely different semantic cannam@86: # ./install, which can be erroneously created by make from ./install.sh. cannam@86: echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 cannam@86: echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 cannam@86: if test -z "$INSTALL"; then cannam@86: if test "${ac_cv_path_install+set}" = set; then cannam@86: echo $ECHO_N "(cached) $ECHO_C" >&6 cannam@86: else cannam@86: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR cannam@86: for as_dir in $PATH cannam@86: do cannam@86: IFS=$as_save_IFS cannam@86: test -z "$as_dir" && as_dir=. cannam@86: # Account for people who put trailing slashes in PATH elements. cannam@86: case $as_dir/ in cannam@86: ./ | .// | /cC/* | \ cannam@86: /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ cannam@86: ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ cannam@86: /usr/ucb/* ) ;; cannam@86: *) cannam@86: # OSF1 and SCO ODT 3.0 have their own names for install. cannam@86: # Don't use installbsd from OSF since it installs stuff as root cannam@86: # by default. cannam@86: for ac_prog in ginstall scoinst install; do cannam@86: for ac_exec_ext in '' $ac_executable_extensions; do cannam@86: if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then cannam@86: if test $ac_prog = install && cannam@86: grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then cannam@86: # AIX install. It has an incompatible calling convention. cannam@86: : cannam@86: elif test $ac_prog = install && cannam@86: grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then cannam@86: # program-specific install script used by HP pwplus--don't use. cannam@86: : cannam@86: else cannam@86: ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" cannam@86: break 3 cannam@86: fi cannam@86: fi cannam@86: done cannam@86: done cannam@86: ;; cannam@86: esac cannam@86: done cannam@86: cannam@86: cannam@86: fi cannam@86: if test "${ac_cv_path_install+set}" = set; then cannam@86: INSTALL=$ac_cv_path_install cannam@86: else cannam@86: # As a last resort, use the slow shell script. We don't cache a cannam@86: # path for INSTALL within a source directory, because that will cannam@86: # break other packages using the cache if that directory is cannam@86: # removed, or if the path is relative. cannam@86: INSTALL=$ac_install_sh cannam@86: fi cannam@86: fi cannam@86: echo "$as_me:$LINENO: result: $INSTALL" >&5 cannam@86: echo "${ECHO_T}$INSTALL" >&6 cannam@86: cannam@86: # Use test -z because SunOS4 sh mishandles braces in ${var-val}. cannam@86: # It thinks the first close brace ends the variable substitution. cannam@86: test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' cannam@86: cannam@86: test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' cannam@86: cannam@86: test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' cannam@86: cannam@86: echo "$as_me:$LINENO: checking whether build environment is sane" >&5 cannam@86: echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6 cannam@86: # Just in case cannam@86: sleep 1 cannam@86: echo timestamp > conftest.file cannam@86: # Do `set' in a subshell so we don't clobber the current shell's cannam@86: # arguments. Must try -L first in case configure is actually a cannam@86: # symlink; some systems play weird games with the mod time of symlinks cannam@86: # (eg FreeBSD returns the mod time of the symlink's containing cannam@86: # directory). cannam@86: if ( cannam@86: set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` cannam@86: if test "$*" = "X"; then cannam@86: # -L didn't work. cannam@86: set X `ls -t $srcdir/configure conftest.file` cannam@86: fi cannam@86: rm -f conftest.file cannam@86: if test "$*" != "X $srcdir/configure conftest.file" \ cannam@86: && test "$*" != "X conftest.file $srcdir/configure"; then cannam@86: cannam@86: # If neither matched, then we have a broken ls. This can happen cannam@86: # if, for instance, CONFIG_SHELL is bash and it inherits a cannam@86: # broken ls alias from the environment. This has actually cannam@86: # happened. Such a system could not be considered "sane". cannam@86: { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken cannam@86: alias in your environment" >&5 cannam@86: echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken cannam@86: alias in your environment" >&2;} cannam@86: { (exit 1); exit 1; }; } cannam@86: fi cannam@86: cannam@86: test "$2" = conftest.file cannam@86: ) cannam@86: then cannam@86: # Ok. cannam@86: : cannam@86: else cannam@86: { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! cannam@86: Check your system clock" >&5 cannam@86: echo "$as_me: error: newly created file is older than distributed files! cannam@86: Check your system clock" >&2;} cannam@86: { (exit 1); exit 1; }; } cannam@86: fi cannam@86: echo "$as_me:$LINENO: result: yes" >&5 cannam@86: echo "${ECHO_T}yes" >&6 cannam@86: test "$program_prefix" != NONE && cannam@86: program_transform_name="s,^,$program_prefix,;$program_transform_name" cannam@86: # Use a double $ so make ignores it. cannam@86: test "$program_suffix" != NONE && cannam@86: program_transform_name="s,\$,$program_suffix,;$program_transform_name" cannam@86: # Double any \ or $. echo might interpret backslashes. cannam@86: # By default was `s,x,x', remove it if useless. cannam@86: cat <<\_ACEOF >conftest.sed cannam@86: s/[\\$]/&&/g;s/;s,x,x,$// cannam@86: _ACEOF cannam@86: program_transform_name=`echo $program_transform_name | sed -f conftest.sed` cannam@86: rm conftest.sed cannam@86: cannam@86: cannam@86: # expand $ac_aux_dir to an absolute path cannam@86: am_aux_dir=`cd $ac_aux_dir && pwd` cannam@86: cannam@86: test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" cannam@86: # Use eval to expand $SHELL cannam@86: if eval "$MISSING --run true"; then cannam@86: am_missing_run="$MISSING --run " cannam@86: else cannam@86: am_missing_run= cannam@86: { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 cannam@86: echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} cannam@86: fi cannam@86: cannam@86: for ac_prog in gawk mawk nawk awk cannam@86: do cannam@86: # Extract the first word of "$ac_prog", so it can be a program name with args. cannam@86: set dummy $ac_prog; ac_word=$2 cannam@86: echo "$as_me:$LINENO: checking for $ac_word" >&5 cannam@86: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 cannam@86: if test "${ac_cv_prog_AWK+set}" = set; then cannam@86: echo $ECHO_N "(cached) $ECHO_C" >&6 cannam@86: else cannam@86: if test -n "$AWK"; then cannam@86: ac_cv_prog_AWK="$AWK" # Let the user override the test. cannam@86: else cannam@86: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR cannam@86: for as_dir in $PATH cannam@86: do cannam@86: IFS=$as_save_IFS cannam@86: test -z "$as_dir" && as_dir=. cannam@86: for ac_exec_ext in '' $ac_executable_extensions; do cannam@86: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then cannam@86: ac_cv_prog_AWK="$ac_prog" cannam@86: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 cannam@86: break 2 cannam@86: fi cannam@86: done cannam@86: done cannam@86: cannam@86: fi cannam@86: fi cannam@86: AWK=$ac_cv_prog_AWK cannam@86: if test -n "$AWK"; then cannam@86: echo "$as_me:$LINENO: result: $AWK" >&5 cannam@86: echo "${ECHO_T}$AWK" >&6 cannam@86: else cannam@86: echo "$as_me:$LINENO: result: no" >&5 cannam@86: echo "${ECHO_T}no" >&6 cannam@86: fi cannam@86: cannam@86: test -n "$AWK" && break cannam@86: done cannam@86: cannam@86: echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 cannam@86: echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 cannam@86: set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` cannam@86: if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then cannam@86: echo $ECHO_N "(cached) $ECHO_C" >&6 cannam@86: else cannam@86: cat >conftest.make <<\_ACEOF cannam@86: all: cannam@86: @echo 'ac_maketemp="$(MAKE)"' cannam@86: _ACEOF cannam@86: # GNU make sometimes prints "make[1]: Entering...", which would confuse us. cannam@86: eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` cannam@86: if test -n "$ac_maketemp"; then cannam@86: eval ac_cv_prog_make_${ac_make}_set=yes cannam@86: else cannam@86: eval ac_cv_prog_make_${ac_make}_set=no cannam@86: fi cannam@86: rm -f conftest.make cannam@86: fi cannam@86: if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then cannam@86: echo "$as_me:$LINENO: result: yes" >&5 cannam@86: echo "${ECHO_T}yes" >&6 cannam@86: SET_MAKE= cannam@86: else cannam@86: echo "$as_me:$LINENO: result: no" >&5 cannam@86: echo "${ECHO_T}no" >&6 cannam@86: SET_MAKE="MAKE=${MAKE-make}" cannam@86: fi cannam@86: cannam@86: rm -rf .tst 2>/dev/null cannam@86: mkdir .tst 2>/dev/null cannam@86: if test -d .tst; then cannam@86: am__leading_dot=. cannam@86: else cannam@86: am__leading_dot=_ cannam@86: fi cannam@86: rmdir .tst 2>/dev/null cannam@86: cannam@86: # test to see if srcdir already configured cannam@86: if test "`cd $srcdir && pwd`" != "`pwd`" && cannam@86: test -f $srcdir/config.status; then cannam@86: { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 cannam@86: echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} cannam@86: { (exit 1); exit 1; }; } cannam@86: fi cannam@86: cannam@86: # test whether we have cygpath cannam@86: if test -z "$CYGPATH_W"; then cannam@86: if (cygpath --version) >/dev/null 2>/dev/null; then cannam@86: CYGPATH_W='cygpath -w' cannam@86: else cannam@86: CYGPATH_W=echo cannam@86: fi cannam@86: fi cannam@86: cannam@86: cannam@86: # Define the identity of the package. cannam@86: PACKAGE=flac cannam@86: VERSION=1.2.1 cannam@86: cannam@86: cannam@86: cat >>confdefs.h <<_ACEOF cannam@86: #define PACKAGE "$PACKAGE" cannam@86: _ACEOF cannam@86: cannam@86: cannam@86: cat >>confdefs.h <<_ACEOF cannam@86: #define VERSION "$VERSION" cannam@86: _ACEOF cannam@86: cannam@86: # Some tools Automake needs. cannam@86: cannam@86: ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} cannam@86: cannam@86: cannam@86: AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} cannam@86: cannam@86: cannam@86: AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} cannam@86: cannam@86: cannam@86: AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} cannam@86: cannam@86: cannam@86: MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} cannam@86: cannam@86: cannam@86: AMTAR=${AMTAR-"${am_missing_run}tar"} cannam@86: cannam@86: install_sh=${install_sh-"$am_aux_dir/install-sh"} cannam@86: cannam@86: # Installed binaries are usually stripped using `strip' when the user cannam@86: # run `make install-strip'. However `strip' might not be the right cannam@86: # tool to use in cross-compilation environments, therefore Automake cannam@86: # will honor the `STRIP' environment variable to overrule this program. cannam@86: if test "$cross_compiling" != no; then cannam@86: if test -n "$ac_tool_prefix"; then cannam@86: # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. cannam@86: set dummy ${ac_tool_prefix}strip; ac_word=$2 cannam@86: echo "$as_me:$LINENO: checking for $ac_word" >&5 cannam@86: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 cannam@86: if test "${ac_cv_prog_STRIP+set}" = set; then cannam@86: echo $ECHO_N "(cached) $ECHO_C" >&6 cannam@86: else cannam@86: if test -n "$STRIP"; then cannam@86: ac_cv_prog_STRIP="$STRIP" # Let the user override the test. cannam@86: else cannam@86: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR cannam@86: for as_dir in $PATH cannam@86: do cannam@86: IFS=$as_save_IFS cannam@86: test -z "$as_dir" && as_dir=. cannam@86: for ac_exec_ext in '' $ac_executable_extensions; do cannam@86: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then cannam@86: ac_cv_prog_STRIP="${ac_tool_prefix}strip" cannam@86: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 cannam@86: break 2 cannam@86: fi cannam@86: done cannam@86: done cannam@86: cannam@86: fi cannam@86: fi cannam@86: STRIP=$ac_cv_prog_STRIP cannam@86: if test -n "$STRIP"; then cannam@86: echo "$as_me:$LINENO: result: $STRIP" >&5 cannam@86: echo "${ECHO_T}$STRIP" >&6 cannam@86: else cannam@86: echo "$as_me:$LINENO: result: no" >&5 cannam@86: echo "${ECHO_T}no" >&6 cannam@86: fi cannam@86: cannam@86: fi cannam@86: if test -z "$ac_cv_prog_STRIP"; then cannam@86: ac_ct_STRIP=$STRIP cannam@86: # Extract the first word of "strip", so it can be a program name with args. cannam@86: set dummy strip; ac_word=$2 cannam@86: echo "$as_me:$LINENO: checking for $ac_word" >&5 cannam@86: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 cannam@86: if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then cannam@86: echo $ECHO_N "(cached) $ECHO_C" >&6 cannam@86: else cannam@86: if test -n "$ac_ct_STRIP"; then cannam@86: ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. cannam@86: else cannam@86: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR cannam@86: for as_dir in $PATH cannam@86: do cannam@86: IFS=$as_save_IFS cannam@86: test -z "$as_dir" && as_dir=. cannam@86: for ac_exec_ext in '' $ac_executable_extensions; do cannam@86: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then cannam@86: ac_cv_prog_ac_ct_STRIP="strip" cannam@86: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 cannam@86: break 2 cannam@86: fi cannam@86: done cannam@86: done cannam@86: cannam@86: test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" cannam@86: fi cannam@86: fi cannam@86: ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP cannam@86: if test -n "$ac_ct_STRIP"; then cannam@86: echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 cannam@86: echo "${ECHO_T}$ac_ct_STRIP" >&6 cannam@86: else cannam@86: echo "$as_me:$LINENO: result: no" >&5 cannam@86: echo "${ECHO_T}no" >&6 cannam@86: fi cannam@86: cannam@86: STRIP=$ac_ct_STRIP cannam@86: else cannam@86: STRIP="$ac_cv_prog_STRIP" cannam@86: fi cannam@86: cannam@86: fi cannam@86: INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" cannam@86: cannam@86: # We need awk for the "check" target. The system "awk" is bad on cannam@86: # some platforms. cannam@86: cannam@86: cannam@86: cannam@86: cannam@86: # Don't automagically regenerate autoconf/automake generated files unless cannam@86: # explicitly requested. Eases autobuilding -mdz cannam@86: echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5 cannam@86: echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6 cannam@86: # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given. cannam@86: if test "${enable_maintainer_mode+set}" = set; then cannam@86: enableval="$enable_maintainer_mode" cannam@86: USE_MAINTAINER_MODE=$enableval cannam@86: else cannam@86: USE_MAINTAINER_MODE=no cannam@86: fi; cannam@86: echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5 cannam@86: echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6 cannam@86: cannam@86: cannam@86: if test $USE_MAINTAINER_MODE = yes; then cannam@86: MAINTAINER_MODE_TRUE= cannam@86: MAINTAINER_MODE_FALSE='#' cannam@86: else cannam@86: MAINTAINER_MODE_TRUE='#' cannam@86: MAINTAINER_MODE_FALSE= cannam@86: fi cannam@86: cannam@86: MAINT=$MAINTAINER_MODE_TRUE cannam@86: cannam@86: cannam@86: cannam@86: # We need two libtools, one that builds both shared and static, and cannam@86: # one that builds only static. This is because the resulting libtool cannam@86: # does not allow us to choose which to build at runtime. cannam@86: # Check whether --enable-shared or --disable-shared was given. cannam@86: if test "${enable_shared+set}" = set; then cannam@86: enableval="$enable_shared" cannam@86: p=${PACKAGE-default} cannam@86: case $enableval in cannam@86: yes) enable_shared=yes ;; cannam@86: no) enable_shared=no ;; cannam@86: *) cannam@86: enable_shared=no cannam@86: # Look at the argument we got. We use all the common list separators. cannam@86: lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," cannam@86: for pkg in $enableval; do cannam@86: IFS="$lt_save_ifs" cannam@86: if test "X$pkg" = "X$p"; then cannam@86: enable_shared=yes cannam@86: fi cannam@86: done cannam@86: IFS="$lt_save_ifs" cannam@86: ;; cannam@86: esac cannam@86: else cannam@86: enable_shared=yes cannam@86: fi; cannam@86: cannam@86: # Check whether --enable-static or --disable-static was given. cannam@86: if test "${enable_static+set}" = set; then cannam@86: enableval="$enable_static" cannam@86: p=${PACKAGE-default} cannam@86: case $enableval in cannam@86: yes) enable_static=yes ;; cannam@86: no) enable_static=no ;; cannam@86: *) cannam@86: enable_static=no cannam@86: # Look at the argument we got. We use all the common list separators. cannam@86: lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," cannam@86: for pkg in $enableval; do cannam@86: IFS="$lt_save_ifs" cannam@86: if test "X$pkg" = "X$p"; then cannam@86: enable_static=yes cannam@86: fi cannam@86: done cannam@86: IFS="$lt_save_ifs" cannam@86: ;; cannam@86: esac cannam@86: else cannam@86: enable_static=yes cannam@86: fi; cannam@86: cannam@86: # Check whether --enable-fast-install or --disable-fast-install was given. cannam@86: if test "${enable_fast_install+set}" = set; then cannam@86: enableval="$enable_fast_install" cannam@86: p=${PACKAGE-default} cannam@86: case $enableval in cannam@86: yes) enable_fast_install=yes ;; cannam@86: no) enable_fast_install=no ;; cannam@86: *) cannam@86: enable_fast_install=no cannam@86: # Look at the argument we got. We use all the common list separators. cannam@86: lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," cannam@86: for pkg in $enableval; do cannam@86: IFS="$lt_save_ifs" cannam@86: if test "X$pkg" = "X$p"; then cannam@86: enable_fast_install=yes cannam@86: fi cannam@86: done cannam@86: IFS="$lt_save_ifs" cannam@86: ;; cannam@86: esac cannam@86: else cannam@86: enable_fast_install=yes cannam@86: fi; cannam@86: cannam@86: # Make sure we can run config.sub. cannam@86: $ac_config_sub sun4 >/dev/null 2>&1 || cannam@86: { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 cannam@86: echo "$as_me: error: cannot run $ac_config_sub" >&2;} cannam@86: { (exit 1); exit 1; }; } cannam@86: cannam@86: echo "$as_me:$LINENO: checking build system type" >&5 cannam@86: echo $ECHO_N "checking build system type... $ECHO_C" >&6 cannam@86: if test "${ac_cv_build+set}" = set; then cannam@86: echo $ECHO_N "(cached) $ECHO_C" >&6 cannam@86: else cannam@86: ac_cv_build_alias=$build_alias cannam@86: test -z "$ac_cv_build_alias" && cannam@86: ac_cv_build_alias=`$ac_config_guess` cannam@86: test -z "$ac_cv_build_alias" && cannam@86: { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 cannam@86: echo "$as_me: error: cannot guess build type; you must specify one" >&2;} cannam@86: { (exit 1); exit 1; }; } cannam@86: ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || cannam@86: { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 cannam@86: echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} cannam@86: { (exit 1); exit 1; }; } cannam@86: cannam@86: fi cannam@86: echo "$as_me:$LINENO: result: $ac_cv_build" >&5 cannam@86: echo "${ECHO_T}$ac_cv_build" >&6 cannam@86: build=$ac_cv_build cannam@86: build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` cannam@86: build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` cannam@86: build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` cannam@86: cannam@86: cannam@86: echo "$as_me:$LINENO: checking host system type" >&5 cannam@86: echo $ECHO_N "checking host system type... $ECHO_C" >&6 cannam@86: if test "${ac_cv_host+set}" = set; then cannam@86: echo $ECHO_N "(cached) $ECHO_C" >&6 cannam@86: else cannam@86: ac_cv_host_alias=$host_alias cannam@86: test -z "$ac_cv_host_alias" && cannam@86: ac_cv_host_alias=$ac_cv_build_alias cannam@86: ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || cannam@86: { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 cannam@86: echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} cannam@86: { (exit 1); exit 1; }; } cannam@86: cannam@86: fi cannam@86: echo "$as_me:$LINENO: result: $ac_cv_host" >&5 cannam@86: echo "${ECHO_T}$ac_cv_host" >&6 cannam@86: host=$ac_cv_host cannam@86: host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` cannam@86: host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` cannam@86: host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` cannam@86: cannam@86: cannam@86: DEPDIR="${am__leading_dot}deps" cannam@86: cannam@86: ac_config_commands="$ac_config_commands depfiles" cannam@86: cannam@86: cannam@86: am_make=${MAKE-make} cannam@86: cat > confinc << 'END' cannam@86: am__doit: cannam@86: @echo done cannam@86: .PHONY: am__doit cannam@86: END cannam@86: # If we don't find an include directive, just comment out the code. cannam@86: echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 cannam@86: echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6 cannam@86: am__include="#" cannam@86: am__quote= cannam@86: _am_result=none cannam@86: # First try GNU make style include. cannam@86: echo "include confinc" > confmf cannam@86: # We grep out `Entering directory' and `Leaving directory' cannam@86: # messages which can occur if `w' ends up in MAKEFLAGS. cannam@86: # In particular we don't look at `^make:' because GNU make might cannam@86: # be invoked under some other name (usually "gmake"), in which cannam@86: # case it prints its new name instead of `make'. cannam@86: if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then cannam@86: am__include=include cannam@86: am__quote= cannam@86: _am_result=GNU cannam@86: fi cannam@86: # Now try BSD make style include. cannam@86: if test "$am__include" = "#"; then cannam@86: echo '.include "confinc"' > confmf cannam@86: if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then cannam@86: am__include=.include cannam@86: am__quote="\"" cannam@86: _am_result=BSD cannam@86: fi cannam@86: fi cannam@86: cannam@86: cannam@86: echo "$as_me:$LINENO: result: $_am_result" >&5 cannam@86: echo "${ECHO_T}$_am_result" >&6 cannam@86: rm -f confinc confmf cannam@86: cannam@86: # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given. cannam@86: if test "${enable_dependency_tracking+set}" = set; then cannam@86: enableval="$enable_dependency_tracking" cannam@86: cannam@86: fi; cannam@86: if test "x$enable_dependency_tracking" != xno; then cannam@86: am_depcomp="$ac_aux_dir/depcomp" cannam@86: AMDEPBACKSLASH='\' cannam@86: fi cannam@86: cannam@86: cannam@86: if test "x$enable_dependency_tracking" != xno; then cannam@86: AMDEP_TRUE= cannam@86: AMDEP_FALSE='#' cannam@86: else cannam@86: AMDEP_TRUE='#' cannam@86: AMDEP_FALSE= cannam@86: fi cannam@86: cannam@86: cannam@86: cannam@86: ac_ext=c cannam@86: ac_cpp='$CPP $CPPFLAGS' cannam@86: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' cannam@86: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' cannam@86: ac_compiler_gnu=$ac_cv_c_compiler_gnu cannam@86: if test -n "$ac_tool_prefix"; then cannam@86: # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. cannam@86: set dummy ${ac_tool_prefix}gcc; ac_word=$2 cannam@86: echo "$as_me:$LINENO: checking for $ac_word" >&5 cannam@86: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 cannam@86: if test "${ac_cv_prog_CC+set}" = set; then cannam@86: echo $ECHO_N "(cached) $ECHO_C" >&6 cannam@86: else cannam@86: if test -n "$CC"; then cannam@86: ac_cv_prog_CC="$CC" # Let the user override the test. cannam@86: else cannam@86: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR cannam@86: for as_dir in $PATH cannam@86: do cannam@86: IFS=$as_save_IFS cannam@86: test -z "$as_dir" && as_dir=. cannam@86: for ac_exec_ext in '' $ac_executable_extensions; do cannam@86: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then cannam@86: ac_cv_prog_CC="${ac_tool_prefix}gcc" cannam@86: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 cannam@86: break 2 cannam@86: fi cannam@86: done cannam@86: done cannam@86: cannam@86: fi cannam@86: fi cannam@86: CC=$ac_cv_prog_CC cannam@86: if test -n "$CC"; then cannam@86: echo "$as_me:$LINENO: result: $CC" >&5 cannam@86: echo "${ECHO_T}$CC" >&6 cannam@86: else cannam@86: echo "$as_me:$LINENO: result: no" >&5 cannam@86: echo "${ECHO_T}no" >&6 cannam@86: fi cannam@86: cannam@86: fi cannam@86: if test -z "$ac_cv_prog_CC"; then cannam@86: ac_ct_CC=$CC cannam@86: # Extract the first word of "gcc", so it can be a program name with args. cannam@86: set dummy gcc; ac_word=$2 cannam@86: echo "$as_me:$LINENO: checking for $ac_word" >&5 cannam@86: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 cannam@86: if test "${ac_cv_prog_ac_ct_CC+set}" = set; then cannam@86: echo $ECHO_N "(cached) $ECHO_C" >&6 cannam@86: else cannam@86: if test -n "$ac_ct_CC"; then cannam@86: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. cannam@86: else cannam@86: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR cannam@86: for as_dir in $PATH cannam@86: do cannam@86: IFS=$as_save_IFS cannam@86: test -z "$as_dir" && as_dir=. cannam@86: for ac_exec_ext in '' $ac_executable_extensions; do cannam@86: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then cannam@86: ac_cv_prog_ac_ct_CC="gcc" cannam@86: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 cannam@86: break 2 cannam@86: fi cannam@86: done cannam@86: done cannam@86: cannam@86: fi cannam@86: fi cannam@86: ac_ct_CC=$ac_cv_prog_ac_ct_CC cannam@86: if test -n "$ac_ct_CC"; then cannam@86: echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 cannam@86: echo "${ECHO_T}$ac_ct_CC" >&6 cannam@86: else cannam@86: echo "$as_me:$LINENO: result: no" >&5 cannam@86: echo "${ECHO_T}no" >&6 cannam@86: fi cannam@86: cannam@86: CC=$ac_ct_CC cannam@86: else cannam@86: CC="$ac_cv_prog_CC" cannam@86: fi cannam@86: cannam@86: if test -z "$CC"; then cannam@86: if test -n "$ac_tool_prefix"; then cannam@86: # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. cannam@86: set dummy ${ac_tool_prefix}cc; ac_word=$2 cannam@86: echo "$as_me:$LINENO: checking for $ac_word" >&5 cannam@86: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 cannam@86: if test "${ac_cv_prog_CC+set}" = set; then cannam@86: echo $ECHO_N "(cached) $ECHO_C" >&6 cannam@86: else cannam@86: if test -n "$CC"; then cannam@86: ac_cv_prog_CC="$CC" # Let the user override the test. cannam@86: else cannam@86: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR cannam@86: for as_dir in $PATH cannam@86: do cannam@86: IFS=$as_save_IFS cannam@86: test -z "$as_dir" && as_dir=. cannam@86: for ac_exec_ext in '' $ac_executable_extensions; do cannam@86: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then cannam@86: ac_cv_prog_CC="${ac_tool_prefix}cc" cannam@86: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 cannam@86: break 2 cannam@86: fi cannam@86: done cannam@86: done cannam@86: cannam@86: fi cannam@86: fi cannam@86: CC=$ac_cv_prog_CC cannam@86: if test -n "$CC"; then cannam@86: echo "$as_me:$LINENO: result: $CC" >&5 cannam@86: echo "${ECHO_T}$CC" >&6 cannam@86: else cannam@86: echo "$as_me:$LINENO: result: no" >&5 cannam@86: echo "${ECHO_T}no" >&6 cannam@86: fi cannam@86: cannam@86: fi cannam@86: if test -z "$ac_cv_prog_CC"; then cannam@86: ac_ct_CC=$CC cannam@86: # Extract the first word of "cc", so it can be a program name with args. cannam@86: set dummy cc; ac_word=$2 cannam@86: echo "$as_me:$LINENO: checking for $ac_word" >&5 cannam@86: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 cannam@86: if test "${ac_cv_prog_ac_ct_CC+set}" = set; then cannam@86: echo $ECHO_N "(cached) $ECHO_C" >&6 cannam@86: else cannam@86: if test -n "$ac_ct_CC"; then cannam@86: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. cannam@86: else cannam@86: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR cannam@86: for as_dir in $PATH cannam@86: do cannam@86: IFS=$as_save_IFS cannam@86: test -z "$as_dir" && as_dir=. cannam@86: for ac_exec_ext in '' $ac_executable_extensions; do cannam@86: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then cannam@86: ac_cv_prog_ac_ct_CC="cc" cannam@86: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 cannam@86: break 2 cannam@86: fi cannam@86: done cannam@86: done cannam@86: cannam@86: fi cannam@86: fi cannam@86: ac_ct_CC=$ac_cv_prog_ac_ct_CC cannam@86: if test -n "$ac_ct_CC"; then cannam@86: echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 cannam@86: echo "${ECHO_T}$ac_ct_CC" >&6 cannam@86: else cannam@86: echo "$as_me:$LINENO: result: no" >&5 cannam@86: echo "${ECHO_T}no" >&6 cannam@86: fi cannam@86: cannam@86: CC=$ac_ct_CC cannam@86: else cannam@86: CC="$ac_cv_prog_CC" cannam@86: fi cannam@86: cannam@86: fi cannam@86: if test -z "$CC"; then cannam@86: # Extract the first word of "cc", so it can be a program name with args. cannam@86: set dummy cc; ac_word=$2 cannam@86: echo "$as_me:$LINENO: checking for $ac_word" >&5 cannam@86: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 cannam@86: if test "${ac_cv_prog_CC+set}" = set; then cannam@86: echo $ECHO_N "(cached) $ECHO_C" >&6 cannam@86: else cannam@86: if test -n "$CC"; then cannam@86: ac_cv_prog_CC="$CC" # Let the user override the test. cannam@86: else cannam@86: ac_prog_rejected=no cannam@86: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR cannam@86: for as_dir in $PATH cannam@86: do cannam@86: IFS=$as_save_IFS cannam@86: test -z "$as_dir" && as_dir=. cannam@86: for ac_exec_ext in '' $ac_executable_extensions; do cannam@86: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then cannam@86: if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then cannam@86: ac_prog_rejected=yes cannam@86: continue cannam@86: fi cannam@86: ac_cv_prog_CC="cc" cannam@86: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 cannam@86: break 2 cannam@86: fi cannam@86: done cannam@86: done cannam@86: cannam@86: if test $ac_prog_rejected = yes; then cannam@86: # We found a bogon in the path, so make sure we never use it. cannam@86: set dummy $ac_cv_prog_CC cannam@86: shift cannam@86: if test $# != 0; then cannam@86: # We chose a different compiler from the bogus one. cannam@86: # However, it has the same basename, so the bogon will be chosen cannam@86: # first if we set CC to just the basename; use the full file name. cannam@86: shift cannam@86: ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" cannam@86: fi cannam@86: fi cannam@86: fi cannam@86: fi cannam@86: CC=$ac_cv_prog_CC cannam@86: if test -n "$CC"; then cannam@86: echo "$as_me:$LINENO: result: $CC" >&5 cannam@86: echo "${ECHO_T}$CC" >&6 cannam@86: else cannam@86: echo "$as_me:$LINENO: result: no" >&5 cannam@86: echo "${ECHO_T}no" >&6 cannam@86: fi cannam@86: cannam@86: fi cannam@86: if test -z "$CC"; then cannam@86: if test -n "$ac_tool_prefix"; then cannam@86: for ac_prog in cl cannam@86: do cannam@86: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. cannam@86: set dummy $ac_tool_prefix$ac_prog; ac_word=$2 cannam@86: echo "$as_me:$LINENO: checking for $ac_word" >&5 cannam@86: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 cannam@86: if test "${ac_cv_prog_CC+set}" = set; then cannam@86: echo $ECHO_N "(cached) $ECHO_C" >&6 cannam@86: else cannam@86: if test -n "$CC"; then cannam@86: ac_cv_prog_CC="$CC" # Let the user override the test. cannam@86: else cannam@86: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR cannam@86: for as_dir in $PATH cannam@86: do cannam@86: IFS=$as_save_IFS cannam@86: test -z "$as_dir" && as_dir=. cannam@86: for ac_exec_ext in '' $ac_executable_extensions; do cannam@86: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then cannam@86: ac_cv_prog_CC="$ac_tool_prefix$ac_prog" cannam@86: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 cannam@86: break 2 cannam@86: fi cannam@86: done cannam@86: done cannam@86: cannam@86: fi cannam@86: fi cannam@86: CC=$ac_cv_prog_CC cannam@86: if test -n "$CC"; then cannam@86: echo "$as_me:$LINENO: result: $CC" >&5 cannam@86: echo "${ECHO_T}$CC" >&6 cannam@86: else cannam@86: echo "$as_me:$LINENO: result: no" >&5 cannam@86: echo "${ECHO_T}no" >&6 cannam@86: fi cannam@86: cannam@86: test -n "$CC" && break cannam@86: done cannam@86: fi cannam@86: if test -z "$CC"; then cannam@86: ac_ct_CC=$CC cannam@86: for ac_prog in cl cannam@86: do cannam@86: # Extract the first word of "$ac_prog", so it can be a program name with args. cannam@86: set dummy $ac_prog; ac_word=$2 cannam@86: echo "$as_me:$LINENO: checking for $ac_word" >&5 cannam@86: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 cannam@86: if test "${ac_cv_prog_ac_ct_CC+set}" = set; then cannam@86: echo $ECHO_N "(cached) $ECHO_C" >&6 cannam@86: else cannam@86: if test -n "$ac_ct_CC"; then cannam@86: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. cannam@86: else cannam@86: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR cannam@86: for as_dir in $PATH cannam@86: do cannam@86: IFS=$as_save_IFS cannam@86: test -z "$as_dir" && as_dir=. cannam@86: for ac_exec_ext in '' $ac_executable_extensions; do cannam@86: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then cannam@86: ac_cv_prog_ac_ct_CC="$ac_prog" cannam@86: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 cannam@86: break 2 cannam@86: fi cannam@86: done cannam@86: done cannam@86: cannam@86: fi cannam@86: fi cannam@86: ac_ct_CC=$ac_cv_prog_ac_ct_CC cannam@86: if test -n "$ac_ct_CC"; then cannam@86: echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 cannam@86: echo "${ECHO_T}$ac_ct_CC" >&6 cannam@86: else cannam@86: echo "$as_me:$LINENO: result: no" >&5 cannam@86: echo "${ECHO_T}no" >&6 cannam@86: fi cannam@86: cannam@86: test -n "$ac_ct_CC" && break cannam@86: done cannam@86: cannam@86: CC=$ac_ct_CC cannam@86: fi cannam@86: cannam@86: fi cannam@86: cannam@86: cannam@86: test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH cannam@86: See \`config.log' for more details." >&5 cannam@86: echo "$as_me: error: no acceptable C compiler found in \$PATH cannam@86: See \`config.log' for more details." >&2;} cannam@86: { (exit 1); exit 1; }; } cannam@86: cannam@86: # Provide some information about the compiler. cannam@86: echo "$as_me:$LINENO:" \ cannam@86: "checking for C compiler version" >&5 cannam@86: ac_compiler=`set X $ac_compile; echo $2` cannam@86: { (eval echo "$as_me:$LINENO: \"$ac_compiler --version &5\"") >&5 cannam@86: (eval $ac_compiler --version &5) 2>&5 cannam@86: ac_status=$? cannam@86: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@86: (exit $ac_status); } cannam@86: { (eval echo "$as_me:$LINENO: \"$ac_compiler -v &5\"") >&5 cannam@86: (eval $ac_compiler -v &5) 2>&5 cannam@86: ac_status=$? cannam@86: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@86: (exit $ac_status); } cannam@86: { (eval echo "$as_me:$LINENO: \"$ac_compiler -V &5\"") >&5 cannam@86: (eval $ac_compiler -V &5) 2>&5 cannam@86: ac_status=$? cannam@86: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@86: (exit $ac_status); } cannam@86: cannam@86: cat >conftest.$ac_ext <<_ACEOF cannam@86: /* confdefs.h. */ cannam@86: _ACEOF cannam@86: cat confdefs.h >>conftest.$ac_ext cannam@86: cat >>conftest.$ac_ext <<_ACEOF cannam@86: /* end confdefs.h. */ cannam@86: cannam@86: int cannam@86: main () cannam@86: { cannam@86: cannam@86: ; cannam@86: return 0; cannam@86: } cannam@86: _ACEOF cannam@86: ac_clean_files_save=$ac_clean_files cannam@86: ac_clean_files="$ac_clean_files a.out a.exe b.out" cannam@86: # Try to create an executable without -o first, disregard a.out. cannam@86: # It will help us diagnose broken compilers, and finding out an intuition cannam@86: # of exeext. cannam@86: echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 cannam@86: echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 cannam@86: ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` cannam@86: if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 cannam@86: (eval $ac_link_default) 2>&5 cannam@86: ac_status=$? cannam@86: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@86: (exit $ac_status); }; then cannam@86: # Find the output, starting from the most likely. This scheme is cannam@86: # not robust to junk in `.', hence go to wildcards (a.*) only as a last cannam@86: # resort. cannam@86: cannam@86: # Be careful to initialize this variable, since it used to be cached. cannam@86: # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. cannam@86: ac_cv_exeext= cannam@86: # b.out is created by i960 compilers. cannam@86: for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out cannam@86: do cannam@86: test -f "$ac_file" || continue cannam@86: case $ac_file in cannam@86: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) cannam@86: ;; cannam@86: conftest.$ac_ext ) cannam@86: # This is the source file. cannam@86: ;; cannam@86: [ab].out ) cannam@86: # We found the default executable, but exeext='' is most cannam@86: # certainly right. cannam@86: break;; cannam@86: *.* ) cannam@86: ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` cannam@86: # FIXME: I believe we export ac_cv_exeext for Libtool, cannam@86: # but it would be cool to find out if it's true. Does anybody cannam@86: # maintain Libtool? --akim. cannam@86: export ac_cv_exeext cannam@86: break;; cannam@86: * ) cannam@86: break;; cannam@86: esac cannam@86: done cannam@86: else cannam@86: echo "$as_me: failed program was:" >&5 cannam@86: sed 's/^/| /' conftest.$ac_ext >&5 cannam@86: cannam@86: { { echo "$as_me:$LINENO: error: C compiler cannot create executables cannam@86: See \`config.log' for more details." >&5 cannam@86: echo "$as_me: error: C compiler cannot create executables cannam@86: See \`config.log' for more details." >&2;} cannam@86: { (exit 77); exit 77; }; } cannam@86: fi cannam@86: cannam@86: ac_exeext=$ac_cv_exeext cannam@86: echo "$as_me:$LINENO: result: $ac_file" >&5 cannam@86: echo "${ECHO_T}$ac_file" >&6 cannam@86: cannam@86: # Check the compiler produces executables we can run. If not, either cannam@86: # the compiler is broken, or we cross compile. cannam@86: echo "$as_me:$LINENO: checking whether the C compiler works" >&5 cannam@86: echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 cannam@86: # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 cannam@86: # If not cross compiling, check that we can run a simple program. cannam@86: if test "$cross_compiling" != yes; then cannam@86: if { ac_try='./$ac_file' cannam@86: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 cannam@86: (eval $ac_try) 2>&5 cannam@86: ac_status=$? cannam@86: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@86: (exit $ac_status); }; }; then cannam@86: cross_compiling=no cannam@86: else cannam@86: if test "$cross_compiling" = maybe; then cannam@86: cross_compiling=yes cannam@86: else cannam@86: { { echo "$as_me:$LINENO: error: cannot run C compiled programs. cannam@86: If you meant to cross compile, use \`--host'. cannam@86: See \`config.log' for more details." >&5 cannam@86: echo "$as_me: error: cannot run C compiled programs. cannam@86: If you meant to cross compile, use \`--host'. cannam@86: See \`config.log' for more details." >&2;} cannam@86: { (exit 1); exit 1; }; } cannam@86: fi cannam@86: fi cannam@86: fi cannam@86: echo "$as_me:$LINENO: result: yes" >&5 cannam@86: echo "${ECHO_T}yes" >&6 cannam@86: cannam@86: rm -f a.out a.exe conftest$ac_cv_exeext b.out cannam@86: ac_clean_files=$ac_clean_files_save cannam@86: # Check the compiler produces executables we can run. If not, either cannam@86: # the compiler is broken, or we cross compile. cannam@86: echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 cannam@86: echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 cannam@86: echo "$as_me:$LINENO: result: $cross_compiling" >&5 cannam@86: echo "${ECHO_T}$cross_compiling" >&6 cannam@86: cannam@86: echo "$as_me:$LINENO: checking for suffix of executables" >&5 cannam@86: echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 cannam@86: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 cannam@86: (eval $ac_link) 2>&5 cannam@86: ac_status=$? cannam@86: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@86: (exit $ac_status); }; then cannam@86: # If both `conftest.exe' and `conftest' are `present' (well, observable) cannam@86: # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will cannam@86: # work properly (i.e., refer to `conftest.exe'), while it won't with cannam@86: # `rm'. cannam@86: for ac_file in conftest.exe conftest conftest.*; do cannam@86: test -f "$ac_file" || continue cannam@86: case $ac_file in cannam@86: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; cannam@86: *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` cannam@86: export ac_cv_exeext cannam@86: break;; cannam@86: * ) break;; cannam@86: esac cannam@86: done cannam@86: else cannam@86: { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link cannam@86: See \`config.log' for more details." >&5 cannam@86: echo "$as_me: error: cannot compute suffix of executables: cannot compile and link cannam@86: See \`config.log' for more details." >&2;} cannam@86: { (exit 1); exit 1; }; } cannam@86: fi cannam@86: cannam@86: rm -f conftest$ac_cv_exeext cannam@86: echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 cannam@86: echo "${ECHO_T}$ac_cv_exeext" >&6 cannam@86: cannam@86: rm -f conftest.$ac_ext cannam@86: EXEEXT=$ac_cv_exeext cannam@86: ac_exeext=$EXEEXT cannam@86: echo "$as_me:$LINENO: checking for suffix of object files" >&5 cannam@86: echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 cannam@86: if test "${ac_cv_objext+set}" = set; then cannam@86: echo $ECHO_N "(cached) $ECHO_C" >&6 cannam@86: else cannam@86: cat >conftest.$ac_ext <<_ACEOF cannam@86: /* confdefs.h. */ cannam@86: _ACEOF cannam@86: cat confdefs.h >>conftest.$ac_ext cannam@86: cat >>conftest.$ac_ext <<_ACEOF cannam@86: /* end confdefs.h. */ cannam@86: cannam@86: int cannam@86: main () cannam@86: { cannam@86: cannam@86: ; cannam@86: return 0; cannam@86: } cannam@86: _ACEOF cannam@86: rm -f conftest.o conftest.obj cannam@86: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 cannam@86: (eval $ac_compile) 2>&5 cannam@86: ac_status=$? cannam@86: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@86: (exit $ac_status); }; then cannam@86: for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do cannam@86: case $ac_file in cannam@86: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; cannam@86: *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` cannam@86: break;; cannam@86: esac cannam@86: done cannam@86: else cannam@86: echo "$as_me: failed program was:" >&5 cannam@86: sed 's/^/| /' conftest.$ac_ext >&5 cannam@86: cannam@86: { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile cannam@86: See \`config.log' for more details." >&5 cannam@86: echo "$as_me: error: cannot compute suffix of object files: cannot compile cannam@86: See \`config.log' for more details." >&2;} cannam@86: { (exit 1); exit 1; }; } cannam@86: fi cannam@86: cannam@86: rm -f conftest.$ac_cv_objext conftest.$ac_ext cannam@86: fi cannam@86: echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 cannam@86: echo "${ECHO_T}$ac_cv_objext" >&6 cannam@86: OBJEXT=$ac_cv_objext cannam@86: ac_objext=$OBJEXT cannam@86: echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 cannam@86: echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 cannam@86: if test "${ac_cv_c_compiler_gnu+set}" = set; then cannam@86: echo $ECHO_N "(cached) $ECHO_C" >&6 cannam@86: else cannam@86: cat >conftest.$ac_ext <<_ACEOF cannam@86: /* confdefs.h. */ cannam@86: _ACEOF cannam@86: cat confdefs.h >>conftest.$ac_ext cannam@86: cat >>conftest.$ac_ext <<_ACEOF cannam@86: /* end confdefs.h. */ cannam@86: cannam@86: int cannam@86: main () cannam@86: { cannam@86: #ifndef __GNUC__ cannam@86: choke me cannam@86: #endif cannam@86: cannam@86: ; cannam@86: return 0; cannam@86: } cannam@86: _ACEOF cannam@86: rm -f conftest.$ac_objext cannam@86: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 cannam@86: (eval $ac_compile) 2>conftest.er1 cannam@86: ac_status=$? cannam@86: grep -v '^ *+' conftest.er1 >conftest.err cannam@86: rm -f conftest.er1 cannam@86: cat conftest.err >&5 cannam@86: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@86: (exit $ac_status); } && cannam@86: { ac_try='test -z "$ac_c_werror_flag" cannam@86: || test ! -s conftest.err' cannam@86: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 cannam@86: (eval $ac_try) 2>&5 cannam@86: ac_status=$? cannam@86: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@86: (exit $ac_status); }; } && cannam@86: { ac_try='test -s conftest.$ac_objext' cannam@86: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 cannam@86: (eval $ac_try) 2>&5 cannam@86: ac_status=$? cannam@86: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@86: (exit $ac_status); }; }; then cannam@86: ac_compiler_gnu=yes cannam@86: else cannam@86: echo "$as_me: failed program was:" >&5 cannam@86: sed 's/^/| /' conftest.$ac_ext >&5 cannam@86: cannam@86: ac_compiler_gnu=no cannam@86: fi cannam@86: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext cannam@86: ac_cv_c_compiler_gnu=$ac_compiler_gnu cannam@86: cannam@86: fi cannam@86: echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 cannam@86: echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 cannam@86: GCC=`test $ac_compiler_gnu = yes && echo yes` cannam@86: ac_test_CFLAGS=${CFLAGS+set} cannam@86: ac_save_CFLAGS=$CFLAGS cannam@86: CFLAGS="-g" cannam@86: echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 cannam@86: echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 cannam@86: if test "${ac_cv_prog_cc_g+set}" = set; then cannam@86: echo $ECHO_N "(cached) $ECHO_C" >&6 cannam@86: else cannam@86: cat >conftest.$ac_ext <<_ACEOF cannam@86: /* confdefs.h. */ cannam@86: _ACEOF cannam@86: cat confdefs.h >>conftest.$ac_ext cannam@86: cat >>conftest.$ac_ext <<_ACEOF cannam@86: /* end confdefs.h. */ cannam@86: cannam@86: int cannam@86: main () cannam@86: { cannam@86: cannam@86: ; cannam@86: return 0; cannam@86: } cannam@86: _ACEOF cannam@86: rm -f conftest.$ac_objext cannam@86: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 cannam@86: (eval $ac_compile) 2>conftest.er1 cannam@86: ac_status=$? cannam@86: grep -v '^ *+' conftest.er1 >conftest.err cannam@86: rm -f conftest.er1 cannam@86: cat conftest.err >&5 cannam@86: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@86: (exit $ac_status); } && cannam@86: { ac_try='test -z "$ac_c_werror_flag" cannam@86: || test ! -s conftest.err' cannam@86: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 cannam@86: (eval $ac_try) 2>&5 cannam@86: ac_status=$? cannam@86: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@86: (exit $ac_status); }; } && cannam@86: { ac_try='test -s conftest.$ac_objext' cannam@86: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 cannam@86: (eval $ac_try) 2>&5 cannam@86: ac_status=$? cannam@86: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@86: (exit $ac_status); }; }; then cannam@86: ac_cv_prog_cc_g=yes cannam@86: else cannam@86: echo "$as_me: failed program was:" >&5 cannam@86: sed 's/^/| /' conftest.$ac_ext >&5 cannam@86: cannam@86: ac_cv_prog_cc_g=no cannam@86: fi cannam@86: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext cannam@86: fi cannam@86: echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 cannam@86: echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 cannam@86: if test "$ac_test_CFLAGS" = set; then cannam@86: CFLAGS=$ac_save_CFLAGS cannam@86: elif test $ac_cv_prog_cc_g = yes; then cannam@86: if test "$GCC" = yes; then cannam@86: CFLAGS="-g -O2" cannam@86: else cannam@86: CFLAGS="-g" cannam@86: fi cannam@86: else cannam@86: if test "$GCC" = yes; then cannam@86: CFLAGS="-O2" cannam@86: else cannam@86: CFLAGS= cannam@86: fi cannam@86: fi cannam@86: echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 cannam@86: echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 cannam@86: if test "${ac_cv_prog_cc_stdc+set}" = set; then cannam@86: echo $ECHO_N "(cached) $ECHO_C" >&6 cannam@86: else cannam@86: ac_cv_prog_cc_stdc=no cannam@86: ac_save_CC=$CC cannam@86: cat >conftest.$ac_ext <<_ACEOF cannam@86: /* confdefs.h. */ cannam@86: _ACEOF cannam@86: cat confdefs.h >>conftest.$ac_ext cannam@86: cat >>conftest.$ac_ext <<_ACEOF cannam@86: /* end confdefs.h. */ cannam@86: #include cannam@86: #include cannam@86: #include cannam@86: #include cannam@86: /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ cannam@86: struct buf { int x; }; cannam@86: FILE * (*rcsopen) (struct buf *, struct stat *, int); cannam@86: static char *e (p, i) cannam@86: char **p; cannam@86: int i; cannam@86: { cannam@86: return p[i]; cannam@86: } cannam@86: static char *f (char * (*g) (char **, int), char **p, ...) cannam@86: { cannam@86: char *s; cannam@86: va_list v; cannam@86: va_start (v,p); cannam@86: s = g (p, va_arg (v,int)); cannam@86: va_end (v); cannam@86: return s; cannam@86: } cannam@86: cannam@86: /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has cannam@86: function prototypes and stuff, but not '\xHH' hex character constants. cannam@86: These don't provoke an error unfortunately, instead are silently treated cannam@86: as 'x'. The following induces an error, until -std1 is added to get cannam@86: proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an cannam@86: array size at least. It's necessary to write '\x00'==0 to get something cannam@86: that's true only with -std1. */ cannam@86: int osf4_cc_array ['\x00' == 0 ? 1 : -1]; cannam@86: cannam@86: int test (int i, double x); cannam@86: struct s1 {int (*f) (int a);}; cannam@86: struct s2 {int (*f) (double a);}; cannam@86: int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); cannam@86: int argc; cannam@86: char **argv; cannam@86: int cannam@86: main () cannam@86: { cannam@86: return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; cannam@86: ; cannam@86: return 0; cannam@86: } cannam@86: _ACEOF cannam@86: # Don't try gcc -ansi; that turns off useful extensions and cannam@86: # breaks some systems' header files. cannam@86: # AIX -qlanglvl=ansi cannam@86: # Ultrix and OSF/1 -std1 cannam@86: # HP-UX 10.20 and later -Ae cannam@86: # HP-UX older versions -Aa -D_HPUX_SOURCE cannam@86: # SVR4 -Xc -D__EXTENSIONS__ cannam@86: for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" cannam@86: do cannam@86: CC="$ac_save_CC $ac_arg" cannam@86: rm -f conftest.$ac_objext cannam@86: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 cannam@86: (eval $ac_compile) 2>conftest.er1 cannam@86: ac_status=$? cannam@86: grep -v '^ *+' conftest.er1 >conftest.err cannam@86: rm -f conftest.er1 cannam@86: cat conftest.err >&5 cannam@86: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@86: (exit $ac_status); } && cannam@86: { ac_try='test -z "$ac_c_werror_flag" cannam@86: || test ! -s conftest.err' cannam@86: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 cannam@86: (eval $ac_try) 2>&5 cannam@86: ac_status=$? cannam@86: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@86: (exit $ac_status); }; } && cannam@86: { ac_try='test -s conftest.$ac_objext' cannam@86: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 cannam@86: (eval $ac_try) 2>&5 cannam@86: ac_status=$? cannam@86: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@86: (exit $ac_status); }; }; then cannam@86: ac_cv_prog_cc_stdc=$ac_arg cannam@86: break cannam@86: else cannam@86: echo "$as_me: failed program was:" >&5 cannam@86: sed 's/^/| /' conftest.$ac_ext >&5 cannam@86: cannam@86: fi cannam@86: rm -f conftest.err conftest.$ac_objext cannam@86: done cannam@86: rm -f conftest.$ac_ext conftest.$ac_objext cannam@86: CC=$ac_save_CC cannam@86: cannam@86: fi cannam@86: cannam@86: case "x$ac_cv_prog_cc_stdc" in cannam@86: x|xno) cannam@86: echo "$as_me:$LINENO: result: none needed" >&5 cannam@86: echo "${ECHO_T}none needed" >&6 ;; cannam@86: *) cannam@86: echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 cannam@86: echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 cannam@86: CC="$CC $ac_cv_prog_cc_stdc" ;; cannam@86: esac cannam@86: cannam@86: # Some people use a C++ compiler to compile C. Since we use `exit', cannam@86: # in C++ we need to declare it. In case someone uses the same compiler cannam@86: # for both compiling C and C++ we need to have the C++ compiler decide cannam@86: # the declaration of exit, since it's the most demanding environment. cannam@86: cat >conftest.$ac_ext <<_ACEOF cannam@86: #ifndef __cplusplus cannam@86: choke me cannam@86: #endif cannam@86: _ACEOF cannam@86: rm -f conftest.$ac_objext cannam@86: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 cannam@86: (eval $ac_compile) 2>conftest.er1 cannam@86: ac_status=$? cannam@86: grep -v '^ *+' conftest.er1 >conftest.err cannam@86: rm -f conftest.er1 cannam@86: cat conftest.err >&5 cannam@86: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@86: (exit $ac_status); } && cannam@86: { ac_try='test -z "$ac_c_werror_flag" cannam@86: || test ! -s conftest.err' cannam@86: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 cannam@86: (eval $ac_try) 2>&5 cannam@86: ac_status=$? cannam@86: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@86: (exit $ac_status); }; } && cannam@86: { ac_try='test -s conftest.$ac_objext' cannam@86: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 cannam@86: (eval $ac_try) 2>&5 cannam@86: ac_status=$? cannam@86: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@86: (exit $ac_status); }; }; then cannam@86: for ac_declaration in \ cannam@86: '' \ cannam@86: 'extern "C" void std::exit (int) throw (); using std::exit;' \ cannam@86: 'extern "C" void std::exit (int); using std::exit;' \ cannam@86: 'extern "C" void exit (int) throw ();' \ cannam@86: 'extern "C" void exit (int);' \ cannam@86: 'void exit (int);' cannam@86: do cannam@86: cat >conftest.$ac_ext <<_ACEOF cannam@86: /* confdefs.h. */ cannam@86: _ACEOF cannam@86: cat confdefs.h >>conftest.$ac_ext cannam@86: cat >>conftest.$ac_ext <<_ACEOF cannam@86: /* end confdefs.h. */ cannam@86: $ac_declaration cannam@86: #include cannam@86: int cannam@86: main () cannam@86: { cannam@86: exit (42); cannam@86: ; cannam@86: return 0; cannam@86: } cannam@86: _ACEOF cannam@86: rm -f conftest.$ac_objext cannam@86: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 cannam@86: (eval $ac_compile) 2>conftest.er1 cannam@86: ac_status=$? cannam@86: grep -v '^ *+' conftest.er1 >conftest.err cannam@86: rm -f conftest.er1 cannam@86: cat conftest.err >&5 cannam@86: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@86: (exit $ac_status); } && cannam@86: { ac_try='test -z "$ac_c_werror_flag" cannam@86: || test ! -s conftest.err' cannam@86: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 cannam@86: (eval $ac_try) 2>&5 cannam@86: ac_status=$? cannam@86: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@86: (exit $ac_status); }; } && cannam@86: { ac_try='test -s conftest.$ac_objext' cannam@86: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 cannam@86: (eval $ac_try) 2>&5 cannam@86: ac_status=$? cannam@86: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@86: (exit $ac_status); }; }; then cannam@86: : cannam@86: else cannam@86: echo "$as_me: failed program was:" >&5 cannam@86: sed 's/^/| /' conftest.$ac_ext >&5 cannam@86: cannam@86: continue cannam@86: fi cannam@86: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext cannam@86: cat >conftest.$ac_ext <<_ACEOF cannam@86: /* confdefs.h. */ cannam@86: _ACEOF cannam@86: cat confdefs.h >>conftest.$ac_ext cannam@86: cat >>conftest.$ac_ext <<_ACEOF cannam@86: /* end confdefs.h. */ cannam@86: $ac_declaration cannam@86: int cannam@86: main () cannam@86: { cannam@86: exit (42); cannam@86: ; cannam@86: return 0; cannam@86: } cannam@86: _ACEOF cannam@86: rm -f conftest.$ac_objext cannam@86: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 cannam@86: (eval $ac_compile) 2>conftest.er1 cannam@86: ac_status=$? cannam@86: grep -v '^ *+' conftest.er1 >conftest.err cannam@86: rm -f conftest.er1 cannam@86: cat conftest.err >&5 cannam@86: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@86: (exit $ac_status); } && cannam@86: { ac_try='test -z "$ac_c_werror_flag" cannam@86: || test ! -s conftest.err' cannam@86: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 cannam@86: (eval $ac_try) 2>&5 cannam@86: ac_status=$? cannam@86: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@86: (exit $ac_status); }; } && cannam@86: { ac_try='test -s conftest.$ac_objext' cannam@86: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 cannam@86: (eval $ac_try) 2>&5 cannam@86: ac_status=$? cannam@86: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@86: (exit $ac_status); }; }; then cannam@86: break cannam@86: else cannam@86: echo "$as_me: failed program was:" >&5 cannam@86: sed 's/^/| /' conftest.$ac_ext >&5 cannam@86: cannam@86: fi cannam@86: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext cannam@86: done cannam@86: rm -f conftest* cannam@86: if test -n "$ac_declaration"; then cannam@86: echo '#ifdef __cplusplus' >>confdefs.h cannam@86: echo $ac_declaration >>confdefs.h cannam@86: echo '#endif' >>confdefs.h cannam@86: fi cannam@86: cannam@86: else cannam@86: echo "$as_me: failed program was:" >&5 cannam@86: sed 's/^/| /' conftest.$ac_ext >&5 cannam@86: cannam@86: fi cannam@86: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext cannam@86: ac_ext=c cannam@86: ac_cpp='$CPP $CPPFLAGS' cannam@86: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' cannam@86: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' cannam@86: ac_compiler_gnu=$ac_cv_c_compiler_gnu cannam@86: cannam@86: depcc="$CC" am_compiler_list= cannam@86: cannam@86: echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 cannam@86: echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 cannam@86: if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then cannam@86: echo $ECHO_N "(cached) $ECHO_C" >&6 cannam@86: else cannam@86: if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then cannam@86: # We make a subdir and do the tests there. Otherwise we can end up cannam@86: # making bogus files that we don't know about and never remove. For cannam@86: # instance it was reported that on HP-UX the gcc test will end up cannam@86: # making a dummy file named `D' -- because `-MD' means `put the output cannam@86: # in D'. cannam@86: mkdir conftest.dir cannam@86: # Copy depcomp to subdir because otherwise we won't find it if we're cannam@86: # using a relative directory. cannam@86: cp "$am_depcomp" conftest.dir cannam@86: cd conftest.dir cannam@86: # We will build objects and dependencies in a subdirectory because cannam@86: # it helps to detect inapplicable dependency modes. For instance cannam@86: # both Tru64's cc and ICC support -MD to output dependencies as a cannam@86: # side effect of compilation, but ICC will put the dependencies in cannam@86: # the current directory while Tru64 will put them in the object cannam@86: # directory. cannam@86: mkdir sub cannam@86: cannam@86: am_cv_CC_dependencies_compiler_type=none cannam@86: if test "$am_compiler_list" = ""; then cannam@86: am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` cannam@86: fi cannam@86: for depmode in $am_compiler_list; do cannam@86: # Setup a source with many dependencies, because some compilers cannam@86: # like to wrap large dependency lists on column 80 (with \), and cannam@86: # we should not choose a depcomp mode which is confused by this. cannam@86: # cannam@86: # We need to recreate these files for each test, as the compiler may cannam@86: # overwrite some of them when testing with obscure command lines. cannam@86: # This happens at least with the AIX C compiler. cannam@86: : > sub/conftest.c cannam@86: for i in 1 2 3 4 5 6; do cannam@86: echo '#include "conftst'$i'.h"' >> sub/conftest.c cannam@86: : > sub/conftst$i.h cannam@86: done cannam@86: echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf cannam@86: cannam@86: case $depmode in cannam@86: nosideeffect) cannam@86: # after this tag, mechanisms are not by side-effect, so they'll cannam@86: # only be used when explicitly requested cannam@86: if test "x$enable_dependency_tracking" = xyes; then cannam@86: continue cannam@86: else cannam@86: break cannam@86: fi cannam@86: ;; cannam@86: none) break ;; cannam@86: esac cannam@86: # We check with `-c' and `-o' for the sake of the "dashmstdout" cannam@86: # mode. It turns out that the SunPro C++ compiler does not properly cannam@86: # handle `-M -o', and we need to detect this. cannam@86: if depmode=$depmode \ cannam@86: source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ cannam@86: depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ cannam@86: $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ cannam@86: >/dev/null 2>conftest.err && cannam@86: grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && cannam@86: grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && cannam@86: ${MAKE-make} -s -f confmf > /dev/null 2>&1; then cannam@86: # icc doesn't choke on unknown options, it will just issue warnings cannam@86: # (even with -Werror). So we grep stderr for any message cannam@86: # that says an option was ignored. cannam@86: if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else cannam@86: am_cv_CC_dependencies_compiler_type=$depmode cannam@86: break cannam@86: fi cannam@86: fi cannam@86: done cannam@86: cannam@86: cd .. cannam@86: rm -rf conftest.dir cannam@86: else cannam@86: am_cv_CC_dependencies_compiler_type=none cannam@86: fi cannam@86: cannam@86: fi cannam@86: echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 cannam@86: echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6 cannam@86: CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type cannam@86: cannam@86: cannam@86: cannam@86: if cannam@86: test "x$enable_dependency_tracking" != xno \ cannam@86: && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then cannam@86: am__fastdepCC_TRUE= cannam@86: am__fastdepCC_FALSE='#' cannam@86: else cannam@86: am__fastdepCC_TRUE='#' cannam@86: am__fastdepCC_FALSE= cannam@86: fi cannam@86: cannam@86: cannam@86: echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 cannam@86: echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6 cannam@86: if test "${lt_cv_path_SED+set}" = set; then cannam@86: echo $ECHO_N "(cached) $ECHO_C" >&6 cannam@86: else cannam@86: # Loop through the user's path and test for sed and gsed. cannam@86: # Then use that list of sed's as ones to test for truncation. cannam@86: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR cannam@86: for as_dir in $PATH cannam@86: do cannam@86: IFS=$as_save_IFS cannam@86: test -z "$as_dir" && as_dir=. cannam@86: for lt_ac_prog in sed gsed; do cannam@86: for ac_exec_ext in '' $ac_executable_extensions; do cannam@86: if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then cannam@86: lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" cannam@86: fi cannam@86: done cannam@86: done cannam@86: done cannam@86: lt_ac_max=0 cannam@86: lt_ac_count=0 cannam@86: # Add /usr/xpg4/bin/sed as it is typically found on Solaris cannam@86: # along with /bin/sed that truncates output. cannam@86: for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do cannam@86: test ! -f $lt_ac_sed && continue cannam@86: cat /dev/null > conftest.in cannam@86: lt_ac_count=0 cannam@86: echo $ECHO_N "0123456789$ECHO_C" >conftest.in cannam@86: # Check for GNU sed and select it if it is found. cannam@86: if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then cannam@86: lt_cv_path_SED=$lt_ac_sed cannam@86: break cannam@86: fi cannam@86: while true; do cannam@86: cat conftest.in conftest.in >conftest.tmp cannam@86: mv conftest.tmp conftest.in cannam@86: cp conftest.in conftest.nl cannam@86: echo >>conftest.nl cannam@86: $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break cannam@86: cmp -s conftest.out conftest.nl || break cannam@86: # 10000 chars as input seems more than enough cannam@86: test $lt_ac_count -gt 10 && break cannam@86: lt_ac_count=`expr $lt_ac_count + 1` cannam@86: if test $lt_ac_count -gt $lt_ac_max; then cannam@86: lt_ac_max=$lt_ac_count cannam@86: lt_cv_path_SED=$lt_ac_sed cannam@86: fi cannam@86: done cannam@86: done cannam@86: cannam@86: fi cannam@86: cannam@86: SED=$lt_cv_path_SED cannam@86: echo "$as_me:$LINENO: result: $SED" >&5 cannam@86: echo "${ECHO_T}$SED" >&6 cannam@86: cannam@86: echo "$as_me:$LINENO: checking for egrep" >&5 cannam@86: echo $ECHO_N "checking for egrep... $ECHO_C" >&6 cannam@86: if test "${ac_cv_prog_egrep+set}" = set; then cannam@86: echo $ECHO_N "(cached) $ECHO_C" >&6 cannam@86: else cannam@86: if echo a | (grep -E '(a|b)') >/dev/null 2>&1 cannam@86: then ac_cv_prog_egrep='grep -E' cannam@86: else ac_cv_prog_egrep='egrep' cannam@86: fi cannam@86: fi cannam@86: echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 cannam@86: echo "${ECHO_T}$ac_cv_prog_egrep" >&6 cannam@86: EGREP=$ac_cv_prog_egrep cannam@86: cannam@86: cannam@86: cannam@86: # Check whether --with-gnu-ld or --without-gnu-ld was given. cannam@86: if test "${with_gnu_ld+set}" = set; then cannam@86: withval="$with_gnu_ld" cannam@86: test "$withval" = no || with_gnu_ld=yes cannam@86: else cannam@86: with_gnu_ld=no cannam@86: fi; cannam@86: ac_prog=ld cannam@86: if test "$GCC" = yes; then cannam@86: # Check if gcc -print-prog-name=ld gives a path. cannam@86: echo "$as_me:$LINENO: checking for ld used by $CC" >&5 cannam@86: echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6 cannam@86: case $host in cannam@86: *-*-mingw*) cannam@86: # gcc leaves a trailing carriage return which upsets mingw cannam@86: ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; cannam@86: *) cannam@86: ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; cannam@86: esac cannam@86: case $ac_prog in cannam@86: # Accept absolute paths. cannam@86: [\\/]* | ?:[\\/]*) cannam@86: re_direlt='/[^/][^/]*/\.\./' cannam@86: # Canonicalize the pathname of ld cannam@86: ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` cannam@86: while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do cannam@86: ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` cannam@86: done cannam@86: test -z "$LD" && LD="$ac_prog" cannam@86: ;; cannam@86: "") cannam@86: # If it fails, then pretend we aren't using GCC. cannam@86: ac_prog=ld cannam@86: ;; cannam@86: *) cannam@86: # If it is relative, then search for the first ld in PATH. cannam@86: with_gnu_ld=unknown cannam@86: ;; cannam@86: esac cannam@86: elif test "$with_gnu_ld" = yes; then cannam@86: echo "$as_me:$LINENO: checking for GNU ld" >&5 cannam@86: echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 cannam@86: else cannam@86: echo "$as_me:$LINENO: checking for non-GNU ld" >&5 cannam@86: echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 cannam@86: fi cannam@86: if test "${lt_cv_path_LD+set}" = set; then cannam@86: echo $ECHO_N "(cached) $ECHO_C" >&6 cannam@86: else cannam@86: if test -z "$LD"; then cannam@86: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR cannam@86: for ac_dir in $PATH; do cannam@86: IFS="$lt_save_ifs" cannam@86: test -z "$ac_dir" && ac_dir=. cannam@86: if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then cannam@86: lt_cv_path_LD="$ac_dir/$ac_prog" cannam@86: # Check to see if the program is GNU ld. I'd rather use --version, cannam@86: # but apparently some GNU ld's only accept -v. cannam@86: # Break only if it was the GNU/non-GNU ld that we prefer. cannam@86: case `"$lt_cv_path_LD" -v 2>&1 &5 cannam@86: echo "${ECHO_T}$LD" >&6 cannam@86: else cannam@86: echo "$as_me:$LINENO: result: no" >&5 cannam@86: echo "${ECHO_T}no" >&6 cannam@86: fi cannam@86: test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 cannam@86: echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} cannam@86: { (exit 1); exit 1; }; } cannam@86: echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 cannam@86: echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 cannam@86: if test "${lt_cv_prog_gnu_ld+set}" = set; then cannam@86: echo $ECHO_N "(cached) $ECHO_C" >&6 cannam@86: else cannam@86: # I'd rather use --version here, but apparently some GNU ld's only accept -v. cannam@86: case `$LD -v 2>&1 &5 cannam@86: echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 cannam@86: with_gnu_ld=$lt_cv_prog_gnu_ld cannam@86: cannam@86: cannam@86: echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 cannam@86: echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6 cannam@86: if test "${lt_cv_ld_reload_flag+set}" = set; then cannam@86: echo $ECHO_N "(cached) $ECHO_C" >&6 cannam@86: else cannam@86: lt_cv_ld_reload_flag='-r' cannam@86: fi cannam@86: echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 cannam@86: echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6 cannam@86: reload_flag=$lt_cv_ld_reload_flag cannam@86: case $reload_flag in cannam@86: "" | " "*) ;; cannam@86: *) reload_flag=" $reload_flag" ;; cannam@86: esac cannam@86: reload_cmds='$LD$reload_flag -o $output$reload_objs' cannam@86: case $host_os in cannam@86: darwin*) cannam@86: if test "$GCC" = yes; then cannam@86: reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs' cannam@86: else cannam@86: reload_cmds='$LD$reload_flag -o $output$reload_objs' cannam@86: fi cannam@86: ;; cannam@86: esac cannam@86: cannam@86: echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 cannam@86: echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6 cannam@86: if test "${lt_cv_path_NM+set}" = set; then cannam@86: echo $ECHO_N "(cached) $ECHO_C" >&6 cannam@86: else cannam@86: if test -n "$NM"; then cannam@86: # Let the user override the test. cannam@86: lt_cv_path_NM="$NM" cannam@86: else cannam@86: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR cannam@86: for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do cannam@86: IFS="$lt_save_ifs" cannam@86: test -z "$ac_dir" && ac_dir=. cannam@86: tmp_nm="$ac_dir/${ac_tool_prefix}nm" cannam@86: if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then cannam@86: # Check to see if the nm accepts a BSD-compat flag. cannam@86: # Adding the `sed 1q' prevents false positives on HP-UX, which says: cannam@86: # nm: unknown option "B" ignored cannam@86: # Tru64's nm complains that /dev/null is an invalid object file cannam@86: case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in cannam@86: */dev/null* | *'Invalid file or object type'*) cannam@86: lt_cv_path_NM="$tmp_nm -B" cannam@86: break cannam@86: ;; cannam@86: *) cannam@86: case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in cannam@86: */dev/null*) cannam@86: lt_cv_path_NM="$tmp_nm -p" cannam@86: break cannam@86: ;; cannam@86: *) cannam@86: lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but cannam@86: continue # so that we can try to find one that supports BSD flags cannam@86: ;; cannam@86: esac cannam@86: esac cannam@86: fi cannam@86: done cannam@86: IFS="$lt_save_ifs" cannam@86: test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm cannam@86: fi cannam@86: fi cannam@86: echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 cannam@86: echo "${ECHO_T}$lt_cv_path_NM" >&6 cannam@86: NM="$lt_cv_path_NM" cannam@86: cannam@86: echo "$as_me:$LINENO: checking whether ln -s works" >&5 cannam@86: echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 cannam@86: LN_S=$as_ln_s cannam@86: if test "$LN_S" = "ln -s"; then cannam@86: echo "$as_me:$LINENO: result: yes" >&5 cannam@86: echo "${ECHO_T}yes" >&6 cannam@86: else cannam@86: echo "$as_me:$LINENO: result: no, using $LN_S" >&5 cannam@86: echo "${ECHO_T}no, using $LN_S" >&6 cannam@86: fi cannam@86: cannam@86: echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5 cannam@86: echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6 cannam@86: if test "${lt_cv_deplibs_check_method+set}" = set; then cannam@86: echo $ECHO_N "(cached) $ECHO_C" >&6 cannam@86: else cannam@86: lt_cv_file_magic_cmd='$MAGIC_CMD' cannam@86: lt_cv_file_magic_test_file= cannam@86: lt_cv_deplibs_check_method='unknown' cannam@86: # Need to set the preceding variable on all platforms that support cannam@86: # interlibrary dependencies. cannam@86: # 'none' -- dependencies not supported. cannam@86: # `unknown' -- same as none, but documents that we really don't know. cannam@86: # 'pass_all' -- all dependencies passed with no checks. cannam@86: # 'test_compile' -- check by making test program. cannam@86: # 'file_magic [[regex]]' -- check by looking for files in library path cannam@86: # which responds to the $file_magic_cmd with a given extended regex. cannam@86: # If you have `file' or equivalent on your system and you're not sure cannam@86: # whether `pass_all' will *always* work, you probably want this one. cannam@86: cannam@86: case $host_os in cannam@86: aix4* | aix5*) cannam@86: lt_cv_deplibs_check_method=pass_all cannam@86: ;; cannam@86: cannam@86: beos*) cannam@86: lt_cv_deplibs_check_method=pass_all cannam@86: ;; cannam@86: cannam@86: bsdi[45]*) cannam@86: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' cannam@86: lt_cv_file_magic_cmd='/usr/bin/file -L' cannam@86: lt_cv_file_magic_test_file=/shlib/libc.so cannam@86: ;; cannam@86: cannam@86: cygwin*) cannam@86: # func_win32_libid is a shell function defined in ltmain.sh cannam@86: lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' cannam@86: lt_cv_file_magic_cmd='func_win32_libid' cannam@86: ;; cannam@86: cannam@86: mingw* | pw32*) cannam@86: # Base MSYS/MinGW do not provide the 'file' command needed by cannam@86: # func_win32_libid shell function, so use a weaker test based on 'objdump'. cannam@86: lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' cannam@86: lt_cv_file_magic_cmd='$OBJDUMP -f' cannam@86: ;; cannam@86: cannam@86: darwin* | rhapsody*) cannam@86: lt_cv_deplibs_check_method=pass_all cannam@86: ;; cannam@86: cannam@86: freebsd* | kfreebsd*-gnu | dragonfly*) cannam@86: if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then cannam@86: case $host_cpu in cannam@86: i*86 ) cannam@86: # Not sure whether the presence of OpenBSD here was a mistake. cannam@86: # Let's accept both of them until this is cleared up. cannam@86: lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' cannam@86: lt_cv_file_magic_cmd=/usr/bin/file cannam@86: lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` cannam@86: ;; cannam@86: esac cannam@86: else cannam@86: lt_cv_deplibs_check_method=pass_all cannam@86: fi cannam@86: ;; cannam@86: cannam@86: gnu*) cannam@86: lt_cv_deplibs_check_method=pass_all cannam@86: ;; cannam@86: cannam@86: hpux10.20* | hpux11*) cannam@86: lt_cv_file_magic_cmd=/usr/bin/file cannam@86: case "$host_cpu" in cannam@86: ia64*) cannam@86: lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' cannam@86: lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so cannam@86: ;; cannam@86: hppa*64*) cannam@86: lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]' cannam@86: lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl cannam@86: ;; cannam@86: *) cannam@86: lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' cannam@86: lt_cv_file_magic_test_file=/usr/lib/libc.sl cannam@86: ;; cannam@86: esac cannam@86: ;; cannam@86: cannam@86: irix5* | irix6* | nonstopux*) cannam@86: case $LD in cannam@86: *-32|*"-32 ") libmagic=32-bit;; cannam@86: *-n32|*"-n32 ") libmagic=N32;; cannam@86: *-64|*"-64 ") libmagic=64-bit;; cannam@86: *) libmagic=never-match;; cannam@86: esac cannam@86: lt_cv_deplibs_check_method=pass_all cannam@86: ;; cannam@86: cannam@86: # This must be Linux ELF. cannam@86: linux*) cannam@86: lt_cv_deplibs_check_method=pass_all cannam@86: ;; cannam@86: cannam@86: netbsd*) cannam@86: if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then cannam@86: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' cannam@86: else cannam@86: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' cannam@86: fi cannam@86: ;; cannam@86: cannam@86: newos6*) cannam@86: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' cannam@86: lt_cv_file_magic_cmd=/usr/bin/file cannam@86: lt_cv_file_magic_test_file=/usr/lib/libnls.so cannam@86: ;; cannam@86: cannam@86: nto-qnx*) cannam@86: lt_cv_deplibs_check_method=unknown cannam@86: ;; cannam@86: cannam@86: openbsd*) cannam@86: if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then cannam@86: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' cannam@86: else cannam@86: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' cannam@86: fi cannam@86: ;; cannam@86: cannam@86: osf3* | osf4* | osf5*) cannam@86: lt_cv_deplibs_check_method=pass_all cannam@86: ;; cannam@86: cannam@86: sco3.2v5*) cannam@86: lt_cv_deplibs_check_method=pass_all cannam@86: ;; cannam@86: cannam@86: solaris*) cannam@86: lt_cv_deplibs_check_method=pass_all cannam@86: ;; cannam@86: cannam@86: sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) cannam@86: case $host_vendor in cannam@86: motorola) cannam@86: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]' cannam@86: lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` cannam@86: ;; cannam@86: ncr) cannam@86: lt_cv_deplibs_check_method=pass_all cannam@86: ;; cannam@86: sequent) cannam@86: lt_cv_file_magic_cmd='/bin/file' cannam@86: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' cannam@86: ;; cannam@86: sni) cannam@86: lt_cv_file_magic_cmd='/bin/file' cannam@86: lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" cannam@86: lt_cv_file_magic_test_file=/lib/libc.so cannam@86: ;; cannam@86: siemens) cannam@86: lt_cv_deplibs_check_method=pass_all cannam@86: ;; cannam@86: esac cannam@86: ;; cannam@86: cannam@86: sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*) cannam@86: lt_cv_deplibs_check_method=pass_all cannam@86: ;; cannam@86: esac cannam@86: cannam@86: fi cannam@86: echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 cannam@86: echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6 cannam@86: file_magic_cmd=$lt_cv_file_magic_cmd cannam@86: deplibs_check_method=$lt_cv_deplibs_check_method cannam@86: test -z "$deplibs_check_method" && deplibs_check_method=unknown cannam@86: cannam@86: cannam@86: cannam@86: cannam@86: # If no C compiler was specified, use CC. cannam@86: LTCC=${LTCC-"$CC"} cannam@86: cannam@86: # Allow CC to be a program name with arguments. cannam@86: compiler=$CC cannam@86: cannam@86: cannam@86: # Check whether --enable-libtool-lock or --disable-libtool-lock was given. cannam@86: if test "${enable_libtool_lock+set}" = set; then cannam@86: enableval="$enable_libtool_lock" cannam@86: cannam@86: fi; cannam@86: test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes cannam@86: cannam@86: # Some flags need to be propagated to the compiler or linker for good cannam@86: # libtool support. cannam@86: case $host in cannam@86: ia64-*-hpux*) cannam@86: # Find out which ABI we are using. cannam@86: echo 'int i;' > conftest.$ac_ext cannam@86: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 cannam@86: (eval $ac_compile) 2>&5 cannam@86: ac_status=$? cannam@86: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@86: (exit $ac_status); }; then cannam@86: case `/usr/bin/file conftest.$ac_objext` in cannam@86: *ELF-32*) cannam@86: HPUX_IA64_MODE="32" cannam@86: ;; cannam@86: *ELF-64*) cannam@86: HPUX_IA64_MODE="64" cannam@86: ;; cannam@86: esac cannam@86: fi cannam@86: rm -rf conftest* cannam@86: ;; cannam@86: *-*-irix6*) cannam@86: # Find out which ABI we are using. cannam@86: echo '#line 3665 "configure"' > conftest.$ac_ext cannam@86: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 cannam@86: (eval $ac_compile) 2>&5 cannam@86: ac_status=$? cannam@86: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@86: (exit $ac_status); }; then cannam@86: if test "$lt_cv_prog_gnu_ld" = yes; then cannam@86: case `/usr/bin/file conftest.$ac_objext` in cannam@86: *32-bit*) cannam@86: LD="${LD-ld} -melf32bsmip" cannam@86: ;; cannam@86: *N32*) cannam@86: LD="${LD-ld} -melf32bmipn32" cannam@86: ;; cannam@86: *64-bit*) cannam@86: LD="${LD-ld} -melf64bmip" cannam@86: ;; cannam@86: esac cannam@86: else cannam@86: case `/usr/bin/file conftest.$ac_objext` in cannam@86: *32-bit*) cannam@86: LD="${LD-ld} -32" cannam@86: ;; cannam@86: *N32*) cannam@86: LD="${LD-ld} -n32" cannam@86: ;; cannam@86: *64-bit*) cannam@86: LD="${LD-ld} -64" cannam@86: ;; cannam@86: esac cannam@86: fi cannam@86: fi cannam@86: rm -rf conftest* cannam@86: ;; cannam@86: cannam@86: x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*) cannam@86: # Find out which ABI we are using. cannam@86: echo 'int i;' > conftest.$ac_ext cannam@86: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 cannam@86: (eval $ac_compile) 2>&5 cannam@86: ac_status=$? cannam@86: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@86: (exit $ac_status); }; then cannam@86: case "`/usr/bin/file conftest.o`" in cannam@86: *32-bit*) cannam@86: case $host in cannam@86: x86_64-*linux*) cannam@86: LD="${LD-ld} -m elf_i386" cannam@86: ;; cannam@86: ppc64-*linux*|powerpc64-*linux*) cannam@86: LD="${LD-ld} -m elf32ppclinux" cannam@86: ;; cannam@86: s390x-*linux*) cannam@86: LD="${LD-ld} -m elf_s390" cannam@86: ;; cannam@86: sparc64-*linux*) cannam@86: LD="${LD-ld} -m elf32_sparc" cannam@86: ;; cannam@86: esac cannam@86: ;; cannam@86: *64-bit*) cannam@86: case $host in cannam@86: x86_64-*linux*) cannam@86: LD="${LD-ld} -m elf_x86_64" cannam@86: ;; cannam@86: ppc*-*linux*|powerpc*-*linux*) cannam@86: LD="${LD-ld} -m elf64ppc" cannam@86: ;; cannam@86: s390*-*linux*) cannam@86: LD="${LD-ld} -m elf64_s390" cannam@86: ;; cannam@86: sparc*-*linux*) cannam@86: LD="${LD-ld} -m elf64_sparc" cannam@86: ;; cannam@86: esac cannam@86: ;; cannam@86: esac cannam@86: fi cannam@86: rm -rf conftest* cannam@86: ;; cannam@86: cannam@86: *-*-sco3.2v5*) cannam@86: # On SCO OpenServer 5, we need -belf to get full-featured binaries. cannam@86: SAVE_CFLAGS="$CFLAGS" cannam@86: CFLAGS="$CFLAGS -belf" cannam@86: echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 cannam@86: echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6 cannam@86: if test "${lt_cv_cc_needs_belf+set}" = set; then cannam@86: echo $ECHO_N "(cached) $ECHO_C" >&6 cannam@86: else cannam@86: ac_ext=c cannam@86: ac_cpp='$CPP $CPPFLAGS' cannam@86: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' cannam@86: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' cannam@86: ac_compiler_gnu=$ac_cv_c_compiler_gnu cannam@86: cannam@86: cat >conftest.$ac_ext <<_ACEOF cannam@86: /* confdefs.h. */ cannam@86: _ACEOF cannam@86: cat confdefs.h >>conftest.$ac_ext cannam@86: cat >>conftest.$ac_ext <<_ACEOF cannam@86: /* end confdefs.h. */ cannam@86: cannam@86: int cannam@86: main () cannam@86: { cannam@86: cannam@86: ; cannam@86: return 0; cannam@86: } cannam@86: _ACEOF cannam@86: rm -f conftest.$ac_objext conftest$ac_exeext cannam@86: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 cannam@86: (eval $ac_link) 2>conftest.er1 cannam@86: ac_status=$? cannam@86: grep -v '^ *+' conftest.er1 >conftest.err cannam@86: rm -f conftest.er1 cannam@86: cat conftest.err >&5 cannam@86: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@86: (exit $ac_status); } && cannam@86: { ac_try='test -z "$ac_c_werror_flag" cannam@86: || test ! -s conftest.err' cannam@86: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 cannam@86: (eval $ac_try) 2>&5 cannam@86: ac_status=$? cannam@86: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@86: (exit $ac_status); }; } && cannam@86: { ac_try='test -s conftest$ac_exeext' cannam@86: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 cannam@86: (eval $ac_try) 2>&5 cannam@86: ac_status=$? cannam@86: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@86: (exit $ac_status); }; }; then cannam@86: lt_cv_cc_needs_belf=yes cannam@86: else cannam@86: echo "$as_me: failed program was:" >&5 cannam@86: sed 's/^/| /' conftest.$ac_ext >&5 cannam@86: cannam@86: lt_cv_cc_needs_belf=no cannam@86: fi cannam@86: rm -f conftest.err conftest.$ac_objext \ cannam@86: conftest$ac_exeext conftest.$ac_ext cannam@86: ac_ext=c cannam@86: ac_cpp='$CPP $CPPFLAGS' cannam@86: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' cannam@86: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' cannam@86: ac_compiler_gnu=$ac_cv_c_compiler_gnu cannam@86: cannam@86: fi cannam@86: echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 cannam@86: echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6 cannam@86: if test x"$lt_cv_cc_needs_belf" != x"yes"; then cannam@86: # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf cannam@86: CFLAGS="$SAVE_CFLAGS" cannam@86: fi cannam@86: ;; cannam@86: cannam@86: esac cannam@86: cannam@86: need_locks="$enable_libtool_lock" cannam@86: cannam@86: cannam@86: ac_ext=c cannam@86: ac_cpp='$CPP $CPPFLAGS' cannam@86: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' cannam@86: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' cannam@86: ac_compiler_gnu=$ac_cv_c_compiler_gnu cannam@86: echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 cannam@86: echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 cannam@86: # On Suns, sometimes $CPP names a directory. cannam@86: if test -n "$CPP" && test -d "$CPP"; then cannam@86: CPP= cannam@86: fi cannam@86: if test -z "$CPP"; then cannam@86: if test "${ac_cv_prog_CPP+set}" = set; then cannam@86: echo $ECHO_N "(cached) $ECHO_C" >&6 cannam@86: else cannam@86: # Double quotes because CPP needs to be expanded cannam@86: for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" cannam@86: do cannam@86: ac_preproc_ok=false cannam@86: for ac_c_preproc_warn_flag in '' yes cannam@86: do cannam@86: # Use a header file that comes with gcc, so configuring glibc cannam@86: # with a fresh cross-compiler works. cannam@86: # Prefer to if __STDC__ is defined, since cannam@86: # exists even on freestanding compilers. cannam@86: # On the NeXT, cc -E runs the code through the compiler's parser, cannam@86: # not just through cpp. "Syntax error" is here to catch this case. cannam@86: cat >conftest.$ac_ext <<_ACEOF cannam@86: /* confdefs.h. */ cannam@86: _ACEOF cannam@86: cat confdefs.h >>conftest.$ac_ext cannam@86: cat >>conftest.$ac_ext <<_ACEOF cannam@86: /* end confdefs.h. */ cannam@86: #ifdef __STDC__ cannam@86: # include cannam@86: #else cannam@86: # include cannam@86: #endif cannam@86: Syntax error cannam@86: _ACEOF cannam@86: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 cannam@86: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 cannam@86: ac_status=$? cannam@86: grep -v '^ *+' conftest.er1 >conftest.err cannam@86: rm -f conftest.er1 cannam@86: cat conftest.err >&5 cannam@86: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@86: (exit $ac_status); } >/dev/null; then cannam@86: if test -s conftest.err; then cannam@86: ac_cpp_err=$ac_c_preproc_warn_flag cannam@86: ac_cpp_err=$ac_cpp_err$ac_c_werror_flag cannam@86: else cannam@86: ac_cpp_err= cannam@86: fi cannam@86: else cannam@86: ac_cpp_err=yes cannam@86: fi cannam@86: if test -z "$ac_cpp_err"; then cannam@86: : cannam@86: else cannam@86: echo "$as_me: failed program was:" >&5 cannam@86: sed 's/^/| /' conftest.$ac_ext >&5 cannam@86: cannam@86: # Broken: fails on valid input. cannam@86: continue cannam@86: fi cannam@86: rm -f conftest.err conftest.$ac_ext cannam@86: cannam@86: # OK, works on sane cases. Now check whether non-existent headers cannam@86: # can be detected and how. cannam@86: cat >conftest.$ac_ext <<_ACEOF cannam@86: /* confdefs.h. */ cannam@86: _ACEOF cannam@86: cat confdefs.h >>conftest.$ac_ext cannam@86: cat >>conftest.$ac_ext <<_ACEOF cannam@86: /* end confdefs.h. */ cannam@86: #include cannam@86: _ACEOF cannam@86: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 cannam@86: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 cannam@86: ac_status=$? cannam@86: grep -v '^ *+' conftest.er1 >conftest.err cannam@86: rm -f conftest.er1 cannam@86: cat conftest.err >&5 cannam@86: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@86: (exit $ac_status); } >/dev/null; then cannam@86: if test -s conftest.err; then cannam@86: ac_cpp_err=$ac_c_preproc_warn_flag cannam@86: ac_cpp_err=$ac_cpp_err$ac_c_werror_flag cannam@86: else cannam@86: ac_cpp_err= cannam@86: fi cannam@86: else cannam@86: ac_cpp_err=yes cannam@86: fi cannam@86: if test -z "$ac_cpp_err"; then cannam@86: # Broken: success on invalid input. cannam@86: continue cannam@86: else cannam@86: echo "$as_me: failed program was:" >&5 cannam@86: sed 's/^/| /' conftest.$ac_ext >&5 cannam@86: cannam@86: # Passes both tests. cannam@86: ac_preproc_ok=: cannam@86: break cannam@86: fi cannam@86: rm -f conftest.err conftest.$ac_ext cannam@86: cannam@86: done cannam@86: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. cannam@86: rm -f conftest.err conftest.$ac_ext cannam@86: if $ac_preproc_ok; then cannam@86: break cannam@86: fi cannam@86: cannam@86: done cannam@86: ac_cv_prog_CPP=$CPP cannam@86: cannam@86: fi cannam@86: CPP=$ac_cv_prog_CPP cannam@86: else cannam@86: ac_cv_prog_CPP=$CPP cannam@86: fi cannam@86: echo "$as_me:$LINENO: result: $CPP" >&5 cannam@86: echo "${ECHO_T}$CPP" >&6 cannam@86: ac_preproc_ok=false cannam@86: for ac_c_preproc_warn_flag in '' yes cannam@86: do cannam@86: # Use a header file that comes with gcc, so configuring glibc cannam@86: # with a fresh cross-compiler works. cannam@86: # Prefer to if __STDC__ is defined, since cannam@86: # exists even on freestanding compilers. cannam@86: # On the NeXT, cc -E runs the code through the compiler's parser, cannam@86: # not just through cpp. "Syntax error" is here to catch this case. cannam@86: cat >conftest.$ac_ext <<_ACEOF cannam@86: /* confdefs.h. */ cannam@86: _ACEOF cannam@86: cat confdefs.h >>conftest.$ac_ext cannam@86: cat >>conftest.$ac_ext <<_ACEOF cannam@86: /* end confdefs.h. */ cannam@86: #ifdef __STDC__ cannam@86: # include cannam@86: #else cannam@86: # include cannam@86: #endif cannam@86: Syntax error cannam@86: _ACEOF cannam@86: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 cannam@86: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 cannam@86: ac_status=$? cannam@86: grep -v '^ *+' conftest.er1 >conftest.err cannam@86: rm -f conftest.er1 cannam@86: cat conftest.err >&5 cannam@86: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@86: (exit $ac_status); } >/dev/null; then cannam@86: if test -s conftest.err; then cannam@86: ac_cpp_err=$ac_c_preproc_warn_flag cannam@86: ac_cpp_err=$ac_cpp_err$ac_c_werror_flag cannam@86: else cannam@86: ac_cpp_err= cannam@86: fi cannam@86: else cannam@86: ac_cpp_err=yes cannam@86: fi cannam@86: if test -z "$ac_cpp_err"; then cannam@86: : cannam@86: else cannam@86: echo "$as_me: failed program was:" >&5 cannam@86: sed 's/^/| /' conftest.$ac_ext >&5 cannam@86: cannam@86: # Broken: fails on valid input. cannam@86: continue cannam@86: fi cannam@86: rm -f conftest.err conftest.$ac_ext cannam@86: cannam@86: # OK, works on sane cases. Now check whether non-existent headers cannam@86: # can be detected and how. cannam@86: cat >conftest.$ac_ext <<_ACEOF cannam@86: /* confdefs.h. */ cannam@86: _ACEOF cannam@86: cat confdefs.h >>conftest.$ac_ext cannam@86: cat >>conftest.$ac_ext <<_ACEOF cannam@86: /* end confdefs.h. */ cannam@86: #include cannam@86: _ACEOF cannam@86: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 cannam@86: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 cannam@86: ac_status=$? cannam@86: grep -v '^ *+' conftest.er1 >conftest.err cannam@86: rm -f conftest.er1 cannam@86: cat conftest.err >&5 cannam@86: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@86: (exit $ac_status); } >/dev/null; then cannam@86: if test -s conftest.err; then cannam@86: ac_cpp_err=$ac_c_preproc_warn_flag cannam@86: ac_cpp_err=$ac_cpp_err$ac_c_werror_flag cannam@86: else cannam@86: ac_cpp_err= cannam@86: fi cannam@86: else cannam@86: ac_cpp_err=yes cannam@86: fi cannam@86: if test -z "$ac_cpp_err"; then cannam@86: # Broken: success on invalid input. cannam@86: continue cannam@86: else cannam@86: echo "$as_me: failed program was:" >&5 cannam@86: sed 's/^/| /' conftest.$ac_ext >&5 cannam@86: cannam@86: # Passes both tests. cannam@86: ac_preproc_ok=: cannam@86: break cannam@86: fi cannam@86: rm -f conftest.err conftest.$ac_ext cannam@86: cannam@86: done cannam@86: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. cannam@86: rm -f conftest.err conftest.$ac_ext cannam@86: if $ac_preproc_ok; then cannam@86: : cannam@86: else cannam@86: { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check cannam@86: See \`config.log' for more details." >&5 cannam@86: echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check cannam@86: See \`config.log' for more details." >&2;} cannam@86: { (exit 1); exit 1; }; } cannam@86: fi cannam@86: cannam@86: ac_ext=c cannam@86: ac_cpp='$CPP $CPPFLAGS' cannam@86: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' cannam@86: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' cannam@86: ac_compiler_gnu=$ac_cv_c_compiler_gnu cannam@86: cannam@86: cannam@86: echo "$as_me:$LINENO: checking for ANSI C header files" >&5 cannam@86: echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 cannam@86: if test "${ac_cv_header_stdc+set}" = set; then cannam@86: echo $ECHO_N "(cached) $ECHO_C" >&6 cannam@86: else cannam@86: cat >conftest.$ac_ext <<_ACEOF cannam@86: /* confdefs.h. */ cannam@86: _ACEOF cannam@86: cat confdefs.h >>conftest.$ac_ext cannam@86: cat >>conftest.$ac_ext <<_ACEOF cannam@86: /* end confdefs.h. */ cannam@86: #include cannam@86: #include cannam@86: #include cannam@86: #include cannam@86: cannam@86: int cannam@86: main () cannam@86: { cannam@86: cannam@86: ; cannam@86: return 0; cannam@86: } cannam@86: _ACEOF cannam@86: rm -f conftest.$ac_objext cannam@86: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 cannam@86: (eval $ac_compile) 2>conftest.er1 cannam@86: ac_status=$? cannam@86: grep -v '^ *+' conftest.er1 >conftest.err cannam@86: rm -f conftest.er1 cannam@86: cat conftest.err >&5 cannam@86: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@86: (exit $ac_status); } && cannam@86: { ac_try='test -z "$ac_c_werror_flag" cannam@86: || test ! -s conftest.err' cannam@86: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 cannam@86: (eval $ac_try) 2>&5 cannam@86: ac_status=$? cannam@86: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@86: (exit $ac_status); }; } && cannam@86: { ac_try='test -s conftest.$ac_objext' cannam@86: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 cannam@86: (eval $ac_try) 2>&5 cannam@86: ac_status=$? cannam@86: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@86: (exit $ac_status); }; }; then cannam@86: ac_cv_header_stdc=yes cannam@86: else cannam@86: echo "$as_me: failed program was:" >&5 cannam@86: sed 's/^/| /' conftest.$ac_ext >&5 cannam@86: cannam@86: ac_cv_header_stdc=no cannam@86: fi cannam@86: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext cannam@86: cannam@86: if test $ac_cv_header_stdc = yes; then cannam@86: # SunOS 4.x string.h does not declare mem*, contrary to ANSI. cannam@86: cat >conftest.$ac_ext <<_ACEOF cannam@86: /* confdefs.h. */ cannam@86: _ACEOF cannam@86: cat confdefs.h >>conftest.$ac_ext cannam@86: cat >>conftest.$ac_ext <<_ACEOF cannam@86: /* end confdefs.h. */ cannam@86: #include cannam@86: cannam@86: _ACEOF cannam@86: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | cannam@86: $EGREP "memchr" >/dev/null 2>&1; then cannam@86: : cannam@86: else cannam@86: ac_cv_header_stdc=no cannam@86: fi cannam@86: rm -f conftest* cannam@86: cannam@86: fi cannam@86: cannam@86: if test $ac_cv_header_stdc = yes; then cannam@86: # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. cannam@86: cat >conftest.$ac_ext <<_ACEOF cannam@86: /* confdefs.h. */ cannam@86: _ACEOF cannam@86: cat confdefs.h >>conftest.$ac_ext cannam@86: cat >>conftest.$ac_ext <<_ACEOF cannam@86: /* end confdefs.h. */ cannam@86: #include cannam@86: cannam@86: _ACEOF cannam@86: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | cannam@86: $EGREP "free" >/dev/null 2>&1; then cannam@86: : cannam@86: else cannam@86: ac_cv_header_stdc=no cannam@86: fi cannam@86: rm -f conftest* cannam@86: cannam@86: fi cannam@86: cannam@86: if test $ac_cv_header_stdc = yes; then cannam@86: # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. cannam@86: if test "$cross_compiling" = yes; then cannam@86: : cannam@86: else cannam@86: cat >conftest.$ac_ext <<_ACEOF cannam@86: /* confdefs.h. */ cannam@86: _ACEOF cannam@86: cat confdefs.h >>conftest.$ac_ext cannam@86: cat >>conftest.$ac_ext <<_ACEOF cannam@86: /* end confdefs.h. */ cannam@86: #include cannam@86: #if ((' ' & 0x0FF) == 0x020) cannam@86: # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') cannam@86: # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) cannam@86: #else cannam@86: # define ISLOWER(c) \ cannam@86: (('a' <= (c) && (c) <= 'i') \ cannam@86: || ('j' <= (c) && (c) <= 'r') \ cannam@86: || ('s' <= (c) && (c) <= 'z')) cannam@86: # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) cannam@86: #endif cannam@86: cannam@86: #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) cannam@86: int cannam@86: main () cannam@86: { cannam@86: int i; cannam@86: for (i = 0; i < 256; i++) cannam@86: if (XOR (islower (i), ISLOWER (i)) cannam@86: || toupper (i) != TOUPPER (i)) cannam@86: exit(2); cannam@86: exit (0); cannam@86: } cannam@86: _ACEOF cannam@86: rm -f conftest$ac_exeext cannam@86: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 cannam@86: (eval $ac_link) 2>&5 cannam@86: ac_status=$? cannam@86: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@86: (exit $ac_status); } && { ac_try='./conftest$ac_exeext' cannam@86: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 cannam@86: (eval $ac_try) 2>&5 cannam@86: ac_status=$? cannam@86: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@86: (exit $ac_status); }; }; then cannam@86: : cannam@86: else cannam@86: echo "$as_me: program exited with status $ac_status" >&5 cannam@86: echo "$as_me: failed program was:" >&5 cannam@86: sed 's/^/| /' conftest.$ac_ext >&5 cannam@86: cannam@86: ( exit $ac_status ) cannam@86: ac_cv_header_stdc=no cannam@86: fi cannam@86: rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext cannam@86: fi cannam@86: fi cannam@86: fi cannam@86: echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 cannam@86: echo "${ECHO_T}$ac_cv_header_stdc" >&6 cannam@86: if test $ac_cv_header_stdc = yes; then cannam@86: cannam@86: cat >>confdefs.h <<\_ACEOF cannam@86: #define STDC_HEADERS 1 cannam@86: _ACEOF cannam@86: cannam@86: fi cannam@86: cannam@86: # On IRIX 5.3, sys/types and inttypes.h are conflicting. cannam@86: cannam@86: cannam@86: cannam@86: cannam@86: cannam@86: cannam@86: cannam@86: cannam@86: cannam@86: for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ cannam@86: inttypes.h stdint.h unistd.h cannam@86: do cannam@86: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` cannam@86: echo "$as_me:$LINENO: checking for $ac_header" >&5 cannam@86: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 cannam@86: if eval "test \"\${$as_ac_Header+set}\" = set"; then cannam@86: echo $ECHO_N "(cached) $ECHO_C" >&6 cannam@86: else cannam@86: cat >conftest.$ac_ext <<_ACEOF cannam@86: /* confdefs.h. */ cannam@86: _ACEOF cannam@86: cat confdefs.h >>conftest.$ac_ext cannam@86: cat >>conftest.$ac_ext <<_ACEOF cannam@86: /* end confdefs.h. */ cannam@86: $ac_includes_default cannam@86: cannam@86: #include <$ac_header> cannam@86: _ACEOF cannam@86: rm -f conftest.$ac_objext cannam@86: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 cannam@86: (eval $ac_compile) 2>conftest.er1 cannam@86: ac_status=$? cannam@86: grep -v '^ *+' conftest.er1 >conftest.err cannam@86: rm -f conftest.er1 cannam@86: cat conftest.err >&5 cannam@86: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@86: (exit $ac_status); } && cannam@86: { ac_try='test -z "$ac_c_werror_flag" cannam@86: || test ! -s conftest.err' cannam@86: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 cannam@86: (eval $ac_try) 2>&5 cannam@86: ac_status=$? cannam@86: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@86: (exit $ac_status); }; } && cannam@86: { ac_try='test -s conftest.$ac_objext' cannam@86: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 cannam@86: (eval $ac_try) 2>&5 cannam@86: ac_status=$? cannam@86: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@86: (exit $ac_status); }; }; then cannam@86: eval "$as_ac_Header=yes" cannam@86: else cannam@86: echo "$as_me: failed program was:" >&5 cannam@86: sed 's/^/| /' conftest.$ac_ext >&5 cannam@86: cannam@86: eval "$as_ac_Header=no" cannam@86: fi cannam@86: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext cannam@86: fi cannam@86: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 cannam@86: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 cannam@86: if test `eval echo '${'$as_ac_Header'}'` = yes; then cannam@86: cat >>confdefs.h <<_ACEOF cannam@86: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 cannam@86: _ACEOF cannam@86: cannam@86: fi cannam@86: cannam@86: done cannam@86: cannam@86: cannam@86: cannam@86: for ac_header in dlfcn.h cannam@86: do cannam@86: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` cannam@86: if eval "test \"\${$as_ac_Header+set}\" = set"; then cannam@86: echo "$as_me:$LINENO: checking for $ac_header" >&5 cannam@86: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 cannam@86: if eval "test \"\${$as_ac_Header+set}\" = set"; then cannam@86: echo $ECHO_N "(cached) $ECHO_C" >&6 cannam@86: fi cannam@86: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 cannam@86: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 cannam@86: else cannam@86: # Is the header compilable? cannam@86: echo "$as_me:$LINENO: checking $ac_header usability" >&5 cannam@86: echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 cannam@86: cat >conftest.$ac_ext <<_ACEOF cannam@86: /* confdefs.h. */ cannam@86: _ACEOF cannam@86: cat confdefs.h >>conftest.$ac_ext cannam@86: cat >>conftest.$ac_ext <<_ACEOF cannam@86: /* end confdefs.h. */ cannam@86: $ac_includes_default cannam@86: #include <$ac_header> cannam@86: _ACEOF cannam@86: rm -f conftest.$ac_objext cannam@86: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 cannam@86: (eval $ac_compile) 2>conftest.er1 cannam@86: ac_status=$? cannam@86: grep -v '^ *+' conftest.er1 >conftest.err cannam@86: rm -f conftest.er1 cannam@86: cat conftest.err >&5 cannam@86: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@86: (exit $ac_status); } && cannam@86: { ac_try='test -z "$ac_c_werror_flag" cannam@86: || test ! -s conftest.err' cannam@86: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 cannam@86: (eval $ac_try) 2>&5 cannam@86: ac_status=$? cannam@86: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@86: (exit $ac_status); }; } && cannam@86: { ac_try='test -s conftest.$ac_objext' cannam@86: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 cannam@86: (eval $ac_try) 2>&5 cannam@86: ac_status=$? cannam@86: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@86: (exit $ac_status); }; }; then cannam@86: ac_header_compiler=yes cannam@86: else cannam@86: echo "$as_me: failed program was:" >&5 cannam@86: sed 's/^/| /' conftest.$ac_ext >&5 cannam@86: cannam@86: ac_header_compiler=no cannam@86: fi cannam@86: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext cannam@86: echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 cannam@86: echo "${ECHO_T}$ac_header_compiler" >&6 cannam@86: cannam@86: # Is the header present? cannam@86: echo "$as_me:$LINENO: checking $ac_header presence" >&5 cannam@86: echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 cannam@86: cat >conftest.$ac_ext <<_ACEOF cannam@86: /* confdefs.h. */ cannam@86: _ACEOF cannam@86: cat confdefs.h >>conftest.$ac_ext cannam@86: cat >>conftest.$ac_ext <<_ACEOF cannam@86: /* end confdefs.h. */ cannam@86: #include <$ac_header> cannam@86: _ACEOF cannam@86: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 cannam@86: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 cannam@86: ac_status=$? cannam@86: grep -v '^ *+' conftest.er1 >conftest.err cannam@86: rm -f conftest.er1 cannam@86: cat conftest.err >&5 cannam@86: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@86: (exit $ac_status); } >/dev/null; then cannam@86: if test -s conftest.err; then cannam@86: ac_cpp_err=$ac_c_preproc_warn_flag cannam@86: ac_cpp_err=$ac_cpp_err$ac_c_werror_flag cannam@86: else cannam@86: ac_cpp_err= cannam@86: fi cannam@86: else cannam@86: ac_cpp_err=yes cannam@86: fi cannam@86: if test -z "$ac_cpp_err"; then cannam@86: ac_header_preproc=yes cannam@86: else cannam@86: echo "$as_me: failed program was:" >&5 cannam@86: sed 's/^/| /' conftest.$ac_ext >&5 cannam@86: cannam@86: ac_header_preproc=no cannam@86: fi cannam@86: rm -f conftest.err conftest.$ac_ext cannam@86: echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 cannam@86: echo "${ECHO_T}$ac_header_preproc" >&6 cannam@86: cannam@86: # So? What about this header? cannam@86: case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in cannam@86: yes:no: ) cannam@86: { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 cannam@86: echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} cannam@86: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 cannam@86: echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} cannam@86: ac_header_preproc=yes cannam@86: ;; cannam@86: no:yes:* ) cannam@86: { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 cannam@86: echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} cannam@86: { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 cannam@86: echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} cannam@86: { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 cannam@86: echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} cannam@86: { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 cannam@86: echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} cannam@86: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 cannam@86: echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} cannam@86: { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 cannam@86: echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} cannam@86: ( cannam@86: cat <<\_ASBOX cannam@86: ## ------------------------------------------ ## cannam@86: ## Report this to the AC_PACKAGE_NAME lists. ## cannam@86: ## ------------------------------------------ ## cannam@86: _ASBOX cannam@86: ) | cannam@86: sed "s/^/$as_me: WARNING: /" >&2 cannam@86: ;; cannam@86: esac cannam@86: echo "$as_me:$LINENO: checking for $ac_header" >&5 cannam@86: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 cannam@86: if eval "test \"\${$as_ac_Header+set}\" = set"; then cannam@86: echo $ECHO_N "(cached) $ECHO_C" >&6 cannam@86: else cannam@86: eval "$as_ac_Header=\$ac_header_preproc" cannam@86: fi cannam@86: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 cannam@86: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 cannam@86: cannam@86: fi cannam@86: if test `eval echo '${'$as_ac_Header'}'` = yes; then cannam@86: cat >>confdefs.h <<_ACEOF cannam@86: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 cannam@86: _ACEOF cannam@86: cannam@86: fi cannam@86: cannam@86: done cannam@86: cannam@86: ac_ext=cc cannam@86: ac_cpp='$CXXCPP $CPPFLAGS' cannam@86: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' cannam@86: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' cannam@86: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu cannam@86: if test -n "$ac_tool_prefix"; then cannam@86: for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC cannam@86: do cannam@86: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. cannam@86: set dummy $ac_tool_prefix$ac_prog; ac_word=$2 cannam@86: echo "$as_me:$LINENO: checking for $ac_word" >&5 cannam@86: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 cannam@86: if test "${ac_cv_prog_CXX+set}" = set; then cannam@86: echo $ECHO_N "(cached) $ECHO_C" >&6 cannam@86: else cannam@86: if test -n "$CXX"; then cannam@86: ac_cv_prog_CXX="$CXX" # Let the user override the test. cannam@86: else cannam@86: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR cannam@86: for as_dir in $PATH cannam@86: do cannam@86: IFS=$as_save_IFS cannam@86: test -z "$as_dir" && as_dir=. cannam@86: for ac_exec_ext in '' $ac_executable_extensions; do cannam@86: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then cannam@86: ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" cannam@86: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 cannam@86: break 2 cannam@86: fi cannam@86: done cannam@86: done cannam@86: cannam@86: fi cannam@86: fi cannam@86: CXX=$ac_cv_prog_CXX cannam@86: if test -n "$CXX"; then cannam@86: echo "$as_me:$LINENO: result: $CXX" >&5 cannam@86: echo "${ECHO_T}$CXX" >&6 cannam@86: else cannam@86: echo "$as_me:$LINENO: result: no" >&5 cannam@86: echo "${ECHO_T}no" >&6 cannam@86: fi cannam@86: cannam@86: test -n "$CXX" && break cannam@86: done cannam@86: fi cannam@86: if test -z "$CXX"; then cannam@86: ac_ct_CXX=$CXX cannam@86: for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC cannam@86: do cannam@86: # Extract the first word of "$ac_prog", so it can be a program name with args. cannam@86: set dummy $ac_prog; ac_word=$2 cannam@86: echo "$as_me:$LINENO: checking for $ac_word" >&5 cannam@86: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 cannam@86: if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then cannam@86: echo $ECHO_N "(cached) $ECHO_C" >&6 cannam@86: else cannam@86: if test -n "$ac_ct_CXX"; then cannam@86: ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. cannam@86: else cannam@86: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR cannam@86: for as_dir in $PATH cannam@86: do cannam@86: IFS=$as_save_IFS cannam@86: test -z "$as_dir" && as_dir=. cannam@86: for ac_exec_ext in '' $ac_executable_extensions; do cannam@86: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then cannam@86: ac_cv_prog_ac_ct_CXX="$ac_prog" cannam@86: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 cannam@86: break 2 cannam@86: fi cannam@86: done cannam@86: done cannam@86: cannam@86: fi cannam@86: fi cannam@86: ac_ct_CXX=$ac_cv_prog_ac_ct_CXX cannam@86: if test -n "$ac_ct_CXX"; then cannam@86: echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 cannam@86: echo "${ECHO_T}$ac_ct_CXX" >&6 cannam@86: else cannam@86: echo "$as_me:$LINENO: result: no" >&5 cannam@86: echo "${ECHO_T}no" >&6 cannam@86: fi cannam@86: cannam@86: test -n "$ac_ct_CXX" && break cannam@86: done cannam@86: test -n "$ac_ct_CXX" || ac_ct_CXX="g++" cannam@86: cannam@86: CXX=$ac_ct_CXX cannam@86: fi cannam@86: cannam@86: cannam@86: # Provide some information about the compiler. cannam@86: echo "$as_me:$LINENO:" \ cannam@86: "checking for C++ compiler version" >&5 cannam@86: ac_compiler=`set X $ac_compile; echo $2` cannam@86: { (eval echo "$as_me:$LINENO: \"$ac_compiler --version &5\"") >&5 cannam@86: (eval $ac_compiler --version &5) 2>&5 cannam@86: ac_status=$? cannam@86: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@86: (exit $ac_status); } cannam@86: { (eval echo "$as_me:$LINENO: \"$ac_compiler -v &5\"") >&5 cannam@86: (eval $ac_compiler -v &5) 2>&5 cannam@86: ac_status=$? cannam@86: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@86: (exit $ac_status); } cannam@86: { (eval echo "$as_me:$LINENO: \"$ac_compiler -V &5\"") >&5 cannam@86: (eval $ac_compiler -V &5) 2>&5 cannam@86: ac_status=$? cannam@86: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@86: (exit $ac_status); } cannam@86: cannam@86: echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 cannam@86: echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6 cannam@86: if test "${ac_cv_cxx_compiler_gnu+set}" = set; then cannam@86: echo $ECHO_N "(cached) $ECHO_C" >&6 cannam@86: else cannam@86: cat >conftest.$ac_ext <<_ACEOF cannam@86: /* confdefs.h. */ cannam@86: _ACEOF cannam@86: cat confdefs.h >>conftest.$ac_ext cannam@86: cat >>conftest.$ac_ext <<_ACEOF cannam@86: /* end confdefs.h. */ cannam@86: cannam@86: int cannam@86: main () cannam@86: { cannam@86: #ifndef __GNUC__ cannam@86: choke me cannam@86: #endif cannam@86: cannam@86: ; cannam@86: return 0; cannam@86: } cannam@86: _ACEOF cannam@86: rm -f conftest.$ac_objext cannam@86: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 cannam@86: (eval $ac_compile) 2>conftest.er1 cannam@86: ac_status=$? cannam@86: grep -v '^ *+' conftest.er1 >conftest.err cannam@86: rm -f conftest.er1 cannam@86: cat conftest.err >&5 cannam@86: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@86: (exit $ac_status); } && cannam@86: { ac_try='test -z "$ac_cxx_werror_flag" cannam@86: || test ! -s conftest.err' cannam@86: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 cannam@86: (eval $ac_try) 2>&5 cannam@86: ac_status=$? cannam@86: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@86: (exit $ac_status); }; } && cannam@86: { ac_try='test -s conftest.$ac_objext' cannam@86: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 cannam@86: (eval $ac_try) 2>&5 cannam@86: ac_status=$? cannam@86: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@86: (exit $ac_status); }; }; then cannam@86: ac_compiler_gnu=yes cannam@86: else cannam@86: echo "$as_me: failed program was:" >&5 cannam@86: sed 's/^/| /' conftest.$ac_ext >&5 cannam@86: cannam@86: ac_compiler_gnu=no cannam@86: fi cannam@86: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext cannam@86: ac_cv_cxx_compiler_gnu=$ac_compiler_gnu cannam@86: cannam@86: fi cannam@86: echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 cannam@86: echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6 cannam@86: GXX=`test $ac_compiler_gnu = yes && echo yes` cannam@86: ac_test_CXXFLAGS=${CXXFLAGS+set} cannam@86: ac_save_CXXFLAGS=$CXXFLAGS cannam@86: CXXFLAGS="-g" cannam@86: echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 cannam@86: echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 cannam@86: if test "${ac_cv_prog_cxx_g+set}" = set; then cannam@86: echo $ECHO_N "(cached) $ECHO_C" >&6 cannam@86: else cannam@86: cat >conftest.$ac_ext <<_ACEOF cannam@86: /* confdefs.h. */ cannam@86: _ACEOF cannam@86: cat confdefs.h >>conftest.$ac_ext cannam@86: cat >>conftest.$ac_ext <<_ACEOF cannam@86: /* end confdefs.h. */ cannam@86: cannam@86: int cannam@86: main () cannam@86: { cannam@86: cannam@86: ; cannam@86: return 0; cannam@86: } cannam@86: _ACEOF cannam@86: rm -f conftest.$ac_objext cannam@86: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 cannam@86: (eval $ac_compile) 2>conftest.er1 cannam@86: ac_status=$? cannam@86: grep -v '^ *+' conftest.er1 >conftest.err cannam@86: rm -f conftest.er1 cannam@86: cat conftest.err >&5 cannam@86: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@86: (exit $ac_status); } && cannam@86: { ac_try='test -z "$ac_cxx_werror_flag" cannam@86: || test ! -s conftest.err' cannam@86: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 cannam@86: (eval $ac_try) 2>&5 cannam@86: ac_status=$? cannam@86: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@86: (exit $ac_status); }; } && cannam@86: { ac_try='test -s conftest.$ac_objext' cannam@86: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 cannam@86: (eval $ac_try) 2>&5 cannam@86: ac_status=$? cannam@86: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@86: (exit $ac_status); }; }; then cannam@86: ac_cv_prog_cxx_g=yes cannam@86: else cannam@86: echo "$as_me: failed program was:" >&5 cannam@86: sed 's/^/| /' conftest.$ac_ext >&5 cannam@86: cannam@86: ac_cv_prog_cxx_g=no cannam@86: fi cannam@86: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext cannam@86: fi cannam@86: echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 cannam@86: echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 cannam@86: if test "$ac_test_CXXFLAGS" = set; then cannam@86: CXXFLAGS=$ac_save_CXXFLAGS cannam@86: elif test $ac_cv_prog_cxx_g = yes; then cannam@86: if test "$GXX" = yes; then cannam@86: CXXFLAGS="-g -O2" cannam@86: else cannam@86: CXXFLAGS="-g" cannam@86: fi cannam@86: else cannam@86: if test "$GXX" = yes; then cannam@86: CXXFLAGS="-O2" cannam@86: else cannam@86: CXXFLAGS= cannam@86: fi cannam@86: fi cannam@86: for ac_declaration in \ cannam@86: '' \ cannam@86: 'extern "C" void std::exit (int) throw (); using std::exit;' \ cannam@86: 'extern "C" void std::exit (int); using std::exit;' \ cannam@86: 'extern "C" void exit (int) throw ();' \ cannam@86: 'extern "C" void exit (int);' \ cannam@86: 'void exit (int);' cannam@86: do cannam@86: cat >conftest.$ac_ext <<_ACEOF cannam@86: /* confdefs.h. */ cannam@86: _ACEOF cannam@86: cat confdefs.h >>conftest.$ac_ext cannam@86: cat >>conftest.$ac_ext <<_ACEOF cannam@86: /* end confdefs.h. */ cannam@86: $ac_declaration cannam@86: #include cannam@86: int cannam@86: main () cannam@86: { cannam@86: exit (42); cannam@86: ; cannam@86: return 0; cannam@86: } cannam@86: _ACEOF cannam@86: rm -f conftest.$ac_objext cannam@86: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 cannam@86: (eval $ac_compile) 2>conftest.er1 cannam@86: ac_status=$? cannam@86: grep -v '^ *+' conftest.er1 >conftest.err cannam@86: rm -f conftest.er1 cannam@86: cat conftest.err >&5 cannam@86: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@86: (exit $ac_status); } && cannam@86: { ac_try='test -z "$ac_cxx_werror_flag" cannam@86: || test ! -s conftest.err' cannam@86: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 cannam@86: (eval $ac_try) 2>&5 cannam@86: ac_status=$? cannam@86: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@86: (exit $ac_status); }; } && cannam@86: { ac_try='test -s conftest.$ac_objext' cannam@86: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 cannam@86: (eval $ac_try) 2>&5 cannam@86: ac_status=$? cannam@86: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@86: (exit $ac_status); }; }; then cannam@86: : cannam@86: else cannam@86: echo "$as_me: failed program was:" >&5 cannam@86: sed 's/^/| /' conftest.$ac_ext >&5 cannam@86: cannam@86: continue cannam@86: fi cannam@86: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext cannam@86: cat >conftest.$ac_ext <<_ACEOF cannam@86: /* confdefs.h. */ cannam@86: _ACEOF cannam@86: cat confdefs.h >>conftest.$ac_ext cannam@86: cat >>conftest.$ac_ext <<_ACEOF cannam@86: /* end confdefs.h. */ cannam@86: $ac_declaration cannam@86: int cannam@86: main () cannam@86: { cannam@86: exit (42); cannam@86: ; cannam@86: return 0; cannam@86: } cannam@86: _ACEOF cannam@86: rm -f conftest.$ac_objext cannam@86: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 cannam@86: (eval $ac_compile) 2>conftest.er1 cannam@86: ac_status=$? cannam@86: grep -v '^ *+' conftest.er1 >conftest.err cannam@86: rm -f conftest.er1 cannam@86: cat conftest.err >&5 cannam@86: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@86: (exit $ac_status); } && cannam@86: { ac_try='test -z "$ac_cxx_werror_flag" cannam@86: || test ! -s conftest.err' cannam@86: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 cannam@86: (eval $ac_try) 2>&5 cannam@86: ac_status=$? cannam@86: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@86: (exit $ac_status); }; } && cannam@86: { ac_try='test -s conftest.$ac_objext' cannam@86: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 cannam@86: (eval $ac_try) 2>&5 cannam@86: ac_status=$? cannam@86: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@86: (exit $ac_status); }; }; then cannam@86: break cannam@86: else cannam@86: echo "$as_me: failed program was:" >&5 cannam@86: sed 's/^/| /' conftest.$ac_ext >&5 cannam@86: cannam@86: fi cannam@86: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext cannam@86: done cannam@86: rm -f conftest* cannam@86: if test -n "$ac_declaration"; then cannam@86: echo '#ifdef __cplusplus' >>confdefs.h cannam@86: echo $ac_declaration >>confdefs.h cannam@86: echo '#endif' >>confdefs.h cannam@86: fi cannam@86: cannam@86: ac_ext=cc cannam@86: ac_cpp='$CXXCPP $CPPFLAGS' cannam@86: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' cannam@86: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' cannam@86: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu cannam@86: cannam@86: depcc="$CXX" am_compiler_list= cannam@86: cannam@86: echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 cannam@86: echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 cannam@86: if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then cannam@86: echo $ECHO_N "(cached) $ECHO_C" >&6 cannam@86: else cannam@86: if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then cannam@86: # We make a subdir and do the tests there. Otherwise we can end up cannam@86: # making bogus files that we don't know about and never remove. For cannam@86: # instance it was reported that on HP-UX the gcc test will end up cannam@86: # making a dummy file named `D' -- because `-MD' means `put the output cannam@86: # in D'. cannam@86: mkdir conftest.dir cannam@86: # Copy depcomp to subdir because otherwise we won't find it if we're cannam@86: # using a relative directory. cannam@86: cp "$am_depcomp" conftest.dir cannam@86: cd conftest.dir cannam@86: # We will build objects and dependencies in a subdirectory because cannam@86: # it helps to detect inapplicable dependency modes. For instance cannam@86: # both Tru64's cc and ICC support -MD to output dependencies as a cannam@86: # side effect of compilation, but ICC will put the dependencies in cannam@86: # the current directory while Tru64 will put them in the object cannam@86: # directory. cannam@86: mkdir sub cannam@86: cannam@86: am_cv_CXX_dependencies_compiler_type=none cannam@86: if test "$am_compiler_list" = ""; then cannam@86: am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` cannam@86: fi cannam@86: for depmode in $am_compiler_list; do cannam@86: # Setup a source with many dependencies, because some compilers cannam@86: # like to wrap large dependency lists on column 80 (with \), and cannam@86: # we should not choose a depcomp mode which is confused by this. cannam@86: # cannam@86: # We need to recreate these files for each test, as the compiler may cannam@86: # overwrite some of them when testing with obscure command lines. cannam@86: # This happens at least with the AIX C compiler. cannam@86: : > sub/conftest.c cannam@86: for i in 1 2 3 4 5 6; do cannam@86: echo '#include "conftst'$i'.h"' >> sub/conftest.c cannam@86: : > sub/conftst$i.h cannam@86: done cannam@86: echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf cannam@86: cannam@86: case $depmode in cannam@86: nosideeffect) cannam@86: # after this tag, mechanisms are not by side-effect, so they'll cannam@86: # only be used when explicitly requested cannam@86: if test "x$enable_dependency_tracking" = xyes; then cannam@86: continue cannam@86: else cannam@86: break cannam@86: fi cannam@86: ;; cannam@86: none) break ;; cannam@86: esac cannam@86: # We check with `-c' and `-o' for the sake of the "dashmstdout" cannam@86: # mode. It turns out that the SunPro C++ compiler does not properly cannam@86: # handle `-M -o', and we need to detect this. cannam@86: if depmode=$depmode \ cannam@86: source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ cannam@86: depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ cannam@86: $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ cannam@86: >/dev/null 2>conftest.err && cannam@86: grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && cannam@86: grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && cannam@86: ${MAKE-make} -s -f confmf > /dev/null 2>&1; then cannam@86: # icc doesn't choke on unknown options, it will just issue warnings cannam@86: # (even with -Werror). So we grep stderr for any message cannam@86: # that says an option was ignored. cannam@86: if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else cannam@86: am_cv_CXX_dependencies_compiler_type=$depmode cannam@86: break cannam@86: fi cannam@86: fi cannam@86: done cannam@86: cannam@86: cd .. cannam@86: rm -rf conftest.dir cannam@86: else cannam@86: am_cv_CXX_dependencies_compiler_type=none cannam@86: fi cannam@86: cannam@86: fi cannam@86: echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 cannam@86: echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6 cannam@86: CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type cannam@86: cannam@86: cannam@86: cannam@86: if cannam@86: test "x$enable_dependency_tracking" != xno \ cannam@86: && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then cannam@86: am__fastdepCXX_TRUE= cannam@86: am__fastdepCXX_FALSE='#' cannam@86: else cannam@86: am__fastdepCXX_TRUE='#' cannam@86: am__fastdepCXX_FALSE= cannam@86: fi cannam@86: cannam@86: cannam@86: cannam@86: cannam@86: if test -n "$CXX" && ( test "X$CXX" != "Xno" && cannam@86: ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || cannam@86: (test "X$CXX" != "Xg++"))) ; then cannam@86: ac_ext=cc cannam@86: ac_cpp='$CXXCPP $CPPFLAGS' cannam@86: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' cannam@86: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' cannam@86: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu cannam@86: echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 cannam@86: echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6 cannam@86: if test -z "$CXXCPP"; then cannam@86: if test "${ac_cv_prog_CXXCPP+set}" = set; then cannam@86: echo $ECHO_N "(cached) $ECHO_C" >&6 cannam@86: else cannam@86: # Double quotes because CXXCPP needs to be expanded cannam@86: for CXXCPP in "$CXX -E" "/lib/cpp" cannam@86: do cannam@86: ac_preproc_ok=false cannam@86: for ac_cxx_preproc_warn_flag in '' yes cannam@86: do cannam@86: # Use a header file that comes with gcc, so configuring glibc cannam@86: # with a fresh cross-compiler works. cannam@86: # Prefer to if __STDC__ is defined, since cannam@86: # exists even on freestanding compilers. cannam@86: # On the NeXT, cc -E runs the code through the compiler's parser, cannam@86: # not just through cpp. "Syntax error" is here to catch this case. cannam@86: cat >conftest.$ac_ext <<_ACEOF cannam@86: /* confdefs.h. */ cannam@86: _ACEOF cannam@86: cat confdefs.h >>conftest.$ac_ext cannam@86: cat >>conftest.$ac_ext <<_ACEOF cannam@86: /* end confdefs.h. */ cannam@86: #ifdef __STDC__ cannam@86: # include cannam@86: #else cannam@86: # include cannam@86: #endif cannam@86: Syntax error cannam@86: _ACEOF cannam@86: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 cannam@86: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 cannam@86: ac_status=$? cannam@86: grep -v '^ *+' conftest.er1 >conftest.err cannam@86: rm -f conftest.er1 cannam@86: cat conftest.err >&5 cannam@86: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@86: (exit $ac_status); } >/dev/null; then cannam@86: if test -s conftest.err; then cannam@86: ac_cpp_err=$ac_cxx_preproc_warn_flag cannam@86: ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag cannam@86: else cannam@86: ac_cpp_err= cannam@86: fi cannam@86: else cannam@86: ac_cpp_err=yes cannam@86: fi cannam@86: if test -z "$ac_cpp_err"; then cannam@86: : cannam@86: else cannam@86: echo "$as_me: failed program was:" >&5 cannam@86: sed 's/^/| /' conftest.$ac_ext >&5 cannam@86: cannam@86: # Broken: fails on valid input. cannam@86: continue cannam@86: fi cannam@86: rm -f conftest.err conftest.$ac_ext cannam@86: cannam@86: # OK, works on sane cases. Now check whether non-existent headers cannam@86: # can be detected and how. cannam@86: cat >conftest.$ac_ext <<_ACEOF cannam@86: /* confdefs.h. */ cannam@86: _ACEOF cannam@86: cat confdefs.h >>conftest.$ac_ext cannam@86: cat >>conftest.$ac_ext <<_ACEOF cannam@86: /* end confdefs.h. */ cannam@86: #include cannam@86: _ACEOF cannam@86: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 cannam@86: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 cannam@86: ac_status=$? cannam@86: grep -v '^ *+' conftest.er1 >conftest.err cannam@86: rm -f conftest.er1 cannam@86: cat conftest.err >&5 cannam@86: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@86: (exit $ac_status); } >/dev/null; then cannam@86: if test -s conftest.err; then cannam@86: ac_cpp_err=$ac_cxx_preproc_warn_flag cannam@86: ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag cannam@86: else cannam@86: ac_cpp_err= cannam@86: fi cannam@86: else cannam@86: ac_cpp_err=yes cannam@86: fi cannam@86: if test -z "$ac_cpp_err"; then cannam@86: # Broken: success on invalid input. cannam@86: continue cannam@86: else cannam@86: echo "$as_me: failed program was:" >&5 cannam@86: sed 's/^/| /' conftest.$ac_ext >&5 cannam@86: cannam@86: # Passes both tests. cannam@86: ac_preproc_ok=: cannam@86: break cannam@86: fi cannam@86: rm -f conftest.err conftest.$ac_ext cannam@86: cannam@86: done cannam@86: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. cannam@86: rm -f conftest.err conftest.$ac_ext cannam@86: if $ac_preproc_ok; then cannam@86: break cannam@86: fi cannam@86: cannam@86: done cannam@86: ac_cv_prog_CXXCPP=$CXXCPP cannam@86: cannam@86: fi cannam@86: CXXCPP=$ac_cv_prog_CXXCPP cannam@86: else cannam@86: ac_cv_prog_CXXCPP=$CXXCPP cannam@86: fi cannam@86: echo "$as_me:$LINENO: result: $CXXCPP" >&5 cannam@86: echo "${ECHO_T}$CXXCPP" >&6 cannam@86: ac_preproc_ok=false cannam@86: for ac_cxx_preproc_warn_flag in '' yes cannam@86: do cannam@86: # Use a header file that comes with gcc, so configuring glibc cannam@86: # with a fresh cross-compiler works. cannam@86: # Prefer to if __STDC__ is defined, since cannam@86: # exists even on freestanding compilers. cannam@86: # On the NeXT, cc -E runs the code through the compiler's parser, cannam@86: # not just through cpp. "Syntax error" is here to catch this case. cannam@86: cat >conftest.$ac_ext <<_ACEOF cannam@86: /* confdefs.h. */ cannam@86: _ACEOF cannam@86: cat confdefs.h >>conftest.$ac_ext cannam@86: cat >>conftest.$ac_ext <<_ACEOF cannam@86: /* end confdefs.h. */ cannam@86: #ifdef __STDC__ cannam@86: # include cannam@86: #else cannam@86: # include cannam@86: #endif cannam@86: Syntax error cannam@86: _ACEOF cannam@86: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 cannam@86: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 cannam@86: ac_status=$? cannam@86: grep -v '^ *+' conftest.er1 >conftest.err cannam@86: rm -f conftest.er1 cannam@86: cat conftest.err >&5 cannam@86: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@86: (exit $ac_status); } >/dev/null; then cannam@86: if test -s conftest.err; then cannam@86: ac_cpp_err=$ac_cxx_preproc_warn_flag cannam@86: ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag cannam@86: else cannam@86: ac_cpp_err= cannam@86: fi cannam@86: else cannam@86: ac_cpp_err=yes cannam@86: fi cannam@86: if test -z "$ac_cpp_err"; then cannam@86: : cannam@86: else cannam@86: echo "$as_me: failed program was:" >&5 cannam@86: sed 's/^/| /' conftest.$ac_ext >&5 cannam@86: cannam@86: # Broken: fails on valid input. cannam@86: continue cannam@86: fi cannam@86: rm -f conftest.err conftest.$ac_ext cannam@86: cannam@86: # OK, works on sane cases. Now check whether non-existent headers cannam@86: # can be detected and how. cannam@86: cat >conftest.$ac_ext <<_ACEOF cannam@86: /* confdefs.h. */ cannam@86: _ACEOF cannam@86: cat confdefs.h >>conftest.$ac_ext cannam@86: cat >>conftest.$ac_ext <<_ACEOF cannam@86: /* end confdefs.h. */ cannam@86: #include cannam@86: _ACEOF cannam@86: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 cannam@86: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 cannam@86: ac_status=$? cannam@86: grep -v '^ *+' conftest.er1 >conftest.err cannam@86: rm -f conftest.er1 cannam@86: cat conftest.err >&5 cannam@86: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@86: (exit $ac_status); } >/dev/null; then cannam@86: if test -s conftest.err; then cannam@86: ac_cpp_err=$ac_cxx_preproc_warn_flag cannam@86: ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag cannam@86: else cannam@86: ac_cpp_err= cannam@86: fi cannam@86: else cannam@86: ac_cpp_err=yes cannam@86: fi cannam@86: if test -z "$ac_cpp_err"; then cannam@86: # Broken: success on invalid input. cannam@86: continue cannam@86: else cannam@86: echo "$as_me: failed program was:" >&5 cannam@86: sed 's/^/| /' conftest.$ac_ext >&5 cannam@86: cannam@86: # Passes both tests. cannam@86: ac_preproc_ok=: cannam@86: break cannam@86: fi cannam@86: rm -f conftest.err conftest.$ac_ext cannam@86: cannam@86: done cannam@86: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. cannam@86: rm -f conftest.err conftest.$ac_ext cannam@86: if $ac_preproc_ok; then cannam@86: : cannam@86: else cannam@86: { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check cannam@86: See \`config.log' for more details." >&5 cannam@86: echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check cannam@86: See \`config.log' for more details." >&2;} cannam@86: { (exit 1); exit 1; }; } cannam@86: fi cannam@86: cannam@86: ac_ext=cc cannam@86: ac_cpp='$CXXCPP $CPPFLAGS' cannam@86: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' cannam@86: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' cannam@86: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu cannam@86: cannam@86: fi cannam@86: cannam@86: cannam@86: ac_ext=f cannam@86: ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' cannam@86: ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' cannam@86: ac_compiler_gnu=$ac_cv_f77_compiler_gnu cannam@86: if test -n "$ac_tool_prefix"; then cannam@86: for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran cannam@86: do cannam@86: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. cannam@86: set dummy $ac_tool_prefix$ac_prog; ac_word=$2 cannam@86: echo "$as_me:$LINENO: checking for $ac_word" >&5 cannam@86: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 cannam@86: if test "${ac_cv_prog_F77+set}" = set; then cannam@86: echo $ECHO_N "(cached) $ECHO_C" >&6 cannam@86: else cannam@86: if test -n "$F77"; then cannam@86: ac_cv_prog_F77="$F77" # Let the user override the test. cannam@86: else cannam@86: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR cannam@86: for as_dir in $PATH cannam@86: do cannam@86: IFS=$as_save_IFS cannam@86: test -z "$as_dir" && as_dir=. cannam@86: for ac_exec_ext in '' $ac_executable_extensions; do cannam@86: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then cannam@86: ac_cv_prog_F77="$ac_tool_prefix$ac_prog" cannam@86: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 cannam@86: break 2 cannam@86: fi cannam@86: done cannam@86: done cannam@86: cannam@86: fi cannam@86: fi cannam@86: F77=$ac_cv_prog_F77 cannam@86: if test -n "$F77"; then cannam@86: echo "$as_me:$LINENO: result: $F77" >&5 cannam@86: echo "${ECHO_T}$F77" >&6 cannam@86: else cannam@86: echo "$as_me:$LINENO: result: no" >&5 cannam@86: echo "${ECHO_T}no" >&6 cannam@86: fi cannam@86: cannam@86: test -n "$F77" && break cannam@86: done cannam@86: fi cannam@86: if test -z "$F77"; then cannam@86: ac_ct_F77=$F77 cannam@86: for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran cannam@86: do cannam@86: # Extract the first word of "$ac_prog", so it can be a program name with args. cannam@86: set dummy $ac_prog; ac_word=$2 cannam@86: echo "$as_me:$LINENO: checking for $ac_word" >&5 cannam@86: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 cannam@86: if test "${ac_cv_prog_ac_ct_F77+set}" = set; then cannam@86: echo $ECHO_N "(cached) $ECHO_C" >&6 cannam@86: else cannam@86: if test -n "$ac_ct_F77"; then cannam@86: ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test. cannam@86: else cannam@86: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR cannam@86: for as_dir in $PATH cannam@86: do cannam@86: IFS=$as_save_IFS cannam@86: test -z "$as_dir" && as_dir=. cannam@86: for ac_exec_ext in '' $ac_executable_extensions; do cannam@86: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then cannam@86: ac_cv_prog_ac_ct_F77="$ac_prog" cannam@86: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 cannam@86: break 2 cannam@86: fi cannam@86: done cannam@86: done cannam@86: cannam@86: fi cannam@86: fi cannam@86: ac_ct_F77=$ac_cv_prog_ac_ct_F77 cannam@86: if test -n "$ac_ct_F77"; then cannam@86: echo "$as_me:$LINENO: result: $ac_ct_F77" >&5 cannam@86: echo "${ECHO_T}$ac_ct_F77" >&6 cannam@86: else cannam@86: echo "$as_me:$LINENO: result: no" >&5 cannam@86: echo "${ECHO_T}no" >&6 cannam@86: fi cannam@86: cannam@86: test -n "$ac_ct_F77" && break cannam@86: done cannam@86: cannam@86: F77=$ac_ct_F77 cannam@86: fi cannam@86: cannam@86: cannam@86: # Provide some information about the compiler. cannam@86: echo "$as_me:5237:" \ cannam@86: "checking for Fortran 77 compiler version" >&5 cannam@86: ac_compiler=`set X $ac_compile; echo $2` cannam@86: { (eval echo "$as_me:$LINENO: \"$ac_compiler --version &5\"") >&5 cannam@86: (eval $ac_compiler --version &5) 2>&5 cannam@86: ac_status=$? cannam@86: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@86: (exit $ac_status); } cannam@86: { (eval echo "$as_me:$LINENO: \"$ac_compiler -v &5\"") >&5 cannam@86: (eval $ac_compiler -v &5) 2>&5 cannam@86: ac_status=$? cannam@86: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@86: (exit $ac_status); } cannam@86: { (eval echo "$as_me:$LINENO: \"$ac_compiler -V &5\"") >&5 cannam@86: (eval $ac_compiler -V &5) 2>&5 cannam@86: ac_status=$? cannam@86: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@86: (exit $ac_status); } cannam@86: rm -f a.out cannam@86: cannam@86: # If we don't use `.F' as extension, the preprocessor is not run on the cannam@86: # input file. (Note that this only needs to work for GNU compilers.) cannam@86: ac_save_ext=$ac_ext cannam@86: ac_ext=F cannam@86: echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5 cannam@86: echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6 cannam@86: if test "${ac_cv_f77_compiler_gnu+set}" = set; then cannam@86: echo $ECHO_N "(cached) $ECHO_C" >&6 cannam@86: else cannam@86: cat >conftest.$ac_ext <<_ACEOF cannam@86: program main cannam@86: #ifndef __GNUC__ cannam@86: choke me cannam@86: #endif cannam@86: cannam@86: end cannam@86: _ACEOF cannam@86: rm -f conftest.$ac_objext cannam@86: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 cannam@86: (eval $ac_compile) 2>conftest.er1 cannam@86: ac_status=$? cannam@86: grep -v '^ *+' conftest.er1 >conftest.err cannam@86: rm -f conftest.er1 cannam@86: cat conftest.err >&5 cannam@86: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@86: (exit $ac_status); } && cannam@86: { ac_try='test -z "$ac_f77_werror_flag" cannam@86: || test ! -s conftest.err' cannam@86: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 cannam@86: (eval $ac_try) 2>&5 cannam@86: ac_status=$? cannam@86: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@86: (exit $ac_status); }; } && cannam@86: { ac_try='test -s conftest.$ac_objext' cannam@86: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 cannam@86: (eval $ac_try) 2>&5 cannam@86: ac_status=$? cannam@86: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@86: (exit $ac_status); }; }; then cannam@86: ac_compiler_gnu=yes cannam@86: else cannam@86: echo "$as_me: failed program was:" >&5 cannam@86: sed 's/^/| /' conftest.$ac_ext >&5 cannam@86: cannam@86: ac_compiler_gnu=no cannam@86: fi cannam@86: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext cannam@86: ac_cv_f77_compiler_gnu=$ac_compiler_gnu cannam@86: cannam@86: fi cannam@86: echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5 cannam@86: echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6 cannam@86: ac_ext=$ac_save_ext cannam@86: ac_test_FFLAGS=${FFLAGS+set} cannam@86: ac_save_FFLAGS=$FFLAGS cannam@86: FFLAGS= cannam@86: echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5 cannam@86: echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6 cannam@86: if test "${ac_cv_prog_f77_g+set}" = set; then cannam@86: echo $ECHO_N "(cached) $ECHO_C" >&6 cannam@86: else cannam@86: FFLAGS=-g cannam@86: cat >conftest.$ac_ext <<_ACEOF cannam@86: program main cannam@86: cannam@86: end cannam@86: _ACEOF cannam@86: rm -f conftest.$ac_objext cannam@86: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 cannam@86: (eval $ac_compile) 2>conftest.er1 cannam@86: ac_status=$? cannam@86: grep -v '^ *+' conftest.er1 >conftest.err cannam@86: rm -f conftest.er1 cannam@86: cat conftest.err >&5 cannam@86: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@86: (exit $ac_status); } && cannam@86: { ac_try='test -z "$ac_f77_werror_flag" cannam@86: || test ! -s conftest.err' cannam@86: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 cannam@86: (eval $ac_try) 2>&5 cannam@86: ac_status=$? cannam@86: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@86: (exit $ac_status); }; } && cannam@86: { ac_try='test -s conftest.$ac_objext' cannam@86: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 cannam@86: (eval $ac_try) 2>&5 cannam@86: ac_status=$? cannam@86: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@86: (exit $ac_status); }; }; then cannam@86: ac_cv_prog_f77_g=yes cannam@86: else cannam@86: echo "$as_me: failed program was:" >&5 cannam@86: sed 's/^/| /' conftest.$ac_ext >&5 cannam@86: cannam@86: ac_cv_prog_f77_g=no cannam@86: fi cannam@86: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext cannam@86: cannam@86: fi cannam@86: echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5 cannam@86: echo "${ECHO_T}$ac_cv_prog_f77_g" >&6 cannam@86: if test "$ac_test_FFLAGS" = set; then cannam@86: FFLAGS=$ac_save_FFLAGS cannam@86: elif test $ac_cv_prog_f77_g = yes; then cannam@86: if test "x$ac_cv_f77_compiler_gnu" = xyes; then cannam@86: FFLAGS="-g -O2" cannam@86: else cannam@86: FFLAGS="-g" cannam@86: fi cannam@86: else cannam@86: if test "x$ac_cv_f77_compiler_gnu" = xyes; then cannam@86: FFLAGS="-O2" cannam@86: else cannam@86: FFLAGS= cannam@86: fi cannam@86: fi cannam@86: cannam@86: G77=`test $ac_compiler_gnu = yes && echo yes` cannam@86: ac_ext=c cannam@86: ac_cpp='$CPP $CPPFLAGS' cannam@86: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' cannam@86: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' cannam@86: ac_compiler_gnu=$ac_cv_c_compiler_gnu cannam@86: cannam@86: cannam@86: cannam@86: # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! cannam@86: cannam@86: # find the maximum length of command line arguments cannam@86: echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 cannam@86: echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6 cannam@86: if test "${lt_cv_sys_max_cmd_len+set}" = set; then cannam@86: echo $ECHO_N "(cached) $ECHO_C" >&6 cannam@86: else cannam@86: i=0 cannam@86: teststring="ABCD" cannam@86: cannam@86: case $build_os in cannam@86: msdosdjgpp*) cannam@86: # On DJGPP, this test can blow up pretty badly due to problems in libc cannam@86: # (any single argument exceeding 2000 bytes causes a buffer overrun cannam@86: # during glob expansion). Even if it were fixed, the result of this cannam@86: # check would be larger than it should be. cannam@86: lt_cv_sys_max_cmd_len=12288; # 12K is about right cannam@86: ;; cannam@86: cannam@86: gnu*) cannam@86: # Under GNU Hurd, this test is not required because there is cannam@86: # no limit to the length of command line arguments. cannam@86: # Libtool will interpret -1 as no limit whatsoever cannam@86: lt_cv_sys_max_cmd_len=-1; cannam@86: ;; cannam@86: cannam@86: cygwin* | mingw*) cannam@86: # On Win9x/ME, this test blows up -- it succeeds, but takes cannam@86: # about 5 minutes as the teststring grows exponentially. cannam@86: # Worse, since 9x/ME are not pre-emptively multitasking, cannam@86: # you end up with a "frozen" computer, even though with patience cannam@86: # the test eventually succeeds (with a max line length of 256k). cannam@86: # Instead, let's just punt: use the minimum linelength reported by cannam@86: # all of the supported platforms: 8192 (on NT/2K/XP). cannam@86: lt_cv_sys_max_cmd_len=8192; cannam@86: ;; cannam@86: cannam@86: amigaos*) cannam@86: # On AmigaOS with pdksh, this test takes hours, literally. cannam@86: # So we just punt and use a minimum line length of 8192. cannam@86: lt_cv_sys_max_cmd_len=8192; cannam@86: ;; cannam@86: cannam@86: netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) cannam@86: # This has been around since 386BSD, at least. Likely further. cannam@86: if test -x /sbin/sysctl; then cannam@86: lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` cannam@86: elif test -x /usr/sbin/sysctl; then cannam@86: lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` cannam@86: else cannam@86: lt_cv_sys_max_cmd_len=65536 # usable default for *BSD cannam@86: fi cannam@86: # And add a safety zone cannam@86: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` cannam@86: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` cannam@86: ;; cannam@86: osf*) cannam@86: # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure cannam@86: # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not cannam@86: # nice to cause kernel panics so lets avoid the loop below. cannam@86: # First set a reasonable default. cannam@86: lt_cv_sys_max_cmd_len=16384 cannam@86: # cannam@86: if test -x /sbin/sysconfig; then cannam@86: case `/sbin/sysconfig -q proc exec_disable_arg_limit` in cannam@86: *1*) lt_cv_sys_max_cmd_len=-1 ;; cannam@86: esac cannam@86: fi cannam@86: ;; cannam@86: *) cannam@86: # If test is not a shell built-in, we'll probably end up computing a cannam@86: # maximum length that is only half of the actual maximum length, but cannam@86: # we can't tell. cannam@86: SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} cannam@86: while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \ cannam@86: = "XX$teststring") >/dev/null 2>&1 && cannam@86: new_result=`expr "X$teststring" : ".*" 2>&1` && cannam@86: lt_cv_sys_max_cmd_len=$new_result && cannam@86: test $i != 17 # 1/2 MB should be enough cannam@86: do cannam@86: i=`expr $i + 1` cannam@86: teststring=$teststring$teststring cannam@86: done cannam@86: teststring= cannam@86: # Add a significant safety factor because C++ compilers can tack on massive cannam@86: # amounts of additional arguments before passing them to the linker. cannam@86: # It appears as though 1/2 is a usable value. cannam@86: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` cannam@86: ;; cannam@86: esac cannam@86: cannam@86: fi cannam@86: cannam@86: if test -n $lt_cv_sys_max_cmd_len ; then cannam@86: echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 cannam@86: echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6 cannam@86: else cannam@86: echo "$as_me:$LINENO: result: none" >&5 cannam@86: echo "${ECHO_T}none" >&6 cannam@86: fi cannam@86: cannam@86: cannam@86: cannam@86: cannam@86: # Check for command to grab the raw symbol name followed by C symbol from nm. cannam@86: echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 cannam@86: echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6 cannam@86: if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then cannam@86: echo $ECHO_N "(cached) $ECHO_C" >&6 cannam@86: else cannam@86: cannam@86: # These are sane defaults that work on at least a few old systems. cannam@86: # [They come from Ultrix. What could be older than Ultrix?!! ;)] cannam@86: cannam@86: # Character class describing NM global symbol codes. cannam@86: symcode='[BCDEGRST]' cannam@86: cannam@86: # Regexp to match symbols that can be accessed directly from C. cannam@86: sympat='\([_A-Za-z][_A-Za-z0-9]*\)' cannam@86: cannam@86: # Transform an extracted symbol line into a proper C declaration cannam@86: lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" cannam@86: cannam@86: # Transform an extracted symbol line into symbol name and symbol address cannam@86: 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'" cannam@86: cannam@86: # Define system-specific variables. cannam@86: case $host_os in cannam@86: aix*) cannam@86: symcode='[BCDT]' cannam@86: ;; cannam@86: cygwin* | mingw* | pw32*) cannam@86: symcode='[ABCDGISTW]' cannam@86: ;; cannam@86: hpux*) # Its linker distinguishes data from code symbols cannam@86: if test "$host_cpu" = ia64; then cannam@86: symcode='[ABCDEGRST]' cannam@86: fi cannam@86: lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" cannam@86: 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'" cannam@86: ;; cannam@86: linux*) cannam@86: if test "$host_cpu" = ia64; then cannam@86: symcode='[ABCDGIRSTW]' cannam@86: lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" cannam@86: 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'" cannam@86: fi cannam@86: ;; cannam@86: irix* | nonstopux*) cannam@86: symcode='[BCDEGRST]' cannam@86: ;; cannam@86: osf*) cannam@86: symcode='[BCDEGQRST]' cannam@86: ;; cannam@86: solaris* | sysv5*) cannam@86: symcode='[BDRT]' cannam@86: ;; cannam@86: sysv4) cannam@86: symcode='[DFNSTU]' cannam@86: ;; cannam@86: esac cannam@86: cannam@86: # Handle CRLF in mingw tool chain cannam@86: opt_cr= cannam@86: case $build_os in cannam@86: mingw*) cannam@86: opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp cannam@86: ;; cannam@86: esac cannam@86: cannam@86: # If we're using GNU nm, then use its standard symbol codes. cannam@86: case `$NM -V 2>&1` in cannam@86: *GNU* | *'with BFD'*) cannam@86: symcode='[ABCDGIRSTW]' ;; cannam@86: esac cannam@86: cannam@86: # Try without a prefix undercore, then with it. cannam@86: for ac_symprfx in "" "_"; do cannam@86: cannam@86: # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. cannam@86: symxfrm="\\1 $ac_symprfx\\2 \\2" cannam@86: cannam@86: # Write the raw and C identifiers. cannam@86: lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" cannam@86: cannam@86: # Check to see that the pipe works correctly. cannam@86: pipe_works=no cannam@86: cannam@86: rm -f conftest* cannam@86: cat > conftest.$ac_ext <&5 cannam@86: (eval $ac_compile) 2>&5 cannam@86: ac_status=$? cannam@86: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@86: (exit $ac_status); }; then cannam@86: # Now try to grab the symbols. cannam@86: nlist=conftest.nm cannam@86: if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 cannam@86: (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 cannam@86: ac_status=$? cannam@86: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@86: (exit $ac_status); } && test -s "$nlist"; then cannam@86: # Try sorting and uniquifying the output. cannam@86: if sort "$nlist" | uniq > "$nlist"T; then cannam@86: mv -f "$nlist"T "$nlist" cannam@86: else cannam@86: rm -f "$nlist"T cannam@86: fi cannam@86: cannam@86: # Make sure that we snagged all the symbols we need. cannam@86: if grep ' nm_test_var$' "$nlist" >/dev/null; then cannam@86: if grep ' nm_test_func$' "$nlist" >/dev/null; then cannam@86: cat < conftest.$ac_ext cannam@86: #ifdef __cplusplus cannam@86: extern "C" { cannam@86: #endif cannam@86: cannam@86: EOF cannam@86: # Now generate the symbol file. cannam@86: eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' cannam@86: cannam@86: cat <> conftest.$ac_ext cannam@86: #if defined (__STDC__) && __STDC__ cannam@86: # define lt_ptr_t void * cannam@86: #else cannam@86: # define lt_ptr_t char * cannam@86: # define const cannam@86: #endif cannam@86: cannam@86: /* The mapping between symbol names and symbols. */ cannam@86: const struct { cannam@86: const char *name; cannam@86: lt_ptr_t address; cannam@86: } cannam@86: lt_preloaded_symbols[] = cannam@86: { cannam@86: EOF cannam@86: $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext cannam@86: cat <<\EOF >> conftest.$ac_ext cannam@86: {0, (lt_ptr_t) 0} cannam@86: }; cannam@86: cannam@86: #ifdef __cplusplus cannam@86: } cannam@86: #endif cannam@86: EOF cannam@86: # Now try linking the two files. cannam@86: mv conftest.$ac_objext conftstm.$ac_objext cannam@86: lt_save_LIBS="$LIBS" cannam@86: lt_save_CFLAGS="$CFLAGS" cannam@86: LIBS="conftstm.$ac_objext" cannam@86: CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" cannam@86: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 cannam@86: (eval $ac_link) 2>&5 cannam@86: ac_status=$? cannam@86: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@86: (exit $ac_status); } && test -s conftest${ac_exeext}; then cannam@86: pipe_works=yes cannam@86: fi cannam@86: LIBS="$lt_save_LIBS" cannam@86: CFLAGS="$lt_save_CFLAGS" cannam@86: else cannam@86: echo "cannot find nm_test_func in $nlist" >&5 cannam@86: fi cannam@86: else cannam@86: echo "cannot find nm_test_var in $nlist" >&5 cannam@86: fi cannam@86: else cannam@86: echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 cannam@86: fi cannam@86: else cannam@86: echo "$progname: failed program was:" >&5 cannam@86: cat conftest.$ac_ext >&5 cannam@86: fi cannam@86: rm -f conftest* conftst* cannam@86: cannam@86: # Do not use the global_symbol_pipe unless it works. cannam@86: if test "$pipe_works" = yes; then cannam@86: break cannam@86: else cannam@86: lt_cv_sys_global_symbol_pipe= cannam@86: fi cannam@86: done cannam@86: cannam@86: fi cannam@86: cannam@86: if test -z "$lt_cv_sys_global_symbol_pipe"; then cannam@86: lt_cv_sys_global_symbol_to_cdecl= cannam@86: fi cannam@86: if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then cannam@86: echo "$as_me:$LINENO: result: failed" >&5 cannam@86: echo "${ECHO_T}failed" >&6 cannam@86: else cannam@86: echo "$as_me:$LINENO: result: ok" >&5 cannam@86: echo "${ECHO_T}ok" >&6 cannam@86: fi cannam@86: cannam@86: echo "$as_me:$LINENO: checking for objdir" >&5 cannam@86: echo $ECHO_N "checking for objdir... $ECHO_C" >&6 cannam@86: if test "${lt_cv_objdir+set}" = set; then cannam@86: echo $ECHO_N "(cached) $ECHO_C" >&6 cannam@86: else cannam@86: rm -f .libs 2>/dev/null cannam@86: mkdir .libs 2>/dev/null cannam@86: if test -d .libs; then cannam@86: lt_cv_objdir=.libs cannam@86: else cannam@86: # MS-DOS does not allow filenames that begin with a dot. cannam@86: lt_cv_objdir=_libs cannam@86: fi cannam@86: rmdir .libs 2>/dev/null cannam@86: fi cannam@86: echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 cannam@86: echo "${ECHO_T}$lt_cv_objdir" >&6 cannam@86: objdir=$lt_cv_objdir cannam@86: cannam@86: cannam@86: cannam@86: cannam@86: cannam@86: case $host_os in cannam@86: aix3*) cannam@86: # AIX sometimes has problems with the GCC collect2 program. For some cannam@86: # reason, if we set the COLLECT_NAMES environment variable, the problems cannam@86: # vanish in a puff of smoke. cannam@86: if test "X${COLLECT_NAMES+set}" != Xset; then cannam@86: COLLECT_NAMES= cannam@86: export COLLECT_NAMES cannam@86: fi cannam@86: ;; cannam@86: esac cannam@86: cannam@86: # Sed substitution that helps us do robust quoting. It backslashifies cannam@86: # metacharacters that are still active within double-quoted strings. cannam@86: Xsed='sed -e 1s/^X//' cannam@86: sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' cannam@86: cannam@86: # Same as above, but do not quote variable references. cannam@86: double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' cannam@86: cannam@86: # Sed substitution to delay expansion of an escaped shell variable in a cannam@86: # double_quote_subst'ed string. cannam@86: delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' cannam@86: cannam@86: # Sed substitution to avoid accidental globbing in evaled expressions cannam@86: no_glob_subst='s/\*/\\\*/g' cannam@86: cannam@86: # Constants: cannam@86: rm="rm -f" cannam@86: cannam@86: # Global variables: cannam@86: default_ofile=libtool cannam@86: can_build_shared=yes cannam@86: cannam@86: # All known linkers require a `.a' archive for static linking (except M$VC, cannam@86: # which needs '.lib'). cannam@86: libext=a cannam@86: ltmain="$ac_aux_dir/ltmain.sh" cannam@86: ofile="$default_ofile" cannam@86: with_gnu_ld="$lt_cv_prog_gnu_ld" cannam@86: cannam@86: if test -n "$ac_tool_prefix"; then cannam@86: # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. cannam@86: set dummy ${ac_tool_prefix}ar; ac_word=$2 cannam@86: echo "$as_me:$LINENO: checking for $ac_word" >&5 cannam@86: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 cannam@86: if test "${ac_cv_prog_AR+set}" = set; then cannam@86: echo $ECHO_N "(cached) $ECHO_C" >&6 cannam@86: else cannam@86: if test -n "$AR"; then cannam@86: ac_cv_prog_AR="$AR" # Let the user override the test. cannam@86: else cannam@86: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR cannam@86: for as_dir in $PATH cannam@86: do cannam@86: IFS=$as_save_IFS cannam@86: test -z "$as_dir" && as_dir=. cannam@86: for ac_exec_ext in '' $ac_executable_extensions; do cannam@86: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then cannam@86: ac_cv_prog_AR="${ac_tool_prefix}ar" cannam@86: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 cannam@86: break 2 cannam@86: fi cannam@86: done cannam@86: done cannam@86: cannam@86: fi cannam@86: fi cannam@86: AR=$ac_cv_prog_AR cannam@86: if test -n "$AR"; then cannam@86: echo "$as_me:$LINENO: result: $AR" >&5 cannam@86: echo "${ECHO_T}$AR" >&6 cannam@86: else cannam@86: echo "$as_me:$LINENO: result: no" >&5 cannam@86: echo "${ECHO_T}no" >&6 cannam@86: fi cannam@86: cannam@86: fi cannam@86: if test -z "$ac_cv_prog_AR"; then cannam@86: ac_ct_AR=$AR cannam@86: # Extract the first word of "ar", so it can be a program name with args. cannam@86: set dummy ar; ac_word=$2 cannam@86: echo "$as_me:$LINENO: checking for $ac_word" >&5 cannam@86: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 cannam@86: if test "${ac_cv_prog_ac_ct_AR+set}" = set; then cannam@86: echo $ECHO_N "(cached) $ECHO_C" >&6 cannam@86: else cannam@86: if test -n "$ac_ct_AR"; then cannam@86: ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. cannam@86: else cannam@86: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR cannam@86: for as_dir in $PATH cannam@86: do cannam@86: IFS=$as_save_IFS cannam@86: test -z "$as_dir" && as_dir=. cannam@86: for ac_exec_ext in '' $ac_executable_extensions; do cannam@86: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then cannam@86: ac_cv_prog_ac_ct_AR="ar" cannam@86: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 cannam@86: break 2 cannam@86: fi cannam@86: done cannam@86: done cannam@86: cannam@86: test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false" cannam@86: fi cannam@86: fi cannam@86: ac_ct_AR=$ac_cv_prog_ac_ct_AR cannam@86: if test -n "$ac_ct_AR"; then cannam@86: echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 cannam@86: echo "${ECHO_T}$ac_ct_AR" >&6 cannam@86: else cannam@86: echo "$as_me:$LINENO: result: no" >&5 cannam@86: echo "${ECHO_T}no" >&6 cannam@86: fi cannam@86: cannam@86: AR=$ac_ct_AR cannam@86: else cannam@86: AR="$ac_cv_prog_AR" cannam@86: fi cannam@86: cannam@86: if test -n "$ac_tool_prefix"; then cannam@86: # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. cannam@86: set dummy ${ac_tool_prefix}ranlib; ac_word=$2 cannam@86: echo "$as_me:$LINENO: checking for $ac_word" >&5 cannam@86: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 cannam@86: if test "${ac_cv_prog_RANLIB+set}" = set; then cannam@86: echo $ECHO_N "(cached) $ECHO_C" >&6 cannam@86: else cannam@86: if test -n "$RANLIB"; then cannam@86: ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. cannam@86: else cannam@86: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR cannam@86: for as_dir in $PATH cannam@86: do cannam@86: IFS=$as_save_IFS cannam@86: test -z "$as_dir" && as_dir=. cannam@86: for ac_exec_ext in '' $ac_executable_extensions; do cannam@86: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then cannam@86: ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" cannam@86: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 cannam@86: break 2 cannam@86: fi cannam@86: done cannam@86: done cannam@86: cannam@86: fi cannam@86: fi cannam@86: RANLIB=$ac_cv_prog_RANLIB cannam@86: if test -n "$RANLIB"; then cannam@86: echo "$as_me:$LINENO: result: $RANLIB" >&5 cannam@86: echo "${ECHO_T}$RANLIB" >&6 cannam@86: else cannam@86: echo "$as_me:$LINENO: result: no" >&5 cannam@86: echo "${ECHO_T}no" >&6 cannam@86: fi cannam@86: cannam@86: fi cannam@86: if test -z "$ac_cv_prog_RANLIB"; then cannam@86: ac_ct_RANLIB=$RANLIB cannam@86: # Extract the first word of "ranlib", so it can be a program name with args. cannam@86: set dummy ranlib; ac_word=$2 cannam@86: echo "$as_me:$LINENO: checking for $ac_word" >&5 cannam@86: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 cannam@86: if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then cannam@86: echo $ECHO_N "(cached) $ECHO_C" >&6 cannam@86: else cannam@86: if test -n "$ac_ct_RANLIB"; then cannam@86: ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. cannam@86: else cannam@86: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR cannam@86: for as_dir in $PATH cannam@86: do cannam@86: IFS=$as_save_IFS cannam@86: test -z "$as_dir" && as_dir=. cannam@86: for ac_exec_ext in '' $ac_executable_extensions; do cannam@86: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then cannam@86: ac_cv_prog_ac_ct_RANLIB="ranlib" cannam@86: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 cannam@86: break 2 cannam@86: fi cannam@86: done cannam@86: done cannam@86: cannam@86: test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" cannam@86: fi cannam@86: fi cannam@86: ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB cannam@86: if test -n "$ac_ct_RANLIB"; then cannam@86: echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 cannam@86: echo "${ECHO_T}$ac_ct_RANLIB" >&6 cannam@86: else cannam@86: echo "$as_me:$LINENO: result: no" >&5 cannam@86: echo "${ECHO_T}no" >&6 cannam@86: fi cannam@86: cannam@86: RANLIB=$ac_ct_RANLIB cannam@86: else cannam@86: RANLIB="$ac_cv_prog_RANLIB" cannam@86: fi cannam@86: cannam@86: if test -n "$ac_tool_prefix"; then cannam@86: # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. cannam@86: set dummy ${ac_tool_prefix}strip; ac_word=$2 cannam@86: echo "$as_me:$LINENO: checking for $ac_word" >&5 cannam@86: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 cannam@86: if test "${ac_cv_prog_STRIP+set}" = set; then cannam@86: echo $ECHO_N "(cached) $ECHO_C" >&6 cannam@86: else cannam@86: if test -n "$STRIP"; then cannam@86: ac_cv_prog_STRIP="$STRIP" # Let the user override the test. cannam@86: else cannam@86: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR cannam@86: for as_dir in $PATH cannam@86: do cannam@86: IFS=$as_save_IFS cannam@86: test -z "$as_dir" && as_dir=. cannam@86: for ac_exec_ext in '' $ac_executable_extensions; do cannam@86: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then cannam@86: ac_cv_prog_STRIP="${ac_tool_prefix}strip" cannam@86: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 cannam@86: break 2 cannam@86: fi cannam@86: done cannam@86: done cannam@86: cannam@86: fi cannam@86: fi cannam@86: STRIP=$ac_cv_prog_STRIP cannam@86: if test -n "$STRIP"; then cannam@86: echo "$as_me:$LINENO: result: $STRIP" >&5 cannam@86: echo "${ECHO_T}$STRIP" >&6 cannam@86: else cannam@86: echo "$as_me:$LINENO: result: no" >&5 cannam@86: echo "${ECHO_T}no" >&6 cannam@86: fi cannam@86: cannam@86: fi cannam@86: if test -z "$ac_cv_prog_STRIP"; then cannam@86: ac_ct_STRIP=$STRIP cannam@86: # Extract the first word of "strip", so it can be a program name with args. cannam@86: set dummy strip; ac_word=$2 cannam@86: echo "$as_me:$LINENO: checking for $ac_word" >&5 cannam@86: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 cannam@86: if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then cannam@86: echo $ECHO_N "(cached) $ECHO_C" >&6 cannam@86: else cannam@86: if test -n "$ac_ct_STRIP"; then cannam@86: ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. cannam@86: else cannam@86: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR cannam@86: for as_dir in $PATH cannam@86: do cannam@86: IFS=$as_save_IFS cannam@86: test -z "$as_dir" && as_dir=. cannam@86: for ac_exec_ext in '' $ac_executable_extensions; do cannam@86: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then cannam@86: ac_cv_prog_ac_ct_STRIP="strip" cannam@86: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 cannam@86: break 2 cannam@86: fi cannam@86: done cannam@86: done cannam@86: cannam@86: test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" cannam@86: fi cannam@86: fi cannam@86: ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP cannam@86: if test -n "$ac_ct_STRIP"; then cannam@86: echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 cannam@86: echo "${ECHO_T}$ac_ct_STRIP" >&6 cannam@86: else cannam@86: echo "$as_me:$LINENO: result: no" >&5 cannam@86: echo "${ECHO_T}no" >&6 cannam@86: fi cannam@86: cannam@86: STRIP=$ac_ct_STRIP cannam@86: else cannam@86: STRIP="$ac_cv_prog_STRIP" cannam@86: fi cannam@86: cannam@86: cannam@86: old_CC="$CC" cannam@86: old_CFLAGS="$CFLAGS" cannam@86: cannam@86: # Set sane defaults for various variables cannam@86: test -z "$AR" && AR=ar cannam@86: test -z "$AR_FLAGS" && AR_FLAGS=cru cannam@86: test -z "$AS" && AS=as cannam@86: test -z "$CC" && CC=cc cannam@86: test -z "$LTCC" && LTCC=$CC cannam@86: test -z "$DLLTOOL" && DLLTOOL=dlltool cannam@86: test -z "$LD" && LD=ld cannam@86: test -z "$LN_S" && LN_S="ln -s" cannam@86: test -z "$MAGIC_CMD" && MAGIC_CMD=file cannam@86: test -z "$NM" && NM=nm cannam@86: test -z "$SED" && SED=sed cannam@86: test -z "$OBJDUMP" && OBJDUMP=objdump cannam@86: test -z "$RANLIB" && RANLIB=: cannam@86: test -z "$STRIP" && STRIP=: cannam@86: test -z "$ac_objext" && ac_objext=o cannam@86: cannam@86: # Determine commands to create old-style static archives. cannam@86: old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs' cannam@86: old_postinstall_cmds='chmod 644 $oldlib' cannam@86: old_postuninstall_cmds= cannam@86: cannam@86: if test -n "$RANLIB"; then cannam@86: case $host_os in cannam@86: openbsd*) cannam@86: old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds" cannam@86: ;; cannam@86: *) cannam@86: old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds" cannam@86: ;; cannam@86: esac cannam@86: old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" cannam@86: fi cannam@86: cannam@86: for cc_temp in $compiler""; do cannam@86: case $cc_temp in cannam@86: compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; cannam@86: distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; cannam@86: \-*) ;; cannam@86: *) break;; cannam@86: esac cannam@86: done cannam@86: cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` cannam@86: cannam@86: cannam@86: # Only perform the check for file, if the check method requires it cannam@86: case $deplibs_check_method in cannam@86: file_magic*) cannam@86: if test "$file_magic_cmd" = '$MAGIC_CMD'; then cannam@86: echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 cannam@86: echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6 cannam@86: if test "${lt_cv_path_MAGIC_CMD+set}" = set; then cannam@86: echo $ECHO_N "(cached) $ECHO_C" >&6 cannam@86: else cannam@86: case $MAGIC_CMD in cannam@86: [\\/*] | ?:[\\/]*) cannam@86: lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. cannam@86: ;; cannam@86: *) cannam@86: lt_save_MAGIC_CMD="$MAGIC_CMD" cannam@86: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR cannam@86: ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" cannam@86: for ac_dir in $ac_dummy; do cannam@86: IFS="$lt_save_ifs" cannam@86: test -z "$ac_dir" && ac_dir=. cannam@86: if test -f $ac_dir/${ac_tool_prefix}file; then cannam@86: lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" cannam@86: if test -n "$file_magic_test_file"; then cannam@86: case $deplibs_check_method in cannam@86: "file_magic "*) cannam@86: file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" cannam@86: MAGIC_CMD="$lt_cv_path_MAGIC_CMD" cannam@86: if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | cannam@86: $EGREP "$file_magic_regex" > /dev/null; then cannam@86: : cannam@86: else cannam@86: cat <&2 cannam@86: cannam@86: *** Warning: the command libtool uses to detect shared libraries, cannam@86: *** $file_magic_cmd, produces output that libtool cannot recognize. cannam@86: *** The result is that libtool may fail to recognize shared libraries cannam@86: *** as such. This will affect the creation of libtool libraries that cannam@86: *** depend on shared libraries, but programs linked with such libtool cannam@86: *** libraries will work regardless of this problem. Nevertheless, you cannam@86: *** may want to report the problem to your system manager and/or to cannam@86: *** bug-libtool@gnu.org cannam@86: cannam@86: EOF cannam@86: fi ;; cannam@86: esac cannam@86: fi cannam@86: break cannam@86: fi cannam@86: done cannam@86: IFS="$lt_save_ifs" cannam@86: MAGIC_CMD="$lt_save_MAGIC_CMD" cannam@86: ;; cannam@86: esac cannam@86: fi cannam@86: cannam@86: MAGIC_CMD="$lt_cv_path_MAGIC_CMD" cannam@86: if test -n "$MAGIC_CMD"; then cannam@86: echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 cannam@86: echo "${ECHO_T}$MAGIC_CMD" >&6 cannam@86: else cannam@86: echo "$as_me:$LINENO: result: no" >&5 cannam@86: echo "${ECHO_T}no" >&6 cannam@86: fi cannam@86: cannam@86: if test -z "$lt_cv_path_MAGIC_CMD"; then cannam@86: if test -n "$ac_tool_prefix"; then cannam@86: echo "$as_me:$LINENO: checking for file" >&5 cannam@86: echo $ECHO_N "checking for file... $ECHO_C" >&6 cannam@86: if test "${lt_cv_path_MAGIC_CMD+set}" = set; then cannam@86: echo $ECHO_N "(cached) $ECHO_C" >&6 cannam@86: else cannam@86: case $MAGIC_CMD in cannam@86: [\\/*] | ?:[\\/]*) cannam@86: lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. cannam@86: ;; cannam@86: *) cannam@86: lt_save_MAGIC_CMD="$MAGIC_CMD" cannam@86: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR cannam@86: ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" cannam@86: for ac_dir in $ac_dummy; do cannam@86: IFS="$lt_save_ifs" cannam@86: test -z "$ac_dir" && ac_dir=. cannam@86: if test -f $ac_dir/file; then cannam@86: lt_cv_path_MAGIC_CMD="$ac_dir/file" cannam@86: if test -n "$file_magic_test_file"; then cannam@86: case $deplibs_check_method in cannam@86: "file_magic "*) cannam@86: file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" cannam@86: MAGIC_CMD="$lt_cv_path_MAGIC_CMD" cannam@86: if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | cannam@86: $EGREP "$file_magic_regex" > /dev/null; then cannam@86: : cannam@86: else cannam@86: cat <&2 cannam@86: cannam@86: *** Warning: the command libtool uses to detect shared libraries, cannam@86: *** $file_magic_cmd, produces output that libtool cannot recognize. cannam@86: *** The result is that libtool may fail to recognize shared libraries cannam@86: *** as such. This will affect the creation of libtool libraries that cannam@86: *** depend on shared libraries, but programs linked with such libtool cannam@86: *** libraries will work regardless of this problem. Nevertheless, you cannam@86: *** may want to report the problem to your system manager and/or to cannam@86: *** bug-libtool@gnu.org cannam@86: cannam@86: EOF cannam@86: fi ;; cannam@86: esac cannam@86: fi cannam@86: break cannam@86: fi cannam@86: done cannam@86: IFS="$lt_save_ifs" cannam@86: MAGIC_CMD="$lt_save_MAGIC_CMD" cannam@86: ;; cannam@86: esac cannam@86: fi cannam@86: cannam@86: MAGIC_CMD="$lt_cv_path_MAGIC_CMD" cannam@86: if test -n "$MAGIC_CMD"; then cannam@86: echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 cannam@86: echo "${ECHO_T}$MAGIC_CMD" >&6 cannam@86: else cannam@86: echo "$as_me:$LINENO: result: no" >&5 cannam@86: echo "${ECHO_T}no" >&6 cannam@86: fi cannam@86: cannam@86: else cannam@86: MAGIC_CMD=: cannam@86: fi cannam@86: fi cannam@86: cannam@86: fi cannam@86: ;; cannam@86: esac cannam@86: cannam@86: enable_dlopen=no cannam@86: enable_win32_dll=no cannam@86: cannam@86: # Check whether --enable-libtool-lock or --disable-libtool-lock was given. cannam@86: if test "${enable_libtool_lock+set}" = set; then cannam@86: enableval="$enable_libtool_lock" cannam@86: cannam@86: fi; cannam@86: test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes cannam@86: cannam@86: cannam@86: # Check whether --with-pic or --without-pic was given. cannam@86: if test "${with_pic+set}" = set; then cannam@86: withval="$with_pic" cannam@86: pic_mode="$withval" cannam@86: else cannam@86: pic_mode=default cannam@86: fi; cannam@86: test -z "$pic_mode" && pic_mode=default cannam@86: cannam@86: # Use C for the default configuration in the libtool script cannam@86: tagname= cannam@86: lt_save_CC="$CC" cannam@86: ac_ext=c cannam@86: ac_cpp='$CPP $CPPFLAGS' cannam@86: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' cannam@86: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' cannam@86: ac_compiler_gnu=$ac_cv_c_compiler_gnu cannam@86: cannam@86: cannam@86: # Source file extension for C test sources. cannam@86: ac_ext=c cannam@86: cannam@86: # Object file extension for compiled C test sources. cannam@86: objext=o cannam@86: objext=$objext cannam@86: cannam@86: # Code to be used in simple compile tests cannam@86: lt_simple_compile_test_code="int some_variable = 0;\n" cannam@86: cannam@86: # Code to be used in simple link tests cannam@86: lt_simple_link_test_code='int main(){return(0);}\n' cannam@86: cannam@86: cannam@86: # If no C compiler was specified, use CC. cannam@86: LTCC=${LTCC-"$CC"} cannam@86: cannam@86: # Allow CC to be a program name with arguments. cannam@86: compiler=$CC cannam@86: cannam@86: cannam@86: # save warnings/boilerplate of simple test code cannam@86: ac_outfile=conftest.$ac_objext cannam@86: printf "$lt_simple_compile_test_code" >conftest.$ac_ext cannam@86: eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err cannam@86: _lt_compiler_boilerplate=`cat conftest.err` cannam@86: $rm conftest* cannam@86: cannam@86: ac_outfile=conftest.$ac_objext cannam@86: printf "$lt_simple_link_test_code" >conftest.$ac_ext cannam@86: eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err cannam@86: _lt_linker_boilerplate=`cat conftest.err` cannam@86: $rm conftest* cannam@86: cannam@86: cannam@86: # cannam@86: # Check for any special shared library compilation flags. cannam@86: # cannam@86: lt_prog_cc_shlib= cannam@86: if test "$GCC" = no; then cannam@86: case $host_os in cannam@86: sco3.2v5*) cannam@86: lt_prog_cc_shlib='-belf' cannam@86: ;; cannam@86: esac cannam@86: fi cannam@86: if test -n "$lt_prog_cc_shlib"; then cannam@86: { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5 cannam@86: echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;} cannam@86: if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then : cannam@86: else cannam@86: { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5 cannam@86: echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;} cannam@86: lt_cv_prog_cc_can_build_shared=no cannam@86: fi cannam@86: fi cannam@86: cannam@86: cannam@86: # cannam@86: # Check to make sure the static flag actually works. cannam@86: # cannam@86: echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5 cannam@86: echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6 cannam@86: if test "${lt_prog_compiler_static_works+set}" = set; then cannam@86: echo $ECHO_N "(cached) $ECHO_C" >&6 cannam@86: else cannam@86: lt_prog_compiler_static_works=no cannam@86: save_LDFLAGS="$LDFLAGS" cannam@86: LDFLAGS="$LDFLAGS $lt_prog_compiler_static" cannam@86: printf "$lt_simple_link_test_code" > conftest.$ac_ext cannam@86: if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then cannam@86: # The compiler can only warn and ignore the option if not recognized cannam@86: # So say no if there are warnings cannam@86: if test -s conftest.err; then cannam@86: # Append any errors to the config.log. cannam@86: cat conftest.err 1>&5 cannam@86: $echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp cannam@86: $SED '/^$/d' conftest.err >conftest.er2 cannam@86: if diff conftest.exp conftest.er2 >/dev/null; then cannam@86: lt_prog_compiler_static_works=yes cannam@86: fi cannam@86: else cannam@86: lt_prog_compiler_static_works=yes cannam@86: fi cannam@86: fi cannam@86: $rm conftest* cannam@86: LDFLAGS="$save_LDFLAGS" cannam@86: cannam@86: fi cannam@86: echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5 cannam@86: echo "${ECHO_T}$lt_prog_compiler_static_works" >&6 cannam@86: cannam@86: if test x"$lt_prog_compiler_static_works" = xyes; then cannam@86: : cannam@86: else cannam@86: lt_prog_compiler_static= cannam@86: fi cannam@86: cannam@86: cannam@86: cannam@86: cannam@86: lt_prog_compiler_no_builtin_flag= cannam@86: cannam@86: if test "$GCC" = yes; then cannam@86: lt_prog_compiler_no_builtin_flag=' -fno-builtin' cannam@86: cannam@86: cannam@86: echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 cannam@86: echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6 cannam@86: if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then cannam@86: echo $ECHO_N "(cached) $ECHO_C" >&6 cannam@86: else cannam@86: lt_cv_prog_compiler_rtti_exceptions=no cannam@86: ac_outfile=conftest.$ac_objext cannam@86: printf "$lt_simple_compile_test_code" > conftest.$ac_ext cannam@86: lt_compiler_flag="-fno-rtti -fno-exceptions" cannam@86: # Insert the option either (1) after the last *FLAGS variable, or cannam@86: # (2) before a word containing "conftest.", or (3) at the end. cannam@86: # Note that $ac_compile itself does not contain backslashes and begins cannam@86: # with a dollar sign (not a hyphen), so the echo should work correctly. cannam@86: # The option is referenced via a variable to avoid confusing sed. cannam@86: lt_compile=`echo "$ac_compile" | $SED \ cannam@86: -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ cannam@86: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ cannam@86: -e 's:$: $lt_compiler_flag:'` cannam@86: (eval echo "\"\$as_me:6335: $lt_compile\"" >&5) cannam@86: (eval "$lt_compile" 2>conftest.err) cannam@86: ac_status=$? cannam@86: cat conftest.err >&5 cannam@86: echo "$as_me:6339: \$? = $ac_status" >&5 cannam@86: if (exit $ac_status) && test -s "$ac_outfile"; then cannam@86: # The compiler can only warn and ignore the option if not recognized cannam@86: # So say no if there are warnings other than the usual output. cannam@86: $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp cannam@86: $SED '/^$/d' conftest.err >conftest.er2 cannam@86: if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then cannam@86: lt_cv_prog_compiler_rtti_exceptions=yes cannam@86: fi cannam@86: fi cannam@86: $rm conftest* cannam@86: cannam@86: fi cannam@86: echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 cannam@86: echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6 cannam@86: cannam@86: if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then cannam@86: lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" cannam@86: else cannam@86: : cannam@86: fi cannam@86: cannam@86: fi cannam@86: cannam@86: lt_prog_compiler_wl= cannam@86: lt_prog_compiler_pic= cannam@86: lt_prog_compiler_static= cannam@86: cannam@86: echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 cannam@86: echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 cannam@86: cannam@86: if test "$GCC" = yes; then cannam@86: lt_prog_compiler_wl='-Wl,' cannam@86: lt_prog_compiler_static='-static' cannam@86: cannam@86: case $host_os in cannam@86: aix*) cannam@86: # All AIX code is PIC. cannam@86: if test "$host_cpu" = ia64; then cannam@86: # AIX 5 now supports IA64 processor cannam@86: lt_prog_compiler_static='-Bstatic' cannam@86: fi cannam@86: ;; cannam@86: cannam@86: amigaos*) cannam@86: # FIXME: we need at least 68020 code to build shared libraries, but cannam@86: # adding the `-m68020' flag to GCC prevents building anything better, cannam@86: # like `-m68040'. cannam@86: lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' cannam@86: ;; cannam@86: cannam@86: beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) cannam@86: # PIC is the default for these OSes. cannam@86: ;; cannam@86: cannam@86: mingw* | pw32* | os2*) cannam@86: # This hack is so that the source file can tell whether it is being cannam@86: # built for inclusion in a dll (and should export symbols for example). cannam@86: lt_prog_compiler_pic='-DDLL_EXPORT' cannam@86: ;; cannam@86: cannam@86: darwin* | rhapsody*) cannam@86: # PIC is the default on this platform cannam@86: # Common symbols not allowed in MH_DYLIB files cannam@86: lt_prog_compiler_pic='-fno-common' cannam@86: ;; cannam@86: cannam@86: msdosdjgpp*) cannam@86: # Just because we use GCC doesn't mean we suddenly get shared libraries cannam@86: # on systems that don't support them. cannam@86: lt_prog_compiler_can_build_shared=no cannam@86: enable_shared=no cannam@86: ;; cannam@86: cannam@86: sysv4*MP*) cannam@86: if test -d /usr/nec; then cannam@86: lt_prog_compiler_pic=-Kconform_pic cannam@86: fi cannam@86: ;; cannam@86: cannam@86: hpux*) cannam@86: # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but cannam@86: # not for PA HP-UX. cannam@86: case "$host_cpu" in cannam@86: hppa*64*|ia64*) cannam@86: # +Z the default cannam@86: ;; cannam@86: *) cannam@86: lt_prog_compiler_pic='-fPIC' cannam@86: ;; cannam@86: esac cannam@86: ;; cannam@86: cannam@86: *) cannam@86: lt_prog_compiler_pic='-fPIC' cannam@86: ;; cannam@86: esac cannam@86: else cannam@86: # PORTME Check for flag to pass linker flags through the system compiler. cannam@86: case $host_os in cannam@86: aix*) cannam@86: lt_prog_compiler_wl='-Wl,' cannam@86: if test "$host_cpu" = ia64; then cannam@86: # AIX 5 now supports IA64 processor cannam@86: lt_prog_compiler_static='-Bstatic' cannam@86: else cannam@86: lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' cannam@86: fi cannam@86: ;; cannam@86: darwin*) cannam@86: # PIC is the default on this platform cannam@86: # Common symbols not allowed in MH_DYLIB files cannam@86: case $cc_basename in cannam@86: xlc*) cannam@86: lt_prog_compiler_pic='-qnocommon' cannam@86: lt_prog_compiler_wl='-Wl,' cannam@86: ;; cannam@86: esac cannam@86: ;; cannam@86: cannam@86: mingw* | pw32* | os2*) cannam@86: # This hack is so that the source file can tell whether it is being cannam@86: # built for inclusion in a dll (and should export symbols for example). cannam@86: lt_prog_compiler_pic='-DDLL_EXPORT' cannam@86: ;; cannam@86: cannam@86: hpux9* | hpux10* | hpux11*) cannam@86: lt_prog_compiler_wl='-Wl,' cannam@86: # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but cannam@86: # not for PA HP-UX. cannam@86: case "$host_cpu" in cannam@86: hppa*64*|ia64*) cannam@86: # +Z the default cannam@86: ;; cannam@86: *) cannam@86: lt_prog_compiler_pic='+Z' cannam@86: ;; cannam@86: esac cannam@86: # Is there a better lt_prog_compiler_static that works with the bundled CC? cannam@86: lt_prog_compiler_static='${wl}-a ${wl}archive' cannam@86: ;; cannam@86: cannam@86: irix5* | irix6* | nonstopux*) cannam@86: lt_prog_compiler_wl='-Wl,' cannam@86: # PIC (with -KPIC) is the default. cannam@86: lt_prog_compiler_static='-non_shared' cannam@86: ;; cannam@86: cannam@86: newsos6) cannam@86: lt_prog_compiler_pic='-KPIC' cannam@86: lt_prog_compiler_static='-Bstatic' cannam@86: ;; cannam@86: cannam@86: linux*) cannam@86: case $cc_basename in cannam@86: icc* | ecc*) cannam@86: lt_prog_compiler_wl='-Wl,' cannam@86: lt_prog_compiler_pic='-KPIC' cannam@86: lt_prog_compiler_static='-static' cannam@86: ;; cannam@86: pgcc* | pgf77* | pgf90*) cannam@86: # Portland Group compilers (*not* the Pentium gcc compiler, cannam@86: # which looks to be a dead project) cannam@86: lt_prog_compiler_wl='-Wl,' cannam@86: lt_prog_compiler_pic='-fpic' cannam@86: lt_prog_compiler_static='-static' cannam@86: ;; cannam@86: ccc*) cannam@86: lt_prog_compiler_wl='-Wl,' cannam@86: # All Alpha code is PIC. cannam@86: lt_prog_compiler_static='-non_shared' cannam@86: ;; cannam@86: esac cannam@86: ;; cannam@86: cannam@86: osf3* | osf4* | osf5*) cannam@86: lt_prog_compiler_wl='-Wl,' cannam@86: # All OSF/1 code is PIC. cannam@86: lt_prog_compiler_static='-non_shared' cannam@86: ;; cannam@86: cannam@86: sco3.2v5*) cannam@86: lt_prog_compiler_pic='-Kpic' cannam@86: lt_prog_compiler_static='-dn' cannam@86: ;; cannam@86: cannam@86: solaris*) cannam@86: lt_prog_compiler_pic='-KPIC' cannam@86: lt_prog_compiler_static='-Bstatic' cannam@86: case $cc_basename in cannam@86: f77* | f90* | f95*) cannam@86: lt_prog_compiler_wl='-Qoption ld ';; cannam@86: *) cannam@86: lt_prog_compiler_wl='-Wl,';; cannam@86: esac cannam@86: ;; cannam@86: cannam@86: sunos4*) cannam@86: lt_prog_compiler_wl='-Qoption ld ' cannam@86: lt_prog_compiler_pic='-PIC' cannam@86: lt_prog_compiler_static='-Bstatic' cannam@86: ;; cannam@86: cannam@86: sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) cannam@86: lt_prog_compiler_wl='-Wl,' cannam@86: lt_prog_compiler_pic='-KPIC' cannam@86: lt_prog_compiler_static='-Bstatic' cannam@86: ;; cannam@86: cannam@86: sysv4*MP*) cannam@86: if test -d /usr/nec ;then cannam@86: lt_prog_compiler_pic='-Kconform_pic' cannam@86: lt_prog_compiler_static='-Bstatic' cannam@86: fi cannam@86: ;; cannam@86: cannam@86: unicos*) cannam@86: lt_prog_compiler_wl='-Wl,' cannam@86: lt_prog_compiler_can_build_shared=no cannam@86: ;; cannam@86: cannam@86: uts4*) cannam@86: lt_prog_compiler_pic='-pic' cannam@86: lt_prog_compiler_static='-Bstatic' cannam@86: ;; cannam@86: cannam@86: *) cannam@86: lt_prog_compiler_can_build_shared=no cannam@86: ;; cannam@86: esac cannam@86: fi cannam@86: cannam@86: echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 cannam@86: echo "${ECHO_T}$lt_prog_compiler_pic" >&6 cannam@86: cannam@86: # cannam@86: # Check to make sure the PIC flag actually works. cannam@86: # cannam@86: if test -n "$lt_prog_compiler_pic"; then cannam@86: cannam@86: echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 cannam@86: echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6 cannam@86: if test "${lt_prog_compiler_pic_works+set}" = set; then cannam@86: echo $ECHO_N "(cached) $ECHO_C" >&6 cannam@86: else cannam@86: lt_prog_compiler_pic_works=no cannam@86: ac_outfile=conftest.$ac_objext cannam@86: printf "$lt_simple_compile_test_code" > conftest.$ac_ext cannam@86: lt_compiler_flag="$lt_prog_compiler_pic -DPIC" cannam@86: # Insert the option either (1) after the last *FLAGS variable, or cannam@86: # (2) before a word containing "conftest.", or (3) at the end. cannam@86: # Note that $ac_compile itself does not contain backslashes and begins cannam@86: # with a dollar sign (not a hyphen), so the echo should work correctly. cannam@86: # The option is referenced via a variable to avoid confusing sed. cannam@86: lt_compile=`echo "$ac_compile" | $SED \ cannam@86: -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ cannam@86: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ cannam@86: -e 's:$: $lt_compiler_flag:'` cannam@86: (eval echo "\"\$as_me:6597: $lt_compile\"" >&5) cannam@86: (eval "$lt_compile" 2>conftest.err) cannam@86: ac_status=$? cannam@86: cat conftest.err >&5 cannam@86: echo "$as_me:6601: \$? = $ac_status" >&5 cannam@86: if (exit $ac_status) && test -s "$ac_outfile"; then cannam@86: # The compiler can only warn and ignore the option if not recognized cannam@86: # So say no if there are warnings other than the usual output. cannam@86: $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp cannam@86: $SED '/^$/d' conftest.err >conftest.er2 cannam@86: if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then cannam@86: lt_prog_compiler_pic_works=yes cannam@86: fi cannam@86: fi cannam@86: $rm conftest* cannam@86: cannam@86: fi cannam@86: echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5 cannam@86: echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6 cannam@86: cannam@86: if test x"$lt_prog_compiler_pic_works" = xyes; then cannam@86: case $lt_prog_compiler_pic in cannam@86: "" | " "*) ;; cannam@86: *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; cannam@86: esac cannam@86: else cannam@86: lt_prog_compiler_pic= cannam@86: lt_prog_compiler_can_build_shared=no cannam@86: fi cannam@86: cannam@86: fi cannam@86: case "$host_os" in cannam@86: # For platforms which do not support PIC, -DPIC is meaningless: cannam@86: *djgpp*) cannam@86: lt_prog_compiler_pic= cannam@86: ;; cannam@86: *) cannam@86: lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" cannam@86: ;; cannam@86: esac cannam@86: cannam@86: echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 cannam@86: echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 cannam@86: if test "${lt_cv_prog_compiler_c_o+set}" = set; then cannam@86: echo $ECHO_N "(cached) $ECHO_C" >&6 cannam@86: else cannam@86: lt_cv_prog_compiler_c_o=no cannam@86: $rm -r conftest 2>/dev/null cannam@86: mkdir conftest cannam@86: cd conftest cannam@86: mkdir out cannam@86: printf "$lt_simple_compile_test_code" > conftest.$ac_ext cannam@86: cannam@86: lt_compiler_flag="-o out/conftest2.$ac_objext" cannam@86: # Insert the option either (1) after the last *FLAGS variable, or cannam@86: # (2) before a word containing "conftest.", or (3) at the end. cannam@86: # Note that $ac_compile itself does not contain backslashes and begins cannam@86: # with a dollar sign (not a hyphen), so the echo should work correctly. cannam@86: lt_compile=`echo "$ac_compile" | $SED \ cannam@86: -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ cannam@86: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ cannam@86: -e 's:$: $lt_compiler_flag:'` cannam@86: (eval echo "\"\$as_me:6659: $lt_compile\"" >&5) cannam@86: (eval "$lt_compile" 2>out/conftest.err) cannam@86: ac_status=$? cannam@86: cat out/conftest.err >&5 cannam@86: echo "$as_me:6663: \$? = $ac_status" >&5 cannam@86: if (exit $ac_status) && test -s out/conftest2.$ac_objext cannam@86: then cannam@86: # The compiler can only warn and ignore the option if not recognized cannam@86: # So say no if there are warnings cannam@86: $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp cannam@86: $SED '/^$/d' out/conftest.err >out/conftest.er2 cannam@86: if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then cannam@86: lt_cv_prog_compiler_c_o=yes cannam@86: fi cannam@86: fi cannam@86: chmod u+w . cannam@86: $rm conftest* cannam@86: # SGI C++ compiler will create directory out/ii_files/ for cannam@86: # template instantiation cannam@86: test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files cannam@86: $rm out/* && rmdir out cannam@86: cd .. cannam@86: rmdir conftest cannam@86: $rm conftest* cannam@86: cannam@86: fi cannam@86: echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 cannam@86: echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6 cannam@86: cannam@86: cannam@86: hard_links="nottested" cannam@86: if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then cannam@86: # do not overwrite the value of need_locks provided by the user cannam@86: echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 cannam@86: echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 cannam@86: hard_links=yes cannam@86: $rm conftest* cannam@86: ln conftest.a conftest.b 2>/dev/null && hard_links=no cannam@86: touch conftest.a cannam@86: ln conftest.a conftest.b 2>&5 || hard_links=no cannam@86: ln conftest.a conftest.b 2>/dev/null && hard_links=no cannam@86: echo "$as_me:$LINENO: result: $hard_links" >&5 cannam@86: echo "${ECHO_T}$hard_links" >&6 cannam@86: if test "$hard_links" = no; then cannam@86: { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 cannam@86: echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} cannam@86: need_locks=warn cannam@86: fi cannam@86: else cannam@86: need_locks=no cannam@86: fi cannam@86: cannam@86: echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 cannam@86: echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 cannam@86: cannam@86: runpath_var= cannam@86: allow_undefined_flag= cannam@86: enable_shared_with_static_runtimes=no cannam@86: archive_cmds= cannam@86: archive_expsym_cmds= cannam@86: old_archive_From_new_cmds= cannam@86: old_archive_from_expsyms_cmds= cannam@86: export_dynamic_flag_spec= cannam@86: whole_archive_flag_spec= cannam@86: thread_safe_flag_spec= cannam@86: hardcode_libdir_flag_spec= cannam@86: hardcode_libdir_flag_spec_ld= cannam@86: hardcode_libdir_separator= cannam@86: hardcode_direct=no cannam@86: hardcode_minus_L=no cannam@86: hardcode_shlibpath_var=unsupported cannam@86: link_all_deplibs=unknown cannam@86: hardcode_automatic=no cannam@86: module_cmds= cannam@86: module_expsym_cmds= cannam@86: always_export_symbols=no cannam@86: export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' cannam@86: # include_expsyms should be a list of space-separated symbols to be *always* cannam@86: # included in the symbol list cannam@86: include_expsyms= cannam@86: # exclude_expsyms can be an extended regexp of symbols to exclude cannam@86: # it will be wrapped by ` (' and `)$', so one must not match beginning or cannam@86: # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', cannam@86: # as well as any symbol that contains `d'. cannam@86: exclude_expsyms="_GLOBAL_OFFSET_TABLE_" cannam@86: # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out cannam@86: # platforms (ab)use it in PIC code, but their linkers get confused if cannam@86: # the symbol is explicitly referenced. Since portable code cannot cannam@86: # rely on this symbol name, it's probably fine to never include it in cannam@86: # preloaded symbol tables. cannam@86: extract_expsyms_cmds= cannam@86: # Just being paranoid about ensuring that cc_basename is set. cannam@86: for cc_temp in $compiler""; do cannam@86: case $cc_temp in cannam@86: compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; cannam@86: distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; cannam@86: \-*) ;; cannam@86: *) break;; cannam@86: esac cannam@86: done cannam@86: cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` cannam@86: cannam@86: case $host_os in cannam@86: cygwin* | mingw* | pw32*) cannam@86: # FIXME: the MSVC++ port hasn't been tested in a loooong time cannam@86: # When not using gcc, we currently assume that we are using cannam@86: # Microsoft Visual C++. cannam@86: if test "$GCC" != yes; then cannam@86: with_gnu_ld=no cannam@86: fi cannam@86: ;; cannam@86: openbsd*) cannam@86: with_gnu_ld=no cannam@86: ;; cannam@86: esac cannam@86: cannam@86: ld_shlibs=yes cannam@86: if test "$with_gnu_ld" = yes; then cannam@86: # If archive_cmds runs LD, not CC, wlarc should be empty cannam@86: wlarc='${wl}' cannam@86: cannam@86: # Set some defaults for GNU ld with shared library support. These cannam@86: # are reset later if shared libraries are not supported. Putting them cannam@86: # here allows them to be overridden if necessary. cannam@86: runpath_var=LD_RUN_PATH cannam@86: hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' cannam@86: export_dynamic_flag_spec='${wl}--export-dynamic' cannam@86: # ancient GNU ld didn't support --whole-archive et. al. cannam@86: if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then cannam@86: whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' cannam@86: else cannam@86: whole_archive_flag_spec= cannam@86: fi cannam@86: supports_anon_versioning=no cannam@86: case `$LD -v 2>/dev/null` in cannam@86: *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 cannam@86: *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... cannam@86: *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... cannam@86: *\ 2.11.*) ;; # other 2.11 versions cannam@86: *) supports_anon_versioning=yes ;; cannam@86: esac cannam@86: cannam@86: # See if GNU ld supports shared libraries. cannam@86: case $host_os in cannam@86: aix3* | aix4* | aix5*) cannam@86: # On AIX/PPC, the GNU linker is very broken cannam@86: if test "$host_cpu" != ia64; then cannam@86: ld_shlibs=no cannam@86: cat <&2 cannam@86: cannam@86: *** Warning: the GNU linker, at least up to release 2.9.1, is reported cannam@86: *** to be unable to reliably create shared libraries on AIX. cannam@86: *** Therefore, libtool is disabling shared libraries support. If you cannam@86: *** really care for shared libraries, you may want to modify your PATH cannam@86: *** so that a non-GNU linker is found, and then restart. cannam@86: cannam@86: EOF cannam@86: fi cannam@86: ;; cannam@86: cannam@86: amigaos*) cannam@86: 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)' cannam@86: hardcode_libdir_flag_spec='-L$libdir' cannam@86: hardcode_minus_L=yes cannam@86: cannam@86: # Samuel A. Falvo II reports cannam@86: # that the semantics of dynamic libraries on AmigaOS, at least up cannam@86: # to version 4, is to share data among multiple programs linked cannam@86: # with the same dynamic library. Since this doesn't match the cannam@86: # behavior of shared libraries on other platforms, we can't use cannam@86: # them. cannam@86: ld_shlibs=no cannam@86: ;; cannam@86: cannam@86: beos*) cannam@86: if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then cannam@86: allow_undefined_flag=unsupported cannam@86: # Joseph Beckenbach says some releases of gcc cannam@86: # support --undefined. This deserves some investigation. FIXME cannam@86: archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' cannam@86: else cannam@86: ld_shlibs=no cannam@86: fi cannam@86: ;; cannam@86: cannam@86: cygwin* | mingw* | pw32*) cannam@86: # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, cannam@86: # as there is no search path for DLLs. cannam@86: hardcode_libdir_flag_spec='-L$libdir' cannam@86: allow_undefined_flag=unsupported cannam@86: always_export_symbols=no cannam@86: enable_shared_with_static_runtimes=yes cannam@86: export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' cannam@86: cannam@86: if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then cannam@86: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' cannam@86: # If the export-symbols file already is a .def file (1st line cannam@86: # is EXPORTS), use it as is; otherwise, prepend... cannam@86: archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then cannam@86: cp $export_symbols $output_objdir/$soname.def; cannam@86: else cannam@86: echo EXPORTS > $output_objdir/$soname.def; cannam@86: cat $export_symbols >> $output_objdir/$soname.def; cannam@86: fi~ cannam@86: $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' cannam@86: else cannam@86: ld_shlibs=no cannam@86: fi cannam@86: ;; cannam@86: cannam@86: linux*) cannam@86: if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then cannam@86: tmp_addflag= cannam@86: case $cc_basename,$host_cpu in cannam@86: pgcc*) # Portland Group C compiler cannam@86: whole_archive_flag_spec= cannam@86: ;; cannam@86: pgf77* | pgf90* ) # Portland Group f77 and f90 compilers cannam@86: whole_archive_flag_spec= cannam@86: tmp_addflag=' -fpic -Mnomain' ;; cannam@86: ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 cannam@86: tmp_addflag=' -i_dynamic' ;; cannam@86: efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 cannam@86: tmp_addflag=' -i_dynamic -nofor_main' ;; cannam@86: ifc* | ifort*) # Intel Fortran compiler cannam@86: tmp_addflag=' -nofor_main' ;; cannam@86: esac cannam@86: archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' cannam@86: cannam@86: if test $supports_anon_versioning = yes; then cannam@86: archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~ cannam@86: cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ cannam@86: $echo "local: *; };" >> $output_objdir/$libname.ver~ cannam@86: $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' cannam@86: fi cannam@86: else cannam@86: ld_shlibs=no cannam@86: fi cannam@86: ;; cannam@86: cannam@86: netbsd*) cannam@86: if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then cannam@86: archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' cannam@86: wlarc= cannam@86: else cannam@86: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' cannam@86: archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' cannam@86: fi cannam@86: ;; cannam@86: cannam@86: solaris* | sysv5*) cannam@86: if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then cannam@86: ld_shlibs=no cannam@86: cat <&2 cannam@86: cannam@86: *** Warning: The releases 2.8.* of the GNU linker cannot reliably cannam@86: *** create shared libraries on Solaris systems. Therefore, libtool cannam@86: *** is disabling shared libraries support. We urge you to upgrade GNU cannam@86: *** binutils to release 2.9.1 or newer. Another option is to modify cannam@86: *** your PATH or compiler configuration so that the native linker is cannam@86: *** used, and then restart. cannam@86: cannam@86: EOF cannam@86: elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then cannam@86: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' cannam@86: archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' cannam@86: else cannam@86: ld_shlibs=no cannam@86: fi cannam@86: ;; cannam@86: cannam@86: sunos4*) cannam@86: archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' cannam@86: wlarc= cannam@86: hardcode_direct=yes cannam@86: hardcode_shlibpath_var=no cannam@86: ;; cannam@86: cannam@86: *) cannam@86: if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then cannam@86: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' cannam@86: archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' cannam@86: else cannam@86: ld_shlibs=no cannam@86: fi cannam@86: ;; cannam@86: esac cannam@86: cannam@86: if test "$ld_shlibs" = no; then cannam@86: runpath_var= cannam@86: hardcode_libdir_flag_spec= cannam@86: export_dynamic_flag_spec= cannam@86: whole_archive_flag_spec= cannam@86: fi cannam@86: else cannam@86: # PORTME fill in a description of your system's linker (not GNU ld) cannam@86: case $host_os in cannam@86: aix3*) cannam@86: allow_undefined_flag=unsupported cannam@86: always_export_symbols=yes cannam@86: archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' cannam@86: # Note: this linker hardcodes the directories in LIBPATH if there cannam@86: # are no directories specified by -L. cannam@86: hardcode_minus_L=yes cannam@86: if test "$GCC" = yes && test -z "$link_static_flag"; then cannam@86: # Neither direct hardcoding nor static linking is supported with a cannam@86: # broken collect2. cannam@86: hardcode_direct=unsupported cannam@86: fi cannam@86: ;; cannam@86: cannam@86: aix4* | aix5*) cannam@86: if test "$host_cpu" = ia64; then cannam@86: # On IA64, the linker does run time linking by default, so we don't cannam@86: # have to do anything special. cannam@86: aix_use_runtimelinking=no cannam@86: exp_sym_flag='-Bexport' cannam@86: no_entry_flag="" cannam@86: else cannam@86: # If we're using GNU nm, then we don't want the "-C" option. cannam@86: # -C means demangle to AIX nm, but means don't demangle with GNU nm cannam@86: if $NM -V 2>&1 | grep 'GNU' > /dev/null; then cannam@86: 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' cannam@86: else cannam@86: 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' cannam@86: fi cannam@86: aix_use_runtimelinking=no cannam@86: cannam@86: # Test if we are trying to use run time linking or normal cannam@86: # AIX style linking. If -brtl is somewhere in LDFLAGS, we cannam@86: # need to do runtime linking. cannam@86: case $host_os in aix4.[23]|aix4.[23].*|aix5*) cannam@86: for ld_flag in $LDFLAGS; do cannam@86: if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then cannam@86: aix_use_runtimelinking=yes cannam@86: break cannam@86: fi cannam@86: done cannam@86: esac cannam@86: cannam@86: exp_sym_flag='-bexport' cannam@86: no_entry_flag='-bnoentry' cannam@86: fi cannam@86: cannam@86: # When large executables or shared objects are built, AIX ld can cannam@86: # have problems creating the table of contents. If linking a library cannam@86: # or program results in "error TOC overflow" add -mminimal-toc to cannam@86: # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not cannam@86: # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. cannam@86: cannam@86: archive_cmds='' cannam@86: hardcode_direct=yes cannam@86: hardcode_libdir_separator=':' cannam@86: link_all_deplibs=yes cannam@86: cannam@86: if test "$GCC" = yes; then cannam@86: case $host_os in aix4.[012]|aix4.[012].*) cannam@86: # We only want to do this on AIX 4.2 and lower, the check cannam@86: # below for broken collect2 doesn't work under 4.3+ cannam@86: collect2name=`${CC} -print-prog-name=collect2` cannam@86: if test -f "$collect2name" && \ cannam@86: strings "$collect2name" | grep resolve_lib_name >/dev/null cannam@86: then cannam@86: # We have reworked collect2 cannam@86: hardcode_direct=yes cannam@86: else cannam@86: # We have old collect2 cannam@86: hardcode_direct=unsupported cannam@86: # It fails to find uninstalled libraries when the uninstalled cannam@86: # path is not listed in the libpath. Setting hardcode_minus_L cannam@86: # to unsupported forces relinking cannam@86: hardcode_minus_L=yes cannam@86: hardcode_libdir_flag_spec='-L$libdir' cannam@86: hardcode_libdir_separator= cannam@86: fi cannam@86: esac cannam@86: shared_flag='-shared' cannam@86: if test "$aix_use_runtimelinking" = yes; then cannam@86: shared_flag="$shared_flag "'${wl}-G' cannam@86: fi cannam@86: else cannam@86: # not using gcc cannam@86: if test "$host_cpu" = ia64; then cannam@86: # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release cannam@86: # chokes on -Wl,-G. The following line is correct: cannam@86: shared_flag='-G' cannam@86: else cannam@86: if test "$aix_use_runtimelinking" = yes; then cannam@86: shared_flag='${wl}-G' cannam@86: else cannam@86: shared_flag='${wl}-bM:SRE' cannam@86: fi cannam@86: fi cannam@86: fi cannam@86: cannam@86: # It seems that -bexpall does not export symbols beginning with cannam@86: # underscore (_), so it is better to generate a list of symbols to export. cannam@86: always_export_symbols=yes cannam@86: if test "$aix_use_runtimelinking" = yes; then cannam@86: # Warning - without using the other runtime loading flags (-brtl), cannam@86: # -berok will link without error, but may produce a broken library. cannam@86: allow_undefined_flag='-berok' cannam@86: # Determine the default libpath from the value encoded in an empty executable. cannam@86: cat >conftest.$ac_ext <<_ACEOF cannam@86: /* confdefs.h. */ cannam@86: _ACEOF cannam@86: cat confdefs.h >>conftest.$ac_ext cannam@86: cat >>conftest.$ac_ext <<_ACEOF cannam@86: /* end confdefs.h. */ cannam@86: cannam@86: int cannam@86: main () cannam@86: { cannam@86: cannam@86: ; cannam@86: return 0; cannam@86: } cannam@86: _ACEOF cannam@86: rm -f conftest.$ac_objext conftest$ac_exeext cannam@86: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 cannam@86: (eval $ac_link) 2>conftest.er1 cannam@86: ac_status=$? cannam@86: grep -v '^ *+' conftest.er1 >conftest.err cannam@86: rm -f conftest.er1 cannam@86: cat conftest.err >&5 cannam@86: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@86: (exit $ac_status); } && cannam@86: { ac_try='test -z "$ac_c_werror_flag" cannam@86: || test ! -s conftest.err' cannam@86: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 cannam@86: (eval $ac_try) 2>&5 cannam@86: ac_status=$? cannam@86: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@86: (exit $ac_status); }; } && cannam@86: { ac_try='test -s conftest$ac_exeext' cannam@86: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 cannam@86: (eval $ac_try) 2>&5 cannam@86: ac_status=$? cannam@86: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@86: (exit $ac_status); }; }; then cannam@86: cannam@86: aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } cannam@86: }'` cannam@86: # Check for a 64-bit object if we didn't find anything. cannam@86: if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } cannam@86: }'`; fi cannam@86: else cannam@86: echo "$as_me: failed program was:" >&5 cannam@86: sed 's/^/| /' conftest.$ac_ext >&5 cannam@86: cannam@86: fi cannam@86: rm -f conftest.err conftest.$ac_objext \ cannam@86: conftest$ac_exeext conftest.$ac_ext cannam@86: if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi cannam@86: cannam@86: hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" cannam@86: 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" cannam@86: else cannam@86: if test "$host_cpu" = ia64; then cannam@86: hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' cannam@86: allow_undefined_flag="-z nodefs" cannam@86: 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" cannam@86: else cannam@86: # Determine the default libpath from the value encoded in an empty executable. cannam@86: cat >conftest.$ac_ext <<_ACEOF cannam@86: /* confdefs.h. */ cannam@86: _ACEOF cannam@86: cat confdefs.h >>conftest.$ac_ext cannam@86: cat >>conftest.$ac_ext <<_ACEOF cannam@86: /* end confdefs.h. */ cannam@86: cannam@86: int cannam@86: main () cannam@86: { cannam@86: cannam@86: ; cannam@86: return 0; cannam@86: } cannam@86: _ACEOF cannam@86: rm -f conftest.$ac_objext conftest$ac_exeext cannam@86: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 cannam@86: (eval $ac_link) 2>conftest.er1 cannam@86: ac_status=$? cannam@86: grep -v '^ *+' conftest.er1 >conftest.err cannam@86: rm -f conftest.er1 cannam@86: cat conftest.err >&5 cannam@86: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@86: (exit $ac_status); } && cannam@86: { ac_try='test -z "$ac_c_werror_flag" cannam@86: || test ! -s conftest.err' cannam@86: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 cannam@86: (eval $ac_try) 2>&5 cannam@86: ac_status=$? cannam@86: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@86: (exit $ac_status); }; } && cannam@86: { ac_try='test -s conftest$ac_exeext' cannam@86: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 cannam@86: (eval $ac_try) 2>&5 cannam@86: ac_status=$? cannam@86: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@86: (exit $ac_status); }; }; then cannam@86: cannam@86: aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } cannam@86: }'` cannam@86: # Check for a 64-bit object if we didn't find anything. cannam@86: if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } cannam@86: }'`; fi cannam@86: else cannam@86: echo "$as_me: failed program was:" >&5 cannam@86: sed 's/^/| /' conftest.$ac_ext >&5 cannam@86: cannam@86: fi cannam@86: rm -f conftest.err conftest.$ac_objext \ cannam@86: conftest$ac_exeext conftest.$ac_ext cannam@86: if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi cannam@86: cannam@86: hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" cannam@86: # Warning - without using the other run time loading flags, cannam@86: # -berok will link without error, but may produce a broken library. cannam@86: no_undefined_flag=' ${wl}-bernotok' cannam@86: allow_undefined_flag=' ${wl}-berok' cannam@86: # -bexpall does not export symbols beginning with underscore (_) cannam@86: always_export_symbols=yes cannam@86: # Exported symbols can be pulled into shared objects from archives cannam@86: whole_archive_flag_spec=' ' cannam@86: archive_cmds_need_lc=yes cannam@86: # This is similar to how AIX traditionally builds it's shared libraries. cannam@86: archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' cannam@86: fi cannam@86: fi cannam@86: ;; cannam@86: cannam@86: amigaos*) cannam@86: 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)' cannam@86: hardcode_libdir_flag_spec='-L$libdir' cannam@86: hardcode_minus_L=yes cannam@86: # see comment about different semantics on the GNU ld section cannam@86: ld_shlibs=no cannam@86: ;; cannam@86: cannam@86: bsdi[45]*) cannam@86: export_dynamic_flag_spec=-rdynamic cannam@86: ;; cannam@86: cannam@86: cygwin* | mingw* | pw32*) cannam@86: # When not using gcc, we currently assume that we are using cannam@86: # Microsoft Visual C++. cannam@86: # hardcode_libdir_flag_spec is actually meaningless, as there is cannam@86: # no search path for DLLs. cannam@86: hardcode_libdir_flag_spec=' ' cannam@86: allow_undefined_flag=unsupported cannam@86: # Tell ltmain to make .lib files, not .a files. cannam@86: libext=lib cannam@86: # Tell ltmain to make .dll files, not .so files. cannam@86: shrext_cmds=".dll" cannam@86: # FIXME: Setting linknames here is a bad hack. cannam@86: archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' cannam@86: # The linker will automatically build a .lib file if we build a DLL. cannam@86: old_archive_From_new_cmds='true' cannam@86: # FIXME: Should let the user specify the lib program. cannam@86: old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs' cannam@86: fix_srcfile_path='`cygpath -w "$srcfile"`' cannam@86: enable_shared_with_static_runtimes=yes cannam@86: ;; cannam@86: cannam@86: darwin* | rhapsody*) cannam@86: case "$host_os" in cannam@86: rhapsody* | darwin1.[012]) cannam@86: allow_undefined_flag='${wl}-undefined ${wl}suppress' cannam@86: ;; cannam@86: *) # Darwin 1.3 on cannam@86: if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then cannam@86: allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' cannam@86: else cannam@86: case ${MACOSX_DEPLOYMENT_TARGET} in cannam@86: 10.[012]) cannam@86: allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' cannam@86: ;; cannam@86: 10.*) cannam@86: allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup' cannam@86: ;; cannam@86: esac cannam@86: fi cannam@86: ;; cannam@86: esac cannam@86: archive_cmds_need_lc=no cannam@86: hardcode_direct=no cannam@86: hardcode_automatic=yes cannam@86: hardcode_shlibpath_var=unsupported cannam@86: whole_archive_flag_spec='' cannam@86: link_all_deplibs=yes cannam@86: if test "$GCC" = yes ; then cannam@86: output_verbose_link_cmd='echo' cannam@86: archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' cannam@86: module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' cannam@86: # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's cannam@86: 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}' cannam@86: 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}' cannam@86: else cannam@86: case $cc_basename in cannam@86: xlc*) cannam@86: output_verbose_link_cmd='echo' cannam@86: archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' cannam@86: module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' cannam@86: # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's cannam@86: 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}' cannam@86: 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}' cannam@86: ;; cannam@86: *) cannam@86: ld_shlibs=no cannam@86: ;; cannam@86: esac cannam@86: fi cannam@86: ;; cannam@86: cannam@86: dgux*) cannam@86: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' cannam@86: hardcode_libdir_flag_spec='-L$libdir' cannam@86: hardcode_shlibpath_var=no cannam@86: ;; cannam@86: cannam@86: freebsd1*) cannam@86: ld_shlibs=no cannam@86: ;; cannam@86: cannam@86: # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor cannam@86: # support. Future versions do this automatically, but an explicit c++rt0.o cannam@86: # does not break anything, and helps significantly (at the cost of a little cannam@86: # extra space). cannam@86: freebsd2.2*) cannam@86: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' cannam@86: hardcode_libdir_flag_spec='-R$libdir' cannam@86: hardcode_direct=yes cannam@86: hardcode_shlibpath_var=no cannam@86: ;; cannam@86: cannam@86: # Unfortunately, older versions of FreeBSD 2 do not have this feature. cannam@86: freebsd2*) cannam@86: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' cannam@86: hardcode_direct=yes cannam@86: hardcode_minus_L=yes cannam@86: hardcode_shlibpath_var=no cannam@86: ;; cannam@86: cannam@86: # FreeBSD 3 and greater uses gcc -shared to do shared libraries. cannam@86: freebsd* | kfreebsd*-gnu | dragonfly*) cannam@86: archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' cannam@86: hardcode_libdir_flag_spec='-R$libdir' cannam@86: hardcode_direct=yes cannam@86: hardcode_shlibpath_var=no cannam@86: ;; cannam@86: cannam@86: hpux9*) cannam@86: if test "$GCC" = yes; then cannam@86: archive_cmds='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' cannam@86: else cannam@86: archive_cmds='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' cannam@86: fi cannam@86: hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' cannam@86: hardcode_libdir_separator=: cannam@86: hardcode_direct=yes cannam@86: cannam@86: # hardcode_minus_L: Not really in the search PATH, cannam@86: # but as the default location of the library. cannam@86: hardcode_minus_L=yes cannam@86: export_dynamic_flag_spec='${wl}-E' cannam@86: ;; cannam@86: cannam@86: hpux10* | hpux11*) cannam@86: if test "$GCC" = yes -a "$with_gnu_ld" = no; then cannam@86: case "$host_cpu" in cannam@86: hppa*64*|ia64*) cannam@86: archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' cannam@86: ;; cannam@86: *) cannam@86: archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' cannam@86: ;; cannam@86: esac cannam@86: else cannam@86: case "$host_cpu" in cannam@86: hppa*64*|ia64*) cannam@86: archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags' cannam@86: ;; cannam@86: *) cannam@86: archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' cannam@86: ;; cannam@86: esac cannam@86: fi cannam@86: if test "$with_gnu_ld" = no; then cannam@86: case "$host_cpu" in cannam@86: hppa*64*) cannam@86: hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' cannam@86: hardcode_libdir_flag_spec_ld='+b $libdir' cannam@86: hardcode_libdir_separator=: cannam@86: hardcode_direct=no cannam@86: hardcode_shlibpath_var=no cannam@86: ;; cannam@86: ia64*) cannam@86: hardcode_libdir_flag_spec='-L$libdir' cannam@86: hardcode_direct=no cannam@86: hardcode_shlibpath_var=no cannam@86: cannam@86: # hardcode_minus_L: Not really in the search PATH, cannam@86: # but as the default location of the library. cannam@86: hardcode_minus_L=yes cannam@86: ;; cannam@86: *) cannam@86: hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' cannam@86: hardcode_libdir_separator=: cannam@86: hardcode_direct=yes cannam@86: export_dynamic_flag_spec='${wl}-E' cannam@86: cannam@86: # hardcode_minus_L: Not really in the search PATH, cannam@86: # but as the default location of the library. cannam@86: hardcode_minus_L=yes cannam@86: ;; cannam@86: esac cannam@86: fi cannam@86: ;; cannam@86: cannam@86: irix5* | irix6* | nonstopux*) cannam@86: if test "$GCC" = yes; then cannam@86: 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' cannam@86: else cannam@86: 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' cannam@86: hardcode_libdir_flag_spec_ld='-rpath $libdir' cannam@86: fi cannam@86: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' cannam@86: hardcode_libdir_separator=: cannam@86: link_all_deplibs=yes cannam@86: ;; cannam@86: cannam@86: netbsd*) cannam@86: if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then cannam@86: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out cannam@86: else cannam@86: archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF cannam@86: fi cannam@86: hardcode_libdir_flag_spec='-R$libdir' cannam@86: hardcode_direct=yes cannam@86: hardcode_shlibpath_var=no cannam@86: ;; cannam@86: cannam@86: newsos6) cannam@86: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' cannam@86: hardcode_direct=yes cannam@86: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' cannam@86: hardcode_libdir_separator=: cannam@86: hardcode_shlibpath_var=no cannam@86: ;; cannam@86: cannam@86: openbsd*) cannam@86: hardcode_direct=yes cannam@86: hardcode_shlibpath_var=no cannam@86: if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then cannam@86: archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' cannam@86: archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' cannam@86: hardcode_libdir_flag_spec='${wl}-rpath,$libdir' cannam@86: export_dynamic_flag_spec='${wl}-E' cannam@86: else cannam@86: case $host_os in cannam@86: openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) cannam@86: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' cannam@86: hardcode_libdir_flag_spec='-R$libdir' cannam@86: ;; cannam@86: *) cannam@86: archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' cannam@86: hardcode_libdir_flag_spec='${wl}-rpath,$libdir' cannam@86: ;; cannam@86: esac cannam@86: fi cannam@86: ;; cannam@86: cannam@86: os2*) cannam@86: hardcode_libdir_flag_spec='-L$libdir' cannam@86: hardcode_minus_L=yes cannam@86: allow_undefined_flag=unsupported cannam@86: 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' cannam@86: old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' cannam@86: ;; cannam@86: cannam@86: osf3*) cannam@86: if test "$GCC" = yes; then cannam@86: allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' cannam@86: archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' cannam@86: else cannam@86: allow_undefined_flag=' -expect_unresolved \*' cannam@86: archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' cannam@86: fi cannam@86: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' cannam@86: hardcode_libdir_separator=: cannam@86: ;; cannam@86: cannam@86: osf4* | osf5*) # as osf3* with the addition of -msym flag cannam@86: if test "$GCC" = yes; then cannam@86: allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' cannam@86: archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' cannam@86: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' cannam@86: else cannam@86: allow_undefined_flag=' -expect_unresolved \*' cannam@86: archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' cannam@86: archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ cannam@86: $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp' cannam@86: cannam@86: # Both c and cxx compiler support -rpath directly cannam@86: hardcode_libdir_flag_spec='-rpath $libdir' cannam@86: fi cannam@86: hardcode_libdir_separator=: cannam@86: ;; cannam@86: cannam@86: sco3.2v5*) cannam@86: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' cannam@86: hardcode_shlibpath_var=no cannam@86: export_dynamic_flag_spec='${wl}-Bexport' cannam@86: runpath_var=LD_RUN_PATH cannam@86: hardcode_runpath_var=yes cannam@86: ;; cannam@86: cannam@86: solaris*) cannam@86: no_undefined_flag=' -z text' cannam@86: if test "$GCC" = yes; then cannam@86: wlarc='${wl}' cannam@86: archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' cannam@86: archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ cannam@86: $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' cannam@86: else cannam@86: wlarc='' cannam@86: archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' cannam@86: archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ cannam@86: $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' cannam@86: fi cannam@86: hardcode_libdir_flag_spec='-R$libdir' cannam@86: hardcode_shlibpath_var=no cannam@86: case $host_os in cannam@86: solaris2.[0-5] | solaris2.[0-5].*) ;; cannam@86: *) cannam@86: # The compiler driver will combine linker options so we cannam@86: # cannot just pass the convience library names through cannam@86: # without $wl, iff we do not link with $LD. cannam@86: # Luckily, gcc supports the same syntax we need for Sun Studio. cannam@86: # Supported since Solaris 2.6 (maybe 2.5.1?) cannam@86: case $wlarc in cannam@86: '') cannam@86: whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;; cannam@86: *) cannam@86: whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;; cannam@86: esac ;; cannam@86: esac cannam@86: link_all_deplibs=yes cannam@86: ;; cannam@86: cannam@86: sunos4*) cannam@86: if test "x$host_vendor" = xsequent; then cannam@86: # Use $CC to link under sequent, because it throws in some extra .o cannam@86: # files that make .init and .fini sections work. cannam@86: archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' cannam@86: else cannam@86: archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' cannam@86: fi cannam@86: hardcode_libdir_flag_spec='-L$libdir' cannam@86: hardcode_direct=yes cannam@86: hardcode_minus_L=yes cannam@86: hardcode_shlibpath_var=no cannam@86: ;; cannam@86: cannam@86: sysv4) cannam@86: case $host_vendor in cannam@86: sni) cannam@86: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' cannam@86: hardcode_direct=yes # is this really true??? cannam@86: ;; cannam@86: siemens) cannam@86: ## LD is ld it makes a PLAMLIB cannam@86: ## CC just makes a GrossModule. cannam@86: archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' cannam@86: reload_cmds='$CC -r -o $output$reload_objs' cannam@86: hardcode_direct=no cannam@86: ;; cannam@86: motorola) cannam@86: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' cannam@86: hardcode_direct=no #Motorola manual says yes, but my tests say they lie cannam@86: ;; cannam@86: esac cannam@86: runpath_var='LD_RUN_PATH' cannam@86: hardcode_shlibpath_var=no cannam@86: ;; cannam@86: cannam@86: sysv4.3*) cannam@86: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' cannam@86: hardcode_shlibpath_var=no cannam@86: export_dynamic_flag_spec='-Bexport' cannam@86: ;; cannam@86: cannam@86: sysv4*MP*) cannam@86: if test -d /usr/nec; then cannam@86: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' cannam@86: hardcode_shlibpath_var=no cannam@86: runpath_var=LD_RUN_PATH cannam@86: hardcode_runpath_var=yes cannam@86: ld_shlibs=yes cannam@86: fi cannam@86: ;; cannam@86: cannam@86: sysv4.2uw2*) cannam@86: archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' cannam@86: hardcode_direct=yes cannam@86: hardcode_minus_L=no cannam@86: hardcode_shlibpath_var=no cannam@86: hardcode_runpath_var=yes cannam@86: runpath_var=LD_RUN_PATH cannam@86: ;; cannam@86: cannam@86: sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) cannam@86: no_undefined_flag='${wl}-z ${wl}text' cannam@86: if test "$GCC" = yes; then cannam@86: archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' cannam@86: else cannam@86: archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' cannam@86: fi cannam@86: runpath_var='LD_RUN_PATH' cannam@86: hardcode_shlibpath_var=no cannam@86: ;; cannam@86: cannam@86: sysv5*) cannam@86: no_undefined_flag=' -z text' cannam@86: # $CC -shared without GNU ld will not create a library from C++ cannam@86: # object files and a static libstdc++, better avoid it by now cannam@86: archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' cannam@86: archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ cannam@86: $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' cannam@86: hardcode_libdir_flag_spec= cannam@86: hardcode_shlibpath_var=no cannam@86: runpath_var='LD_RUN_PATH' cannam@86: ;; cannam@86: cannam@86: uts4*) cannam@86: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' cannam@86: hardcode_libdir_flag_spec='-L$libdir' cannam@86: hardcode_shlibpath_var=no cannam@86: ;; cannam@86: cannam@86: *) cannam@86: ld_shlibs=no cannam@86: ;; cannam@86: esac cannam@86: fi cannam@86: cannam@86: echo "$as_me:$LINENO: result: $ld_shlibs" >&5 cannam@86: echo "${ECHO_T}$ld_shlibs" >&6 cannam@86: test "$ld_shlibs" = no && can_build_shared=no cannam@86: cannam@86: variables_saved_for_relink="PATH $shlibpath_var $runpath_var" cannam@86: if test "$GCC" = yes; then cannam@86: variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" cannam@86: fi cannam@86: cannam@86: # cannam@86: # Do we need to explicitly link libc? cannam@86: # cannam@86: case "x$archive_cmds_need_lc" in cannam@86: x|xyes) cannam@86: # Assume -lc should be added cannam@86: archive_cmds_need_lc=yes cannam@86: cannam@86: if test "$enable_shared" = yes && test "$GCC" = yes; then cannam@86: case $archive_cmds in cannam@86: *'~'*) cannam@86: # FIXME: we may have to deal with multi-command sequences. cannam@86: ;; cannam@86: '$CC '*) cannam@86: # Test whether the compiler implicitly links with -lc since on some cannam@86: # systems, -lgcc has to come before -lc. If gcc already passes -lc cannam@86: # to ld, don't add -lc before -lgcc. cannam@86: echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 cannam@86: echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 cannam@86: $rm conftest* cannam@86: printf "$lt_simple_compile_test_code" > conftest.$ac_ext cannam@86: cannam@86: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 cannam@86: (eval $ac_compile) 2>&5 cannam@86: ac_status=$? cannam@86: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@86: (exit $ac_status); } 2>conftest.err; then cannam@86: soname=conftest cannam@86: lib=conftest cannam@86: libobjs=conftest.$ac_objext cannam@86: deplibs= cannam@86: wl=$lt_prog_compiler_wl cannam@86: compiler_flags=-v cannam@86: linker_flags=-v cannam@86: verstring= cannam@86: output_objdir=. cannam@86: libname=conftest cannam@86: lt_save_allow_undefined_flag=$allow_undefined_flag cannam@86: allow_undefined_flag= cannam@86: if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 cannam@86: (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 cannam@86: ac_status=$? cannam@86: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@86: (exit $ac_status); } cannam@86: then cannam@86: archive_cmds_need_lc=no cannam@86: else cannam@86: archive_cmds_need_lc=yes cannam@86: fi cannam@86: allow_undefined_flag=$lt_save_allow_undefined_flag cannam@86: else cannam@86: cat conftest.err 1>&5 cannam@86: fi cannam@86: $rm conftest* cannam@86: echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 cannam@86: echo "${ECHO_T}$archive_cmds_need_lc" >&6 cannam@86: ;; cannam@86: esac cannam@86: fi cannam@86: ;; cannam@86: esac cannam@86: cannam@86: echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 cannam@86: echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 cannam@86: library_names_spec= cannam@86: libname_spec='lib$name' cannam@86: soname_spec= cannam@86: shrext_cmds=".so" cannam@86: postinstall_cmds= cannam@86: postuninstall_cmds= cannam@86: finish_cmds= cannam@86: finish_eval= cannam@86: shlibpath_var= cannam@86: shlibpath_overrides_runpath=unknown cannam@86: version_type=none cannam@86: dynamic_linker="$host_os ld.so" cannam@86: sys_lib_dlsearch_path_spec="/lib /usr/lib" cannam@86: if test "$GCC" = yes; then cannam@86: sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` cannam@86: if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then cannam@86: # if the path contains ";" then we assume it to be the separator cannam@86: # otherwise default to the standard path separator (i.e. ":") - it is cannam@86: # assumed that no part of a normal pathname contains ";" but that should cannam@86: # okay in the real world where ";" in dirpaths is itself problematic. cannam@86: sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` cannam@86: else cannam@86: sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` cannam@86: fi cannam@86: else cannam@86: sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" cannam@86: fi cannam@86: need_lib_prefix=unknown cannam@86: hardcode_into_libs=no cannam@86: cannam@86: # when you set need_version to no, make sure it does not cause -set_version cannam@86: # flags to be left without arguments cannam@86: need_version=unknown cannam@86: cannam@86: case $host_os in cannam@86: aix3*) cannam@86: version_type=linux cannam@86: library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' cannam@86: shlibpath_var=LIBPATH cannam@86: cannam@86: # AIX 3 has no versioning support, so we append a major version to the name. cannam@86: soname_spec='${libname}${release}${shared_ext}$major' cannam@86: ;; cannam@86: cannam@86: aix4* | aix5*) cannam@86: version_type=linux cannam@86: need_lib_prefix=no cannam@86: need_version=no cannam@86: hardcode_into_libs=yes cannam@86: if test "$host_cpu" = ia64; then cannam@86: # AIX 5 supports IA64 cannam@86: library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' cannam@86: shlibpath_var=LD_LIBRARY_PATH cannam@86: else cannam@86: # With GCC up to 2.95.x, collect2 would create an import file cannam@86: # for dependence libraries. The import file would start with cannam@86: # the line `#! .'. This would cause the generated library to cannam@86: # depend on `.', always an invalid library. This was fixed in cannam@86: # development snapshots of GCC prior to 3.0. cannam@86: case $host_os in cannam@86: aix4 | aix4.[01] | aix4.[01].*) cannam@86: if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' cannam@86: echo ' yes ' cannam@86: echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then cannam@86: : cannam@86: else cannam@86: can_build_shared=no cannam@86: fi cannam@86: ;; cannam@86: esac cannam@86: # AIX (on Power*) has no versioning support, so currently we can not hardcode correct cannam@86: # soname into executable. Probably we can add versioning support to cannam@86: # collect2, so additional links can be useful in future. cannam@86: if test "$aix_use_runtimelinking" = yes; then cannam@86: # If using run time linking (on AIX 4.2 or later) use lib.so cannam@86: # instead of lib.a to let people know that these are not cannam@86: # typical AIX shared libraries. cannam@86: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' cannam@86: else cannam@86: # We preserve .a as extension for shared libraries through AIX4.2 cannam@86: # and later when we are not doing run time linking. cannam@86: library_names_spec='${libname}${release}.a $libname.a' cannam@86: soname_spec='${libname}${release}${shared_ext}$major' cannam@86: fi cannam@86: shlibpath_var=LIBPATH cannam@86: fi cannam@86: ;; cannam@86: cannam@86: amigaos*) cannam@86: library_names_spec='$libname.ixlibrary $libname.a' cannam@86: # Create ${libname}_ixlibrary.a entries in /sys/libs. cannam@86: 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' cannam@86: ;; cannam@86: cannam@86: beos*) cannam@86: library_names_spec='${libname}${shared_ext}' cannam@86: dynamic_linker="$host_os ld.so" cannam@86: shlibpath_var=LIBRARY_PATH cannam@86: ;; cannam@86: cannam@86: bsdi[45]*) cannam@86: version_type=linux cannam@86: need_version=no cannam@86: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' cannam@86: soname_spec='${libname}${release}${shared_ext}$major' cannam@86: finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' cannam@86: shlibpath_var=LD_LIBRARY_PATH cannam@86: sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" cannam@86: sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" cannam@86: # the default ld.so.conf also contains /usr/contrib/lib and cannam@86: # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow cannam@86: # libtool to hard-code these into programs cannam@86: ;; cannam@86: cannam@86: cygwin* | mingw* | pw32*) cannam@86: version_type=windows cannam@86: shrext_cmds=".dll" cannam@86: need_version=no cannam@86: need_lib_prefix=no cannam@86: cannam@86: case $GCC,$host_os in cannam@86: yes,cygwin* | yes,mingw* | yes,pw32*) cannam@86: library_names_spec='$libname.dll.a' cannam@86: # DLL is installed to $(libdir)/../bin by postinstall_cmds cannam@86: postinstall_cmds='base_file=`basename \${file}`~ cannam@86: dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ cannam@86: dldir=$destdir/`dirname \$dlpath`~ cannam@86: test -d \$dldir || mkdir -p \$dldir~ cannam@86: $install_prog $dir/$dlname \$dldir/$dlname' cannam@86: postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ cannam@86: dlpath=$dir/\$dldll~ cannam@86: $rm \$dlpath' cannam@86: shlibpath_overrides_runpath=yes cannam@86: cannam@86: case $host_os in cannam@86: cygwin*) cannam@86: # Cygwin DLLs use 'cyg' prefix rather than 'lib' cannam@86: soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' cannam@86: sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" cannam@86: ;; cannam@86: mingw*) cannam@86: # MinGW DLLs use traditional 'lib' prefix cannam@86: soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' cannam@86: sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` cannam@86: if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then cannam@86: # It is most probably a Windows format PATH printed by cannam@86: # mingw gcc, but we are running on Cygwin. Gcc prints its search cannam@86: # path with ; separators, and with drive letters. We can handle the cannam@86: # drive letters (cygwin fileutils understands them), so leave them, cannam@86: # especially as we might pass files found there to a mingw objdump, cannam@86: # which wouldn't understand a cygwinified path. Ahh. cannam@86: sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` cannam@86: else cannam@86: sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` cannam@86: fi cannam@86: ;; cannam@86: pw32*) cannam@86: # pw32 DLLs use 'pw' prefix rather than 'lib' cannam@86: library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' cannam@86: ;; cannam@86: esac cannam@86: ;; cannam@86: cannam@86: *) cannam@86: library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' cannam@86: ;; cannam@86: esac cannam@86: dynamic_linker='Win32 ld.exe' cannam@86: # FIXME: first we should search . and the directory the executable is in cannam@86: shlibpath_var=PATH cannam@86: ;; cannam@86: cannam@86: darwin* | rhapsody*) cannam@86: dynamic_linker="$host_os dyld" cannam@86: version_type=darwin cannam@86: need_lib_prefix=no cannam@86: need_version=no cannam@86: library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' cannam@86: soname_spec='${libname}${release}${major}$shared_ext' cannam@86: shlibpath_overrides_runpath=yes cannam@86: shlibpath_var=DYLD_LIBRARY_PATH cannam@86: shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)' cannam@86: # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. cannam@86: if test "$GCC" = yes; then cannam@86: 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"` cannam@86: else cannam@86: sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' cannam@86: fi cannam@86: sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' cannam@86: ;; cannam@86: cannam@86: dgux*) cannam@86: version_type=linux cannam@86: need_lib_prefix=no cannam@86: need_version=no cannam@86: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' cannam@86: soname_spec='${libname}${release}${shared_ext}$major' cannam@86: shlibpath_var=LD_LIBRARY_PATH cannam@86: ;; cannam@86: cannam@86: freebsd1*) cannam@86: dynamic_linker=no cannam@86: ;; cannam@86: cannam@86: kfreebsd*-gnu) cannam@86: version_type=linux cannam@86: need_lib_prefix=no cannam@86: need_version=no cannam@86: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' cannam@86: soname_spec='${libname}${release}${shared_ext}$major' cannam@86: shlibpath_var=LD_LIBRARY_PATH cannam@86: shlibpath_overrides_runpath=no cannam@86: hardcode_into_libs=yes cannam@86: dynamic_linker='GNU ld.so' cannam@86: ;; cannam@86: cannam@86: freebsd* | dragonfly*) cannam@86: # DragonFly does not have aout. When/if they implement a new cannam@86: # versioning mechanism, adjust this. cannam@86: objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` cannam@86: version_type=freebsd-$objformat cannam@86: case $version_type in cannam@86: freebsd-elf*) cannam@86: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' cannam@86: need_version=no cannam@86: need_lib_prefix=no cannam@86: ;; cannam@86: freebsd-*) cannam@86: library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' cannam@86: need_version=yes cannam@86: ;; cannam@86: esac cannam@86: shlibpath_var=LD_LIBRARY_PATH cannam@86: case $host_os in cannam@86: freebsd2*) cannam@86: shlibpath_overrides_runpath=yes cannam@86: ;; cannam@86: freebsd3.[01]* | freebsdelf3.[01]*) cannam@86: shlibpath_overrides_runpath=yes cannam@86: hardcode_into_libs=yes cannam@86: ;; cannam@86: *) # from 3.2 on cannam@86: shlibpath_overrides_runpath=no cannam@86: hardcode_into_libs=yes cannam@86: ;; cannam@86: esac cannam@86: ;; cannam@86: cannam@86: gnu*) cannam@86: version_type=linux cannam@86: need_lib_prefix=no cannam@86: need_version=no cannam@86: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' cannam@86: soname_spec='${libname}${release}${shared_ext}$major' cannam@86: shlibpath_var=LD_LIBRARY_PATH cannam@86: hardcode_into_libs=yes cannam@86: ;; cannam@86: cannam@86: hpux9* | hpux10* | hpux11*) cannam@86: # Give a soname corresponding to the major version so that dld.sl refuses to cannam@86: # link against other versions. cannam@86: version_type=sunos cannam@86: need_lib_prefix=no cannam@86: need_version=no cannam@86: case "$host_cpu" in cannam@86: ia64*) cannam@86: shrext_cmds='.so' cannam@86: hardcode_into_libs=yes cannam@86: dynamic_linker="$host_os dld.so" cannam@86: shlibpath_var=LD_LIBRARY_PATH cannam@86: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. cannam@86: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' cannam@86: soname_spec='${libname}${release}${shared_ext}$major' cannam@86: if test "X$HPUX_IA64_MODE" = X32; then cannam@86: sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" cannam@86: else cannam@86: sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" cannam@86: fi cannam@86: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec cannam@86: ;; cannam@86: hppa*64*) cannam@86: shrext_cmds='.sl' cannam@86: hardcode_into_libs=yes cannam@86: dynamic_linker="$host_os dld.sl" cannam@86: shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH cannam@86: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. cannam@86: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' cannam@86: soname_spec='${libname}${release}${shared_ext}$major' cannam@86: sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" cannam@86: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec cannam@86: ;; cannam@86: *) cannam@86: shrext_cmds='.sl' cannam@86: dynamic_linker="$host_os dld.sl" cannam@86: shlibpath_var=SHLIB_PATH cannam@86: shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH cannam@86: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' cannam@86: soname_spec='${libname}${release}${shared_ext}$major' cannam@86: ;; cannam@86: esac cannam@86: # HP-UX runs *really* slowly unless shared libraries are mode 555. cannam@86: postinstall_cmds='chmod 555 $lib' cannam@86: ;; cannam@86: cannam@86: irix5* | irix6* | nonstopux*) cannam@86: case $host_os in cannam@86: nonstopux*) version_type=nonstopux ;; cannam@86: *) cannam@86: if test "$lt_cv_prog_gnu_ld" = yes; then cannam@86: version_type=linux cannam@86: else cannam@86: version_type=irix cannam@86: fi ;; cannam@86: esac cannam@86: need_lib_prefix=no cannam@86: need_version=no cannam@86: soname_spec='${libname}${release}${shared_ext}$major' cannam@86: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' cannam@86: case $host_os in cannam@86: irix5* | nonstopux*) cannam@86: libsuff= shlibsuff= cannam@86: ;; cannam@86: *) cannam@86: case $LD in # libtool.m4 will add one of these switches to LD cannam@86: *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") cannam@86: libsuff= shlibsuff= libmagic=32-bit;; cannam@86: *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") cannam@86: libsuff=32 shlibsuff=N32 libmagic=N32;; cannam@86: *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") cannam@86: libsuff=64 shlibsuff=64 libmagic=64-bit;; cannam@86: *) libsuff= shlibsuff= libmagic=never-match;; cannam@86: esac cannam@86: ;; cannam@86: esac cannam@86: shlibpath_var=LD_LIBRARY${shlibsuff}_PATH cannam@86: shlibpath_overrides_runpath=no cannam@86: sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" cannam@86: sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" cannam@86: hardcode_into_libs=yes cannam@86: ;; cannam@86: cannam@86: # No shared lib support for Linux oldld, aout, or coff. cannam@86: linux*oldld* | linux*aout* | linux*coff*) cannam@86: dynamic_linker=no cannam@86: ;; cannam@86: cannam@86: # This must be Linux ELF. cannam@86: linux*) cannam@86: version_type=linux cannam@86: need_lib_prefix=no cannam@86: need_version=no cannam@86: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' cannam@86: soname_spec='${libname}${release}${shared_ext}$major' cannam@86: finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' cannam@86: shlibpath_var=LD_LIBRARY_PATH cannam@86: shlibpath_overrides_runpath=no cannam@86: # This implies no fast_install, which is unacceptable. cannam@86: # Some rework will be needed to allow for fast_install cannam@86: # before this can be enabled. cannam@86: hardcode_into_libs=yes cannam@86: cannam@86: # find out which ABI we are using cannam@86: libsuff= cannam@86: case "$host_cpu" in cannam@86: x86_64*|s390x*|powerpc64*) cannam@86: echo '#line 8044 "configure"' > conftest.$ac_ext cannam@86: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 cannam@86: (eval $ac_compile) 2>&5 cannam@86: ac_status=$? cannam@86: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@86: (exit $ac_status); }; then cannam@86: case `/usr/bin/file conftest.$ac_objext` in cannam@86: *64-bit*) cannam@86: libsuff=64 cannam@86: sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}" cannam@86: ;; cannam@86: esac cannam@86: fi cannam@86: rm -rf conftest* cannam@86: ;; cannam@86: esac cannam@86: cannam@86: # Append ld.so.conf contents to the search path cannam@86: if test -f /etc/ld.so.conf; then cannam@86: lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,\t]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` cannam@86: sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra" cannam@86: fi cannam@86: cannam@86: # We used to test for /lib/ld.so.1 and disable shared libraries on cannam@86: # powerpc, because MkLinux only supported shared libraries with the cannam@86: # GNU dynamic linker. Since this was broken with cross compilers, cannam@86: # most powerpc-linux boxes support dynamic linking these days and cannam@86: # people can always --disable-shared, the test was removed, and we cannam@86: # assume the GNU/Linux dynamic linker is in use. cannam@86: dynamic_linker='GNU/Linux ld.so' cannam@86: ;; cannam@86: cannam@86: knetbsd*-gnu) cannam@86: version_type=linux cannam@86: need_lib_prefix=no cannam@86: need_version=no cannam@86: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' cannam@86: soname_spec='${libname}${release}${shared_ext}$major' cannam@86: shlibpath_var=LD_LIBRARY_PATH cannam@86: shlibpath_overrides_runpath=no cannam@86: hardcode_into_libs=yes cannam@86: dynamic_linker='GNU ld.so' cannam@86: ;; cannam@86: cannam@86: netbsd*) cannam@86: version_type=sunos cannam@86: need_lib_prefix=no cannam@86: need_version=no cannam@86: if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then cannam@86: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' cannam@86: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' cannam@86: dynamic_linker='NetBSD (a.out) ld.so' cannam@86: else cannam@86: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' cannam@86: soname_spec='${libname}${release}${shared_ext}$major' cannam@86: dynamic_linker='NetBSD ld.elf_so' cannam@86: fi cannam@86: shlibpath_var=LD_LIBRARY_PATH cannam@86: shlibpath_overrides_runpath=yes cannam@86: hardcode_into_libs=yes cannam@86: ;; cannam@86: cannam@86: newsos6) cannam@86: version_type=linux cannam@86: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' cannam@86: shlibpath_var=LD_LIBRARY_PATH cannam@86: shlibpath_overrides_runpath=yes cannam@86: ;; cannam@86: cannam@86: nto-qnx*) cannam@86: version_type=linux cannam@86: need_lib_prefix=no cannam@86: need_version=no cannam@86: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' cannam@86: soname_spec='${libname}${release}${shared_ext}$major' cannam@86: shlibpath_var=LD_LIBRARY_PATH cannam@86: shlibpath_overrides_runpath=yes cannam@86: ;; cannam@86: cannam@86: openbsd*) cannam@86: version_type=sunos cannam@86: need_lib_prefix=no cannam@86: need_version=no cannam@86: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' cannam@86: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' cannam@86: shlibpath_var=LD_LIBRARY_PATH cannam@86: if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then cannam@86: case $host_os in cannam@86: openbsd2.[89] | openbsd2.[89].*) cannam@86: shlibpath_overrides_runpath=no cannam@86: ;; cannam@86: *) cannam@86: shlibpath_overrides_runpath=yes cannam@86: ;; cannam@86: esac cannam@86: else cannam@86: shlibpath_overrides_runpath=yes cannam@86: fi cannam@86: ;; cannam@86: cannam@86: os2*) cannam@86: libname_spec='$name' cannam@86: shrext_cmds=".dll" cannam@86: need_lib_prefix=no cannam@86: library_names_spec='$libname${shared_ext} $libname.a' cannam@86: dynamic_linker='OS/2 ld.exe' cannam@86: shlibpath_var=LIBPATH cannam@86: ;; cannam@86: cannam@86: osf3* | osf4* | osf5*) cannam@86: version_type=osf cannam@86: need_lib_prefix=no cannam@86: need_version=no cannam@86: soname_spec='${libname}${release}${shared_ext}$major' cannam@86: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' cannam@86: shlibpath_var=LD_LIBRARY_PATH cannam@86: sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" cannam@86: sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" cannam@86: ;; cannam@86: cannam@86: sco3.2v5*) cannam@86: version_type=osf cannam@86: soname_spec='${libname}${release}${shared_ext}$major' cannam@86: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' cannam@86: shlibpath_var=LD_LIBRARY_PATH cannam@86: ;; cannam@86: cannam@86: solaris*) cannam@86: version_type=linux cannam@86: need_lib_prefix=no cannam@86: need_version=no cannam@86: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' cannam@86: soname_spec='${libname}${release}${shared_ext}$major' cannam@86: shlibpath_var=LD_LIBRARY_PATH cannam@86: shlibpath_overrides_runpath=yes cannam@86: hardcode_into_libs=yes cannam@86: # ldd complains unless libraries are executable cannam@86: postinstall_cmds='chmod +x $lib' cannam@86: ;; cannam@86: cannam@86: sunos4*) cannam@86: version_type=sunos cannam@86: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' cannam@86: finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' cannam@86: shlibpath_var=LD_LIBRARY_PATH cannam@86: shlibpath_overrides_runpath=yes cannam@86: if test "$with_gnu_ld" = yes; then cannam@86: need_lib_prefix=no cannam@86: fi cannam@86: need_version=yes cannam@86: ;; cannam@86: cannam@86: sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) cannam@86: version_type=linux cannam@86: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' cannam@86: soname_spec='${libname}${release}${shared_ext}$major' cannam@86: shlibpath_var=LD_LIBRARY_PATH cannam@86: case $host_vendor in cannam@86: sni) cannam@86: shlibpath_overrides_runpath=no cannam@86: need_lib_prefix=no cannam@86: export_dynamic_flag_spec='${wl}-Blargedynsym' cannam@86: runpath_var=LD_RUN_PATH cannam@86: ;; cannam@86: siemens) cannam@86: need_lib_prefix=no cannam@86: ;; cannam@86: motorola) cannam@86: need_lib_prefix=no cannam@86: need_version=no cannam@86: shlibpath_overrides_runpath=no cannam@86: sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' cannam@86: ;; cannam@86: esac cannam@86: ;; cannam@86: cannam@86: sysv4*MP*) cannam@86: if test -d /usr/nec ;then cannam@86: version_type=linux cannam@86: library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' cannam@86: soname_spec='$libname${shared_ext}.$major' cannam@86: shlibpath_var=LD_LIBRARY_PATH cannam@86: fi cannam@86: ;; cannam@86: cannam@86: uts4*) cannam@86: version_type=linux cannam@86: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' cannam@86: soname_spec='${libname}${release}${shared_ext}$major' cannam@86: shlibpath_var=LD_LIBRARY_PATH cannam@86: ;; cannam@86: cannam@86: *) cannam@86: dynamic_linker=no cannam@86: ;; cannam@86: esac cannam@86: echo "$as_me:$LINENO: result: $dynamic_linker" >&5 cannam@86: echo "${ECHO_T}$dynamic_linker" >&6 cannam@86: test "$dynamic_linker" = no && can_build_shared=no cannam@86: cannam@86: echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 cannam@86: echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 cannam@86: hardcode_action= cannam@86: if test -n "$hardcode_libdir_flag_spec" || \ cannam@86: test -n "$runpath_var" || \ cannam@86: test "X$hardcode_automatic" = "Xyes" ; then cannam@86: cannam@86: # We can hardcode non-existant directories. cannam@86: if test "$hardcode_direct" != no && cannam@86: # If the only mechanism to avoid hardcoding is shlibpath_var, we cannam@86: # have to relink, otherwise we might link with an installed library cannam@86: # when we should be linking with a yet-to-be-installed one cannam@86: ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no && cannam@86: test "$hardcode_minus_L" != no; then cannam@86: # Linking always hardcodes the temporary library directory. cannam@86: hardcode_action=relink cannam@86: else cannam@86: # We can link without hardcoding, and we can hardcode nonexisting dirs. cannam@86: hardcode_action=immediate cannam@86: fi cannam@86: else cannam@86: # We cannot hardcode anything, or else we can only hardcode existing cannam@86: # directories. cannam@86: hardcode_action=unsupported cannam@86: fi cannam@86: echo "$as_me:$LINENO: result: $hardcode_action" >&5 cannam@86: echo "${ECHO_T}$hardcode_action" >&6 cannam@86: cannam@86: if test "$hardcode_action" = relink; then cannam@86: # Fast installation is not supported cannam@86: enable_fast_install=no cannam@86: elif test "$shlibpath_overrides_runpath" = yes || cannam@86: test "$enable_shared" = no; then cannam@86: # Fast installation is not necessary cannam@86: enable_fast_install=needless cannam@86: fi cannam@86: cannam@86: striplib= cannam@86: old_striplib= cannam@86: echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 cannam@86: echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 cannam@86: if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then cannam@86: test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" cannam@86: test -z "$striplib" && striplib="$STRIP --strip-unneeded" cannam@86: echo "$as_me:$LINENO: result: yes" >&5 cannam@86: echo "${ECHO_T}yes" >&6 cannam@86: else cannam@86: # FIXME - insert some real tests, host_os isn't really good enough cannam@86: case $host_os in cannam@86: darwin*) cannam@86: if test -n "$STRIP" ; then cannam@86: striplib="$STRIP -x" cannam@86: echo "$as_me:$LINENO: result: yes" >&5 cannam@86: echo "${ECHO_T}yes" >&6 cannam@86: else cannam@86: echo "$as_me:$LINENO: result: no" >&5 cannam@86: echo "${ECHO_T}no" >&6 cannam@86: fi cannam@86: ;; cannam@86: *) cannam@86: echo "$as_me:$LINENO: result: no" >&5 cannam@86: echo "${ECHO_T}no" >&6 cannam@86: ;; cannam@86: esac cannam@86: fi cannam@86: cannam@86: if test "x$enable_dlopen" != xyes; then cannam@86: enable_dlopen=unknown cannam@86: enable_dlopen_self=unknown cannam@86: enable_dlopen_self_static=unknown cannam@86: else cannam@86: lt_cv_dlopen=no cannam@86: lt_cv_dlopen_libs= cannam@86: cannam@86: case $host_os in cannam@86: beos*) cannam@86: lt_cv_dlopen="load_add_on" cannam@86: lt_cv_dlopen_libs= cannam@86: lt_cv_dlopen_self=yes cannam@86: ;; cannam@86: cannam@86: mingw* | pw32*) cannam@86: lt_cv_dlopen="LoadLibrary" cannam@86: lt_cv_dlopen_libs= cannam@86: ;; cannam@86: cannam@86: cygwin*) cannam@86: lt_cv_dlopen="dlopen" cannam@86: lt_cv_dlopen_libs= cannam@86: ;; cannam@86: cannam@86: darwin*) cannam@86: # if libdl is installed we need to link against it cannam@86: echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 cannam@86: echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 cannam@86: if test "${ac_cv_lib_dl_dlopen+set}" = set; then cannam@86: echo $ECHO_N "(cached) $ECHO_C" >&6 cannam@86: else cannam@86: ac_check_lib_save_LIBS=$LIBS cannam@86: LIBS="-ldl $LIBS" cannam@86: cat >conftest.$ac_ext <<_ACEOF cannam@86: /* confdefs.h. */ cannam@86: _ACEOF cannam@86: cat confdefs.h >>conftest.$ac_ext cannam@86: cat >>conftest.$ac_ext <<_ACEOF cannam@86: /* end confdefs.h. */ cannam@86: cannam@86: /* Override any gcc2 internal prototype to avoid an error. */ cannam@86: #ifdef __cplusplus cannam@86: extern "C" cannam@86: #endif cannam@86: /* We use char because int might match the return type of a gcc2 cannam@86: builtin and then its argument prototype would still apply. */ cannam@86: char dlopen (); cannam@86: int cannam@86: main () cannam@86: { cannam@86: dlopen (); cannam@86: ; cannam@86: return 0; cannam@86: } cannam@86: _ACEOF cannam@86: rm -f conftest.$ac_objext conftest$ac_exeext cannam@86: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 cannam@86: (eval $ac_link) 2>conftest.er1 cannam@86: ac_status=$? cannam@86: grep -v '^ *+' conftest.er1 >conftest.err cannam@86: rm -f conftest.er1 cannam@86: cat conftest.err >&5 cannam@86: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@86: (exit $ac_status); } && cannam@86: { ac_try='test -z "$ac_c_werror_flag" cannam@86: || test ! -s conftest.err' cannam@86: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 cannam@86: (eval $ac_try) 2>&5 cannam@86: ac_status=$? cannam@86: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@86: (exit $ac_status); }; } && cannam@86: { ac_try='test -s conftest$ac_exeext' cannam@86: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 cannam@86: (eval $ac_try) 2>&5 cannam@86: ac_status=$? cannam@86: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@86: (exit $ac_status); }; }; then cannam@86: ac_cv_lib_dl_dlopen=yes cannam@86: else cannam@86: echo "$as_me: failed program was:" >&5 cannam@86: sed 's/^/| /' conftest.$ac_ext >&5 cannam@86: cannam@86: ac_cv_lib_dl_dlopen=no cannam@86: fi cannam@86: rm -f conftest.err conftest.$ac_objext \ cannam@86: conftest$ac_exeext conftest.$ac_ext cannam@86: LIBS=$ac_check_lib_save_LIBS cannam@86: fi cannam@86: echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 cannam@86: echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 cannam@86: if test $ac_cv_lib_dl_dlopen = yes; then cannam@86: lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" cannam@86: else cannam@86: cannam@86: lt_cv_dlopen="dyld" cannam@86: lt_cv_dlopen_libs= cannam@86: lt_cv_dlopen_self=yes cannam@86: cannam@86: fi cannam@86: cannam@86: ;; cannam@86: cannam@86: *) cannam@86: echo "$as_me:$LINENO: checking for shl_load" >&5 cannam@86: echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 cannam@86: if test "${ac_cv_func_shl_load+set}" = set; then cannam@86: echo $ECHO_N "(cached) $ECHO_C" >&6 cannam@86: else cannam@86: cat >conftest.$ac_ext <<_ACEOF cannam@86: /* confdefs.h. */ cannam@86: _ACEOF cannam@86: cat confdefs.h >>conftest.$ac_ext cannam@86: cat >>conftest.$ac_ext <<_ACEOF cannam@86: /* end confdefs.h. */ cannam@86: /* Define shl_load to an innocuous variant, in case declares shl_load. cannam@86: For example, HP-UX 11i declares gettimeofday. */ cannam@86: #define shl_load innocuous_shl_load cannam@86: cannam@86: /* System header to define __stub macros and hopefully few prototypes, cannam@86: which can conflict with char shl_load (); below. cannam@86: Prefer to if __STDC__ is defined, since cannam@86: exists even on freestanding compilers. */ cannam@86: cannam@86: #ifdef __STDC__ cannam@86: # include cannam@86: #else cannam@86: # include cannam@86: #endif cannam@86: cannam@86: #undef shl_load cannam@86: cannam@86: /* Override any gcc2 internal prototype to avoid an error. */ cannam@86: #ifdef __cplusplus cannam@86: extern "C" cannam@86: { cannam@86: #endif cannam@86: /* We use char because int might match the return type of a gcc2 cannam@86: builtin and then its argument prototype would still apply. */ cannam@86: char shl_load (); cannam@86: /* The GNU C library defines this for functions which it implements cannam@86: to always fail with ENOSYS. Some functions are actually named cannam@86: something starting with __ and the normal name is an alias. */ cannam@86: #if defined (__stub_shl_load) || defined (__stub___shl_load) cannam@86: choke me cannam@86: #else cannam@86: char (*f) () = shl_load; cannam@86: #endif cannam@86: #ifdef __cplusplus cannam@86: } cannam@86: #endif cannam@86: cannam@86: int cannam@86: main () cannam@86: { cannam@86: return f != shl_load; cannam@86: ; cannam@86: return 0; cannam@86: } cannam@86: _ACEOF cannam@86: rm -f conftest.$ac_objext conftest$ac_exeext cannam@86: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 cannam@86: (eval $ac_link) 2>conftest.er1 cannam@86: ac_status=$? cannam@86: grep -v '^ *+' conftest.er1 >conftest.err cannam@86: rm -f conftest.er1 cannam@86: cat conftest.err >&5 cannam@86: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@86: (exit $ac_status); } && cannam@86: { ac_try='test -z "$ac_c_werror_flag" cannam@86: || test ! -s conftest.err' cannam@86: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 cannam@86: (eval $ac_try) 2>&5 cannam@86: ac_status=$? cannam@86: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@86: (exit $ac_status); }; } && cannam@86: { ac_try='test -s conftest$ac_exeext' cannam@86: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 cannam@86: (eval $ac_try) 2>&5 cannam@86: ac_status=$? cannam@86: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@86: (exit $ac_status); }; }; then cannam@86: ac_cv_func_shl_load=yes cannam@86: else cannam@86: echo "$as_me: failed program was:" >&5 cannam@86: sed 's/^/| /' conftest.$ac_ext >&5 cannam@86: cannam@86: ac_cv_func_shl_load=no cannam@86: fi cannam@86: rm -f conftest.err conftest.$ac_objext \ cannam@86: conftest$ac_exeext conftest.$ac_ext cannam@86: fi cannam@86: echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 cannam@86: echo "${ECHO_T}$ac_cv_func_shl_load" >&6 cannam@86: if test $ac_cv_func_shl_load = yes; then cannam@86: lt_cv_dlopen="shl_load" cannam@86: else cannam@86: echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 cannam@86: echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 cannam@86: if test "${ac_cv_lib_dld_shl_load+set}" = set; then cannam@86: echo $ECHO_N "(cached) $ECHO_C" >&6 cannam@86: else cannam@86: ac_check_lib_save_LIBS=$LIBS cannam@86: LIBS="-ldld $LIBS" cannam@86: cat >conftest.$ac_ext <<_ACEOF cannam@86: /* confdefs.h. */ cannam@86: _ACEOF cannam@86: cat confdefs.h >>conftest.$ac_ext cannam@86: cat >>conftest.$ac_ext <<_ACEOF cannam@86: /* end confdefs.h. */ cannam@86: cannam@86: /* Override any gcc2 internal prototype to avoid an error. */ cannam@86: #ifdef __cplusplus cannam@86: extern "C" cannam@86: #endif cannam@86: /* We use char because int might match the return type of a gcc2 cannam@86: builtin and then its argument prototype would still apply. */ cannam@86: char shl_load (); cannam@86: int cannam@86: main () cannam@86: { cannam@86: shl_load (); cannam@86: ; cannam@86: return 0; cannam@86: } cannam@86: _ACEOF cannam@86: rm -f conftest.$ac_objext conftest$ac_exeext cannam@86: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 cannam@86: (eval $ac_link) 2>conftest.er1 cannam@86: ac_status=$? cannam@86: grep -v '^ *+' conftest.er1 >conftest.err cannam@86: rm -f conftest.er1 cannam@86: cat conftest.err >&5 cannam@86: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@86: (exit $ac_status); } && cannam@86: { ac_try='test -z "$ac_c_werror_flag" cannam@86: || test ! -s conftest.err' cannam@86: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 cannam@86: (eval $ac_try) 2>&5 cannam@86: ac_status=$? cannam@86: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@86: (exit $ac_status); }; } && cannam@86: { ac_try='test -s conftest$ac_exeext' cannam@86: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 cannam@86: (eval $ac_try) 2>&5 cannam@86: ac_status=$? cannam@86: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@86: (exit $ac_status); }; }; then cannam@86: ac_cv_lib_dld_shl_load=yes cannam@86: else cannam@86: echo "$as_me: failed program was:" >&5 cannam@86: sed 's/^/| /' conftest.$ac_ext >&5 cannam@86: cannam@86: ac_cv_lib_dld_shl_load=no cannam@86: fi cannam@86: rm -f conftest.err conftest.$ac_objext \ cannam@86: conftest$ac_exeext conftest.$ac_ext cannam@86: LIBS=$ac_check_lib_save_LIBS cannam@86: fi cannam@86: echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 cannam@86: echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 cannam@86: if test $ac_cv_lib_dld_shl_load = yes; then cannam@86: lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" cannam@86: else cannam@86: echo "$as_me:$LINENO: checking for dlopen" >&5 cannam@86: echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 cannam@86: if test "${ac_cv_func_dlopen+set}" = set; then cannam@86: echo $ECHO_N "(cached) $ECHO_C" >&6 cannam@86: else cannam@86: cat >conftest.$ac_ext <<_ACEOF cannam@86: /* confdefs.h. */ cannam@86: _ACEOF cannam@86: cat confdefs.h >>conftest.$ac_ext cannam@86: cat >>conftest.$ac_ext <<_ACEOF cannam@86: /* end confdefs.h. */ cannam@86: /* Define dlopen to an innocuous variant, in case declares dlopen. cannam@86: For example, HP-UX 11i declares gettimeofday. */ cannam@86: #define dlopen innocuous_dlopen cannam@86: cannam@86: /* System header to define __stub macros and hopefully few prototypes, cannam@86: which can conflict with char dlopen (); below. cannam@86: Prefer to if __STDC__ is defined, since cannam@86: exists even on freestanding compilers. */ cannam@86: cannam@86: #ifdef __STDC__ cannam@86: # include cannam@86: #else cannam@86: # include cannam@86: #endif cannam@86: cannam@86: #undef dlopen cannam@86: cannam@86: /* Override any gcc2 internal prototype to avoid an error. */ cannam@86: #ifdef __cplusplus cannam@86: extern "C" cannam@86: { cannam@86: #endif cannam@86: /* We use char because int might match the return type of a gcc2 cannam@86: builtin and then its argument prototype would still apply. */ cannam@86: char dlopen (); cannam@86: /* The GNU C library defines this for functions which it implements cannam@86: to always fail with ENOSYS. Some functions are actually named cannam@86: something starting with __ and the normal name is an alias. */ cannam@86: #if defined (__stub_dlopen) || defined (__stub___dlopen) cannam@86: choke me cannam@86: #else cannam@86: char (*f) () = dlopen; cannam@86: #endif cannam@86: #ifdef __cplusplus cannam@86: } cannam@86: #endif cannam@86: cannam@86: int cannam@86: main () cannam@86: { cannam@86: return f != dlopen; cannam@86: ; cannam@86: return 0; cannam@86: } cannam@86: _ACEOF cannam@86: rm -f conftest.$ac_objext conftest$ac_exeext cannam@86: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 cannam@86: (eval $ac_link) 2>conftest.er1 cannam@86: ac_status=$? cannam@86: grep -v '^ *+' conftest.er1 >conftest.err cannam@86: rm -f conftest.er1 cannam@86: cat conftest.err >&5 cannam@86: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@86: (exit $ac_status); } && cannam@86: { ac_try='test -z "$ac_c_werror_flag" cannam@86: || test ! -s conftest.err' cannam@86: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 cannam@86: (eval $ac_try) 2>&5 cannam@86: ac_status=$? cannam@86: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@86: (exit $ac_status); }; } && cannam@86: { ac_try='test -s conftest$ac_exeext' cannam@86: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 cannam@86: (eval $ac_try) 2>&5 cannam@86: ac_status=$? cannam@86: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@86: (exit $ac_status); }; }; then cannam@86: ac_cv_func_dlopen=yes cannam@86: else cannam@86: echo "$as_me: failed program was:" >&5 cannam@86: sed 's/^/| /' conftest.$ac_ext >&5 cannam@86: cannam@86: ac_cv_func_dlopen=no cannam@86: fi cannam@86: rm -f conftest.err conftest.$ac_objext \ cannam@86: conftest$ac_exeext conftest.$ac_ext cannam@86: fi cannam@86: echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 cannam@86: echo "${ECHO_T}$ac_cv_func_dlopen" >&6 cannam@86: if test $ac_cv_func_dlopen = yes; then cannam@86: lt_cv_dlopen="dlopen" cannam@86: else cannam@86: echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 cannam@86: echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 cannam@86: if test "${ac_cv_lib_dl_dlopen+set}" = set; then cannam@86: echo $ECHO_N "(cached) $ECHO_C" >&6 cannam@86: else cannam@86: ac_check_lib_save_LIBS=$LIBS cannam@86: LIBS="-ldl $LIBS" cannam@86: cat >conftest.$ac_ext <<_ACEOF cannam@86: /* confdefs.h. */ cannam@86: _ACEOF cannam@86: cat confdefs.h >>conftest.$ac_ext cannam@86: cat >>conftest.$ac_ext <<_ACEOF cannam@86: /* end confdefs.h. */ cannam@86: cannam@86: /* Override any gcc2 internal prototype to avoid an error. */ cannam@86: #ifdef __cplusplus cannam@86: extern "C" cannam@86: #endif cannam@86: /* We use char because int might match the return type of a gcc2 cannam@86: builtin and then its argument prototype would still apply. */ cannam@86: char dlopen (); cannam@86: int cannam@86: main () cannam@86: { cannam@86: dlopen (); cannam@86: ; cannam@86: return 0; cannam@86: } cannam@86: _ACEOF cannam@86: rm -f conftest.$ac_objext conftest$ac_exeext cannam@86: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 cannam@86: (eval $ac_link) 2>conftest.er1 cannam@86: ac_status=$? cannam@86: grep -v '^ *+' conftest.er1 >conftest.err cannam@86: rm -f conftest.er1 cannam@86: cat conftest.err >&5 cannam@86: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@86: (exit $ac_status); } && cannam@86: { ac_try='test -z "$ac_c_werror_flag" cannam@86: || test ! -s conftest.err' cannam@86: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 cannam@86: (eval $ac_try) 2>&5 cannam@86: ac_status=$? cannam@86: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@86: (exit $ac_status); }; } && cannam@86: { ac_try='test -s conftest$ac_exeext' cannam@86: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 cannam@86: (eval $ac_try) 2>&5 cannam@86: ac_status=$? cannam@86: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@86: (exit $ac_status); }; }; then cannam@86: ac_cv_lib_dl_dlopen=yes cannam@86: else cannam@86: echo "$as_me: failed program was:" >&5 cannam@86: sed 's/^/| /' conftest.$ac_ext >&5 cannam@86: cannam@86: ac_cv_lib_dl_dlopen=no cannam@86: fi cannam@86: rm -f conftest.err conftest.$ac_objext \ cannam@86: conftest$ac_exeext conftest.$ac_ext cannam@86: LIBS=$ac_check_lib_save_LIBS cannam@86: fi cannam@86: echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 cannam@86: echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 cannam@86: if test $ac_cv_lib_dl_dlopen = yes; then cannam@86: lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" cannam@86: else cannam@86: echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 cannam@86: echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 cannam@86: if test "${ac_cv_lib_svld_dlopen+set}" = set; then cannam@86: echo $ECHO_N "(cached) $ECHO_C" >&6 cannam@86: else cannam@86: ac_check_lib_save_LIBS=$LIBS cannam@86: LIBS="-lsvld $LIBS" cannam@86: cat >conftest.$ac_ext <<_ACEOF cannam@86: /* confdefs.h. */ cannam@86: _ACEOF cannam@86: cat confdefs.h >>conftest.$ac_ext cannam@86: cat >>conftest.$ac_ext <<_ACEOF cannam@86: /* end confdefs.h. */ cannam@86: cannam@86: /* Override any gcc2 internal prototype to avoid an error. */ cannam@86: #ifdef __cplusplus cannam@86: extern "C" cannam@86: #endif cannam@86: /* We use char because int might match the return type of a gcc2 cannam@86: builtin and then its argument prototype would still apply. */ cannam@86: char dlopen (); cannam@86: int cannam@86: main () cannam@86: { cannam@86: dlopen (); cannam@86: ; cannam@86: return 0; cannam@86: } cannam@86: _ACEOF cannam@86: rm -f conftest.$ac_objext conftest$ac_exeext cannam@86: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 cannam@86: (eval $ac_link) 2>conftest.er1 cannam@86: ac_status=$? cannam@86: grep -v '^ *+' conftest.er1 >conftest.err cannam@86: rm -f conftest.er1 cannam@86: cat conftest.err >&5 cannam@86: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@86: (exit $ac_status); } && cannam@86: { ac_try='test -z "$ac_c_werror_flag" cannam@86: || test ! -s conftest.err' cannam@86: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 cannam@86: (eval $ac_try) 2>&5 cannam@86: ac_status=$? cannam@86: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@86: (exit $ac_status); }; } && cannam@86: { ac_try='test -s conftest$ac_exeext' cannam@86: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 cannam@86: (eval $ac_try) 2>&5 cannam@86: ac_status=$? cannam@86: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@86: (exit $ac_status); }; }; then cannam@86: ac_cv_lib_svld_dlopen=yes cannam@86: else cannam@86: echo "$as_me: failed program was:" >&5 cannam@86: sed 's/^/| /' conftest.$ac_ext >&5 cannam@86: cannam@86: ac_cv_lib_svld_dlopen=no cannam@86: fi cannam@86: rm -f conftest.err conftest.$ac_objext \ cannam@86: conftest$ac_exeext conftest.$ac_ext cannam@86: LIBS=$ac_check_lib_save_LIBS cannam@86: fi cannam@86: echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 cannam@86: echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 cannam@86: if test $ac_cv_lib_svld_dlopen = yes; then cannam@86: lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" cannam@86: else cannam@86: echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 cannam@86: echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 cannam@86: if test "${ac_cv_lib_dld_dld_link+set}" = set; then cannam@86: echo $ECHO_N "(cached) $ECHO_C" >&6 cannam@86: else cannam@86: ac_check_lib_save_LIBS=$LIBS cannam@86: LIBS="-ldld $LIBS" cannam@86: cat >conftest.$ac_ext <<_ACEOF cannam@86: /* confdefs.h. */ cannam@86: _ACEOF cannam@86: cat confdefs.h >>conftest.$ac_ext cannam@86: cat >>conftest.$ac_ext <<_ACEOF cannam@86: /* end confdefs.h. */ cannam@86: cannam@86: /* Override any gcc2 internal prototype to avoid an error. */ cannam@86: #ifdef __cplusplus cannam@86: extern "C" cannam@86: #endif cannam@86: /* We use char because int might match the return type of a gcc2 cannam@86: builtin and then its argument prototype would still apply. */ cannam@86: char dld_link (); cannam@86: int cannam@86: main () cannam@86: { cannam@86: dld_link (); cannam@86: ; cannam@86: return 0; cannam@86: } cannam@86: _ACEOF cannam@86: rm -f conftest.$ac_objext conftest$ac_exeext cannam@86: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 cannam@86: (eval $ac_link) 2>conftest.er1 cannam@86: ac_status=$? cannam@86: grep -v '^ *+' conftest.er1 >conftest.err cannam@86: rm -f conftest.er1 cannam@86: cat conftest.err >&5 cannam@86: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@86: (exit $ac_status); } && cannam@86: { ac_try='test -z "$ac_c_werror_flag" cannam@86: || test ! -s conftest.err' cannam@86: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 cannam@86: (eval $ac_try) 2>&5 cannam@86: ac_status=$? cannam@86: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@86: (exit $ac_status); }; } && cannam@86: { ac_try='test -s conftest$ac_exeext' cannam@86: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 cannam@86: (eval $ac_try) 2>&5 cannam@86: ac_status=$? cannam@86: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@86: (exit $ac_status); }; }; then cannam@86: ac_cv_lib_dld_dld_link=yes cannam@86: else cannam@86: echo "$as_me: failed program was:" >&5 cannam@86: sed 's/^/| /' conftest.$ac_ext >&5 cannam@86: cannam@86: ac_cv_lib_dld_dld_link=no cannam@86: fi cannam@86: rm -f conftest.err conftest.$ac_objext \ cannam@86: conftest$ac_exeext conftest.$ac_ext cannam@86: LIBS=$ac_check_lib_save_LIBS cannam@86: fi cannam@86: echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 cannam@86: echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 cannam@86: if test $ac_cv_lib_dld_dld_link = yes; then cannam@86: lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" cannam@86: fi cannam@86: cannam@86: cannam@86: fi cannam@86: cannam@86: cannam@86: fi cannam@86: cannam@86: cannam@86: fi cannam@86: cannam@86: cannam@86: fi cannam@86: cannam@86: cannam@86: fi cannam@86: cannam@86: ;; cannam@86: esac cannam@86: cannam@86: if test "x$lt_cv_dlopen" != xno; then cannam@86: enable_dlopen=yes cannam@86: else cannam@86: enable_dlopen=no cannam@86: fi cannam@86: cannam@86: case $lt_cv_dlopen in cannam@86: dlopen) cannam@86: save_CPPFLAGS="$CPPFLAGS" cannam@86: test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" cannam@86: cannam@86: save_LDFLAGS="$LDFLAGS" cannam@86: eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" cannam@86: cannam@86: save_LIBS="$LIBS" cannam@86: LIBS="$lt_cv_dlopen_libs $LIBS" cannam@86: cannam@86: echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 cannam@86: echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 cannam@86: if test "${lt_cv_dlopen_self+set}" = set; then cannam@86: echo $ECHO_N "(cached) $ECHO_C" >&6 cannam@86: else cannam@86: if test "$cross_compiling" = yes; then : cannam@86: lt_cv_dlopen_self=cross cannam@86: else cannam@86: lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 cannam@86: lt_status=$lt_dlunknown cannam@86: cat > conftest.$ac_ext < cannam@86: #endif cannam@86: cannam@86: #include cannam@86: cannam@86: #ifdef RTLD_GLOBAL cannam@86: # define LT_DLGLOBAL RTLD_GLOBAL cannam@86: #else cannam@86: # ifdef DL_GLOBAL cannam@86: # define LT_DLGLOBAL DL_GLOBAL cannam@86: # else cannam@86: # define LT_DLGLOBAL 0 cannam@86: # endif cannam@86: #endif cannam@86: cannam@86: /* We may have to define LT_DLLAZY_OR_NOW in the command line if we cannam@86: find out it does not work in some platform. */ cannam@86: #ifndef LT_DLLAZY_OR_NOW cannam@86: # ifdef RTLD_LAZY cannam@86: # define LT_DLLAZY_OR_NOW RTLD_LAZY cannam@86: # else cannam@86: # ifdef DL_LAZY cannam@86: # define LT_DLLAZY_OR_NOW DL_LAZY cannam@86: # else cannam@86: # ifdef RTLD_NOW cannam@86: # define LT_DLLAZY_OR_NOW RTLD_NOW cannam@86: # else cannam@86: # ifdef DL_NOW cannam@86: # define LT_DLLAZY_OR_NOW DL_NOW cannam@86: # else cannam@86: # define LT_DLLAZY_OR_NOW 0 cannam@86: # endif cannam@86: # endif cannam@86: # endif cannam@86: # endif cannam@86: #endif cannam@86: cannam@86: #ifdef __cplusplus cannam@86: extern "C" void exit (int); cannam@86: #endif cannam@86: cannam@86: void fnord() { int i=42;} cannam@86: int main () cannam@86: { cannam@86: void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); cannam@86: int status = $lt_dlunknown; cannam@86: cannam@86: if (self) cannam@86: { cannam@86: if (dlsym (self,"fnord")) status = $lt_dlno_uscore; cannam@86: else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; cannam@86: /* dlclose (self); */ cannam@86: } cannam@86: cannam@86: exit (status); cannam@86: } cannam@86: EOF cannam@86: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 cannam@86: (eval $ac_link) 2>&5 cannam@86: ac_status=$? cannam@86: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@86: (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then cannam@86: (./conftest; exit; ) 2>/dev/null cannam@86: lt_status=$? cannam@86: case x$lt_status in cannam@86: x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; cannam@86: x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; cannam@86: x$lt_unknown|x*) lt_cv_dlopen_self=no ;; cannam@86: esac cannam@86: else : cannam@86: # compilation failed cannam@86: lt_cv_dlopen_self=no cannam@86: fi cannam@86: fi cannam@86: rm -fr conftest* cannam@86: cannam@86: cannam@86: fi cannam@86: echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 cannam@86: echo "${ECHO_T}$lt_cv_dlopen_self" >&6 cannam@86: cannam@86: if test "x$lt_cv_dlopen_self" = xyes; then cannam@86: LDFLAGS="$LDFLAGS $link_static_flag" cannam@86: echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 cannam@86: echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 cannam@86: if test "${lt_cv_dlopen_self_static+set}" = set; then cannam@86: echo $ECHO_N "(cached) $ECHO_C" >&6 cannam@86: else cannam@86: if test "$cross_compiling" = yes; then : cannam@86: lt_cv_dlopen_self_static=cross cannam@86: else cannam@86: lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 cannam@86: lt_status=$lt_dlunknown cannam@86: cat > conftest.$ac_ext < cannam@86: #endif cannam@86: cannam@86: #include cannam@86: cannam@86: #ifdef RTLD_GLOBAL cannam@86: # define LT_DLGLOBAL RTLD_GLOBAL cannam@86: #else cannam@86: # ifdef DL_GLOBAL cannam@86: # define LT_DLGLOBAL DL_GLOBAL cannam@86: # else cannam@86: # define LT_DLGLOBAL 0 cannam@86: # endif cannam@86: #endif cannam@86: cannam@86: /* We may have to define LT_DLLAZY_OR_NOW in the command line if we cannam@86: find out it does not work in some platform. */ cannam@86: #ifndef LT_DLLAZY_OR_NOW cannam@86: # ifdef RTLD_LAZY cannam@86: # define LT_DLLAZY_OR_NOW RTLD_LAZY cannam@86: # else cannam@86: # ifdef DL_LAZY cannam@86: # define LT_DLLAZY_OR_NOW DL_LAZY cannam@86: # else cannam@86: # ifdef RTLD_NOW cannam@86: # define LT_DLLAZY_OR_NOW RTLD_NOW cannam@86: # else cannam@86: # ifdef DL_NOW cannam@86: # define LT_DLLAZY_OR_NOW DL_NOW cannam@86: # else cannam@86: # define LT_DLLAZY_OR_NOW 0 cannam@86: # endif cannam@86: # endif cannam@86: # endif cannam@86: # endif cannam@86: #endif cannam@86: cannam@86: #ifdef __cplusplus cannam@86: extern "C" void exit (int); cannam@86: #endif cannam@86: cannam@86: void fnord() { int i=42;} cannam@86: int main () cannam@86: { cannam@86: void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); cannam@86: int status = $lt_dlunknown; cannam@86: cannam@86: if (self) cannam@86: { cannam@86: if (dlsym (self,"fnord")) status = $lt_dlno_uscore; cannam@86: else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; cannam@86: /* dlclose (self); */ cannam@86: } cannam@86: cannam@86: exit (status); cannam@86: } cannam@86: EOF cannam@86: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 cannam@86: (eval $ac_link) 2>&5 cannam@86: ac_status=$? cannam@86: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@86: (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then cannam@86: (./conftest; exit; ) 2>/dev/null cannam@86: lt_status=$? cannam@86: case x$lt_status in cannam@86: x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; cannam@86: x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; cannam@86: x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;; cannam@86: esac cannam@86: else : cannam@86: # compilation failed cannam@86: lt_cv_dlopen_self_static=no cannam@86: fi cannam@86: fi cannam@86: rm -fr conftest* cannam@86: cannam@86: cannam@86: fi cannam@86: echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 cannam@86: echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 cannam@86: fi cannam@86: cannam@86: CPPFLAGS="$save_CPPFLAGS" cannam@86: LDFLAGS="$save_LDFLAGS" cannam@86: LIBS="$save_LIBS" cannam@86: ;; cannam@86: esac cannam@86: cannam@86: case $lt_cv_dlopen_self in cannam@86: yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; cannam@86: *) enable_dlopen_self=unknown ;; cannam@86: esac cannam@86: cannam@86: case $lt_cv_dlopen_self_static in cannam@86: yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; cannam@86: *) enable_dlopen_self_static=unknown ;; cannam@86: esac cannam@86: fi cannam@86: cannam@86: cannam@86: # Report which librarie types wil actually be built cannam@86: echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 cannam@86: echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6 cannam@86: echo "$as_me:$LINENO: result: $can_build_shared" >&5 cannam@86: echo "${ECHO_T}$can_build_shared" >&6 cannam@86: cannam@86: echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 cannam@86: echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6 cannam@86: test "$can_build_shared" = "no" && enable_shared=no cannam@86: cannam@86: # On AIX, shared libraries and static libraries use the same namespace, and cannam@86: # are all built from PIC. cannam@86: case "$host_os" in cannam@86: aix3*) cannam@86: test "$enable_shared" = yes && enable_static=no cannam@86: if test -n "$RANLIB"; then cannam@86: archive_cmds="$archive_cmds~\$RANLIB \$lib" cannam@86: postinstall_cmds='$RANLIB $lib' cannam@86: fi cannam@86: ;; cannam@86: cannam@86: aix4* | aix5*) cannam@86: if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then cannam@86: test "$enable_shared" = yes && enable_static=no cannam@86: fi cannam@86: ;; cannam@86: esac cannam@86: echo "$as_me:$LINENO: result: $enable_shared" >&5 cannam@86: echo "${ECHO_T}$enable_shared" >&6 cannam@86: cannam@86: echo "$as_me:$LINENO: checking whether to build static libraries" >&5 cannam@86: echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6 cannam@86: # Make sure either enable_shared or enable_static is yes. cannam@86: test "$enable_shared" = yes || enable_static=yes cannam@86: echo "$as_me:$LINENO: result: $enable_static" >&5 cannam@86: echo "${ECHO_T}$enable_static" >&6 cannam@86: cannam@86: # The else clause should only fire when bootstrapping the cannam@86: # libtool distribution, otherwise you forgot to ship ltmain.sh cannam@86: # with your package, and you will get complaints that there are cannam@86: # no rules to generate ltmain.sh. cannam@86: if test -f "$ltmain"; then cannam@86: # See if we are running on zsh, and set the options which allow our commands through cannam@86: # without removal of \ escapes. cannam@86: if test -n "${ZSH_VERSION+set}" ; then cannam@86: setopt NO_GLOB_SUBST cannam@86: fi cannam@86: # Now quote all the things that may contain metacharacters while being cannam@86: # careful not to overquote the AC_SUBSTed values. We take copies of the cannam@86: # variables and quote the copies for generation of the libtool script. cannam@86: for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ cannam@86: SED SHELL STRIP \ cannam@86: libname_spec library_names_spec soname_spec extract_expsyms_cmds \ cannam@86: old_striplib striplib file_magic_cmd finish_cmds finish_eval \ cannam@86: deplibs_check_method reload_flag reload_cmds need_locks \ cannam@86: lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ cannam@86: lt_cv_sys_global_symbol_to_c_name_address \ cannam@86: sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ cannam@86: old_postinstall_cmds old_postuninstall_cmds \ cannam@86: compiler \ cannam@86: CC \ cannam@86: LD \ cannam@86: lt_prog_compiler_wl \ cannam@86: lt_prog_compiler_pic \ cannam@86: lt_prog_compiler_static \ cannam@86: lt_prog_compiler_no_builtin_flag \ cannam@86: export_dynamic_flag_spec \ cannam@86: thread_safe_flag_spec \ cannam@86: whole_archive_flag_spec \ cannam@86: enable_shared_with_static_runtimes \ cannam@86: old_archive_cmds \ cannam@86: old_archive_from_new_cmds \ cannam@86: predep_objects \ cannam@86: postdep_objects \ cannam@86: predeps \ cannam@86: postdeps \ cannam@86: compiler_lib_search_path \ cannam@86: archive_cmds \ cannam@86: archive_expsym_cmds \ cannam@86: postinstall_cmds \ cannam@86: postuninstall_cmds \ cannam@86: old_archive_from_expsyms_cmds \ cannam@86: allow_undefined_flag \ cannam@86: no_undefined_flag \ cannam@86: export_symbols_cmds \ cannam@86: hardcode_libdir_flag_spec \ cannam@86: hardcode_libdir_flag_spec_ld \ cannam@86: hardcode_libdir_separator \ cannam@86: hardcode_automatic \ cannam@86: module_cmds \ cannam@86: module_expsym_cmds \ cannam@86: lt_cv_prog_compiler_c_o \ cannam@86: exclude_expsyms \ cannam@86: include_expsyms; do cannam@86: cannam@86: case $var in cannam@86: old_archive_cmds | \ cannam@86: old_archive_from_new_cmds | \ cannam@86: archive_cmds | \ cannam@86: archive_expsym_cmds | \ cannam@86: module_cmds | \ cannam@86: module_expsym_cmds | \ cannam@86: old_archive_from_expsyms_cmds | \ cannam@86: export_symbols_cmds | \ cannam@86: extract_expsyms_cmds | reload_cmds | finish_cmds | \ cannam@86: postinstall_cmds | postuninstall_cmds | \ cannam@86: old_postinstall_cmds | old_postuninstall_cmds | \ cannam@86: sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) cannam@86: # Double-quote double-evaled strings. cannam@86: eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" cannam@86: ;; cannam@86: *) cannam@86: eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" cannam@86: ;; cannam@86: esac cannam@86: done cannam@86: cannam@86: case $lt_echo in cannam@86: *'\$0 --fallback-echo"') cannam@86: lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` cannam@86: ;; cannam@86: esac cannam@86: cannam@86: cfgfile="${ofile}T" cannam@86: trap "$rm \"$cfgfile\"; exit 1" 1 2 15 cannam@86: $rm -f "$cfgfile" cannam@86: { echo "$as_me:$LINENO: creating $ofile" >&5 cannam@86: echo "$as_me: creating $ofile" >&6;} cannam@86: cannam@86: cat <<__EOF__ >> "$cfgfile" cannam@86: #! $SHELL cannam@86: cannam@86: # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services. cannam@86: # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) cannam@86: # NOTE: Changes made to this file will be lost: look at ltmain.sh. cannam@86: # cannam@86: # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001 cannam@86: # Free Software Foundation, Inc. cannam@86: # cannam@86: # This file is part of GNU Libtool: cannam@86: # Originally by Gordon Matzigkeit , 1996 cannam@86: # cannam@86: # This program is free software; you can redistribute it and/or modify cannam@86: # it under the terms of the GNU General Public License as published by cannam@86: # the Free Software Foundation; either version 2 of the License, or cannam@86: # (at your option) any later version. cannam@86: # cannam@86: # This program is distributed in the hope that it will be useful, but cannam@86: # WITHOUT ANY WARRANTY; without even the implied warranty of cannam@86: # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU cannam@86: # General Public License for more details. cannam@86: # cannam@86: # You should have received a copy of the GNU General Public License cannam@86: # along with this program; if not, write to the Free Software cannam@86: # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. cannam@86: # cannam@86: # As a special exception to the GNU General Public License, if you cannam@86: # distribute this file as part of a program that contains a cannam@86: # configuration script generated by Autoconf, you may include it under cannam@86: # the same distribution terms that you use for the rest of that program. cannam@86: cannam@86: # A sed program that does not truncate output. cannam@86: SED=$lt_SED cannam@86: cannam@86: # Sed that helps us avoid accidentally triggering echo(1) options like -n. cannam@86: Xsed="$SED -e 1s/^X//" cannam@86: cannam@86: # The HP-UX ksh and POSIX shell print the target directory to stdout cannam@86: # if CDPATH is set. cannam@86: (unset CDPATH) >/dev/null 2>&1 && unset CDPATH cannam@86: cannam@86: # The names of the tagged configurations supported by this script. cannam@86: available_tags= cannam@86: cannam@86: # ### BEGIN LIBTOOL CONFIG cannam@86: cannam@86: # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: cannam@86: cannam@86: # Shell to use when invoking shell scripts. cannam@86: SHELL=$lt_SHELL cannam@86: cannam@86: # Whether or not to build shared libraries. cannam@86: build_libtool_libs=$enable_shared cannam@86: cannam@86: # Whether or not to build static libraries. cannam@86: build_old_libs=$enable_static cannam@86: cannam@86: # Whether or not to add -lc for building shared libraries. cannam@86: build_libtool_need_lc=$archive_cmds_need_lc cannam@86: cannam@86: # Whether or not to disallow shared libs when runtime libs are static cannam@86: allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes cannam@86: cannam@86: # Whether or not to optimize for fast installation. cannam@86: fast_install=$enable_fast_install cannam@86: cannam@86: # The host system. cannam@86: host_alias=$host_alias cannam@86: host=$host cannam@86: host_os=$host_os cannam@86: cannam@86: # The build system. cannam@86: build_alias=$build_alias cannam@86: build=$build cannam@86: build_os=$build_os cannam@86: cannam@86: # An echo program that does not interpret backslashes. cannam@86: echo=$lt_echo cannam@86: cannam@86: # The archiver. cannam@86: AR=$lt_AR cannam@86: AR_FLAGS=$lt_AR_FLAGS cannam@86: cannam@86: # A C compiler. cannam@86: LTCC=$lt_LTCC cannam@86: cannam@86: # A language-specific compiler. cannam@86: CC=$lt_compiler cannam@86: cannam@86: # Is the compiler the GNU C compiler? cannam@86: with_gcc=$GCC cannam@86: cannam@86: # An ERE matcher. cannam@86: EGREP=$lt_EGREP cannam@86: cannam@86: # The linker used to build libraries. cannam@86: LD=$lt_LD cannam@86: cannam@86: # Whether we need hard or soft links. cannam@86: LN_S=$lt_LN_S cannam@86: cannam@86: # A BSD-compatible nm program. cannam@86: NM=$lt_NM cannam@86: cannam@86: # A symbol stripping program cannam@86: STRIP=$lt_STRIP cannam@86: cannam@86: # Used to examine libraries when file_magic_cmd begins "file" cannam@86: MAGIC_CMD=$MAGIC_CMD cannam@86: cannam@86: # Used on cygwin: DLL creation program. cannam@86: DLLTOOL="$DLLTOOL" cannam@86: cannam@86: # Used on cygwin: object dumper. cannam@86: OBJDUMP="$OBJDUMP" cannam@86: cannam@86: # Used on cygwin: assembler. cannam@86: AS="$AS" cannam@86: cannam@86: # The name of the directory that contains temporary libtool files. cannam@86: objdir=$objdir cannam@86: cannam@86: # How to create reloadable object files. cannam@86: reload_flag=$lt_reload_flag cannam@86: reload_cmds=$lt_reload_cmds cannam@86: cannam@86: # How to pass a linker flag through the compiler. cannam@86: wl=$lt_lt_prog_compiler_wl cannam@86: cannam@86: # Object file suffix (normally "o"). cannam@86: objext="$ac_objext" cannam@86: cannam@86: # Old archive suffix (normally "a"). cannam@86: libext="$libext" cannam@86: cannam@86: # Shared library suffix (normally ".so"). cannam@86: shrext_cmds='$shrext_cmds' cannam@86: cannam@86: # Executable file suffix (normally ""). cannam@86: exeext="$exeext" cannam@86: cannam@86: # Additional compiler flags for building library objects. cannam@86: pic_flag=$lt_lt_prog_compiler_pic cannam@86: pic_mode=$pic_mode cannam@86: cannam@86: # What is the maximum length of a command? cannam@86: max_cmd_len=$lt_cv_sys_max_cmd_len cannam@86: cannam@86: # Does compiler simultaneously support -c and -o options? cannam@86: compiler_c_o=$lt_lt_cv_prog_compiler_c_o cannam@86: cannam@86: # Must we lock files when doing compilation? cannam@86: need_locks=$lt_need_locks cannam@86: cannam@86: # Do we need the lib prefix for modules? cannam@86: need_lib_prefix=$need_lib_prefix cannam@86: cannam@86: # Do we need a version for libraries? cannam@86: need_version=$need_version cannam@86: cannam@86: # Whether dlopen is supported. cannam@86: dlopen_support=$enable_dlopen cannam@86: cannam@86: # Whether dlopen of programs is supported. cannam@86: dlopen_self=$enable_dlopen_self cannam@86: cannam@86: # Whether dlopen of statically linked programs is supported. cannam@86: dlopen_self_static=$enable_dlopen_self_static cannam@86: cannam@86: # Compiler flag to prevent dynamic linking. cannam@86: link_static_flag=$lt_lt_prog_compiler_static cannam@86: cannam@86: # Compiler flag to turn off builtin functions. cannam@86: no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag cannam@86: cannam@86: # Compiler flag to allow reflexive dlopens. cannam@86: export_dynamic_flag_spec=$lt_export_dynamic_flag_spec cannam@86: cannam@86: # Compiler flag to generate shared objects directly from archives. cannam@86: whole_archive_flag_spec=$lt_whole_archive_flag_spec cannam@86: cannam@86: # Compiler flag to generate thread-safe objects. cannam@86: thread_safe_flag_spec=$lt_thread_safe_flag_spec cannam@86: cannam@86: # Library versioning type. cannam@86: version_type=$version_type cannam@86: cannam@86: # Format of library name prefix. cannam@86: libname_spec=$lt_libname_spec cannam@86: cannam@86: # List of archive names. First name is the real one, the rest are links. cannam@86: # The last name is the one that the linker finds with -lNAME. cannam@86: library_names_spec=$lt_library_names_spec cannam@86: cannam@86: # The coded name of the library, if different from the real name. cannam@86: soname_spec=$lt_soname_spec cannam@86: cannam@86: # Commands used to build and install an old-style archive. cannam@86: RANLIB=$lt_RANLIB cannam@86: old_archive_cmds=$lt_old_archive_cmds cannam@86: old_postinstall_cmds=$lt_old_postinstall_cmds cannam@86: old_postuninstall_cmds=$lt_old_postuninstall_cmds cannam@86: cannam@86: # Create an old-style archive from a shared archive. cannam@86: old_archive_from_new_cmds=$lt_old_archive_from_new_cmds cannam@86: cannam@86: # Create a temporary old-style archive to link instead of a shared archive. cannam@86: old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds cannam@86: cannam@86: # Commands used to build and install a shared archive. cannam@86: archive_cmds=$lt_archive_cmds cannam@86: archive_expsym_cmds=$lt_archive_expsym_cmds cannam@86: postinstall_cmds=$lt_postinstall_cmds cannam@86: postuninstall_cmds=$lt_postuninstall_cmds cannam@86: cannam@86: # Commands used to build a loadable module (assumed same as above if empty) cannam@86: module_cmds=$lt_module_cmds cannam@86: module_expsym_cmds=$lt_module_expsym_cmds cannam@86: cannam@86: # Commands to strip libraries. cannam@86: old_striplib=$lt_old_striplib cannam@86: striplib=$lt_striplib cannam@86: cannam@86: # Dependencies to place before the objects being linked to create a cannam@86: # shared library. cannam@86: predep_objects=$lt_predep_objects cannam@86: cannam@86: # Dependencies to place after the objects being linked to create a cannam@86: # shared library. cannam@86: postdep_objects=$lt_postdep_objects cannam@86: cannam@86: # Dependencies to place before the objects being linked to create a cannam@86: # shared library. cannam@86: predeps=$lt_predeps cannam@86: cannam@86: # Dependencies to place after the objects being linked to create a cannam@86: # shared library. cannam@86: postdeps=$lt_postdeps cannam@86: cannam@86: # The library search path used internally by the compiler when linking cannam@86: # a shared library. cannam@86: compiler_lib_search_path=$lt_compiler_lib_search_path cannam@86: cannam@86: # Method to check whether dependent libraries are shared objects. cannam@86: deplibs_check_method=$lt_deplibs_check_method cannam@86: cannam@86: # Command to use when deplibs_check_method == file_magic. cannam@86: file_magic_cmd=$lt_file_magic_cmd cannam@86: cannam@86: # Flag that allows shared libraries with undefined symbols to be built. cannam@86: allow_undefined_flag=$lt_allow_undefined_flag cannam@86: cannam@86: # Flag that forces no undefined symbols. cannam@86: no_undefined_flag=$lt_no_undefined_flag cannam@86: cannam@86: # Commands used to finish a libtool library installation in a directory. cannam@86: finish_cmds=$lt_finish_cmds cannam@86: cannam@86: # Same as above, but a single script fragment to be evaled but not shown. cannam@86: finish_eval=$lt_finish_eval cannam@86: cannam@86: # Take the output of nm and produce a listing of raw symbols and C names. cannam@86: global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe cannam@86: cannam@86: # Transform the output of nm in a proper C declaration cannam@86: global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl cannam@86: cannam@86: # Transform the output of nm in a C name address pair cannam@86: global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address cannam@86: cannam@86: # This is the shared library runtime path variable. cannam@86: runpath_var=$runpath_var cannam@86: cannam@86: # This is the shared library path variable. cannam@86: shlibpath_var=$shlibpath_var cannam@86: cannam@86: # Is shlibpath searched before the hard-coded library search path? cannam@86: shlibpath_overrides_runpath=$shlibpath_overrides_runpath cannam@86: cannam@86: # How to hardcode a shared library path into an executable. cannam@86: hardcode_action=$hardcode_action cannam@86: cannam@86: # Whether we should hardcode library paths into libraries. cannam@86: hardcode_into_libs=$hardcode_into_libs cannam@86: cannam@86: # Flag to hardcode \$libdir into a binary during linking. cannam@86: # This must work even if \$libdir does not exist. cannam@86: hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec cannam@86: cannam@86: # If ld is used when linking, flag to hardcode \$libdir into cannam@86: # a binary during linking. This must work even if \$libdir does cannam@86: # not exist. cannam@86: hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld cannam@86: cannam@86: # Whether we need a single -rpath flag with a separated argument. cannam@86: hardcode_libdir_separator=$lt_hardcode_libdir_separator cannam@86: cannam@86: # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the cannam@86: # resulting binary. cannam@86: hardcode_direct=$hardcode_direct cannam@86: cannam@86: # Set to yes if using the -LDIR flag during linking hardcodes DIR into the cannam@86: # resulting binary. cannam@86: hardcode_minus_L=$hardcode_minus_L cannam@86: cannam@86: # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into cannam@86: # the resulting binary. cannam@86: hardcode_shlibpath_var=$hardcode_shlibpath_var cannam@86: cannam@86: # Set to yes if building a shared library automatically hardcodes DIR into the library cannam@86: # and all subsequent libraries and executables linked against it. cannam@86: hardcode_automatic=$hardcode_automatic cannam@86: cannam@86: # Variables whose values should be saved in libtool wrapper scripts and cannam@86: # restored at relink time. cannam@86: variables_saved_for_relink="$variables_saved_for_relink" cannam@86: cannam@86: # Whether libtool must link a program against all its dependency libraries. cannam@86: link_all_deplibs=$link_all_deplibs cannam@86: cannam@86: # Compile-time system search path for libraries cannam@86: sys_lib_search_path_spec=$lt_sys_lib_search_path_spec cannam@86: cannam@86: # Run-time system search path for libraries cannam@86: sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec cannam@86: cannam@86: # Fix the shell variable \$srcfile for the compiler. cannam@86: fix_srcfile_path="$fix_srcfile_path" cannam@86: cannam@86: # Set to yes if exported symbols are required. cannam@86: always_export_symbols=$always_export_symbols cannam@86: cannam@86: # The commands to list exported symbols. cannam@86: export_symbols_cmds=$lt_export_symbols_cmds cannam@86: cannam@86: # The commands to extract the exported symbol list from a shared archive. cannam@86: extract_expsyms_cmds=$lt_extract_expsyms_cmds cannam@86: cannam@86: # Symbols that should not be listed in the preloaded symbols. cannam@86: exclude_expsyms=$lt_exclude_expsyms cannam@86: cannam@86: # Symbols that must always be exported. cannam@86: include_expsyms=$lt_include_expsyms cannam@86: cannam@86: # ### END LIBTOOL CONFIG cannam@86: cannam@86: __EOF__ cannam@86: cannam@86: cannam@86: case $host_os in cannam@86: aix3*) cannam@86: cat <<\EOF >> "$cfgfile" cannam@86: cannam@86: # AIX sometimes has problems with the GCC collect2 program. For some cannam@86: # reason, if we set the COLLECT_NAMES environment variable, the problems cannam@86: # vanish in a puff of smoke. cannam@86: if test "X${COLLECT_NAMES+set}" != Xset; then cannam@86: COLLECT_NAMES= cannam@86: export COLLECT_NAMES cannam@86: fi cannam@86: EOF cannam@86: ;; cannam@86: esac cannam@86: cannam@86: # We use sed instead of cat because bash on DJGPP gets confused if cannam@86: # if finds mixed CR/LF and LF-only lines. Since sed operates in cannam@86: # text mode, it properly converts lines to CR/LF. This bash problem cannam@86: # is reportedly fixed, but why not run on old versions too? cannam@86: sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1) cannam@86: cannam@86: mv -f "$cfgfile" "$ofile" || \ cannam@86: (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") cannam@86: chmod +x "$ofile" cannam@86: cannam@86: else cannam@86: # If there is no Makefile yet, we rely on a make rule to execute cannam@86: # `config.status --recheck' to rerun these tests and create the cannam@86: # libtool script then. cannam@86: ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` cannam@86: if test -f "$ltmain_in"; then cannam@86: test -f Makefile && make "$ltmain" cannam@86: fi cannam@86: fi cannam@86: cannam@86: cannam@86: ac_ext=c cannam@86: ac_cpp='$CPP $CPPFLAGS' cannam@86: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' cannam@86: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' cannam@86: ac_compiler_gnu=$ac_cv_c_compiler_gnu cannam@86: cannam@86: CC="$lt_save_CC" cannam@86: cannam@86: cannam@86: # Check whether --with-tags or --without-tags was given. cannam@86: if test "${with_tags+set}" = set; then cannam@86: withval="$with_tags" cannam@86: tagnames="$withval" cannam@86: fi; cannam@86: cannam@86: if test -f "$ltmain" && test -n "$tagnames"; then cannam@86: if test ! -f "${ofile}"; then cannam@86: { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5 cannam@86: echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;} cannam@86: fi cannam@86: cannam@86: if test -z "$LTCC"; then cannam@86: eval "`$SHELL ${ofile} --config | grep '^LTCC='`" cannam@86: if test -z "$LTCC"; then cannam@86: { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5 cannam@86: echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;} cannam@86: else cannam@86: { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5 cannam@86: echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;} cannam@86: fi cannam@86: fi cannam@86: cannam@86: # Extract list of available tagged configurations in $ofile. cannam@86: # Note that this assumes the entire list is on one line. cannam@86: available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` cannam@86: cannam@86: lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," cannam@86: for tagname in $tagnames; do cannam@86: IFS="$lt_save_ifs" cannam@86: # Check whether tagname contains only valid characters cannam@86: case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in cannam@86: "") ;; cannam@86: *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5 cannam@86: echo "$as_me: error: invalid tag name: $tagname" >&2;} cannam@86: { (exit 1); exit 1; }; } cannam@86: ;; cannam@86: esac cannam@86: cannam@86: if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null cannam@86: then cannam@86: { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5 cannam@86: echo "$as_me: error: tag name \"$tagname\" already exists" >&2;} cannam@86: { (exit 1); exit 1; }; } cannam@86: fi cannam@86: cannam@86: # Update the list of available tags. cannam@86: if test -n "$tagname"; then cannam@86: echo appending configuration tag \"$tagname\" to $ofile cannam@86: cannam@86: case $tagname in cannam@86: CXX) cannam@86: if test -n "$CXX" && ( test "X$CXX" != "Xno" && cannam@86: ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || cannam@86: (test "X$CXX" != "Xg++"))) ; then cannam@86: ac_ext=cc cannam@86: ac_cpp='$CXXCPP $CPPFLAGS' cannam@86: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' cannam@86: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' cannam@86: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu cannam@86: cannam@86: cannam@86: cannam@86: cannam@86: archive_cmds_need_lc_CXX=no cannam@86: allow_undefined_flag_CXX= cannam@86: always_export_symbols_CXX=no cannam@86: archive_expsym_cmds_CXX= cannam@86: export_dynamic_flag_spec_CXX= cannam@86: hardcode_direct_CXX=no cannam@86: hardcode_libdir_flag_spec_CXX= cannam@86: hardcode_libdir_flag_spec_ld_CXX= cannam@86: hardcode_libdir_separator_CXX= cannam@86: hardcode_minus_L_CXX=no cannam@86: hardcode_automatic_CXX=no cannam@86: module_cmds_CXX= cannam@86: module_expsym_cmds_CXX= cannam@86: link_all_deplibs_CXX=unknown cannam@86: old_archive_cmds_CXX=$old_archive_cmds cannam@86: no_undefined_flag_CXX= cannam@86: whole_archive_flag_spec_CXX= cannam@86: enable_shared_with_static_runtimes_CXX=no cannam@86: cannam@86: # Dependencies to place before and after the object being linked: cannam@86: predep_objects_CXX= cannam@86: postdep_objects_CXX= cannam@86: predeps_CXX= cannam@86: postdeps_CXX= cannam@86: compiler_lib_search_path_CXX= cannam@86: cannam@86: # Source file extension for C++ test sources. cannam@86: ac_ext=cc cannam@86: cannam@86: # Object file extension for compiled C++ test sources. cannam@86: objext=o cannam@86: objext_CXX=$objext cannam@86: cannam@86: # Code to be used in simple compile tests cannam@86: lt_simple_compile_test_code="int some_variable = 0;\n" cannam@86: cannam@86: # Code to be used in simple link tests cannam@86: lt_simple_link_test_code='int main(int, char *) { return(0); }\n' cannam@86: cannam@86: # ltmain only uses $CC for tagged configurations so make sure $CC is set. cannam@86: cannam@86: # If no C compiler was specified, use CC. cannam@86: LTCC=${LTCC-"$CC"} cannam@86: cannam@86: # Allow CC to be a program name with arguments. cannam@86: compiler=$CC cannam@86: cannam@86: cannam@86: # save warnings/boilerplate of simple test code cannam@86: ac_outfile=conftest.$ac_objext cannam@86: printf "$lt_simple_compile_test_code" >conftest.$ac_ext cannam@86: eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err cannam@86: _lt_compiler_boilerplate=`cat conftest.err` cannam@86: $rm conftest* cannam@86: cannam@86: ac_outfile=conftest.$ac_objext cannam@86: printf "$lt_simple_link_test_code" >conftest.$ac_ext cannam@86: eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err cannam@86: _lt_linker_boilerplate=`cat conftest.err` cannam@86: $rm conftest* cannam@86: cannam@86: cannam@86: # Allow CC to be a program name with arguments. cannam@86: lt_save_CC=$CC cannam@86: lt_save_LD=$LD cannam@86: lt_save_GCC=$GCC cannam@86: GCC=$GXX cannam@86: lt_save_with_gnu_ld=$with_gnu_ld cannam@86: lt_save_path_LD=$lt_cv_path_LD cannam@86: if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then cannam@86: lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx cannam@86: else cannam@86: unset lt_cv_prog_gnu_ld cannam@86: fi cannam@86: if test -n "${lt_cv_path_LDCXX+set}"; then cannam@86: lt_cv_path_LD=$lt_cv_path_LDCXX cannam@86: else cannam@86: unset lt_cv_path_LD cannam@86: fi cannam@86: test -z "${LDCXX+set}" || LD=$LDCXX cannam@86: CC=${CXX-"c++"} cannam@86: compiler=$CC cannam@86: compiler_CXX=$CC cannam@86: for cc_temp in $compiler""; do cannam@86: case $cc_temp in cannam@86: compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; cannam@86: distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; cannam@86: \-*) ;; cannam@86: *) break;; cannam@86: esac cannam@86: done cannam@86: cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` cannam@86: cannam@86: cannam@86: # We don't want -fno-exception wen compiling C++ code, so set the cannam@86: # no_builtin_flag separately cannam@86: if test "$GXX" = yes; then cannam@86: lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' cannam@86: else cannam@86: lt_prog_compiler_no_builtin_flag_CXX= cannam@86: fi cannam@86: cannam@86: if test "$GXX" = yes; then cannam@86: # Set up default GNU C++ configuration cannam@86: cannam@86: cannam@86: # Check whether --with-gnu-ld or --without-gnu-ld was given. cannam@86: if test "${with_gnu_ld+set}" = set; then cannam@86: withval="$with_gnu_ld" cannam@86: test "$withval" = no || with_gnu_ld=yes cannam@86: else cannam@86: with_gnu_ld=no cannam@86: fi; cannam@86: ac_prog=ld cannam@86: if test "$GCC" = yes; then cannam@86: # Check if gcc -print-prog-name=ld gives a path. cannam@86: echo "$as_me:$LINENO: checking for ld used by $CC" >&5 cannam@86: echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6 cannam@86: case $host in cannam@86: *-*-mingw*) cannam@86: # gcc leaves a trailing carriage return which upsets mingw cannam@86: ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; cannam@86: *) cannam@86: ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; cannam@86: esac cannam@86: case $ac_prog in cannam@86: # Accept absolute paths. cannam@86: [\\/]* | ?:[\\/]*) cannam@86: re_direlt='/[^/][^/]*/\.\./' cannam@86: # Canonicalize the pathname of ld cannam@86: ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` cannam@86: while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do cannam@86: ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` cannam@86: done cannam@86: test -z "$LD" && LD="$ac_prog" cannam@86: ;; cannam@86: "") cannam@86: # If it fails, then pretend we aren't using GCC. cannam@86: ac_prog=ld cannam@86: ;; cannam@86: *) cannam@86: # If it is relative, then search for the first ld in PATH. cannam@86: with_gnu_ld=unknown cannam@86: ;; cannam@86: esac cannam@86: elif test "$with_gnu_ld" = yes; then cannam@86: echo "$as_me:$LINENO: checking for GNU ld" >&5 cannam@86: echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 cannam@86: else cannam@86: echo "$as_me:$LINENO: checking for non-GNU ld" >&5 cannam@86: echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 cannam@86: fi cannam@86: if test "${lt_cv_path_LD+set}" = set; then cannam@86: echo $ECHO_N "(cached) $ECHO_C" >&6 cannam@86: else cannam@86: if test -z "$LD"; then cannam@86: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR cannam@86: for ac_dir in $PATH; do cannam@86: IFS="$lt_save_ifs" cannam@86: test -z "$ac_dir" && ac_dir=. cannam@86: if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then cannam@86: lt_cv_path_LD="$ac_dir/$ac_prog" cannam@86: # Check to see if the program is GNU ld. I'd rather use --version, cannam@86: # but apparently some GNU ld's only accept -v. cannam@86: # Break only if it was the GNU/non-GNU ld that we prefer. cannam@86: case `"$lt_cv_path_LD" -v 2>&1 &5 cannam@86: echo "${ECHO_T}$LD" >&6 cannam@86: else cannam@86: echo "$as_me:$LINENO: result: no" >&5 cannam@86: echo "${ECHO_T}no" >&6 cannam@86: fi cannam@86: test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 cannam@86: echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} cannam@86: { (exit 1); exit 1; }; } cannam@86: echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 cannam@86: echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 cannam@86: if test "${lt_cv_prog_gnu_ld+set}" = set; then cannam@86: echo $ECHO_N "(cached) $ECHO_C" >&6 cannam@86: else cannam@86: # I'd rather use --version here, but apparently some GNU ld's only accept -v. cannam@86: case `$LD -v 2>&1 &5 cannam@86: echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 cannam@86: with_gnu_ld=$lt_cv_prog_gnu_ld cannam@86: cannam@86: cannam@86: cannam@86: # Check if GNU C++ uses GNU ld as the underlying linker, since the cannam@86: # archiving commands below assume that GNU ld is being used. cannam@86: if test "$with_gnu_ld" = yes; then cannam@86: archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' cannam@86: 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' cannam@86: cannam@86: hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' cannam@86: export_dynamic_flag_spec_CXX='${wl}--export-dynamic' cannam@86: cannam@86: # If archive_cmds runs LD, not CC, wlarc should be empty cannam@86: # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to cannam@86: # investigate it a little bit more. (MM) cannam@86: wlarc='${wl}' cannam@86: cannam@86: # ancient GNU ld didn't support --whole-archive et. al. cannam@86: if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ cannam@86: grep 'no-whole-archive' > /dev/null; then cannam@86: whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' cannam@86: else cannam@86: whole_archive_flag_spec_CXX= cannam@86: fi cannam@86: else cannam@86: with_gnu_ld=no cannam@86: wlarc= cannam@86: cannam@86: # A generic and very simple default shared library creation cannam@86: # command for GNU C++ for the case where it uses the native cannam@86: # linker, instead of GNU ld. If possible, this setting should cannam@86: # overridden to take advantage of the native linker features on cannam@86: # the platform it is being used on. cannam@86: archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' cannam@86: fi cannam@86: cannam@86: # Commands to make compiler produce verbose output that lists cannam@86: # what "hidden" libraries, object files and flags are used when cannam@86: # linking a shared library. cannam@86: output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' cannam@86: cannam@86: else cannam@86: GXX=no cannam@86: with_gnu_ld=no cannam@86: wlarc= cannam@86: fi cannam@86: cannam@86: # PORTME: fill in a description of your system's C++ link characteristics cannam@86: echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 cannam@86: echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 cannam@86: ld_shlibs_CXX=yes cannam@86: case $host_os in cannam@86: aix3*) cannam@86: # FIXME: insert proper C++ library support cannam@86: ld_shlibs_CXX=no cannam@86: ;; cannam@86: aix4* | aix5*) cannam@86: if test "$host_cpu" = ia64; then cannam@86: # On IA64, the linker does run time linking by default, so we don't cannam@86: # have to do anything special. cannam@86: aix_use_runtimelinking=no cannam@86: exp_sym_flag='-Bexport' cannam@86: no_entry_flag="" cannam@86: else cannam@86: aix_use_runtimelinking=no cannam@86: cannam@86: # Test if we are trying to use run time linking or normal cannam@86: # AIX style linking. If -brtl is somewhere in LDFLAGS, we cannam@86: # need to do runtime linking. cannam@86: case $host_os in aix4.[23]|aix4.[23].*|aix5*) cannam@86: for ld_flag in $LDFLAGS; do cannam@86: case $ld_flag in cannam@86: *-brtl*) cannam@86: aix_use_runtimelinking=yes cannam@86: break cannam@86: ;; cannam@86: esac cannam@86: done cannam@86: esac cannam@86: cannam@86: exp_sym_flag='-bexport' cannam@86: no_entry_flag='-bnoentry' cannam@86: fi cannam@86: cannam@86: # When large executables or shared objects are built, AIX ld can cannam@86: # have problems creating the table of contents. If linking a library cannam@86: # or program results in "error TOC overflow" add -mminimal-toc to cannam@86: # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not cannam@86: # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. cannam@86: cannam@86: archive_cmds_CXX='' cannam@86: hardcode_direct_CXX=yes cannam@86: hardcode_libdir_separator_CXX=':' cannam@86: link_all_deplibs_CXX=yes cannam@86: cannam@86: if test "$GXX" = yes; then cannam@86: case $host_os in aix4.[012]|aix4.[012].*) cannam@86: # We only want to do this on AIX 4.2 and lower, the check cannam@86: # below for broken collect2 doesn't work under 4.3+ cannam@86: collect2name=`${CC} -print-prog-name=collect2` cannam@86: if test -f "$collect2name" && \ cannam@86: strings "$collect2name" | grep resolve_lib_name >/dev/null cannam@86: then cannam@86: # We have reworked collect2 cannam@86: hardcode_direct_CXX=yes cannam@86: else cannam@86: # We have old collect2 cannam@86: hardcode_direct_CXX=unsupported cannam@86: # It fails to find uninstalled libraries when the uninstalled cannam@86: # path is not listed in the libpath. Setting hardcode_minus_L cannam@86: # to unsupported forces relinking cannam@86: hardcode_minus_L_CXX=yes cannam@86: hardcode_libdir_flag_spec_CXX='-L$libdir' cannam@86: hardcode_libdir_separator_CXX= cannam@86: fi cannam@86: esac cannam@86: shared_flag='-shared' cannam@86: if test "$aix_use_runtimelinking" = yes; then cannam@86: shared_flag="$shared_flag "'${wl}-G' cannam@86: fi cannam@86: else cannam@86: # not using gcc cannam@86: if test "$host_cpu" = ia64; then cannam@86: # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release cannam@86: # chokes on -Wl,-G. The following line is correct: cannam@86: shared_flag='-G' cannam@86: else cannam@86: if test "$aix_use_runtimelinking" = yes; then cannam@86: shared_flag='${wl}-G' cannam@86: else cannam@86: shared_flag='${wl}-bM:SRE' cannam@86: fi cannam@86: fi cannam@86: fi cannam@86: cannam@86: # It seems that -bexpall does not export symbols beginning with cannam@86: # underscore (_), so it is better to generate a list of symbols to export. cannam@86: always_export_symbols_CXX=yes cannam@86: if test "$aix_use_runtimelinking" = yes; then cannam@86: # Warning - without using the other runtime loading flags (-brtl), cannam@86: # -berok will link without error, but may produce a broken library. cannam@86: allow_undefined_flag_CXX='-berok' cannam@86: # Determine the default libpath from the value encoded in an empty executable. cannam@86: cat >conftest.$ac_ext <<_ACEOF cannam@86: /* confdefs.h. */ cannam@86: _ACEOF cannam@86: cat confdefs.h >>conftest.$ac_ext cannam@86: cat >>conftest.$ac_ext <<_ACEOF cannam@86: /* end confdefs.h. */ cannam@86: cannam@86: int cannam@86: main () cannam@86: { cannam@86: cannam@86: ; cannam@86: return 0; cannam@86: } cannam@86: _ACEOF cannam@86: rm -f conftest.$ac_objext conftest$ac_exeext cannam@86: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 cannam@86: (eval $ac_link) 2>conftest.er1 cannam@86: ac_status=$? cannam@86: grep -v '^ *+' conftest.er1 >conftest.err cannam@86: rm -f conftest.er1 cannam@86: cat conftest.err >&5 cannam@86: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@86: (exit $ac_status); } && cannam@86: { ac_try='test -z "$ac_cxx_werror_flag" cannam@86: || test ! -s conftest.err' cannam@86: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 cannam@86: (eval $ac_try) 2>&5 cannam@86: ac_status=$? cannam@86: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@86: (exit $ac_status); }; } && cannam@86: { ac_try='test -s conftest$ac_exeext' cannam@86: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 cannam@86: (eval $ac_try) 2>&5 cannam@86: ac_status=$? cannam@86: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@86: (exit $ac_status); }; }; then cannam@86: cannam@86: aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } cannam@86: }'` cannam@86: # Check for a 64-bit object if we didn't find anything. cannam@86: if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } cannam@86: }'`; fi cannam@86: else cannam@86: echo "$as_me: failed program was:" >&5 cannam@86: sed 's/^/| /' conftest.$ac_ext >&5 cannam@86: cannam@86: fi cannam@86: rm -f conftest.err conftest.$ac_objext \ cannam@86: conftest$ac_exeext conftest.$ac_ext cannam@86: if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi cannam@86: cannam@86: hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" cannam@86: cannam@86: 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" cannam@86: else cannam@86: if test "$host_cpu" = ia64; then cannam@86: hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' cannam@86: allow_undefined_flag_CXX="-z nodefs" cannam@86: 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" cannam@86: else cannam@86: # Determine the default libpath from the value encoded in an empty executable. cannam@86: cat >conftest.$ac_ext <<_ACEOF cannam@86: /* confdefs.h. */ cannam@86: _ACEOF cannam@86: cat confdefs.h >>conftest.$ac_ext cannam@86: cat >>conftest.$ac_ext <<_ACEOF cannam@86: /* end confdefs.h. */ cannam@86: cannam@86: int cannam@86: main () cannam@86: { cannam@86: cannam@86: ; cannam@86: return 0; cannam@86: } cannam@86: _ACEOF cannam@86: rm -f conftest.$ac_objext conftest$ac_exeext cannam@86: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 cannam@86: (eval $ac_link) 2>conftest.er1 cannam@86: ac_status=$? cannam@86: grep -v '^ *+' conftest.er1 >conftest.err cannam@86: rm -f conftest.er1 cannam@86: cat conftest.err >&5 cannam@86: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@86: (exit $ac_status); } && cannam@86: { ac_try='test -z "$ac_cxx_werror_flag" cannam@86: || test ! -s conftest.err' cannam@86: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 cannam@86: (eval $ac_try) 2>&5 cannam@86: ac_status=$? cannam@86: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@86: (exit $ac_status); }; } && cannam@86: { ac_try='test -s conftest$ac_exeext' cannam@86: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 cannam@86: (eval $ac_try) 2>&5 cannam@86: ac_status=$? cannam@86: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@86: (exit $ac_status); }; }; then cannam@86: cannam@86: aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } cannam@86: }'` cannam@86: # Check for a 64-bit object if we didn't find anything. cannam@86: if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } cannam@86: }'`; fi cannam@86: else cannam@86: echo "$as_me: failed program was:" >&5 cannam@86: sed 's/^/| /' conftest.$ac_ext >&5 cannam@86: cannam@86: fi cannam@86: rm -f conftest.err conftest.$ac_objext \ cannam@86: conftest$ac_exeext conftest.$ac_ext cannam@86: if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi cannam@86: cannam@86: hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" cannam@86: # Warning - without using the other run time loading flags, cannam@86: # -berok will link without error, but may produce a broken library. cannam@86: no_undefined_flag_CXX=' ${wl}-bernotok' cannam@86: allow_undefined_flag_CXX=' ${wl}-berok' cannam@86: # -bexpall does not export symbols beginning with underscore (_) cannam@86: always_export_symbols_CXX=yes cannam@86: # Exported symbols can be pulled into shared objects from archives cannam@86: whole_archive_flag_spec_CXX=' ' cannam@86: archive_cmds_need_lc_CXX=yes cannam@86: # This is similar to how AIX traditionally builds it's shared libraries. cannam@86: 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' cannam@86: fi cannam@86: fi cannam@86: ;; cannam@86: chorus*) cannam@86: case $cc_basename in cannam@86: *) cannam@86: # FIXME: insert proper C++ library support cannam@86: ld_shlibs_CXX=no cannam@86: ;; cannam@86: esac cannam@86: ;; cannam@86: cannam@86: cannam@86: cygwin* | mingw* | pw32*) cannam@86: # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, cannam@86: # as there is no search path for DLLs. cannam@86: hardcode_libdir_flag_spec_CXX='-L$libdir' cannam@86: allow_undefined_flag_CXX=unsupported cannam@86: always_export_symbols_CXX=no cannam@86: enable_shared_with_static_runtimes_CXX=yes cannam@86: cannam@86: if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then cannam@86: 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' cannam@86: # If the export-symbols file already is a .def file (1st line cannam@86: # is EXPORTS), use it as is; otherwise, prepend... cannam@86: archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then cannam@86: cp $export_symbols $output_objdir/$soname.def; cannam@86: else cannam@86: echo EXPORTS > $output_objdir/$soname.def; cannam@86: cat $export_symbols >> $output_objdir/$soname.def; cannam@86: fi~ cannam@86: $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' cannam@86: else cannam@86: ld_shlibs_CXX=no cannam@86: fi cannam@86: ;; cannam@86: darwin* | rhapsody*) cannam@86: case "$host_os" in cannam@86: rhapsody* | darwin1.[012]) cannam@86: allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress' cannam@86: ;; cannam@86: *) # Darwin 1.3 on cannam@86: if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then cannam@86: allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' cannam@86: else cannam@86: case ${MACOSX_DEPLOYMENT_TARGET} in cannam@86: 10.[012]) cannam@86: allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' cannam@86: ;; cannam@86: 10.*) cannam@86: allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup' cannam@86: ;; cannam@86: esac cannam@86: fi cannam@86: ;; cannam@86: esac cannam@86: archive_cmds_need_lc_CXX=no cannam@86: hardcode_direct_CXX=no cannam@86: hardcode_automatic_CXX=yes cannam@86: hardcode_shlibpath_var_CXX=unsupported cannam@86: whole_archive_flag_spec_CXX='' cannam@86: link_all_deplibs_CXX=yes cannam@86: cannam@86: if test "$GXX" = yes ; then cannam@86: lt_int_apple_cc_single_mod=no cannam@86: output_verbose_link_cmd='echo' cannam@86: if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then cannam@86: lt_int_apple_cc_single_mod=yes cannam@86: fi cannam@86: if test "X$lt_int_apple_cc_single_mod" = Xyes ; then cannam@86: archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' cannam@86: else cannam@86: archive_cmds_CXX='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring' cannam@86: fi cannam@86: module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' cannam@86: # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's cannam@86: if test "X$lt_int_apple_cc_single_mod" = Xyes ; then cannam@86: 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}' cannam@86: else cannam@86: archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' cannam@86: fi cannam@86: 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}' cannam@86: else cannam@86: case $cc_basename in cannam@86: xlc*) cannam@86: output_verbose_link_cmd='echo' cannam@86: archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' cannam@86: module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' cannam@86: # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's cannam@86: archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' cannam@86: 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}' cannam@86: ;; cannam@86: *) cannam@86: ld_shlibs_CXX=no cannam@86: ;; cannam@86: esac cannam@86: fi cannam@86: ;; cannam@86: cannam@86: dgux*) cannam@86: case $cc_basename in cannam@86: ec++*) cannam@86: # FIXME: insert proper C++ library support cannam@86: ld_shlibs_CXX=no cannam@86: ;; cannam@86: ghcx*) cannam@86: # Green Hills C++ Compiler cannam@86: # FIXME: insert proper C++ library support cannam@86: ld_shlibs_CXX=no cannam@86: ;; cannam@86: *) cannam@86: # FIXME: insert proper C++ library support cannam@86: ld_shlibs_CXX=no cannam@86: ;; cannam@86: esac cannam@86: ;; cannam@86: freebsd[12]*) cannam@86: # C++ shared libraries reported to be fairly broken before switch to ELF cannam@86: ld_shlibs_CXX=no cannam@86: ;; cannam@86: freebsd-elf*) cannam@86: archive_cmds_need_lc_CXX=no cannam@86: ;; cannam@86: freebsd* | kfreebsd*-gnu | dragonfly*) cannam@86: # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF cannam@86: # conventions cannam@86: ld_shlibs_CXX=yes cannam@86: ;; cannam@86: gnu*) cannam@86: ;; cannam@86: hpux9*) cannam@86: hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' cannam@86: hardcode_libdir_separator_CXX=: cannam@86: export_dynamic_flag_spec_CXX='${wl}-E' cannam@86: hardcode_direct_CXX=yes cannam@86: hardcode_minus_L_CXX=yes # Not in the search PATH, cannam@86: # but as the default cannam@86: # location of the library. cannam@86: cannam@86: case $cc_basename in cannam@86: CC*) cannam@86: # FIXME: insert proper C++ library support cannam@86: ld_shlibs_CXX=no cannam@86: ;; cannam@86: aCC*) cannam@86: 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' cannam@86: # Commands to make compiler produce verbose output that lists cannam@86: # what "hidden" libraries, object files and flags are used when cannam@86: # linking a shared library. cannam@86: # cannam@86: # There doesn't appear to be a way to prevent this compiler from cannam@86: # explicitly linking system object files so we need to strip them cannam@86: # from the output so that they don't get included in the library cannam@86: # dependencies. cannam@86: 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' cannam@86: ;; cannam@86: *) cannam@86: if test "$GXX" = yes; then cannam@86: 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' cannam@86: else cannam@86: # FIXME: insert proper C++ library support cannam@86: ld_shlibs_CXX=no cannam@86: fi cannam@86: ;; cannam@86: esac cannam@86: ;; cannam@86: hpux10*|hpux11*) cannam@86: if test $with_gnu_ld = no; then cannam@86: case "$host_cpu" in cannam@86: hppa*64*) cannam@86: hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' cannam@86: hardcode_libdir_flag_spec_ld_CXX='+b $libdir' cannam@86: hardcode_libdir_separator_CXX=: cannam@86: ;; cannam@86: ia64*) cannam@86: hardcode_libdir_flag_spec_CXX='-L$libdir' cannam@86: ;; cannam@86: *) cannam@86: hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' cannam@86: hardcode_libdir_separator_CXX=: cannam@86: export_dynamic_flag_spec_CXX='${wl}-E' cannam@86: ;; cannam@86: esac cannam@86: fi cannam@86: case "$host_cpu" in cannam@86: hppa*64*) cannam@86: hardcode_direct_CXX=no cannam@86: hardcode_shlibpath_var_CXX=no cannam@86: ;; cannam@86: ia64*) cannam@86: hardcode_direct_CXX=no cannam@86: hardcode_shlibpath_var_CXX=no cannam@86: hardcode_minus_L_CXX=yes # Not in the search PATH, cannam@86: # but as the default cannam@86: # location of the library. cannam@86: ;; cannam@86: *) cannam@86: hardcode_direct_CXX=yes cannam@86: hardcode_minus_L_CXX=yes # Not in the search PATH, cannam@86: # but as the default cannam@86: # location of the library. cannam@86: ;; cannam@86: esac cannam@86: cannam@86: case $cc_basename in cannam@86: CC*) cannam@86: # FIXME: insert proper C++ library support cannam@86: ld_shlibs_CXX=no cannam@86: ;; cannam@86: aCC*) cannam@86: case "$host_cpu" in cannam@86: hppa*64*|ia64*) cannam@86: archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs' cannam@86: ;; cannam@86: *) cannam@86: archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' cannam@86: ;; cannam@86: esac cannam@86: # Commands to make compiler produce verbose output that lists cannam@86: # what "hidden" libraries, object files and flags are used when cannam@86: # linking a shared library. cannam@86: # cannam@86: # There doesn't appear to be a way to prevent this compiler from cannam@86: # explicitly linking system object files so we need to strip them cannam@86: # from the output so that they don't get included in the library cannam@86: # dependencies. cannam@86: 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' cannam@86: ;; cannam@86: *) cannam@86: if test "$GXX" = yes; then cannam@86: if test $with_gnu_ld = no; then cannam@86: case "$host_cpu" in cannam@86: ia64*|hppa*64*) cannam@86: archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs' cannam@86: ;; cannam@86: *) cannam@86: 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' cannam@86: ;; cannam@86: esac cannam@86: fi cannam@86: else cannam@86: # FIXME: insert proper C++ library support cannam@86: ld_shlibs_CXX=no cannam@86: fi cannam@86: ;; cannam@86: esac cannam@86: ;; cannam@86: irix5* | irix6*) cannam@86: case $cc_basename in cannam@86: CC*) cannam@86: # SGI C++ cannam@86: archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' cannam@86: cannam@86: # Archives containing C++ object files must be created using cannam@86: # "CC -ar", where "CC" is the IRIX C++ compiler. This is cannam@86: # necessary to make sure instantiated templates are included cannam@86: # in the archive. cannam@86: old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' cannam@86: ;; cannam@86: *) cannam@86: if test "$GXX" = yes; then cannam@86: if test "$with_gnu_ld" = no; then cannam@86: archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' cannam@86: else cannam@86: 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' cannam@86: fi cannam@86: fi cannam@86: link_all_deplibs_CXX=yes cannam@86: ;; cannam@86: esac cannam@86: hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' cannam@86: hardcode_libdir_separator_CXX=: cannam@86: ;; cannam@86: linux*) cannam@86: case $cc_basename in cannam@86: KCC*) cannam@86: # Kuck and Associates, Inc. (KAI) C++ Compiler cannam@86: cannam@86: # KCC will only create a shared library if the output file cannam@86: # ends with ".so" (or ".sl" for HP-UX), so rename the library cannam@86: # to its proper name (with version) after linking. cannam@86: 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' cannam@86: 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' cannam@86: # Commands to make compiler produce verbose output that lists cannam@86: # what "hidden" libraries, object files and flags are used when cannam@86: # linking a shared library. cannam@86: # cannam@86: # There doesn't appear to be a way to prevent this compiler from cannam@86: # explicitly linking system object files so we need to strip them cannam@86: # from the output so that they don't get included in the library cannam@86: # dependencies. cannam@86: 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' cannam@86: cannam@86: hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir' cannam@86: export_dynamic_flag_spec_CXX='${wl}--export-dynamic' cannam@86: cannam@86: # Archives containing C++ object files must be created using cannam@86: # "CC -Bstatic", where "CC" is the KAI C++ compiler. cannam@86: old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' cannam@86: ;; cannam@86: icpc*) cannam@86: # Intel C++ cannam@86: with_gnu_ld=yes cannam@86: # version 8.0 and above of icpc choke on multiply defined symbols cannam@86: # if we add $predep_objects and $postdep_objects, however 7.1 and cannam@86: # earlier do not add the objects themselves. cannam@86: case `$CC -V 2>&1` in cannam@86: *"Version 7."*) cannam@86: archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' cannam@86: 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' cannam@86: ;; cannam@86: *) # Version 8.0 or newer cannam@86: tmp_idyn= cannam@86: case $host_cpu in cannam@86: ia64*) tmp_idyn=' -i_dynamic';; cannam@86: esac cannam@86: archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' cannam@86: archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' cannam@86: ;; cannam@86: esac cannam@86: archive_cmds_need_lc_CXX=no cannam@86: hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' cannam@86: export_dynamic_flag_spec_CXX='${wl}--export-dynamic' cannam@86: whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' cannam@86: ;; cannam@86: pgCC*) cannam@86: # Portland Group C++ compiler cannam@86: archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' cannam@86: 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' cannam@86: cannam@86: hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' cannam@86: export_dynamic_flag_spec_CXX='${wl}--export-dynamic' cannam@86: whole_archive_flag_spec_CXX='' cannam@86: ;; cannam@86: cxx*) cannam@86: # Compaq C++ cannam@86: archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' cannam@86: 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' cannam@86: cannam@86: runpath_var=LD_RUN_PATH cannam@86: hardcode_libdir_flag_spec_CXX='-rpath $libdir' cannam@86: hardcode_libdir_separator_CXX=: cannam@86: cannam@86: # Commands to make compiler produce verbose output that lists cannam@86: # what "hidden" libraries, object files and flags are used when cannam@86: # linking a shared library. cannam@86: # cannam@86: # There doesn't appear to be a way to prevent this compiler from cannam@86: # explicitly linking system object files so we need to strip them cannam@86: # from the output so that they don't get included in the library cannam@86: # dependencies. cannam@86: 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' cannam@86: ;; cannam@86: esac cannam@86: ;; cannam@86: lynxos*) cannam@86: # FIXME: insert proper C++ library support cannam@86: ld_shlibs_CXX=no cannam@86: ;; cannam@86: m88k*) cannam@86: # FIXME: insert proper C++ library support cannam@86: ld_shlibs_CXX=no cannam@86: ;; cannam@86: mvs*) cannam@86: case $cc_basename in cannam@86: cxx*) cannam@86: # FIXME: insert proper C++ library support cannam@86: ld_shlibs_CXX=no cannam@86: ;; cannam@86: *) cannam@86: # FIXME: insert proper C++ library support cannam@86: ld_shlibs_CXX=no cannam@86: ;; cannam@86: esac cannam@86: ;; cannam@86: netbsd*) cannam@86: if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then cannam@86: archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' cannam@86: wlarc= cannam@86: hardcode_libdir_flag_spec_CXX='-R$libdir' cannam@86: hardcode_direct_CXX=yes cannam@86: hardcode_shlibpath_var_CXX=no cannam@86: fi cannam@86: # Workaround some broken pre-1.5 toolchains cannam@86: output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' cannam@86: ;; cannam@86: openbsd2*) cannam@86: # C++ shared libraries are fairly broken cannam@86: ld_shlibs_CXX=no cannam@86: ;; cannam@86: openbsd*) cannam@86: hardcode_direct_CXX=yes cannam@86: hardcode_shlibpath_var_CXX=no cannam@86: archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' cannam@86: hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' cannam@86: if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then cannam@86: archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' cannam@86: export_dynamic_flag_spec_CXX='${wl}-E' cannam@86: whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' cannam@86: fi cannam@86: output_verbose_link_cmd='echo' cannam@86: ;; cannam@86: osf3*) cannam@86: case $cc_basename in cannam@86: KCC*) cannam@86: # Kuck and Associates, Inc. (KAI) C++ Compiler cannam@86: cannam@86: # KCC will only create a shared library if the output file cannam@86: # ends with ".so" (or ".sl" for HP-UX), so rename the library cannam@86: # to its proper name (with version) after linking. cannam@86: 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' cannam@86: cannam@86: hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' cannam@86: hardcode_libdir_separator_CXX=: cannam@86: cannam@86: # Archives containing C++ object files must be created using cannam@86: # "CC -Bstatic", where "CC" is the KAI C++ compiler. cannam@86: old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' cannam@86: cannam@86: ;; cannam@86: RCC*) cannam@86: # Rational C++ 2.4.1 cannam@86: # FIXME: insert proper C++ library support cannam@86: ld_shlibs_CXX=no cannam@86: ;; cannam@86: cxx*) cannam@86: allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' cannam@86: archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' cannam@86: cannam@86: hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' cannam@86: hardcode_libdir_separator_CXX=: cannam@86: cannam@86: # Commands to make compiler produce verbose output that lists cannam@86: # what "hidden" libraries, object files and flags are used when cannam@86: # linking a shared library. cannam@86: # cannam@86: # There doesn't appear to be a way to prevent this compiler from cannam@86: # explicitly linking system object files so we need to strip them cannam@86: # from the output so that they don't get included in the library cannam@86: # dependencies. cannam@86: 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' cannam@86: ;; cannam@86: *) cannam@86: if test "$GXX" = yes && test "$with_gnu_ld" = no; then cannam@86: allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' cannam@86: archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' cannam@86: cannam@86: hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' cannam@86: hardcode_libdir_separator_CXX=: cannam@86: cannam@86: # Commands to make compiler produce verbose output that lists cannam@86: # what "hidden" libraries, object files and flags are used when cannam@86: # linking a shared library. cannam@86: output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' cannam@86: cannam@86: else cannam@86: # FIXME: insert proper C++ library support cannam@86: ld_shlibs_CXX=no cannam@86: fi cannam@86: ;; cannam@86: esac cannam@86: ;; cannam@86: osf4* | osf5*) cannam@86: case $cc_basename in cannam@86: KCC*) cannam@86: # Kuck and Associates, Inc. (KAI) C++ Compiler cannam@86: cannam@86: # KCC will only create a shared library if the output file cannam@86: # ends with ".so" (or ".sl" for HP-UX), so rename the library cannam@86: # to its proper name (with version) after linking. cannam@86: 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' cannam@86: cannam@86: hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' cannam@86: hardcode_libdir_separator_CXX=: cannam@86: cannam@86: # Archives containing C++ object files must be created using cannam@86: # the KAI C++ compiler. cannam@86: old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' cannam@86: ;; cannam@86: RCC*) cannam@86: # Rational C++ 2.4.1 cannam@86: # FIXME: insert proper C++ library support cannam@86: ld_shlibs_CXX=no cannam@86: ;; cannam@86: cxx*) cannam@86: allow_undefined_flag_CXX=' -expect_unresolved \*' cannam@86: archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' cannam@86: archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ cannam@86: echo "-hidden">> $lib.exp~ cannam@86: $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~ cannam@86: $rm $lib.exp' cannam@86: cannam@86: hardcode_libdir_flag_spec_CXX='-rpath $libdir' cannam@86: hardcode_libdir_separator_CXX=: cannam@86: cannam@86: # Commands to make compiler produce verbose output that lists cannam@86: # what "hidden" libraries, object files and flags are used when cannam@86: # linking a shared library. cannam@86: # cannam@86: # There doesn't appear to be a way to prevent this compiler from cannam@86: # explicitly linking system object files so we need to strip them cannam@86: # from the output so that they don't get included in the library cannam@86: # dependencies. cannam@86: 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' cannam@86: ;; cannam@86: *) cannam@86: if test "$GXX" = yes && test "$with_gnu_ld" = no; then cannam@86: allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' cannam@86: archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' cannam@86: cannam@86: hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' cannam@86: hardcode_libdir_separator_CXX=: cannam@86: cannam@86: # Commands to make compiler produce verbose output that lists cannam@86: # what "hidden" libraries, object files and flags are used when cannam@86: # linking a shared library. cannam@86: output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' cannam@86: cannam@86: else cannam@86: # FIXME: insert proper C++ library support cannam@86: ld_shlibs_CXX=no cannam@86: fi cannam@86: ;; cannam@86: esac cannam@86: ;; cannam@86: psos*) cannam@86: # FIXME: insert proper C++ library support cannam@86: ld_shlibs_CXX=no cannam@86: ;; cannam@86: sco*) cannam@86: archive_cmds_need_lc_CXX=no cannam@86: case $cc_basename in cannam@86: CC*) cannam@86: # FIXME: insert proper C++ library support cannam@86: ld_shlibs_CXX=no cannam@86: ;; cannam@86: *) cannam@86: # FIXME: insert proper C++ library support cannam@86: ld_shlibs_CXX=no cannam@86: ;; cannam@86: esac cannam@86: ;; cannam@86: sunos4*) cannam@86: case $cc_basename in cannam@86: CC*) cannam@86: # Sun C++ 4.x cannam@86: # FIXME: insert proper C++ library support cannam@86: ld_shlibs_CXX=no cannam@86: ;; cannam@86: lcc*) cannam@86: # Lucid cannam@86: # FIXME: insert proper C++ library support cannam@86: ld_shlibs_CXX=no cannam@86: ;; cannam@86: *) cannam@86: # FIXME: insert proper C++ library support cannam@86: ld_shlibs_CXX=no cannam@86: ;; cannam@86: esac cannam@86: ;; cannam@86: solaris*) cannam@86: case $cc_basename in cannam@86: CC*) cannam@86: # Sun C++ 4.2, 5.x and Centerline C++ cannam@86: no_undefined_flag_CXX=' -zdefs' cannam@86: archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' cannam@86: archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ cannam@86: $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' cannam@86: cannam@86: hardcode_libdir_flag_spec_CXX='-R$libdir' cannam@86: hardcode_shlibpath_var_CXX=no cannam@86: case $host_os in cannam@86: solaris2.[0-5] | solaris2.[0-5].*) ;; cannam@86: *) cannam@86: # The C++ compiler is used as linker so we must use $wl cannam@86: # flag to pass the commands to the underlying system cannam@86: # linker. We must also pass each convience library through cannam@86: # to the system linker between allextract/defaultextract. cannam@86: # The C++ compiler will combine linker options so we cannam@86: # cannot just pass the convience library names through cannam@86: # without $wl. cannam@86: # Supported since Solaris 2.6 (maybe 2.5.1?) cannam@86: whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' cannam@86: ;; cannam@86: esac cannam@86: link_all_deplibs_CXX=yes cannam@86: cannam@86: # Commands to make compiler produce verbose output that lists cannam@86: # what "hidden" libraries, object files and flags are used when cannam@86: # linking a shared library. cannam@86: # cannam@86: # There doesn't appear to be a way to prevent this compiler from cannam@86: # explicitly linking system object files so we need to strip them cannam@86: # from the output so that they don't get included in the library cannam@86: # dependencies. cannam@86: 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' cannam@86: cannam@86: # Archives containing C++ object files must be created using cannam@86: # "CC -xar", where "CC" is the Sun C++ compiler. This is cannam@86: # necessary to make sure instantiated templates are included cannam@86: # in the archive. cannam@86: old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' cannam@86: ;; cannam@86: gcx*) cannam@86: # Green Hills C++ Compiler cannam@86: archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' cannam@86: cannam@86: # The C++ compiler must be used to create the archive. cannam@86: old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' cannam@86: ;; cannam@86: *) cannam@86: # GNU C++ compiler with Solaris linker cannam@86: if test "$GXX" = yes && test "$with_gnu_ld" = no; then cannam@86: no_undefined_flag_CXX=' ${wl}-z ${wl}defs' cannam@86: if $CC --version | grep -v '^2\.7' > /dev/null; then cannam@86: archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' cannam@86: archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ cannam@86: $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' cannam@86: cannam@86: # Commands to make compiler produce verbose output that lists cannam@86: # what "hidden" libraries, object files and flags are used when cannam@86: # linking a shared library. cannam@86: output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" cannam@86: else cannam@86: # g++ 2.7 appears to require `-G' NOT `-shared' on this cannam@86: # platform. cannam@86: archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' cannam@86: archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ cannam@86: $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' cannam@86: cannam@86: # Commands to make compiler produce verbose output that lists cannam@86: # what "hidden" libraries, object files and flags are used when cannam@86: # linking a shared library. cannam@86: output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" cannam@86: fi cannam@86: cannam@86: hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' cannam@86: fi cannam@86: ;; cannam@86: esac cannam@86: ;; cannam@86: sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) cannam@86: archive_cmds_need_lc_CXX=no cannam@86: ;; cannam@86: tandem*) cannam@86: case $cc_basename in cannam@86: NCC*) cannam@86: # NonStop-UX NCC 3.20 cannam@86: # FIXME: insert proper C++ library support cannam@86: ld_shlibs_CXX=no cannam@86: ;; cannam@86: *) cannam@86: # FIXME: insert proper C++ library support cannam@86: ld_shlibs_CXX=no cannam@86: ;; cannam@86: esac cannam@86: ;; cannam@86: vxworks*) cannam@86: # FIXME: insert proper C++ library support cannam@86: ld_shlibs_CXX=no cannam@86: ;; cannam@86: *) cannam@86: # FIXME: insert proper C++ library support cannam@86: ld_shlibs_CXX=no cannam@86: ;; cannam@86: esac cannam@86: echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 cannam@86: echo "${ECHO_T}$ld_shlibs_CXX" >&6 cannam@86: test "$ld_shlibs_CXX" = no && can_build_shared=no cannam@86: cannam@86: GCC_CXX="$GXX" cannam@86: LD_CXX="$LD" cannam@86: cannam@86: cannam@86: cat > conftest.$ac_ext <&5 cannam@86: (eval $ac_compile) 2>&5 cannam@86: ac_status=$? cannam@86: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@86: (exit $ac_status); }; then cannam@86: # Parse the compiler output and extract the necessary cannam@86: # objects, libraries and library flags. cannam@86: cannam@86: # Sentinel used to keep track of whether or not we are before cannam@86: # the conftest object file. cannam@86: pre_test_object_deps_done=no cannam@86: cannam@86: # The `*' in the case matches for architectures that use `case' in cannam@86: # $output_verbose_cmd can trigger glob expansion during the loop cannam@86: # eval without this substitution. cannam@86: output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`" cannam@86: cannam@86: for p in `eval $output_verbose_link_cmd`; do cannam@86: case $p in cannam@86: cannam@86: -L* | -R* | -l*) cannam@86: # Some compilers place space between "-{L,R}" and the path. cannam@86: # Remove the space. cannam@86: if test $p = "-L" \ cannam@86: || test $p = "-R"; then cannam@86: prev=$p cannam@86: continue cannam@86: else cannam@86: prev= cannam@86: fi cannam@86: cannam@86: if test "$pre_test_object_deps_done" = no; then cannam@86: case $p in cannam@86: -L* | -R*) cannam@86: # Internal compiler library paths should come after those cannam@86: # provided the user. The postdeps already come after the cannam@86: # user supplied libs so there is no need to process them. cannam@86: if test -z "$compiler_lib_search_path_CXX"; then cannam@86: compiler_lib_search_path_CXX="${prev}${p}" cannam@86: else cannam@86: compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" cannam@86: fi cannam@86: ;; cannam@86: # The "-l" case would never come before the object being cannam@86: # linked, so don't bother handling this case. cannam@86: esac cannam@86: else cannam@86: if test -z "$postdeps_CXX"; then cannam@86: postdeps_CXX="${prev}${p}" cannam@86: else cannam@86: postdeps_CXX="${postdeps_CXX} ${prev}${p}" cannam@86: fi cannam@86: fi cannam@86: ;; cannam@86: cannam@86: *.$objext) cannam@86: # This assumes that the test object file only shows up cannam@86: # once in the compiler output. cannam@86: if test "$p" = "conftest.$objext"; then cannam@86: pre_test_object_deps_done=yes cannam@86: continue cannam@86: fi cannam@86: cannam@86: if test "$pre_test_object_deps_done" = no; then cannam@86: if test -z "$predep_objects_CXX"; then cannam@86: predep_objects_CXX="$p" cannam@86: else cannam@86: predep_objects_CXX="$predep_objects_CXX $p" cannam@86: fi cannam@86: else cannam@86: if test -z "$postdep_objects_CXX"; then cannam@86: postdep_objects_CXX="$p" cannam@86: else cannam@86: postdep_objects_CXX="$postdep_objects_CXX $p" cannam@86: fi cannam@86: fi cannam@86: ;; cannam@86: cannam@86: *) ;; # Ignore the rest. cannam@86: cannam@86: esac cannam@86: done cannam@86: cannam@86: # Clean up. cannam@86: rm -f a.out a.exe cannam@86: else cannam@86: echo "libtool.m4: error: problem compiling CXX test program" cannam@86: fi cannam@86: cannam@86: $rm -f confest.$objext cannam@86: cannam@86: case " $postdeps_CXX " in cannam@86: *" -lc "*) archive_cmds_need_lc_CXX=no ;; cannam@86: esac cannam@86: cannam@86: lt_prog_compiler_wl_CXX= cannam@86: lt_prog_compiler_pic_CXX= cannam@86: lt_prog_compiler_static_CXX= cannam@86: cannam@86: echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 cannam@86: echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 cannam@86: cannam@86: # C++ specific cases for pic, static, wl, etc. cannam@86: if test "$GXX" = yes; then cannam@86: lt_prog_compiler_wl_CXX='-Wl,' cannam@86: lt_prog_compiler_static_CXX='-static' cannam@86: cannam@86: case $host_os in cannam@86: aix*) cannam@86: # All AIX code is PIC. cannam@86: if test "$host_cpu" = ia64; then cannam@86: # AIX 5 now supports IA64 processor cannam@86: lt_prog_compiler_static_CXX='-Bstatic' cannam@86: fi cannam@86: ;; cannam@86: amigaos*) cannam@86: # FIXME: we need at least 68020 code to build shared libraries, but cannam@86: # adding the `-m68020' flag to GCC prevents building anything better, cannam@86: # like `-m68040'. cannam@86: lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' cannam@86: ;; cannam@86: beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) cannam@86: # PIC is the default for these OSes. cannam@86: ;; cannam@86: mingw* | os2* | pw32*) cannam@86: # This hack is so that the source file can tell whether it is being cannam@86: # built for inclusion in a dll (and should export symbols for example). cannam@86: lt_prog_compiler_pic_CXX='-DDLL_EXPORT' cannam@86: ;; cannam@86: darwin* | rhapsody*) cannam@86: # PIC is the default on this platform cannam@86: # Common symbols not allowed in MH_DYLIB files cannam@86: lt_prog_compiler_pic_CXX='-fno-common' cannam@86: ;; cannam@86: *djgpp*) cannam@86: # DJGPP does not support shared libraries at all cannam@86: lt_prog_compiler_pic_CXX= cannam@86: ;; cannam@86: sysv4*MP*) cannam@86: if test -d /usr/nec; then cannam@86: lt_prog_compiler_pic_CXX=-Kconform_pic cannam@86: fi cannam@86: ;; cannam@86: hpux*) cannam@86: # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but cannam@86: # not for PA HP-UX. cannam@86: case "$host_cpu" in cannam@86: hppa*64*|ia64*) cannam@86: ;; cannam@86: *) cannam@86: lt_prog_compiler_pic_CXX='-fPIC' cannam@86: ;; cannam@86: esac cannam@86: ;; cannam@86: *) cannam@86: lt_prog_compiler_pic_CXX='-fPIC' cannam@86: ;; cannam@86: esac cannam@86: else cannam@86: case $host_os in cannam@86: aix4* | aix5*) cannam@86: # All AIX code is PIC. cannam@86: if test "$host_cpu" = ia64; then cannam@86: # AIX 5 now supports IA64 processor cannam@86: lt_prog_compiler_static_CXX='-Bstatic' cannam@86: else cannam@86: lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' cannam@86: fi cannam@86: ;; cannam@86: chorus*) cannam@86: case $cc_basename in cannam@86: cxch68*) cannam@86: # Green Hills C++ Compiler cannam@86: # _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" cannam@86: ;; cannam@86: esac cannam@86: ;; cannam@86: darwin*) cannam@86: # PIC is the default on this platform cannam@86: # Common symbols not allowed in MH_DYLIB files cannam@86: case $cc_basename in cannam@86: xlc*) cannam@86: lt_prog_compiler_pic_CXX='-qnocommon' cannam@86: lt_prog_compiler_wl_CXX='-Wl,' cannam@86: ;; cannam@86: esac cannam@86: ;; cannam@86: dgux*) cannam@86: case $cc_basename in cannam@86: ec++*) cannam@86: lt_prog_compiler_pic_CXX='-KPIC' cannam@86: ;; cannam@86: ghcx*) cannam@86: # Green Hills C++ Compiler cannam@86: lt_prog_compiler_pic_CXX='-pic' cannam@86: ;; cannam@86: *) cannam@86: ;; cannam@86: esac cannam@86: ;; cannam@86: freebsd* | kfreebsd*-gnu | dragonfly*) cannam@86: # FreeBSD uses GNU C++ cannam@86: ;; cannam@86: hpux9* | hpux10* | hpux11*) cannam@86: case $cc_basename in cannam@86: CC*) cannam@86: lt_prog_compiler_wl_CXX='-Wl,' cannam@86: lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive" cannam@86: if test "$host_cpu" != ia64; then cannam@86: lt_prog_compiler_pic_CXX='+Z' cannam@86: fi cannam@86: ;; cannam@86: aCC*) cannam@86: lt_prog_compiler_wl_CXX='-Wl,' cannam@86: lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive" cannam@86: case "$host_cpu" in cannam@86: hppa*64*|ia64*) cannam@86: # +Z the default cannam@86: ;; cannam@86: *) cannam@86: lt_prog_compiler_pic_CXX='+Z' cannam@86: ;; cannam@86: esac cannam@86: ;; cannam@86: *) cannam@86: ;; cannam@86: esac cannam@86: ;; cannam@86: irix5* | irix6* | nonstopux*) cannam@86: case $cc_basename in cannam@86: CC*) cannam@86: lt_prog_compiler_wl_CXX='-Wl,' cannam@86: lt_prog_compiler_static_CXX='-non_shared' cannam@86: # CC pic flag -KPIC is the default. cannam@86: ;; cannam@86: *) cannam@86: ;; cannam@86: esac cannam@86: ;; cannam@86: linux*) cannam@86: case $cc_basename in cannam@86: KCC*) cannam@86: # KAI C++ Compiler cannam@86: lt_prog_compiler_wl_CXX='--backend -Wl,' cannam@86: lt_prog_compiler_pic_CXX='-fPIC' cannam@86: ;; cannam@86: icpc* | ecpc*) cannam@86: # Intel C++ cannam@86: lt_prog_compiler_wl_CXX='-Wl,' cannam@86: lt_prog_compiler_pic_CXX='-KPIC' cannam@86: lt_prog_compiler_static_CXX='-static' cannam@86: ;; cannam@86: pgCC*) cannam@86: # Portland Group C++ compiler. cannam@86: lt_prog_compiler_wl_CXX='-Wl,' cannam@86: lt_prog_compiler_pic_CXX='-fpic' cannam@86: lt_prog_compiler_static_CXX='-static' cannam@86: ;; cannam@86: cxx*) cannam@86: # Compaq C++ cannam@86: # Make sure the PIC flag is empty. It appears that all Alpha cannam@86: # Linux and Compaq Tru64 Unix objects are PIC. cannam@86: lt_prog_compiler_pic_CXX= cannam@86: lt_prog_compiler_static_CXX='-non_shared' cannam@86: ;; cannam@86: *) cannam@86: ;; cannam@86: esac cannam@86: ;; cannam@86: lynxos*) cannam@86: ;; cannam@86: m88k*) cannam@86: ;; cannam@86: mvs*) cannam@86: case $cc_basename in cannam@86: cxx*) cannam@86: lt_prog_compiler_pic_CXX='-W c,exportall' cannam@86: ;; cannam@86: *) cannam@86: ;; cannam@86: esac cannam@86: ;; cannam@86: netbsd*) cannam@86: ;; cannam@86: osf3* | osf4* | osf5*) cannam@86: case $cc_basename in cannam@86: KCC*) cannam@86: lt_prog_compiler_wl_CXX='--backend -Wl,' cannam@86: ;; cannam@86: RCC*) cannam@86: # Rational C++ 2.4.1 cannam@86: lt_prog_compiler_pic_CXX='-pic' cannam@86: ;; cannam@86: cxx*) cannam@86: # Digital/Compaq C++ cannam@86: lt_prog_compiler_wl_CXX='-Wl,' cannam@86: # Make sure the PIC flag is empty. It appears that all Alpha cannam@86: # Linux and Compaq Tru64 Unix objects are PIC. cannam@86: lt_prog_compiler_pic_CXX= cannam@86: lt_prog_compiler_static_CXX='-non_shared' cannam@86: ;; cannam@86: *) cannam@86: ;; cannam@86: esac cannam@86: ;; cannam@86: psos*) cannam@86: ;; cannam@86: sco*) cannam@86: case $cc_basename in cannam@86: CC*) cannam@86: lt_prog_compiler_pic_CXX='-fPIC' cannam@86: ;; cannam@86: *) cannam@86: ;; cannam@86: esac cannam@86: ;; cannam@86: solaris*) cannam@86: case $cc_basename in cannam@86: CC*) cannam@86: # Sun C++ 4.2, 5.x and Centerline C++ cannam@86: lt_prog_compiler_pic_CXX='-KPIC' cannam@86: lt_prog_compiler_static_CXX='-Bstatic' cannam@86: lt_prog_compiler_wl_CXX='-Qoption ld ' cannam@86: ;; cannam@86: gcx*) cannam@86: # Green Hills C++ Compiler cannam@86: lt_prog_compiler_pic_CXX='-PIC' cannam@86: ;; cannam@86: *) cannam@86: ;; cannam@86: esac cannam@86: ;; cannam@86: sunos4*) cannam@86: case $cc_basename in cannam@86: CC*) cannam@86: # Sun C++ 4.x cannam@86: lt_prog_compiler_pic_CXX='-pic' cannam@86: lt_prog_compiler_static_CXX='-Bstatic' cannam@86: ;; cannam@86: lcc*) cannam@86: # Lucid cannam@86: lt_prog_compiler_pic_CXX='-pic' cannam@86: ;; cannam@86: *) cannam@86: ;; cannam@86: esac cannam@86: ;; cannam@86: tandem*) cannam@86: case $cc_basename in cannam@86: NCC*) cannam@86: # NonStop-UX NCC 3.20 cannam@86: lt_prog_compiler_pic_CXX='-KPIC' cannam@86: ;; cannam@86: *) cannam@86: ;; cannam@86: esac cannam@86: ;; cannam@86: unixware*) cannam@86: ;; cannam@86: vxworks*) cannam@86: ;; cannam@86: *) cannam@86: lt_prog_compiler_can_build_shared_CXX=no cannam@86: ;; cannam@86: esac cannam@86: fi cannam@86: cannam@86: echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5 cannam@86: echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6 cannam@86: cannam@86: # cannam@86: # Check to make sure the PIC flag actually works. cannam@86: # cannam@86: if test -n "$lt_prog_compiler_pic_CXX"; then cannam@86: cannam@86: echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 cannam@86: echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6 cannam@86: if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then cannam@86: echo $ECHO_N "(cached) $ECHO_C" >&6 cannam@86: else cannam@86: lt_prog_compiler_pic_works_CXX=no cannam@86: ac_outfile=conftest.$ac_objext cannam@86: printf "$lt_simple_compile_test_code" > conftest.$ac_ext cannam@86: lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" cannam@86: # Insert the option either (1) after the last *FLAGS variable, or cannam@86: # (2) before a word containing "conftest.", or (3) at the end. cannam@86: # Note that $ac_compile itself does not contain backslashes and begins cannam@86: # with a dollar sign (not a hyphen), so the echo should work correctly. cannam@86: # The option is referenced via a variable to avoid confusing sed. cannam@86: lt_compile=`echo "$ac_compile" | $SED \ cannam@86: -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ cannam@86: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ cannam@86: -e 's:$: $lt_compiler_flag:'` cannam@86: (eval echo "\"\$as_me:11261: $lt_compile\"" >&5) cannam@86: (eval "$lt_compile" 2>conftest.err) cannam@86: ac_status=$? cannam@86: cat conftest.err >&5 cannam@86: echo "$as_me:11265: \$? = $ac_status" >&5 cannam@86: if (exit $ac_status) && test -s "$ac_outfile"; then cannam@86: # The compiler can only warn and ignore the option if not recognized cannam@86: # So say no if there are warnings other than the usual output. cannam@86: $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp cannam@86: $SED '/^$/d' conftest.err >conftest.er2 cannam@86: if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then cannam@86: lt_prog_compiler_pic_works_CXX=yes cannam@86: fi cannam@86: fi cannam@86: $rm conftest* cannam@86: cannam@86: fi cannam@86: echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5 cannam@86: echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6 cannam@86: cannam@86: if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then cannam@86: case $lt_prog_compiler_pic_CXX in cannam@86: "" | " "*) ;; cannam@86: *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; cannam@86: esac cannam@86: else cannam@86: lt_prog_compiler_pic_CXX= cannam@86: lt_prog_compiler_can_build_shared_CXX=no cannam@86: fi cannam@86: cannam@86: fi cannam@86: case "$host_os" in cannam@86: # For platforms which do not support PIC, -DPIC is meaningless: cannam@86: *djgpp*) cannam@86: lt_prog_compiler_pic_CXX= cannam@86: ;; cannam@86: *) cannam@86: lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" cannam@86: ;; cannam@86: esac cannam@86: cannam@86: echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 cannam@86: echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 cannam@86: if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then cannam@86: echo $ECHO_N "(cached) $ECHO_C" >&6 cannam@86: else cannam@86: lt_cv_prog_compiler_c_o_CXX=no cannam@86: $rm -r conftest 2>/dev/null cannam@86: mkdir conftest cannam@86: cd conftest cannam@86: mkdir out cannam@86: printf "$lt_simple_compile_test_code" > conftest.$ac_ext cannam@86: cannam@86: lt_compiler_flag="-o out/conftest2.$ac_objext" cannam@86: # Insert the option either (1) after the last *FLAGS variable, or cannam@86: # (2) before a word containing "conftest.", or (3) at the end. cannam@86: # Note that $ac_compile itself does not contain backslashes and begins cannam@86: # with a dollar sign (not a hyphen), so the echo should work correctly. cannam@86: lt_compile=`echo "$ac_compile" | $SED \ cannam@86: -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ cannam@86: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ cannam@86: -e 's:$: $lt_compiler_flag:'` cannam@86: (eval echo "\"\$as_me:11323: $lt_compile\"" >&5) cannam@86: (eval "$lt_compile" 2>out/conftest.err) cannam@86: ac_status=$? cannam@86: cat out/conftest.err >&5 cannam@86: echo "$as_me:11327: \$? = $ac_status" >&5 cannam@86: if (exit $ac_status) && test -s out/conftest2.$ac_objext cannam@86: then cannam@86: # The compiler can only warn and ignore the option if not recognized cannam@86: # So say no if there are warnings cannam@86: $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp cannam@86: $SED '/^$/d' out/conftest.err >out/conftest.er2 cannam@86: if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then cannam@86: lt_cv_prog_compiler_c_o_CXX=yes cannam@86: fi cannam@86: fi cannam@86: chmod u+w . cannam@86: $rm conftest* cannam@86: # SGI C++ compiler will create directory out/ii_files/ for cannam@86: # template instantiation cannam@86: test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files cannam@86: $rm out/* && rmdir out cannam@86: cd .. cannam@86: rmdir conftest cannam@86: $rm conftest* cannam@86: cannam@86: fi cannam@86: echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5 cannam@86: echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6 cannam@86: cannam@86: cannam@86: hard_links="nottested" cannam@86: if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then cannam@86: # do not overwrite the value of need_locks provided by the user cannam@86: echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 cannam@86: echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 cannam@86: hard_links=yes cannam@86: $rm conftest* cannam@86: ln conftest.a conftest.b 2>/dev/null && hard_links=no cannam@86: touch conftest.a cannam@86: ln conftest.a conftest.b 2>&5 || hard_links=no cannam@86: ln conftest.a conftest.b 2>/dev/null && hard_links=no cannam@86: echo "$as_me:$LINENO: result: $hard_links" >&5 cannam@86: echo "${ECHO_T}$hard_links" >&6 cannam@86: if test "$hard_links" = no; then cannam@86: { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 cannam@86: echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} cannam@86: need_locks=warn cannam@86: fi cannam@86: else cannam@86: need_locks=no cannam@86: fi cannam@86: cannam@86: echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 cannam@86: echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 cannam@86: cannam@86: export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' cannam@86: case $host_os in cannam@86: aix4* | aix5*) cannam@86: # If we're using GNU nm, then we don't want the "-C" option. cannam@86: # -C means demangle to AIX nm, but means don't demangle with GNU nm cannam@86: if $NM -V 2>&1 | grep 'GNU' > /dev/null; then cannam@86: 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' cannam@86: else cannam@86: 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' cannam@86: fi cannam@86: ;; cannam@86: pw32*) cannam@86: export_symbols_cmds_CXX="$ltdll_cmds" cannam@86: ;; cannam@86: cygwin* | mingw*) cannam@86: export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([^ ]*\) [^ ]*/\1 DATA/;/^I /d;/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' cannam@86: ;; cannam@86: *) cannam@86: export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' cannam@86: ;; cannam@86: esac cannam@86: cannam@86: echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 cannam@86: echo "${ECHO_T}$ld_shlibs_CXX" >&6 cannam@86: test "$ld_shlibs_CXX" = no && can_build_shared=no cannam@86: cannam@86: variables_saved_for_relink="PATH $shlibpath_var $runpath_var" cannam@86: if test "$GCC" = yes; then cannam@86: variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" cannam@86: fi cannam@86: cannam@86: # cannam@86: # Do we need to explicitly link libc? cannam@86: # cannam@86: case "x$archive_cmds_need_lc_CXX" in cannam@86: x|xyes) cannam@86: # Assume -lc should be added cannam@86: archive_cmds_need_lc_CXX=yes cannam@86: cannam@86: if test "$enable_shared" = yes && test "$GCC" = yes; then cannam@86: case $archive_cmds_CXX in cannam@86: *'~'*) cannam@86: # FIXME: we may have to deal with multi-command sequences. cannam@86: ;; cannam@86: '$CC '*) cannam@86: # Test whether the compiler implicitly links with -lc since on some cannam@86: # systems, -lgcc has to come before -lc. If gcc already passes -lc cannam@86: # to ld, don't add -lc before -lgcc. cannam@86: echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 cannam@86: echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 cannam@86: $rm conftest* cannam@86: printf "$lt_simple_compile_test_code" > conftest.$ac_ext cannam@86: cannam@86: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 cannam@86: (eval $ac_compile) 2>&5 cannam@86: ac_status=$? cannam@86: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@86: (exit $ac_status); } 2>conftest.err; then cannam@86: soname=conftest cannam@86: lib=conftest cannam@86: libobjs=conftest.$ac_objext cannam@86: deplibs= cannam@86: wl=$lt_prog_compiler_wl_CXX cannam@86: compiler_flags=-v cannam@86: linker_flags=-v cannam@86: verstring= cannam@86: output_objdir=. cannam@86: libname=conftest cannam@86: lt_save_allow_undefined_flag=$allow_undefined_flag_CXX cannam@86: allow_undefined_flag_CXX= cannam@86: if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 cannam@86: (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 cannam@86: ac_status=$? cannam@86: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@86: (exit $ac_status); } cannam@86: then cannam@86: archive_cmds_need_lc_CXX=no cannam@86: else cannam@86: archive_cmds_need_lc_CXX=yes cannam@86: fi cannam@86: allow_undefined_flag_CXX=$lt_save_allow_undefined_flag cannam@86: else cannam@86: cat conftest.err 1>&5 cannam@86: fi cannam@86: $rm conftest* cannam@86: echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5 cannam@86: echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6 cannam@86: ;; cannam@86: esac cannam@86: fi cannam@86: ;; cannam@86: esac cannam@86: cannam@86: echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 cannam@86: echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 cannam@86: library_names_spec= cannam@86: libname_spec='lib$name' cannam@86: soname_spec= cannam@86: shrext_cmds=".so" cannam@86: postinstall_cmds= cannam@86: postuninstall_cmds= cannam@86: finish_cmds= cannam@86: finish_eval= cannam@86: shlibpath_var= cannam@86: shlibpath_overrides_runpath=unknown cannam@86: version_type=none cannam@86: dynamic_linker="$host_os ld.so" cannam@86: sys_lib_dlsearch_path_spec="/lib /usr/lib" cannam@86: if test "$GCC" = yes; then cannam@86: sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` cannam@86: if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then cannam@86: # if the path contains ";" then we assume it to be the separator cannam@86: # otherwise default to the standard path separator (i.e. ":") - it is cannam@86: # assumed that no part of a normal pathname contains ";" but that should cannam@86: # okay in the real world where ";" in dirpaths is itself problematic. cannam@86: sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` cannam@86: else cannam@86: sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` cannam@86: fi cannam@86: else cannam@86: sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" cannam@86: fi cannam@86: need_lib_prefix=unknown cannam@86: hardcode_into_libs=no cannam@86: cannam@86: # when you set need_version to no, make sure it does not cause -set_version cannam@86: # flags to be left without arguments cannam@86: need_version=unknown cannam@86: cannam@86: case $host_os in cannam@86: aix3*) cannam@86: version_type=linux cannam@86: library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' cannam@86: shlibpath_var=LIBPATH cannam@86: cannam@86: # AIX 3 has no versioning support, so we append a major version to the name. cannam@86: soname_spec='${libname}${release}${shared_ext}$major' cannam@86: ;; cannam@86: cannam@86: aix4* | aix5*) cannam@86: version_type=linux cannam@86: need_lib_prefix=no cannam@86: need_version=no cannam@86: hardcode_into_libs=yes cannam@86: if test "$host_cpu" = ia64; then cannam@86: # AIX 5 supports IA64 cannam@86: library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' cannam@86: shlibpath_var=LD_LIBRARY_PATH cannam@86: else cannam@86: # With GCC up to 2.95.x, collect2 would create an import file cannam@86: # for dependence libraries. The import file would start with cannam@86: # the line `#! .'. This would cause the generated library to cannam@86: # depend on `.', always an invalid library. This was fixed in cannam@86: # development snapshots of GCC prior to 3.0. cannam@86: case $host_os in cannam@86: aix4 | aix4.[01] | aix4.[01].*) cannam@86: if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' cannam@86: echo ' yes ' cannam@86: echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then cannam@86: : cannam@86: else cannam@86: can_build_shared=no cannam@86: fi cannam@86: ;; cannam@86: esac cannam@86: # AIX (on Power*) has no versioning support, so currently we can not hardcode correct cannam@86: # soname into executable. Probably we can add versioning support to cannam@86: # collect2, so additional links can be useful in future. cannam@86: if test "$aix_use_runtimelinking" = yes; then cannam@86: # If using run time linking (on AIX 4.2 or later) use lib.so cannam@86: # instead of lib.a to let people know that these are not cannam@86: # typical AIX shared libraries. cannam@86: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' cannam@86: else cannam@86: # We preserve .a as extension for shared libraries through AIX4.2 cannam@86: # and later when we are not doing run time linking. cannam@86: library_names_spec='${libname}${release}.a $libname.a' cannam@86: soname_spec='${libname}${release}${shared_ext}$major' cannam@86: fi cannam@86: shlibpath_var=LIBPATH cannam@86: fi cannam@86: ;; cannam@86: cannam@86: amigaos*) cannam@86: library_names_spec='$libname.ixlibrary $libname.a' cannam@86: # Create ${libname}_ixlibrary.a entries in /sys/libs. cannam@86: 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' cannam@86: ;; cannam@86: cannam@86: beos*) cannam@86: library_names_spec='${libname}${shared_ext}' cannam@86: dynamic_linker="$host_os ld.so" cannam@86: shlibpath_var=LIBRARY_PATH cannam@86: ;; cannam@86: cannam@86: bsdi[45]*) cannam@86: version_type=linux cannam@86: need_version=no cannam@86: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' cannam@86: soname_spec='${libname}${release}${shared_ext}$major' cannam@86: finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' cannam@86: shlibpath_var=LD_LIBRARY_PATH cannam@86: sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" cannam@86: sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" cannam@86: # the default ld.so.conf also contains /usr/contrib/lib and cannam@86: # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow cannam@86: # libtool to hard-code these into programs cannam@86: ;; cannam@86: cannam@86: cygwin* | mingw* | pw32*) cannam@86: version_type=windows cannam@86: shrext_cmds=".dll" cannam@86: need_version=no cannam@86: need_lib_prefix=no cannam@86: cannam@86: case $GCC,$host_os in cannam@86: yes,cygwin* | yes,mingw* | yes,pw32*) cannam@86: library_names_spec='$libname.dll.a' cannam@86: # DLL is installed to $(libdir)/../bin by postinstall_cmds cannam@86: postinstall_cmds='base_file=`basename \${file}`~ cannam@86: dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ cannam@86: dldir=$destdir/`dirname \$dlpath`~ cannam@86: test -d \$dldir || mkdir -p \$dldir~ cannam@86: $install_prog $dir/$dlname \$dldir/$dlname' cannam@86: postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ cannam@86: dlpath=$dir/\$dldll~ cannam@86: $rm \$dlpath' cannam@86: shlibpath_overrides_runpath=yes cannam@86: cannam@86: case $host_os in cannam@86: cygwin*) cannam@86: # Cygwin DLLs use 'cyg' prefix rather than 'lib' cannam@86: soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' cannam@86: sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" cannam@86: ;; cannam@86: mingw*) cannam@86: # MinGW DLLs use traditional 'lib' prefix cannam@86: soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' cannam@86: sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` cannam@86: if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then cannam@86: # It is most probably a Windows format PATH printed by cannam@86: # mingw gcc, but we are running on Cygwin. Gcc prints its search cannam@86: # path with ; separators, and with drive letters. We can handle the cannam@86: # drive letters (cygwin fileutils understands them), so leave them, cannam@86: # especially as we might pass files found there to a mingw objdump, cannam@86: # which wouldn't understand a cygwinified path. Ahh. cannam@86: sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` cannam@86: else cannam@86: sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` cannam@86: fi cannam@86: ;; cannam@86: pw32*) cannam@86: # pw32 DLLs use 'pw' prefix rather than 'lib' cannam@86: library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' cannam@86: ;; cannam@86: esac cannam@86: ;; cannam@86: cannam@86: *) cannam@86: library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' cannam@86: ;; cannam@86: esac cannam@86: dynamic_linker='Win32 ld.exe' cannam@86: # FIXME: first we should search . and the directory the executable is in cannam@86: shlibpath_var=PATH cannam@86: ;; cannam@86: cannam@86: darwin* | rhapsody*) cannam@86: dynamic_linker="$host_os dyld" cannam@86: version_type=darwin cannam@86: need_lib_prefix=no cannam@86: need_version=no cannam@86: library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' cannam@86: soname_spec='${libname}${release}${major}$shared_ext' cannam@86: shlibpath_overrides_runpath=yes cannam@86: shlibpath_var=DYLD_LIBRARY_PATH cannam@86: shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)' cannam@86: # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. cannam@86: if test "$GCC" = yes; then cannam@86: 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"` cannam@86: else cannam@86: sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' cannam@86: fi cannam@86: sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' cannam@86: ;; cannam@86: cannam@86: dgux*) cannam@86: version_type=linux cannam@86: need_lib_prefix=no cannam@86: need_version=no cannam@86: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' cannam@86: soname_spec='${libname}${release}${shared_ext}$major' cannam@86: shlibpath_var=LD_LIBRARY_PATH cannam@86: ;; cannam@86: cannam@86: freebsd1*) cannam@86: dynamic_linker=no cannam@86: ;; cannam@86: cannam@86: kfreebsd*-gnu) cannam@86: version_type=linux cannam@86: need_lib_prefix=no cannam@86: need_version=no cannam@86: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' cannam@86: soname_spec='${libname}${release}${shared_ext}$major' cannam@86: shlibpath_var=LD_LIBRARY_PATH cannam@86: shlibpath_overrides_runpath=no cannam@86: hardcode_into_libs=yes cannam@86: dynamic_linker='GNU ld.so' cannam@86: ;; cannam@86: cannam@86: freebsd* | dragonfly*) cannam@86: # DragonFly does not have aout. When/if they implement a new cannam@86: # versioning mechanism, adjust this. cannam@86: objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` cannam@86: version_type=freebsd-$objformat cannam@86: case $version_type in cannam@86: freebsd-elf*) cannam@86: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' cannam@86: need_version=no cannam@86: need_lib_prefix=no cannam@86: ;; cannam@86: freebsd-*) cannam@86: library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' cannam@86: need_version=yes cannam@86: ;; cannam@86: esac cannam@86: shlibpath_var=LD_LIBRARY_PATH cannam@86: case $host_os in cannam@86: freebsd2*) cannam@86: shlibpath_overrides_runpath=yes cannam@86: ;; cannam@86: freebsd3.[01]* | freebsdelf3.[01]*) cannam@86: shlibpath_overrides_runpath=yes cannam@86: hardcode_into_libs=yes cannam@86: ;; cannam@86: *) # from 3.2 on cannam@86: shlibpath_overrides_runpath=no cannam@86: hardcode_into_libs=yes cannam@86: ;; cannam@86: esac cannam@86: ;; cannam@86: cannam@86: gnu*) cannam@86: version_type=linux cannam@86: need_lib_prefix=no cannam@86: need_version=no cannam@86: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' cannam@86: soname_spec='${libname}${release}${shared_ext}$major' cannam@86: shlibpath_var=LD_LIBRARY_PATH cannam@86: hardcode_into_libs=yes cannam@86: ;; cannam@86: cannam@86: hpux9* | hpux10* | hpux11*) cannam@86: # Give a soname corresponding to the major version so that dld.sl refuses to cannam@86: # link against other versions. cannam@86: version_type=sunos cannam@86: need_lib_prefix=no cannam@86: need_version=no cannam@86: case "$host_cpu" in cannam@86: ia64*) cannam@86: shrext_cmds='.so' cannam@86: hardcode_into_libs=yes cannam@86: dynamic_linker="$host_os dld.so" cannam@86: shlibpath_var=LD_LIBRARY_PATH cannam@86: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. cannam@86: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' cannam@86: soname_spec='${libname}${release}${shared_ext}$major' cannam@86: if test "X$HPUX_IA64_MODE" = X32; then cannam@86: sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" cannam@86: else cannam@86: sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" cannam@86: fi cannam@86: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec cannam@86: ;; cannam@86: hppa*64*) cannam@86: shrext_cmds='.sl' cannam@86: hardcode_into_libs=yes cannam@86: dynamic_linker="$host_os dld.sl" cannam@86: shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH cannam@86: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. cannam@86: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' cannam@86: soname_spec='${libname}${release}${shared_ext}$major' cannam@86: sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" cannam@86: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec cannam@86: ;; cannam@86: *) cannam@86: shrext_cmds='.sl' cannam@86: dynamic_linker="$host_os dld.sl" cannam@86: shlibpath_var=SHLIB_PATH cannam@86: shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH cannam@86: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' cannam@86: soname_spec='${libname}${release}${shared_ext}$major' cannam@86: ;; cannam@86: esac cannam@86: # HP-UX runs *really* slowly unless shared libraries are mode 555. cannam@86: postinstall_cmds='chmod 555 $lib' cannam@86: ;; cannam@86: cannam@86: irix5* | irix6* | nonstopux*) cannam@86: case $host_os in cannam@86: nonstopux*) version_type=nonstopux ;; cannam@86: *) cannam@86: if test "$lt_cv_prog_gnu_ld" = yes; then cannam@86: version_type=linux cannam@86: else cannam@86: version_type=irix cannam@86: fi ;; cannam@86: esac cannam@86: need_lib_prefix=no cannam@86: need_version=no cannam@86: soname_spec='${libname}${release}${shared_ext}$major' cannam@86: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' cannam@86: case $host_os in cannam@86: irix5* | nonstopux*) cannam@86: libsuff= shlibsuff= cannam@86: ;; cannam@86: *) cannam@86: case $LD in # libtool.m4 will add one of these switches to LD cannam@86: *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") cannam@86: libsuff= shlibsuff= libmagic=32-bit;; cannam@86: *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") cannam@86: libsuff=32 shlibsuff=N32 libmagic=N32;; cannam@86: *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") cannam@86: libsuff=64 shlibsuff=64 libmagic=64-bit;; cannam@86: *) libsuff= shlibsuff= libmagic=never-match;; cannam@86: esac cannam@86: ;; cannam@86: esac cannam@86: shlibpath_var=LD_LIBRARY${shlibsuff}_PATH cannam@86: shlibpath_overrides_runpath=no cannam@86: sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" cannam@86: sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" cannam@86: hardcode_into_libs=yes cannam@86: ;; cannam@86: cannam@86: # No shared lib support for Linux oldld, aout, or coff. cannam@86: linux*oldld* | linux*aout* | linux*coff*) cannam@86: dynamic_linker=no cannam@86: ;; cannam@86: cannam@86: # This must be Linux ELF. cannam@86: linux*) cannam@86: version_type=linux cannam@86: need_lib_prefix=no cannam@86: need_version=no cannam@86: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' cannam@86: soname_spec='${libname}${release}${shared_ext}$major' cannam@86: finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' cannam@86: shlibpath_var=LD_LIBRARY_PATH cannam@86: shlibpath_overrides_runpath=no cannam@86: # This implies no fast_install, which is unacceptable. cannam@86: # Some rework will be needed to allow for fast_install cannam@86: # before this can be enabled. cannam@86: hardcode_into_libs=yes cannam@86: cannam@86: # find out which ABI we are using cannam@86: libsuff= cannam@86: case "$host_cpu" in cannam@86: x86_64*|s390x*|powerpc64*) cannam@86: echo '#line 11838 "configure"' > conftest.$ac_ext cannam@86: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 cannam@86: (eval $ac_compile) 2>&5 cannam@86: ac_status=$? cannam@86: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@86: (exit $ac_status); }; then cannam@86: case `/usr/bin/file conftest.$ac_objext` in cannam@86: *64-bit*) cannam@86: libsuff=64 cannam@86: sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}" cannam@86: ;; cannam@86: esac cannam@86: fi cannam@86: rm -rf conftest* cannam@86: ;; cannam@86: esac cannam@86: cannam@86: # Append ld.so.conf contents to the search path cannam@86: if test -f /etc/ld.so.conf; then cannam@86: lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,\t]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` cannam@86: sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra" cannam@86: fi cannam@86: cannam@86: # We used to test for /lib/ld.so.1 and disable shared libraries on cannam@86: # powerpc, because MkLinux only supported shared libraries with the cannam@86: # GNU dynamic linker. Since this was broken with cross compilers, cannam@86: # most powerpc-linux boxes support dynamic linking these days and cannam@86: # people can always --disable-shared, the test was removed, and we cannam@86: # assume the GNU/Linux dynamic linker is in use. cannam@86: dynamic_linker='GNU/Linux ld.so' cannam@86: ;; cannam@86: cannam@86: knetbsd*-gnu) cannam@86: version_type=linux cannam@86: need_lib_prefix=no cannam@86: need_version=no cannam@86: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' cannam@86: soname_spec='${libname}${release}${shared_ext}$major' cannam@86: shlibpath_var=LD_LIBRARY_PATH cannam@86: shlibpath_overrides_runpath=no cannam@86: hardcode_into_libs=yes cannam@86: dynamic_linker='GNU ld.so' cannam@86: ;; cannam@86: cannam@86: netbsd*) cannam@86: version_type=sunos cannam@86: need_lib_prefix=no cannam@86: need_version=no cannam@86: if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then cannam@86: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' cannam@86: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' cannam@86: dynamic_linker='NetBSD (a.out) ld.so' cannam@86: else cannam@86: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' cannam@86: soname_spec='${libname}${release}${shared_ext}$major' cannam@86: dynamic_linker='NetBSD ld.elf_so' cannam@86: fi cannam@86: shlibpath_var=LD_LIBRARY_PATH cannam@86: shlibpath_overrides_runpath=yes cannam@86: hardcode_into_libs=yes cannam@86: ;; cannam@86: cannam@86: newsos6) cannam@86: version_type=linux cannam@86: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' cannam@86: shlibpath_var=LD_LIBRARY_PATH cannam@86: shlibpath_overrides_runpath=yes cannam@86: ;; cannam@86: cannam@86: nto-qnx*) cannam@86: version_type=linux cannam@86: need_lib_prefix=no cannam@86: need_version=no cannam@86: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' cannam@86: soname_spec='${libname}${release}${shared_ext}$major' cannam@86: shlibpath_var=LD_LIBRARY_PATH cannam@86: shlibpath_overrides_runpath=yes cannam@86: ;; cannam@86: cannam@86: openbsd*) cannam@86: version_type=sunos cannam@86: need_lib_prefix=no cannam@86: need_version=no cannam@86: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' cannam@86: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' cannam@86: shlibpath_var=LD_LIBRARY_PATH cannam@86: if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then cannam@86: case $host_os in cannam@86: openbsd2.[89] | openbsd2.[89].*) cannam@86: shlibpath_overrides_runpath=no cannam@86: ;; cannam@86: *) cannam@86: shlibpath_overrides_runpath=yes cannam@86: ;; cannam@86: esac cannam@86: else cannam@86: shlibpath_overrides_runpath=yes cannam@86: fi cannam@86: ;; cannam@86: cannam@86: os2*) cannam@86: libname_spec='$name' cannam@86: shrext_cmds=".dll" cannam@86: need_lib_prefix=no cannam@86: library_names_spec='$libname${shared_ext} $libname.a' cannam@86: dynamic_linker='OS/2 ld.exe' cannam@86: shlibpath_var=LIBPATH cannam@86: ;; cannam@86: cannam@86: osf3* | osf4* | osf5*) cannam@86: version_type=osf cannam@86: need_lib_prefix=no cannam@86: need_version=no cannam@86: soname_spec='${libname}${release}${shared_ext}$major' cannam@86: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' cannam@86: shlibpath_var=LD_LIBRARY_PATH cannam@86: sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" cannam@86: sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" cannam@86: ;; cannam@86: cannam@86: sco3.2v5*) cannam@86: version_type=osf cannam@86: soname_spec='${libname}${release}${shared_ext}$major' cannam@86: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' cannam@86: shlibpath_var=LD_LIBRARY_PATH cannam@86: ;; cannam@86: cannam@86: solaris*) cannam@86: version_type=linux cannam@86: need_lib_prefix=no cannam@86: need_version=no cannam@86: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' cannam@86: soname_spec='${libname}${release}${shared_ext}$major' cannam@86: shlibpath_var=LD_LIBRARY_PATH cannam@86: shlibpath_overrides_runpath=yes cannam@86: hardcode_into_libs=yes cannam@86: # ldd complains unless libraries are executable cannam@86: postinstall_cmds='chmod +x $lib' cannam@86: ;; cannam@86: cannam@86: sunos4*) cannam@86: version_type=sunos cannam@86: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' cannam@86: finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' cannam@86: shlibpath_var=LD_LIBRARY_PATH cannam@86: shlibpath_overrides_runpath=yes cannam@86: if test "$with_gnu_ld" = yes; then cannam@86: need_lib_prefix=no cannam@86: fi cannam@86: need_version=yes cannam@86: ;; cannam@86: cannam@86: sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) cannam@86: version_type=linux cannam@86: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' cannam@86: soname_spec='${libname}${release}${shared_ext}$major' cannam@86: shlibpath_var=LD_LIBRARY_PATH cannam@86: case $host_vendor in cannam@86: sni) cannam@86: shlibpath_overrides_runpath=no cannam@86: need_lib_prefix=no cannam@86: export_dynamic_flag_spec='${wl}-Blargedynsym' cannam@86: runpath_var=LD_RUN_PATH cannam@86: ;; cannam@86: siemens) cannam@86: need_lib_prefix=no cannam@86: ;; cannam@86: motorola) cannam@86: need_lib_prefix=no cannam@86: need_version=no cannam@86: shlibpath_overrides_runpath=no cannam@86: sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' cannam@86: ;; cannam@86: esac cannam@86: ;; cannam@86: cannam@86: sysv4*MP*) cannam@86: if test -d /usr/nec ;then cannam@86: version_type=linux cannam@86: library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' cannam@86: soname_spec='$libname${shared_ext}.$major' cannam@86: shlibpath_var=LD_LIBRARY_PATH cannam@86: fi cannam@86: ;; cannam@86: cannam@86: uts4*) cannam@86: version_type=linux cannam@86: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' cannam@86: soname_spec='${libname}${release}${shared_ext}$major' cannam@86: shlibpath_var=LD_LIBRARY_PATH cannam@86: ;; cannam@86: cannam@86: *) cannam@86: dynamic_linker=no cannam@86: ;; cannam@86: esac cannam@86: echo "$as_me:$LINENO: result: $dynamic_linker" >&5 cannam@86: echo "${ECHO_T}$dynamic_linker" >&6 cannam@86: test "$dynamic_linker" = no && can_build_shared=no cannam@86: cannam@86: echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 cannam@86: echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 cannam@86: hardcode_action_CXX= cannam@86: if test -n "$hardcode_libdir_flag_spec_CXX" || \ cannam@86: test -n "$runpath_var_CXX" || \ cannam@86: test "X$hardcode_automatic_CXX" = "Xyes" ; then cannam@86: cannam@86: # We can hardcode non-existant directories. cannam@86: if test "$hardcode_direct_CXX" != no && cannam@86: # If the only mechanism to avoid hardcoding is shlibpath_var, we cannam@86: # have to relink, otherwise we might link with an installed library cannam@86: # when we should be linking with a yet-to-be-installed one cannam@86: ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no && cannam@86: test "$hardcode_minus_L_CXX" != no; then cannam@86: # Linking always hardcodes the temporary library directory. cannam@86: hardcode_action_CXX=relink cannam@86: else cannam@86: # We can link without hardcoding, and we can hardcode nonexisting dirs. cannam@86: hardcode_action_CXX=immediate cannam@86: fi cannam@86: else cannam@86: # We cannot hardcode anything, or else we can only hardcode existing cannam@86: # directories. cannam@86: hardcode_action_CXX=unsupported cannam@86: fi cannam@86: echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5 cannam@86: echo "${ECHO_T}$hardcode_action_CXX" >&6 cannam@86: cannam@86: if test "$hardcode_action_CXX" = relink; then cannam@86: # Fast installation is not supported cannam@86: enable_fast_install=no cannam@86: elif test "$shlibpath_overrides_runpath" = yes || cannam@86: test "$enable_shared" = no; then cannam@86: # Fast installation is not necessary cannam@86: enable_fast_install=needless cannam@86: fi cannam@86: cannam@86: striplib= cannam@86: old_striplib= cannam@86: echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 cannam@86: echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 cannam@86: if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then cannam@86: test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" cannam@86: test -z "$striplib" && striplib="$STRIP --strip-unneeded" cannam@86: echo "$as_me:$LINENO: result: yes" >&5 cannam@86: echo "${ECHO_T}yes" >&6 cannam@86: else cannam@86: # FIXME - insert some real tests, host_os isn't really good enough cannam@86: case $host_os in cannam@86: darwin*) cannam@86: if test -n "$STRIP" ; then cannam@86: striplib="$STRIP -x" cannam@86: echo "$as_me:$LINENO: result: yes" >&5 cannam@86: echo "${ECHO_T}yes" >&6 cannam@86: else cannam@86: echo "$as_me:$LINENO: result: no" >&5 cannam@86: echo "${ECHO_T}no" >&6 cannam@86: fi cannam@86: ;; cannam@86: *) cannam@86: echo "$as_me:$LINENO: result: no" >&5 cannam@86: echo "${ECHO_T}no" >&6 cannam@86: ;; cannam@86: esac cannam@86: fi cannam@86: cannam@86: if test "x$enable_dlopen" != xyes; then cannam@86: enable_dlopen=unknown cannam@86: enable_dlopen_self=unknown cannam@86: enable_dlopen_self_static=unknown cannam@86: else cannam@86: lt_cv_dlopen=no cannam@86: lt_cv_dlopen_libs= cannam@86: cannam@86: case $host_os in cannam@86: beos*) cannam@86: lt_cv_dlopen="load_add_on" cannam@86: lt_cv_dlopen_libs= cannam@86: lt_cv_dlopen_self=yes cannam@86: ;; cannam@86: cannam@86: mingw* | pw32*) cannam@86: lt_cv_dlopen="LoadLibrary" cannam@86: lt_cv_dlopen_libs= cannam@86: ;; cannam@86: cannam@86: cygwin*) cannam@86: lt_cv_dlopen="dlopen" cannam@86: lt_cv_dlopen_libs= cannam@86: ;; cannam@86: cannam@86: darwin*) cannam@86: # if libdl is installed we need to link against it cannam@86: echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 cannam@86: echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 cannam@86: if test "${ac_cv_lib_dl_dlopen+set}" = set; then cannam@86: echo $ECHO_N "(cached) $ECHO_C" >&6 cannam@86: else cannam@86: ac_check_lib_save_LIBS=$LIBS cannam@86: LIBS="-ldl $LIBS" cannam@86: cat >conftest.$ac_ext <<_ACEOF cannam@86: /* confdefs.h. */ cannam@86: _ACEOF cannam@86: cat confdefs.h >>conftest.$ac_ext cannam@86: cat >>conftest.$ac_ext <<_ACEOF cannam@86: /* end confdefs.h. */ cannam@86: cannam@86: /* Override any gcc2 internal prototype to avoid an error. */ cannam@86: #ifdef __cplusplus cannam@86: extern "C" cannam@86: #endif cannam@86: /* We use char because int might match the return type of a gcc2 cannam@86: builtin and then its argument prototype would still apply. */ cannam@86: char dlopen (); cannam@86: int cannam@86: main () cannam@86: { cannam@86: dlopen (); cannam@86: ; cannam@86: return 0; cannam@86: } cannam@86: _ACEOF cannam@86: rm -f conftest.$ac_objext conftest$ac_exeext cannam@86: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 cannam@86: (eval $ac_link) 2>conftest.er1 cannam@86: ac_status=$? cannam@86: grep -v '^ *+' conftest.er1 >conftest.err cannam@86: rm -f conftest.er1 cannam@86: cat conftest.err >&5 cannam@86: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@86: (exit $ac_status); } && cannam@86: { ac_try='test -z "$ac_cxx_werror_flag" cannam@86: || test ! -s conftest.err' cannam@86: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 cannam@86: (eval $ac_try) 2>&5 cannam@86: ac_status=$? cannam@86: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@86: (exit $ac_status); }; } && cannam@86: { ac_try='test -s conftest$ac_exeext' cannam@86: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 cannam@86: (eval $ac_try) 2>&5 cannam@86: ac_status=$? cannam@86: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@86: (exit $ac_status); }; }; then cannam@86: ac_cv_lib_dl_dlopen=yes cannam@86: else cannam@86: echo "$as_me: failed program was:" >&5 cannam@86: sed 's/^/| /' conftest.$ac_ext >&5 cannam@86: cannam@86: ac_cv_lib_dl_dlopen=no cannam@86: fi cannam@86: rm -f conftest.err conftest.$ac_objext \ cannam@86: conftest$ac_exeext conftest.$ac_ext cannam@86: LIBS=$ac_check_lib_save_LIBS cannam@86: fi cannam@86: echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 cannam@86: echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 cannam@86: if test $ac_cv_lib_dl_dlopen = yes; then cannam@86: lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" cannam@86: else cannam@86: cannam@86: lt_cv_dlopen="dyld" cannam@86: lt_cv_dlopen_libs= cannam@86: lt_cv_dlopen_self=yes cannam@86: cannam@86: fi cannam@86: cannam@86: ;; cannam@86: cannam@86: *) cannam@86: echo "$as_me:$LINENO: checking for shl_load" >&5 cannam@86: echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 cannam@86: if test "${ac_cv_func_shl_load+set}" = set; then cannam@86: echo $ECHO_N "(cached) $ECHO_C" >&6 cannam@86: else cannam@86: cat >conftest.$ac_ext <<_ACEOF cannam@86: /* confdefs.h. */ cannam@86: _ACEOF cannam@86: cat confdefs.h >>conftest.$ac_ext cannam@86: cat >>conftest.$ac_ext <<_ACEOF cannam@86: /* end confdefs.h. */ cannam@86: /* Define shl_load to an innocuous variant, in case declares shl_load. cannam@86: For example, HP-UX 11i declares gettimeofday. */ cannam@86: #define shl_load innocuous_shl_load cannam@86: cannam@86: /* System header to define __stub macros and hopefully few prototypes, cannam@86: which can conflict with char shl_load (); below. cannam@86: Prefer to if __STDC__ is defined, since cannam@86: exists even on freestanding compilers. */ cannam@86: cannam@86: #ifdef __STDC__ cannam@86: # include cannam@86: #else cannam@86: # include cannam@86: #endif cannam@86: cannam@86: #undef shl_load cannam@86: cannam@86: /* Override any gcc2 internal prototype to avoid an error. */ cannam@86: #ifdef __cplusplus cannam@86: extern "C" cannam@86: { cannam@86: #endif cannam@86: /* We use char because int might match the return type of a gcc2 cannam@86: builtin and then its argument prototype would still apply. */ cannam@86: char shl_load (); cannam@86: /* The GNU C library defines this for functions which it implements cannam@86: to always fail with ENOSYS. Some functions are actually named cannam@86: something starting with __ and the normal name is an alias. */ cannam@86: #if defined (__stub_shl_load) || defined (__stub___shl_load) cannam@86: choke me cannam@86: #else cannam@86: char (*f) () = shl_load; cannam@86: #endif cannam@86: #ifdef __cplusplus cannam@86: } cannam@86: #endif cannam@86: cannam@86: int cannam@86: main () cannam@86: { cannam@86: return f != shl_load; cannam@86: ; cannam@86: return 0; cannam@86: } cannam@86: _ACEOF cannam@86: rm -f conftest.$ac_objext conftest$ac_exeext cannam@86: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 cannam@86: (eval $ac_link) 2>conftest.er1 cannam@86: ac_status=$? cannam@86: grep -v '^ *+' conftest.er1 >conftest.err cannam@86: rm -f conftest.er1 cannam@86: cat conftest.err >&5 cannam@86: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@86: (exit $ac_status); } && cannam@86: { ac_try='test -z "$ac_cxx_werror_flag" cannam@86: || test ! -s conftest.err' cannam@86: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 cannam@86: (eval $ac_try) 2>&5 cannam@86: ac_status=$? cannam@86: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@86: (exit $ac_status); }; } && cannam@86: { ac_try='test -s conftest$ac_exeext' cannam@86: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 cannam@86: (eval $ac_try) 2>&5 cannam@86: ac_status=$? cannam@86: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@86: (exit $ac_status); }; }; then cannam@86: ac_cv_func_shl_load=yes cannam@86: else cannam@86: echo "$as_me: failed program was:" >&5 cannam@86: sed 's/^/| /' conftest.$ac_ext >&5 cannam@86: cannam@86: ac_cv_func_shl_load=no cannam@86: fi cannam@86: rm -f conftest.err conftest.$ac_objext \ cannam@86: conftest$ac_exeext conftest.$ac_ext cannam@86: fi cannam@86: echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 cannam@86: echo "${ECHO_T}$ac_cv_func_shl_load" >&6 cannam@86: if test $ac_cv_func_shl_load = yes; then cannam@86: lt_cv_dlopen="shl_load" cannam@86: else cannam@86: echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 cannam@86: echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 cannam@86: if test "${ac_cv_lib_dld_shl_load+set}" = set; then cannam@86: echo $ECHO_N "(cached) $ECHO_C" >&6 cannam@86: else cannam@86: ac_check_lib_save_LIBS=$LIBS cannam@86: LIBS="-ldld $LIBS" cannam@86: cat >conftest.$ac_ext <<_ACEOF cannam@86: /* confdefs.h. */ cannam@86: _ACEOF cannam@86: cat confdefs.h >>conftest.$ac_ext cannam@86: cat >>conftest.$ac_ext <<_ACEOF cannam@86: /* end confdefs.h. */ cannam@86: cannam@86: /* Override any gcc2 internal prototype to avoid an error. */ cannam@86: #ifdef __cplusplus cannam@86: extern "C" cannam@86: #endif cannam@86: /* We use char because int might match the return type of a gcc2 cannam@86: builtin and then its argument prototype would still apply. */ cannam@86: char shl_load (); cannam@86: int cannam@86: main () cannam@86: { cannam@86: shl_load (); cannam@86: ; cannam@86: return 0; cannam@86: } cannam@86: _ACEOF cannam@86: rm -f conftest.$ac_objext conftest$ac_exeext cannam@86: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 cannam@86: (eval $ac_link) 2>conftest.er1 cannam@86: ac_status=$? cannam@86: grep -v '^ *+' conftest.er1 >conftest.err cannam@86: rm -f conftest.er1 cannam@86: cat conftest.err >&5 cannam@86: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@86: (exit $ac_status); } && cannam@86: { ac_try='test -z "$ac_cxx_werror_flag" cannam@86: || test ! -s conftest.err' cannam@86: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 cannam@86: (eval $ac_try) 2>&5 cannam@86: ac_status=$? cannam@86: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@86: (exit $ac_status); }; } && cannam@86: { ac_try='test -s conftest$ac_exeext' cannam@86: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 cannam@86: (eval $ac_try) 2>&5 cannam@86: ac_status=$? cannam@86: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@86: (exit $ac_status); }; }; then cannam@86: ac_cv_lib_dld_shl_load=yes cannam@86: else cannam@86: echo "$as_me: failed program was:" >&5 cannam@86: sed 's/^/| /' conftest.$ac_ext >&5 cannam@86: cannam@86: ac_cv_lib_dld_shl_load=no cannam@86: fi cannam@86: rm -f conftest.err conftest.$ac_objext \ cannam@86: conftest$ac_exeext conftest.$ac_ext cannam@86: LIBS=$ac_check_lib_save_LIBS cannam@86: fi cannam@86: echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 cannam@86: echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 cannam@86: if test $ac_cv_lib_dld_shl_load = yes; then cannam@86: lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" cannam@86: else cannam@86: echo "$as_me:$LINENO: checking for dlopen" >&5 cannam@86: echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 cannam@86: if test "${ac_cv_func_dlopen+set}" = set; then cannam@86: echo $ECHO_N "(cached) $ECHO_C" >&6 cannam@86: else cannam@86: cat >conftest.$ac_ext <<_ACEOF cannam@86: /* confdefs.h. */ cannam@86: _ACEOF cannam@86: cat confdefs.h >>conftest.$ac_ext cannam@86: cat >>conftest.$ac_ext <<_ACEOF cannam@86: /* end confdefs.h. */ cannam@86: /* Define dlopen to an innocuous variant, in case declares dlopen. cannam@86: For example, HP-UX 11i declares gettimeofday. */ cannam@86: #define dlopen innocuous_dlopen cannam@86: cannam@86: /* System header to define __stub macros and hopefully few prototypes, cannam@86: which can conflict with char dlopen (); below. cannam@86: Prefer to if __STDC__ is defined, since cannam@86: exists even on freestanding compilers. */ cannam@86: cannam@86: #ifdef __STDC__ cannam@86: # include cannam@86: #else cannam@86: # include cannam@86: #endif cannam@86: cannam@86: #undef dlopen cannam@86: cannam@86: /* Override any gcc2 internal prototype to avoid an error. */ cannam@86: #ifdef __cplusplus cannam@86: extern "C" cannam@86: { cannam@86: #endif cannam@86: /* We use char because int might match the return type of a gcc2 cannam@86: builtin and then its argument prototype would still apply. */ cannam@86: char dlopen (); cannam@86: /* The GNU C library defines this for functions which it implements cannam@86: to always fail with ENOSYS. Some functions are actually named cannam@86: something starting with __ and the normal name is an alias. */ cannam@86: #if defined (__stub_dlopen) || defined (__stub___dlopen) cannam@86: choke me cannam@86: #else cannam@86: char (*f) () = dlopen; cannam@86: #endif cannam@86: #ifdef __cplusplus cannam@86: } cannam@86: #endif cannam@86: cannam@86: int cannam@86: main () cannam@86: { cannam@86: return f != dlopen; cannam@86: ; cannam@86: return 0; cannam@86: } cannam@86: _ACEOF cannam@86: rm -f conftest.$ac_objext conftest$ac_exeext cannam@86: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 cannam@86: (eval $ac_link) 2>conftest.er1 cannam@86: ac_status=$? cannam@86: grep -v '^ *+' conftest.er1 >conftest.err cannam@86: rm -f conftest.er1 cannam@86: cat conftest.err >&5 cannam@86: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@86: (exit $ac_status); } && cannam@86: { ac_try='test -z "$ac_cxx_werror_flag" cannam@86: || test ! -s conftest.err' cannam@86: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 cannam@86: (eval $ac_try) 2>&5 cannam@86: ac_status=$? cannam@86: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@86: (exit $ac_status); }; } && cannam@86: { ac_try='test -s conftest$ac_exeext' cannam@86: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 cannam@86: (eval $ac_try) 2>&5 cannam@86: ac_status=$? cannam@86: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@86: (exit $ac_status); }; }; then cannam@86: ac_cv_func_dlopen=yes cannam@86: else cannam@86: echo "$as_me: failed program was:" >&5 cannam@86: sed 's/^/| /' conftest.$ac_ext >&5 cannam@86: cannam@86: ac_cv_func_dlopen=no cannam@86: fi cannam@86: rm -f conftest.err conftest.$ac_objext \ cannam@86: conftest$ac_exeext conftest.$ac_ext cannam@86: fi cannam@86: echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 cannam@86: echo "${ECHO_T}$ac_cv_func_dlopen" >&6 cannam@86: if test $ac_cv_func_dlopen = yes; then cannam@86: lt_cv_dlopen="dlopen" cannam@86: else cannam@86: echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 cannam@86: echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 cannam@86: if test "${ac_cv_lib_dl_dlopen+set}" = set; then cannam@86: echo $ECHO_N "(cached) $ECHO_C" >&6 cannam@86: else cannam@86: ac_check_lib_save_LIBS=$LIBS cannam@86: LIBS="-ldl $LIBS" cannam@86: cat >conftest.$ac_ext <<_ACEOF cannam@86: /* confdefs.h. */ cannam@86: _ACEOF cannam@86: cat confdefs.h >>conftest.$ac_ext cannam@86: cat >>conftest.$ac_ext <<_ACEOF cannam@86: /* end confdefs.h. */ cannam@86: cannam@86: /* Override any gcc2 internal prototype to avoid an error. */ cannam@86: #ifdef __cplusplus cannam@86: extern "C" cannam@86: #endif cannam@86: /* We use char because int might match the return type of a gcc2 cannam@86: builtin and then its argument prototype would still apply. */ cannam@86: char dlopen (); cannam@86: int cannam@86: main () cannam@86: { cannam@86: dlopen (); cannam@86: ; cannam@86: return 0; cannam@86: } cannam@86: _ACEOF cannam@86: rm -f conftest.$ac_objext conftest$ac_exeext cannam@86: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 cannam@86: (eval $ac_link) 2>conftest.er1 cannam@86: ac_status=$? cannam@86: grep -v '^ *+' conftest.er1 >conftest.err cannam@86: rm -f conftest.er1 cannam@86: cat conftest.err >&5 cannam@86: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@86: (exit $ac_status); } && cannam@86: { ac_try='test -z "$ac_cxx_werror_flag" cannam@86: || test ! -s conftest.err' cannam@86: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 cannam@86: (eval $ac_try) 2>&5 cannam@86: ac_status=$? cannam@86: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@86: (exit $ac_status); }; } && cannam@86: { ac_try='test -s conftest$ac_exeext' cannam@86: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 cannam@86: (eval $ac_try) 2>&5 cannam@86: ac_status=$? cannam@86: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@86: (exit $ac_status); }; }; then cannam@86: ac_cv_lib_dl_dlopen=yes cannam@86: else cannam@86: echo "$as_me: failed program was:" >&5 cannam@86: sed 's/^/| /' conftest.$ac_ext >&5 cannam@86: cannam@86: ac_cv_lib_dl_dlopen=no cannam@86: fi cannam@86: rm -f conftest.err conftest.$ac_objext \ cannam@86: conftest$ac_exeext conftest.$ac_ext cannam@86: LIBS=$ac_check_lib_save_LIBS cannam@86: fi cannam@86: echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 cannam@86: echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 cannam@86: if test $ac_cv_lib_dl_dlopen = yes; then cannam@86: lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" cannam@86: else cannam@86: echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 cannam@86: echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 cannam@86: if test "${ac_cv_lib_svld_dlopen+set}" = set; then cannam@86: echo $ECHO_N "(cached) $ECHO_C" >&6 cannam@86: else cannam@86: ac_check_lib_save_LIBS=$LIBS cannam@86: LIBS="-lsvld $LIBS" cannam@86: cat >conftest.$ac_ext <<_ACEOF cannam@86: /* confdefs.h. */ cannam@86: _ACEOF cannam@86: cat confdefs.h >>conftest.$ac_ext cannam@86: cat >>conftest.$ac_ext <<_ACEOF cannam@86: /* end confdefs.h. */ cannam@86: cannam@86: /* Override any gcc2 internal prototype to avoid an error. */ cannam@86: #ifdef __cplusplus cannam@86: extern "C" cannam@86: #endif cannam@86: /* We use char because int might match the return type of a gcc2 cannam@86: builtin and then its argument prototype would still apply. */ cannam@86: char dlopen (); cannam@86: int cannam@86: main () cannam@86: { cannam@86: dlopen (); cannam@86: ; cannam@86: return 0; cannam@86: } cannam@86: _ACEOF cannam@86: rm -f conftest.$ac_objext conftest$ac_exeext cannam@86: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 cannam@86: (eval $ac_link) 2>conftest.er1 cannam@86: ac_status=$? cannam@86: grep -v '^ *+' conftest.er1 >conftest.err cannam@86: rm -f conftest.er1 cannam@86: cat conftest.err >&5 cannam@86: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@86: (exit $ac_status); } && cannam@86: { ac_try='test -z "$ac_cxx_werror_flag" cannam@86: || test ! -s conftest.err' cannam@86: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 cannam@86: (eval $ac_try) 2>&5 cannam@86: ac_status=$? cannam@86: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@86: (exit $ac_status); }; } && cannam@86: { ac_try='test -s conftest$ac_exeext' cannam@86: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 cannam@86: (eval $ac_try) 2>&5 cannam@86: ac_status=$? cannam@86: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@86: (exit $ac_status); }; }; then cannam@86: ac_cv_lib_svld_dlopen=yes cannam@86: else cannam@86: echo "$as_me: failed program was:" >&5 cannam@86: sed 's/^/| /' conftest.$ac_ext >&5 cannam@86: cannam@86: ac_cv_lib_svld_dlopen=no cannam@86: fi cannam@86: rm -f conftest.err conftest.$ac_objext \ cannam@86: conftest$ac_exeext conftest.$ac_ext cannam@86: LIBS=$ac_check_lib_save_LIBS cannam@86: fi cannam@86: echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 cannam@86: echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 cannam@86: if test $ac_cv_lib_svld_dlopen = yes; then cannam@86: lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" cannam@86: else cannam@86: echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 cannam@86: echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 cannam@86: if test "${ac_cv_lib_dld_dld_link+set}" = set; then cannam@86: echo $ECHO_N "(cached) $ECHO_C" >&6 cannam@86: else cannam@86: ac_check_lib_save_LIBS=$LIBS cannam@86: LIBS="-ldld $LIBS" cannam@86: cat >conftest.$ac_ext <<_ACEOF cannam@86: /* confdefs.h. */ cannam@86: _ACEOF cannam@86: cat confdefs.h >>conftest.$ac_ext cannam@86: cat >>conftest.$ac_ext <<_ACEOF cannam@86: /* end confdefs.h. */ cannam@86: cannam@86: /* Override any gcc2 internal prototype to avoid an error. */ cannam@86: #ifdef __cplusplus cannam@86: extern "C" cannam@86: #endif cannam@86: /* We use char because int might match the return type of a gcc2 cannam@86: builtin and then its argument prototype would still apply. */ cannam@86: char dld_link (); cannam@86: int cannam@86: main () cannam@86: { cannam@86: dld_link (); cannam@86: ; cannam@86: return 0; cannam@86: } cannam@86: _ACEOF cannam@86: rm -f conftest.$ac_objext conftest$ac_exeext cannam@86: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 cannam@86: (eval $ac_link) 2>conftest.er1 cannam@86: ac_status=$? cannam@86: grep -v '^ *+' conftest.er1 >conftest.err cannam@86: rm -f conftest.er1 cannam@86: cat conftest.err >&5 cannam@86: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@86: (exit $ac_status); } && cannam@86: { ac_try='test -z "$ac_cxx_werror_flag" cannam@86: || test ! -s conftest.err' cannam@86: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 cannam@86: (eval $ac_try) 2>&5 cannam@86: ac_status=$? cannam@86: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@86: (exit $ac_status); }; } && cannam@86: { ac_try='test -s conftest$ac_exeext' cannam@86: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 cannam@86: (eval $ac_try) 2>&5 cannam@86: ac_status=$? cannam@86: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@86: (exit $ac_status); }; }; then cannam@86: ac_cv_lib_dld_dld_link=yes cannam@86: else cannam@86: echo "$as_me: failed program was:" >&5 cannam@86: sed 's/^/| /' conftest.$ac_ext >&5 cannam@86: cannam@86: ac_cv_lib_dld_dld_link=no cannam@86: fi cannam@86: rm -f conftest.err conftest.$ac_objext \ cannam@86: conftest$ac_exeext conftest.$ac_ext cannam@86: LIBS=$ac_check_lib_save_LIBS cannam@86: fi cannam@86: echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 cannam@86: echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 cannam@86: if test $ac_cv_lib_dld_dld_link = yes; then cannam@86: lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" cannam@86: fi cannam@86: cannam@86: cannam@86: fi cannam@86: cannam@86: cannam@86: fi cannam@86: cannam@86: cannam@86: fi cannam@86: cannam@86: cannam@86: fi cannam@86: cannam@86: cannam@86: fi cannam@86: cannam@86: ;; cannam@86: esac cannam@86: cannam@86: if test "x$lt_cv_dlopen" != xno; then cannam@86: enable_dlopen=yes cannam@86: else cannam@86: enable_dlopen=no cannam@86: fi cannam@86: cannam@86: case $lt_cv_dlopen in cannam@86: dlopen) cannam@86: save_CPPFLAGS="$CPPFLAGS" cannam@86: test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" cannam@86: cannam@86: save_LDFLAGS="$LDFLAGS" cannam@86: eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" cannam@86: cannam@86: save_LIBS="$LIBS" cannam@86: LIBS="$lt_cv_dlopen_libs $LIBS" cannam@86: cannam@86: echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 cannam@86: echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 cannam@86: if test "${lt_cv_dlopen_self+set}" = set; then cannam@86: echo $ECHO_N "(cached) $ECHO_C" >&6 cannam@86: else cannam@86: if test "$cross_compiling" = yes; then : cannam@86: lt_cv_dlopen_self=cross cannam@86: else cannam@86: lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 cannam@86: lt_status=$lt_dlunknown cannam@86: cat > conftest.$ac_ext < cannam@86: #endif cannam@86: cannam@86: #include cannam@86: cannam@86: #ifdef RTLD_GLOBAL cannam@86: # define LT_DLGLOBAL RTLD_GLOBAL cannam@86: #else cannam@86: # ifdef DL_GLOBAL cannam@86: # define LT_DLGLOBAL DL_GLOBAL cannam@86: # else cannam@86: # define LT_DLGLOBAL 0 cannam@86: # endif cannam@86: #endif cannam@86: cannam@86: /* We may have to define LT_DLLAZY_OR_NOW in the command line if we cannam@86: find out it does not work in some platform. */ cannam@86: #ifndef LT_DLLAZY_OR_NOW cannam@86: # ifdef RTLD_LAZY cannam@86: # define LT_DLLAZY_OR_NOW RTLD_LAZY cannam@86: # else cannam@86: # ifdef DL_LAZY cannam@86: # define LT_DLLAZY_OR_NOW DL_LAZY cannam@86: # else cannam@86: # ifdef RTLD_NOW cannam@86: # define LT_DLLAZY_OR_NOW RTLD_NOW cannam@86: # else cannam@86: # ifdef DL_NOW cannam@86: # define LT_DLLAZY_OR_NOW DL_NOW cannam@86: # else cannam@86: # define LT_DLLAZY_OR_NOW 0 cannam@86: # endif cannam@86: # endif cannam@86: # endif cannam@86: # endif cannam@86: #endif cannam@86: cannam@86: #ifdef __cplusplus cannam@86: extern "C" void exit (int); cannam@86: #endif cannam@86: cannam@86: void fnord() { int i=42;} cannam@86: int main () cannam@86: { cannam@86: void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); cannam@86: int status = $lt_dlunknown; cannam@86: cannam@86: if (self) cannam@86: { cannam@86: if (dlsym (self,"fnord")) status = $lt_dlno_uscore; cannam@86: else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; cannam@86: /* dlclose (self); */ cannam@86: } cannam@86: cannam@86: exit (status); cannam@86: } cannam@86: EOF cannam@86: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 cannam@86: (eval $ac_link) 2>&5 cannam@86: ac_status=$? cannam@86: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@86: (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then cannam@86: (./conftest; exit; ) 2>/dev/null cannam@86: lt_status=$? cannam@86: case x$lt_status in cannam@86: x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; cannam@86: x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; cannam@86: x$lt_unknown|x*) lt_cv_dlopen_self=no ;; cannam@86: esac cannam@86: else : cannam@86: # compilation failed cannam@86: lt_cv_dlopen_self=no cannam@86: fi cannam@86: fi cannam@86: rm -fr conftest* cannam@86: cannam@86: cannam@86: fi cannam@86: echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 cannam@86: echo "${ECHO_T}$lt_cv_dlopen_self" >&6 cannam@86: cannam@86: if test "x$lt_cv_dlopen_self" = xyes; then cannam@86: LDFLAGS="$LDFLAGS $link_static_flag" cannam@86: echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 cannam@86: echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 cannam@86: if test "${lt_cv_dlopen_self_static+set}" = set; then cannam@86: echo $ECHO_N "(cached) $ECHO_C" >&6 cannam@86: else cannam@86: if test "$cross_compiling" = yes; then : cannam@86: lt_cv_dlopen_self_static=cross cannam@86: else cannam@86: lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 cannam@86: lt_status=$lt_dlunknown cannam@86: cat > conftest.$ac_ext < cannam@86: #endif cannam@86: cannam@86: #include cannam@86: cannam@86: #ifdef RTLD_GLOBAL cannam@86: # define LT_DLGLOBAL RTLD_GLOBAL cannam@86: #else cannam@86: # ifdef DL_GLOBAL cannam@86: # define LT_DLGLOBAL DL_GLOBAL cannam@86: # else cannam@86: # define LT_DLGLOBAL 0 cannam@86: # endif cannam@86: #endif cannam@86: cannam@86: /* We may have to define LT_DLLAZY_OR_NOW in the command line if we cannam@86: find out it does not work in some platform. */ cannam@86: #ifndef LT_DLLAZY_OR_NOW cannam@86: # ifdef RTLD_LAZY cannam@86: # define LT_DLLAZY_OR_NOW RTLD_LAZY cannam@86: # else cannam@86: # ifdef DL_LAZY cannam@86: # define LT_DLLAZY_OR_NOW DL_LAZY cannam@86: # else cannam@86: # ifdef RTLD_NOW cannam@86: # define LT_DLLAZY_OR_NOW RTLD_NOW cannam@86: # else cannam@86: # ifdef DL_NOW cannam@86: # define LT_DLLAZY_OR_NOW DL_NOW cannam@86: # else cannam@86: # define LT_DLLAZY_OR_NOW 0 cannam@86: # endif cannam@86: # endif cannam@86: # endif cannam@86: # endif cannam@86: #endif cannam@86: cannam@86: #ifdef __cplusplus cannam@86: extern "C" void exit (int); cannam@86: #endif cannam@86: cannam@86: void fnord() { int i=42;} cannam@86: int main () cannam@86: { cannam@86: void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); cannam@86: int status = $lt_dlunknown; cannam@86: cannam@86: if (self) cannam@86: { cannam@86: if (dlsym (self,"fnord")) status = $lt_dlno_uscore; cannam@86: else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; cannam@86: /* dlclose (self); */ cannam@86: } cannam@86: cannam@86: exit (status); cannam@86: } cannam@86: EOF cannam@86: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 cannam@86: (eval $ac_link) 2>&5 cannam@86: ac_status=$? cannam@86: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@86: (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then cannam@86: (./conftest; exit; ) 2>/dev/null cannam@86: lt_status=$? cannam@86: case x$lt_status in cannam@86: x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; cannam@86: x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; cannam@86: x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;; cannam@86: esac cannam@86: else : cannam@86: # compilation failed cannam@86: lt_cv_dlopen_self_static=no cannam@86: fi cannam@86: fi cannam@86: rm -fr conftest* cannam@86: cannam@86: cannam@86: fi cannam@86: echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 cannam@86: echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 cannam@86: fi cannam@86: cannam@86: CPPFLAGS="$save_CPPFLAGS" cannam@86: LDFLAGS="$save_LDFLAGS" cannam@86: LIBS="$save_LIBS" cannam@86: ;; cannam@86: esac cannam@86: cannam@86: case $lt_cv_dlopen_self in cannam@86: yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; cannam@86: *) enable_dlopen_self=unknown ;; cannam@86: esac cannam@86: cannam@86: case $lt_cv_dlopen_self_static in cannam@86: yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; cannam@86: *) enable_dlopen_self_static=unknown ;; cannam@86: esac cannam@86: fi cannam@86: cannam@86: cannam@86: # The else clause should only fire when bootstrapping the cannam@86: # libtool distribution, otherwise you forgot to ship ltmain.sh cannam@86: # with your package, and you will get complaints that there are cannam@86: # no rules to generate ltmain.sh. cannam@86: if test -f "$ltmain"; then cannam@86: # See if we are running on zsh, and set the options which allow our commands through cannam@86: # without removal of \ escapes. cannam@86: if test -n "${ZSH_VERSION+set}" ; then cannam@86: setopt NO_GLOB_SUBST cannam@86: fi cannam@86: # Now quote all the things that may contain metacharacters while being cannam@86: # careful not to overquote the AC_SUBSTed values. We take copies of the cannam@86: # variables and quote the copies for generation of the libtool script. cannam@86: for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ cannam@86: SED SHELL STRIP \ cannam@86: libname_spec library_names_spec soname_spec extract_expsyms_cmds \ cannam@86: old_striplib striplib file_magic_cmd finish_cmds finish_eval \ cannam@86: deplibs_check_method reload_flag reload_cmds need_locks \ cannam@86: lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ cannam@86: lt_cv_sys_global_symbol_to_c_name_address \ cannam@86: sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ cannam@86: old_postinstall_cmds old_postuninstall_cmds \ cannam@86: compiler_CXX \ cannam@86: CC_CXX \ cannam@86: LD_CXX \ cannam@86: lt_prog_compiler_wl_CXX \ cannam@86: lt_prog_compiler_pic_CXX \ cannam@86: lt_prog_compiler_static_CXX \ cannam@86: lt_prog_compiler_no_builtin_flag_CXX \ cannam@86: export_dynamic_flag_spec_CXX \ cannam@86: thread_safe_flag_spec_CXX \ cannam@86: whole_archive_flag_spec_CXX \ cannam@86: enable_shared_with_static_runtimes_CXX \ cannam@86: old_archive_cmds_CXX \ cannam@86: old_archive_from_new_cmds_CXX \ cannam@86: predep_objects_CXX \ cannam@86: postdep_objects_CXX \ cannam@86: predeps_CXX \ cannam@86: postdeps_CXX \ cannam@86: compiler_lib_search_path_CXX \ cannam@86: archive_cmds_CXX \ cannam@86: archive_expsym_cmds_CXX \ cannam@86: postinstall_cmds_CXX \ cannam@86: postuninstall_cmds_CXX \ cannam@86: old_archive_from_expsyms_cmds_CXX \ cannam@86: allow_undefined_flag_CXX \ cannam@86: no_undefined_flag_CXX \ cannam@86: export_symbols_cmds_CXX \ cannam@86: hardcode_libdir_flag_spec_CXX \ cannam@86: hardcode_libdir_flag_spec_ld_CXX \ cannam@86: hardcode_libdir_separator_CXX \ cannam@86: hardcode_automatic_CXX \ cannam@86: module_cmds_CXX \ cannam@86: module_expsym_cmds_CXX \ cannam@86: lt_cv_prog_compiler_c_o_CXX \ cannam@86: exclude_expsyms_CXX \ cannam@86: include_expsyms_CXX; do cannam@86: cannam@86: case $var in cannam@86: old_archive_cmds_CXX | \ cannam@86: old_archive_from_new_cmds_CXX | \ cannam@86: archive_cmds_CXX | \ cannam@86: archive_expsym_cmds_CXX | \ cannam@86: module_cmds_CXX | \ cannam@86: module_expsym_cmds_CXX | \ cannam@86: old_archive_from_expsyms_cmds_CXX | \ cannam@86: export_symbols_cmds_CXX | \ cannam@86: extract_expsyms_cmds | reload_cmds | finish_cmds | \ cannam@86: postinstall_cmds | postuninstall_cmds | \ cannam@86: old_postinstall_cmds | old_postuninstall_cmds | \ cannam@86: sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) cannam@86: # Double-quote double-evaled strings. cannam@86: eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" cannam@86: ;; cannam@86: *) cannam@86: eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" cannam@86: ;; cannam@86: esac cannam@86: done cannam@86: cannam@86: case $lt_echo in cannam@86: *'\$0 --fallback-echo"') cannam@86: lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` cannam@86: ;; cannam@86: esac cannam@86: cannam@86: cfgfile="$ofile" cannam@86: cannam@86: cat <<__EOF__ >> "$cfgfile" cannam@86: # ### BEGIN LIBTOOL TAG CONFIG: $tagname cannam@86: cannam@86: # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: cannam@86: cannam@86: # Shell to use when invoking shell scripts. cannam@86: SHELL=$lt_SHELL cannam@86: cannam@86: # Whether or not to build shared libraries. cannam@86: build_libtool_libs=$enable_shared cannam@86: cannam@86: # Whether or not to build static libraries. cannam@86: build_old_libs=$enable_static cannam@86: cannam@86: # Whether or not to add -lc for building shared libraries. cannam@86: build_libtool_need_lc=$archive_cmds_need_lc_CXX cannam@86: cannam@86: # Whether or not to disallow shared libs when runtime libs are static cannam@86: allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX cannam@86: cannam@86: # Whether or not to optimize for fast installation. cannam@86: fast_install=$enable_fast_install cannam@86: cannam@86: # The host system. cannam@86: host_alias=$host_alias cannam@86: host=$host cannam@86: host_os=$host_os cannam@86: cannam@86: # The build system. cannam@86: build_alias=$build_alias cannam@86: build=$build cannam@86: build_os=$build_os cannam@86: cannam@86: # An echo program that does not interpret backslashes. cannam@86: echo=$lt_echo cannam@86: cannam@86: # The archiver. cannam@86: AR=$lt_AR cannam@86: AR_FLAGS=$lt_AR_FLAGS cannam@86: cannam@86: # A C compiler. cannam@86: LTCC=$lt_LTCC cannam@86: cannam@86: # A language-specific compiler. cannam@86: CC=$lt_compiler_CXX cannam@86: cannam@86: # Is the compiler the GNU C compiler? cannam@86: with_gcc=$GCC_CXX cannam@86: cannam@86: # An ERE matcher. cannam@86: EGREP=$lt_EGREP cannam@86: cannam@86: # The linker used to build libraries. cannam@86: LD=$lt_LD_CXX cannam@86: cannam@86: # Whether we need hard or soft links. cannam@86: LN_S=$lt_LN_S cannam@86: cannam@86: # A BSD-compatible nm program. cannam@86: NM=$lt_NM cannam@86: cannam@86: # A symbol stripping program cannam@86: STRIP=$lt_STRIP cannam@86: cannam@86: # Used to examine libraries when file_magic_cmd begins "file" cannam@86: MAGIC_CMD=$MAGIC_CMD cannam@86: cannam@86: # Used on cygwin: DLL creation program. cannam@86: DLLTOOL="$DLLTOOL" cannam@86: cannam@86: # Used on cygwin: object dumper. cannam@86: OBJDUMP="$OBJDUMP" cannam@86: cannam@86: # Used on cygwin: assembler. cannam@86: AS="$AS" cannam@86: cannam@86: # The name of the directory that contains temporary libtool files. cannam@86: objdir=$objdir cannam@86: cannam@86: # How to create reloadable object files. cannam@86: reload_flag=$lt_reload_flag cannam@86: reload_cmds=$lt_reload_cmds cannam@86: cannam@86: # How to pass a linker flag through the compiler. cannam@86: wl=$lt_lt_prog_compiler_wl_CXX cannam@86: cannam@86: # Object file suffix (normally "o"). cannam@86: objext="$ac_objext" cannam@86: cannam@86: # Old archive suffix (normally "a"). cannam@86: libext="$libext" cannam@86: cannam@86: # Shared library suffix (normally ".so"). cannam@86: shrext_cmds='$shrext_cmds' cannam@86: cannam@86: # Executable file suffix (normally ""). cannam@86: exeext="$exeext" cannam@86: cannam@86: # Additional compiler flags for building library objects. cannam@86: pic_flag=$lt_lt_prog_compiler_pic_CXX cannam@86: pic_mode=$pic_mode cannam@86: cannam@86: # What is the maximum length of a command? cannam@86: max_cmd_len=$lt_cv_sys_max_cmd_len cannam@86: cannam@86: # Does compiler simultaneously support -c and -o options? cannam@86: compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX cannam@86: cannam@86: # Must we lock files when doing compilation? cannam@86: need_locks=$lt_need_locks cannam@86: cannam@86: # Do we need the lib prefix for modules? cannam@86: need_lib_prefix=$need_lib_prefix cannam@86: cannam@86: # Do we need a version for libraries? cannam@86: need_version=$need_version cannam@86: cannam@86: # Whether dlopen is supported. cannam@86: dlopen_support=$enable_dlopen cannam@86: cannam@86: # Whether dlopen of programs is supported. cannam@86: dlopen_self=$enable_dlopen_self cannam@86: cannam@86: # Whether dlopen of statically linked programs is supported. cannam@86: dlopen_self_static=$enable_dlopen_self_static cannam@86: cannam@86: # Compiler flag to prevent dynamic linking. cannam@86: link_static_flag=$lt_lt_prog_compiler_static_CXX cannam@86: cannam@86: # Compiler flag to turn off builtin functions. cannam@86: no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX cannam@86: cannam@86: # Compiler flag to allow reflexive dlopens. cannam@86: export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX cannam@86: cannam@86: # Compiler flag to generate shared objects directly from archives. cannam@86: whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX cannam@86: cannam@86: # Compiler flag to generate thread-safe objects. cannam@86: thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX cannam@86: cannam@86: # Library versioning type. cannam@86: version_type=$version_type cannam@86: cannam@86: # Format of library name prefix. cannam@86: libname_spec=$lt_libname_spec cannam@86: cannam@86: # List of archive names. First name is the real one, the rest are links. cannam@86: # The last name is the one that the linker finds with -lNAME. cannam@86: library_names_spec=$lt_library_names_spec cannam@86: cannam@86: # The coded name of the library, if different from the real name. cannam@86: soname_spec=$lt_soname_spec cannam@86: cannam@86: # Commands used to build and install an old-style archive. cannam@86: RANLIB=$lt_RANLIB cannam@86: old_archive_cmds=$lt_old_archive_cmds_CXX cannam@86: old_postinstall_cmds=$lt_old_postinstall_cmds cannam@86: old_postuninstall_cmds=$lt_old_postuninstall_cmds cannam@86: cannam@86: # Create an old-style archive from a shared archive. cannam@86: old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX cannam@86: cannam@86: # Create a temporary old-style archive to link instead of a shared archive. cannam@86: old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX cannam@86: cannam@86: # Commands used to build and install a shared archive. cannam@86: archive_cmds=$lt_archive_cmds_CXX cannam@86: archive_expsym_cmds=$lt_archive_expsym_cmds_CXX cannam@86: postinstall_cmds=$lt_postinstall_cmds cannam@86: postuninstall_cmds=$lt_postuninstall_cmds cannam@86: cannam@86: # Commands used to build a loadable module (assumed same as above if empty) cannam@86: module_cmds=$lt_module_cmds_CXX cannam@86: module_expsym_cmds=$lt_module_expsym_cmds_CXX cannam@86: cannam@86: # Commands to strip libraries. cannam@86: old_striplib=$lt_old_striplib cannam@86: striplib=$lt_striplib cannam@86: cannam@86: # Dependencies to place before the objects being linked to create a cannam@86: # shared library. cannam@86: predep_objects=$lt_predep_objects_CXX cannam@86: cannam@86: # Dependencies to place after the objects being linked to create a cannam@86: # shared library. cannam@86: postdep_objects=$lt_postdep_objects_CXX cannam@86: cannam@86: # Dependencies to place before the objects being linked to create a cannam@86: # shared library. cannam@86: predeps=$lt_predeps_CXX cannam@86: cannam@86: # Dependencies to place after the objects being linked to create a cannam@86: # shared library. cannam@86: postdeps=$lt_postdeps_CXX cannam@86: cannam@86: # The library search path used internally by the compiler when linking cannam@86: # a shared library. cannam@86: compiler_lib_search_path=$lt_compiler_lib_search_path_CXX cannam@86: cannam@86: # Method to check whether dependent libraries are shared objects. cannam@86: deplibs_check_method=$lt_deplibs_check_method cannam@86: cannam@86: # Command to use when deplibs_check_method == file_magic. cannam@86: file_magic_cmd=$lt_file_magic_cmd cannam@86: cannam@86: # Flag that allows shared libraries with undefined symbols to be built. cannam@86: allow_undefined_flag=$lt_allow_undefined_flag_CXX cannam@86: cannam@86: # Flag that forces no undefined symbols. cannam@86: no_undefined_flag=$lt_no_undefined_flag_CXX cannam@86: cannam@86: # Commands used to finish a libtool library installation in a directory. cannam@86: finish_cmds=$lt_finish_cmds cannam@86: cannam@86: # Same as above, but a single script fragment to be evaled but not shown. cannam@86: finish_eval=$lt_finish_eval cannam@86: cannam@86: # Take the output of nm and produce a listing of raw symbols and C names. cannam@86: global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe cannam@86: cannam@86: # Transform the output of nm in a proper C declaration cannam@86: global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl cannam@86: cannam@86: # Transform the output of nm in a C name address pair cannam@86: global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address cannam@86: cannam@86: # This is the shared library runtime path variable. cannam@86: runpath_var=$runpath_var cannam@86: cannam@86: # This is the shared library path variable. cannam@86: shlibpath_var=$shlibpath_var cannam@86: cannam@86: # Is shlibpath searched before the hard-coded library search path? cannam@86: shlibpath_overrides_runpath=$shlibpath_overrides_runpath cannam@86: cannam@86: # How to hardcode a shared library path into an executable. cannam@86: hardcode_action=$hardcode_action_CXX cannam@86: cannam@86: # Whether we should hardcode library paths into libraries. cannam@86: hardcode_into_libs=$hardcode_into_libs cannam@86: cannam@86: # Flag to hardcode \$libdir into a binary during linking. cannam@86: # This must work even if \$libdir does not exist. cannam@86: hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX cannam@86: cannam@86: # If ld is used when linking, flag to hardcode \$libdir into cannam@86: # a binary during linking. This must work even if \$libdir does cannam@86: # not exist. cannam@86: hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX cannam@86: cannam@86: # Whether we need a single -rpath flag with a separated argument. cannam@86: hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX cannam@86: cannam@86: # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the cannam@86: # resulting binary. cannam@86: hardcode_direct=$hardcode_direct_CXX cannam@86: cannam@86: # Set to yes if using the -LDIR flag during linking hardcodes DIR into the cannam@86: # resulting binary. cannam@86: hardcode_minus_L=$hardcode_minus_L_CXX cannam@86: cannam@86: # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into cannam@86: # the resulting binary. cannam@86: hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX cannam@86: cannam@86: # Set to yes if building a shared library automatically hardcodes DIR into the library cannam@86: # and all subsequent libraries and executables linked against it. cannam@86: hardcode_automatic=$hardcode_automatic_CXX cannam@86: cannam@86: # Variables whose values should be saved in libtool wrapper scripts and cannam@86: # restored at relink time. cannam@86: variables_saved_for_relink="$variables_saved_for_relink" cannam@86: cannam@86: # Whether libtool must link a program against all its dependency libraries. cannam@86: link_all_deplibs=$link_all_deplibs_CXX cannam@86: cannam@86: # Compile-time system search path for libraries cannam@86: sys_lib_search_path_spec=$lt_sys_lib_search_path_spec cannam@86: cannam@86: # Run-time system search path for libraries cannam@86: sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec cannam@86: cannam@86: # Fix the shell variable \$srcfile for the compiler. cannam@86: fix_srcfile_path="$fix_srcfile_path_CXX" cannam@86: cannam@86: # Set to yes if exported symbols are required. cannam@86: always_export_symbols=$always_export_symbols_CXX cannam@86: cannam@86: # The commands to list exported symbols. cannam@86: export_symbols_cmds=$lt_export_symbols_cmds_CXX cannam@86: cannam@86: # The commands to extract the exported symbol list from a shared archive. cannam@86: extract_expsyms_cmds=$lt_extract_expsyms_cmds cannam@86: cannam@86: # Symbols that should not be listed in the preloaded symbols. cannam@86: exclude_expsyms=$lt_exclude_expsyms_CXX cannam@86: cannam@86: # Symbols that must always be exported. cannam@86: include_expsyms=$lt_include_expsyms_CXX cannam@86: cannam@86: # ### END LIBTOOL TAG CONFIG: $tagname cannam@86: cannam@86: __EOF__ cannam@86: cannam@86: cannam@86: else cannam@86: # If there is no Makefile yet, we rely on a make rule to execute cannam@86: # `config.status --recheck' to rerun these tests and create the cannam@86: # libtool script then. cannam@86: ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` cannam@86: if test -f "$ltmain_in"; then cannam@86: test -f Makefile && make "$ltmain" cannam@86: fi cannam@86: fi cannam@86: cannam@86: cannam@86: ac_ext=c cannam@86: ac_cpp='$CPP $CPPFLAGS' cannam@86: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' cannam@86: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' cannam@86: ac_compiler_gnu=$ac_cv_c_compiler_gnu cannam@86: cannam@86: CC=$lt_save_CC cannam@86: LDCXX=$LD cannam@86: LD=$lt_save_LD cannam@86: GCC=$lt_save_GCC cannam@86: with_gnu_ldcxx=$with_gnu_ld cannam@86: with_gnu_ld=$lt_save_with_gnu_ld cannam@86: lt_cv_path_LDCXX=$lt_cv_path_LD cannam@86: lt_cv_path_LD=$lt_save_path_LD cannam@86: lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld cannam@86: lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld cannam@86: cannam@86: else cannam@86: tagname="" cannam@86: fi cannam@86: ;; cannam@86: cannam@86: F77) cannam@86: if test -n "$F77" && test "X$F77" != "Xno"; then cannam@86: cannam@86: ac_ext=f cannam@86: ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' cannam@86: ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' cannam@86: ac_compiler_gnu=$ac_cv_f77_compiler_gnu cannam@86: cannam@86: cannam@86: archive_cmds_need_lc_F77=no cannam@86: allow_undefined_flag_F77= cannam@86: always_export_symbols_F77=no cannam@86: archive_expsym_cmds_F77= cannam@86: export_dynamic_flag_spec_F77= cannam@86: hardcode_direct_F77=no cannam@86: hardcode_libdir_flag_spec_F77= cannam@86: hardcode_libdir_flag_spec_ld_F77= cannam@86: hardcode_libdir_separator_F77= cannam@86: hardcode_minus_L_F77=no cannam@86: hardcode_automatic_F77=no cannam@86: module_cmds_F77= cannam@86: module_expsym_cmds_F77= cannam@86: link_all_deplibs_F77=unknown cannam@86: old_archive_cmds_F77=$old_archive_cmds cannam@86: no_undefined_flag_F77= cannam@86: whole_archive_flag_spec_F77= cannam@86: enable_shared_with_static_runtimes_F77=no cannam@86: cannam@86: # Source file extension for f77 test sources. cannam@86: ac_ext=f cannam@86: cannam@86: # Object file extension for compiled f77 test sources. cannam@86: objext=o cannam@86: objext_F77=$objext cannam@86: cannam@86: # Code to be used in simple compile tests cannam@86: lt_simple_compile_test_code=" subroutine t\n return\n end\n" cannam@86: cannam@86: # Code to be used in simple link tests cannam@86: lt_simple_link_test_code=" program t\n end\n" cannam@86: cannam@86: # ltmain only uses $CC for tagged configurations so make sure $CC is set. cannam@86: cannam@86: # If no C compiler was specified, use CC. cannam@86: LTCC=${LTCC-"$CC"} cannam@86: cannam@86: # Allow CC to be a program name with arguments. cannam@86: compiler=$CC cannam@86: cannam@86: cannam@86: # save warnings/boilerplate of simple test code cannam@86: ac_outfile=conftest.$ac_objext cannam@86: printf "$lt_simple_compile_test_code" >conftest.$ac_ext cannam@86: eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err cannam@86: _lt_compiler_boilerplate=`cat conftest.err` cannam@86: $rm conftest* cannam@86: cannam@86: ac_outfile=conftest.$ac_objext cannam@86: printf "$lt_simple_link_test_code" >conftest.$ac_ext cannam@86: eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err cannam@86: _lt_linker_boilerplate=`cat conftest.err` cannam@86: $rm conftest* cannam@86: cannam@86: cannam@86: # Allow CC to be a program name with arguments. cannam@86: lt_save_CC="$CC" cannam@86: CC=${F77-"f77"} cannam@86: compiler=$CC cannam@86: compiler_F77=$CC cannam@86: for cc_temp in $compiler""; do cannam@86: case $cc_temp in cannam@86: compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; cannam@86: distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; cannam@86: \-*) ;; cannam@86: *) break;; cannam@86: esac cannam@86: done cannam@86: cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` cannam@86: cannam@86: cannam@86: echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 cannam@86: echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6 cannam@86: echo "$as_me:$LINENO: result: $can_build_shared" >&5 cannam@86: echo "${ECHO_T}$can_build_shared" >&6 cannam@86: cannam@86: echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 cannam@86: echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6 cannam@86: test "$can_build_shared" = "no" && enable_shared=no cannam@86: cannam@86: # On AIX, shared libraries and static libraries use the same namespace, and cannam@86: # are all built from PIC. cannam@86: case "$host_os" in cannam@86: aix3*) cannam@86: test "$enable_shared" = yes && enable_static=no cannam@86: if test -n "$RANLIB"; then cannam@86: archive_cmds="$archive_cmds~\$RANLIB \$lib" cannam@86: postinstall_cmds='$RANLIB $lib' cannam@86: fi cannam@86: ;; cannam@86: aix4* | aix5*) cannam@86: if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then cannam@86: test "$enable_shared" = yes && enable_static=no cannam@86: fi cannam@86: ;; cannam@86: esac cannam@86: echo "$as_me:$LINENO: result: $enable_shared" >&5 cannam@86: echo "${ECHO_T}$enable_shared" >&6 cannam@86: cannam@86: echo "$as_me:$LINENO: checking whether to build static libraries" >&5 cannam@86: echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6 cannam@86: # Make sure either enable_shared or enable_static is yes. cannam@86: test "$enable_shared" = yes || enable_static=yes cannam@86: echo "$as_me:$LINENO: result: $enable_static" >&5 cannam@86: echo "${ECHO_T}$enable_static" >&6 cannam@86: cannam@86: test "$ld_shlibs_F77" = no && can_build_shared=no cannam@86: cannam@86: GCC_F77="$G77" cannam@86: LD_F77="$LD" cannam@86: cannam@86: lt_prog_compiler_wl_F77= cannam@86: lt_prog_compiler_pic_F77= cannam@86: lt_prog_compiler_static_F77= cannam@86: cannam@86: echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 cannam@86: echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 cannam@86: cannam@86: if test "$GCC" = yes; then cannam@86: lt_prog_compiler_wl_F77='-Wl,' cannam@86: lt_prog_compiler_static_F77='-static' cannam@86: cannam@86: case $host_os in cannam@86: aix*) cannam@86: # All AIX code is PIC. cannam@86: if test "$host_cpu" = ia64; then cannam@86: # AIX 5 now supports IA64 processor cannam@86: lt_prog_compiler_static_F77='-Bstatic' cannam@86: fi cannam@86: ;; cannam@86: cannam@86: amigaos*) cannam@86: # FIXME: we need at least 68020 code to build shared libraries, but cannam@86: # adding the `-m68020' flag to GCC prevents building anything better, cannam@86: # like `-m68040'. cannam@86: lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4' cannam@86: ;; cannam@86: cannam@86: beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) cannam@86: # PIC is the default for these OSes. cannam@86: ;; cannam@86: cannam@86: mingw* | pw32* | os2*) cannam@86: # This hack is so that the source file can tell whether it is being cannam@86: # built for inclusion in a dll (and should export symbols for example). cannam@86: lt_prog_compiler_pic_F77='-DDLL_EXPORT' cannam@86: ;; cannam@86: cannam@86: darwin* | rhapsody*) cannam@86: # PIC is the default on this platform cannam@86: # Common symbols not allowed in MH_DYLIB files cannam@86: lt_prog_compiler_pic_F77='-fno-common' cannam@86: ;; cannam@86: cannam@86: msdosdjgpp*) cannam@86: # Just because we use GCC doesn't mean we suddenly get shared libraries cannam@86: # on systems that don't support them. cannam@86: lt_prog_compiler_can_build_shared_F77=no cannam@86: enable_shared=no cannam@86: ;; cannam@86: cannam@86: sysv4*MP*) cannam@86: if test -d /usr/nec; then cannam@86: lt_prog_compiler_pic_F77=-Kconform_pic cannam@86: fi cannam@86: ;; cannam@86: cannam@86: hpux*) cannam@86: # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but cannam@86: # not for PA HP-UX. cannam@86: case "$host_cpu" in cannam@86: hppa*64*|ia64*) cannam@86: # +Z the default cannam@86: ;; cannam@86: *) cannam@86: lt_prog_compiler_pic_F77='-fPIC' cannam@86: ;; cannam@86: esac cannam@86: ;; cannam@86: cannam@86: *) cannam@86: lt_prog_compiler_pic_F77='-fPIC' cannam@86: ;; cannam@86: esac cannam@86: else cannam@86: # PORTME Check for flag to pass linker flags through the system compiler. cannam@86: case $host_os in cannam@86: aix*) cannam@86: lt_prog_compiler_wl_F77='-Wl,' cannam@86: if test "$host_cpu" = ia64; then cannam@86: # AIX 5 now supports IA64 processor cannam@86: lt_prog_compiler_static_F77='-Bstatic' cannam@86: else cannam@86: lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp' cannam@86: fi cannam@86: ;; cannam@86: darwin*) cannam@86: # PIC is the default on this platform cannam@86: # Common symbols not allowed in MH_DYLIB files cannam@86: case $cc_basename in cannam@86: xlc*) cannam@86: lt_prog_compiler_pic_F77='-qnocommon' cannam@86: lt_prog_compiler_wl_F77='-Wl,' cannam@86: ;; cannam@86: esac cannam@86: ;; cannam@86: cannam@86: mingw* | pw32* | os2*) cannam@86: # This hack is so that the source file can tell whether it is being cannam@86: # built for inclusion in a dll (and should export symbols for example). cannam@86: lt_prog_compiler_pic_F77='-DDLL_EXPORT' cannam@86: ;; cannam@86: cannam@86: hpux9* | hpux10* | hpux11*) cannam@86: lt_prog_compiler_wl_F77='-Wl,' cannam@86: # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but cannam@86: # not for PA HP-UX. cannam@86: case "$host_cpu" in cannam@86: hppa*64*|ia64*) cannam@86: # +Z the default cannam@86: ;; cannam@86: *) cannam@86: lt_prog_compiler_pic_F77='+Z' cannam@86: ;; cannam@86: esac cannam@86: # Is there a better lt_prog_compiler_static that works with the bundled CC? cannam@86: lt_prog_compiler_static_F77='${wl}-a ${wl}archive' cannam@86: ;; cannam@86: cannam@86: irix5* | irix6* | nonstopux*) cannam@86: lt_prog_compiler_wl_F77='-Wl,' cannam@86: # PIC (with -KPIC) is the default. cannam@86: lt_prog_compiler_static_F77='-non_shared' cannam@86: ;; cannam@86: cannam@86: newsos6) cannam@86: lt_prog_compiler_pic_F77='-KPIC' cannam@86: lt_prog_compiler_static_F77='-Bstatic' cannam@86: ;; cannam@86: cannam@86: linux*) cannam@86: case $cc_basename in cannam@86: icc* | ecc*) cannam@86: lt_prog_compiler_wl_F77='-Wl,' cannam@86: lt_prog_compiler_pic_F77='-KPIC' cannam@86: lt_prog_compiler_static_F77='-static' cannam@86: ;; cannam@86: pgcc* | pgf77* | pgf90*) cannam@86: # Portland Group compilers (*not* the Pentium gcc compiler, cannam@86: # which looks to be a dead project) cannam@86: lt_prog_compiler_wl_F77='-Wl,' cannam@86: lt_prog_compiler_pic_F77='-fpic' cannam@86: lt_prog_compiler_static_F77='-static' cannam@86: ;; cannam@86: ccc*) cannam@86: lt_prog_compiler_wl_F77='-Wl,' cannam@86: # All Alpha code is PIC. cannam@86: lt_prog_compiler_static_F77='-non_shared' cannam@86: ;; cannam@86: esac cannam@86: ;; cannam@86: cannam@86: osf3* | osf4* | osf5*) cannam@86: lt_prog_compiler_wl_F77='-Wl,' cannam@86: # All OSF/1 code is PIC. cannam@86: lt_prog_compiler_static_F77='-non_shared' cannam@86: ;; cannam@86: cannam@86: sco3.2v5*) cannam@86: lt_prog_compiler_pic_F77='-Kpic' cannam@86: lt_prog_compiler_static_F77='-dn' cannam@86: ;; cannam@86: cannam@86: solaris*) cannam@86: lt_prog_compiler_pic_F77='-KPIC' cannam@86: lt_prog_compiler_static_F77='-Bstatic' cannam@86: case $cc_basename in cannam@86: f77* | f90* | f95*) cannam@86: lt_prog_compiler_wl_F77='-Qoption ld ';; cannam@86: *) cannam@86: lt_prog_compiler_wl_F77='-Wl,';; cannam@86: esac cannam@86: ;; cannam@86: cannam@86: sunos4*) cannam@86: lt_prog_compiler_wl_F77='-Qoption ld ' cannam@86: lt_prog_compiler_pic_F77='-PIC' cannam@86: lt_prog_compiler_static_F77='-Bstatic' cannam@86: ;; cannam@86: cannam@86: sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) cannam@86: lt_prog_compiler_wl_F77='-Wl,' cannam@86: lt_prog_compiler_pic_F77='-KPIC' cannam@86: lt_prog_compiler_static_F77='-Bstatic' cannam@86: ;; cannam@86: cannam@86: sysv4*MP*) cannam@86: if test -d /usr/nec ;then cannam@86: lt_prog_compiler_pic_F77='-Kconform_pic' cannam@86: lt_prog_compiler_static_F77='-Bstatic' cannam@86: fi cannam@86: ;; cannam@86: cannam@86: unicos*) cannam@86: lt_prog_compiler_wl_F77='-Wl,' cannam@86: lt_prog_compiler_can_build_shared_F77=no cannam@86: ;; cannam@86: cannam@86: uts4*) cannam@86: lt_prog_compiler_pic_F77='-pic' cannam@86: lt_prog_compiler_static_F77='-Bstatic' cannam@86: ;; cannam@86: cannam@86: *) cannam@86: lt_prog_compiler_can_build_shared_F77=no cannam@86: ;; cannam@86: esac cannam@86: fi cannam@86: cannam@86: echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5 cannam@86: echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6 cannam@86: cannam@86: # cannam@86: # Check to make sure the PIC flag actually works. cannam@86: # cannam@86: if test -n "$lt_prog_compiler_pic_F77"; then cannam@86: cannam@86: echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5 cannam@86: echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6 cannam@86: if test "${lt_prog_compiler_pic_works_F77+set}" = set; then cannam@86: echo $ECHO_N "(cached) $ECHO_C" >&6 cannam@86: else cannam@86: lt_prog_compiler_pic_works_F77=no cannam@86: ac_outfile=conftest.$ac_objext cannam@86: printf "$lt_simple_compile_test_code" > conftest.$ac_ext cannam@86: lt_compiler_flag="$lt_prog_compiler_pic_F77" cannam@86: # Insert the option either (1) after the last *FLAGS variable, or cannam@86: # (2) before a word containing "conftest.", or (3) at the end. cannam@86: # Note that $ac_compile itself does not contain backslashes and begins cannam@86: # with a dollar sign (not a hyphen), so the echo should work correctly. cannam@86: # The option is referenced via a variable to avoid confusing sed. cannam@86: lt_compile=`echo "$ac_compile" | $SED \ cannam@86: -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ cannam@86: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ cannam@86: -e 's:$: $lt_compiler_flag:'` cannam@86: (eval echo "\"\$as_me:13692: $lt_compile\"" >&5) cannam@86: (eval "$lt_compile" 2>conftest.err) cannam@86: ac_status=$? cannam@86: cat conftest.err >&5 cannam@86: echo "$as_me:13696: \$? = $ac_status" >&5 cannam@86: if (exit $ac_status) && test -s "$ac_outfile"; then cannam@86: # The compiler can only warn and ignore the option if not recognized cannam@86: # So say no if there are warnings other than the usual output. cannam@86: $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp cannam@86: $SED '/^$/d' conftest.err >conftest.er2 cannam@86: if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then cannam@86: lt_prog_compiler_pic_works_F77=yes cannam@86: fi cannam@86: fi cannam@86: $rm conftest* cannam@86: cannam@86: fi cannam@86: echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5 cannam@86: echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6 cannam@86: cannam@86: if test x"$lt_prog_compiler_pic_works_F77" = xyes; then cannam@86: case $lt_prog_compiler_pic_F77 in cannam@86: "" | " "*) ;; cannam@86: *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;; cannam@86: esac cannam@86: else cannam@86: lt_prog_compiler_pic_F77= cannam@86: lt_prog_compiler_can_build_shared_F77=no cannam@86: fi cannam@86: cannam@86: fi cannam@86: case "$host_os" in cannam@86: # For platforms which do not support PIC, -DPIC is meaningless: cannam@86: *djgpp*) cannam@86: lt_prog_compiler_pic_F77= cannam@86: ;; cannam@86: *) cannam@86: lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77" cannam@86: ;; cannam@86: esac cannam@86: cannam@86: echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 cannam@86: echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 cannam@86: if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then cannam@86: echo $ECHO_N "(cached) $ECHO_C" >&6 cannam@86: else cannam@86: lt_cv_prog_compiler_c_o_F77=no cannam@86: $rm -r conftest 2>/dev/null cannam@86: mkdir conftest cannam@86: cd conftest cannam@86: mkdir out cannam@86: printf "$lt_simple_compile_test_code" > conftest.$ac_ext cannam@86: cannam@86: lt_compiler_flag="-o out/conftest2.$ac_objext" cannam@86: # Insert the option either (1) after the last *FLAGS variable, or cannam@86: # (2) before a word containing "conftest.", or (3) at the end. cannam@86: # Note that $ac_compile itself does not contain backslashes and begins cannam@86: # with a dollar sign (not a hyphen), so the echo should work correctly. cannam@86: lt_compile=`echo "$ac_compile" | $SED \ cannam@86: -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ cannam@86: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ cannam@86: -e 's:$: $lt_compiler_flag:'` cannam@86: (eval echo "\"\$as_me:13754: $lt_compile\"" >&5) cannam@86: (eval "$lt_compile" 2>out/conftest.err) cannam@86: ac_status=$? cannam@86: cat out/conftest.err >&5 cannam@86: echo "$as_me:13758: \$? = $ac_status" >&5 cannam@86: if (exit $ac_status) && test -s out/conftest2.$ac_objext cannam@86: then cannam@86: # The compiler can only warn and ignore the option if not recognized cannam@86: # So say no if there are warnings cannam@86: $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp cannam@86: $SED '/^$/d' out/conftest.err >out/conftest.er2 cannam@86: if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then cannam@86: lt_cv_prog_compiler_c_o_F77=yes cannam@86: fi cannam@86: fi cannam@86: chmod u+w . cannam@86: $rm conftest* cannam@86: # SGI C++ compiler will create directory out/ii_files/ for cannam@86: # template instantiation cannam@86: test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files cannam@86: $rm out/* && rmdir out cannam@86: cd .. cannam@86: rmdir conftest cannam@86: $rm conftest* cannam@86: cannam@86: fi cannam@86: echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5 cannam@86: echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6 cannam@86: cannam@86: cannam@86: hard_links="nottested" cannam@86: if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then cannam@86: # do not overwrite the value of need_locks provided by the user cannam@86: echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 cannam@86: echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 cannam@86: hard_links=yes cannam@86: $rm conftest* cannam@86: ln conftest.a conftest.b 2>/dev/null && hard_links=no cannam@86: touch conftest.a cannam@86: ln conftest.a conftest.b 2>&5 || hard_links=no cannam@86: ln conftest.a conftest.b 2>/dev/null && hard_links=no cannam@86: echo "$as_me:$LINENO: result: $hard_links" >&5 cannam@86: echo "${ECHO_T}$hard_links" >&6 cannam@86: if test "$hard_links" = no; then cannam@86: { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 cannam@86: echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} cannam@86: need_locks=warn cannam@86: fi cannam@86: else cannam@86: need_locks=no cannam@86: fi cannam@86: cannam@86: echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 cannam@86: echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 cannam@86: cannam@86: runpath_var= cannam@86: allow_undefined_flag_F77= cannam@86: enable_shared_with_static_runtimes_F77=no cannam@86: archive_cmds_F77= cannam@86: archive_expsym_cmds_F77= cannam@86: old_archive_From_new_cmds_F77= cannam@86: old_archive_from_expsyms_cmds_F77= cannam@86: export_dynamic_flag_spec_F77= cannam@86: whole_archive_flag_spec_F77= cannam@86: thread_safe_flag_spec_F77= cannam@86: hardcode_libdir_flag_spec_F77= cannam@86: hardcode_libdir_flag_spec_ld_F77= cannam@86: hardcode_libdir_separator_F77= cannam@86: hardcode_direct_F77=no cannam@86: hardcode_minus_L_F77=no cannam@86: hardcode_shlibpath_var_F77=unsupported cannam@86: link_all_deplibs_F77=unknown cannam@86: hardcode_automatic_F77=no cannam@86: module_cmds_F77= cannam@86: module_expsym_cmds_F77= cannam@86: always_export_symbols_F77=no cannam@86: export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' cannam@86: # include_expsyms should be a list of space-separated symbols to be *always* cannam@86: # included in the symbol list cannam@86: include_expsyms_F77= cannam@86: # exclude_expsyms can be an extended regexp of symbols to exclude cannam@86: # it will be wrapped by ` (' and `)$', so one must not match beginning or cannam@86: # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', cannam@86: # as well as any symbol that contains `d'. cannam@86: exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_" cannam@86: # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out cannam@86: # platforms (ab)use it in PIC code, but their linkers get confused if cannam@86: # the symbol is explicitly referenced. Since portable code cannot cannam@86: # rely on this symbol name, it's probably fine to never include it in cannam@86: # preloaded symbol tables. cannam@86: extract_expsyms_cmds= cannam@86: # Just being paranoid about ensuring that cc_basename is set. cannam@86: for cc_temp in $compiler""; do cannam@86: case $cc_temp in cannam@86: compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; cannam@86: distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; cannam@86: \-*) ;; cannam@86: *) break;; cannam@86: esac cannam@86: done cannam@86: cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` cannam@86: cannam@86: case $host_os in cannam@86: cygwin* | mingw* | pw32*) cannam@86: # FIXME: the MSVC++ port hasn't been tested in a loooong time cannam@86: # When not using gcc, we currently assume that we are using cannam@86: # Microsoft Visual C++. cannam@86: if test "$GCC" != yes; then cannam@86: with_gnu_ld=no cannam@86: fi cannam@86: ;; cannam@86: openbsd*) cannam@86: with_gnu_ld=no cannam@86: ;; cannam@86: esac cannam@86: cannam@86: ld_shlibs_F77=yes cannam@86: if test "$with_gnu_ld" = yes; then cannam@86: # If archive_cmds runs LD, not CC, wlarc should be empty cannam@86: wlarc='${wl}' cannam@86: cannam@86: # Set some defaults for GNU ld with shared library support. These cannam@86: # are reset later if shared libraries are not supported. Putting them cannam@86: # here allows them to be overridden if necessary. cannam@86: runpath_var=LD_RUN_PATH cannam@86: hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir' cannam@86: export_dynamic_flag_spec_F77='${wl}--export-dynamic' cannam@86: # ancient GNU ld didn't support --whole-archive et. al. cannam@86: if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then cannam@86: whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' cannam@86: else cannam@86: whole_archive_flag_spec_F77= cannam@86: fi cannam@86: supports_anon_versioning=no cannam@86: case `$LD -v 2>/dev/null` in cannam@86: *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 cannam@86: *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... cannam@86: *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... cannam@86: *\ 2.11.*) ;; # other 2.11 versions cannam@86: *) supports_anon_versioning=yes ;; cannam@86: esac cannam@86: cannam@86: # See if GNU ld supports shared libraries. cannam@86: case $host_os in cannam@86: aix3* | aix4* | aix5*) cannam@86: # On AIX/PPC, the GNU linker is very broken cannam@86: if test "$host_cpu" != ia64; then cannam@86: ld_shlibs_F77=no cannam@86: cat <&2 cannam@86: cannam@86: *** Warning: the GNU linker, at least up to release 2.9.1, is reported cannam@86: *** to be unable to reliably create shared libraries on AIX. cannam@86: *** Therefore, libtool is disabling shared libraries support. If you cannam@86: *** really care for shared libraries, you may want to modify your PATH cannam@86: *** so that a non-GNU linker is found, and then restart. cannam@86: cannam@86: EOF cannam@86: fi cannam@86: ;; cannam@86: cannam@86: amigaos*) cannam@86: 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)' cannam@86: hardcode_libdir_flag_spec_F77='-L$libdir' cannam@86: hardcode_minus_L_F77=yes cannam@86: cannam@86: # Samuel A. Falvo II reports cannam@86: # that the semantics of dynamic libraries on AmigaOS, at least up cannam@86: # to version 4, is to share data among multiple programs linked cannam@86: # with the same dynamic library. Since this doesn't match the cannam@86: # behavior of shared libraries on other platforms, we can't use cannam@86: # them. cannam@86: ld_shlibs_F77=no cannam@86: ;; cannam@86: cannam@86: beos*) cannam@86: if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then cannam@86: allow_undefined_flag_F77=unsupported cannam@86: # Joseph Beckenbach says some releases of gcc cannam@86: # support --undefined. This deserves some investigation. FIXME cannam@86: archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' cannam@86: else cannam@86: ld_shlibs_F77=no cannam@86: fi cannam@86: ;; cannam@86: cannam@86: cygwin* | mingw* | pw32*) cannam@86: # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless, cannam@86: # as there is no search path for DLLs. cannam@86: hardcode_libdir_flag_spec_F77='-L$libdir' cannam@86: allow_undefined_flag_F77=unsupported cannam@86: always_export_symbols_F77=no cannam@86: enable_shared_with_static_runtimes_F77=yes cannam@86: export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' cannam@86: cannam@86: if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then cannam@86: archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' cannam@86: # If the export-symbols file already is a .def file (1st line cannam@86: # is EXPORTS), use it as is; otherwise, prepend... cannam@86: archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then cannam@86: cp $export_symbols $output_objdir/$soname.def; cannam@86: else cannam@86: echo EXPORTS > $output_objdir/$soname.def; cannam@86: cat $export_symbols >> $output_objdir/$soname.def; cannam@86: fi~ cannam@86: $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' cannam@86: else cannam@86: ld_shlibs_F77=no cannam@86: fi cannam@86: ;; cannam@86: cannam@86: linux*) cannam@86: if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then cannam@86: tmp_addflag= cannam@86: case $cc_basename,$host_cpu in cannam@86: pgcc*) # Portland Group C compiler cannam@86: whole_archive_flag_spec_F77= cannam@86: ;; cannam@86: pgf77* | pgf90* ) # Portland Group f77 and f90 compilers cannam@86: whole_archive_flag_spec_F77= cannam@86: tmp_addflag=' -fpic -Mnomain' ;; cannam@86: ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 cannam@86: tmp_addflag=' -i_dynamic' ;; cannam@86: efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 cannam@86: tmp_addflag=' -i_dynamic -nofor_main' ;; cannam@86: ifc* | ifort*) # Intel Fortran compiler cannam@86: tmp_addflag=' -nofor_main' ;; cannam@86: esac cannam@86: archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' cannam@86: cannam@86: if test $supports_anon_versioning = yes; then cannam@86: archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~ cannam@86: cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ cannam@86: $echo "local: *; };" >> $output_objdir/$libname.ver~ cannam@86: $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' cannam@86: fi cannam@86: else cannam@86: ld_shlibs_F77=no cannam@86: fi cannam@86: ;; cannam@86: cannam@86: netbsd*) cannam@86: if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then cannam@86: archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' cannam@86: wlarc= cannam@86: else cannam@86: archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' cannam@86: archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' cannam@86: fi cannam@86: ;; cannam@86: cannam@86: solaris* | sysv5*) cannam@86: if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then cannam@86: ld_shlibs_F77=no cannam@86: cat <&2 cannam@86: cannam@86: *** Warning: The releases 2.8.* of the GNU linker cannot reliably cannam@86: *** create shared libraries on Solaris systems. Therefore, libtool cannam@86: *** is disabling shared libraries support. We urge you to upgrade GNU cannam@86: *** binutils to release 2.9.1 or newer. Another option is to modify cannam@86: *** your PATH or compiler configuration so that the native linker is cannam@86: *** used, and then restart. cannam@86: cannam@86: EOF cannam@86: elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then cannam@86: archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' cannam@86: archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' cannam@86: else cannam@86: ld_shlibs_F77=no cannam@86: fi cannam@86: ;; cannam@86: cannam@86: sunos4*) cannam@86: archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' cannam@86: wlarc= cannam@86: hardcode_direct_F77=yes cannam@86: hardcode_shlibpath_var_F77=no cannam@86: ;; cannam@86: cannam@86: *) cannam@86: if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then cannam@86: archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' cannam@86: archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' cannam@86: else cannam@86: ld_shlibs_F77=no cannam@86: fi cannam@86: ;; cannam@86: esac cannam@86: cannam@86: if test "$ld_shlibs_F77" = no; then cannam@86: runpath_var= cannam@86: hardcode_libdir_flag_spec_F77= cannam@86: export_dynamic_flag_spec_F77= cannam@86: whole_archive_flag_spec_F77= cannam@86: fi cannam@86: else cannam@86: # PORTME fill in a description of your system's linker (not GNU ld) cannam@86: case $host_os in cannam@86: aix3*) cannam@86: allow_undefined_flag_F77=unsupported cannam@86: always_export_symbols_F77=yes cannam@86: 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' cannam@86: # Note: this linker hardcodes the directories in LIBPATH if there cannam@86: # are no directories specified by -L. cannam@86: hardcode_minus_L_F77=yes cannam@86: if test "$GCC" = yes && test -z "$link_static_flag"; then cannam@86: # Neither direct hardcoding nor static linking is supported with a cannam@86: # broken collect2. cannam@86: hardcode_direct_F77=unsupported cannam@86: fi cannam@86: ;; cannam@86: cannam@86: aix4* | aix5*) cannam@86: if test "$host_cpu" = ia64; then cannam@86: # On IA64, the linker does run time linking by default, so we don't cannam@86: # have to do anything special. cannam@86: aix_use_runtimelinking=no cannam@86: exp_sym_flag='-Bexport' cannam@86: no_entry_flag="" cannam@86: else cannam@86: # If we're using GNU nm, then we don't want the "-C" option. cannam@86: # -C means demangle to AIX nm, but means don't demangle with GNU nm cannam@86: if $NM -V 2>&1 | grep 'GNU' > /dev/null; then cannam@86: 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' cannam@86: else cannam@86: 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' cannam@86: fi cannam@86: aix_use_runtimelinking=no cannam@86: cannam@86: # Test if we are trying to use run time linking or normal cannam@86: # AIX style linking. If -brtl is somewhere in LDFLAGS, we cannam@86: # need to do runtime linking. cannam@86: case $host_os in aix4.[23]|aix4.[23].*|aix5*) cannam@86: for ld_flag in $LDFLAGS; do cannam@86: if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then cannam@86: aix_use_runtimelinking=yes cannam@86: break cannam@86: fi cannam@86: done cannam@86: esac cannam@86: cannam@86: exp_sym_flag='-bexport' cannam@86: no_entry_flag='-bnoentry' cannam@86: fi cannam@86: cannam@86: # When large executables or shared objects are built, AIX ld can cannam@86: # have problems creating the table of contents. If linking a library cannam@86: # or program results in "error TOC overflow" add -mminimal-toc to cannam@86: # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not cannam@86: # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. cannam@86: cannam@86: archive_cmds_F77='' cannam@86: hardcode_direct_F77=yes cannam@86: hardcode_libdir_separator_F77=':' cannam@86: link_all_deplibs_F77=yes cannam@86: cannam@86: if test "$GCC" = yes; then cannam@86: case $host_os in aix4.[012]|aix4.[012].*) cannam@86: # We only want to do this on AIX 4.2 and lower, the check cannam@86: # below for broken collect2 doesn't work under 4.3+ cannam@86: collect2name=`${CC} -print-prog-name=collect2` cannam@86: if test -f "$collect2name" && \ cannam@86: strings "$collect2name" | grep resolve_lib_name >/dev/null cannam@86: then cannam@86: # We have reworked collect2 cannam@86: hardcode_direct_F77=yes cannam@86: else cannam@86: # We have old collect2 cannam@86: hardcode_direct_F77=unsupported cannam@86: # It fails to find uninstalled libraries when the uninstalled cannam@86: # path is not listed in the libpath. Setting hardcode_minus_L cannam@86: # to unsupported forces relinking cannam@86: hardcode_minus_L_F77=yes cannam@86: hardcode_libdir_flag_spec_F77='-L$libdir' cannam@86: hardcode_libdir_separator_F77= cannam@86: fi cannam@86: esac cannam@86: shared_flag='-shared' cannam@86: if test "$aix_use_runtimelinking" = yes; then cannam@86: shared_flag="$shared_flag "'${wl}-G' cannam@86: fi cannam@86: else cannam@86: # not using gcc cannam@86: if test "$host_cpu" = ia64; then cannam@86: # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release cannam@86: # chokes on -Wl,-G. The following line is correct: cannam@86: shared_flag='-G' cannam@86: else cannam@86: if test "$aix_use_runtimelinking" = yes; then cannam@86: shared_flag='${wl}-G' cannam@86: else cannam@86: shared_flag='${wl}-bM:SRE' cannam@86: fi cannam@86: fi cannam@86: fi cannam@86: cannam@86: # It seems that -bexpall does not export symbols beginning with cannam@86: # underscore (_), so it is better to generate a list of symbols to export. cannam@86: always_export_symbols_F77=yes cannam@86: if test "$aix_use_runtimelinking" = yes; then cannam@86: # Warning - without using the other runtime loading flags (-brtl), cannam@86: # -berok will link without error, but may produce a broken library. cannam@86: allow_undefined_flag_F77='-berok' cannam@86: # Determine the default libpath from the value encoded in an empty executable. cannam@86: cat >conftest.$ac_ext <<_ACEOF cannam@86: program main cannam@86: cannam@86: end cannam@86: _ACEOF cannam@86: rm -f conftest.$ac_objext conftest$ac_exeext cannam@86: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 cannam@86: (eval $ac_link) 2>conftest.er1 cannam@86: ac_status=$? cannam@86: grep -v '^ *+' conftest.er1 >conftest.err cannam@86: rm -f conftest.er1 cannam@86: cat conftest.err >&5 cannam@86: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@86: (exit $ac_status); } && cannam@86: { ac_try='test -z "$ac_f77_werror_flag" cannam@86: || test ! -s conftest.err' cannam@86: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 cannam@86: (eval $ac_try) 2>&5 cannam@86: ac_status=$? cannam@86: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@86: (exit $ac_status); }; } && cannam@86: { ac_try='test -s conftest$ac_exeext' cannam@86: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 cannam@86: (eval $ac_try) 2>&5 cannam@86: ac_status=$? cannam@86: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@86: (exit $ac_status); }; }; then cannam@86: cannam@86: aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } cannam@86: }'` cannam@86: # Check for a 64-bit object if we didn't find anything. cannam@86: if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } cannam@86: }'`; fi cannam@86: else cannam@86: echo "$as_me: failed program was:" >&5 cannam@86: sed 's/^/| /' conftest.$ac_ext >&5 cannam@86: cannam@86: fi cannam@86: rm -f conftest.err conftest.$ac_objext \ cannam@86: conftest$ac_exeext conftest.$ac_ext cannam@86: if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi cannam@86: cannam@86: hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" cannam@86: 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" cannam@86: else cannam@86: if test "$host_cpu" = ia64; then cannam@86: hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib' cannam@86: allow_undefined_flag_F77="-z nodefs" cannam@86: 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" cannam@86: else cannam@86: # Determine the default libpath from the value encoded in an empty executable. cannam@86: cat >conftest.$ac_ext <<_ACEOF cannam@86: program main cannam@86: cannam@86: end cannam@86: _ACEOF cannam@86: rm -f conftest.$ac_objext conftest$ac_exeext cannam@86: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 cannam@86: (eval $ac_link) 2>conftest.er1 cannam@86: ac_status=$? cannam@86: grep -v '^ *+' conftest.er1 >conftest.err cannam@86: rm -f conftest.er1 cannam@86: cat conftest.err >&5 cannam@86: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@86: (exit $ac_status); } && cannam@86: { ac_try='test -z "$ac_f77_werror_flag" cannam@86: || test ! -s conftest.err' cannam@86: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 cannam@86: (eval $ac_try) 2>&5 cannam@86: ac_status=$? cannam@86: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@86: (exit $ac_status); }; } && cannam@86: { ac_try='test -s conftest$ac_exeext' cannam@86: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 cannam@86: (eval $ac_try) 2>&5 cannam@86: ac_status=$? cannam@86: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@86: (exit $ac_status); }; }; then cannam@86: cannam@86: aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } cannam@86: }'` cannam@86: # Check for a 64-bit object if we didn't find anything. cannam@86: if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } cannam@86: }'`; fi cannam@86: else cannam@86: echo "$as_me: failed program was:" >&5 cannam@86: sed 's/^/| /' conftest.$ac_ext >&5 cannam@86: cannam@86: fi cannam@86: rm -f conftest.err conftest.$ac_objext \ cannam@86: conftest$ac_exeext conftest.$ac_ext cannam@86: if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi cannam@86: cannam@86: hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" cannam@86: # Warning - without using the other run time loading flags, cannam@86: # -berok will link without error, but may produce a broken library. cannam@86: no_undefined_flag_F77=' ${wl}-bernotok' cannam@86: allow_undefined_flag_F77=' ${wl}-berok' cannam@86: # -bexpall does not export symbols beginning with underscore (_) cannam@86: always_export_symbols_F77=yes cannam@86: # Exported symbols can be pulled into shared objects from archives cannam@86: whole_archive_flag_spec_F77=' ' cannam@86: archive_cmds_need_lc_F77=yes cannam@86: # This is similar to how AIX traditionally builds it's shared libraries. cannam@86: 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' cannam@86: fi cannam@86: fi cannam@86: ;; cannam@86: cannam@86: amigaos*) cannam@86: 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)' cannam@86: hardcode_libdir_flag_spec_F77='-L$libdir' cannam@86: hardcode_minus_L_F77=yes cannam@86: # see comment about different semantics on the GNU ld section cannam@86: ld_shlibs_F77=no cannam@86: ;; cannam@86: cannam@86: bsdi[45]*) cannam@86: export_dynamic_flag_spec_F77=-rdynamic cannam@86: ;; cannam@86: cannam@86: cygwin* | mingw* | pw32*) cannam@86: # When not using gcc, we currently assume that we are using cannam@86: # Microsoft Visual C++. cannam@86: # hardcode_libdir_flag_spec is actually meaningless, as there is cannam@86: # no search path for DLLs. cannam@86: hardcode_libdir_flag_spec_F77=' ' cannam@86: allow_undefined_flag_F77=unsupported cannam@86: # Tell ltmain to make .lib files, not .a files. cannam@86: libext=lib cannam@86: # Tell ltmain to make .dll files, not .so files. cannam@86: shrext_cmds=".dll" cannam@86: # FIXME: Setting linknames here is a bad hack. cannam@86: archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' cannam@86: # The linker will automatically build a .lib file if we build a DLL. cannam@86: old_archive_From_new_cmds_F77='true' cannam@86: # FIXME: Should let the user specify the lib program. cannam@86: old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs' cannam@86: fix_srcfile_path_F77='`cygpath -w "$srcfile"`' cannam@86: enable_shared_with_static_runtimes_F77=yes cannam@86: ;; cannam@86: cannam@86: darwin* | rhapsody*) cannam@86: case "$host_os" in cannam@86: rhapsody* | darwin1.[012]) cannam@86: allow_undefined_flag_F77='${wl}-undefined ${wl}suppress' cannam@86: ;; cannam@86: *) # Darwin 1.3 on cannam@86: if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then cannam@86: allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' cannam@86: else cannam@86: case ${MACOSX_DEPLOYMENT_TARGET} in cannam@86: 10.[012]) cannam@86: allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' cannam@86: ;; cannam@86: 10.*) cannam@86: allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup' cannam@86: ;; cannam@86: esac cannam@86: fi cannam@86: ;; cannam@86: esac cannam@86: archive_cmds_need_lc_F77=no cannam@86: hardcode_direct_F77=no cannam@86: hardcode_automatic_F77=yes cannam@86: hardcode_shlibpath_var_F77=unsupported cannam@86: whole_archive_flag_spec_F77='' cannam@86: link_all_deplibs_F77=yes cannam@86: if test "$GCC" = yes ; then cannam@86: output_verbose_link_cmd='echo' cannam@86: archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' cannam@86: module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' cannam@86: # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's cannam@86: archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' cannam@86: 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}' cannam@86: else cannam@86: case $cc_basename in cannam@86: xlc*) cannam@86: output_verbose_link_cmd='echo' cannam@86: archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' cannam@86: module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' cannam@86: # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's cannam@86: archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' cannam@86: 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}' cannam@86: ;; cannam@86: *) cannam@86: ld_shlibs_F77=no cannam@86: ;; cannam@86: esac cannam@86: fi cannam@86: ;; cannam@86: cannam@86: dgux*) cannam@86: archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' cannam@86: hardcode_libdir_flag_spec_F77='-L$libdir' cannam@86: hardcode_shlibpath_var_F77=no cannam@86: ;; cannam@86: cannam@86: freebsd1*) cannam@86: ld_shlibs_F77=no cannam@86: ;; cannam@86: cannam@86: # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor cannam@86: # support. Future versions do this automatically, but an explicit c++rt0.o cannam@86: # does not break anything, and helps significantly (at the cost of a little cannam@86: # extra space). cannam@86: freebsd2.2*) cannam@86: archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' cannam@86: hardcode_libdir_flag_spec_F77='-R$libdir' cannam@86: hardcode_direct_F77=yes cannam@86: hardcode_shlibpath_var_F77=no cannam@86: ;; cannam@86: cannam@86: # Unfortunately, older versions of FreeBSD 2 do not have this feature. cannam@86: freebsd2*) cannam@86: archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' cannam@86: hardcode_direct_F77=yes cannam@86: hardcode_minus_L_F77=yes cannam@86: hardcode_shlibpath_var_F77=no cannam@86: ;; cannam@86: cannam@86: # FreeBSD 3 and greater uses gcc -shared to do shared libraries. cannam@86: freebsd* | kfreebsd*-gnu | dragonfly*) cannam@86: archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' cannam@86: hardcode_libdir_flag_spec_F77='-R$libdir' cannam@86: hardcode_direct_F77=yes cannam@86: hardcode_shlibpath_var_F77=no cannam@86: ;; cannam@86: cannam@86: hpux9*) cannam@86: if test "$GCC" = yes; then cannam@86: 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' cannam@86: else cannam@86: 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' cannam@86: fi cannam@86: hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' cannam@86: hardcode_libdir_separator_F77=: cannam@86: hardcode_direct_F77=yes cannam@86: cannam@86: # hardcode_minus_L: Not really in the search PATH, cannam@86: # but as the default location of the library. cannam@86: hardcode_minus_L_F77=yes cannam@86: export_dynamic_flag_spec_F77='${wl}-E' cannam@86: ;; cannam@86: cannam@86: hpux10* | hpux11*) cannam@86: if test "$GCC" = yes -a "$with_gnu_ld" = no; then cannam@86: case "$host_cpu" in cannam@86: hppa*64*|ia64*) cannam@86: archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' cannam@86: ;; cannam@86: *) cannam@86: archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' cannam@86: ;; cannam@86: esac cannam@86: else cannam@86: case "$host_cpu" in cannam@86: hppa*64*|ia64*) cannam@86: archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags' cannam@86: ;; cannam@86: *) cannam@86: archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' cannam@86: ;; cannam@86: esac cannam@86: fi cannam@86: if test "$with_gnu_ld" = no; then cannam@86: case "$host_cpu" in cannam@86: hppa*64*) cannam@86: hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' cannam@86: hardcode_libdir_flag_spec_ld_F77='+b $libdir' cannam@86: hardcode_libdir_separator_F77=: cannam@86: hardcode_direct_F77=no cannam@86: hardcode_shlibpath_var_F77=no cannam@86: ;; cannam@86: ia64*) cannam@86: hardcode_libdir_flag_spec_F77='-L$libdir' cannam@86: hardcode_direct_F77=no cannam@86: hardcode_shlibpath_var_F77=no cannam@86: cannam@86: # hardcode_minus_L: Not really in the search PATH, cannam@86: # but as the default location of the library. cannam@86: hardcode_minus_L_F77=yes cannam@86: ;; cannam@86: *) cannam@86: hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' cannam@86: hardcode_libdir_separator_F77=: cannam@86: hardcode_direct_F77=yes cannam@86: export_dynamic_flag_spec_F77='${wl}-E' cannam@86: cannam@86: # hardcode_minus_L: Not really in the search PATH, cannam@86: # but as the default location of the library. cannam@86: hardcode_minus_L_F77=yes cannam@86: ;; cannam@86: esac cannam@86: fi cannam@86: ;; cannam@86: cannam@86: irix5* | irix6* | nonstopux*) cannam@86: if test "$GCC" = yes; then cannam@86: 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' cannam@86: else cannam@86: 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' cannam@86: hardcode_libdir_flag_spec_ld_F77='-rpath $libdir' cannam@86: fi cannam@86: hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' cannam@86: hardcode_libdir_separator_F77=: cannam@86: link_all_deplibs_F77=yes cannam@86: ;; cannam@86: cannam@86: netbsd*) cannam@86: if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then cannam@86: archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out cannam@86: else cannam@86: archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF cannam@86: fi cannam@86: hardcode_libdir_flag_spec_F77='-R$libdir' cannam@86: hardcode_direct_F77=yes cannam@86: hardcode_shlibpath_var_F77=no cannam@86: ;; cannam@86: cannam@86: newsos6) cannam@86: archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' cannam@86: hardcode_direct_F77=yes cannam@86: hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' cannam@86: hardcode_libdir_separator_F77=: cannam@86: hardcode_shlibpath_var_F77=no cannam@86: ;; cannam@86: cannam@86: openbsd*) cannam@86: hardcode_direct_F77=yes cannam@86: hardcode_shlibpath_var_F77=no cannam@86: if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then cannam@86: archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' cannam@86: archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' cannam@86: hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' cannam@86: export_dynamic_flag_spec_F77='${wl}-E' cannam@86: else cannam@86: case $host_os in cannam@86: openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) cannam@86: archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' cannam@86: hardcode_libdir_flag_spec_F77='-R$libdir' cannam@86: ;; cannam@86: *) cannam@86: archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' cannam@86: hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' cannam@86: ;; cannam@86: esac cannam@86: fi cannam@86: ;; cannam@86: cannam@86: os2*) cannam@86: hardcode_libdir_flag_spec_F77='-L$libdir' cannam@86: hardcode_minus_L_F77=yes cannam@86: allow_undefined_flag_F77=unsupported cannam@86: 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' cannam@86: old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' cannam@86: ;; cannam@86: cannam@86: osf3*) cannam@86: if test "$GCC" = yes; then cannam@86: allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' cannam@86: 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' cannam@86: else cannam@86: allow_undefined_flag_F77=' -expect_unresolved \*' cannam@86: 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' cannam@86: fi cannam@86: hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' cannam@86: hardcode_libdir_separator_F77=: cannam@86: ;; cannam@86: cannam@86: osf4* | osf5*) # as osf3* with the addition of -msym flag cannam@86: if test "$GCC" = yes; then cannam@86: allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' cannam@86: 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' cannam@86: hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' cannam@86: else cannam@86: allow_undefined_flag_F77=' -expect_unresolved \*' cannam@86: 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' cannam@86: 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~ cannam@86: $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp' cannam@86: cannam@86: # Both c and cxx compiler support -rpath directly cannam@86: hardcode_libdir_flag_spec_F77='-rpath $libdir' cannam@86: fi cannam@86: hardcode_libdir_separator_F77=: cannam@86: ;; cannam@86: cannam@86: sco3.2v5*) cannam@86: archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' cannam@86: hardcode_shlibpath_var_F77=no cannam@86: export_dynamic_flag_spec_F77='${wl}-Bexport' cannam@86: runpath_var=LD_RUN_PATH cannam@86: hardcode_runpath_var=yes cannam@86: ;; cannam@86: cannam@86: solaris*) cannam@86: no_undefined_flag_F77=' -z text' cannam@86: if test "$GCC" = yes; then cannam@86: wlarc='${wl}' cannam@86: archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' cannam@86: archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ cannam@86: $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' cannam@86: else cannam@86: wlarc='' cannam@86: archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' cannam@86: archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ cannam@86: $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' cannam@86: fi cannam@86: hardcode_libdir_flag_spec_F77='-R$libdir' cannam@86: hardcode_shlibpath_var_F77=no cannam@86: case $host_os in cannam@86: solaris2.[0-5] | solaris2.[0-5].*) ;; cannam@86: *) cannam@86: # The compiler driver will combine linker options so we cannam@86: # cannot just pass the convience library names through cannam@86: # without $wl, iff we do not link with $LD. cannam@86: # Luckily, gcc supports the same syntax we need for Sun Studio. cannam@86: # Supported since Solaris 2.6 (maybe 2.5.1?) cannam@86: case $wlarc in cannam@86: '') cannam@86: whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;; cannam@86: *) cannam@86: whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;; cannam@86: esac ;; cannam@86: esac cannam@86: link_all_deplibs_F77=yes cannam@86: ;; cannam@86: cannam@86: sunos4*) cannam@86: if test "x$host_vendor" = xsequent; then cannam@86: # Use $CC to link under sequent, because it throws in some extra .o cannam@86: # files that make .init and .fini sections work. cannam@86: archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' cannam@86: else cannam@86: archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' cannam@86: fi cannam@86: hardcode_libdir_flag_spec_F77='-L$libdir' cannam@86: hardcode_direct_F77=yes cannam@86: hardcode_minus_L_F77=yes cannam@86: hardcode_shlibpath_var_F77=no cannam@86: ;; cannam@86: cannam@86: sysv4) cannam@86: case $host_vendor in cannam@86: sni) cannam@86: archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' cannam@86: hardcode_direct_F77=yes # is this really true??? cannam@86: ;; cannam@86: siemens) cannam@86: ## LD is ld it makes a PLAMLIB cannam@86: ## CC just makes a GrossModule. cannam@86: archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' cannam@86: reload_cmds_F77='$CC -r -o $output$reload_objs' cannam@86: hardcode_direct_F77=no cannam@86: ;; cannam@86: motorola) cannam@86: archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' cannam@86: hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie cannam@86: ;; cannam@86: esac cannam@86: runpath_var='LD_RUN_PATH' cannam@86: hardcode_shlibpath_var_F77=no cannam@86: ;; cannam@86: cannam@86: sysv4.3*) cannam@86: archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' cannam@86: hardcode_shlibpath_var_F77=no cannam@86: export_dynamic_flag_spec_F77='-Bexport' cannam@86: ;; cannam@86: cannam@86: sysv4*MP*) cannam@86: if test -d /usr/nec; then cannam@86: archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' cannam@86: hardcode_shlibpath_var_F77=no cannam@86: runpath_var=LD_RUN_PATH cannam@86: hardcode_runpath_var=yes cannam@86: ld_shlibs_F77=yes cannam@86: fi cannam@86: ;; cannam@86: cannam@86: sysv4.2uw2*) cannam@86: archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' cannam@86: hardcode_direct_F77=yes cannam@86: hardcode_minus_L_F77=no cannam@86: hardcode_shlibpath_var_F77=no cannam@86: hardcode_runpath_var=yes cannam@86: runpath_var=LD_RUN_PATH cannam@86: ;; cannam@86: cannam@86: sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) cannam@86: no_undefined_flag_F77='${wl}-z ${wl}text' cannam@86: if test "$GCC" = yes; then cannam@86: archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' cannam@86: else cannam@86: archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' cannam@86: fi cannam@86: runpath_var='LD_RUN_PATH' cannam@86: hardcode_shlibpath_var_F77=no cannam@86: ;; cannam@86: cannam@86: sysv5*) cannam@86: no_undefined_flag_F77=' -z text' cannam@86: # $CC -shared without GNU ld will not create a library from C++ cannam@86: # object files and a static libstdc++, better avoid it by now cannam@86: archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' cannam@86: archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ cannam@86: $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' cannam@86: hardcode_libdir_flag_spec_F77= cannam@86: hardcode_shlibpath_var_F77=no cannam@86: runpath_var='LD_RUN_PATH' cannam@86: ;; cannam@86: cannam@86: uts4*) cannam@86: archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' cannam@86: hardcode_libdir_flag_spec_F77='-L$libdir' cannam@86: hardcode_shlibpath_var_F77=no cannam@86: ;; cannam@86: cannam@86: *) cannam@86: ld_shlibs_F77=no cannam@86: ;; cannam@86: esac cannam@86: fi cannam@86: cannam@86: echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5 cannam@86: echo "${ECHO_T}$ld_shlibs_F77" >&6 cannam@86: test "$ld_shlibs_F77" = no && can_build_shared=no cannam@86: cannam@86: variables_saved_for_relink="PATH $shlibpath_var $runpath_var" cannam@86: if test "$GCC" = yes; then cannam@86: variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" cannam@86: fi cannam@86: cannam@86: # cannam@86: # Do we need to explicitly link libc? cannam@86: # cannam@86: case "x$archive_cmds_need_lc_F77" in cannam@86: x|xyes) cannam@86: # Assume -lc should be added cannam@86: archive_cmds_need_lc_F77=yes cannam@86: cannam@86: if test "$enable_shared" = yes && test "$GCC" = yes; then cannam@86: case $archive_cmds_F77 in cannam@86: *'~'*) cannam@86: # FIXME: we may have to deal with multi-command sequences. cannam@86: ;; cannam@86: '$CC '*) cannam@86: # Test whether the compiler implicitly links with -lc since on some cannam@86: # systems, -lgcc has to come before -lc. If gcc already passes -lc cannam@86: # to ld, don't add -lc before -lgcc. cannam@86: echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 cannam@86: echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 cannam@86: $rm conftest* cannam@86: printf "$lt_simple_compile_test_code" > conftest.$ac_ext cannam@86: cannam@86: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 cannam@86: (eval $ac_compile) 2>&5 cannam@86: ac_status=$? cannam@86: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@86: (exit $ac_status); } 2>conftest.err; then cannam@86: soname=conftest cannam@86: lib=conftest cannam@86: libobjs=conftest.$ac_objext cannam@86: deplibs= cannam@86: wl=$lt_prog_compiler_wl_F77 cannam@86: compiler_flags=-v cannam@86: linker_flags=-v cannam@86: verstring= cannam@86: output_objdir=. cannam@86: libname=conftest cannam@86: lt_save_allow_undefined_flag=$allow_undefined_flag_F77 cannam@86: allow_undefined_flag_F77= cannam@86: if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 cannam@86: (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 cannam@86: ac_status=$? cannam@86: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@86: (exit $ac_status); } cannam@86: then cannam@86: archive_cmds_need_lc_F77=no cannam@86: else cannam@86: archive_cmds_need_lc_F77=yes cannam@86: fi cannam@86: allow_undefined_flag_F77=$lt_save_allow_undefined_flag cannam@86: else cannam@86: cat conftest.err 1>&5 cannam@86: fi cannam@86: $rm conftest* cannam@86: echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5 cannam@86: echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6 cannam@86: ;; cannam@86: esac cannam@86: fi cannam@86: ;; cannam@86: esac cannam@86: cannam@86: echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 cannam@86: echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 cannam@86: library_names_spec= cannam@86: libname_spec='lib$name' cannam@86: soname_spec= cannam@86: shrext_cmds=".so" cannam@86: postinstall_cmds= cannam@86: postuninstall_cmds= cannam@86: finish_cmds= cannam@86: finish_eval= cannam@86: shlibpath_var= cannam@86: shlibpath_overrides_runpath=unknown cannam@86: version_type=none cannam@86: dynamic_linker="$host_os ld.so" cannam@86: sys_lib_dlsearch_path_spec="/lib /usr/lib" cannam@86: if test "$GCC" = yes; then cannam@86: sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` cannam@86: if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then cannam@86: # if the path contains ";" then we assume it to be the separator cannam@86: # otherwise default to the standard path separator (i.e. ":") - it is cannam@86: # assumed that no part of a normal pathname contains ";" but that should cannam@86: # okay in the real world where ";" in dirpaths is itself problematic. cannam@86: sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` cannam@86: else cannam@86: sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` cannam@86: fi cannam@86: else cannam@86: sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" cannam@86: fi cannam@86: need_lib_prefix=unknown cannam@86: hardcode_into_libs=no cannam@86: cannam@86: # when you set need_version to no, make sure it does not cause -set_version cannam@86: # flags to be left without arguments cannam@86: need_version=unknown cannam@86: cannam@86: case $host_os in cannam@86: aix3*) cannam@86: version_type=linux cannam@86: library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' cannam@86: shlibpath_var=LIBPATH cannam@86: cannam@86: # AIX 3 has no versioning support, so we append a major version to the name. cannam@86: soname_spec='${libname}${release}${shared_ext}$major' cannam@86: ;; cannam@86: cannam@86: aix4* | aix5*) cannam@86: version_type=linux cannam@86: need_lib_prefix=no cannam@86: need_version=no cannam@86: hardcode_into_libs=yes cannam@86: if test "$host_cpu" = ia64; then cannam@86: # AIX 5 supports IA64 cannam@86: library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' cannam@86: shlibpath_var=LD_LIBRARY_PATH cannam@86: else cannam@86: # With GCC up to 2.95.x, collect2 would create an import file cannam@86: # for dependence libraries. The import file would start with cannam@86: # the line `#! .'. This would cause the generated library to cannam@86: # depend on `.', always an invalid library. This was fixed in cannam@86: # development snapshots of GCC prior to 3.0. cannam@86: case $host_os in cannam@86: aix4 | aix4.[01] | aix4.[01].*) cannam@86: if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' cannam@86: echo ' yes ' cannam@86: echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then cannam@86: : cannam@86: else cannam@86: can_build_shared=no cannam@86: fi cannam@86: ;; cannam@86: esac cannam@86: # AIX (on Power*) has no versioning support, so currently we can not hardcode correct cannam@86: # soname into executable. Probably we can add versioning support to cannam@86: # collect2, so additional links can be useful in future. cannam@86: if test "$aix_use_runtimelinking" = yes; then cannam@86: # If using run time linking (on AIX 4.2 or later) use lib.so cannam@86: # instead of lib.a to let people know that these are not cannam@86: # typical AIX shared libraries. cannam@86: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' cannam@86: else cannam@86: # We preserve .a as extension for shared libraries through AIX4.2 cannam@86: # and later when we are not doing run time linking. cannam@86: library_names_spec='${libname}${release}.a $libname.a' cannam@86: soname_spec='${libname}${release}${shared_ext}$major' cannam@86: fi cannam@86: shlibpath_var=LIBPATH cannam@86: fi cannam@86: ;; cannam@86: cannam@86: amigaos*) cannam@86: library_names_spec='$libname.ixlibrary $libname.a' cannam@86: # Create ${libname}_ixlibrary.a entries in /sys/libs. cannam@86: 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' cannam@86: ;; cannam@86: cannam@86: beos*) cannam@86: library_names_spec='${libname}${shared_ext}' cannam@86: dynamic_linker="$host_os ld.so" cannam@86: shlibpath_var=LIBRARY_PATH cannam@86: ;; cannam@86: cannam@86: bsdi[45]*) cannam@86: version_type=linux cannam@86: need_version=no cannam@86: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' cannam@86: soname_spec='${libname}${release}${shared_ext}$major' cannam@86: finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' cannam@86: shlibpath_var=LD_LIBRARY_PATH cannam@86: sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" cannam@86: sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" cannam@86: # the default ld.so.conf also contains /usr/contrib/lib and cannam@86: # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow cannam@86: # libtool to hard-code these into programs cannam@86: ;; cannam@86: cannam@86: cygwin* | mingw* | pw32*) cannam@86: version_type=windows cannam@86: shrext_cmds=".dll" cannam@86: need_version=no cannam@86: need_lib_prefix=no cannam@86: cannam@86: case $GCC,$host_os in cannam@86: yes,cygwin* | yes,mingw* | yes,pw32*) cannam@86: library_names_spec='$libname.dll.a' cannam@86: # DLL is installed to $(libdir)/../bin by postinstall_cmds cannam@86: postinstall_cmds='base_file=`basename \${file}`~ cannam@86: dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ cannam@86: dldir=$destdir/`dirname \$dlpath`~ cannam@86: test -d \$dldir || mkdir -p \$dldir~ cannam@86: $install_prog $dir/$dlname \$dldir/$dlname' cannam@86: postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ cannam@86: dlpath=$dir/\$dldll~ cannam@86: $rm \$dlpath' cannam@86: shlibpath_overrides_runpath=yes cannam@86: cannam@86: case $host_os in cannam@86: cygwin*) cannam@86: # Cygwin DLLs use 'cyg' prefix rather than 'lib' cannam@86: soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' cannam@86: sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" cannam@86: ;; cannam@86: mingw*) cannam@86: # MinGW DLLs use traditional 'lib' prefix cannam@86: soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' cannam@86: sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` cannam@86: if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then cannam@86: # It is most probably a Windows format PATH printed by cannam@86: # mingw gcc, but we are running on Cygwin. Gcc prints its search cannam@86: # path with ; separators, and with drive letters. We can handle the cannam@86: # drive letters (cygwin fileutils understands them), so leave them, cannam@86: # especially as we might pass files found there to a mingw objdump, cannam@86: # which wouldn't understand a cygwinified path. Ahh. cannam@86: sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` cannam@86: else cannam@86: sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` cannam@86: fi cannam@86: ;; cannam@86: pw32*) cannam@86: # pw32 DLLs use 'pw' prefix rather than 'lib' cannam@86: library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' cannam@86: ;; cannam@86: esac cannam@86: ;; cannam@86: cannam@86: *) cannam@86: library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' cannam@86: ;; cannam@86: esac cannam@86: dynamic_linker='Win32 ld.exe' cannam@86: # FIXME: first we should search . and the directory the executable is in cannam@86: shlibpath_var=PATH cannam@86: ;; cannam@86: cannam@86: darwin* | rhapsody*) cannam@86: dynamic_linker="$host_os dyld" cannam@86: version_type=darwin cannam@86: need_lib_prefix=no cannam@86: need_version=no cannam@86: library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' cannam@86: soname_spec='${libname}${release}${major}$shared_ext' cannam@86: shlibpath_overrides_runpath=yes cannam@86: shlibpath_var=DYLD_LIBRARY_PATH cannam@86: shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)' cannam@86: # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. cannam@86: if test "$GCC" = yes; then cannam@86: 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"` cannam@86: else cannam@86: sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' cannam@86: fi cannam@86: sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' cannam@86: ;; cannam@86: cannam@86: dgux*) cannam@86: version_type=linux cannam@86: need_lib_prefix=no cannam@86: need_version=no cannam@86: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' cannam@86: soname_spec='${libname}${release}${shared_ext}$major' cannam@86: shlibpath_var=LD_LIBRARY_PATH cannam@86: ;; cannam@86: cannam@86: freebsd1*) cannam@86: dynamic_linker=no cannam@86: ;; cannam@86: cannam@86: kfreebsd*-gnu) cannam@86: version_type=linux cannam@86: need_lib_prefix=no cannam@86: need_version=no cannam@86: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' cannam@86: soname_spec='${libname}${release}${shared_ext}$major' cannam@86: shlibpath_var=LD_LIBRARY_PATH cannam@86: shlibpath_overrides_runpath=no cannam@86: hardcode_into_libs=yes cannam@86: dynamic_linker='GNU ld.so' cannam@86: ;; cannam@86: cannam@86: freebsd* | dragonfly*) cannam@86: # DragonFly does not have aout. When/if they implement a new cannam@86: # versioning mechanism, adjust this. cannam@86: objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` cannam@86: version_type=freebsd-$objformat cannam@86: case $version_type in cannam@86: freebsd-elf*) cannam@86: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' cannam@86: need_version=no cannam@86: need_lib_prefix=no cannam@86: ;; cannam@86: freebsd-*) cannam@86: library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' cannam@86: need_version=yes cannam@86: ;; cannam@86: esac cannam@86: shlibpath_var=LD_LIBRARY_PATH cannam@86: case $host_os in cannam@86: freebsd2*) cannam@86: shlibpath_overrides_runpath=yes cannam@86: ;; cannam@86: freebsd3.[01]* | freebsdelf3.[01]*) cannam@86: shlibpath_overrides_runpath=yes cannam@86: hardcode_into_libs=yes cannam@86: ;; cannam@86: *) # from 3.2 on cannam@86: shlibpath_overrides_runpath=no cannam@86: hardcode_into_libs=yes cannam@86: ;; cannam@86: esac cannam@86: ;; cannam@86: cannam@86: gnu*) cannam@86: version_type=linux cannam@86: need_lib_prefix=no cannam@86: need_version=no cannam@86: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' cannam@86: soname_spec='${libname}${release}${shared_ext}$major' cannam@86: shlibpath_var=LD_LIBRARY_PATH cannam@86: hardcode_into_libs=yes cannam@86: ;; cannam@86: cannam@86: hpux9* | hpux10* | hpux11*) cannam@86: # Give a soname corresponding to the major version so that dld.sl refuses to cannam@86: # link against other versions. cannam@86: version_type=sunos cannam@86: need_lib_prefix=no cannam@86: need_version=no cannam@86: case "$host_cpu" in cannam@86: ia64*) cannam@86: shrext_cmds='.so' cannam@86: hardcode_into_libs=yes cannam@86: dynamic_linker="$host_os dld.so" cannam@86: shlibpath_var=LD_LIBRARY_PATH cannam@86: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. cannam@86: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' cannam@86: soname_spec='${libname}${release}${shared_ext}$major' cannam@86: if test "X$HPUX_IA64_MODE" = X32; then cannam@86: sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" cannam@86: else cannam@86: sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" cannam@86: fi cannam@86: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec cannam@86: ;; cannam@86: hppa*64*) cannam@86: shrext_cmds='.sl' cannam@86: hardcode_into_libs=yes cannam@86: dynamic_linker="$host_os dld.sl" cannam@86: shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH cannam@86: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. cannam@86: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' cannam@86: soname_spec='${libname}${release}${shared_ext}$major' cannam@86: sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" cannam@86: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec cannam@86: ;; cannam@86: *) cannam@86: shrext_cmds='.sl' cannam@86: dynamic_linker="$host_os dld.sl" cannam@86: shlibpath_var=SHLIB_PATH cannam@86: shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH cannam@86: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' cannam@86: soname_spec='${libname}${release}${shared_ext}$major' cannam@86: ;; cannam@86: esac cannam@86: # HP-UX runs *really* slowly unless shared libraries are mode 555. cannam@86: postinstall_cmds='chmod 555 $lib' cannam@86: ;; cannam@86: cannam@86: irix5* | irix6* | nonstopux*) cannam@86: case $host_os in cannam@86: nonstopux*) version_type=nonstopux ;; cannam@86: *) cannam@86: if test "$lt_cv_prog_gnu_ld" = yes; then cannam@86: version_type=linux cannam@86: else cannam@86: version_type=irix cannam@86: fi ;; cannam@86: esac cannam@86: need_lib_prefix=no cannam@86: need_version=no cannam@86: soname_spec='${libname}${release}${shared_ext}$major' cannam@86: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' cannam@86: case $host_os in cannam@86: irix5* | nonstopux*) cannam@86: libsuff= shlibsuff= cannam@86: ;; cannam@86: *) cannam@86: case $LD in # libtool.m4 will add one of these switches to LD cannam@86: *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") cannam@86: libsuff= shlibsuff= libmagic=32-bit;; cannam@86: *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") cannam@86: libsuff=32 shlibsuff=N32 libmagic=N32;; cannam@86: *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") cannam@86: libsuff=64 shlibsuff=64 libmagic=64-bit;; cannam@86: *) libsuff= shlibsuff= libmagic=never-match;; cannam@86: esac cannam@86: ;; cannam@86: esac cannam@86: shlibpath_var=LD_LIBRARY${shlibsuff}_PATH cannam@86: shlibpath_overrides_runpath=no cannam@86: sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" cannam@86: sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" cannam@86: hardcode_into_libs=yes cannam@86: ;; cannam@86: cannam@86: # No shared lib support for Linux oldld, aout, or coff. cannam@86: linux*oldld* | linux*aout* | linux*coff*) cannam@86: dynamic_linker=no cannam@86: ;; cannam@86: cannam@86: # This must be Linux ELF. cannam@86: linux*) cannam@86: version_type=linux cannam@86: need_lib_prefix=no cannam@86: need_version=no cannam@86: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' cannam@86: soname_spec='${libname}${release}${shared_ext}$major' cannam@86: finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' cannam@86: shlibpath_var=LD_LIBRARY_PATH cannam@86: shlibpath_overrides_runpath=no cannam@86: # This implies no fast_install, which is unacceptable. cannam@86: # Some rework will be needed to allow for fast_install cannam@86: # before this can be enabled. cannam@86: hardcode_into_libs=yes cannam@86: cannam@86: # find out which ABI we are using cannam@86: libsuff= cannam@86: case "$host_cpu" in cannam@86: x86_64*|s390x*|powerpc64*) cannam@86: echo '#line 15119 "configure"' > conftest.$ac_ext cannam@86: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 cannam@86: (eval $ac_compile) 2>&5 cannam@86: ac_status=$? cannam@86: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@86: (exit $ac_status); }; then cannam@86: case `/usr/bin/file conftest.$ac_objext` in cannam@86: *64-bit*) cannam@86: libsuff=64 cannam@86: sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}" cannam@86: ;; cannam@86: esac cannam@86: fi cannam@86: rm -rf conftest* cannam@86: ;; cannam@86: esac cannam@86: cannam@86: # Append ld.so.conf contents to the search path cannam@86: if test -f /etc/ld.so.conf; then cannam@86: lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,\t]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` cannam@86: sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra" cannam@86: fi cannam@86: cannam@86: # We used to test for /lib/ld.so.1 and disable shared libraries on cannam@86: # powerpc, because MkLinux only supported shared libraries with the cannam@86: # GNU dynamic linker. Since this was broken with cross compilers, cannam@86: # most powerpc-linux boxes support dynamic linking these days and cannam@86: # people can always --disable-shared, the test was removed, and we cannam@86: # assume the GNU/Linux dynamic linker is in use. cannam@86: dynamic_linker='GNU/Linux ld.so' cannam@86: ;; cannam@86: cannam@86: knetbsd*-gnu) cannam@86: version_type=linux cannam@86: need_lib_prefix=no cannam@86: need_version=no cannam@86: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' cannam@86: soname_spec='${libname}${release}${shared_ext}$major' cannam@86: shlibpath_var=LD_LIBRARY_PATH cannam@86: shlibpath_overrides_runpath=no cannam@86: hardcode_into_libs=yes cannam@86: dynamic_linker='GNU ld.so' cannam@86: ;; cannam@86: cannam@86: netbsd*) cannam@86: version_type=sunos cannam@86: need_lib_prefix=no cannam@86: need_version=no cannam@86: if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then cannam@86: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' cannam@86: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' cannam@86: dynamic_linker='NetBSD (a.out) ld.so' cannam@86: else cannam@86: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' cannam@86: soname_spec='${libname}${release}${shared_ext}$major' cannam@86: dynamic_linker='NetBSD ld.elf_so' cannam@86: fi cannam@86: shlibpath_var=LD_LIBRARY_PATH cannam@86: shlibpath_overrides_runpath=yes cannam@86: hardcode_into_libs=yes cannam@86: ;; cannam@86: cannam@86: newsos6) cannam@86: version_type=linux cannam@86: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' cannam@86: shlibpath_var=LD_LIBRARY_PATH cannam@86: shlibpath_overrides_runpath=yes cannam@86: ;; cannam@86: cannam@86: nto-qnx*) cannam@86: version_type=linux cannam@86: need_lib_prefix=no cannam@86: need_version=no cannam@86: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' cannam@86: soname_spec='${libname}${release}${shared_ext}$major' cannam@86: shlibpath_var=LD_LIBRARY_PATH cannam@86: shlibpath_overrides_runpath=yes cannam@86: ;; cannam@86: cannam@86: openbsd*) cannam@86: version_type=sunos cannam@86: need_lib_prefix=no cannam@86: need_version=no cannam@86: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' cannam@86: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' cannam@86: shlibpath_var=LD_LIBRARY_PATH cannam@86: if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then cannam@86: case $host_os in cannam@86: openbsd2.[89] | openbsd2.[89].*) cannam@86: shlibpath_overrides_runpath=no cannam@86: ;; cannam@86: *) cannam@86: shlibpath_overrides_runpath=yes cannam@86: ;; cannam@86: esac cannam@86: else cannam@86: shlibpath_overrides_runpath=yes cannam@86: fi cannam@86: ;; cannam@86: cannam@86: os2*) cannam@86: libname_spec='$name' cannam@86: shrext_cmds=".dll" cannam@86: need_lib_prefix=no cannam@86: library_names_spec='$libname${shared_ext} $libname.a' cannam@86: dynamic_linker='OS/2 ld.exe' cannam@86: shlibpath_var=LIBPATH cannam@86: ;; cannam@86: cannam@86: osf3* | osf4* | osf5*) cannam@86: version_type=osf cannam@86: need_lib_prefix=no cannam@86: need_version=no cannam@86: soname_spec='${libname}${release}${shared_ext}$major' cannam@86: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' cannam@86: shlibpath_var=LD_LIBRARY_PATH cannam@86: sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" cannam@86: sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" cannam@86: ;; cannam@86: cannam@86: sco3.2v5*) cannam@86: version_type=osf cannam@86: soname_spec='${libname}${release}${shared_ext}$major' cannam@86: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' cannam@86: shlibpath_var=LD_LIBRARY_PATH cannam@86: ;; cannam@86: cannam@86: solaris*) cannam@86: version_type=linux cannam@86: need_lib_prefix=no cannam@86: need_version=no cannam@86: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' cannam@86: soname_spec='${libname}${release}${shared_ext}$major' cannam@86: shlibpath_var=LD_LIBRARY_PATH cannam@86: shlibpath_overrides_runpath=yes cannam@86: hardcode_into_libs=yes cannam@86: # ldd complains unless libraries are executable cannam@86: postinstall_cmds='chmod +x $lib' cannam@86: ;; cannam@86: cannam@86: sunos4*) cannam@86: version_type=sunos cannam@86: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' cannam@86: finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' cannam@86: shlibpath_var=LD_LIBRARY_PATH cannam@86: shlibpath_overrides_runpath=yes cannam@86: if test "$with_gnu_ld" = yes; then cannam@86: need_lib_prefix=no cannam@86: fi cannam@86: need_version=yes cannam@86: ;; cannam@86: cannam@86: sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) cannam@86: version_type=linux cannam@86: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' cannam@86: soname_spec='${libname}${release}${shared_ext}$major' cannam@86: shlibpath_var=LD_LIBRARY_PATH cannam@86: case $host_vendor in cannam@86: sni) cannam@86: shlibpath_overrides_runpath=no cannam@86: need_lib_prefix=no cannam@86: export_dynamic_flag_spec='${wl}-Blargedynsym' cannam@86: runpath_var=LD_RUN_PATH cannam@86: ;; cannam@86: siemens) cannam@86: need_lib_prefix=no cannam@86: ;; cannam@86: motorola) cannam@86: need_lib_prefix=no cannam@86: need_version=no cannam@86: shlibpath_overrides_runpath=no cannam@86: sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' cannam@86: ;; cannam@86: esac cannam@86: ;; cannam@86: cannam@86: sysv4*MP*) cannam@86: if test -d /usr/nec ;then cannam@86: version_type=linux cannam@86: library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' cannam@86: soname_spec='$libname${shared_ext}.$major' cannam@86: shlibpath_var=LD_LIBRARY_PATH cannam@86: fi cannam@86: ;; cannam@86: cannam@86: uts4*) cannam@86: version_type=linux cannam@86: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' cannam@86: soname_spec='${libname}${release}${shared_ext}$major' cannam@86: shlibpath_var=LD_LIBRARY_PATH cannam@86: ;; cannam@86: cannam@86: *) cannam@86: dynamic_linker=no cannam@86: ;; cannam@86: esac cannam@86: echo "$as_me:$LINENO: result: $dynamic_linker" >&5 cannam@86: echo "${ECHO_T}$dynamic_linker" >&6 cannam@86: test "$dynamic_linker" = no && can_build_shared=no cannam@86: cannam@86: echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 cannam@86: echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 cannam@86: hardcode_action_F77= cannam@86: if test -n "$hardcode_libdir_flag_spec_F77" || \ cannam@86: test -n "$runpath_var_F77" || \ cannam@86: test "X$hardcode_automatic_F77" = "Xyes" ; then cannam@86: cannam@86: # We can hardcode non-existant directories. cannam@86: if test "$hardcode_direct_F77" != no && cannam@86: # If the only mechanism to avoid hardcoding is shlibpath_var, we cannam@86: # have to relink, otherwise we might link with an installed library cannam@86: # when we should be linking with a yet-to-be-installed one cannam@86: ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no && cannam@86: test "$hardcode_minus_L_F77" != no; then cannam@86: # Linking always hardcodes the temporary library directory. cannam@86: hardcode_action_F77=relink cannam@86: else cannam@86: # We can link without hardcoding, and we can hardcode nonexisting dirs. cannam@86: hardcode_action_F77=immediate cannam@86: fi cannam@86: else cannam@86: # We cannot hardcode anything, or else we can only hardcode existing cannam@86: # directories. cannam@86: hardcode_action_F77=unsupported cannam@86: fi cannam@86: echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5 cannam@86: echo "${ECHO_T}$hardcode_action_F77" >&6 cannam@86: cannam@86: if test "$hardcode_action_F77" = relink; then cannam@86: # Fast installation is not supported cannam@86: enable_fast_install=no cannam@86: elif test "$shlibpath_overrides_runpath" = yes || cannam@86: test "$enable_shared" = no; then cannam@86: # Fast installation is not necessary cannam@86: enable_fast_install=needless cannam@86: fi cannam@86: cannam@86: striplib= cannam@86: old_striplib= cannam@86: echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 cannam@86: echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 cannam@86: if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then cannam@86: test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" cannam@86: test -z "$striplib" && striplib="$STRIP --strip-unneeded" cannam@86: echo "$as_me:$LINENO: result: yes" >&5 cannam@86: echo "${ECHO_T}yes" >&6 cannam@86: else cannam@86: # FIXME - insert some real tests, host_os isn't really good enough cannam@86: case $host_os in cannam@86: darwin*) cannam@86: if test -n "$STRIP" ; then cannam@86: striplib="$STRIP -x" cannam@86: echo "$as_me:$LINENO: result: yes" >&5 cannam@86: echo "${ECHO_T}yes" >&6 cannam@86: else cannam@86: echo "$as_me:$LINENO: result: no" >&5 cannam@86: echo "${ECHO_T}no" >&6 cannam@86: fi cannam@86: ;; cannam@86: *) cannam@86: echo "$as_me:$LINENO: result: no" >&5 cannam@86: echo "${ECHO_T}no" >&6 cannam@86: ;; cannam@86: esac cannam@86: fi cannam@86: cannam@86: cannam@86: cannam@86: # The else clause should only fire when bootstrapping the cannam@86: # libtool distribution, otherwise you forgot to ship ltmain.sh cannam@86: # with your package, and you will get complaints that there are cannam@86: # no rules to generate ltmain.sh. cannam@86: if test -f "$ltmain"; then cannam@86: # See if we are running on zsh, and set the options which allow our commands through cannam@86: # without removal of \ escapes. cannam@86: if test -n "${ZSH_VERSION+set}" ; then cannam@86: setopt NO_GLOB_SUBST cannam@86: fi cannam@86: # Now quote all the things that may contain metacharacters while being cannam@86: # careful not to overquote the AC_SUBSTed values. We take copies of the cannam@86: # variables and quote the copies for generation of the libtool script. cannam@86: for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ cannam@86: SED SHELL STRIP \ cannam@86: libname_spec library_names_spec soname_spec extract_expsyms_cmds \ cannam@86: old_striplib striplib file_magic_cmd finish_cmds finish_eval \ cannam@86: deplibs_check_method reload_flag reload_cmds need_locks \ cannam@86: lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ cannam@86: lt_cv_sys_global_symbol_to_c_name_address \ cannam@86: sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ cannam@86: old_postinstall_cmds old_postuninstall_cmds \ cannam@86: compiler_F77 \ cannam@86: CC_F77 \ cannam@86: LD_F77 \ cannam@86: lt_prog_compiler_wl_F77 \ cannam@86: lt_prog_compiler_pic_F77 \ cannam@86: lt_prog_compiler_static_F77 \ cannam@86: lt_prog_compiler_no_builtin_flag_F77 \ cannam@86: export_dynamic_flag_spec_F77 \ cannam@86: thread_safe_flag_spec_F77 \ cannam@86: whole_archive_flag_spec_F77 \ cannam@86: enable_shared_with_static_runtimes_F77 \ cannam@86: old_archive_cmds_F77 \ cannam@86: old_archive_from_new_cmds_F77 \ cannam@86: predep_objects_F77 \ cannam@86: postdep_objects_F77 \ cannam@86: predeps_F77 \ cannam@86: postdeps_F77 \ cannam@86: compiler_lib_search_path_F77 \ cannam@86: archive_cmds_F77 \ cannam@86: archive_expsym_cmds_F77 \ cannam@86: postinstall_cmds_F77 \ cannam@86: postuninstall_cmds_F77 \ cannam@86: old_archive_from_expsyms_cmds_F77 \ cannam@86: allow_undefined_flag_F77 \ cannam@86: no_undefined_flag_F77 \ cannam@86: export_symbols_cmds_F77 \ cannam@86: hardcode_libdir_flag_spec_F77 \ cannam@86: hardcode_libdir_flag_spec_ld_F77 \ cannam@86: hardcode_libdir_separator_F77 \ cannam@86: hardcode_automatic_F77 \ cannam@86: module_cmds_F77 \ cannam@86: module_expsym_cmds_F77 \ cannam@86: lt_cv_prog_compiler_c_o_F77 \ cannam@86: exclude_expsyms_F77 \ cannam@86: include_expsyms_F77; do cannam@86: cannam@86: case $var in cannam@86: old_archive_cmds_F77 | \ cannam@86: old_archive_from_new_cmds_F77 | \ cannam@86: archive_cmds_F77 | \ cannam@86: archive_expsym_cmds_F77 | \ cannam@86: module_cmds_F77 | \ cannam@86: module_expsym_cmds_F77 | \ cannam@86: old_archive_from_expsyms_cmds_F77 | \ cannam@86: export_symbols_cmds_F77 | \ cannam@86: extract_expsyms_cmds | reload_cmds | finish_cmds | \ cannam@86: postinstall_cmds | postuninstall_cmds | \ cannam@86: old_postinstall_cmds | old_postuninstall_cmds | \ cannam@86: sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) cannam@86: # Double-quote double-evaled strings. cannam@86: eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" cannam@86: ;; cannam@86: *) cannam@86: eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" cannam@86: ;; cannam@86: esac cannam@86: done cannam@86: cannam@86: case $lt_echo in cannam@86: *'\$0 --fallback-echo"') cannam@86: lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` cannam@86: ;; cannam@86: esac cannam@86: cannam@86: cfgfile="$ofile" cannam@86: cannam@86: cat <<__EOF__ >> "$cfgfile" cannam@86: # ### BEGIN LIBTOOL TAG CONFIG: $tagname cannam@86: cannam@86: # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: cannam@86: cannam@86: # Shell to use when invoking shell scripts. cannam@86: SHELL=$lt_SHELL cannam@86: cannam@86: # Whether or not to build shared libraries. cannam@86: build_libtool_libs=$enable_shared cannam@86: cannam@86: # Whether or not to build static libraries. cannam@86: build_old_libs=$enable_static cannam@86: cannam@86: # Whether or not to add -lc for building shared libraries. cannam@86: build_libtool_need_lc=$archive_cmds_need_lc_F77 cannam@86: cannam@86: # Whether or not to disallow shared libs when runtime libs are static cannam@86: allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77 cannam@86: cannam@86: # Whether or not to optimize for fast installation. cannam@86: fast_install=$enable_fast_install cannam@86: cannam@86: # The host system. cannam@86: host_alias=$host_alias cannam@86: host=$host cannam@86: host_os=$host_os cannam@86: cannam@86: # The build system. cannam@86: build_alias=$build_alias cannam@86: build=$build cannam@86: build_os=$build_os cannam@86: cannam@86: # An echo program that does not interpret backslashes. cannam@86: echo=$lt_echo cannam@86: cannam@86: # The archiver. cannam@86: AR=$lt_AR cannam@86: AR_FLAGS=$lt_AR_FLAGS cannam@86: cannam@86: # A C compiler. cannam@86: LTCC=$lt_LTCC cannam@86: cannam@86: # A language-specific compiler. cannam@86: CC=$lt_compiler_F77 cannam@86: cannam@86: # Is the compiler the GNU C compiler? cannam@86: with_gcc=$GCC_F77 cannam@86: cannam@86: # An ERE matcher. cannam@86: EGREP=$lt_EGREP cannam@86: cannam@86: # The linker used to build libraries. cannam@86: LD=$lt_LD_F77 cannam@86: cannam@86: # Whether we need hard or soft links. cannam@86: LN_S=$lt_LN_S cannam@86: cannam@86: # A BSD-compatible nm program. cannam@86: NM=$lt_NM cannam@86: cannam@86: # A symbol stripping program cannam@86: STRIP=$lt_STRIP cannam@86: cannam@86: # Used to examine libraries when file_magic_cmd begins "file" cannam@86: MAGIC_CMD=$MAGIC_CMD cannam@86: cannam@86: # Used on cygwin: DLL creation program. cannam@86: DLLTOOL="$DLLTOOL" cannam@86: cannam@86: # Used on cygwin: object dumper. cannam@86: OBJDUMP="$OBJDUMP" cannam@86: cannam@86: # Used on cygwin: assembler. cannam@86: AS="$AS" cannam@86: cannam@86: # The name of the directory that contains temporary libtool files. cannam@86: objdir=$objdir cannam@86: cannam@86: # How to create reloadable object files. cannam@86: reload_flag=$lt_reload_flag cannam@86: reload_cmds=$lt_reload_cmds cannam@86: cannam@86: # How to pass a linker flag through the compiler. cannam@86: wl=$lt_lt_prog_compiler_wl_F77 cannam@86: cannam@86: # Object file suffix (normally "o"). cannam@86: objext="$ac_objext" cannam@86: cannam@86: # Old archive suffix (normally "a"). cannam@86: libext="$libext" cannam@86: cannam@86: # Shared library suffix (normally ".so"). cannam@86: shrext_cmds='$shrext_cmds' cannam@86: cannam@86: # Executable file suffix (normally ""). cannam@86: exeext="$exeext" cannam@86: cannam@86: # Additional compiler flags for building library objects. cannam@86: pic_flag=$lt_lt_prog_compiler_pic_F77 cannam@86: pic_mode=$pic_mode cannam@86: cannam@86: # What is the maximum length of a command? cannam@86: max_cmd_len=$lt_cv_sys_max_cmd_len cannam@86: cannam@86: # Does compiler simultaneously support -c and -o options? cannam@86: compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77 cannam@86: cannam@86: # Must we lock files when doing compilation? cannam@86: need_locks=$lt_need_locks cannam@86: cannam@86: # Do we need the lib prefix for modules? cannam@86: need_lib_prefix=$need_lib_prefix cannam@86: cannam@86: # Do we need a version for libraries? cannam@86: need_version=$need_version cannam@86: cannam@86: # Whether dlopen is supported. cannam@86: dlopen_support=$enable_dlopen cannam@86: cannam@86: # Whether dlopen of programs is supported. cannam@86: dlopen_self=$enable_dlopen_self cannam@86: cannam@86: # Whether dlopen of statically linked programs is supported. cannam@86: dlopen_self_static=$enable_dlopen_self_static cannam@86: cannam@86: # Compiler flag to prevent dynamic linking. cannam@86: link_static_flag=$lt_lt_prog_compiler_static_F77 cannam@86: cannam@86: # Compiler flag to turn off builtin functions. cannam@86: no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77 cannam@86: cannam@86: # Compiler flag to allow reflexive dlopens. cannam@86: export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77 cannam@86: cannam@86: # Compiler flag to generate shared objects directly from archives. cannam@86: whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77 cannam@86: cannam@86: # Compiler flag to generate thread-safe objects. cannam@86: thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77 cannam@86: cannam@86: # Library versioning type. cannam@86: version_type=$version_type cannam@86: cannam@86: # Format of library name prefix. cannam@86: libname_spec=$lt_libname_spec cannam@86: cannam@86: # List of archive names. First name is the real one, the rest are links. cannam@86: # The last name is the one that the linker finds with -lNAME. cannam@86: library_names_spec=$lt_library_names_spec cannam@86: cannam@86: # The coded name of the library, if different from the real name. cannam@86: soname_spec=$lt_soname_spec cannam@86: cannam@86: # Commands used to build and install an old-style archive. cannam@86: RANLIB=$lt_RANLIB cannam@86: old_archive_cmds=$lt_old_archive_cmds_F77 cannam@86: old_postinstall_cmds=$lt_old_postinstall_cmds cannam@86: old_postuninstall_cmds=$lt_old_postuninstall_cmds cannam@86: cannam@86: # Create an old-style archive from a shared archive. cannam@86: old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77 cannam@86: cannam@86: # Create a temporary old-style archive to link instead of a shared archive. cannam@86: old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77 cannam@86: cannam@86: # Commands used to build and install a shared archive. cannam@86: archive_cmds=$lt_archive_cmds_F77 cannam@86: archive_expsym_cmds=$lt_archive_expsym_cmds_F77 cannam@86: postinstall_cmds=$lt_postinstall_cmds cannam@86: postuninstall_cmds=$lt_postuninstall_cmds cannam@86: cannam@86: # Commands used to build a loadable module (assumed same as above if empty) cannam@86: module_cmds=$lt_module_cmds_F77 cannam@86: module_expsym_cmds=$lt_module_expsym_cmds_F77 cannam@86: cannam@86: # Commands to strip libraries. cannam@86: old_striplib=$lt_old_striplib cannam@86: striplib=$lt_striplib cannam@86: cannam@86: # Dependencies to place before the objects being linked to create a cannam@86: # shared library. cannam@86: predep_objects=$lt_predep_objects_F77 cannam@86: cannam@86: # Dependencies to place after the objects being linked to create a cannam@86: # shared library. cannam@86: postdep_objects=$lt_postdep_objects_F77 cannam@86: cannam@86: # Dependencies to place before the objects being linked to create a cannam@86: # shared library. cannam@86: predeps=$lt_predeps_F77 cannam@86: cannam@86: # Dependencies to place after the objects being linked to create a cannam@86: # shared library. cannam@86: postdeps=$lt_postdeps_F77 cannam@86: cannam@86: # The library search path used internally by the compiler when linking cannam@86: # a shared library. cannam@86: compiler_lib_search_path=$lt_compiler_lib_search_path_F77 cannam@86: cannam@86: # Method to check whether dependent libraries are shared objects. cannam@86: deplibs_check_method=$lt_deplibs_check_method cannam@86: cannam@86: # Command to use when deplibs_check_method == file_magic. cannam@86: file_magic_cmd=$lt_file_magic_cmd cannam@86: cannam@86: # Flag that allows shared libraries with undefined symbols to be built. cannam@86: allow_undefined_flag=$lt_allow_undefined_flag_F77 cannam@86: cannam@86: # Flag that forces no undefined symbols. cannam@86: no_undefined_flag=$lt_no_undefined_flag_F77 cannam@86: cannam@86: # Commands used to finish a libtool library installation in a directory. cannam@86: finish_cmds=$lt_finish_cmds cannam@86: cannam@86: # Same as above, but a single script fragment to be evaled but not shown. cannam@86: finish_eval=$lt_finish_eval cannam@86: cannam@86: # Take the output of nm and produce a listing of raw symbols and C names. cannam@86: global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe cannam@86: cannam@86: # Transform the output of nm in a proper C declaration cannam@86: global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl cannam@86: cannam@86: # Transform the output of nm in a C name address pair cannam@86: global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address cannam@86: cannam@86: # This is the shared library runtime path variable. cannam@86: runpath_var=$runpath_var cannam@86: cannam@86: # This is the shared library path variable. cannam@86: shlibpath_var=$shlibpath_var cannam@86: cannam@86: # Is shlibpath searched before the hard-coded library search path? cannam@86: shlibpath_overrides_runpath=$shlibpath_overrides_runpath cannam@86: cannam@86: # How to hardcode a shared library path into an executable. cannam@86: hardcode_action=$hardcode_action_F77 cannam@86: cannam@86: # Whether we should hardcode library paths into libraries. cannam@86: hardcode_into_libs=$hardcode_into_libs cannam@86: cannam@86: # Flag to hardcode \$libdir into a binary during linking. cannam@86: # This must work even if \$libdir does not exist. cannam@86: hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77 cannam@86: cannam@86: # If ld is used when linking, flag to hardcode \$libdir into cannam@86: # a binary during linking. This must work even if \$libdir does cannam@86: # not exist. cannam@86: hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77 cannam@86: cannam@86: # Whether we need a single -rpath flag with a separated argument. cannam@86: hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77 cannam@86: cannam@86: # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the cannam@86: # resulting binary. cannam@86: hardcode_direct=$hardcode_direct_F77 cannam@86: cannam@86: # Set to yes if using the -LDIR flag during linking hardcodes DIR into the cannam@86: # resulting binary. cannam@86: hardcode_minus_L=$hardcode_minus_L_F77 cannam@86: cannam@86: # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into cannam@86: # the resulting binary. cannam@86: hardcode_shlibpath_var=$hardcode_shlibpath_var_F77 cannam@86: cannam@86: # Set to yes if building a shared library automatically hardcodes DIR into the library cannam@86: # and all subsequent libraries and executables linked against it. cannam@86: hardcode_automatic=$hardcode_automatic_F77 cannam@86: cannam@86: # Variables whose values should be saved in libtool wrapper scripts and cannam@86: # restored at relink time. cannam@86: variables_saved_for_relink="$variables_saved_for_relink" cannam@86: cannam@86: # Whether libtool must link a program against all its dependency libraries. cannam@86: link_all_deplibs=$link_all_deplibs_F77 cannam@86: cannam@86: # Compile-time system search path for libraries cannam@86: sys_lib_search_path_spec=$lt_sys_lib_search_path_spec cannam@86: cannam@86: # Run-time system search path for libraries cannam@86: sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec cannam@86: cannam@86: # Fix the shell variable \$srcfile for the compiler. cannam@86: fix_srcfile_path="$fix_srcfile_path_F77" cannam@86: cannam@86: # Set to yes if exported symbols are required. cannam@86: always_export_symbols=$always_export_symbols_F77 cannam@86: cannam@86: # The commands to list exported symbols. cannam@86: export_symbols_cmds=$lt_export_symbols_cmds_F77 cannam@86: cannam@86: # The commands to extract the exported symbol list from a shared archive. cannam@86: extract_expsyms_cmds=$lt_extract_expsyms_cmds cannam@86: cannam@86: # Symbols that should not be listed in the preloaded symbols. cannam@86: exclude_expsyms=$lt_exclude_expsyms_F77 cannam@86: cannam@86: # Symbols that must always be exported. cannam@86: include_expsyms=$lt_include_expsyms_F77 cannam@86: cannam@86: # ### END LIBTOOL TAG CONFIG: $tagname cannam@86: cannam@86: __EOF__ cannam@86: cannam@86: cannam@86: else cannam@86: # If there is no Makefile yet, we rely on a make rule to execute cannam@86: # `config.status --recheck' to rerun these tests and create the cannam@86: # libtool script then. cannam@86: ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` cannam@86: if test -f "$ltmain_in"; then cannam@86: test -f Makefile && make "$ltmain" cannam@86: fi cannam@86: fi cannam@86: cannam@86: cannam@86: ac_ext=c cannam@86: ac_cpp='$CPP $CPPFLAGS' cannam@86: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' cannam@86: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' cannam@86: ac_compiler_gnu=$ac_cv_c_compiler_gnu cannam@86: cannam@86: CC="$lt_save_CC" cannam@86: cannam@86: else cannam@86: tagname="" cannam@86: fi cannam@86: ;; cannam@86: cannam@86: GCJ) cannam@86: if test -n "$GCJ" && test "X$GCJ" != "Xno"; then cannam@86: cannam@86: cannam@86: cannam@86: # Source file extension for Java test sources. cannam@86: ac_ext=java cannam@86: cannam@86: # Object file extension for compiled Java test sources. cannam@86: objext=o cannam@86: objext_GCJ=$objext cannam@86: cannam@86: # Code to be used in simple compile tests cannam@86: lt_simple_compile_test_code="class foo {}\n" cannam@86: cannam@86: # Code to be used in simple link tests cannam@86: lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n' cannam@86: cannam@86: # ltmain only uses $CC for tagged configurations so make sure $CC is set. cannam@86: cannam@86: # If no C compiler was specified, use CC. cannam@86: LTCC=${LTCC-"$CC"} cannam@86: cannam@86: # Allow CC to be a program name with arguments. cannam@86: compiler=$CC cannam@86: cannam@86: cannam@86: # save warnings/boilerplate of simple test code cannam@86: ac_outfile=conftest.$ac_objext cannam@86: printf "$lt_simple_compile_test_code" >conftest.$ac_ext cannam@86: eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err cannam@86: _lt_compiler_boilerplate=`cat conftest.err` cannam@86: $rm conftest* cannam@86: cannam@86: ac_outfile=conftest.$ac_objext cannam@86: printf "$lt_simple_link_test_code" >conftest.$ac_ext cannam@86: eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err cannam@86: _lt_linker_boilerplate=`cat conftest.err` cannam@86: $rm conftest* cannam@86: cannam@86: cannam@86: # Allow CC to be a program name with arguments. cannam@86: lt_save_CC="$CC" cannam@86: CC=${GCJ-"gcj"} cannam@86: compiler=$CC cannam@86: compiler_GCJ=$CC cannam@86: for cc_temp in $compiler""; do cannam@86: case $cc_temp in cannam@86: compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; cannam@86: distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; cannam@86: \-*) ;; cannam@86: *) break;; cannam@86: esac cannam@86: done cannam@86: cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` cannam@86: cannam@86: cannam@86: # GCJ did not exist at the time GCC didn't implicitly link libc in. cannam@86: archive_cmds_need_lc_GCJ=no cannam@86: cannam@86: old_archive_cmds_GCJ=$old_archive_cmds cannam@86: cannam@86: cannam@86: lt_prog_compiler_no_builtin_flag_GCJ= cannam@86: cannam@86: if test "$GCC" = yes; then cannam@86: lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin' cannam@86: cannam@86: cannam@86: echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 cannam@86: echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6 cannam@86: if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then cannam@86: echo $ECHO_N "(cached) $ECHO_C" >&6 cannam@86: else cannam@86: lt_cv_prog_compiler_rtti_exceptions=no cannam@86: ac_outfile=conftest.$ac_objext cannam@86: printf "$lt_simple_compile_test_code" > conftest.$ac_ext cannam@86: lt_compiler_flag="-fno-rtti -fno-exceptions" cannam@86: # Insert the option either (1) after the last *FLAGS variable, or cannam@86: # (2) before a word containing "conftest.", or (3) at the end. cannam@86: # Note that $ac_compile itself does not contain backslashes and begins cannam@86: # with a dollar sign (not a hyphen), so the echo should work correctly. cannam@86: # The option is referenced via a variable to avoid confusing sed. cannam@86: lt_compile=`echo "$ac_compile" | $SED \ cannam@86: -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ cannam@86: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ cannam@86: -e 's:$: $lt_compiler_flag:'` cannam@86: (eval echo "\"\$as_me:15892: $lt_compile\"" >&5) cannam@86: (eval "$lt_compile" 2>conftest.err) cannam@86: ac_status=$? cannam@86: cat conftest.err >&5 cannam@86: echo "$as_me:15896: \$? = $ac_status" >&5 cannam@86: if (exit $ac_status) && test -s "$ac_outfile"; then cannam@86: # The compiler can only warn and ignore the option if not recognized cannam@86: # So say no if there are warnings other than the usual output. cannam@86: $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp cannam@86: $SED '/^$/d' conftest.err >conftest.er2 cannam@86: if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then cannam@86: lt_cv_prog_compiler_rtti_exceptions=yes cannam@86: fi cannam@86: fi cannam@86: $rm conftest* cannam@86: cannam@86: fi cannam@86: echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 cannam@86: echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6 cannam@86: cannam@86: if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then cannam@86: lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions" cannam@86: else cannam@86: : cannam@86: fi cannam@86: cannam@86: fi cannam@86: cannam@86: lt_prog_compiler_wl_GCJ= cannam@86: lt_prog_compiler_pic_GCJ= cannam@86: lt_prog_compiler_static_GCJ= cannam@86: cannam@86: echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 cannam@86: echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 cannam@86: cannam@86: if test "$GCC" = yes; then cannam@86: lt_prog_compiler_wl_GCJ='-Wl,' cannam@86: lt_prog_compiler_static_GCJ='-static' cannam@86: cannam@86: case $host_os in cannam@86: aix*) cannam@86: # All AIX code is PIC. cannam@86: if test "$host_cpu" = ia64; then cannam@86: # AIX 5 now supports IA64 processor cannam@86: lt_prog_compiler_static_GCJ='-Bstatic' cannam@86: fi cannam@86: ;; cannam@86: cannam@86: amigaos*) cannam@86: # FIXME: we need at least 68020 code to build shared libraries, but cannam@86: # adding the `-m68020' flag to GCC prevents building anything better, cannam@86: # like `-m68040'. cannam@86: lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4' cannam@86: ;; cannam@86: cannam@86: beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) cannam@86: # PIC is the default for these OSes. cannam@86: ;; cannam@86: cannam@86: mingw* | pw32* | os2*) cannam@86: # This hack is so that the source file can tell whether it is being cannam@86: # built for inclusion in a dll (and should export symbols for example). cannam@86: lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' cannam@86: ;; cannam@86: cannam@86: darwin* | rhapsody*) cannam@86: # PIC is the default on this platform cannam@86: # Common symbols not allowed in MH_DYLIB files cannam@86: lt_prog_compiler_pic_GCJ='-fno-common' cannam@86: ;; cannam@86: cannam@86: msdosdjgpp*) cannam@86: # Just because we use GCC doesn't mean we suddenly get shared libraries cannam@86: # on systems that don't support them. cannam@86: lt_prog_compiler_can_build_shared_GCJ=no cannam@86: enable_shared=no cannam@86: ;; cannam@86: cannam@86: sysv4*MP*) cannam@86: if test -d /usr/nec; then cannam@86: lt_prog_compiler_pic_GCJ=-Kconform_pic cannam@86: fi cannam@86: ;; cannam@86: cannam@86: hpux*) cannam@86: # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but cannam@86: # not for PA HP-UX. cannam@86: case "$host_cpu" in cannam@86: hppa*64*|ia64*) cannam@86: # +Z the default cannam@86: ;; cannam@86: *) cannam@86: lt_prog_compiler_pic_GCJ='-fPIC' cannam@86: ;; cannam@86: esac cannam@86: ;; cannam@86: cannam@86: *) cannam@86: lt_prog_compiler_pic_GCJ='-fPIC' cannam@86: ;; cannam@86: esac cannam@86: else cannam@86: # PORTME Check for flag to pass linker flags through the system compiler. cannam@86: case $host_os in cannam@86: aix*) cannam@86: lt_prog_compiler_wl_GCJ='-Wl,' cannam@86: if test "$host_cpu" = ia64; then cannam@86: # AIX 5 now supports IA64 processor cannam@86: lt_prog_compiler_static_GCJ='-Bstatic' cannam@86: else cannam@86: lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp' cannam@86: fi cannam@86: ;; cannam@86: darwin*) cannam@86: # PIC is the default on this platform cannam@86: # Common symbols not allowed in MH_DYLIB files cannam@86: case $cc_basename in cannam@86: xlc*) cannam@86: lt_prog_compiler_pic_GCJ='-qnocommon' cannam@86: lt_prog_compiler_wl_GCJ='-Wl,' cannam@86: ;; cannam@86: esac cannam@86: ;; cannam@86: cannam@86: mingw* | pw32* | os2*) cannam@86: # This hack is so that the source file can tell whether it is being cannam@86: # built for inclusion in a dll (and should export symbols for example). cannam@86: lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' cannam@86: ;; cannam@86: cannam@86: hpux9* | hpux10* | hpux11*) cannam@86: lt_prog_compiler_wl_GCJ='-Wl,' cannam@86: # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but cannam@86: # not for PA HP-UX. cannam@86: case "$host_cpu" in cannam@86: hppa*64*|ia64*) cannam@86: # +Z the default cannam@86: ;; cannam@86: *) cannam@86: lt_prog_compiler_pic_GCJ='+Z' cannam@86: ;; cannam@86: esac cannam@86: # Is there a better lt_prog_compiler_static that works with the bundled CC? cannam@86: lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive' cannam@86: ;; cannam@86: cannam@86: irix5* | irix6* | nonstopux*) cannam@86: lt_prog_compiler_wl_GCJ='-Wl,' cannam@86: # PIC (with -KPIC) is the default. cannam@86: lt_prog_compiler_static_GCJ='-non_shared' cannam@86: ;; cannam@86: cannam@86: newsos6) cannam@86: lt_prog_compiler_pic_GCJ='-KPIC' cannam@86: lt_prog_compiler_static_GCJ='-Bstatic' cannam@86: ;; cannam@86: cannam@86: linux*) cannam@86: case $cc_basename in cannam@86: icc* | ecc*) cannam@86: lt_prog_compiler_wl_GCJ='-Wl,' cannam@86: lt_prog_compiler_pic_GCJ='-KPIC' cannam@86: lt_prog_compiler_static_GCJ='-static' cannam@86: ;; cannam@86: pgcc* | pgf77* | pgf90*) cannam@86: # Portland Group compilers (*not* the Pentium gcc compiler, cannam@86: # which looks to be a dead project) cannam@86: lt_prog_compiler_wl_GCJ='-Wl,' cannam@86: lt_prog_compiler_pic_GCJ='-fpic' cannam@86: lt_prog_compiler_static_GCJ='-static' cannam@86: ;; cannam@86: ccc*) cannam@86: lt_prog_compiler_wl_GCJ='-Wl,' cannam@86: # All Alpha code is PIC. cannam@86: lt_prog_compiler_static_GCJ='-non_shared' cannam@86: ;; cannam@86: esac cannam@86: ;; cannam@86: cannam@86: osf3* | osf4* | osf5*) cannam@86: lt_prog_compiler_wl_GCJ='-Wl,' cannam@86: # All OSF/1 code is PIC. cannam@86: lt_prog_compiler_static_GCJ='-non_shared' cannam@86: ;; cannam@86: cannam@86: sco3.2v5*) cannam@86: lt_prog_compiler_pic_GCJ='-Kpic' cannam@86: lt_prog_compiler_static_GCJ='-dn' cannam@86: ;; cannam@86: cannam@86: solaris*) cannam@86: lt_prog_compiler_pic_GCJ='-KPIC' cannam@86: lt_prog_compiler_static_GCJ='-Bstatic' cannam@86: case $cc_basename in cannam@86: f77* | f90* | f95*) cannam@86: lt_prog_compiler_wl_GCJ='-Qoption ld ';; cannam@86: *) cannam@86: lt_prog_compiler_wl_GCJ='-Wl,';; cannam@86: esac cannam@86: ;; cannam@86: cannam@86: sunos4*) cannam@86: lt_prog_compiler_wl_GCJ='-Qoption ld ' cannam@86: lt_prog_compiler_pic_GCJ='-PIC' cannam@86: lt_prog_compiler_static_GCJ='-Bstatic' cannam@86: ;; cannam@86: cannam@86: sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) cannam@86: lt_prog_compiler_wl_GCJ='-Wl,' cannam@86: lt_prog_compiler_pic_GCJ='-KPIC' cannam@86: lt_prog_compiler_static_GCJ='-Bstatic' cannam@86: ;; cannam@86: cannam@86: sysv4*MP*) cannam@86: if test -d /usr/nec ;then cannam@86: lt_prog_compiler_pic_GCJ='-Kconform_pic' cannam@86: lt_prog_compiler_static_GCJ='-Bstatic' cannam@86: fi cannam@86: ;; cannam@86: cannam@86: unicos*) cannam@86: lt_prog_compiler_wl_GCJ='-Wl,' cannam@86: lt_prog_compiler_can_build_shared_GCJ=no cannam@86: ;; cannam@86: cannam@86: uts4*) cannam@86: lt_prog_compiler_pic_GCJ='-pic' cannam@86: lt_prog_compiler_static_GCJ='-Bstatic' cannam@86: ;; cannam@86: cannam@86: *) cannam@86: lt_prog_compiler_can_build_shared_GCJ=no cannam@86: ;; cannam@86: esac cannam@86: fi cannam@86: cannam@86: echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5 cannam@86: echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6 cannam@86: cannam@86: # cannam@86: # Check to make sure the PIC flag actually works. cannam@86: # cannam@86: if test -n "$lt_prog_compiler_pic_GCJ"; then cannam@86: cannam@86: echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5 cannam@86: echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6 cannam@86: if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then cannam@86: echo $ECHO_N "(cached) $ECHO_C" >&6 cannam@86: else cannam@86: lt_prog_compiler_pic_works_GCJ=no cannam@86: ac_outfile=conftest.$ac_objext cannam@86: printf "$lt_simple_compile_test_code" > conftest.$ac_ext cannam@86: lt_compiler_flag="$lt_prog_compiler_pic_GCJ" cannam@86: # Insert the option either (1) after the last *FLAGS variable, or cannam@86: # (2) before a word containing "conftest.", or (3) at the end. cannam@86: # Note that $ac_compile itself does not contain backslashes and begins cannam@86: # with a dollar sign (not a hyphen), so the echo should work correctly. cannam@86: # The option is referenced via a variable to avoid confusing sed. cannam@86: lt_compile=`echo "$ac_compile" | $SED \ cannam@86: -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ cannam@86: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ cannam@86: -e 's:$: $lt_compiler_flag:'` cannam@86: (eval echo "\"\$as_me:16154: $lt_compile\"" >&5) cannam@86: (eval "$lt_compile" 2>conftest.err) cannam@86: ac_status=$? cannam@86: cat conftest.err >&5 cannam@86: echo "$as_me:16158: \$? = $ac_status" >&5 cannam@86: if (exit $ac_status) && test -s "$ac_outfile"; then cannam@86: # The compiler can only warn and ignore the option if not recognized cannam@86: # So say no if there are warnings other than the usual output. cannam@86: $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp cannam@86: $SED '/^$/d' conftest.err >conftest.er2 cannam@86: if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then cannam@86: lt_prog_compiler_pic_works_GCJ=yes cannam@86: fi cannam@86: fi cannam@86: $rm conftest* cannam@86: cannam@86: fi cannam@86: echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5 cannam@86: echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6 cannam@86: cannam@86: if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then cannam@86: case $lt_prog_compiler_pic_GCJ in cannam@86: "" | " "*) ;; cannam@86: *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;; cannam@86: esac cannam@86: else cannam@86: lt_prog_compiler_pic_GCJ= cannam@86: lt_prog_compiler_can_build_shared_GCJ=no cannam@86: fi cannam@86: cannam@86: fi cannam@86: case "$host_os" in cannam@86: # For platforms which do not support PIC, -DPIC is meaningless: cannam@86: *djgpp*) cannam@86: lt_prog_compiler_pic_GCJ= cannam@86: ;; cannam@86: *) cannam@86: lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ" cannam@86: ;; cannam@86: esac cannam@86: cannam@86: echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 cannam@86: echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 cannam@86: if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then cannam@86: echo $ECHO_N "(cached) $ECHO_C" >&6 cannam@86: else cannam@86: lt_cv_prog_compiler_c_o_GCJ=no cannam@86: $rm -r conftest 2>/dev/null cannam@86: mkdir conftest cannam@86: cd conftest cannam@86: mkdir out cannam@86: printf "$lt_simple_compile_test_code" > conftest.$ac_ext cannam@86: cannam@86: lt_compiler_flag="-o out/conftest2.$ac_objext" cannam@86: # Insert the option either (1) after the last *FLAGS variable, or cannam@86: # (2) before a word containing "conftest.", or (3) at the end. cannam@86: # Note that $ac_compile itself does not contain backslashes and begins cannam@86: # with a dollar sign (not a hyphen), so the echo should work correctly. cannam@86: lt_compile=`echo "$ac_compile" | $SED \ cannam@86: -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ cannam@86: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ cannam@86: -e 's:$: $lt_compiler_flag:'` cannam@86: (eval echo "\"\$as_me:16216: $lt_compile\"" >&5) cannam@86: (eval "$lt_compile" 2>out/conftest.err) cannam@86: ac_status=$? cannam@86: cat out/conftest.err >&5 cannam@86: echo "$as_me:16220: \$? = $ac_status" >&5 cannam@86: if (exit $ac_status) && test -s out/conftest2.$ac_objext cannam@86: then cannam@86: # The compiler can only warn and ignore the option if not recognized cannam@86: # So say no if there are warnings cannam@86: $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp cannam@86: $SED '/^$/d' out/conftest.err >out/conftest.er2 cannam@86: if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then cannam@86: lt_cv_prog_compiler_c_o_GCJ=yes cannam@86: fi cannam@86: fi cannam@86: chmod u+w . cannam@86: $rm conftest* cannam@86: # SGI C++ compiler will create directory out/ii_files/ for cannam@86: # template instantiation cannam@86: test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files cannam@86: $rm out/* && rmdir out cannam@86: cd .. cannam@86: rmdir conftest cannam@86: $rm conftest* cannam@86: cannam@86: fi cannam@86: echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5 cannam@86: echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6 cannam@86: cannam@86: cannam@86: hard_links="nottested" cannam@86: if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then cannam@86: # do not overwrite the value of need_locks provided by the user cannam@86: echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 cannam@86: echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 cannam@86: hard_links=yes cannam@86: $rm conftest* cannam@86: ln conftest.a conftest.b 2>/dev/null && hard_links=no cannam@86: touch conftest.a cannam@86: ln conftest.a conftest.b 2>&5 || hard_links=no cannam@86: ln conftest.a conftest.b 2>/dev/null && hard_links=no cannam@86: echo "$as_me:$LINENO: result: $hard_links" >&5 cannam@86: echo "${ECHO_T}$hard_links" >&6 cannam@86: if test "$hard_links" = no; then cannam@86: { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 cannam@86: echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} cannam@86: need_locks=warn cannam@86: fi cannam@86: else cannam@86: need_locks=no cannam@86: fi cannam@86: cannam@86: echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 cannam@86: echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 cannam@86: cannam@86: runpath_var= cannam@86: allow_undefined_flag_GCJ= cannam@86: enable_shared_with_static_runtimes_GCJ=no cannam@86: archive_cmds_GCJ= cannam@86: archive_expsym_cmds_GCJ= cannam@86: old_archive_From_new_cmds_GCJ= cannam@86: old_archive_from_expsyms_cmds_GCJ= cannam@86: export_dynamic_flag_spec_GCJ= cannam@86: whole_archive_flag_spec_GCJ= cannam@86: thread_safe_flag_spec_GCJ= cannam@86: hardcode_libdir_flag_spec_GCJ= cannam@86: hardcode_libdir_flag_spec_ld_GCJ= cannam@86: hardcode_libdir_separator_GCJ= cannam@86: hardcode_direct_GCJ=no cannam@86: hardcode_minus_L_GCJ=no cannam@86: hardcode_shlibpath_var_GCJ=unsupported cannam@86: link_all_deplibs_GCJ=unknown cannam@86: hardcode_automatic_GCJ=no cannam@86: module_cmds_GCJ= cannam@86: module_expsym_cmds_GCJ= cannam@86: always_export_symbols_GCJ=no cannam@86: export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' cannam@86: # include_expsyms should be a list of space-separated symbols to be *always* cannam@86: # included in the symbol list cannam@86: include_expsyms_GCJ= cannam@86: # exclude_expsyms can be an extended regexp of symbols to exclude cannam@86: # it will be wrapped by ` (' and `)$', so one must not match beginning or cannam@86: # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', cannam@86: # as well as any symbol that contains `d'. cannam@86: exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_" cannam@86: # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out cannam@86: # platforms (ab)use it in PIC code, but their linkers get confused if cannam@86: # the symbol is explicitly referenced. Since portable code cannot cannam@86: # rely on this symbol name, it's probably fine to never include it in cannam@86: # preloaded symbol tables. cannam@86: extract_expsyms_cmds= cannam@86: # Just being paranoid about ensuring that cc_basename is set. cannam@86: for cc_temp in $compiler""; do cannam@86: case $cc_temp in cannam@86: compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; cannam@86: distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; cannam@86: \-*) ;; cannam@86: *) break;; cannam@86: esac cannam@86: done cannam@86: cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` cannam@86: cannam@86: case $host_os in cannam@86: cygwin* | mingw* | pw32*) cannam@86: # FIXME: the MSVC++ port hasn't been tested in a loooong time cannam@86: # When not using gcc, we currently assume that we are using cannam@86: # Microsoft Visual C++. cannam@86: if test "$GCC" != yes; then cannam@86: with_gnu_ld=no cannam@86: fi cannam@86: ;; cannam@86: openbsd*) cannam@86: with_gnu_ld=no cannam@86: ;; cannam@86: esac cannam@86: cannam@86: ld_shlibs_GCJ=yes cannam@86: if test "$with_gnu_ld" = yes; then cannam@86: # If archive_cmds runs LD, not CC, wlarc should be empty cannam@86: wlarc='${wl}' cannam@86: cannam@86: # Set some defaults for GNU ld with shared library support. These cannam@86: # are reset later if shared libraries are not supported. Putting them cannam@86: # here allows them to be overridden if necessary. cannam@86: runpath_var=LD_RUN_PATH cannam@86: hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir' cannam@86: export_dynamic_flag_spec_GCJ='${wl}--export-dynamic' cannam@86: # ancient GNU ld didn't support --whole-archive et. al. cannam@86: if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then cannam@86: whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' cannam@86: else cannam@86: whole_archive_flag_spec_GCJ= cannam@86: fi cannam@86: supports_anon_versioning=no cannam@86: case `$LD -v 2>/dev/null` in cannam@86: *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 cannam@86: *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... cannam@86: *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... cannam@86: *\ 2.11.*) ;; # other 2.11 versions cannam@86: *) supports_anon_versioning=yes ;; cannam@86: esac cannam@86: cannam@86: # See if GNU ld supports shared libraries. cannam@86: case $host_os in cannam@86: aix3* | aix4* | aix5*) cannam@86: # On AIX/PPC, the GNU linker is very broken cannam@86: if test "$host_cpu" != ia64; then cannam@86: ld_shlibs_GCJ=no cannam@86: cat <&2 cannam@86: cannam@86: *** Warning: the GNU linker, at least up to release 2.9.1, is reported cannam@86: *** to be unable to reliably create shared libraries on AIX. cannam@86: *** Therefore, libtool is disabling shared libraries support. If you cannam@86: *** really care for shared libraries, you may want to modify your PATH cannam@86: *** so that a non-GNU linker is found, and then restart. cannam@86: cannam@86: EOF cannam@86: fi cannam@86: ;; cannam@86: cannam@86: amigaos*) cannam@86: 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)' cannam@86: hardcode_libdir_flag_spec_GCJ='-L$libdir' cannam@86: hardcode_minus_L_GCJ=yes cannam@86: cannam@86: # Samuel A. Falvo II reports cannam@86: # that the semantics of dynamic libraries on AmigaOS, at least up cannam@86: # to version 4, is to share data among multiple programs linked cannam@86: # with the same dynamic library. Since this doesn't match the cannam@86: # behavior of shared libraries on other platforms, we can't use cannam@86: # them. cannam@86: ld_shlibs_GCJ=no cannam@86: ;; cannam@86: cannam@86: beos*) cannam@86: if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then cannam@86: allow_undefined_flag_GCJ=unsupported cannam@86: # Joseph Beckenbach says some releases of gcc cannam@86: # support --undefined. This deserves some investigation. FIXME cannam@86: archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' cannam@86: else cannam@86: ld_shlibs_GCJ=no cannam@86: fi cannam@86: ;; cannam@86: cannam@86: cygwin* | mingw* | pw32*) cannam@86: # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless, cannam@86: # as there is no search path for DLLs. cannam@86: hardcode_libdir_flag_spec_GCJ='-L$libdir' cannam@86: allow_undefined_flag_GCJ=unsupported cannam@86: always_export_symbols_GCJ=no cannam@86: enable_shared_with_static_runtimes_GCJ=yes cannam@86: export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' cannam@86: cannam@86: if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then cannam@86: archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' cannam@86: # If the export-symbols file already is a .def file (1st line cannam@86: # is EXPORTS), use it as is; otherwise, prepend... cannam@86: archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then cannam@86: cp $export_symbols $output_objdir/$soname.def; cannam@86: else cannam@86: echo EXPORTS > $output_objdir/$soname.def; cannam@86: cat $export_symbols >> $output_objdir/$soname.def; cannam@86: fi~ cannam@86: $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' cannam@86: else cannam@86: ld_shlibs_GCJ=no cannam@86: fi cannam@86: ;; cannam@86: cannam@86: linux*) cannam@86: if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then cannam@86: tmp_addflag= cannam@86: case $cc_basename,$host_cpu in cannam@86: pgcc*) # Portland Group C compiler cannam@86: whole_archive_flag_spec_GCJ= cannam@86: ;; cannam@86: pgf77* | pgf90* ) # Portland Group f77 and f90 compilers cannam@86: whole_archive_flag_spec_GCJ= cannam@86: tmp_addflag=' -fpic -Mnomain' ;; cannam@86: ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 cannam@86: tmp_addflag=' -i_dynamic' ;; cannam@86: efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 cannam@86: tmp_addflag=' -i_dynamic -nofor_main' ;; cannam@86: ifc* | ifort*) # Intel Fortran compiler cannam@86: tmp_addflag=' -nofor_main' ;; cannam@86: esac cannam@86: archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' cannam@86: cannam@86: if test $supports_anon_versioning = yes; then cannam@86: archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~ cannam@86: cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ cannam@86: $echo "local: *; };" >> $output_objdir/$libname.ver~ cannam@86: $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' cannam@86: fi cannam@86: else cannam@86: ld_shlibs_GCJ=no cannam@86: fi cannam@86: ;; cannam@86: cannam@86: netbsd*) cannam@86: if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then cannam@86: archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' cannam@86: wlarc= cannam@86: else cannam@86: archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' cannam@86: archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' cannam@86: fi cannam@86: ;; cannam@86: cannam@86: solaris* | sysv5*) cannam@86: if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then cannam@86: ld_shlibs_GCJ=no cannam@86: cat <&2 cannam@86: cannam@86: *** Warning: The releases 2.8.* of the GNU linker cannot reliably cannam@86: *** create shared libraries on Solaris systems. Therefore, libtool cannam@86: *** is disabling shared libraries support. We urge you to upgrade GNU cannam@86: *** binutils to release 2.9.1 or newer. Another option is to modify cannam@86: *** your PATH or compiler configuration so that the native linker is cannam@86: *** used, and then restart. cannam@86: cannam@86: EOF cannam@86: elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then cannam@86: archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' cannam@86: archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' cannam@86: else cannam@86: ld_shlibs_GCJ=no cannam@86: fi cannam@86: ;; cannam@86: cannam@86: sunos4*) cannam@86: archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' cannam@86: wlarc= cannam@86: hardcode_direct_GCJ=yes cannam@86: hardcode_shlibpath_var_GCJ=no cannam@86: ;; cannam@86: cannam@86: *) cannam@86: if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then cannam@86: archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' cannam@86: archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' cannam@86: else cannam@86: ld_shlibs_GCJ=no cannam@86: fi cannam@86: ;; cannam@86: esac cannam@86: cannam@86: if test "$ld_shlibs_GCJ" = no; then cannam@86: runpath_var= cannam@86: hardcode_libdir_flag_spec_GCJ= cannam@86: export_dynamic_flag_spec_GCJ= cannam@86: whole_archive_flag_spec_GCJ= cannam@86: fi cannam@86: else cannam@86: # PORTME fill in a description of your system's linker (not GNU ld) cannam@86: case $host_os in cannam@86: aix3*) cannam@86: allow_undefined_flag_GCJ=unsupported cannam@86: always_export_symbols_GCJ=yes cannam@86: 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' cannam@86: # Note: this linker hardcodes the directories in LIBPATH if there cannam@86: # are no directories specified by -L. cannam@86: hardcode_minus_L_GCJ=yes cannam@86: if test "$GCC" = yes && test -z "$link_static_flag"; then cannam@86: # Neither direct hardcoding nor static linking is supported with a cannam@86: # broken collect2. cannam@86: hardcode_direct_GCJ=unsupported cannam@86: fi cannam@86: ;; cannam@86: cannam@86: aix4* | aix5*) cannam@86: if test "$host_cpu" = ia64; then cannam@86: # On IA64, the linker does run time linking by default, so we don't cannam@86: # have to do anything special. cannam@86: aix_use_runtimelinking=no cannam@86: exp_sym_flag='-Bexport' cannam@86: no_entry_flag="" cannam@86: else cannam@86: # If we're using GNU nm, then we don't want the "-C" option. cannam@86: # -C means demangle to AIX nm, but means don't demangle with GNU nm cannam@86: if $NM -V 2>&1 | grep 'GNU' > /dev/null; then cannam@86: 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' cannam@86: else cannam@86: 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' cannam@86: fi cannam@86: aix_use_runtimelinking=no cannam@86: cannam@86: # Test if we are trying to use run time linking or normal cannam@86: # AIX style linking. If -brtl is somewhere in LDFLAGS, we cannam@86: # need to do runtime linking. cannam@86: case $host_os in aix4.[23]|aix4.[23].*|aix5*) cannam@86: for ld_flag in $LDFLAGS; do cannam@86: if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then cannam@86: aix_use_runtimelinking=yes cannam@86: break cannam@86: fi cannam@86: done cannam@86: esac cannam@86: cannam@86: exp_sym_flag='-bexport' cannam@86: no_entry_flag='-bnoentry' cannam@86: fi cannam@86: cannam@86: # When large executables or shared objects are built, AIX ld can cannam@86: # have problems creating the table of contents. If linking a library cannam@86: # or program results in "error TOC overflow" add -mminimal-toc to cannam@86: # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not cannam@86: # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. cannam@86: cannam@86: archive_cmds_GCJ='' cannam@86: hardcode_direct_GCJ=yes cannam@86: hardcode_libdir_separator_GCJ=':' cannam@86: link_all_deplibs_GCJ=yes cannam@86: cannam@86: if test "$GCC" = yes; then cannam@86: case $host_os in aix4.[012]|aix4.[012].*) cannam@86: # We only want to do this on AIX 4.2 and lower, the check cannam@86: # below for broken collect2 doesn't work under 4.3+ cannam@86: collect2name=`${CC} -print-prog-name=collect2` cannam@86: if test -f "$collect2name" && \ cannam@86: strings "$collect2name" | grep resolve_lib_name >/dev/null cannam@86: then cannam@86: # We have reworked collect2 cannam@86: hardcode_direct_GCJ=yes cannam@86: else cannam@86: # We have old collect2 cannam@86: hardcode_direct_GCJ=unsupported cannam@86: # It fails to find uninstalled libraries when the uninstalled cannam@86: # path is not listed in the libpath. Setting hardcode_minus_L cannam@86: # to unsupported forces relinking cannam@86: hardcode_minus_L_GCJ=yes cannam@86: hardcode_libdir_flag_spec_GCJ='-L$libdir' cannam@86: hardcode_libdir_separator_GCJ= cannam@86: fi cannam@86: esac cannam@86: shared_flag='-shared' cannam@86: if test "$aix_use_runtimelinking" = yes; then cannam@86: shared_flag="$shared_flag "'${wl}-G' cannam@86: fi cannam@86: else cannam@86: # not using gcc cannam@86: if test "$host_cpu" = ia64; then cannam@86: # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release cannam@86: # chokes on -Wl,-G. The following line is correct: cannam@86: shared_flag='-G' cannam@86: else cannam@86: if test "$aix_use_runtimelinking" = yes; then cannam@86: shared_flag='${wl}-G' cannam@86: else cannam@86: shared_flag='${wl}-bM:SRE' cannam@86: fi cannam@86: fi cannam@86: fi cannam@86: cannam@86: # It seems that -bexpall does not export symbols beginning with cannam@86: # underscore (_), so it is better to generate a list of symbols to export. cannam@86: always_export_symbols_GCJ=yes cannam@86: if test "$aix_use_runtimelinking" = yes; then cannam@86: # Warning - without using the other runtime loading flags (-brtl), cannam@86: # -berok will link without error, but may produce a broken library. cannam@86: allow_undefined_flag_GCJ='-berok' cannam@86: # Determine the default libpath from the value encoded in an empty executable. cannam@86: cat >conftest.$ac_ext <<_ACEOF cannam@86: /* confdefs.h. */ cannam@86: _ACEOF cannam@86: cat confdefs.h >>conftest.$ac_ext cannam@86: cat >>conftest.$ac_ext <<_ACEOF cannam@86: /* end confdefs.h. */ cannam@86: cannam@86: int cannam@86: main () cannam@86: { cannam@86: cannam@86: ; cannam@86: return 0; cannam@86: } cannam@86: _ACEOF cannam@86: rm -f conftest.$ac_objext conftest$ac_exeext cannam@86: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 cannam@86: (eval $ac_link) 2>conftest.er1 cannam@86: ac_status=$? cannam@86: grep -v '^ *+' conftest.er1 >conftest.err cannam@86: rm -f conftest.er1 cannam@86: cat conftest.err >&5 cannam@86: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@86: (exit $ac_status); } && cannam@86: { ac_try='test -z "$ac_c_werror_flag" cannam@86: || test ! -s conftest.err' cannam@86: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 cannam@86: (eval $ac_try) 2>&5 cannam@86: ac_status=$? cannam@86: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@86: (exit $ac_status); }; } && cannam@86: { ac_try='test -s conftest$ac_exeext' cannam@86: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 cannam@86: (eval $ac_try) 2>&5 cannam@86: ac_status=$? cannam@86: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@86: (exit $ac_status); }; }; then cannam@86: cannam@86: aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } cannam@86: }'` cannam@86: # Check for a 64-bit object if we didn't find anything. cannam@86: if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } cannam@86: }'`; fi cannam@86: else cannam@86: echo "$as_me: failed program was:" >&5 cannam@86: sed 's/^/| /' conftest.$ac_ext >&5 cannam@86: cannam@86: fi cannam@86: rm -f conftest.err conftest.$ac_objext \ cannam@86: conftest$ac_exeext conftest.$ac_ext cannam@86: if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi cannam@86: cannam@86: hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" cannam@86: 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" cannam@86: else cannam@86: if test "$host_cpu" = ia64; then cannam@86: hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib' cannam@86: allow_undefined_flag_GCJ="-z nodefs" cannam@86: 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" cannam@86: else cannam@86: # Determine the default libpath from the value encoded in an empty executable. cannam@86: cat >conftest.$ac_ext <<_ACEOF cannam@86: /* confdefs.h. */ cannam@86: _ACEOF cannam@86: cat confdefs.h >>conftest.$ac_ext cannam@86: cat >>conftest.$ac_ext <<_ACEOF cannam@86: /* end confdefs.h. */ cannam@86: cannam@86: int cannam@86: main () cannam@86: { cannam@86: cannam@86: ; cannam@86: return 0; cannam@86: } cannam@86: _ACEOF cannam@86: rm -f conftest.$ac_objext conftest$ac_exeext cannam@86: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 cannam@86: (eval $ac_link) 2>conftest.er1 cannam@86: ac_status=$? cannam@86: grep -v '^ *+' conftest.er1 >conftest.err cannam@86: rm -f conftest.er1 cannam@86: cat conftest.err >&5 cannam@86: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@86: (exit $ac_status); } && cannam@86: { ac_try='test -z "$ac_c_werror_flag" cannam@86: || test ! -s conftest.err' cannam@86: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 cannam@86: (eval $ac_try) 2>&5 cannam@86: ac_status=$? cannam@86: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@86: (exit $ac_status); }; } && cannam@86: { ac_try='test -s conftest$ac_exeext' cannam@86: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 cannam@86: (eval $ac_try) 2>&5 cannam@86: ac_status=$? cannam@86: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@86: (exit $ac_status); }; }; then cannam@86: cannam@86: aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } cannam@86: }'` cannam@86: # Check for a 64-bit object if we didn't find anything. cannam@86: if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } cannam@86: }'`; fi cannam@86: else cannam@86: echo "$as_me: failed program was:" >&5 cannam@86: sed 's/^/| /' conftest.$ac_ext >&5 cannam@86: cannam@86: fi cannam@86: rm -f conftest.err conftest.$ac_objext \ cannam@86: conftest$ac_exeext conftest.$ac_ext cannam@86: if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi cannam@86: cannam@86: hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" cannam@86: # Warning - without using the other run time loading flags, cannam@86: # -berok will link without error, but may produce a broken library. cannam@86: no_undefined_flag_GCJ=' ${wl}-bernotok' cannam@86: allow_undefined_flag_GCJ=' ${wl}-berok' cannam@86: # -bexpall does not export symbols beginning with underscore (_) cannam@86: always_export_symbols_GCJ=yes cannam@86: # Exported symbols can be pulled into shared objects from archives cannam@86: whole_archive_flag_spec_GCJ=' ' cannam@86: archive_cmds_need_lc_GCJ=yes cannam@86: # This is similar to how AIX traditionally builds it's shared libraries. cannam@86: 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' cannam@86: fi cannam@86: fi cannam@86: ;; cannam@86: cannam@86: amigaos*) cannam@86: 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)' cannam@86: hardcode_libdir_flag_spec_GCJ='-L$libdir' cannam@86: hardcode_minus_L_GCJ=yes cannam@86: # see comment about different semantics on the GNU ld section cannam@86: ld_shlibs_GCJ=no cannam@86: ;; cannam@86: cannam@86: bsdi[45]*) cannam@86: export_dynamic_flag_spec_GCJ=-rdynamic cannam@86: ;; cannam@86: cannam@86: cygwin* | mingw* | pw32*) cannam@86: # When not using gcc, we currently assume that we are using cannam@86: # Microsoft Visual C++. cannam@86: # hardcode_libdir_flag_spec is actually meaningless, as there is cannam@86: # no search path for DLLs. cannam@86: hardcode_libdir_flag_spec_GCJ=' ' cannam@86: allow_undefined_flag_GCJ=unsupported cannam@86: # Tell ltmain to make .lib files, not .a files. cannam@86: libext=lib cannam@86: # Tell ltmain to make .dll files, not .so files. cannam@86: shrext_cmds=".dll" cannam@86: # FIXME: Setting linknames here is a bad hack. cannam@86: archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' cannam@86: # The linker will automatically build a .lib file if we build a DLL. cannam@86: old_archive_From_new_cmds_GCJ='true' cannam@86: # FIXME: Should let the user specify the lib program. cannam@86: old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs' cannam@86: fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`' cannam@86: enable_shared_with_static_runtimes_GCJ=yes cannam@86: ;; cannam@86: cannam@86: darwin* | rhapsody*) cannam@86: case "$host_os" in cannam@86: rhapsody* | darwin1.[012]) cannam@86: allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress' cannam@86: ;; cannam@86: *) # Darwin 1.3 on cannam@86: if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then cannam@86: allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' cannam@86: else cannam@86: case ${MACOSX_DEPLOYMENT_TARGET} in cannam@86: 10.[012]) cannam@86: allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' cannam@86: ;; cannam@86: 10.*) cannam@86: allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup' cannam@86: ;; cannam@86: esac cannam@86: fi cannam@86: ;; cannam@86: esac cannam@86: archive_cmds_need_lc_GCJ=no cannam@86: hardcode_direct_GCJ=no cannam@86: hardcode_automatic_GCJ=yes cannam@86: hardcode_shlibpath_var_GCJ=unsupported cannam@86: whole_archive_flag_spec_GCJ='' cannam@86: link_all_deplibs_GCJ=yes cannam@86: if test "$GCC" = yes ; then cannam@86: output_verbose_link_cmd='echo' cannam@86: archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' cannam@86: module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' cannam@86: # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's cannam@86: archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' cannam@86: 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}' cannam@86: else cannam@86: case $cc_basename in cannam@86: xlc*) cannam@86: output_verbose_link_cmd='echo' cannam@86: archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' cannam@86: module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' cannam@86: # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's cannam@86: archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' cannam@86: 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}' cannam@86: ;; cannam@86: *) cannam@86: ld_shlibs_GCJ=no cannam@86: ;; cannam@86: esac cannam@86: fi cannam@86: ;; cannam@86: cannam@86: dgux*) cannam@86: archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' cannam@86: hardcode_libdir_flag_spec_GCJ='-L$libdir' cannam@86: hardcode_shlibpath_var_GCJ=no cannam@86: ;; cannam@86: cannam@86: freebsd1*) cannam@86: ld_shlibs_GCJ=no cannam@86: ;; cannam@86: cannam@86: # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor cannam@86: # support. Future versions do this automatically, but an explicit c++rt0.o cannam@86: # does not break anything, and helps significantly (at the cost of a little cannam@86: # extra space). cannam@86: freebsd2.2*) cannam@86: archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' cannam@86: hardcode_libdir_flag_spec_GCJ='-R$libdir' cannam@86: hardcode_direct_GCJ=yes cannam@86: hardcode_shlibpath_var_GCJ=no cannam@86: ;; cannam@86: cannam@86: # Unfortunately, older versions of FreeBSD 2 do not have this feature. cannam@86: freebsd2*) cannam@86: archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' cannam@86: hardcode_direct_GCJ=yes cannam@86: hardcode_minus_L_GCJ=yes cannam@86: hardcode_shlibpath_var_GCJ=no cannam@86: ;; cannam@86: cannam@86: # FreeBSD 3 and greater uses gcc -shared to do shared libraries. cannam@86: freebsd* | kfreebsd*-gnu | dragonfly*) cannam@86: archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' cannam@86: hardcode_libdir_flag_spec_GCJ='-R$libdir' cannam@86: hardcode_direct_GCJ=yes cannam@86: hardcode_shlibpath_var_GCJ=no cannam@86: ;; cannam@86: cannam@86: hpux9*) cannam@86: if test "$GCC" = yes; then cannam@86: 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' cannam@86: else cannam@86: 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' cannam@86: fi cannam@86: hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' cannam@86: hardcode_libdir_separator_GCJ=: cannam@86: hardcode_direct_GCJ=yes cannam@86: cannam@86: # hardcode_minus_L: Not really in the search PATH, cannam@86: # but as the default location of the library. cannam@86: hardcode_minus_L_GCJ=yes cannam@86: export_dynamic_flag_spec_GCJ='${wl}-E' cannam@86: ;; cannam@86: cannam@86: hpux10* | hpux11*) cannam@86: if test "$GCC" = yes -a "$with_gnu_ld" = no; then cannam@86: case "$host_cpu" in cannam@86: hppa*64*|ia64*) cannam@86: archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' cannam@86: ;; cannam@86: *) cannam@86: archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' cannam@86: ;; cannam@86: esac cannam@86: else cannam@86: case "$host_cpu" in cannam@86: hppa*64*|ia64*) cannam@86: archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags' cannam@86: ;; cannam@86: *) cannam@86: archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' cannam@86: ;; cannam@86: esac cannam@86: fi cannam@86: if test "$with_gnu_ld" = no; then cannam@86: case "$host_cpu" in cannam@86: hppa*64*) cannam@86: hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' cannam@86: hardcode_libdir_flag_spec_ld_GCJ='+b $libdir' cannam@86: hardcode_libdir_separator_GCJ=: cannam@86: hardcode_direct_GCJ=no cannam@86: hardcode_shlibpath_var_GCJ=no cannam@86: ;; cannam@86: ia64*) cannam@86: hardcode_libdir_flag_spec_GCJ='-L$libdir' cannam@86: hardcode_direct_GCJ=no cannam@86: hardcode_shlibpath_var_GCJ=no cannam@86: cannam@86: # hardcode_minus_L: Not really in the search PATH, cannam@86: # but as the default location of the library. cannam@86: hardcode_minus_L_GCJ=yes cannam@86: ;; cannam@86: *) cannam@86: hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' cannam@86: hardcode_libdir_separator_GCJ=: cannam@86: hardcode_direct_GCJ=yes cannam@86: export_dynamic_flag_spec_GCJ='${wl}-E' cannam@86: cannam@86: # hardcode_minus_L: Not really in the search PATH, cannam@86: # but as the default location of the library. cannam@86: hardcode_minus_L_GCJ=yes cannam@86: ;; cannam@86: esac cannam@86: fi cannam@86: ;; cannam@86: cannam@86: irix5* | irix6* | nonstopux*) cannam@86: if test "$GCC" = yes; then cannam@86: 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' cannam@86: else cannam@86: 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' cannam@86: hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir' cannam@86: fi cannam@86: hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' cannam@86: hardcode_libdir_separator_GCJ=: cannam@86: link_all_deplibs_GCJ=yes cannam@86: ;; cannam@86: cannam@86: netbsd*) cannam@86: if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then cannam@86: archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out cannam@86: else cannam@86: archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF cannam@86: fi cannam@86: hardcode_libdir_flag_spec_GCJ='-R$libdir' cannam@86: hardcode_direct_GCJ=yes cannam@86: hardcode_shlibpath_var_GCJ=no cannam@86: ;; cannam@86: cannam@86: newsos6) cannam@86: archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' cannam@86: hardcode_direct_GCJ=yes cannam@86: hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' cannam@86: hardcode_libdir_separator_GCJ=: cannam@86: hardcode_shlibpath_var_GCJ=no cannam@86: ;; cannam@86: cannam@86: openbsd*) cannam@86: hardcode_direct_GCJ=yes cannam@86: hardcode_shlibpath_var_GCJ=no cannam@86: if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then cannam@86: archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' cannam@86: archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' cannam@86: hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' cannam@86: export_dynamic_flag_spec_GCJ='${wl}-E' cannam@86: else cannam@86: case $host_os in cannam@86: openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) cannam@86: archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' cannam@86: hardcode_libdir_flag_spec_GCJ='-R$libdir' cannam@86: ;; cannam@86: *) cannam@86: archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' cannam@86: hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' cannam@86: ;; cannam@86: esac cannam@86: fi cannam@86: ;; cannam@86: cannam@86: os2*) cannam@86: hardcode_libdir_flag_spec_GCJ='-L$libdir' cannam@86: hardcode_minus_L_GCJ=yes cannam@86: allow_undefined_flag_GCJ=unsupported cannam@86: 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' cannam@86: old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' cannam@86: ;; cannam@86: cannam@86: osf3*) cannam@86: if test "$GCC" = yes; then cannam@86: allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' cannam@86: 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' cannam@86: else cannam@86: allow_undefined_flag_GCJ=' -expect_unresolved \*' cannam@86: 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' cannam@86: fi cannam@86: hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' cannam@86: hardcode_libdir_separator_GCJ=: cannam@86: ;; cannam@86: cannam@86: osf4* | osf5*) # as osf3* with the addition of -msym flag cannam@86: if test "$GCC" = yes; then cannam@86: allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' cannam@86: 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' cannam@86: hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' cannam@86: else cannam@86: allow_undefined_flag_GCJ=' -expect_unresolved \*' cannam@86: 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' cannam@86: 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~ cannam@86: $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp' cannam@86: cannam@86: # Both c and cxx compiler support -rpath directly cannam@86: hardcode_libdir_flag_spec_GCJ='-rpath $libdir' cannam@86: fi cannam@86: hardcode_libdir_separator_GCJ=: cannam@86: ;; cannam@86: cannam@86: sco3.2v5*) cannam@86: archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' cannam@86: hardcode_shlibpath_var_GCJ=no cannam@86: export_dynamic_flag_spec_GCJ='${wl}-Bexport' cannam@86: runpath_var=LD_RUN_PATH cannam@86: hardcode_runpath_var=yes cannam@86: ;; cannam@86: cannam@86: solaris*) cannam@86: no_undefined_flag_GCJ=' -z text' cannam@86: if test "$GCC" = yes; then cannam@86: wlarc='${wl}' cannam@86: archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' cannam@86: archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ cannam@86: $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' cannam@86: else cannam@86: wlarc='' cannam@86: archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' cannam@86: archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ cannam@86: $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' cannam@86: fi cannam@86: hardcode_libdir_flag_spec_GCJ='-R$libdir' cannam@86: hardcode_shlibpath_var_GCJ=no cannam@86: case $host_os in cannam@86: solaris2.[0-5] | solaris2.[0-5].*) ;; cannam@86: *) cannam@86: # The compiler driver will combine linker options so we cannam@86: # cannot just pass the convience library names through cannam@86: # without $wl, iff we do not link with $LD. cannam@86: # Luckily, gcc supports the same syntax we need for Sun Studio. cannam@86: # Supported since Solaris 2.6 (maybe 2.5.1?) cannam@86: case $wlarc in cannam@86: '') cannam@86: whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;; cannam@86: *) cannam@86: whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;; cannam@86: esac ;; cannam@86: esac cannam@86: link_all_deplibs_GCJ=yes cannam@86: ;; cannam@86: cannam@86: sunos4*) cannam@86: if test "x$host_vendor" = xsequent; then cannam@86: # Use $CC to link under sequent, because it throws in some extra .o cannam@86: # files that make .init and .fini sections work. cannam@86: archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' cannam@86: else cannam@86: archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' cannam@86: fi cannam@86: hardcode_libdir_flag_spec_GCJ='-L$libdir' cannam@86: hardcode_direct_GCJ=yes cannam@86: hardcode_minus_L_GCJ=yes cannam@86: hardcode_shlibpath_var_GCJ=no cannam@86: ;; cannam@86: cannam@86: sysv4) cannam@86: case $host_vendor in cannam@86: sni) cannam@86: archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' cannam@86: hardcode_direct_GCJ=yes # is this really true??? cannam@86: ;; cannam@86: siemens) cannam@86: ## LD is ld it makes a PLAMLIB cannam@86: ## CC just makes a GrossModule. cannam@86: archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' cannam@86: reload_cmds_GCJ='$CC -r -o $output$reload_objs' cannam@86: hardcode_direct_GCJ=no cannam@86: ;; cannam@86: motorola) cannam@86: archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' cannam@86: hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie cannam@86: ;; cannam@86: esac cannam@86: runpath_var='LD_RUN_PATH' cannam@86: hardcode_shlibpath_var_GCJ=no cannam@86: ;; cannam@86: cannam@86: sysv4.3*) cannam@86: archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' cannam@86: hardcode_shlibpath_var_GCJ=no cannam@86: export_dynamic_flag_spec_GCJ='-Bexport' cannam@86: ;; cannam@86: cannam@86: sysv4*MP*) cannam@86: if test -d /usr/nec; then cannam@86: archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' cannam@86: hardcode_shlibpath_var_GCJ=no cannam@86: runpath_var=LD_RUN_PATH cannam@86: hardcode_runpath_var=yes cannam@86: ld_shlibs_GCJ=yes cannam@86: fi cannam@86: ;; cannam@86: cannam@86: sysv4.2uw2*) cannam@86: archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' cannam@86: hardcode_direct_GCJ=yes cannam@86: hardcode_minus_L_GCJ=no cannam@86: hardcode_shlibpath_var_GCJ=no cannam@86: hardcode_runpath_var=yes cannam@86: runpath_var=LD_RUN_PATH cannam@86: ;; cannam@86: cannam@86: sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) cannam@86: no_undefined_flag_GCJ='${wl}-z ${wl}text' cannam@86: if test "$GCC" = yes; then cannam@86: archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' cannam@86: else cannam@86: archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' cannam@86: fi cannam@86: runpath_var='LD_RUN_PATH' cannam@86: hardcode_shlibpath_var_GCJ=no cannam@86: ;; cannam@86: cannam@86: sysv5*) cannam@86: no_undefined_flag_GCJ=' -z text' cannam@86: # $CC -shared without GNU ld will not create a library from C++ cannam@86: # object files and a static libstdc++, better avoid it by now cannam@86: archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' cannam@86: archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ cannam@86: $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' cannam@86: hardcode_libdir_flag_spec_GCJ= cannam@86: hardcode_shlibpath_var_GCJ=no cannam@86: runpath_var='LD_RUN_PATH' cannam@86: ;; cannam@86: cannam@86: uts4*) cannam@86: archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' cannam@86: hardcode_libdir_flag_spec_GCJ='-L$libdir' cannam@86: hardcode_shlibpath_var_GCJ=no cannam@86: ;; cannam@86: cannam@86: *) cannam@86: ld_shlibs_GCJ=no cannam@86: ;; cannam@86: esac cannam@86: fi cannam@86: cannam@86: echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5 cannam@86: echo "${ECHO_T}$ld_shlibs_GCJ" >&6 cannam@86: test "$ld_shlibs_GCJ" = no && can_build_shared=no cannam@86: cannam@86: variables_saved_for_relink="PATH $shlibpath_var $runpath_var" cannam@86: if test "$GCC" = yes; then cannam@86: variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" cannam@86: fi cannam@86: cannam@86: # cannam@86: # Do we need to explicitly link libc? cannam@86: # cannam@86: case "x$archive_cmds_need_lc_GCJ" in cannam@86: x|xyes) cannam@86: # Assume -lc should be added cannam@86: archive_cmds_need_lc_GCJ=yes cannam@86: cannam@86: if test "$enable_shared" = yes && test "$GCC" = yes; then cannam@86: case $archive_cmds_GCJ in cannam@86: *'~'*) cannam@86: # FIXME: we may have to deal with multi-command sequences. cannam@86: ;; cannam@86: '$CC '*) cannam@86: # Test whether the compiler implicitly links with -lc since on some cannam@86: # systems, -lgcc has to come before -lc. If gcc already passes -lc cannam@86: # to ld, don't add -lc before -lgcc. cannam@86: echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 cannam@86: echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 cannam@86: $rm conftest* cannam@86: printf "$lt_simple_compile_test_code" > conftest.$ac_ext cannam@86: cannam@86: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 cannam@86: (eval $ac_compile) 2>&5 cannam@86: ac_status=$? cannam@86: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@86: (exit $ac_status); } 2>conftest.err; then cannam@86: soname=conftest cannam@86: lib=conftest cannam@86: libobjs=conftest.$ac_objext cannam@86: deplibs= cannam@86: wl=$lt_prog_compiler_wl_GCJ cannam@86: compiler_flags=-v cannam@86: linker_flags=-v cannam@86: verstring= cannam@86: output_objdir=. cannam@86: libname=conftest cannam@86: lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ cannam@86: allow_undefined_flag_GCJ= cannam@86: if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 cannam@86: (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 cannam@86: ac_status=$? cannam@86: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@86: (exit $ac_status); } cannam@86: then cannam@86: archive_cmds_need_lc_GCJ=no cannam@86: else cannam@86: archive_cmds_need_lc_GCJ=yes cannam@86: fi cannam@86: allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag cannam@86: else cannam@86: cat conftest.err 1>&5 cannam@86: fi cannam@86: $rm conftest* cannam@86: echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5 cannam@86: echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6 cannam@86: ;; cannam@86: esac cannam@86: fi cannam@86: ;; cannam@86: esac cannam@86: cannam@86: echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 cannam@86: echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 cannam@86: library_names_spec= cannam@86: libname_spec='lib$name' cannam@86: soname_spec= cannam@86: shrext_cmds=".so" cannam@86: postinstall_cmds= cannam@86: postuninstall_cmds= cannam@86: finish_cmds= cannam@86: finish_eval= cannam@86: shlibpath_var= cannam@86: shlibpath_overrides_runpath=unknown cannam@86: version_type=none cannam@86: dynamic_linker="$host_os ld.so" cannam@86: sys_lib_dlsearch_path_spec="/lib /usr/lib" cannam@86: if test "$GCC" = yes; then cannam@86: sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` cannam@86: if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then cannam@86: # if the path contains ";" then we assume it to be the separator cannam@86: # otherwise default to the standard path separator (i.e. ":") - it is cannam@86: # assumed that no part of a normal pathname contains ";" but that should cannam@86: # okay in the real world where ";" in dirpaths is itself problematic. cannam@86: sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` cannam@86: else cannam@86: sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` cannam@86: fi cannam@86: else cannam@86: sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" cannam@86: fi cannam@86: need_lib_prefix=unknown cannam@86: hardcode_into_libs=no cannam@86: cannam@86: # when you set need_version to no, make sure it does not cause -set_version cannam@86: # flags to be left without arguments cannam@86: need_version=unknown cannam@86: cannam@86: case $host_os in cannam@86: aix3*) cannam@86: version_type=linux cannam@86: library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' cannam@86: shlibpath_var=LIBPATH cannam@86: cannam@86: # AIX 3 has no versioning support, so we append a major version to the name. cannam@86: soname_spec='${libname}${release}${shared_ext}$major' cannam@86: ;; cannam@86: cannam@86: aix4* | aix5*) cannam@86: version_type=linux cannam@86: need_lib_prefix=no cannam@86: need_version=no cannam@86: hardcode_into_libs=yes cannam@86: if test "$host_cpu" = ia64; then cannam@86: # AIX 5 supports IA64 cannam@86: library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' cannam@86: shlibpath_var=LD_LIBRARY_PATH cannam@86: else cannam@86: # With GCC up to 2.95.x, collect2 would create an import file cannam@86: # for dependence libraries. The import file would start with cannam@86: # the line `#! .'. This would cause the generated library to cannam@86: # depend on `.', always an invalid library. This was fixed in cannam@86: # development snapshots of GCC prior to 3.0. cannam@86: case $host_os in cannam@86: aix4 | aix4.[01] | aix4.[01].*) cannam@86: if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' cannam@86: echo ' yes ' cannam@86: echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then cannam@86: : cannam@86: else cannam@86: can_build_shared=no cannam@86: fi cannam@86: ;; cannam@86: esac cannam@86: # AIX (on Power*) has no versioning support, so currently we can not hardcode correct cannam@86: # soname into executable. Probably we can add versioning support to cannam@86: # collect2, so additional links can be useful in future. cannam@86: if test "$aix_use_runtimelinking" = yes; then cannam@86: # If using run time linking (on AIX 4.2 or later) use lib.so cannam@86: # instead of lib.a to let people know that these are not cannam@86: # typical AIX shared libraries. cannam@86: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' cannam@86: else cannam@86: # We preserve .a as extension for shared libraries through AIX4.2 cannam@86: # and later when we are not doing run time linking. cannam@86: library_names_spec='${libname}${release}.a $libname.a' cannam@86: soname_spec='${libname}${release}${shared_ext}$major' cannam@86: fi cannam@86: shlibpath_var=LIBPATH cannam@86: fi cannam@86: ;; cannam@86: cannam@86: amigaos*) cannam@86: library_names_spec='$libname.ixlibrary $libname.a' cannam@86: # Create ${libname}_ixlibrary.a entries in /sys/libs. cannam@86: 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' cannam@86: ;; cannam@86: cannam@86: beos*) cannam@86: library_names_spec='${libname}${shared_ext}' cannam@86: dynamic_linker="$host_os ld.so" cannam@86: shlibpath_var=LIBRARY_PATH cannam@86: ;; cannam@86: cannam@86: bsdi[45]*) cannam@86: version_type=linux cannam@86: need_version=no cannam@86: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' cannam@86: soname_spec='${libname}${release}${shared_ext}$major' cannam@86: finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' cannam@86: shlibpath_var=LD_LIBRARY_PATH cannam@86: sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" cannam@86: sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" cannam@86: # the default ld.so.conf also contains /usr/contrib/lib and cannam@86: # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow cannam@86: # libtool to hard-code these into programs cannam@86: ;; cannam@86: cannam@86: cygwin* | mingw* | pw32*) cannam@86: version_type=windows cannam@86: shrext_cmds=".dll" cannam@86: need_version=no cannam@86: need_lib_prefix=no cannam@86: cannam@86: case $GCC,$host_os in cannam@86: yes,cygwin* | yes,mingw* | yes,pw32*) cannam@86: library_names_spec='$libname.dll.a' cannam@86: # DLL is installed to $(libdir)/../bin by postinstall_cmds cannam@86: postinstall_cmds='base_file=`basename \${file}`~ cannam@86: dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ cannam@86: dldir=$destdir/`dirname \$dlpath`~ cannam@86: test -d \$dldir || mkdir -p \$dldir~ cannam@86: $install_prog $dir/$dlname \$dldir/$dlname' cannam@86: postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ cannam@86: dlpath=$dir/\$dldll~ cannam@86: $rm \$dlpath' cannam@86: shlibpath_overrides_runpath=yes cannam@86: cannam@86: case $host_os in cannam@86: cygwin*) cannam@86: # Cygwin DLLs use 'cyg' prefix rather than 'lib' cannam@86: soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' cannam@86: sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" cannam@86: ;; cannam@86: mingw*) cannam@86: # MinGW DLLs use traditional 'lib' prefix cannam@86: soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' cannam@86: sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` cannam@86: if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then cannam@86: # It is most probably a Windows format PATH printed by cannam@86: # mingw gcc, but we are running on Cygwin. Gcc prints its search cannam@86: # path with ; separators, and with drive letters. We can handle the cannam@86: # drive letters (cygwin fileutils understands them), so leave them, cannam@86: # especially as we might pass files found there to a mingw objdump, cannam@86: # which wouldn't understand a cygwinified path. Ahh. cannam@86: sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` cannam@86: else cannam@86: sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` cannam@86: fi cannam@86: ;; cannam@86: pw32*) cannam@86: # pw32 DLLs use 'pw' prefix rather than 'lib' cannam@86: library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' cannam@86: ;; cannam@86: esac cannam@86: ;; cannam@86: cannam@86: *) cannam@86: library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' cannam@86: ;; cannam@86: esac cannam@86: dynamic_linker='Win32 ld.exe' cannam@86: # FIXME: first we should search . and the directory the executable is in cannam@86: shlibpath_var=PATH cannam@86: ;; cannam@86: cannam@86: darwin* | rhapsody*) cannam@86: dynamic_linker="$host_os dyld" cannam@86: version_type=darwin cannam@86: need_lib_prefix=no cannam@86: need_version=no cannam@86: library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' cannam@86: soname_spec='${libname}${release}${major}$shared_ext' cannam@86: shlibpath_overrides_runpath=yes cannam@86: shlibpath_var=DYLD_LIBRARY_PATH cannam@86: shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)' cannam@86: # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. cannam@86: if test "$GCC" = yes; then cannam@86: 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"` cannam@86: else cannam@86: sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' cannam@86: fi cannam@86: sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' cannam@86: ;; cannam@86: cannam@86: dgux*) cannam@86: version_type=linux cannam@86: need_lib_prefix=no cannam@86: need_version=no cannam@86: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' cannam@86: soname_spec='${libname}${release}${shared_ext}$major' cannam@86: shlibpath_var=LD_LIBRARY_PATH cannam@86: ;; cannam@86: cannam@86: freebsd1*) cannam@86: dynamic_linker=no cannam@86: ;; cannam@86: cannam@86: kfreebsd*-gnu) cannam@86: version_type=linux cannam@86: need_lib_prefix=no cannam@86: need_version=no cannam@86: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' cannam@86: soname_spec='${libname}${release}${shared_ext}$major' cannam@86: shlibpath_var=LD_LIBRARY_PATH cannam@86: shlibpath_overrides_runpath=no cannam@86: hardcode_into_libs=yes cannam@86: dynamic_linker='GNU ld.so' cannam@86: ;; cannam@86: cannam@86: freebsd* | dragonfly*) cannam@86: # DragonFly does not have aout. When/if they implement a new cannam@86: # versioning mechanism, adjust this. cannam@86: objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` cannam@86: version_type=freebsd-$objformat cannam@86: case $version_type in cannam@86: freebsd-elf*) cannam@86: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' cannam@86: need_version=no cannam@86: need_lib_prefix=no cannam@86: ;; cannam@86: freebsd-*) cannam@86: library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' cannam@86: need_version=yes cannam@86: ;; cannam@86: esac cannam@86: shlibpath_var=LD_LIBRARY_PATH cannam@86: case $host_os in cannam@86: freebsd2*) cannam@86: shlibpath_overrides_runpath=yes cannam@86: ;; cannam@86: freebsd3.[01]* | freebsdelf3.[01]*) cannam@86: shlibpath_overrides_runpath=yes cannam@86: hardcode_into_libs=yes cannam@86: ;; cannam@86: *) # from 3.2 on cannam@86: shlibpath_overrides_runpath=no cannam@86: hardcode_into_libs=yes cannam@86: ;; cannam@86: esac cannam@86: ;; cannam@86: cannam@86: gnu*) cannam@86: version_type=linux cannam@86: need_lib_prefix=no cannam@86: need_version=no cannam@86: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' cannam@86: soname_spec='${libname}${release}${shared_ext}$major' cannam@86: shlibpath_var=LD_LIBRARY_PATH cannam@86: hardcode_into_libs=yes cannam@86: ;; cannam@86: cannam@86: hpux9* | hpux10* | hpux11*) cannam@86: # Give a soname corresponding to the major version so that dld.sl refuses to cannam@86: # link against other versions. cannam@86: version_type=sunos cannam@86: need_lib_prefix=no cannam@86: need_version=no cannam@86: case "$host_cpu" in cannam@86: ia64*) cannam@86: shrext_cmds='.so' cannam@86: hardcode_into_libs=yes cannam@86: dynamic_linker="$host_os dld.so" cannam@86: shlibpath_var=LD_LIBRARY_PATH cannam@86: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. cannam@86: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' cannam@86: soname_spec='${libname}${release}${shared_ext}$major' cannam@86: if test "X$HPUX_IA64_MODE" = X32; then cannam@86: sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" cannam@86: else cannam@86: sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" cannam@86: fi cannam@86: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec cannam@86: ;; cannam@86: hppa*64*) cannam@86: shrext_cmds='.sl' cannam@86: hardcode_into_libs=yes cannam@86: dynamic_linker="$host_os dld.sl" cannam@86: shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH cannam@86: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. cannam@86: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' cannam@86: soname_spec='${libname}${release}${shared_ext}$major' cannam@86: sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" cannam@86: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec cannam@86: ;; cannam@86: *) cannam@86: shrext_cmds='.sl' cannam@86: dynamic_linker="$host_os dld.sl" cannam@86: shlibpath_var=SHLIB_PATH cannam@86: shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH cannam@86: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' cannam@86: soname_spec='${libname}${release}${shared_ext}$major' cannam@86: ;; cannam@86: esac cannam@86: # HP-UX runs *really* slowly unless shared libraries are mode 555. cannam@86: postinstall_cmds='chmod 555 $lib' cannam@86: ;; cannam@86: cannam@86: irix5* | irix6* | nonstopux*) cannam@86: case $host_os in cannam@86: nonstopux*) version_type=nonstopux ;; cannam@86: *) cannam@86: if test "$lt_cv_prog_gnu_ld" = yes; then cannam@86: version_type=linux cannam@86: else cannam@86: version_type=irix cannam@86: fi ;; cannam@86: esac cannam@86: need_lib_prefix=no cannam@86: need_version=no cannam@86: soname_spec='${libname}${release}${shared_ext}$major' cannam@86: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' cannam@86: case $host_os in cannam@86: irix5* | nonstopux*) cannam@86: libsuff= shlibsuff= cannam@86: ;; cannam@86: *) cannam@86: case $LD in # libtool.m4 will add one of these switches to LD cannam@86: *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") cannam@86: libsuff= shlibsuff= libmagic=32-bit;; cannam@86: *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") cannam@86: libsuff=32 shlibsuff=N32 libmagic=N32;; cannam@86: *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") cannam@86: libsuff=64 shlibsuff=64 libmagic=64-bit;; cannam@86: *) libsuff= shlibsuff= libmagic=never-match;; cannam@86: esac cannam@86: ;; cannam@86: esac cannam@86: shlibpath_var=LD_LIBRARY${shlibsuff}_PATH cannam@86: shlibpath_overrides_runpath=no cannam@86: sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" cannam@86: sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" cannam@86: hardcode_into_libs=yes cannam@86: ;; cannam@86: cannam@86: # No shared lib support for Linux oldld, aout, or coff. cannam@86: linux*oldld* | linux*aout* | linux*coff*) cannam@86: dynamic_linker=no cannam@86: ;; cannam@86: cannam@86: # This must be Linux ELF. cannam@86: linux*) cannam@86: version_type=linux cannam@86: need_lib_prefix=no cannam@86: need_version=no cannam@86: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' cannam@86: soname_spec='${libname}${release}${shared_ext}$major' cannam@86: finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' cannam@86: shlibpath_var=LD_LIBRARY_PATH cannam@86: shlibpath_overrides_runpath=no cannam@86: # This implies no fast_install, which is unacceptable. cannam@86: # Some rework will be needed to allow for fast_install cannam@86: # before this can be enabled. cannam@86: hardcode_into_libs=yes cannam@86: cannam@86: # find out which ABI we are using cannam@86: libsuff= cannam@86: case "$host_cpu" in cannam@86: x86_64*|s390x*|powerpc64*) cannam@86: echo '#line 17601 "configure"' > conftest.$ac_ext cannam@86: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 cannam@86: (eval $ac_compile) 2>&5 cannam@86: ac_status=$? cannam@86: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@86: (exit $ac_status); }; then cannam@86: case `/usr/bin/file conftest.$ac_objext` in cannam@86: *64-bit*) cannam@86: libsuff=64 cannam@86: sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}" cannam@86: ;; cannam@86: esac cannam@86: fi cannam@86: rm -rf conftest* cannam@86: ;; cannam@86: esac cannam@86: cannam@86: # Append ld.so.conf contents to the search path cannam@86: if test -f /etc/ld.so.conf; then cannam@86: lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,\t]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` cannam@86: sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra" cannam@86: fi cannam@86: cannam@86: # We used to test for /lib/ld.so.1 and disable shared libraries on cannam@86: # powerpc, because MkLinux only supported shared libraries with the cannam@86: # GNU dynamic linker. Since this was broken with cross compilers, cannam@86: # most powerpc-linux boxes support dynamic linking these days and cannam@86: # people can always --disable-shared, the test was removed, and we cannam@86: # assume the GNU/Linux dynamic linker is in use. cannam@86: dynamic_linker='GNU/Linux ld.so' cannam@86: ;; cannam@86: cannam@86: knetbsd*-gnu) cannam@86: version_type=linux cannam@86: need_lib_prefix=no cannam@86: need_version=no cannam@86: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' cannam@86: soname_spec='${libname}${release}${shared_ext}$major' cannam@86: shlibpath_var=LD_LIBRARY_PATH cannam@86: shlibpath_overrides_runpath=no cannam@86: hardcode_into_libs=yes cannam@86: dynamic_linker='GNU ld.so' cannam@86: ;; cannam@86: cannam@86: netbsd*) cannam@86: version_type=sunos cannam@86: need_lib_prefix=no cannam@86: need_version=no cannam@86: if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then cannam@86: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' cannam@86: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' cannam@86: dynamic_linker='NetBSD (a.out) ld.so' cannam@86: else cannam@86: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' cannam@86: soname_spec='${libname}${release}${shared_ext}$major' cannam@86: dynamic_linker='NetBSD ld.elf_so' cannam@86: fi cannam@86: shlibpath_var=LD_LIBRARY_PATH cannam@86: shlibpath_overrides_runpath=yes cannam@86: hardcode_into_libs=yes cannam@86: ;; cannam@86: cannam@86: newsos6) cannam@86: version_type=linux cannam@86: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' cannam@86: shlibpath_var=LD_LIBRARY_PATH cannam@86: shlibpath_overrides_runpath=yes cannam@86: ;; cannam@86: cannam@86: nto-qnx*) cannam@86: version_type=linux cannam@86: need_lib_prefix=no cannam@86: need_version=no cannam@86: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' cannam@86: soname_spec='${libname}${release}${shared_ext}$major' cannam@86: shlibpath_var=LD_LIBRARY_PATH cannam@86: shlibpath_overrides_runpath=yes cannam@86: ;; cannam@86: cannam@86: openbsd*) cannam@86: version_type=sunos cannam@86: need_lib_prefix=no cannam@86: need_version=no cannam@86: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' cannam@86: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' cannam@86: shlibpath_var=LD_LIBRARY_PATH cannam@86: if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then cannam@86: case $host_os in cannam@86: openbsd2.[89] | openbsd2.[89].*) cannam@86: shlibpath_overrides_runpath=no cannam@86: ;; cannam@86: *) cannam@86: shlibpath_overrides_runpath=yes cannam@86: ;; cannam@86: esac cannam@86: else cannam@86: shlibpath_overrides_runpath=yes cannam@86: fi cannam@86: ;; cannam@86: cannam@86: os2*) cannam@86: libname_spec='$name' cannam@86: shrext_cmds=".dll" cannam@86: need_lib_prefix=no cannam@86: library_names_spec='$libname${shared_ext} $libname.a' cannam@86: dynamic_linker='OS/2 ld.exe' cannam@86: shlibpath_var=LIBPATH cannam@86: ;; cannam@86: cannam@86: osf3* | osf4* | osf5*) cannam@86: version_type=osf cannam@86: need_lib_prefix=no cannam@86: need_version=no cannam@86: soname_spec='${libname}${release}${shared_ext}$major' cannam@86: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' cannam@86: shlibpath_var=LD_LIBRARY_PATH cannam@86: sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" cannam@86: sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" cannam@86: ;; cannam@86: cannam@86: sco3.2v5*) cannam@86: version_type=osf cannam@86: soname_spec='${libname}${release}${shared_ext}$major' cannam@86: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' cannam@86: shlibpath_var=LD_LIBRARY_PATH cannam@86: ;; cannam@86: cannam@86: solaris*) cannam@86: version_type=linux cannam@86: need_lib_prefix=no cannam@86: need_version=no cannam@86: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' cannam@86: soname_spec='${libname}${release}${shared_ext}$major' cannam@86: shlibpath_var=LD_LIBRARY_PATH cannam@86: shlibpath_overrides_runpath=yes cannam@86: hardcode_into_libs=yes cannam@86: # ldd complains unless libraries are executable cannam@86: postinstall_cmds='chmod +x $lib' cannam@86: ;; cannam@86: cannam@86: sunos4*) cannam@86: version_type=sunos cannam@86: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' cannam@86: finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' cannam@86: shlibpath_var=LD_LIBRARY_PATH cannam@86: shlibpath_overrides_runpath=yes cannam@86: if test "$with_gnu_ld" = yes; then cannam@86: need_lib_prefix=no cannam@86: fi cannam@86: need_version=yes cannam@86: ;; cannam@86: cannam@86: sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) cannam@86: version_type=linux cannam@86: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' cannam@86: soname_spec='${libname}${release}${shared_ext}$major' cannam@86: shlibpath_var=LD_LIBRARY_PATH cannam@86: case $host_vendor in cannam@86: sni) cannam@86: shlibpath_overrides_runpath=no cannam@86: need_lib_prefix=no cannam@86: export_dynamic_flag_spec='${wl}-Blargedynsym' cannam@86: runpath_var=LD_RUN_PATH cannam@86: ;; cannam@86: siemens) cannam@86: need_lib_prefix=no cannam@86: ;; cannam@86: motorola) cannam@86: need_lib_prefix=no cannam@86: need_version=no cannam@86: shlibpath_overrides_runpath=no cannam@86: sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' cannam@86: ;; cannam@86: esac cannam@86: ;; cannam@86: cannam@86: sysv4*MP*) cannam@86: if test -d /usr/nec ;then cannam@86: version_type=linux cannam@86: library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' cannam@86: soname_spec='$libname${shared_ext}.$major' cannam@86: shlibpath_var=LD_LIBRARY_PATH cannam@86: fi cannam@86: ;; cannam@86: cannam@86: uts4*) cannam@86: version_type=linux cannam@86: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' cannam@86: soname_spec='${libname}${release}${shared_ext}$major' cannam@86: shlibpath_var=LD_LIBRARY_PATH cannam@86: ;; cannam@86: cannam@86: *) cannam@86: dynamic_linker=no cannam@86: ;; cannam@86: esac cannam@86: echo "$as_me:$LINENO: result: $dynamic_linker" >&5 cannam@86: echo "${ECHO_T}$dynamic_linker" >&6 cannam@86: test "$dynamic_linker" = no && can_build_shared=no cannam@86: cannam@86: echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 cannam@86: echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 cannam@86: hardcode_action_GCJ= cannam@86: if test -n "$hardcode_libdir_flag_spec_GCJ" || \ cannam@86: test -n "$runpath_var_GCJ" || \ cannam@86: test "X$hardcode_automatic_GCJ" = "Xyes" ; then cannam@86: cannam@86: # We can hardcode non-existant directories. cannam@86: if test "$hardcode_direct_GCJ" != no && cannam@86: # If the only mechanism to avoid hardcoding is shlibpath_var, we cannam@86: # have to relink, otherwise we might link with an installed library cannam@86: # when we should be linking with a yet-to-be-installed one cannam@86: ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no && cannam@86: test "$hardcode_minus_L_GCJ" != no; then cannam@86: # Linking always hardcodes the temporary library directory. cannam@86: hardcode_action_GCJ=relink cannam@86: else cannam@86: # We can link without hardcoding, and we can hardcode nonexisting dirs. cannam@86: hardcode_action_GCJ=immediate cannam@86: fi cannam@86: else cannam@86: # We cannot hardcode anything, or else we can only hardcode existing cannam@86: # directories. cannam@86: hardcode_action_GCJ=unsupported cannam@86: fi cannam@86: echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5 cannam@86: echo "${ECHO_T}$hardcode_action_GCJ" >&6 cannam@86: cannam@86: if test "$hardcode_action_GCJ" = relink; then cannam@86: # Fast installation is not supported cannam@86: enable_fast_install=no cannam@86: elif test "$shlibpath_overrides_runpath" = yes || cannam@86: test "$enable_shared" = no; then cannam@86: # Fast installation is not necessary cannam@86: enable_fast_install=needless cannam@86: fi cannam@86: cannam@86: striplib= cannam@86: old_striplib= cannam@86: echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 cannam@86: echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 cannam@86: if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then cannam@86: test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" cannam@86: test -z "$striplib" && striplib="$STRIP --strip-unneeded" cannam@86: echo "$as_me:$LINENO: result: yes" >&5 cannam@86: echo "${ECHO_T}yes" >&6 cannam@86: else cannam@86: # FIXME - insert some real tests, host_os isn't really good enough cannam@86: case $host_os in cannam@86: darwin*) cannam@86: if test -n "$STRIP" ; then cannam@86: striplib="$STRIP -x" cannam@86: echo "$as_me:$LINENO: result: yes" >&5 cannam@86: echo "${ECHO_T}yes" >&6 cannam@86: else cannam@86: echo "$as_me:$LINENO: result: no" >&5 cannam@86: echo "${ECHO_T}no" >&6 cannam@86: fi cannam@86: ;; cannam@86: *) cannam@86: echo "$as_me:$LINENO: result: no" >&5 cannam@86: echo "${ECHO_T}no" >&6 cannam@86: ;; cannam@86: esac cannam@86: fi cannam@86: cannam@86: if test "x$enable_dlopen" != xyes; then cannam@86: enable_dlopen=unknown cannam@86: enable_dlopen_self=unknown cannam@86: enable_dlopen_self_static=unknown cannam@86: else cannam@86: lt_cv_dlopen=no cannam@86: lt_cv_dlopen_libs= cannam@86: cannam@86: case $host_os in cannam@86: beos*) cannam@86: lt_cv_dlopen="load_add_on" cannam@86: lt_cv_dlopen_libs= cannam@86: lt_cv_dlopen_self=yes cannam@86: ;; cannam@86: cannam@86: mingw* | pw32*) cannam@86: lt_cv_dlopen="LoadLibrary" cannam@86: lt_cv_dlopen_libs= cannam@86: ;; cannam@86: cannam@86: cygwin*) cannam@86: lt_cv_dlopen="dlopen" cannam@86: lt_cv_dlopen_libs= cannam@86: ;; cannam@86: cannam@86: darwin*) cannam@86: # if libdl is installed we need to link against it cannam@86: echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 cannam@86: echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 cannam@86: if test "${ac_cv_lib_dl_dlopen+set}" = set; then cannam@86: echo $ECHO_N "(cached) $ECHO_C" >&6 cannam@86: else cannam@86: ac_check_lib_save_LIBS=$LIBS cannam@86: LIBS="-ldl $LIBS" cannam@86: cat >conftest.$ac_ext <<_ACEOF cannam@86: /* confdefs.h. */ cannam@86: _ACEOF cannam@86: cat confdefs.h >>conftest.$ac_ext cannam@86: cat >>conftest.$ac_ext <<_ACEOF cannam@86: /* end confdefs.h. */ cannam@86: cannam@86: /* Override any gcc2 internal prototype to avoid an error. */ cannam@86: #ifdef __cplusplus cannam@86: extern "C" cannam@86: #endif cannam@86: /* We use char because int might match the return type of a gcc2 cannam@86: builtin and then its argument prototype would still apply. */ cannam@86: char dlopen (); cannam@86: int cannam@86: main () cannam@86: { cannam@86: dlopen (); cannam@86: ; cannam@86: return 0; cannam@86: } cannam@86: _ACEOF cannam@86: rm -f conftest.$ac_objext conftest$ac_exeext cannam@86: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 cannam@86: (eval $ac_link) 2>conftest.er1 cannam@86: ac_status=$? cannam@86: grep -v '^ *+' conftest.er1 >conftest.err cannam@86: rm -f conftest.er1 cannam@86: cat conftest.err >&5 cannam@86: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@86: (exit $ac_status); } && cannam@86: { ac_try='test -z "$ac_c_werror_flag" cannam@86: || test ! -s conftest.err' cannam@86: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 cannam@86: (eval $ac_try) 2>&5 cannam@86: ac_status=$? cannam@86: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@86: (exit $ac_status); }; } && cannam@86: { ac_try='test -s conftest$ac_exeext' cannam@86: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 cannam@86: (eval $ac_try) 2>&5 cannam@86: ac_status=$? cannam@86: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@86: (exit $ac_status); }; }; then cannam@86: ac_cv_lib_dl_dlopen=yes cannam@86: else cannam@86: echo "$as_me: failed program was:" >&5 cannam@86: sed 's/^/| /' conftest.$ac_ext >&5 cannam@86: cannam@86: ac_cv_lib_dl_dlopen=no cannam@86: fi cannam@86: rm -f conftest.err conftest.$ac_objext \ cannam@86: conftest$ac_exeext conftest.$ac_ext cannam@86: LIBS=$ac_check_lib_save_LIBS cannam@86: fi cannam@86: echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 cannam@86: echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 cannam@86: if test $ac_cv_lib_dl_dlopen = yes; then cannam@86: lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" cannam@86: else cannam@86: cannam@86: lt_cv_dlopen="dyld" cannam@86: lt_cv_dlopen_libs= cannam@86: lt_cv_dlopen_self=yes cannam@86: cannam@86: fi cannam@86: cannam@86: ;; cannam@86: cannam@86: *) cannam@86: echo "$as_me:$LINENO: checking for shl_load" >&5 cannam@86: echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 cannam@86: if test "${ac_cv_func_shl_load+set}" = set; then cannam@86: echo $ECHO_N "(cached) $ECHO_C" >&6 cannam@86: else cannam@86: cat >conftest.$ac_ext <<_ACEOF cannam@86: /* confdefs.h. */ cannam@86: _ACEOF cannam@86: cat confdefs.h >>conftest.$ac_ext cannam@86: cat >>conftest.$ac_ext <<_ACEOF cannam@86: /* end confdefs.h. */ cannam@86: /* Define shl_load to an innocuous variant, in case declares shl_load. cannam@86: For example, HP-UX 11i declares gettimeofday. */ cannam@86: #define shl_load innocuous_shl_load cannam@86: cannam@86: /* System header to define __stub macros and hopefully few prototypes, cannam@86: which can conflict with char shl_load (); below. cannam@86: Prefer to if __STDC__ is defined, since cannam@86: exists even on freestanding compilers. */ cannam@86: cannam@86: #ifdef __STDC__ cannam@86: # include cannam@86: #else cannam@86: # include cannam@86: #endif cannam@86: cannam@86: #undef shl_load cannam@86: cannam@86: /* Override any gcc2 internal prototype to avoid an error. */ cannam@86: #ifdef __cplusplus cannam@86: extern "C" cannam@86: { cannam@86: #endif cannam@86: /* We use char because int might match the return type of a gcc2 cannam@86: builtin and then its argument prototype would still apply. */ cannam@86: char shl_load (); cannam@86: /* The GNU C library defines this for functions which it implements cannam@86: to always fail with ENOSYS. Some functions are actually named cannam@86: something starting with __ and the normal name is an alias. */ cannam@86: #if defined (__stub_shl_load) || defined (__stub___shl_load) cannam@86: choke me cannam@86: #else cannam@86: char (*f) () = shl_load; cannam@86: #endif cannam@86: #ifdef __cplusplus cannam@86: } cannam@86: #endif cannam@86: cannam@86: int cannam@86: main () cannam@86: { cannam@86: return f != shl_load; cannam@86: ; cannam@86: return 0; cannam@86: } cannam@86: _ACEOF cannam@86: rm -f conftest.$ac_objext conftest$ac_exeext cannam@86: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 cannam@86: (eval $ac_link) 2>conftest.er1 cannam@86: ac_status=$? cannam@86: grep -v '^ *+' conftest.er1 >conftest.err cannam@86: rm -f conftest.er1 cannam@86: cat conftest.err >&5 cannam@86: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@86: (exit $ac_status); } && cannam@86: { ac_try='test -z "$ac_c_werror_flag" cannam@86: || test ! -s conftest.err' cannam@86: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 cannam@86: (eval $ac_try) 2>&5 cannam@86: ac_status=$? cannam@86: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@86: (exit $ac_status); }; } && cannam@86: { ac_try='test -s conftest$ac_exeext' cannam@86: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 cannam@86: (eval $ac_try) 2>&5 cannam@86: ac_status=$? cannam@86: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@86: (exit $ac_status); }; }; then cannam@86: ac_cv_func_shl_load=yes cannam@86: else cannam@86: echo "$as_me: failed program was:" >&5 cannam@86: sed 's/^/| /' conftest.$ac_ext >&5 cannam@86: cannam@86: ac_cv_func_shl_load=no cannam@86: fi cannam@86: rm -f conftest.err conftest.$ac_objext \ cannam@86: conftest$ac_exeext conftest.$ac_ext cannam@86: fi cannam@86: echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 cannam@86: echo "${ECHO_T}$ac_cv_func_shl_load" >&6 cannam@86: if test $ac_cv_func_shl_load = yes; then cannam@86: lt_cv_dlopen="shl_load" cannam@86: else cannam@86: echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 cannam@86: echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 cannam@86: if test "${ac_cv_lib_dld_shl_load+set}" = set; then cannam@86: echo $ECHO_N "(cached) $ECHO_C" >&6 cannam@86: else cannam@86: ac_check_lib_save_LIBS=$LIBS cannam@86: LIBS="-ldld $LIBS" cannam@86: cat >conftest.$ac_ext <<_ACEOF cannam@86: /* confdefs.h. */ cannam@86: _ACEOF cannam@86: cat confdefs.h >>conftest.$ac_ext cannam@86: cat >>conftest.$ac_ext <<_ACEOF cannam@86: /* end confdefs.h. */ cannam@86: cannam@86: /* Override any gcc2 internal prototype to avoid an error. */ cannam@86: #ifdef __cplusplus cannam@86: extern "C" cannam@86: #endif cannam@86: /* We use char because int might match the return type of a gcc2 cannam@86: builtin and then its argument prototype would still apply. */ cannam@86: char shl_load (); cannam@86: int cannam@86: main () cannam@86: { cannam@86: shl_load (); cannam@86: ; cannam@86: return 0; cannam@86: } cannam@86: _ACEOF cannam@86: rm -f conftest.$ac_objext conftest$ac_exeext cannam@86: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 cannam@86: (eval $ac_link) 2>conftest.er1 cannam@86: ac_status=$? cannam@86: grep -v '^ *+' conftest.er1 >conftest.err cannam@86: rm -f conftest.er1 cannam@86: cat conftest.err >&5 cannam@86: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@86: (exit $ac_status); } && cannam@86: { ac_try='test -z "$ac_c_werror_flag" cannam@86: || test ! -s conftest.err' cannam@86: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 cannam@86: (eval $ac_try) 2>&5 cannam@86: ac_status=$? cannam@86: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@86: (exit $ac_status); }; } && cannam@86: { ac_try='test -s conftest$ac_exeext' cannam@86: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 cannam@86: (eval $ac_try) 2>&5 cannam@86: ac_status=$? cannam@86: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@86: (exit $ac_status); }; }; then cannam@86: ac_cv_lib_dld_shl_load=yes cannam@86: else cannam@86: echo "$as_me: failed program was:" >&5 cannam@86: sed 's/^/| /' conftest.$ac_ext >&5 cannam@86: cannam@86: ac_cv_lib_dld_shl_load=no cannam@86: fi cannam@86: rm -f conftest.err conftest.$ac_objext \ cannam@86: conftest$ac_exeext conftest.$ac_ext cannam@86: LIBS=$ac_check_lib_save_LIBS cannam@86: fi cannam@86: echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 cannam@86: echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 cannam@86: if test $ac_cv_lib_dld_shl_load = yes; then cannam@86: lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" cannam@86: else cannam@86: echo "$as_me:$LINENO: checking for dlopen" >&5 cannam@86: echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 cannam@86: if test "${ac_cv_func_dlopen+set}" = set; then cannam@86: echo $ECHO_N "(cached) $ECHO_C" >&6 cannam@86: else cannam@86: cat >conftest.$ac_ext <<_ACEOF cannam@86: /* confdefs.h. */ cannam@86: _ACEOF cannam@86: cat confdefs.h >>conftest.$ac_ext cannam@86: cat >>conftest.$ac_ext <<_ACEOF cannam@86: /* end confdefs.h. */ cannam@86: /* Define dlopen to an innocuous variant, in case declares dlopen. cannam@86: For example, HP-UX 11i declares gettimeofday. */ cannam@86: #define dlopen innocuous_dlopen cannam@86: cannam@86: /* System header to define __stub macros and hopefully few prototypes, cannam@86: which can conflict with char dlopen (); below. cannam@86: Prefer to if __STDC__ is defined, since cannam@86: exists even on freestanding compilers. */ cannam@86: cannam@86: #ifdef __STDC__ cannam@86: # include cannam@86: #else cannam@86: # include cannam@86: #endif cannam@86: cannam@86: #undef dlopen cannam@86: cannam@86: /* Override any gcc2 internal prototype to avoid an error. */ cannam@86: #ifdef __cplusplus cannam@86: extern "C" cannam@86: { cannam@86: #endif cannam@86: /* We use char because int might match the return type of a gcc2 cannam@86: builtin and then its argument prototype would still apply. */ cannam@86: char dlopen (); cannam@86: /* The GNU C library defines this for functions which it implements cannam@86: to always fail with ENOSYS. Some functions are actually named cannam@86: something starting with __ and the normal name is an alias. */ cannam@86: #if defined (__stub_dlopen) || defined (__stub___dlopen) cannam@86: choke me cannam@86: #else cannam@86: char (*f) () = dlopen; cannam@86: #endif cannam@86: #ifdef __cplusplus cannam@86: } cannam@86: #endif cannam@86: cannam@86: int cannam@86: main () cannam@86: { cannam@86: return f != dlopen; cannam@86: ; cannam@86: return 0; cannam@86: } cannam@86: _ACEOF cannam@86: rm -f conftest.$ac_objext conftest$ac_exeext cannam@86: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 cannam@86: (eval $ac_link) 2>conftest.er1 cannam@86: ac_status=$? cannam@86: grep -v '^ *+' conftest.er1 >conftest.err cannam@86: rm -f conftest.er1 cannam@86: cat conftest.err >&5 cannam@86: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@86: (exit $ac_status); } && cannam@86: { ac_try='test -z "$ac_c_werror_flag" cannam@86: || test ! -s conftest.err' cannam@86: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 cannam@86: (eval $ac_try) 2>&5 cannam@86: ac_status=$? cannam@86: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@86: (exit $ac_status); }; } && cannam@86: { ac_try='test -s conftest$ac_exeext' cannam@86: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 cannam@86: (eval $ac_try) 2>&5 cannam@86: ac_status=$? cannam@86: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@86: (exit $ac_status); }; }; then cannam@86: ac_cv_func_dlopen=yes cannam@86: else cannam@86: echo "$as_me: failed program was:" >&5 cannam@86: sed 's/^/| /' conftest.$ac_ext >&5 cannam@86: cannam@86: ac_cv_func_dlopen=no cannam@86: fi cannam@86: rm -f conftest.err conftest.$ac_objext \ cannam@86: conftest$ac_exeext conftest.$ac_ext cannam@86: fi cannam@86: echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 cannam@86: echo "${ECHO_T}$ac_cv_func_dlopen" >&6 cannam@86: if test $ac_cv_func_dlopen = yes; then cannam@86: lt_cv_dlopen="dlopen" cannam@86: else cannam@86: echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 cannam@86: echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 cannam@86: if test "${ac_cv_lib_dl_dlopen+set}" = set; then cannam@86: echo $ECHO_N "(cached) $ECHO_C" >&6 cannam@86: else cannam@86: ac_check_lib_save_LIBS=$LIBS cannam@86: LIBS="-ldl $LIBS" cannam@86: cat >conftest.$ac_ext <<_ACEOF cannam@86: /* confdefs.h. */ cannam@86: _ACEOF cannam@86: cat confdefs.h >>conftest.$ac_ext cannam@86: cat >>conftest.$ac_ext <<_ACEOF cannam@86: /* end confdefs.h. */ cannam@86: cannam@86: /* Override any gcc2 internal prototype to avoid an error. */ cannam@86: #ifdef __cplusplus cannam@86: extern "C" cannam@86: #endif cannam@86: /* We use char because int might match the return type of a gcc2 cannam@86: builtin and then its argument prototype would still apply. */ cannam@86: char dlopen (); cannam@86: int cannam@86: main () cannam@86: { cannam@86: dlopen (); cannam@86: ; cannam@86: return 0; cannam@86: } cannam@86: _ACEOF cannam@86: rm -f conftest.$ac_objext conftest$ac_exeext cannam@86: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 cannam@86: (eval $ac_link) 2>conftest.er1 cannam@86: ac_status=$? cannam@86: grep -v '^ *+' conftest.er1 >conftest.err cannam@86: rm -f conftest.er1 cannam@86: cat conftest.err >&5 cannam@86: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@86: (exit $ac_status); } && cannam@86: { ac_try='test -z "$ac_c_werror_flag" cannam@86: || test ! -s conftest.err' cannam@86: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 cannam@86: (eval $ac_try) 2>&5 cannam@86: ac_status=$? cannam@86: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@86: (exit $ac_status); }; } && cannam@86: { ac_try='test -s conftest$ac_exeext' cannam@86: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 cannam@86: (eval $ac_try) 2>&5 cannam@86: ac_status=$? cannam@86: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@86: (exit $ac_status); }; }; then cannam@86: ac_cv_lib_dl_dlopen=yes cannam@86: else cannam@86: echo "$as_me: failed program was:" >&5 cannam@86: sed 's/^/| /' conftest.$ac_ext >&5 cannam@86: cannam@86: ac_cv_lib_dl_dlopen=no cannam@86: fi cannam@86: rm -f conftest.err conftest.$ac_objext \ cannam@86: conftest$ac_exeext conftest.$ac_ext cannam@86: LIBS=$ac_check_lib_save_LIBS cannam@86: fi cannam@86: echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 cannam@86: echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 cannam@86: if test $ac_cv_lib_dl_dlopen = yes; then cannam@86: lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" cannam@86: else cannam@86: echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 cannam@86: echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 cannam@86: if test "${ac_cv_lib_svld_dlopen+set}" = set; then cannam@86: echo $ECHO_N "(cached) $ECHO_C" >&6 cannam@86: else cannam@86: ac_check_lib_save_LIBS=$LIBS cannam@86: LIBS="-lsvld $LIBS" cannam@86: cat >conftest.$ac_ext <<_ACEOF cannam@86: /* confdefs.h. */ cannam@86: _ACEOF cannam@86: cat confdefs.h >>conftest.$ac_ext cannam@86: cat >>conftest.$ac_ext <<_ACEOF cannam@86: /* end confdefs.h. */ cannam@86: cannam@86: /* Override any gcc2 internal prototype to avoid an error. */ cannam@86: #ifdef __cplusplus cannam@86: extern "C" cannam@86: #endif cannam@86: /* We use char because int might match the return type of a gcc2 cannam@86: builtin and then its argument prototype would still apply. */ cannam@86: char dlopen (); cannam@86: int cannam@86: main () cannam@86: { cannam@86: dlopen (); cannam@86: ; cannam@86: return 0; cannam@86: } cannam@86: _ACEOF cannam@86: rm -f conftest.$ac_objext conftest$ac_exeext cannam@86: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 cannam@86: (eval $ac_link) 2>conftest.er1 cannam@86: ac_status=$? cannam@86: grep -v '^ *+' conftest.er1 >conftest.err cannam@86: rm -f conftest.er1 cannam@86: cat conftest.err >&5 cannam@86: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@86: (exit $ac_status); } && cannam@86: { ac_try='test -z "$ac_c_werror_flag" cannam@86: || test ! -s conftest.err' cannam@86: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 cannam@86: (eval $ac_try) 2>&5 cannam@86: ac_status=$? cannam@86: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@86: (exit $ac_status); }; } && cannam@86: { ac_try='test -s conftest$ac_exeext' cannam@86: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 cannam@86: (eval $ac_try) 2>&5 cannam@86: ac_status=$? cannam@86: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@86: (exit $ac_status); }; }; then cannam@86: ac_cv_lib_svld_dlopen=yes cannam@86: else cannam@86: echo "$as_me: failed program was:" >&5 cannam@86: sed 's/^/| /' conftest.$ac_ext >&5 cannam@86: cannam@86: ac_cv_lib_svld_dlopen=no cannam@86: fi cannam@86: rm -f conftest.err conftest.$ac_objext \ cannam@86: conftest$ac_exeext conftest.$ac_ext cannam@86: LIBS=$ac_check_lib_save_LIBS cannam@86: fi cannam@86: echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 cannam@86: echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 cannam@86: if test $ac_cv_lib_svld_dlopen = yes; then cannam@86: lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" cannam@86: else cannam@86: echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 cannam@86: echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 cannam@86: if test "${ac_cv_lib_dld_dld_link+set}" = set; then cannam@86: echo $ECHO_N "(cached) $ECHO_C" >&6 cannam@86: else cannam@86: ac_check_lib_save_LIBS=$LIBS cannam@86: LIBS="-ldld $LIBS" cannam@86: cat >conftest.$ac_ext <<_ACEOF cannam@86: /* confdefs.h. */ cannam@86: _ACEOF cannam@86: cat confdefs.h >>conftest.$ac_ext cannam@86: cat >>conftest.$ac_ext <<_ACEOF cannam@86: /* end confdefs.h. */ cannam@86: cannam@86: /* Override any gcc2 internal prototype to avoid an error. */ cannam@86: #ifdef __cplusplus cannam@86: extern "C" cannam@86: #endif cannam@86: /* We use char because int might match the return type of a gcc2 cannam@86: builtin and then its argument prototype would still apply. */ cannam@86: char dld_link (); cannam@86: int cannam@86: main () cannam@86: { cannam@86: dld_link (); cannam@86: ; cannam@86: return 0; cannam@86: } cannam@86: _ACEOF cannam@86: rm -f conftest.$ac_objext conftest$ac_exeext cannam@86: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 cannam@86: (eval $ac_link) 2>conftest.er1 cannam@86: ac_status=$? cannam@86: grep -v '^ *+' conftest.er1 >conftest.err cannam@86: rm -f conftest.er1 cannam@86: cat conftest.err >&5 cannam@86: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@86: (exit $ac_status); } && cannam@86: { ac_try='test -z "$ac_c_werror_flag" cannam@86: || test ! -s conftest.err' cannam@86: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 cannam@86: (eval $ac_try) 2>&5 cannam@86: ac_status=$? cannam@86: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@86: (exit $ac_status); }; } && cannam@86: { ac_try='test -s conftest$ac_exeext' cannam@86: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 cannam@86: (eval $ac_try) 2>&5 cannam@86: ac_status=$? cannam@86: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@86: (exit $ac_status); }; }; then cannam@86: ac_cv_lib_dld_dld_link=yes cannam@86: else cannam@86: echo "$as_me: failed program was:" >&5 cannam@86: sed 's/^/| /' conftest.$ac_ext >&5 cannam@86: cannam@86: ac_cv_lib_dld_dld_link=no cannam@86: fi cannam@86: rm -f conftest.err conftest.$ac_objext \ cannam@86: conftest$ac_exeext conftest.$ac_ext cannam@86: LIBS=$ac_check_lib_save_LIBS cannam@86: fi cannam@86: echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 cannam@86: echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 cannam@86: if test $ac_cv_lib_dld_dld_link = yes; then cannam@86: lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" cannam@86: fi cannam@86: cannam@86: cannam@86: fi cannam@86: cannam@86: cannam@86: fi cannam@86: cannam@86: cannam@86: fi cannam@86: cannam@86: cannam@86: fi cannam@86: cannam@86: cannam@86: fi cannam@86: cannam@86: ;; cannam@86: esac cannam@86: cannam@86: if test "x$lt_cv_dlopen" != xno; then cannam@86: enable_dlopen=yes cannam@86: else cannam@86: enable_dlopen=no cannam@86: fi cannam@86: cannam@86: case $lt_cv_dlopen in cannam@86: dlopen) cannam@86: save_CPPFLAGS="$CPPFLAGS" cannam@86: test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" cannam@86: cannam@86: save_LDFLAGS="$LDFLAGS" cannam@86: eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" cannam@86: cannam@86: save_LIBS="$LIBS" cannam@86: LIBS="$lt_cv_dlopen_libs $LIBS" cannam@86: cannam@86: echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 cannam@86: echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 cannam@86: if test "${lt_cv_dlopen_self+set}" = set; then cannam@86: echo $ECHO_N "(cached) $ECHO_C" >&6 cannam@86: else cannam@86: if test "$cross_compiling" = yes; then : cannam@86: lt_cv_dlopen_self=cross cannam@86: else cannam@86: lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 cannam@86: lt_status=$lt_dlunknown cannam@86: cat > conftest.$ac_ext < cannam@86: #endif cannam@86: cannam@86: #include cannam@86: cannam@86: #ifdef RTLD_GLOBAL cannam@86: # define LT_DLGLOBAL RTLD_GLOBAL cannam@86: #else cannam@86: # ifdef DL_GLOBAL cannam@86: # define LT_DLGLOBAL DL_GLOBAL cannam@86: # else cannam@86: # define LT_DLGLOBAL 0 cannam@86: # endif cannam@86: #endif cannam@86: cannam@86: /* We may have to define LT_DLLAZY_OR_NOW in the command line if we cannam@86: find out it does not work in some platform. */ cannam@86: #ifndef LT_DLLAZY_OR_NOW cannam@86: # ifdef RTLD_LAZY cannam@86: # define LT_DLLAZY_OR_NOW RTLD_LAZY cannam@86: # else cannam@86: # ifdef DL_LAZY cannam@86: # define LT_DLLAZY_OR_NOW DL_LAZY cannam@86: # else cannam@86: # ifdef RTLD_NOW cannam@86: # define LT_DLLAZY_OR_NOW RTLD_NOW cannam@86: # else cannam@86: # ifdef DL_NOW cannam@86: # define LT_DLLAZY_OR_NOW DL_NOW cannam@86: # else cannam@86: # define LT_DLLAZY_OR_NOW 0 cannam@86: # endif cannam@86: # endif cannam@86: # endif cannam@86: # endif cannam@86: #endif cannam@86: cannam@86: #ifdef __cplusplus cannam@86: extern "C" void exit (int); cannam@86: #endif cannam@86: cannam@86: void fnord() { int i=42;} cannam@86: int main () cannam@86: { cannam@86: void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); cannam@86: int status = $lt_dlunknown; cannam@86: cannam@86: if (self) cannam@86: { cannam@86: if (dlsym (self,"fnord")) status = $lt_dlno_uscore; cannam@86: else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; cannam@86: /* dlclose (self); */ cannam@86: } cannam@86: cannam@86: exit (status); cannam@86: } cannam@86: EOF cannam@86: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 cannam@86: (eval $ac_link) 2>&5 cannam@86: ac_status=$? cannam@86: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@86: (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then cannam@86: (./conftest; exit; ) 2>/dev/null cannam@86: lt_status=$? cannam@86: case x$lt_status in cannam@86: x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; cannam@86: x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; cannam@86: x$lt_unknown|x*) lt_cv_dlopen_self=no ;; cannam@86: esac cannam@86: else : cannam@86: # compilation failed cannam@86: lt_cv_dlopen_self=no cannam@86: fi cannam@86: fi cannam@86: rm -fr conftest* cannam@86: cannam@86: cannam@86: fi cannam@86: echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 cannam@86: echo "${ECHO_T}$lt_cv_dlopen_self" >&6 cannam@86: cannam@86: if test "x$lt_cv_dlopen_self" = xyes; then cannam@86: LDFLAGS="$LDFLAGS $link_static_flag" cannam@86: echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 cannam@86: echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 cannam@86: if test "${lt_cv_dlopen_self_static+set}" = set; then cannam@86: echo $ECHO_N "(cached) $ECHO_C" >&6 cannam@86: else cannam@86: if test "$cross_compiling" = yes; then : cannam@86: lt_cv_dlopen_self_static=cross cannam@86: else cannam@86: lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 cannam@86: lt_status=$lt_dlunknown cannam@86: cat > conftest.$ac_ext < cannam@86: #endif cannam@86: cannam@86: #include cannam@86: cannam@86: #ifdef RTLD_GLOBAL cannam@86: # define LT_DLGLOBAL RTLD_GLOBAL cannam@86: #else cannam@86: # ifdef DL_GLOBAL cannam@86: # define LT_DLGLOBAL DL_GLOBAL cannam@86: # else cannam@86: # define LT_DLGLOBAL 0 cannam@86: # endif cannam@86: #endif cannam@86: cannam@86: /* We may have to define LT_DLLAZY_OR_NOW in the command line if we cannam@86: find out it does not work in some platform. */ cannam@86: #ifndef LT_DLLAZY_OR_NOW cannam@86: # ifdef RTLD_LAZY cannam@86: # define LT_DLLAZY_OR_NOW RTLD_LAZY cannam@86: # else cannam@86: # ifdef DL_LAZY cannam@86: # define LT_DLLAZY_OR_NOW DL_LAZY cannam@86: # else cannam@86: # ifdef RTLD_NOW cannam@86: # define LT_DLLAZY_OR_NOW RTLD_NOW cannam@86: # else cannam@86: # ifdef DL_NOW cannam@86: # define LT_DLLAZY_OR_NOW DL_NOW cannam@86: # else cannam@86: # define LT_DLLAZY_OR_NOW 0 cannam@86: # endif cannam@86: # endif cannam@86: # endif cannam@86: # endif cannam@86: #endif cannam@86: cannam@86: #ifdef __cplusplus cannam@86: extern "C" void exit (int); cannam@86: #endif cannam@86: cannam@86: void fnord() { int i=42;} cannam@86: int main () cannam@86: { cannam@86: void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); cannam@86: int status = $lt_dlunknown; cannam@86: cannam@86: if (self) cannam@86: { cannam@86: if (dlsym (self,"fnord")) status = $lt_dlno_uscore; cannam@86: else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; cannam@86: /* dlclose (self); */ cannam@86: } cannam@86: cannam@86: exit (status); cannam@86: } cannam@86: EOF cannam@86: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 cannam@86: (eval $ac_link) 2>&5 cannam@86: ac_status=$? cannam@86: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@86: (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then cannam@86: (./conftest; exit; ) 2>/dev/null cannam@86: lt_status=$? cannam@86: case x$lt_status in cannam@86: x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; cannam@86: x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; cannam@86: x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;; cannam@86: esac cannam@86: else : cannam@86: # compilation failed cannam@86: lt_cv_dlopen_self_static=no cannam@86: fi cannam@86: fi cannam@86: rm -fr conftest* cannam@86: cannam@86: cannam@86: fi cannam@86: echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 cannam@86: echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 cannam@86: fi cannam@86: cannam@86: CPPFLAGS="$save_CPPFLAGS" cannam@86: LDFLAGS="$save_LDFLAGS" cannam@86: LIBS="$save_LIBS" cannam@86: ;; cannam@86: esac cannam@86: cannam@86: case $lt_cv_dlopen_self in cannam@86: yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; cannam@86: *) enable_dlopen_self=unknown ;; cannam@86: esac cannam@86: cannam@86: case $lt_cv_dlopen_self_static in cannam@86: yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; cannam@86: *) enable_dlopen_self_static=unknown ;; cannam@86: esac cannam@86: fi cannam@86: cannam@86: cannam@86: # The else clause should only fire when bootstrapping the cannam@86: # libtool distribution, otherwise you forgot to ship ltmain.sh cannam@86: # with your package, and you will get complaints that there are cannam@86: # no rules to generate ltmain.sh. cannam@86: if test -f "$ltmain"; then cannam@86: # See if we are running on zsh, and set the options which allow our commands through cannam@86: # without removal of \ escapes. cannam@86: if test -n "${ZSH_VERSION+set}" ; then cannam@86: setopt NO_GLOB_SUBST cannam@86: fi cannam@86: # Now quote all the things that may contain metacharacters while being cannam@86: # careful not to overquote the AC_SUBSTed values. We take copies of the cannam@86: # variables and quote the copies for generation of the libtool script. cannam@86: for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ cannam@86: SED SHELL STRIP \ cannam@86: libname_spec library_names_spec soname_spec extract_expsyms_cmds \ cannam@86: old_striplib striplib file_magic_cmd finish_cmds finish_eval \ cannam@86: deplibs_check_method reload_flag reload_cmds need_locks \ cannam@86: lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ cannam@86: lt_cv_sys_global_symbol_to_c_name_address \ cannam@86: sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ cannam@86: old_postinstall_cmds old_postuninstall_cmds \ cannam@86: compiler_GCJ \ cannam@86: CC_GCJ \ cannam@86: LD_GCJ \ cannam@86: lt_prog_compiler_wl_GCJ \ cannam@86: lt_prog_compiler_pic_GCJ \ cannam@86: lt_prog_compiler_static_GCJ \ cannam@86: lt_prog_compiler_no_builtin_flag_GCJ \ cannam@86: export_dynamic_flag_spec_GCJ \ cannam@86: thread_safe_flag_spec_GCJ \ cannam@86: whole_archive_flag_spec_GCJ \ cannam@86: enable_shared_with_static_runtimes_GCJ \ cannam@86: old_archive_cmds_GCJ \ cannam@86: old_archive_from_new_cmds_GCJ \ cannam@86: predep_objects_GCJ \ cannam@86: postdep_objects_GCJ \ cannam@86: predeps_GCJ \ cannam@86: postdeps_GCJ \ cannam@86: compiler_lib_search_path_GCJ \ cannam@86: archive_cmds_GCJ \ cannam@86: archive_expsym_cmds_GCJ \ cannam@86: postinstall_cmds_GCJ \ cannam@86: postuninstall_cmds_GCJ \ cannam@86: old_archive_from_expsyms_cmds_GCJ \ cannam@86: allow_undefined_flag_GCJ \ cannam@86: no_undefined_flag_GCJ \ cannam@86: export_symbols_cmds_GCJ \ cannam@86: hardcode_libdir_flag_spec_GCJ \ cannam@86: hardcode_libdir_flag_spec_ld_GCJ \ cannam@86: hardcode_libdir_separator_GCJ \ cannam@86: hardcode_automatic_GCJ \ cannam@86: module_cmds_GCJ \ cannam@86: module_expsym_cmds_GCJ \ cannam@86: lt_cv_prog_compiler_c_o_GCJ \ cannam@86: exclude_expsyms_GCJ \ cannam@86: include_expsyms_GCJ; do cannam@86: cannam@86: case $var in cannam@86: old_archive_cmds_GCJ | \ cannam@86: old_archive_from_new_cmds_GCJ | \ cannam@86: archive_cmds_GCJ | \ cannam@86: archive_expsym_cmds_GCJ | \ cannam@86: module_cmds_GCJ | \ cannam@86: module_expsym_cmds_GCJ | \ cannam@86: old_archive_from_expsyms_cmds_GCJ | \ cannam@86: export_symbols_cmds_GCJ | \ cannam@86: extract_expsyms_cmds | reload_cmds | finish_cmds | \ cannam@86: postinstall_cmds | postuninstall_cmds | \ cannam@86: old_postinstall_cmds | old_postuninstall_cmds | \ cannam@86: sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) cannam@86: # Double-quote double-evaled strings. cannam@86: eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" cannam@86: ;; cannam@86: *) cannam@86: eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" cannam@86: ;; cannam@86: esac cannam@86: done cannam@86: cannam@86: case $lt_echo in cannam@86: *'\$0 --fallback-echo"') cannam@86: lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` cannam@86: ;; cannam@86: esac cannam@86: cannam@86: cfgfile="$ofile" cannam@86: cannam@86: cat <<__EOF__ >> "$cfgfile" cannam@86: # ### BEGIN LIBTOOL TAG CONFIG: $tagname cannam@86: cannam@86: # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: cannam@86: cannam@86: # Shell to use when invoking shell scripts. cannam@86: SHELL=$lt_SHELL cannam@86: cannam@86: # Whether or not to build shared libraries. cannam@86: build_libtool_libs=$enable_shared cannam@86: cannam@86: # Whether or not to build static libraries. cannam@86: build_old_libs=$enable_static cannam@86: cannam@86: # Whether or not to add -lc for building shared libraries. cannam@86: build_libtool_need_lc=$archive_cmds_need_lc_GCJ cannam@86: cannam@86: # Whether or not to disallow shared libs when runtime libs are static cannam@86: allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ cannam@86: cannam@86: # Whether or not to optimize for fast installation. cannam@86: fast_install=$enable_fast_install cannam@86: cannam@86: # The host system. cannam@86: host_alias=$host_alias cannam@86: host=$host cannam@86: host_os=$host_os cannam@86: cannam@86: # The build system. cannam@86: build_alias=$build_alias cannam@86: build=$build cannam@86: build_os=$build_os cannam@86: cannam@86: # An echo program that does not interpret backslashes. cannam@86: echo=$lt_echo cannam@86: cannam@86: # The archiver. cannam@86: AR=$lt_AR cannam@86: AR_FLAGS=$lt_AR_FLAGS cannam@86: cannam@86: # A C compiler. cannam@86: LTCC=$lt_LTCC cannam@86: cannam@86: # A language-specific compiler. cannam@86: CC=$lt_compiler_GCJ cannam@86: cannam@86: # Is the compiler the GNU C compiler? cannam@86: with_gcc=$GCC_GCJ cannam@86: cannam@86: # An ERE matcher. cannam@86: EGREP=$lt_EGREP cannam@86: cannam@86: # The linker used to build libraries. cannam@86: LD=$lt_LD_GCJ cannam@86: cannam@86: # Whether we need hard or soft links. cannam@86: LN_S=$lt_LN_S cannam@86: cannam@86: # A BSD-compatible nm program. cannam@86: NM=$lt_NM cannam@86: cannam@86: # A symbol stripping program cannam@86: STRIP=$lt_STRIP cannam@86: cannam@86: # Used to examine libraries when file_magic_cmd begins "file" cannam@86: MAGIC_CMD=$MAGIC_CMD cannam@86: cannam@86: # Used on cygwin: DLL creation program. cannam@86: DLLTOOL="$DLLTOOL" cannam@86: cannam@86: # Used on cygwin: object dumper. cannam@86: OBJDUMP="$OBJDUMP" cannam@86: cannam@86: # Used on cygwin: assembler. cannam@86: AS="$AS" cannam@86: cannam@86: # The name of the directory that contains temporary libtool files. cannam@86: objdir=$objdir cannam@86: cannam@86: # How to create reloadable object files. cannam@86: reload_flag=$lt_reload_flag cannam@86: reload_cmds=$lt_reload_cmds cannam@86: cannam@86: # How to pass a linker flag through the compiler. cannam@86: wl=$lt_lt_prog_compiler_wl_GCJ cannam@86: cannam@86: # Object file suffix (normally "o"). cannam@86: objext="$ac_objext" cannam@86: cannam@86: # Old archive suffix (normally "a"). cannam@86: libext="$libext" cannam@86: cannam@86: # Shared library suffix (normally ".so"). cannam@86: shrext_cmds='$shrext_cmds' cannam@86: cannam@86: # Executable file suffix (normally ""). cannam@86: exeext="$exeext" cannam@86: cannam@86: # Additional compiler flags for building library objects. cannam@86: pic_flag=$lt_lt_prog_compiler_pic_GCJ cannam@86: pic_mode=$pic_mode cannam@86: cannam@86: # What is the maximum length of a command? cannam@86: max_cmd_len=$lt_cv_sys_max_cmd_len cannam@86: cannam@86: # Does compiler simultaneously support -c and -o options? cannam@86: compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ cannam@86: cannam@86: # Must we lock files when doing compilation? cannam@86: need_locks=$lt_need_locks cannam@86: cannam@86: # Do we need the lib prefix for modules? cannam@86: need_lib_prefix=$need_lib_prefix cannam@86: cannam@86: # Do we need a version for libraries? cannam@86: need_version=$need_version cannam@86: cannam@86: # Whether dlopen is supported. cannam@86: dlopen_support=$enable_dlopen cannam@86: cannam@86: # Whether dlopen of programs is supported. cannam@86: dlopen_self=$enable_dlopen_self cannam@86: cannam@86: # Whether dlopen of statically linked programs is supported. cannam@86: dlopen_self_static=$enable_dlopen_self_static cannam@86: cannam@86: # Compiler flag to prevent dynamic linking. cannam@86: link_static_flag=$lt_lt_prog_compiler_static_GCJ cannam@86: cannam@86: # Compiler flag to turn off builtin functions. cannam@86: no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ cannam@86: cannam@86: # Compiler flag to allow reflexive dlopens. cannam@86: export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ cannam@86: cannam@86: # Compiler flag to generate shared objects directly from archives. cannam@86: whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ cannam@86: cannam@86: # Compiler flag to generate thread-safe objects. cannam@86: thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ cannam@86: cannam@86: # Library versioning type. cannam@86: version_type=$version_type cannam@86: cannam@86: # Format of library name prefix. cannam@86: libname_spec=$lt_libname_spec cannam@86: cannam@86: # List of archive names. First name is the real one, the rest are links. cannam@86: # The last name is the one that the linker finds with -lNAME. cannam@86: library_names_spec=$lt_library_names_spec cannam@86: cannam@86: # The coded name of the library, if different from the real name. cannam@86: soname_spec=$lt_soname_spec cannam@86: cannam@86: # Commands used to build and install an old-style archive. cannam@86: RANLIB=$lt_RANLIB cannam@86: old_archive_cmds=$lt_old_archive_cmds_GCJ cannam@86: old_postinstall_cmds=$lt_old_postinstall_cmds cannam@86: old_postuninstall_cmds=$lt_old_postuninstall_cmds cannam@86: cannam@86: # Create an old-style archive from a shared archive. cannam@86: old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ cannam@86: cannam@86: # Create a temporary old-style archive to link instead of a shared archive. cannam@86: old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ cannam@86: cannam@86: # Commands used to build and install a shared archive. cannam@86: archive_cmds=$lt_archive_cmds_GCJ cannam@86: archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ cannam@86: postinstall_cmds=$lt_postinstall_cmds cannam@86: postuninstall_cmds=$lt_postuninstall_cmds cannam@86: cannam@86: # Commands used to build a loadable module (assumed same as above if empty) cannam@86: module_cmds=$lt_module_cmds_GCJ cannam@86: module_expsym_cmds=$lt_module_expsym_cmds_GCJ cannam@86: cannam@86: # Commands to strip libraries. cannam@86: old_striplib=$lt_old_striplib cannam@86: striplib=$lt_striplib cannam@86: cannam@86: # Dependencies to place before the objects being linked to create a cannam@86: # shared library. cannam@86: predep_objects=$lt_predep_objects_GCJ cannam@86: cannam@86: # Dependencies to place after the objects being linked to create a cannam@86: # shared library. cannam@86: postdep_objects=$lt_postdep_objects_GCJ cannam@86: cannam@86: # Dependencies to place before the objects being linked to create a cannam@86: # shared library. cannam@86: predeps=$lt_predeps_GCJ cannam@86: cannam@86: # Dependencies to place after the objects being linked to create a cannam@86: # shared library. cannam@86: postdeps=$lt_postdeps_GCJ cannam@86: cannam@86: # The library search path used internally by the compiler when linking cannam@86: # a shared library. cannam@86: compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ cannam@86: cannam@86: # Method to check whether dependent libraries are shared objects. cannam@86: deplibs_check_method=$lt_deplibs_check_method cannam@86: cannam@86: # Command to use when deplibs_check_method == file_magic. cannam@86: file_magic_cmd=$lt_file_magic_cmd cannam@86: cannam@86: # Flag that allows shared libraries with undefined symbols to be built. cannam@86: allow_undefined_flag=$lt_allow_undefined_flag_GCJ cannam@86: cannam@86: # Flag that forces no undefined symbols. cannam@86: no_undefined_flag=$lt_no_undefined_flag_GCJ cannam@86: cannam@86: # Commands used to finish a libtool library installation in a directory. cannam@86: finish_cmds=$lt_finish_cmds cannam@86: cannam@86: # Same as above, but a single script fragment to be evaled but not shown. cannam@86: finish_eval=$lt_finish_eval cannam@86: cannam@86: # Take the output of nm and produce a listing of raw symbols and C names. cannam@86: global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe cannam@86: cannam@86: # Transform the output of nm in a proper C declaration cannam@86: global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl cannam@86: cannam@86: # Transform the output of nm in a C name address pair cannam@86: global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address cannam@86: cannam@86: # This is the shared library runtime path variable. cannam@86: runpath_var=$runpath_var cannam@86: cannam@86: # This is the shared library path variable. cannam@86: shlibpath_var=$shlibpath_var cannam@86: cannam@86: # Is shlibpath searched before the hard-coded library search path? cannam@86: shlibpath_overrides_runpath=$shlibpath_overrides_runpath cannam@86: cannam@86: # How to hardcode a shared library path into an executable. cannam@86: hardcode_action=$hardcode_action_GCJ cannam@86: cannam@86: # Whether we should hardcode library paths into libraries. cannam@86: hardcode_into_libs=$hardcode_into_libs cannam@86: cannam@86: # Flag to hardcode \$libdir into a binary during linking. cannam@86: # This must work even if \$libdir does not exist. cannam@86: hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ cannam@86: cannam@86: # If ld is used when linking, flag to hardcode \$libdir into cannam@86: # a binary during linking. This must work even if \$libdir does cannam@86: # not exist. cannam@86: hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ cannam@86: cannam@86: # Whether we need a single -rpath flag with a separated argument. cannam@86: hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ cannam@86: cannam@86: # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the cannam@86: # resulting binary. cannam@86: hardcode_direct=$hardcode_direct_GCJ cannam@86: cannam@86: # Set to yes if using the -LDIR flag during linking hardcodes DIR into the cannam@86: # resulting binary. cannam@86: hardcode_minus_L=$hardcode_minus_L_GCJ cannam@86: cannam@86: # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into cannam@86: # the resulting binary. cannam@86: hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ cannam@86: cannam@86: # Set to yes if building a shared library automatically hardcodes DIR into the library cannam@86: # and all subsequent libraries and executables linked against it. cannam@86: hardcode_automatic=$hardcode_automatic_GCJ cannam@86: cannam@86: # Variables whose values should be saved in libtool wrapper scripts and cannam@86: # restored at relink time. cannam@86: variables_saved_for_relink="$variables_saved_for_relink" cannam@86: cannam@86: # Whether libtool must link a program against all its dependency libraries. cannam@86: link_all_deplibs=$link_all_deplibs_GCJ cannam@86: cannam@86: # Compile-time system search path for libraries cannam@86: sys_lib_search_path_spec=$lt_sys_lib_search_path_spec cannam@86: cannam@86: # Run-time system search path for libraries cannam@86: sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec cannam@86: cannam@86: # Fix the shell variable \$srcfile for the compiler. cannam@86: fix_srcfile_path="$fix_srcfile_path_GCJ" cannam@86: cannam@86: # Set to yes if exported symbols are required. cannam@86: always_export_symbols=$always_export_symbols_GCJ cannam@86: cannam@86: # The commands to list exported symbols. cannam@86: export_symbols_cmds=$lt_export_symbols_cmds_GCJ cannam@86: cannam@86: # The commands to extract the exported symbol list from a shared archive. cannam@86: extract_expsyms_cmds=$lt_extract_expsyms_cmds cannam@86: cannam@86: # Symbols that should not be listed in the preloaded symbols. cannam@86: exclude_expsyms=$lt_exclude_expsyms_GCJ cannam@86: cannam@86: # Symbols that must always be exported. cannam@86: include_expsyms=$lt_include_expsyms_GCJ cannam@86: cannam@86: # ### END LIBTOOL TAG CONFIG: $tagname cannam@86: cannam@86: __EOF__ cannam@86: cannam@86: cannam@86: else cannam@86: # If there is no Makefile yet, we rely on a make rule to execute cannam@86: # `config.status --recheck' to rerun these tests and create the cannam@86: # libtool script then. cannam@86: ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` cannam@86: if test -f "$ltmain_in"; then cannam@86: test -f Makefile && make "$ltmain" cannam@86: fi cannam@86: fi cannam@86: cannam@86: cannam@86: ac_ext=c cannam@86: ac_cpp='$CPP $CPPFLAGS' cannam@86: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' cannam@86: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' cannam@86: ac_compiler_gnu=$ac_cv_c_compiler_gnu cannam@86: cannam@86: CC="$lt_save_CC" cannam@86: cannam@86: else cannam@86: tagname="" cannam@86: fi cannam@86: ;; cannam@86: cannam@86: RC) cannam@86: cannam@86: cannam@86: cannam@86: # Source file extension for RC test sources. cannam@86: ac_ext=rc cannam@86: cannam@86: # Object file extension for compiled RC test sources. cannam@86: objext=o cannam@86: objext_RC=$objext cannam@86: cannam@86: # Code to be used in simple compile tests cannam@86: lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n' cannam@86: cannam@86: # Code to be used in simple link tests cannam@86: lt_simple_link_test_code="$lt_simple_compile_test_code" cannam@86: cannam@86: # ltmain only uses $CC for tagged configurations so make sure $CC is set. cannam@86: cannam@86: # If no C compiler was specified, use CC. cannam@86: LTCC=${LTCC-"$CC"} cannam@86: cannam@86: # Allow CC to be a program name with arguments. cannam@86: compiler=$CC cannam@86: cannam@86: cannam@86: # save warnings/boilerplate of simple test code cannam@86: ac_outfile=conftest.$ac_objext cannam@86: printf "$lt_simple_compile_test_code" >conftest.$ac_ext cannam@86: eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err cannam@86: _lt_compiler_boilerplate=`cat conftest.err` cannam@86: $rm conftest* cannam@86: cannam@86: ac_outfile=conftest.$ac_objext cannam@86: printf "$lt_simple_link_test_code" >conftest.$ac_ext cannam@86: eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err cannam@86: _lt_linker_boilerplate=`cat conftest.err` cannam@86: $rm conftest* cannam@86: cannam@86: cannam@86: # Allow CC to be a program name with arguments. cannam@86: lt_save_CC="$CC" cannam@86: CC=${RC-"windres"} cannam@86: compiler=$CC cannam@86: compiler_RC=$CC cannam@86: for cc_temp in $compiler""; do cannam@86: case $cc_temp in cannam@86: compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; cannam@86: distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; cannam@86: \-*) ;; cannam@86: *) break;; cannam@86: esac cannam@86: done cannam@86: cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` cannam@86: cannam@86: lt_cv_prog_compiler_c_o_RC=yes cannam@86: cannam@86: # The else clause should only fire when bootstrapping the cannam@86: # libtool distribution, otherwise you forgot to ship ltmain.sh cannam@86: # with your package, and you will get complaints that there are cannam@86: # no rules to generate ltmain.sh. cannam@86: if test -f "$ltmain"; then cannam@86: # See if we are running on zsh, and set the options which allow our commands through cannam@86: # without removal of \ escapes. cannam@86: if test -n "${ZSH_VERSION+set}" ; then cannam@86: setopt NO_GLOB_SUBST cannam@86: fi cannam@86: # Now quote all the things that may contain metacharacters while being cannam@86: # careful not to overquote the AC_SUBSTed values. We take copies of the cannam@86: # variables and quote the copies for generation of the libtool script. cannam@86: for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ cannam@86: SED SHELL STRIP \ cannam@86: libname_spec library_names_spec soname_spec extract_expsyms_cmds \ cannam@86: old_striplib striplib file_magic_cmd finish_cmds finish_eval \ cannam@86: deplibs_check_method reload_flag reload_cmds need_locks \ cannam@86: lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ cannam@86: lt_cv_sys_global_symbol_to_c_name_address \ cannam@86: sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ cannam@86: old_postinstall_cmds old_postuninstall_cmds \ cannam@86: compiler_RC \ cannam@86: CC_RC \ cannam@86: LD_RC \ cannam@86: lt_prog_compiler_wl_RC \ cannam@86: lt_prog_compiler_pic_RC \ cannam@86: lt_prog_compiler_static_RC \ cannam@86: lt_prog_compiler_no_builtin_flag_RC \ cannam@86: export_dynamic_flag_spec_RC \ cannam@86: thread_safe_flag_spec_RC \ cannam@86: whole_archive_flag_spec_RC \ cannam@86: enable_shared_with_static_runtimes_RC \ cannam@86: old_archive_cmds_RC \ cannam@86: old_archive_from_new_cmds_RC \ cannam@86: predep_objects_RC \ cannam@86: postdep_objects_RC \ cannam@86: predeps_RC \ cannam@86: postdeps_RC \ cannam@86: compiler_lib_search_path_RC \ cannam@86: archive_cmds_RC \ cannam@86: archive_expsym_cmds_RC \ cannam@86: postinstall_cmds_RC \ cannam@86: postuninstall_cmds_RC \ cannam@86: old_archive_from_expsyms_cmds_RC \ cannam@86: allow_undefined_flag_RC \ cannam@86: no_undefined_flag_RC \ cannam@86: export_symbols_cmds_RC \ cannam@86: hardcode_libdir_flag_spec_RC \ cannam@86: hardcode_libdir_flag_spec_ld_RC \ cannam@86: hardcode_libdir_separator_RC \ cannam@86: hardcode_automatic_RC \ cannam@86: module_cmds_RC \ cannam@86: module_expsym_cmds_RC \ cannam@86: lt_cv_prog_compiler_c_o_RC \ cannam@86: exclude_expsyms_RC \ cannam@86: include_expsyms_RC; do cannam@86: cannam@86: case $var in cannam@86: old_archive_cmds_RC | \ cannam@86: old_archive_from_new_cmds_RC | \ cannam@86: archive_cmds_RC | \ cannam@86: archive_expsym_cmds_RC | \ cannam@86: module_cmds_RC | \ cannam@86: module_expsym_cmds_RC | \ cannam@86: old_archive_from_expsyms_cmds_RC | \ cannam@86: export_symbols_cmds_RC | \ cannam@86: extract_expsyms_cmds | reload_cmds | finish_cmds | \ cannam@86: postinstall_cmds | postuninstall_cmds | \ cannam@86: old_postinstall_cmds | old_postuninstall_cmds | \ cannam@86: sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) cannam@86: # Double-quote double-evaled strings. cannam@86: eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" cannam@86: ;; cannam@86: *) cannam@86: eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" cannam@86: ;; cannam@86: esac cannam@86: done cannam@86: cannam@86: case $lt_echo in cannam@86: *'\$0 --fallback-echo"') cannam@86: lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` cannam@86: ;; cannam@86: esac cannam@86: cannam@86: cfgfile="$ofile" cannam@86: cannam@86: cat <<__EOF__ >> "$cfgfile" cannam@86: # ### BEGIN LIBTOOL TAG CONFIG: $tagname cannam@86: cannam@86: # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: cannam@86: cannam@86: # Shell to use when invoking shell scripts. cannam@86: SHELL=$lt_SHELL cannam@86: cannam@86: # Whether or not to build shared libraries. cannam@86: build_libtool_libs=$enable_shared cannam@86: cannam@86: # Whether or not to build static libraries. cannam@86: build_old_libs=$enable_static cannam@86: cannam@86: # Whether or not to add -lc for building shared libraries. cannam@86: build_libtool_need_lc=$archive_cmds_need_lc_RC cannam@86: cannam@86: # Whether or not to disallow shared libs when runtime libs are static cannam@86: allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC cannam@86: cannam@86: # Whether or not to optimize for fast installation. cannam@86: fast_install=$enable_fast_install cannam@86: cannam@86: # The host system. cannam@86: host_alias=$host_alias cannam@86: host=$host cannam@86: host_os=$host_os cannam@86: cannam@86: # The build system. cannam@86: build_alias=$build_alias cannam@86: build=$build cannam@86: build_os=$build_os cannam@86: cannam@86: # An echo program that does not interpret backslashes. cannam@86: echo=$lt_echo cannam@86: cannam@86: # The archiver. cannam@86: AR=$lt_AR cannam@86: AR_FLAGS=$lt_AR_FLAGS cannam@86: cannam@86: # A C compiler. cannam@86: LTCC=$lt_LTCC cannam@86: cannam@86: # A language-specific compiler. cannam@86: CC=$lt_compiler_RC cannam@86: cannam@86: # Is the compiler the GNU C compiler? cannam@86: with_gcc=$GCC_RC cannam@86: cannam@86: # An ERE matcher. cannam@86: EGREP=$lt_EGREP cannam@86: cannam@86: # The linker used to build libraries. cannam@86: LD=$lt_LD_RC cannam@86: cannam@86: # Whether we need hard or soft links. cannam@86: LN_S=$lt_LN_S cannam@86: cannam@86: # A BSD-compatible nm program. cannam@86: NM=$lt_NM cannam@86: cannam@86: # A symbol stripping program cannam@86: STRIP=$lt_STRIP cannam@86: cannam@86: # Used to examine libraries when file_magic_cmd begins "file" cannam@86: MAGIC_CMD=$MAGIC_CMD cannam@86: cannam@86: # Used on cygwin: DLL creation program. cannam@86: DLLTOOL="$DLLTOOL" cannam@86: cannam@86: # Used on cygwin: object dumper. cannam@86: OBJDUMP="$OBJDUMP" cannam@86: cannam@86: # Used on cygwin: assembler. cannam@86: AS="$AS" cannam@86: cannam@86: # The name of the directory that contains temporary libtool files. cannam@86: objdir=$objdir cannam@86: cannam@86: # How to create reloadable object files. cannam@86: reload_flag=$lt_reload_flag cannam@86: reload_cmds=$lt_reload_cmds cannam@86: cannam@86: # How to pass a linker flag through the compiler. cannam@86: wl=$lt_lt_prog_compiler_wl_RC cannam@86: cannam@86: # Object file suffix (normally "o"). cannam@86: objext="$ac_objext" cannam@86: cannam@86: # Old archive suffix (normally "a"). cannam@86: libext="$libext" cannam@86: cannam@86: # Shared library suffix (normally ".so"). cannam@86: shrext_cmds='$shrext_cmds' cannam@86: cannam@86: # Executable file suffix (normally ""). cannam@86: exeext="$exeext" cannam@86: cannam@86: # Additional compiler flags for building library objects. cannam@86: pic_flag=$lt_lt_prog_compiler_pic_RC cannam@86: pic_mode=$pic_mode cannam@86: cannam@86: # What is the maximum length of a command? cannam@86: max_cmd_len=$lt_cv_sys_max_cmd_len cannam@86: cannam@86: # Does compiler simultaneously support -c and -o options? cannam@86: compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC cannam@86: cannam@86: # Must we lock files when doing compilation? cannam@86: need_locks=$lt_need_locks cannam@86: cannam@86: # Do we need the lib prefix for modules? cannam@86: need_lib_prefix=$need_lib_prefix cannam@86: cannam@86: # Do we need a version for libraries? cannam@86: need_version=$need_version cannam@86: cannam@86: # Whether dlopen is supported. cannam@86: dlopen_support=$enable_dlopen cannam@86: cannam@86: # Whether dlopen of programs is supported. cannam@86: dlopen_self=$enable_dlopen_self cannam@86: cannam@86: # Whether dlopen of statically linked programs is supported. cannam@86: dlopen_self_static=$enable_dlopen_self_static cannam@86: cannam@86: # Compiler flag to prevent dynamic linking. cannam@86: link_static_flag=$lt_lt_prog_compiler_static_RC cannam@86: cannam@86: # Compiler flag to turn off builtin functions. cannam@86: no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC cannam@86: cannam@86: # Compiler flag to allow reflexive dlopens. cannam@86: export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC cannam@86: cannam@86: # Compiler flag to generate shared objects directly from archives. cannam@86: whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC cannam@86: cannam@86: # Compiler flag to generate thread-safe objects. cannam@86: thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC cannam@86: cannam@86: # Library versioning type. cannam@86: version_type=$version_type cannam@86: cannam@86: # Format of library name prefix. cannam@86: libname_spec=$lt_libname_spec cannam@86: cannam@86: # List of archive names. First name is the real one, the rest are links. cannam@86: # The last name is the one that the linker finds with -lNAME. cannam@86: library_names_spec=$lt_library_names_spec cannam@86: cannam@86: # The coded name of the library, if different from the real name. cannam@86: soname_spec=$lt_soname_spec cannam@86: cannam@86: # Commands used to build and install an old-style archive. cannam@86: RANLIB=$lt_RANLIB cannam@86: old_archive_cmds=$lt_old_archive_cmds_RC cannam@86: old_postinstall_cmds=$lt_old_postinstall_cmds cannam@86: old_postuninstall_cmds=$lt_old_postuninstall_cmds cannam@86: cannam@86: # Create an old-style archive from a shared archive. cannam@86: old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC cannam@86: cannam@86: # Create a temporary old-style archive to link instead of a shared archive. cannam@86: old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC cannam@86: cannam@86: # Commands used to build and install a shared archive. cannam@86: archive_cmds=$lt_archive_cmds_RC cannam@86: archive_expsym_cmds=$lt_archive_expsym_cmds_RC cannam@86: postinstall_cmds=$lt_postinstall_cmds cannam@86: postuninstall_cmds=$lt_postuninstall_cmds cannam@86: cannam@86: # Commands used to build a loadable module (assumed same as above if empty) cannam@86: module_cmds=$lt_module_cmds_RC cannam@86: module_expsym_cmds=$lt_module_expsym_cmds_RC cannam@86: cannam@86: # Commands to strip libraries. cannam@86: old_striplib=$lt_old_striplib cannam@86: striplib=$lt_striplib cannam@86: cannam@86: # Dependencies to place before the objects being linked to create a cannam@86: # shared library. cannam@86: predep_objects=$lt_predep_objects_RC cannam@86: cannam@86: # Dependencies to place after the objects being linked to create a cannam@86: # shared library. cannam@86: postdep_objects=$lt_postdep_objects_RC cannam@86: cannam@86: # Dependencies to place before the objects being linked to create a cannam@86: # shared library. cannam@86: predeps=$lt_predeps_RC cannam@86: cannam@86: # Dependencies to place after the objects being linked to create a cannam@86: # shared library. cannam@86: postdeps=$lt_postdeps_RC cannam@86: cannam@86: # The library search path used internally by the compiler when linking cannam@86: # a shared library. cannam@86: compiler_lib_search_path=$lt_compiler_lib_search_path_RC cannam@86: cannam@86: # Method to check whether dependent libraries are shared objects. cannam@86: deplibs_check_method=$lt_deplibs_check_method cannam@86: cannam@86: # Command to use when deplibs_check_method == file_magic. cannam@86: file_magic_cmd=$lt_file_magic_cmd cannam@86: cannam@86: # Flag that allows shared libraries with undefined symbols to be built. cannam@86: allow_undefined_flag=$lt_allow_undefined_flag_RC cannam@86: cannam@86: # Flag that forces no undefined symbols. cannam@86: no_undefined_flag=$lt_no_undefined_flag_RC cannam@86: cannam@86: # Commands used to finish a libtool library installation in a directory. cannam@86: finish_cmds=$lt_finish_cmds cannam@86: cannam@86: # Same as above, but a single script fragment to be evaled but not shown. cannam@86: finish_eval=$lt_finish_eval cannam@86: cannam@86: # Take the output of nm and produce a listing of raw symbols and C names. cannam@86: global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe cannam@86: cannam@86: # Transform the output of nm in a proper C declaration cannam@86: global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl cannam@86: cannam@86: # Transform the output of nm in a C name address pair cannam@86: global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address cannam@86: cannam@86: # This is the shared library runtime path variable. cannam@86: runpath_var=$runpath_var cannam@86: cannam@86: # This is the shared library path variable. cannam@86: shlibpath_var=$shlibpath_var cannam@86: cannam@86: # Is shlibpath searched before the hard-coded library search path? cannam@86: shlibpath_overrides_runpath=$shlibpath_overrides_runpath cannam@86: cannam@86: # How to hardcode a shared library path into an executable. cannam@86: hardcode_action=$hardcode_action_RC cannam@86: cannam@86: # Whether we should hardcode library paths into libraries. cannam@86: hardcode_into_libs=$hardcode_into_libs cannam@86: cannam@86: # Flag to hardcode \$libdir into a binary during linking. cannam@86: # This must work even if \$libdir does not exist. cannam@86: hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC cannam@86: cannam@86: # If ld is used when linking, flag to hardcode \$libdir into cannam@86: # a binary during linking. This must work even if \$libdir does cannam@86: # not exist. cannam@86: hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC cannam@86: cannam@86: # Whether we need a single -rpath flag with a separated argument. cannam@86: hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC cannam@86: cannam@86: # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the cannam@86: # resulting binary. cannam@86: hardcode_direct=$hardcode_direct_RC cannam@86: cannam@86: # Set to yes if using the -LDIR flag during linking hardcodes DIR into the cannam@86: # resulting binary. cannam@86: hardcode_minus_L=$hardcode_minus_L_RC cannam@86: cannam@86: # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into cannam@86: # the resulting binary. cannam@86: hardcode_shlibpath_var=$hardcode_shlibpath_var_RC cannam@86: cannam@86: # Set to yes if building a shared library automatically hardcodes DIR into the library cannam@86: # and all subsequent libraries and executables linked against it. cannam@86: hardcode_automatic=$hardcode_automatic_RC cannam@86: cannam@86: # Variables whose values should be saved in libtool wrapper scripts and cannam@86: # restored at relink time. cannam@86: variables_saved_for_relink="$variables_saved_for_relink" cannam@86: cannam@86: # Whether libtool must link a program against all its dependency libraries. cannam@86: link_all_deplibs=$link_all_deplibs_RC cannam@86: cannam@86: # Compile-time system search path for libraries cannam@86: sys_lib_search_path_spec=$lt_sys_lib_search_path_spec cannam@86: cannam@86: # Run-time system search path for libraries cannam@86: sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec cannam@86: cannam@86: # Fix the shell variable \$srcfile for the compiler. cannam@86: fix_srcfile_path="$fix_srcfile_path_RC" cannam@86: cannam@86: # Set to yes if exported symbols are required. cannam@86: always_export_symbols=$always_export_symbols_RC cannam@86: cannam@86: # The commands to list exported symbols. cannam@86: export_symbols_cmds=$lt_export_symbols_cmds_RC cannam@86: cannam@86: # The commands to extract the exported symbol list from a shared archive. cannam@86: extract_expsyms_cmds=$lt_extract_expsyms_cmds cannam@86: cannam@86: # Symbols that should not be listed in the preloaded symbols. cannam@86: exclude_expsyms=$lt_exclude_expsyms_RC cannam@86: cannam@86: # Symbols that must always be exported. cannam@86: include_expsyms=$lt_include_expsyms_RC cannam@86: cannam@86: # ### END LIBTOOL TAG CONFIG: $tagname cannam@86: cannam@86: __EOF__ cannam@86: cannam@86: cannam@86: else cannam@86: # If there is no Makefile yet, we rely on a make rule to execute cannam@86: # `config.status --recheck' to rerun these tests and create the cannam@86: # libtool script then. cannam@86: ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` cannam@86: if test -f "$ltmain_in"; then cannam@86: test -f Makefile && make "$ltmain" cannam@86: fi cannam@86: fi cannam@86: cannam@86: cannam@86: ac_ext=c cannam@86: ac_cpp='$CPP $CPPFLAGS' cannam@86: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' cannam@86: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' cannam@86: ac_compiler_gnu=$ac_cv_c_compiler_gnu cannam@86: cannam@86: CC="$lt_save_CC" cannam@86: cannam@86: ;; cannam@86: cannam@86: *) cannam@86: { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5 cannam@86: echo "$as_me: error: Unsupported tag name: $tagname" >&2;} cannam@86: { (exit 1); exit 1; }; } cannam@86: ;; cannam@86: esac cannam@86: cannam@86: # Append the new tag name to the list of available tags. cannam@86: if test -n "$tagname" ; then cannam@86: available_tags="$available_tags $tagname" cannam@86: fi cannam@86: fi cannam@86: done cannam@86: IFS="$lt_save_ifs" cannam@86: cannam@86: # Now substitute the updated list of available tags. cannam@86: if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then cannam@86: mv "${ofile}T" "$ofile" cannam@86: chmod +x "$ofile" cannam@86: else cannam@86: rm -f "${ofile}T" cannam@86: { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5 cannam@86: echo "$as_me: error: unable to update list of available tagged configurations." >&2;} cannam@86: { (exit 1); exit 1; }; } cannam@86: fi cannam@86: fi cannam@86: cannam@86: cannam@86: cannam@86: # This can be used to rebuild libtool when needed cannam@86: LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" cannam@86: cannam@86: # Always use our own libtool. cannam@86: LIBTOOL='$(SHELL) $(top_builddir)/libtool' cannam@86: cannam@86: # Prevent multiple expansion cannam@86: cannam@86: cannam@86: cannam@86: cannam@86: cannam@86: cannam@86: cannam@86: cannam@86: cannam@86: cannam@86: cannam@86: cannam@86: cannam@86: cannam@86: cannam@86: cannam@86: cannam@86: cannam@86: cannam@86: cannam@86: sed -e 's/^build_old_libs=yes/build_old_libs=no/' libtool > libtool-disable-static cannam@86: chmod +x libtool-disable-static cannam@86: cannam@86: ACLOCAL_AMFLAGS="-I m4" cannam@86: cannam@86: cannam@86: # By default we simply use the C compiler to build assembly code. cannam@86: cannam@86: : ${CCAS='$(CC)'} cannam@86: # Set ASFLAGS if not already set. cannam@86: : ${CCASFLAGS='$(CFLAGS)'} cannam@86: cannam@86: cannam@86: ac_ext=cc cannam@86: ac_cpp='$CXXCPP $CPPFLAGS' cannam@86: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' cannam@86: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' cannam@86: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu cannam@86: if test -n "$ac_tool_prefix"; then cannam@86: for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC cannam@86: do cannam@86: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. cannam@86: set dummy $ac_tool_prefix$ac_prog; ac_word=$2 cannam@86: echo "$as_me:$LINENO: checking for $ac_word" >&5 cannam@86: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 cannam@86: if test "${ac_cv_prog_CXX+set}" = set; then cannam@86: echo $ECHO_N "(cached) $ECHO_C" >&6 cannam@86: else cannam@86: if test -n "$CXX"; then cannam@86: ac_cv_prog_CXX="$CXX" # Let the user override the test. cannam@86: else cannam@86: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR cannam@86: for as_dir in $PATH cannam@86: do cannam@86: IFS=$as_save_IFS cannam@86: test -z "$as_dir" && as_dir=. cannam@86: for ac_exec_ext in '' $ac_executable_extensions; do cannam@86: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then cannam@86: ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" cannam@86: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 cannam@86: break 2 cannam@86: fi cannam@86: done cannam@86: done cannam@86: cannam@86: fi cannam@86: fi cannam@86: CXX=$ac_cv_prog_CXX cannam@86: if test -n "$CXX"; then cannam@86: echo "$as_me:$LINENO: result: $CXX" >&5 cannam@86: echo "${ECHO_T}$CXX" >&6 cannam@86: else cannam@86: echo "$as_me:$LINENO: result: no" >&5 cannam@86: echo "${ECHO_T}no" >&6 cannam@86: fi cannam@86: cannam@86: test -n "$CXX" && break cannam@86: done cannam@86: fi cannam@86: if test -z "$CXX"; then cannam@86: ac_ct_CXX=$CXX cannam@86: for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC cannam@86: do cannam@86: # Extract the first word of "$ac_prog", so it can be a program name with args. cannam@86: set dummy $ac_prog; ac_word=$2 cannam@86: echo "$as_me:$LINENO: checking for $ac_word" >&5 cannam@86: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 cannam@86: if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then cannam@86: echo $ECHO_N "(cached) $ECHO_C" >&6 cannam@86: else cannam@86: if test -n "$ac_ct_CXX"; then cannam@86: ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. cannam@86: else cannam@86: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR cannam@86: for as_dir in $PATH cannam@86: do cannam@86: IFS=$as_save_IFS cannam@86: test -z "$as_dir" && as_dir=. cannam@86: for ac_exec_ext in '' $ac_executable_extensions; do cannam@86: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then cannam@86: ac_cv_prog_ac_ct_CXX="$ac_prog" cannam@86: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 cannam@86: break 2 cannam@86: fi cannam@86: done cannam@86: done cannam@86: cannam@86: fi cannam@86: fi cannam@86: ac_ct_CXX=$ac_cv_prog_ac_ct_CXX cannam@86: if test -n "$ac_ct_CXX"; then cannam@86: echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 cannam@86: echo "${ECHO_T}$ac_ct_CXX" >&6 cannam@86: else cannam@86: echo "$as_me:$LINENO: result: no" >&5 cannam@86: echo "${ECHO_T}no" >&6 cannam@86: fi cannam@86: cannam@86: test -n "$ac_ct_CXX" && break cannam@86: done cannam@86: test -n "$ac_ct_CXX" || ac_ct_CXX="g++" cannam@86: cannam@86: CXX=$ac_ct_CXX cannam@86: fi cannam@86: cannam@86: cannam@86: # Provide some information about the compiler. cannam@86: echo "$as_me:$LINENO:" \ cannam@86: "checking for C++ compiler version" >&5 cannam@86: ac_compiler=`set X $ac_compile; echo $2` cannam@86: { (eval echo "$as_me:$LINENO: \"$ac_compiler --version &5\"") >&5 cannam@86: (eval $ac_compiler --version &5) 2>&5 cannam@86: ac_status=$? cannam@86: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@86: (exit $ac_status); } cannam@86: { (eval echo "$as_me:$LINENO: \"$ac_compiler -v &5\"") >&5 cannam@86: (eval $ac_compiler -v &5) 2>&5 cannam@86: ac_status=$? cannam@86: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@86: (exit $ac_status); } cannam@86: { (eval echo "$as_me:$LINENO: \"$ac_compiler -V &5\"") >&5 cannam@86: (eval $ac_compiler -V &5) 2>&5 cannam@86: ac_status=$? cannam@86: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@86: (exit $ac_status); } cannam@86: cannam@86: echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 cannam@86: echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6 cannam@86: if test "${ac_cv_cxx_compiler_gnu+set}" = set; then cannam@86: echo $ECHO_N "(cached) $ECHO_C" >&6 cannam@86: else cannam@86: cat >conftest.$ac_ext <<_ACEOF cannam@86: /* confdefs.h. */ cannam@86: _ACEOF cannam@86: cat confdefs.h >>conftest.$ac_ext cannam@86: cat >>conftest.$ac_ext <<_ACEOF cannam@86: /* end confdefs.h. */ cannam@86: cannam@86: int cannam@86: main () cannam@86: { cannam@86: #ifndef __GNUC__ cannam@86: choke me cannam@86: #endif cannam@86: cannam@86: ; cannam@86: return 0; cannam@86: } cannam@86: _ACEOF cannam@86: rm -f conftest.$ac_objext cannam@86: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 cannam@86: (eval $ac_compile) 2>conftest.er1 cannam@86: ac_status=$? cannam@86: grep -v '^ *+' conftest.er1 >conftest.err cannam@86: rm -f conftest.er1 cannam@86: cat conftest.err >&5 cannam@86: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@86: (exit $ac_status); } && cannam@86: { ac_try='test -z "$ac_cxx_werror_flag" cannam@86: || test ! -s conftest.err' cannam@86: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 cannam@86: (eval $ac_try) 2>&5 cannam@86: ac_status=$? cannam@86: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@86: (exit $ac_status); }; } && cannam@86: { ac_try='test -s conftest.$ac_objext' cannam@86: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 cannam@86: (eval $ac_try) 2>&5 cannam@86: ac_status=$? cannam@86: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@86: (exit $ac_status); }; }; then cannam@86: ac_compiler_gnu=yes cannam@86: else cannam@86: echo "$as_me: failed program was:" >&5 cannam@86: sed 's/^/| /' conftest.$ac_ext >&5 cannam@86: cannam@86: ac_compiler_gnu=no cannam@86: fi cannam@86: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext cannam@86: ac_cv_cxx_compiler_gnu=$ac_compiler_gnu cannam@86: cannam@86: fi cannam@86: echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 cannam@86: echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6 cannam@86: GXX=`test $ac_compiler_gnu = yes && echo yes` cannam@86: ac_test_CXXFLAGS=${CXXFLAGS+set} cannam@86: ac_save_CXXFLAGS=$CXXFLAGS cannam@86: CXXFLAGS="-g" cannam@86: echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 cannam@86: echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 cannam@86: if test "${ac_cv_prog_cxx_g+set}" = set; then cannam@86: echo $ECHO_N "(cached) $ECHO_C" >&6 cannam@86: else cannam@86: cat >conftest.$ac_ext <<_ACEOF cannam@86: /* confdefs.h. */ cannam@86: _ACEOF cannam@86: cat confdefs.h >>conftest.$ac_ext cannam@86: cat >>conftest.$ac_ext <<_ACEOF cannam@86: /* end confdefs.h. */ cannam@86: cannam@86: int cannam@86: main () cannam@86: { cannam@86: cannam@86: ; cannam@86: return 0; cannam@86: } cannam@86: _ACEOF cannam@86: rm -f conftest.$ac_objext cannam@86: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 cannam@86: (eval $ac_compile) 2>conftest.er1 cannam@86: ac_status=$? cannam@86: grep -v '^ *+' conftest.er1 >conftest.err cannam@86: rm -f conftest.er1 cannam@86: cat conftest.err >&5 cannam@86: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@86: (exit $ac_status); } && cannam@86: { ac_try='test -z "$ac_cxx_werror_flag" cannam@86: || test ! -s conftest.err' cannam@86: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 cannam@86: (eval $ac_try) 2>&5 cannam@86: ac_status=$? cannam@86: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@86: (exit $ac_status); }; } && cannam@86: { ac_try='test -s conftest.$ac_objext' cannam@86: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 cannam@86: (eval $ac_try) 2>&5 cannam@86: ac_status=$? cannam@86: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@86: (exit $ac_status); }; }; then cannam@86: ac_cv_prog_cxx_g=yes cannam@86: else cannam@86: echo "$as_me: failed program was:" >&5 cannam@86: sed 's/^/| /' conftest.$ac_ext >&5 cannam@86: cannam@86: ac_cv_prog_cxx_g=no cannam@86: fi cannam@86: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext cannam@86: fi cannam@86: echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 cannam@86: echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 cannam@86: if test "$ac_test_CXXFLAGS" = set; then cannam@86: CXXFLAGS=$ac_save_CXXFLAGS cannam@86: elif test $ac_cv_prog_cxx_g = yes; then cannam@86: if test "$GXX" = yes; then cannam@86: CXXFLAGS="-g -O2" cannam@86: else cannam@86: CXXFLAGS="-g" cannam@86: fi cannam@86: else cannam@86: if test "$GXX" = yes; then cannam@86: CXXFLAGS="-O2" cannam@86: else cannam@86: CXXFLAGS= cannam@86: fi cannam@86: fi cannam@86: for ac_declaration in \ cannam@86: '' \ cannam@86: 'extern "C" void std::exit (int) throw (); using std::exit;' \ cannam@86: 'extern "C" void std::exit (int); using std::exit;' \ cannam@86: 'extern "C" void exit (int) throw ();' \ cannam@86: 'extern "C" void exit (int);' \ cannam@86: 'void exit (int);' cannam@86: do cannam@86: cat >conftest.$ac_ext <<_ACEOF cannam@86: /* confdefs.h. */ cannam@86: _ACEOF cannam@86: cat confdefs.h >>conftest.$ac_ext cannam@86: cat >>conftest.$ac_ext <<_ACEOF cannam@86: /* end confdefs.h. */ cannam@86: $ac_declaration cannam@86: #include cannam@86: int cannam@86: main () cannam@86: { cannam@86: exit (42); cannam@86: ; cannam@86: return 0; cannam@86: } cannam@86: _ACEOF cannam@86: rm -f conftest.$ac_objext cannam@86: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 cannam@86: (eval $ac_compile) 2>conftest.er1 cannam@86: ac_status=$? cannam@86: grep -v '^ *+' conftest.er1 >conftest.err cannam@86: rm -f conftest.er1 cannam@86: cat conftest.err >&5 cannam@86: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@86: (exit $ac_status); } && cannam@86: { ac_try='test -z "$ac_cxx_werror_flag" cannam@86: || test ! -s conftest.err' cannam@86: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 cannam@86: (eval $ac_try) 2>&5 cannam@86: ac_status=$? cannam@86: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@86: (exit $ac_status); }; } && cannam@86: { ac_try='test -s conftest.$ac_objext' cannam@86: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 cannam@86: (eval $ac_try) 2>&5 cannam@86: ac_status=$? cannam@86: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@86: (exit $ac_status); }; }; then cannam@86: : cannam@86: else cannam@86: echo "$as_me: failed program was:" >&5 cannam@86: sed 's/^/| /' conftest.$ac_ext >&5 cannam@86: cannam@86: continue cannam@86: fi cannam@86: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext cannam@86: cat >conftest.$ac_ext <<_ACEOF cannam@86: /* confdefs.h. */ cannam@86: _ACEOF cannam@86: cat confdefs.h >>conftest.$ac_ext cannam@86: cat >>conftest.$ac_ext <<_ACEOF cannam@86: /* end confdefs.h. */ cannam@86: $ac_declaration cannam@86: int cannam@86: main () cannam@86: { cannam@86: exit (42); cannam@86: ; cannam@86: return 0; cannam@86: } cannam@86: _ACEOF cannam@86: rm -f conftest.$ac_objext cannam@86: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 cannam@86: (eval $ac_compile) 2>conftest.er1 cannam@86: ac_status=$? cannam@86: grep -v '^ *+' conftest.er1 >conftest.err cannam@86: rm -f conftest.er1 cannam@86: cat conftest.err >&5 cannam@86: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@86: (exit $ac_status); } && cannam@86: { ac_try='test -z "$ac_cxx_werror_flag" cannam@86: || test ! -s conftest.err' cannam@86: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 cannam@86: (eval $ac_try) 2>&5 cannam@86: ac_status=$? cannam@86: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@86: (exit $ac_status); }; } && cannam@86: { ac_try='test -s conftest.$ac_objext' cannam@86: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 cannam@86: (eval $ac_try) 2>&5 cannam@86: ac_status=$? cannam@86: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@86: (exit $ac_status); }; }; then cannam@86: break cannam@86: else cannam@86: echo "$as_me: failed program was:" >&5 cannam@86: sed 's/^/| /' conftest.$ac_ext >&5 cannam@86: cannam@86: fi cannam@86: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext cannam@86: done cannam@86: rm -f conftest* cannam@86: if test -n "$ac_declaration"; then cannam@86: echo '#ifdef __cplusplus' >>confdefs.h cannam@86: echo $ac_declaration >>confdefs.h cannam@86: echo '#endif' >>confdefs.h cannam@86: fi cannam@86: cannam@86: ac_ext=c cannam@86: ac_cpp='$CPP $CPPFLAGS' cannam@86: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' cannam@86: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' cannam@86: ac_compiler_gnu=$ac_cv_c_compiler_gnu cannam@86: cannam@86: depcc="$CXX" am_compiler_list= cannam@86: cannam@86: echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 cannam@86: echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 cannam@86: if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then cannam@86: echo $ECHO_N "(cached) $ECHO_C" >&6 cannam@86: else cannam@86: if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then cannam@86: # We make a subdir and do the tests there. Otherwise we can end up cannam@86: # making bogus files that we don't know about and never remove. For cannam@86: # instance it was reported that on HP-UX the gcc test will end up cannam@86: # making a dummy file named `D' -- because `-MD' means `put the output cannam@86: # in D'. cannam@86: mkdir conftest.dir cannam@86: # Copy depcomp to subdir because otherwise we won't find it if we're cannam@86: # using a relative directory. cannam@86: cp "$am_depcomp" conftest.dir cannam@86: cd conftest.dir cannam@86: # We will build objects and dependencies in a subdirectory because cannam@86: # it helps to detect inapplicable dependency modes. For instance cannam@86: # both Tru64's cc and ICC support -MD to output dependencies as a cannam@86: # side effect of compilation, but ICC will put the dependencies in cannam@86: # the current directory while Tru64 will put them in the object cannam@86: # directory. cannam@86: mkdir sub cannam@86: cannam@86: am_cv_CXX_dependencies_compiler_type=none cannam@86: if test "$am_compiler_list" = ""; then cannam@86: am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` cannam@86: fi cannam@86: for depmode in $am_compiler_list; do cannam@86: # Setup a source with many dependencies, because some compilers cannam@86: # like to wrap large dependency lists on column 80 (with \), and cannam@86: # we should not choose a depcomp mode which is confused by this. cannam@86: # cannam@86: # We need to recreate these files for each test, as the compiler may cannam@86: # overwrite some of them when testing with obscure command lines. cannam@86: # This happens at least with the AIX C compiler. cannam@86: : > sub/conftest.c cannam@86: for i in 1 2 3 4 5 6; do cannam@86: echo '#include "conftst'$i'.h"' >> sub/conftest.c cannam@86: : > sub/conftst$i.h cannam@86: done cannam@86: echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf cannam@86: cannam@86: case $depmode in cannam@86: nosideeffect) cannam@86: # after this tag, mechanisms are not by side-effect, so they'll cannam@86: # only be used when explicitly requested cannam@86: if test "x$enable_dependency_tracking" = xyes; then cannam@86: continue cannam@86: else cannam@86: break cannam@86: fi cannam@86: ;; cannam@86: none) break ;; cannam@86: esac cannam@86: # We check with `-c' and `-o' for the sake of the "dashmstdout" cannam@86: # mode. It turns out that the SunPro C++ compiler does not properly cannam@86: # handle `-M -o', and we need to detect this. cannam@86: if depmode=$depmode \ cannam@86: source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ cannam@86: depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ cannam@86: $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ cannam@86: >/dev/null 2>conftest.err && cannam@86: grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && cannam@86: grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && cannam@86: ${MAKE-make} -s -f confmf > /dev/null 2>&1; then cannam@86: # icc doesn't choke on unknown options, it will just issue warnings cannam@86: # (even with -Werror). So we grep stderr for any message cannam@86: # that says an option was ignored. cannam@86: if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else cannam@86: am_cv_CXX_dependencies_compiler_type=$depmode cannam@86: break cannam@86: fi cannam@86: fi cannam@86: done cannam@86: cannam@86: cd .. cannam@86: rm -rf conftest.dir cannam@86: else cannam@86: am_cv_CXX_dependencies_compiler_type=none cannam@86: fi cannam@86: cannam@86: fi cannam@86: echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 cannam@86: echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6 cannam@86: CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type cannam@86: cannam@86: cannam@86: cannam@86: if cannam@86: test "x$enable_dependency_tracking" != xno \ cannam@86: && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then cannam@86: am__fastdepCXX_TRUE= cannam@86: am__fastdepCXX_FALSE='#' cannam@86: else cannam@86: am__fastdepCXX_TRUE='#' cannam@86: am__fastdepCXX_FALSE= cannam@86: fi cannam@86: cannam@86: cannam@86: echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 cannam@86: echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 cannam@86: set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` cannam@86: if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then cannam@86: echo $ECHO_N "(cached) $ECHO_C" >&6 cannam@86: else cannam@86: cat >conftest.make <<\_ACEOF cannam@86: all: cannam@86: @echo 'ac_maketemp="$(MAKE)"' cannam@86: _ACEOF cannam@86: # GNU make sometimes prints "make[1]: Entering...", which would confuse us. cannam@86: eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` cannam@86: if test -n "$ac_maketemp"; then cannam@86: eval ac_cv_prog_make_${ac_make}_set=yes cannam@86: else cannam@86: eval ac_cv_prog_make_${ac_make}_set=no cannam@86: fi cannam@86: rm -f conftest.make cannam@86: fi cannam@86: if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then cannam@86: echo "$as_me:$LINENO: result: yes" >&5 cannam@86: echo "${ECHO_T}yes" >&6 cannam@86: SET_MAKE= cannam@86: else cannam@86: echo "$as_me:$LINENO: result: no" >&5 cannam@86: echo "${ECHO_T}no" >&6 cannam@86: SET_MAKE="MAKE=${MAKE-make}" cannam@86: fi cannam@86: cannam@86: cannam@86: # Check whether --enable-largefile or --disable-largefile was given. cannam@86: if test "${enable_largefile+set}" = set; then cannam@86: enableval="$enable_largefile" cannam@86: cannam@86: fi; cannam@86: if test "$enable_largefile" != no; then cannam@86: cannam@86: echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5 cannam@86: echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6 cannam@86: if test "${ac_cv_sys_largefile_CC+set}" = set; then cannam@86: echo $ECHO_N "(cached) $ECHO_C" >&6 cannam@86: else cannam@86: ac_cv_sys_largefile_CC=no cannam@86: if test "$GCC" != yes; then cannam@86: ac_save_CC=$CC cannam@86: while :; do cannam@86: # IRIX 6.2 and later do not support large files by default, cannam@86: # so use the C compiler's -n32 option if that helps. cannam@86: cat >conftest.$ac_ext <<_ACEOF cannam@86: /* confdefs.h. */ cannam@86: _ACEOF cannam@86: cat confdefs.h >>conftest.$ac_ext cannam@86: cat >>conftest.$ac_ext <<_ACEOF cannam@86: /* end confdefs.h. */ cannam@86: #include cannam@86: /* Check that off_t can represent 2**63 - 1 correctly. cannam@86: We can't simply define LARGE_OFF_T to be 9223372036854775807, cannam@86: since some C++ compilers masquerading as C compilers cannam@86: incorrectly reject 9223372036854775807. */ cannam@86: #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) cannam@86: int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 cannam@86: && LARGE_OFF_T % 2147483647 == 1) cannam@86: ? 1 : -1]; cannam@86: int cannam@86: main () cannam@86: { cannam@86: cannam@86: ; cannam@86: return 0; cannam@86: } cannam@86: _ACEOF cannam@86: rm -f conftest.$ac_objext cannam@86: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 cannam@86: (eval $ac_compile) 2>conftest.er1 cannam@86: ac_status=$? cannam@86: grep -v '^ *+' conftest.er1 >conftest.err cannam@86: rm -f conftest.er1 cannam@86: cat conftest.err >&5 cannam@86: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@86: (exit $ac_status); } && cannam@86: { ac_try='test -z "$ac_c_werror_flag" cannam@86: || test ! -s conftest.err' cannam@86: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 cannam@86: (eval $ac_try) 2>&5 cannam@86: ac_status=$? cannam@86: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@86: (exit $ac_status); }; } && cannam@86: { ac_try='test -s conftest.$ac_objext' cannam@86: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 cannam@86: (eval $ac_try) 2>&5 cannam@86: ac_status=$? cannam@86: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@86: (exit $ac_status); }; }; then cannam@86: break cannam@86: else cannam@86: echo "$as_me: failed program was:" >&5 cannam@86: sed 's/^/| /' conftest.$ac_ext >&5 cannam@86: cannam@86: fi cannam@86: rm -f conftest.err conftest.$ac_objext cannam@86: CC="$CC -n32" cannam@86: rm -f conftest.$ac_objext cannam@86: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 cannam@86: (eval $ac_compile) 2>conftest.er1 cannam@86: ac_status=$? cannam@86: grep -v '^ *+' conftest.er1 >conftest.err cannam@86: rm -f conftest.er1 cannam@86: cat conftest.err >&5 cannam@86: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@86: (exit $ac_status); } && cannam@86: { ac_try='test -z "$ac_c_werror_flag" cannam@86: || test ! -s conftest.err' cannam@86: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 cannam@86: (eval $ac_try) 2>&5 cannam@86: ac_status=$? cannam@86: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@86: (exit $ac_status); }; } && cannam@86: { ac_try='test -s conftest.$ac_objext' cannam@86: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 cannam@86: (eval $ac_try) 2>&5 cannam@86: ac_status=$? cannam@86: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@86: (exit $ac_status); }; }; then cannam@86: ac_cv_sys_largefile_CC=' -n32'; break cannam@86: else cannam@86: echo "$as_me: failed program was:" >&5 cannam@86: sed 's/^/| /' conftest.$ac_ext >&5 cannam@86: cannam@86: fi cannam@86: rm -f conftest.err conftest.$ac_objext cannam@86: break cannam@86: done cannam@86: CC=$ac_save_CC cannam@86: rm -f conftest.$ac_ext cannam@86: fi cannam@86: fi cannam@86: echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5 cannam@86: echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6 cannam@86: if test "$ac_cv_sys_largefile_CC" != no; then cannam@86: CC=$CC$ac_cv_sys_largefile_CC cannam@86: fi cannam@86: cannam@86: echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5 cannam@86: echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6 cannam@86: if test "${ac_cv_sys_file_offset_bits+set}" = set; then cannam@86: echo $ECHO_N "(cached) $ECHO_C" >&6 cannam@86: else cannam@86: while :; do cannam@86: ac_cv_sys_file_offset_bits=no cannam@86: cat >conftest.$ac_ext <<_ACEOF cannam@86: /* confdefs.h. */ cannam@86: _ACEOF cannam@86: cat confdefs.h >>conftest.$ac_ext cannam@86: cat >>conftest.$ac_ext <<_ACEOF cannam@86: /* end confdefs.h. */ cannam@86: #include cannam@86: /* Check that off_t can represent 2**63 - 1 correctly. cannam@86: We can't simply define LARGE_OFF_T to be 9223372036854775807, cannam@86: since some C++ compilers masquerading as C compilers cannam@86: incorrectly reject 9223372036854775807. */ cannam@86: #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) cannam@86: int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 cannam@86: && LARGE_OFF_T % 2147483647 == 1) cannam@86: ? 1 : -1]; cannam@86: int cannam@86: main () cannam@86: { cannam@86: cannam@86: ; cannam@86: return 0; cannam@86: } cannam@86: _ACEOF cannam@86: rm -f conftest.$ac_objext cannam@86: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 cannam@86: (eval $ac_compile) 2>conftest.er1 cannam@86: ac_status=$? cannam@86: grep -v '^ *+' conftest.er1 >conftest.err cannam@86: rm -f conftest.er1 cannam@86: cat conftest.err >&5 cannam@86: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@86: (exit $ac_status); } && cannam@86: { ac_try='test -z "$ac_c_werror_flag" cannam@86: || test ! -s conftest.err' cannam@86: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 cannam@86: (eval $ac_try) 2>&5 cannam@86: ac_status=$? cannam@86: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@86: (exit $ac_status); }; } && cannam@86: { ac_try='test -s conftest.$ac_objext' cannam@86: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 cannam@86: (eval $ac_try) 2>&5 cannam@86: ac_status=$? cannam@86: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@86: (exit $ac_status); }; }; then cannam@86: break cannam@86: else cannam@86: echo "$as_me: failed program was:" >&5 cannam@86: sed 's/^/| /' conftest.$ac_ext >&5 cannam@86: cannam@86: fi cannam@86: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext cannam@86: cat >conftest.$ac_ext <<_ACEOF cannam@86: /* confdefs.h. */ cannam@86: _ACEOF cannam@86: cat confdefs.h >>conftest.$ac_ext cannam@86: cat >>conftest.$ac_ext <<_ACEOF cannam@86: /* end confdefs.h. */ cannam@86: #define _FILE_OFFSET_BITS 64 cannam@86: #include cannam@86: /* Check that off_t can represent 2**63 - 1 correctly. cannam@86: We can't simply define LARGE_OFF_T to be 9223372036854775807, cannam@86: since some C++ compilers masquerading as C compilers cannam@86: incorrectly reject 9223372036854775807. */ cannam@86: #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) cannam@86: int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 cannam@86: && LARGE_OFF_T % 2147483647 == 1) cannam@86: ? 1 : -1]; cannam@86: int cannam@86: main () cannam@86: { cannam@86: cannam@86: ; cannam@86: return 0; cannam@86: } cannam@86: _ACEOF cannam@86: rm -f conftest.$ac_objext cannam@86: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 cannam@86: (eval $ac_compile) 2>conftest.er1 cannam@86: ac_status=$? cannam@86: grep -v '^ *+' conftest.er1 >conftest.err cannam@86: rm -f conftest.er1 cannam@86: cat conftest.err >&5 cannam@86: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@86: (exit $ac_status); } && cannam@86: { ac_try='test -z "$ac_c_werror_flag" cannam@86: || test ! -s conftest.err' cannam@86: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 cannam@86: (eval $ac_try) 2>&5 cannam@86: ac_status=$? cannam@86: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@86: (exit $ac_status); }; } && cannam@86: { ac_try='test -s conftest.$ac_objext' cannam@86: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 cannam@86: (eval $ac_try) 2>&5 cannam@86: ac_status=$? cannam@86: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@86: (exit $ac_status); }; }; then cannam@86: ac_cv_sys_file_offset_bits=64; break cannam@86: else cannam@86: echo "$as_me: failed program was:" >&5 cannam@86: sed 's/^/| /' conftest.$ac_ext >&5 cannam@86: cannam@86: fi cannam@86: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext cannam@86: break cannam@86: done cannam@86: fi cannam@86: echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5 cannam@86: echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6 cannam@86: if test "$ac_cv_sys_file_offset_bits" != no; then cannam@86: cannam@86: cat >>confdefs.h <<_ACEOF cannam@86: #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits cannam@86: _ACEOF cannam@86: cannam@86: fi cannam@86: rm -f conftest* cannam@86: echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5 cannam@86: echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6 cannam@86: if test "${ac_cv_sys_large_files+set}" = set; then cannam@86: echo $ECHO_N "(cached) $ECHO_C" >&6 cannam@86: else cannam@86: while :; do cannam@86: ac_cv_sys_large_files=no cannam@86: cat >conftest.$ac_ext <<_ACEOF cannam@86: /* confdefs.h. */ cannam@86: _ACEOF cannam@86: cat confdefs.h >>conftest.$ac_ext cannam@86: cat >>conftest.$ac_ext <<_ACEOF cannam@86: /* end confdefs.h. */ cannam@86: #include cannam@86: /* Check that off_t can represent 2**63 - 1 correctly. cannam@86: We can't simply define LARGE_OFF_T to be 9223372036854775807, cannam@86: since some C++ compilers masquerading as C compilers cannam@86: incorrectly reject 9223372036854775807. */ cannam@86: #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) cannam@86: int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 cannam@86: && LARGE_OFF_T % 2147483647 == 1) cannam@86: ? 1 : -1]; cannam@86: int cannam@86: main () cannam@86: { cannam@86: cannam@86: ; cannam@86: return 0; cannam@86: } cannam@86: _ACEOF cannam@86: rm -f conftest.$ac_objext cannam@86: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 cannam@86: (eval $ac_compile) 2>conftest.er1 cannam@86: ac_status=$? cannam@86: grep -v '^ *+' conftest.er1 >conftest.err cannam@86: rm -f conftest.er1 cannam@86: cat conftest.err >&5 cannam@86: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@86: (exit $ac_status); } && cannam@86: { ac_try='test -z "$ac_c_werror_flag" cannam@86: || test ! -s conftest.err' cannam@86: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 cannam@86: (eval $ac_try) 2>&5 cannam@86: ac_status=$? cannam@86: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@86: (exit $ac_status); }; } && cannam@86: { ac_try='test -s conftest.$ac_objext' cannam@86: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 cannam@86: (eval $ac_try) 2>&5 cannam@86: ac_status=$? cannam@86: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@86: (exit $ac_status); }; }; then cannam@86: break cannam@86: else cannam@86: echo "$as_me: failed program was:" >&5 cannam@86: sed 's/^/| /' conftest.$ac_ext >&5 cannam@86: cannam@86: fi cannam@86: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext cannam@86: cat >conftest.$ac_ext <<_ACEOF cannam@86: /* confdefs.h. */ cannam@86: _ACEOF cannam@86: cat confdefs.h >>conftest.$ac_ext cannam@86: cat >>conftest.$ac_ext <<_ACEOF cannam@86: /* end confdefs.h. */ cannam@86: #define _LARGE_FILES 1 cannam@86: #include cannam@86: /* Check that off_t can represent 2**63 - 1 correctly. cannam@86: We can't simply define LARGE_OFF_T to be 9223372036854775807, cannam@86: since some C++ compilers masquerading as C compilers cannam@86: incorrectly reject 9223372036854775807. */ cannam@86: #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) cannam@86: int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 cannam@86: && LARGE_OFF_T % 2147483647 == 1) cannam@86: ? 1 : -1]; cannam@86: int cannam@86: main () cannam@86: { cannam@86: cannam@86: ; cannam@86: return 0; cannam@86: } cannam@86: _ACEOF cannam@86: rm -f conftest.$ac_objext cannam@86: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 cannam@86: (eval $ac_compile) 2>conftest.er1 cannam@86: ac_status=$? cannam@86: grep -v '^ *+' conftest.er1 >conftest.err cannam@86: rm -f conftest.er1 cannam@86: cat conftest.err >&5 cannam@86: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@86: (exit $ac_status); } && cannam@86: { ac_try='test -z "$ac_c_werror_flag" cannam@86: || test ! -s conftest.err' cannam@86: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 cannam@86: (eval $ac_try) 2>&5 cannam@86: ac_status=$? cannam@86: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@86: (exit $ac_status); }; } && cannam@86: { ac_try='test -s conftest.$ac_objext' cannam@86: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 cannam@86: (eval $ac_try) 2>&5 cannam@86: ac_status=$? cannam@86: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@86: (exit $ac_status); }; }; then cannam@86: ac_cv_sys_large_files=1; break cannam@86: else cannam@86: echo "$as_me: failed program was:" >&5 cannam@86: sed 's/^/| /' conftest.$ac_ext >&5 cannam@86: cannam@86: fi cannam@86: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext cannam@86: break cannam@86: done cannam@86: fi cannam@86: echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5 cannam@86: echo "${ECHO_T}$ac_cv_sys_large_files" >&6 cannam@86: if test "$ac_cv_sys_large_files" != no; then cannam@86: cannam@86: cat >>confdefs.h <<_ACEOF cannam@86: #define _LARGE_FILES $ac_cv_sys_large_files cannam@86: _ACEOF cannam@86: cannam@86: fi cannam@86: rm -f conftest* cannam@86: fi cannam@86: cannam@86: echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5 cannam@86: echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6 cannam@86: if test "${ac_cv_sys_largefile_source+set}" = set; then cannam@86: echo $ECHO_N "(cached) $ECHO_C" >&6 cannam@86: else cannam@86: while :; do cannam@86: ac_cv_sys_largefile_source=no cannam@86: cat >conftest.$ac_ext <<_ACEOF cannam@86: /* confdefs.h. */ cannam@86: _ACEOF cannam@86: cat confdefs.h >>conftest.$ac_ext cannam@86: cat >>conftest.$ac_ext <<_ACEOF cannam@86: /* end confdefs.h. */ cannam@86: #include cannam@86: int cannam@86: main () cannam@86: { cannam@86: return !fseeko; cannam@86: ; cannam@86: return 0; cannam@86: } cannam@86: _ACEOF cannam@86: rm -f conftest.$ac_objext cannam@86: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 cannam@86: (eval $ac_compile) 2>conftest.er1 cannam@86: ac_status=$? cannam@86: grep -v '^ *+' conftest.er1 >conftest.err cannam@86: rm -f conftest.er1 cannam@86: cat conftest.err >&5 cannam@86: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@86: (exit $ac_status); } && cannam@86: { ac_try='test -z "$ac_c_werror_flag" cannam@86: || test ! -s conftest.err' cannam@86: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 cannam@86: (eval $ac_try) 2>&5 cannam@86: ac_status=$? cannam@86: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@86: (exit $ac_status); }; } && cannam@86: { ac_try='test -s conftest.$ac_objext' cannam@86: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 cannam@86: (eval $ac_try) 2>&5 cannam@86: ac_status=$? cannam@86: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@86: (exit $ac_status); }; }; then cannam@86: break cannam@86: else cannam@86: echo "$as_me: failed program was:" >&5 cannam@86: sed 's/^/| /' conftest.$ac_ext >&5 cannam@86: cannam@86: fi cannam@86: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext cannam@86: cat >conftest.$ac_ext <<_ACEOF cannam@86: /* confdefs.h. */ cannam@86: _ACEOF cannam@86: cat confdefs.h >>conftest.$ac_ext cannam@86: cat >>conftest.$ac_ext <<_ACEOF cannam@86: /* end confdefs.h. */ cannam@86: #define _LARGEFILE_SOURCE 1 cannam@86: #include cannam@86: int cannam@86: main () cannam@86: { cannam@86: return !fseeko; cannam@86: ; cannam@86: return 0; cannam@86: } cannam@86: _ACEOF cannam@86: rm -f conftest.$ac_objext cannam@86: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 cannam@86: (eval $ac_compile) 2>conftest.er1 cannam@86: ac_status=$? cannam@86: grep -v '^ *+' conftest.er1 >conftest.err cannam@86: rm -f conftest.er1 cannam@86: cat conftest.err >&5 cannam@86: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@86: (exit $ac_status); } && cannam@86: { ac_try='test -z "$ac_c_werror_flag" cannam@86: || test ! -s conftest.err' cannam@86: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 cannam@86: (eval $ac_try) 2>&5 cannam@86: ac_status=$? cannam@86: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@86: (exit $ac_status); }; } && cannam@86: { ac_try='test -s conftest.$ac_objext' cannam@86: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 cannam@86: (eval $ac_try) 2>&5 cannam@86: ac_status=$? cannam@86: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@86: (exit $ac_status); }; }; then cannam@86: ac_cv_sys_largefile_source=1; break cannam@86: else cannam@86: echo "$as_me: failed program was:" >&5 cannam@86: sed 's/^/| /' conftest.$ac_ext >&5 cannam@86: cannam@86: fi cannam@86: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext cannam@86: break cannam@86: done cannam@86: fi cannam@86: echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5 cannam@86: echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6 cannam@86: if test "$ac_cv_sys_largefile_source" != no; then cannam@86: cannam@86: cat >>confdefs.h <<_ACEOF cannam@86: #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source cannam@86: _ACEOF cannam@86: cannam@86: fi cannam@86: rm -f conftest* cannam@86: cannam@86: # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug cannam@86: # in glibc 2.1.3, but that breaks too many other things. cannam@86: # If you want fseeko and ftello with glibc, upgrade to a fixed glibc. cannam@86: echo "$as_me:$LINENO: checking for fseeko" >&5 cannam@86: echo $ECHO_N "checking for fseeko... $ECHO_C" >&6 cannam@86: if test "${ac_cv_func_fseeko+set}" = set; then cannam@86: echo $ECHO_N "(cached) $ECHO_C" >&6 cannam@86: else cannam@86: cat >conftest.$ac_ext <<_ACEOF cannam@86: /* confdefs.h. */ cannam@86: _ACEOF cannam@86: cat confdefs.h >>conftest.$ac_ext cannam@86: cat >>conftest.$ac_ext <<_ACEOF cannam@86: /* end confdefs.h. */ cannam@86: #include cannam@86: int cannam@86: main () cannam@86: { cannam@86: return fseeko && fseeko (stdin, 0, 0); cannam@86: ; cannam@86: return 0; cannam@86: } cannam@86: _ACEOF cannam@86: rm -f conftest.$ac_objext conftest$ac_exeext cannam@86: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 cannam@86: (eval $ac_link) 2>conftest.er1 cannam@86: ac_status=$? cannam@86: grep -v '^ *+' conftest.er1 >conftest.err cannam@86: rm -f conftest.er1 cannam@86: cat conftest.err >&5 cannam@86: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@86: (exit $ac_status); } && cannam@86: { ac_try='test -z "$ac_c_werror_flag" cannam@86: || test ! -s conftest.err' cannam@86: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 cannam@86: (eval $ac_try) 2>&5 cannam@86: ac_status=$? cannam@86: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@86: (exit $ac_status); }; } && cannam@86: { ac_try='test -s conftest$ac_exeext' cannam@86: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 cannam@86: (eval $ac_try) 2>&5 cannam@86: ac_status=$? cannam@86: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@86: (exit $ac_status); }; }; then cannam@86: ac_cv_func_fseeko=yes cannam@86: else cannam@86: echo "$as_me: failed program was:" >&5 cannam@86: sed 's/^/| /' conftest.$ac_ext >&5 cannam@86: cannam@86: ac_cv_func_fseeko=no cannam@86: fi cannam@86: rm -f conftest.err conftest.$ac_objext \ cannam@86: conftest$ac_exeext conftest.$ac_ext cannam@86: fi cannam@86: echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5 cannam@86: echo "${ECHO_T}$ac_cv_func_fseeko" >&6 cannam@86: if test $ac_cv_func_fseeko = yes; then cannam@86: cannam@86: cat >>confdefs.h <<\_ACEOF cannam@86: #define HAVE_FSEEKO 1 cannam@86: _ACEOF cannam@86: cannam@86: fi cannam@86: cannam@86: cannam@86: echo "$as_me:$LINENO: checking for void*" >&5 cannam@86: echo $ECHO_N "checking for void*... $ECHO_C" >&6 cannam@86: if test "${ac_cv_type_voidp+set}" = set; then cannam@86: echo $ECHO_N "(cached) $ECHO_C" >&6 cannam@86: else cannam@86: cat >conftest.$ac_ext <<_ACEOF cannam@86: /* confdefs.h. */ cannam@86: _ACEOF cannam@86: cat confdefs.h >>conftest.$ac_ext cannam@86: cat >>conftest.$ac_ext <<_ACEOF cannam@86: /* end confdefs.h. */ cannam@86: $ac_includes_default cannam@86: int cannam@86: main () cannam@86: { cannam@86: if ((void* *) 0) cannam@86: return 0; cannam@86: if (sizeof (void*)) cannam@86: return 0; cannam@86: ; cannam@86: return 0; cannam@86: } cannam@86: _ACEOF cannam@86: rm -f conftest.$ac_objext cannam@86: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 cannam@86: (eval $ac_compile) 2>conftest.er1 cannam@86: ac_status=$? cannam@86: grep -v '^ *+' conftest.er1 >conftest.err cannam@86: rm -f conftest.er1 cannam@86: cat conftest.err >&5 cannam@86: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@86: (exit $ac_status); } && cannam@86: { ac_try='test -z "$ac_c_werror_flag" cannam@86: || test ! -s conftest.err' cannam@86: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 cannam@86: (eval $ac_try) 2>&5 cannam@86: ac_status=$? cannam@86: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@86: (exit $ac_status); }; } && cannam@86: { ac_try='test -s conftest.$ac_objext' cannam@86: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 cannam@86: (eval $ac_try) 2>&5 cannam@86: ac_status=$? cannam@86: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@86: (exit $ac_status); }; }; then cannam@86: ac_cv_type_voidp=yes cannam@86: else cannam@86: echo "$as_me: failed program was:" >&5 cannam@86: sed 's/^/| /' conftest.$ac_ext >&5 cannam@86: cannam@86: ac_cv_type_voidp=no cannam@86: fi cannam@86: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext cannam@86: fi cannam@86: echo "$as_me:$LINENO: result: $ac_cv_type_voidp" >&5 cannam@86: echo "${ECHO_T}$ac_cv_type_voidp" >&6 cannam@86: cannam@86: echo "$as_me:$LINENO: checking size of void*" >&5 cannam@86: echo $ECHO_N "checking size of void*... $ECHO_C" >&6 cannam@86: if test "${ac_cv_sizeof_voidp+set}" = set; then cannam@86: echo $ECHO_N "(cached) $ECHO_C" >&6 cannam@86: else cannam@86: if test "$ac_cv_type_voidp" = yes; then cannam@86: # The cast to unsigned long works around a bug in the HP C Compiler cannam@86: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects cannam@86: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. cannam@86: # This bug is HP SR number 8606223364. cannam@86: if test "$cross_compiling" = yes; then cannam@86: # Depending upon the size, compute the lo and hi bounds. cannam@86: cat >conftest.$ac_ext <<_ACEOF cannam@86: /* confdefs.h. */ cannam@86: _ACEOF cannam@86: cat confdefs.h >>conftest.$ac_ext cannam@86: cat >>conftest.$ac_ext <<_ACEOF cannam@86: /* end confdefs.h. */ cannam@86: $ac_includes_default cannam@86: int cannam@86: main () cannam@86: { cannam@86: static int test_array [1 - 2 * !(((long) (sizeof (void*))) >= 0)]; cannam@86: test_array [0] = 0 cannam@86: cannam@86: ; cannam@86: return 0; cannam@86: } cannam@86: _ACEOF cannam@86: rm -f conftest.$ac_objext cannam@86: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 cannam@86: (eval $ac_compile) 2>conftest.er1 cannam@86: ac_status=$? cannam@86: grep -v '^ *+' conftest.er1 >conftest.err cannam@86: rm -f conftest.er1 cannam@86: cat conftest.err >&5 cannam@86: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@86: (exit $ac_status); } && cannam@86: { ac_try='test -z "$ac_c_werror_flag" cannam@86: || test ! -s conftest.err' cannam@86: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 cannam@86: (eval $ac_try) 2>&5 cannam@86: ac_status=$? cannam@86: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@86: (exit $ac_status); }; } && cannam@86: { ac_try='test -s conftest.$ac_objext' cannam@86: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 cannam@86: (eval $ac_try) 2>&5 cannam@86: ac_status=$? cannam@86: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@86: (exit $ac_status); }; }; then cannam@86: ac_lo=0 ac_mid=0 cannam@86: while :; do cannam@86: cat >conftest.$ac_ext <<_ACEOF cannam@86: /* confdefs.h. */ cannam@86: _ACEOF cannam@86: cat confdefs.h >>conftest.$ac_ext cannam@86: cat >>conftest.$ac_ext <<_ACEOF cannam@86: /* end confdefs.h. */ cannam@86: $ac_includes_default cannam@86: int cannam@86: main () cannam@86: { cannam@86: static int test_array [1 - 2 * !(((long) (sizeof (void*))) <= $ac_mid)]; cannam@86: test_array [0] = 0 cannam@86: cannam@86: ; cannam@86: return 0; cannam@86: } cannam@86: _ACEOF cannam@86: rm -f conftest.$ac_objext cannam@86: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 cannam@86: (eval $ac_compile) 2>conftest.er1 cannam@86: ac_status=$? cannam@86: grep -v '^ *+' conftest.er1 >conftest.err cannam@86: rm -f conftest.er1 cannam@86: cat conftest.err >&5 cannam@86: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@86: (exit $ac_status); } && cannam@86: { ac_try='test -z "$ac_c_werror_flag" cannam@86: || test ! -s conftest.err' cannam@86: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 cannam@86: (eval $ac_try) 2>&5 cannam@86: ac_status=$? cannam@86: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@86: (exit $ac_status); }; } && cannam@86: { ac_try='test -s conftest.$ac_objext' cannam@86: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 cannam@86: (eval $ac_try) 2>&5 cannam@86: ac_status=$? cannam@86: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@86: (exit $ac_status); }; }; then cannam@86: ac_hi=$ac_mid; break cannam@86: else cannam@86: echo "$as_me: failed program was:" >&5 cannam@86: sed 's/^/| /' conftest.$ac_ext >&5 cannam@86: cannam@86: ac_lo=`expr $ac_mid + 1` cannam@86: if test $ac_lo -le $ac_mid; then cannam@86: ac_lo= ac_hi= cannam@86: break cannam@86: fi cannam@86: ac_mid=`expr 2 '*' $ac_mid + 1` cannam@86: fi cannam@86: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext cannam@86: done cannam@86: else cannam@86: echo "$as_me: failed program was:" >&5 cannam@86: sed 's/^/| /' conftest.$ac_ext >&5 cannam@86: cannam@86: cat >conftest.$ac_ext <<_ACEOF cannam@86: /* confdefs.h. */ cannam@86: _ACEOF cannam@86: cat confdefs.h >>conftest.$ac_ext cannam@86: cat >>conftest.$ac_ext <<_ACEOF cannam@86: /* end confdefs.h. */ cannam@86: $ac_includes_default cannam@86: int cannam@86: main () cannam@86: { cannam@86: static int test_array [1 - 2 * !(((long) (sizeof (void*))) < 0)]; cannam@86: test_array [0] = 0 cannam@86: cannam@86: ; cannam@86: return 0; cannam@86: } cannam@86: _ACEOF cannam@86: rm -f conftest.$ac_objext cannam@86: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 cannam@86: (eval $ac_compile) 2>conftest.er1 cannam@86: ac_status=$? cannam@86: grep -v '^ *+' conftest.er1 >conftest.err cannam@86: rm -f conftest.er1 cannam@86: cat conftest.err >&5 cannam@86: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@86: (exit $ac_status); } && cannam@86: { ac_try='test -z "$ac_c_werror_flag" cannam@86: || test ! -s conftest.err' cannam@86: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 cannam@86: (eval $ac_try) 2>&5 cannam@86: ac_status=$? cannam@86: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@86: (exit $ac_status); }; } && cannam@86: { ac_try='test -s conftest.$ac_objext' cannam@86: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 cannam@86: (eval $ac_try) 2>&5 cannam@86: ac_status=$? cannam@86: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@86: (exit $ac_status); }; }; then cannam@86: ac_hi=-1 ac_mid=-1 cannam@86: while :; do cannam@86: cat >conftest.$ac_ext <<_ACEOF cannam@86: /* confdefs.h. */ cannam@86: _ACEOF cannam@86: cat confdefs.h >>conftest.$ac_ext cannam@86: cat >>conftest.$ac_ext <<_ACEOF cannam@86: /* end confdefs.h. */ cannam@86: $ac_includes_default cannam@86: int cannam@86: main () cannam@86: { cannam@86: static int test_array [1 - 2 * !(((long) (sizeof (void*))) >= $ac_mid)]; cannam@86: test_array [0] = 0 cannam@86: cannam@86: ; cannam@86: return 0; cannam@86: } cannam@86: _ACEOF cannam@86: rm -f conftest.$ac_objext cannam@86: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 cannam@86: (eval $ac_compile) 2>conftest.er1 cannam@86: ac_status=$? cannam@86: grep -v '^ *+' conftest.er1 >conftest.err cannam@86: rm -f conftest.er1 cannam@86: cat conftest.err >&5 cannam@86: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@86: (exit $ac_status); } && cannam@86: { ac_try='test -z "$ac_c_werror_flag" cannam@86: || test ! -s conftest.err' cannam@86: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 cannam@86: (eval $ac_try) 2>&5 cannam@86: ac_status=$? cannam@86: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@86: (exit $ac_status); }; } && cannam@86: { ac_try='test -s conftest.$ac_objext' cannam@86: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 cannam@86: (eval $ac_try) 2>&5 cannam@86: ac_status=$? cannam@86: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@86: (exit $ac_status); }; }; then cannam@86: ac_lo=$ac_mid; break cannam@86: else cannam@86: echo "$as_me: failed program was:" >&5 cannam@86: sed 's/^/| /' conftest.$ac_ext >&5 cannam@86: cannam@86: ac_hi=`expr '(' $ac_mid ')' - 1` cannam@86: if test $ac_mid -le $ac_hi; then cannam@86: ac_lo= ac_hi= cannam@86: break cannam@86: fi cannam@86: ac_mid=`expr 2 '*' $ac_mid` cannam@86: fi cannam@86: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext cannam@86: done cannam@86: else cannam@86: echo "$as_me: failed program was:" >&5 cannam@86: sed 's/^/| /' conftest.$ac_ext >&5 cannam@86: cannam@86: ac_lo= ac_hi= cannam@86: fi cannam@86: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext cannam@86: fi cannam@86: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext cannam@86: # Binary search between lo and hi bounds. cannam@86: while test "x$ac_lo" != "x$ac_hi"; do cannam@86: ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` cannam@86: cat >conftest.$ac_ext <<_ACEOF cannam@86: /* confdefs.h. */ cannam@86: _ACEOF cannam@86: cat confdefs.h >>conftest.$ac_ext cannam@86: cat >>conftest.$ac_ext <<_ACEOF cannam@86: /* end confdefs.h. */ cannam@86: $ac_includes_default cannam@86: int cannam@86: main () cannam@86: { cannam@86: static int test_array [1 - 2 * !(((long) (sizeof (void*))) <= $ac_mid)]; cannam@86: test_array [0] = 0 cannam@86: cannam@86: ; cannam@86: return 0; cannam@86: } cannam@86: _ACEOF cannam@86: rm -f conftest.$ac_objext cannam@86: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 cannam@86: (eval $ac_compile) 2>conftest.er1 cannam@86: ac_status=$? cannam@86: grep -v '^ *+' conftest.er1 >conftest.err cannam@86: rm -f conftest.er1 cannam@86: cat conftest.err >&5 cannam@86: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@86: (exit $ac_status); } && cannam@86: { ac_try='test -z "$ac_c_werror_flag" cannam@86: || test ! -s conftest.err' cannam@86: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 cannam@86: (eval $ac_try) 2>&5 cannam@86: ac_status=$? cannam@86: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@86: (exit $ac_status); }; } && cannam@86: { ac_try='test -s conftest.$ac_objext' cannam@86: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 cannam@86: (eval $ac_try) 2>&5 cannam@86: ac_status=$? cannam@86: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@86: (exit $ac_status); }; }; then cannam@86: ac_hi=$ac_mid cannam@86: else cannam@86: echo "$as_me: failed program was:" >&5 cannam@86: sed 's/^/| /' conftest.$ac_ext >&5 cannam@86: cannam@86: ac_lo=`expr '(' $ac_mid ')' + 1` cannam@86: fi cannam@86: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext cannam@86: done cannam@86: case $ac_lo in cannam@86: ?*) ac_cv_sizeof_voidp=$ac_lo;; cannam@86: '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void*), 77 cannam@86: See \`config.log' for more details." >&5 cannam@86: echo "$as_me: error: cannot compute sizeof (void*), 77 cannam@86: See \`config.log' for more details." >&2;} cannam@86: { (exit 1); exit 1; }; } ;; cannam@86: esac cannam@86: else cannam@86: if test "$cross_compiling" = yes; then cannam@86: { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling cannam@86: See \`config.log' for more details." >&5 cannam@86: echo "$as_me: error: cannot run test program while cross compiling cannam@86: See \`config.log' for more details." >&2;} cannam@86: { (exit 1); exit 1; }; } cannam@86: else cannam@86: cat >conftest.$ac_ext <<_ACEOF cannam@86: /* confdefs.h. */ cannam@86: _ACEOF cannam@86: cat confdefs.h >>conftest.$ac_ext cannam@86: cat >>conftest.$ac_ext <<_ACEOF cannam@86: /* end confdefs.h. */ cannam@86: $ac_includes_default cannam@86: long longval () { return (long) (sizeof (void*)); } cannam@86: unsigned long ulongval () { return (long) (sizeof (void*)); } cannam@86: #include cannam@86: #include cannam@86: int cannam@86: main () cannam@86: { cannam@86: cannam@86: FILE *f = fopen ("conftest.val", "w"); cannam@86: if (! f) cannam@86: exit (1); cannam@86: if (((long) (sizeof (void*))) < 0) cannam@86: { cannam@86: long i = longval (); cannam@86: if (i != ((long) (sizeof (void*)))) cannam@86: exit (1); cannam@86: fprintf (f, "%ld\n", i); cannam@86: } cannam@86: else cannam@86: { cannam@86: unsigned long i = ulongval (); cannam@86: if (i != ((long) (sizeof (void*)))) cannam@86: exit (1); cannam@86: fprintf (f, "%lu\n", i); cannam@86: } cannam@86: exit (ferror (f) || fclose (f) != 0); cannam@86: cannam@86: ; cannam@86: return 0; cannam@86: } cannam@86: _ACEOF cannam@86: rm -f conftest$ac_exeext cannam@86: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 cannam@86: (eval $ac_link) 2>&5 cannam@86: ac_status=$? cannam@86: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@86: (exit $ac_status); } && { ac_try='./conftest$ac_exeext' cannam@86: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 cannam@86: (eval $ac_try) 2>&5 cannam@86: ac_status=$? cannam@86: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@86: (exit $ac_status); }; }; then cannam@86: ac_cv_sizeof_voidp=`cat conftest.val` cannam@86: else cannam@86: echo "$as_me: program exited with status $ac_status" >&5 cannam@86: echo "$as_me: failed program was:" >&5 cannam@86: sed 's/^/| /' conftest.$ac_ext >&5 cannam@86: cannam@86: ( exit $ac_status ) cannam@86: { { echo "$as_me:$LINENO: error: cannot compute sizeof (void*), 77 cannam@86: See \`config.log' for more details." >&5 cannam@86: echo "$as_me: error: cannot compute sizeof (void*), 77 cannam@86: See \`config.log' for more details." >&2;} cannam@86: { (exit 1); exit 1; }; } cannam@86: fi cannam@86: rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext cannam@86: fi cannam@86: fi cannam@86: rm -f conftest.val cannam@86: else cannam@86: ac_cv_sizeof_voidp=0 cannam@86: fi cannam@86: fi cannam@86: echo "$as_me:$LINENO: result: $ac_cv_sizeof_voidp" >&5 cannam@86: echo "${ECHO_T}$ac_cv_sizeof_voidp" >&6 cannam@86: cat >>confdefs.h <<_ACEOF cannam@86: #define SIZEOF_VOIDP $ac_cv_sizeof_voidp cannam@86: _ACEOF cannam@86: cannam@86: cannam@86: cannam@86: #@@@ new name is AC_CONFIG_HEADERS cannam@86: ac_config_headers="$ac_config_headers config.h" cannam@86: cannam@86: cannam@86: echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 cannam@86: echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6 cannam@86: if test "${ac_cv_c_bigendian+set}" = set; then cannam@86: echo $ECHO_N "(cached) $ECHO_C" >&6 cannam@86: else cannam@86: # See if sys/param.h defines the BYTE_ORDER macro. cannam@86: cat >conftest.$ac_ext <<_ACEOF cannam@86: /* confdefs.h. */ cannam@86: _ACEOF cannam@86: cat confdefs.h >>conftest.$ac_ext cannam@86: cat >>conftest.$ac_ext <<_ACEOF cannam@86: /* end confdefs.h. */ cannam@86: #include cannam@86: #include cannam@86: cannam@86: int cannam@86: main () cannam@86: { cannam@86: #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN cannam@86: bogus endian macros cannam@86: #endif cannam@86: cannam@86: ; cannam@86: return 0; cannam@86: } cannam@86: _ACEOF cannam@86: rm -f conftest.$ac_objext cannam@86: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 cannam@86: (eval $ac_compile) 2>conftest.er1 cannam@86: ac_status=$? cannam@86: grep -v '^ *+' conftest.er1 >conftest.err cannam@86: rm -f conftest.er1 cannam@86: cat conftest.err >&5 cannam@86: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@86: (exit $ac_status); } && cannam@86: { ac_try='test -z "$ac_c_werror_flag" cannam@86: || test ! -s conftest.err' cannam@86: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 cannam@86: (eval $ac_try) 2>&5 cannam@86: ac_status=$? cannam@86: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@86: (exit $ac_status); }; } && cannam@86: { ac_try='test -s conftest.$ac_objext' cannam@86: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 cannam@86: (eval $ac_try) 2>&5 cannam@86: ac_status=$? cannam@86: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@86: (exit $ac_status); }; }; then cannam@86: # It does; now see whether it defined to BIG_ENDIAN or not. cannam@86: cat >conftest.$ac_ext <<_ACEOF cannam@86: /* confdefs.h. */ cannam@86: _ACEOF cannam@86: cat confdefs.h >>conftest.$ac_ext cannam@86: cat >>conftest.$ac_ext <<_ACEOF cannam@86: /* end confdefs.h. */ cannam@86: #include cannam@86: #include cannam@86: cannam@86: int cannam@86: main () cannam@86: { cannam@86: #if BYTE_ORDER != BIG_ENDIAN cannam@86: not big endian cannam@86: #endif cannam@86: cannam@86: ; cannam@86: return 0; cannam@86: } cannam@86: _ACEOF cannam@86: rm -f conftest.$ac_objext cannam@86: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 cannam@86: (eval $ac_compile) 2>conftest.er1 cannam@86: ac_status=$? cannam@86: grep -v '^ *+' conftest.er1 >conftest.err cannam@86: rm -f conftest.er1 cannam@86: cat conftest.err >&5 cannam@86: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@86: (exit $ac_status); } && cannam@86: { ac_try='test -z "$ac_c_werror_flag" cannam@86: || test ! -s conftest.err' cannam@86: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 cannam@86: (eval $ac_try) 2>&5 cannam@86: ac_status=$? cannam@86: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@86: (exit $ac_status); }; } && cannam@86: { ac_try='test -s conftest.$ac_objext' cannam@86: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 cannam@86: (eval $ac_try) 2>&5 cannam@86: ac_status=$? cannam@86: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@86: (exit $ac_status); }; }; then cannam@86: ac_cv_c_bigendian=yes cannam@86: else cannam@86: echo "$as_me: failed program was:" >&5 cannam@86: sed 's/^/| /' conftest.$ac_ext >&5 cannam@86: cannam@86: ac_cv_c_bigendian=no cannam@86: fi cannam@86: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext cannam@86: else cannam@86: echo "$as_me: failed program was:" >&5 cannam@86: sed 's/^/| /' conftest.$ac_ext >&5 cannam@86: cannam@86: # It does not; compile a test program. cannam@86: if test "$cross_compiling" = yes; then cannam@86: # try to guess the endianness by grepping values into an object file cannam@86: ac_cv_c_bigendian=unknown cannam@86: cat >conftest.$ac_ext <<_ACEOF cannam@86: /* confdefs.h. */ cannam@86: _ACEOF cannam@86: cat confdefs.h >>conftest.$ac_ext cannam@86: cat >>conftest.$ac_ext <<_ACEOF cannam@86: /* end confdefs.h. */ cannam@86: short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; cannam@86: short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; cannam@86: void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; } cannam@86: short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; cannam@86: short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; cannam@86: void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; } cannam@86: int cannam@86: main () cannam@86: { cannam@86: _ascii (); _ebcdic (); cannam@86: ; cannam@86: return 0; cannam@86: } cannam@86: _ACEOF cannam@86: rm -f conftest.$ac_objext cannam@86: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 cannam@86: (eval $ac_compile) 2>conftest.er1 cannam@86: ac_status=$? cannam@86: grep -v '^ *+' conftest.er1 >conftest.err cannam@86: rm -f conftest.er1 cannam@86: cat conftest.err >&5 cannam@86: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@86: (exit $ac_status); } && cannam@86: { ac_try='test -z "$ac_c_werror_flag" cannam@86: || test ! -s conftest.err' cannam@86: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 cannam@86: (eval $ac_try) 2>&5 cannam@86: ac_status=$? cannam@86: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@86: (exit $ac_status); }; } && cannam@86: { ac_try='test -s conftest.$ac_objext' cannam@86: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 cannam@86: (eval $ac_try) 2>&5 cannam@86: ac_status=$? cannam@86: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@86: (exit $ac_status); }; }; then cannam@86: if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then cannam@86: ac_cv_c_bigendian=yes cannam@86: fi cannam@86: if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then cannam@86: if test "$ac_cv_c_bigendian" = unknown; then cannam@86: ac_cv_c_bigendian=no cannam@86: else cannam@86: # finding both strings is unlikely to happen, but who knows? cannam@86: ac_cv_c_bigendian=unknown cannam@86: fi cannam@86: fi cannam@86: else cannam@86: echo "$as_me: failed program was:" >&5 cannam@86: sed 's/^/| /' conftest.$ac_ext >&5 cannam@86: cannam@86: fi cannam@86: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext cannam@86: else cannam@86: cat >conftest.$ac_ext <<_ACEOF cannam@86: /* confdefs.h. */ cannam@86: _ACEOF cannam@86: cat confdefs.h >>conftest.$ac_ext cannam@86: cat >>conftest.$ac_ext <<_ACEOF cannam@86: /* end confdefs.h. */ cannam@86: int cannam@86: main () cannam@86: { cannam@86: /* Are we little or big endian? From Harbison&Steele. */ cannam@86: union cannam@86: { cannam@86: long l; cannam@86: char c[sizeof (long)]; cannam@86: } u; cannam@86: u.l = 1; cannam@86: exit (u.c[sizeof (long) - 1] == 1); cannam@86: } cannam@86: _ACEOF cannam@86: rm -f conftest$ac_exeext cannam@86: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 cannam@86: (eval $ac_link) 2>&5 cannam@86: ac_status=$? cannam@86: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@86: (exit $ac_status); } && { ac_try='./conftest$ac_exeext' cannam@86: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 cannam@86: (eval $ac_try) 2>&5 cannam@86: ac_status=$? cannam@86: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@86: (exit $ac_status); }; }; then cannam@86: ac_cv_c_bigendian=no cannam@86: else cannam@86: echo "$as_me: program exited with status $ac_status" >&5 cannam@86: echo "$as_me: failed program was:" >&5 cannam@86: sed 's/^/| /' conftest.$ac_ext >&5 cannam@86: cannam@86: ( exit $ac_status ) cannam@86: ac_cv_c_bigendian=yes cannam@86: fi cannam@86: rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext cannam@86: fi cannam@86: fi cannam@86: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext cannam@86: fi cannam@86: echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 cannam@86: echo "${ECHO_T}$ac_cv_c_bigendian" >&6 cannam@86: case $ac_cv_c_bigendian in cannam@86: yes) cannam@86: cannam@86: cat >>confdefs.h <<\_ACEOF cannam@86: #define WORDS_BIGENDIAN 1 cannam@86: _ACEOF cannam@86: ;; cannam@86: no) cannam@86: ;; cannam@86: *) cannam@86: { { echo "$as_me:$LINENO: error: unknown endianness cannam@86: presetting ac_cv_c_bigendian=no (or yes) will help" >&5 cannam@86: echo "$as_me: error: unknown endianness cannam@86: presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} cannam@86: { (exit 1); exit 1; }; } ;; cannam@86: esac cannam@86: cannam@86: cannam@86: echo "$as_me:$LINENO: checking for socklen_t" >&5 cannam@86: echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6 cannam@86: if test "${ac_cv_type_socklen_t+set}" = set; then cannam@86: echo $ECHO_N "(cached) $ECHO_C" >&6 cannam@86: else cannam@86: cat >conftest.$ac_ext <<_ACEOF cannam@86: /* confdefs.h. */ cannam@86: _ACEOF cannam@86: cat confdefs.h >>conftest.$ac_ext cannam@86: cat >>conftest.$ac_ext <<_ACEOF cannam@86: /* end confdefs.h. */ cannam@86: $ac_includes_default cannam@86: int cannam@86: main () cannam@86: { cannam@86: if ((socklen_t *) 0) cannam@86: return 0; cannam@86: if (sizeof (socklen_t)) cannam@86: return 0; cannam@86: ; cannam@86: return 0; cannam@86: } cannam@86: _ACEOF cannam@86: rm -f conftest.$ac_objext cannam@86: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 cannam@86: (eval $ac_compile) 2>conftest.er1 cannam@86: ac_status=$? cannam@86: grep -v '^ *+' conftest.er1 >conftest.err cannam@86: rm -f conftest.er1 cannam@86: cat conftest.err >&5 cannam@86: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@86: (exit $ac_status); } && cannam@86: { ac_try='test -z "$ac_c_werror_flag" cannam@86: || test ! -s conftest.err' cannam@86: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 cannam@86: (eval $ac_try) 2>&5 cannam@86: ac_status=$? cannam@86: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@86: (exit $ac_status); }; } && cannam@86: { ac_try='test -s conftest.$ac_objext' cannam@86: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 cannam@86: (eval $ac_try) 2>&5 cannam@86: ac_status=$? cannam@86: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@86: (exit $ac_status); }; }; then cannam@86: ac_cv_type_socklen_t=yes cannam@86: else cannam@86: echo "$as_me: failed program was:" >&5 cannam@86: sed 's/^/| /' conftest.$ac_ext >&5 cannam@86: cannam@86: ac_cv_type_socklen_t=no cannam@86: fi cannam@86: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext cannam@86: fi cannam@86: echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5 cannam@86: echo "${ECHO_T}$ac_cv_type_socklen_t" >&6 cannam@86: if test $ac_cv_type_socklen_t = yes; then cannam@86: cannam@86: cat >>confdefs.h <<_ACEOF cannam@86: #define HAVE_SOCKLEN_T 1 cannam@86: _ACEOF cannam@86: cannam@86: cannam@86: fi cannam@86: cannam@86: cannam@86: cannam@86: for ac_func in getopt_long cannam@86: do cannam@86: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` cannam@86: echo "$as_me:$LINENO: checking for $ac_func" >&5 cannam@86: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 cannam@86: if eval "test \"\${$as_ac_var+set}\" = set"; then cannam@86: echo $ECHO_N "(cached) $ECHO_C" >&6 cannam@86: else cannam@86: cat >conftest.$ac_ext <<_ACEOF cannam@86: /* confdefs.h. */ cannam@86: _ACEOF cannam@86: cat confdefs.h >>conftest.$ac_ext cannam@86: cat >>conftest.$ac_ext <<_ACEOF cannam@86: /* end confdefs.h. */ cannam@86: /* Define $ac_func to an innocuous variant, in case declares $ac_func. cannam@86: For example, HP-UX 11i declares gettimeofday. */ cannam@86: #define $ac_func innocuous_$ac_func cannam@86: cannam@86: /* System header to define __stub macros and hopefully few prototypes, cannam@86: which can conflict with char $ac_func (); below. cannam@86: Prefer to if __STDC__ is defined, since cannam@86: exists even on freestanding compilers. */ cannam@86: cannam@86: #ifdef __STDC__ cannam@86: # include cannam@86: #else cannam@86: # include cannam@86: #endif cannam@86: cannam@86: #undef $ac_func cannam@86: cannam@86: /* Override any gcc2 internal prototype to avoid an error. */ cannam@86: #ifdef __cplusplus cannam@86: extern "C" cannam@86: { cannam@86: #endif cannam@86: /* We use char because int might match the return type of a gcc2 cannam@86: builtin and then its argument prototype would still apply. */ cannam@86: char $ac_func (); cannam@86: /* The GNU C library defines this for functions which it implements cannam@86: to always fail with ENOSYS. Some functions are actually named cannam@86: something starting with __ and the normal name is an alias. */ cannam@86: #if defined (__stub_$ac_func) || defined (__stub___$ac_func) cannam@86: choke me cannam@86: #else cannam@86: char (*f) () = $ac_func; cannam@86: #endif cannam@86: #ifdef __cplusplus cannam@86: } cannam@86: #endif cannam@86: cannam@86: int cannam@86: main () cannam@86: { cannam@86: return f != $ac_func; cannam@86: ; cannam@86: return 0; cannam@86: } cannam@86: _ACEOF cannam@86: rm -f conftest.$ac_objext conftest$ac_exeext cannam@86: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 cannam@86: (eval $ac_link) 2>conftest.er1 cannam@86: ac_status=$? cannam@86: grep -v '^ *+' conftest.er1 >conftest.err cannam@86: rm -f conftest.er1 cannam@86: cat conftest.err >&5 cannam@86: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@86: (exit $ac_status); } && cannam@86: { ac_try='test -z "$ac_c_werror_flag" cannam@86: || test ! -s conftest.err' cannam@86: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 cannam@86: (eval $ac_try) 2>&5 cannam@86: ac_status=$? cannam@86: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@86: (exit $ac_status); }; } && cannam@86: { ac_try='test -s conftest$ac_exeext' cannam@86: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 cannam@86: (eval $ac_try) 2>&5 cannam@86: ac_status=$? cannam@86: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@86: (exit $ac_status); }; }; then cannam@86: eval "$as_ac_var=yes" cannam@86: else cannam@86: echo "$as_me: failed program was:" >&5 cannam@86: sed 's/^/| /' conftest.$ac_ext >&5 cannam@86: cannam@86: eval "$as_ac_var=no" cannam@86: fi cannam@86: rm -f conftest.err conftest.$ac_objext \ cannam@86: conftest$ac_exeext conftest.$ac_ext cannam@86: fi cannam@86: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 cannam@86: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 cannam@86: if test `eval echo '${'$as_ac_var'}'` = yes; then cannam@86: cat >>confdefs.h <<_ACEOF cannam@86: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 cannam@86: _ACEOF cannam@86: cannam@86: fi cannam@86: done cannam@86: cannam@86: cannam@86: case "$host_cpu" in cannam@86: i*86) cannam@86: cpu_ia32=true cannam@86: cat >>confdefs.h <<\_ACEOF cannam@86: #define FLAC__CPU_IA32 1 cannam@86: _ACEOF cannam@86: cannam@86: cannam@86: cannam@86: ;; cannam@86: powerpc) cannam@86: cpu_ppc=true cannam@86: cat >>confdefs.h <<\_ACEOF cannam@86: #define FLAC__CPU_PPC 1 cannam@86: _ACEOF cannam@86: cannam@86: cannam@86: cannam@86: ;; cannam@86: sparc) cannam@86: cpu_sparc=true cannam@86: cat >>confdefs.h <<\_ACEOF cannam@86: #define FLAC__CPU_SPARC 1 cannam@86: _ACEOF cannam@86: cannam@86: cannam@86: cannam@86: ;; cannam@86: esac cannam@86: cannam@86: cannam@86: if test "x$cpu_ia32" = xtrue; then cannam@86: FLaC__CPU_IA32_TRUE= cannam@86: FLaC__CPU_IA32_FALSE='#' cannam@86: else cannam@86: FLaC__CPU_IA32_TRUE='#' cannam@86: FLaC__CPU_IA32_FALSE= cannam@86: fi cannam@86: cannam@86: cannam@86: cannam@86: if test "x$cpu_ppc" = xtrue; then cannam@86: FLaC__CPU_PPC_TRUE= cannam@86: FLaC__CPU_PPC_FALSE='#' cannam@86: else cannam@86: FLaC__CPU_PPC_TRUE='#' cannam@86: FLaC__CPU_PPC_FALSE= cannam@86: fi cannam@86: cannam@86: cannam@86: cannam@86: if test "x$cpu_sparc" = xtrue; then cannam@86: FLaC__CPU_SPARC_TRUE= cannam@86: FLaC__CPU_SPARC_FALSE='#' cannam@86: else cannam@86: FLaC__CPU_SPARC_TRUE='#' cannam@86: FLaC__CPU_SPARC_FALSE= cannam@86: fi cannam@86: cannam@86: cannam@86: case "$host" in cannam@86: i386-*-openbsd3.[0-3]) OBJ_FORMAT=aoutb ;; cannam@86: *-*-cygwin|*mingw*) OBJ_FORMAT=win32 ;; cannam@86: *-*-darwin*) OBJ_FORMAT=macho ;; cannam@86: *) OBJ_FORMAT=elf ;; cannam@86: esac cannam@86: cannam@86: cannam@86: # only needed because of ntohl() usage, can get rid of after that's gone: cannam@86: case "$host" in cannam@86: *-*-cygwin|*mingw*) MINGW_WINSOCK_LIBS=-lwsock32 ;; cannam@86: *) MINGW_WINSOCK_LIBS= ;; cannam@86: esac cannam@86: cannam@86: cannam@86: case "$host" in cannam@86: *-pc-linux-gnu) cannam@86: sys_linux=true cannam@86: cat >>confdefs.h <<\_ACEOF cannam@86: #define FLAC__SYS_LINUX 1 cannam@86: _ACEOF cannam@86: cannam@86: cannam@86: cannam@86: ;; cannam@86: *-*-darwin*) cannam@86: sys_darwin=true cannam@86: cat >>confdefs.h <<\_ACEOF cannam@86: #define FLAC__SYS_DARWIN 1 cannam@86: _ACEOF cannam@86: cannam@86: cannam@86: cannam@86: ;; cannam@86: esac cannam@86: cannam@86: cannam@86: if test "x$sys_darwin" = xtrue; then cannam@86: FLaC__SYS_DARWIN_TRUE= cannam@86: FLaC__SYS_DARWIN_FALSE='#' cannam@86: else cannam@86: FLaC__SYS_DARWIN_TRUE='#' cannam@86: FLaC__SYS_DARWIN_FALSE= cannam@86: fi cannam@86: cannam@86: cannam@86: cannam@86: if test "x$sys_linux" = xtrue; then cannam@86: FLaC__SYS_LINUX_TRUE= cannam@86: FLaC__SYS_LINUX_FALSE='#' cannam@86: else cannam@86: FLaC__SYS_LINUX_TRUE='#' cannam@86: FLaC__SYS_LINUX_FALSE= cannam@86: fi cannam@86: cannam@86: cannam@86: if test "x$cpu_ia32" = xtrue ; then cannam@86: cat >>confdefs.h <<\_ACEOF cannam@86: #define FLAC__ALIGN_MALLOC_DATA 1 cannam@86: _ACEOF cannam@86: cannam@86: cannam@86: cannam@86: fi cannam@86: cannam@86: # Check whether --enable-asm-optimizations or --disable-asm-optimizations was given. cannam@86: if test "${enable_asm_optimizations+set}" = set; then cannam@86: enableval="$enable_asm_optimizations" cannam@86: asm_opt=no cannam@86: else cannam@86: asm_opt=yes cannam@86: fi; cannam@86: cannam@86: cannam@86: if test "x$asm_opt" = xno; then cannam@86: FLaC__NO_ASM_TRUE= cannam@86: FLaC__NO_ASM_FALSE='#' cannam@86: else cannam@86: FLaC__NO_ASM_TRUE='#' cannam@86: FLaC__NO_ASM_FALSE= cannam@86: fi cannam@86: cannam@86: if test "x$asm_opt" = xno ; then cannam@86: cat >>confdefs.h <<\_ACEOF cannam@86: #define FLAC__NO_ASM 1 cannam@86: _ACEOF cannam@86: cannam@86: cannam@86: cannam@86: fi cannam@86: cannam@86: # Check whether --enable-debug or --disable-debug was given. cannam@86: if test "${enable_debug+set}" = set; then cannam@86: enableval="$enable_debug" cannam@86: case "${enableval}" in cannam@86: yes) debug=true ;; cannam@86: no) debug=false ;; cannam@86: *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug" >&5 cannam@86: echo "$as_me: error: bad value ${enableval} for --enable-debug" >&2;} cannam@86: { (exit 1); exit 1; }; } ;; cannam@86: esac cannam@86: else cannam@86: debug=false cannam@86: fi; cannam@86: cannam@86: cannam@86: if test "x$debug" = xtrue; then cannam@86: DEBUG_TRUE= cannam@86: DEBUG_FALSE='#' cannam@86: else cannam@86: DEBUG_TRUE='#' cannam@86: DEBUG_FALSE= cannam@86: fi cannam@86: cannam@86: cannam@86: # Check whether --enable-sse or --disable-sse was given. cannam@86: if test "${enable_sse+set}" = set; then cannam@86: enableval="$enable_sse" cannam@86: case "${enableval}" in cannam@86: yes) sse_os=true ;; cannam@86: no) sse_os=false ;; cannam@86: *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-sse" >&5 cannam@86: echo "$as_me: error: bad value ${enableval} for --enable-sse" >&2;} cannam@86: { (exit 1); exit 1; }; } ;; cannam@86: esac cannam@86: else cannam@86: sse_os=false cannam@86: fi; cannam@86: cannam@86: cannam@86: if test "x$sse_os" = xtrue; then cannam@86: FLaC__SSE_OS_TRUE= cannam@86: FLaC__SSE_OS_FALSE='#' cannam@86: else cannam@86: FLaC__SSE_OS_TRUE='#' cannam@86: FLaC__SSE_OS_FALSE= cannam@86: fi cannam@86: cannam@86: if test "x$sse_os" = xtrue ; then cannam@86: cat >>confdefs.h <<\_ACEOF cannam@86: #define FLAC__SSE_OS 1 cannam@86: _ACEOF cannam@86: cannam@86: cannam@86: cannam@86: fi cannam@86: cannam@86: # Check whether --enable-3dnow or --disable-3dnow was given. cannam@86: if test "${enable_3dnow+set}" = set; then cannam@86: enableval="$enable_3dnow" cannam@86: case "${enableval}" in cannam@86: yes) use_3dnow=true ;; cannam@86: no) use_3dnow=false ;; cannam@86: *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-3dnow" >&5 cannam@86: echo "$as_me: error: bad value ${enableval} for --enable-3dnow" >&2;} cannam@86: { (exit 1); exit 1; }; } ;; cannam@86: esac cannam@86: else cannam@86: use_3dnow=true cannam@86: fi; cannam@86: cannam@86: cannam@86: if test "x$use_3dnow" = xtrue; then cannam@86: FLaC__USE_3DNOW_TRUE= cannam@86: FLaC__USE_3DNOW_FALSE='#' cannam@86: else cannam@86: FLaC__USE_3DNOW_TRUE='#' cannam@86: FLaC__USE_3DNOW_FALSE= cannam@86: fi cannam@86: cannam@86: if test "x$use_3dnow" = xtrue ; then cannam@86: cat >>confdefs.h <<\_ACEOF cannam@86: #define FLAC__USE_3DNOW 1 cannam@86: _ACEOF cannam@86: cannam@86: cannam@86: cannam@86: fi cannam@86: cannam@86: # Check whether --enable-altivec or --disable-altivec was given. cannam@86: if test "${enable_altivec+set}" = set; then cannam@86: enableval="$enable_altivec" cannam@86: case "${enableval}" in cannam@86: yes) use_altivec=true ;; cannam@86: no) use_altivec=false ;; cannam@86: *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-altivec" >&5 cannam@86: echo "$as_me: error: bad value ${enableval} for --enable-altivec" >&2;} cannam@86: { (exit 1); exit 1; }; } ;; cannam@86: esac cannam@86: else cannam@86: use_altivec=true cannam@86: fi; cannam@86: cannam@86: cannam@86: if test "x$use_altivec" = xtrue; then cannam@86: FLaC__USE_ALTIVEC_TRUE= cannam@86: FLaC__USE_ALTIVEC_FALSE='#' cannam@86: else cannam@86: FLaC__USE_ALTIVEC_TRUE='#' cannam@86: FLaC__USE_ALTIVEC_FALSE= cannam@86: fi cannam@86: cannam@86: if test "x$use_altivec" = xtrue ; then cannam@86: cat >>confdefs.h <<\_ACEOF cannam@86: #define FLAC__USE_ALTIVEC 1 cannam@86: _ACEOF cannam@86: cannam@86: cannam@86: cannam@86: fi cannam@86: cannam@86: # Check whether --enable-thorough-tests or --disable-thorough-tests was given. cannam@86: if test "${enable_thorough_tests+set}" = set; then cannam@86: enableval="$enable_thorough_tests" cannam@86: case "${enableval}" in cannam@86: yes) thorough_tests=true ;; cannam@86: no) thorough_tests=false ;; cannam@86: *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-thorough-tests" >&5 cannam@86: echo "$as_me: error: bad value ${enableval} for --enable-thorough-tests" >&2;} cannam@86: { (exit 1); exit 1; }; } ;; cannam@86: esac cannam@86: else cannam@86: thorough_tests=true cannam@86: fi; cannam@86: # Check whether --enable-exhaustive-tests or --disable-exhaustive-tests was given. cannam@86: if test "${enable_exhaustive_tests+set}" = set; then cannam@86: enableval="$enable_exhaustive_tests" cannam@86: case "${enableval}" in cannam@86: yes) exhaustive_tests=true ;; cannam@86: no) exhaustive_tests=false ;; cannam@86: *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-exhaustive-tests" >&5 cannam@86: echo "$as_me: error: bad value ${enableval} for --enable-exhaustive-tests" >&2;} cannam@86: { (exit 1); exit 1; }; } ;; cannam@86: esac cannam@86: else cannam@86: exhaustive_tests=false cannam@86: fi; cannam@86: if test "x$thorough_tests" = xfalse ; then cannam@86: FLAC__TEST_LEVEL=0 cannam@86: elif test "x$exhaustive_tests" = xfalse ; then cannam@86: FLAC__TEST_LEVEL=1 cannam@86: else cannam@86: FLAC__TEST_LEVEL=2 cannam@86: fi cannam@86: cannam@86: cannam@86: # Check whether --enable-valgrind-testing or --disable-valgrind-testing was given. cannam@86: if test "${enable_valgrind_testing+set}" = set; then cannam@86: enableval="$enable_valgrind_testing" cannam@86: case "${enableval}" in cannam@86: yes) FLAC__TEST_WITH_VALGRIND=yes ;; cannam@86: no) FLAC__TEST_WITH_VALGRIND=no ;; cannam@86: *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-valgrind-testing" >&5 cannam@86: echo "$as_me: error: bad value ${enableval} for --enable-valgrind-testing" >&2;} cannam@86: { (exit 1); exit 1; }; } ;; cannam@86: esac cannam@86: else cannam@86: FLAC__TEST_WITH_VALGRIND=no cannam@86: fi; cannam@86: cannam@86: cannam@86: # Check whether --enable-doxygen-docs or --disable-doxygen-docs was given. cannam@86: if test "${enable_doxygen_docs+set}" = set; then cannam@86: enableval="$enable_doxygen_docs" cannam@86: case "${enableval}" in cannam@86: yes) enable_doxygen_docs=true ;; cannam@86: no) enable_doxygen_docs=false ;; cannam@86: *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-doxygen-docs" >&5 cannam@86: echo "$as_me: error: bad value ${enableval} for --enable-doxygen-docs" >&2;} cannam@86: { (exit 1); exit 1; }; } ;; cannam@86: esac cannam@86: else cannam@86: enable_doxygen_docs=true cannam@86: fi; cannam@86: if test "x$enable_doxygen_docs" != xfalse ; then cannam@86: for ac_prog in doxygen cannam@86: do cannam@86: # Extract the first word of "$ac_prog", so it can be a program name with args. cannam@86: set dummy $ac_prog; ac_word=$2 cannam@86: echo "$as_me:$LINENO: checking for $ac_word" >&5 cannam@86: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 cannam@86: if test "${ac_cv_prog_DOXYGEN+set}" = set; then cannam@86: echo $ECHO_N "(cached) $ECHO_C" >&6 cannam@86: else cannam@86: if test -n "$DOXYGEN"; then cannam@86: ac_cv_prog_DOXYGEN="$DOXYGEN" # Let the user override the test. cannam@86: else cannam@86: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR cannam@86: for as_dir in $PATH cannam@86: do cannam@86: IFS=$as_save_IFS cannam@86: test -z "$as_dir" && as_dir=. cannam@86: for ac_exec_ext in '' $ac_executable_extensions; do cannam@86: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then cannam@86: ac_cv_prog_DOXYGEN="$ac_prog" cannam@86: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 cannam@86: break 2 cannam@86: fi cannam@86: done cannam@86: done cannam@86: cannam@86: fi cannam@86: fi cannam@86: DOXYGEN=$ac_cv_prog_DOXYGEN cannam@86: if test -n "$DOXYGEN"; then cannam@86: echo "$as_me:$LINENO: result: $DOXYGEN" >&5 cannam@86: echo "${ECHO_T}$DOXYGEN" >&6 cannam@86: else cannam@86: echo "$as_me:$LINENO: result: no" >&5 cannam@86: echo "${ECHO_T}no" >&6 cannam@86: fi cannam@86: cannam@86: test -n "$DOXYGEN" && break cannam@86: done cannam@86: cannam@86: fi cannam@86: cannam@86: cannam@86: if test -n "$DOXYGEN"; then cannam@86: FLaC__HAS_DOXYGEN_TRUE= cannam@86: FLaC__HAS_DOXYGEN_FALSE='#' cannam@86: else cannam@86: FLaC__HAS_DOXYGEN_TRUE='#' cannam@86: FLaC__HAS_DOXYGEN_FALSE= cannam@86: fi cannam@86: cannam@86: cannam@86: # Check whether --enable-local-xmms-plugin or --disable-local-xmms-plugin was given. cannam@86: if test "${enable_local_xmms_plugin+set}" = set; then cannam@86: enableval="$enable_local_xmms_plugin" cannam@86: case "${enableval}" in cannam@86: yes) install_xmms_plugin_locally=true ;; cannam@86: no) install_xmms_plugin_locally=false ;; cannam@86: *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-local-xmms-plugin" >&5 cannam@86: echo "$as_me: error: bad value ${enableval} for --enable-local-xmms-plugin" >&2;} cannam@86: { (exit 1); exit 1; }; } ;; cannam@86: esac cannam@86: else cannam@86: install_xmms_plugin_locally=false cannam@86: fi; cannam@86: cannam@86: cannam@86: if test "x$install_xmms_plugin_locally" = xtrue; then cannam@86: FLaC__INSTALL_XMMS_PLUGIN_LOCALLY_TRUE= cannam@86: FLaC__INSTALL_XMMS_PLUGIN_LOCALLY_FALSE='#' cannam@86: else cannam@86: FLaC__INSTALL_XMMS_PLUGIN_LOCALLY_TRUE='#' cannam@86: FLaC__INSTALL_XMMS_PLUGIN_LOCALLY_FALSE= cannam@86: fi cannam@86: cannam@86: cannam@86: # Check whether --enable-xmms-plugin or --disable-xmms-plugin was given. cannam@86: if test "${enable_xmms_plugin+set}" = set; then cannam@86: enableval="$enable_xmms_plugin" cannam@86: case "${enableval}" in cannam@86: yes) enable_xmms_plugin=true ;; cannam@86: no) enable_xmms_plugin=false ;; cannam@86: *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-xmms-plugin" >&5 cannam@86: echo "$as_me: error: bad value ${enableval} for --enable-xmms-plugin" >&2;} cannam@86: { (exit 1); exit 1; }; } ;; cannam@86: esac cannam@86: else cannam@86: enable_xmms_plugin=true cannam@86: fi; cannam@86: if test "x$enable_xmms_plugin" != xfalse ; then cannam@86: cannam@86: cannam@86: # Check whether --with-xmms-prefix or --without-xmms-prefix was given. cannam@86: if test "${with_xmms_prefix+set}" = set; then cannam@86: withval="$with_xmms_prefix" cannam@86: xmms_config_prefix="$withval" cannam@86: else cannam@86: xmms_config_prefix="" cannam@86: fi; cannam@86: cannam@86: # Check whether --with-xmms-exec-prefix or --without-xmms-exec-prefix was given. cannam@86: if test "${with_xmms_exec_prefix+set}" = set; then cannam@86: withval="$with_xmms_exec_prefix" cannam@86: xmms_config_exec_prefix="$withval" cannam@86: else cannam@86: xmms_config_exec_prefix="" cannam@86: fi; cannam@86: cannam@86: if test x$xmms_config_exec_prefix != x; then cannam@86: xmms_config_args="$xmms_config_args --exec-prefix=$xmms_config_exec_prefix" cannam@86: if test x${XMMS_CONFIG+set} != xset; then cannam@86: XMMS_CONFIG=$xmms_config_exec_prefix/bin/xmms-config cannam@86: fi cannam@86: fi cannam@86: cannam@86: if test x$xmms_config_prefix != x; then cannam@86: xmms_config_args="$xmms_config_args --prefix=$xmms_config_prefix" cannam@86: if test x${XMMS_CONFIG+set} != xset; then cannam@86: XMMS_CONFIG=$xmms_config_prefix/bin/xmms-config cannam@86: fi cannam@86: fi cannam@86: cannam@86: # Extract the first word of "xmms-config", so it can be a program name with args. cannam@86: set dummy xmms-config; ac_word=$2 cannam@86: echo "$as_me:$LINENO: checking for $ac_word" >&5 cannam@86: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 cannam@86: if test "${ac_cv_path_XMMS_CONFIG+set}" = set; then cannam@86: echo $ECHO_N "(cached) $ECHO_C" >&6 cannam@86: else cannam@86: case $XMMS_CONFIG in cannam@86: [\\/]* | ?:[\\/]*) cannam@86: ac_cv_path_XMMS_CONFIG="$XMMS_CONFIG" # Let the user override the test with a path. cannam@86: ;; cannam@86: *) cannam@86: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR cannam@86: for as_dir in $PATH cannam@86: do cannam@86: IFS=$as_save_IFS cannam@86: test -z "$as_dir" && as_dir=. cannam@86: for ac_exec_ext in '' $ac_executable_extensions; do cannam@86: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then cannam@86: ac_cv_path_XMMS_CONFIG="$as_dir/$ac_word$ac_exec_ext" cannam@86: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 cannam@86: break 2 cannam@86: fi cannam@86: done cannam@86: done cannam@86: cannam@86: test -z "$ac_cv_path_XMMS_CONFIG" && ac_cv_path_XMMS_CONFIG="no" cannam@86: ;; cannam@86: esac cannam@86: fi cannam@86: XMMS_CONFIG=$ac_cv_path_XMMS_CONFIG cannam@86: cannam@86: if test -n "$XMMS_CONFIG"; then cannam@86: echo "$as_me:$LINENO: result: $XMMS_CONFIG" >&5 cannam@86: echo "${ECHO_T}$XMMS_CONFIG" >&6 cannam@86: else cannam@86: echo "$as_me:$LINENO: result: no" >&5 cannam@86: echo "${ECHO_T}no" >&6 cannam@86: fi cannam@86: cannam@86: min_xmms_version=0.9.5.1 cannam@86: cannam@86: if test "$XMMS_CONFIG" = "no"; then cannam@86: no_xmms=yes cannam@86: else cannam@86: XMMS_CFLAGS=`$XMMS_CONFIG $xmms_config_args --cflags` cannam@86: XMMS_LIBS=`$XMMS_CONFIG $xmms_config_args --libs` cannam@86: XMMS_VERSION=`$XMMS_CONFIG $xmms_config_args --version` cannam@86: XMMS_DATA_DIR=`$XMMS_CONFIG $xmms_config_args --data-dir` cannam@86: XMMS_PLUGIN_DIR=`$XMMS_CONFIG $xmms_config_args --plugin-dir` cannam@86: XMMS_VISUALIZATION_PLUGIN_DIR=`$XMMS_CONFIG $xmms_config_args \ cannam@86: --visualization-plugin-dir` cannam@86: XMMS_INPUT_PLUGIN_DIR=`$XMMS_CONFIG $xmms_config_args --input-plugin-dir` cannam@86: XMMS_OUTPUT_PLUGIN_DIR=`$XMMS_CONFIG $xmms_config_args --output-plugin-dir` cannam@86: XMMS_EFFECT_PLUGIN_DIR=`$XMMS_CONFIG $xmms_config_args --effect-plugin-dir` cannam@86: XMMS_GENERAL_PLUGIN_DIR=`$XMMS_CONFIG $xmms_config_args --general-plugin-dir` cannam@86: cannam@86: cannam@86: cannam@86: # Determine which version number is greater. Prints 2 to stdout if cannam@86: # the second number is greater, 1 if the first number is greater, cannam@86: # 0 if the numbers are equal. cannam@86: cannam@86: # Written 15 December 1999 by Ben Gertzfield cannam@86: # Revised 15 December 1999 by Jim Monty cannam@86: cannam@86: for ac_prog in gawk mawk nawk awk cannam@86: do cannam@86: # Extract the first word of "$ac_prog", so it can be a program name with args. cannam@86: set dummy $ac_prog; ac_word=$2 cannam@86: echo "$as_me:$LINENO: checking for $ac_word" >&5 cannam@86: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 cannam@86: if test "${ac_cv_prog_AWK+set}" = set; then cannam@86: echo $ECHO_N "(cached) $ECHO_C" >&6 cannam@86: else cannam@86: if test -n "$AWK"; then cannam@86: ac_cv_prog_AWK="$AWK" # Let the user override the test. cannam@86: else cannam@86: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR cannam@86: for as_dir in $PATH cannam@86: do cannam@86: IFS=$as_save_IFS cannam@86: test -z "$as_dir" && as_dir=. cannam@86: for ac_exec_ext in '' $ac_executable_extensions; do cannam@86: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then cannam@86: ac_cv_prog_AWK="$ac_prog" cannam@86: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 cannam@86: break 2 cannam@86: fi cannam@86: done cannam@86: done cannam@86: cannam@86: fi cannam@86: fi cannam@86: AWK=$ac_cv_prog_AWK cannam@86: if test -n "$AWK"; then cannam@86: echo "$as_me:$LINENO: result: $AWK" >&5 cannam@86: echo "${ECHO_T}$AWK" >&6 cannam@86: else cannam@86: echo "$as_me:$LINENO: result: no" >&5 cannam@86: echo "${ECHO_T}no" >&6 cannam@86: fi cannam@86: cannam@86: test -n "$AWK" && break cannam@86: done cannam@86: cannam@86: xmms_got_version=` $AWK ' \ cannam@86: BEGIN { \ cannam@86: print vercmp(ARGV[1], ARGV[2]); \ cannam@86: } \ cannam@86: \ cannam@86: function vercmp(ver1, ver2, ver1arr, ver2arr, \ cannam@86: ver1len, ver2len, \ cannam@86: ver1int, ver2int, len, i, p) { \ cannam@86: \ cannam@86: ver1len = split(ver1, ver1arr, /\./); \ cannam@86: ver2len = split(ver2, ver2arr, /\./); \ cannam@86: \ cannam@86: len = ver1len > ver2len ? ver1len : ver2len; \ cannam@86: \ cannam@86: for (i = 1; i <= len; i++) { \ cannam@86: p = 1000 ^ (len - i); \ cannam@86: ver1int += ver1arr[i] * p; \ cannam@86: ver2int += ver2arr[i] * p; \ cannam@86: } \ cannam@86: \ cannam@86: if (ver1int < ver2int) \ cannam@86: return 2; \ cannam@86: else if (ver1int > ver2int) \ cannam@86: return 1; \ cannam@86: else \ cannam@86: return 0; \ cannam@86: }' $XMMS_VERSION $min_xmms_version` cannam@86: cannam@86: if test $xmms_got_version -eq 2; then # failure cannam@86: no_xmms=version cannam@86: else # success! cannam@86: : cannam@86: fi cannam@86: cannam@86: fi cannam@86: cannam@86: echo "$as_me:$LINENO: checking for XMMS - version >= $min_xmms_version" >&5 cannam@86: echo $ECHO_N "checking for XMMS - version >= $min_xmms_version... $ECHO_C" >&6 cannam@86: cannam@86: if test "x$no_xmms" = x; then cannam@86: echo "$as_me:$LINENO: result: yes" >&5 cannam@86: echo "${ECHO_T}yes" >&6 cannam@86: : cannam@86: else cannam@86: echo "$as_me:$LINENO: result: no" >&5 cannam@86: echo "${ECHO_T}no" >&6 cannam@86: cannam@86: if test "$XMMS_CONFIG" = "no" ; then cannam@86: echo "*** The xmms-config script installed by XMMS could not be found." cannam@86: echo "*** If XMMS was installed in PREFIX, make sure PREFIX/bin is in" cannam@86: echo "*** your path, or set the XMMS_CONFIG environment variable to the" cannam@86: echo "*** full path to xmms-config." cannam@86: else cannam@86: if test "$no_xmms" = "version"; then cannam@86: echo "*** An old version of XMMS, $XMMS_VERSION, was found." cannam@86: echo "*** You need a version of XMMS newer than $min_xmms_version." cannam@86: echo "*** The latest version of XMMS is always available from" cannam@86: echo "*** http://www.xmms.org/" cannam@86: echo "***" cannam@86: cannam@86: echo "*** If you have already installed a sufficiently new version, this error" cannam@86: echo "*** probably means that the wrong copy of the xmms-config shell script is" cannam@86: echo "*** being found. The easiest way to fix this is to remove the old version" cannam@86: echo "*** of XMMS, but you can also set the XMMS_CONFIG environment to point to the" cannam@86: echo "*** correct copy of xmms-config. (In this case, you will have to" cannam@86: echo "*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf" cannam@86: echo "*** so that the correct libraries are found at run-time)" cannam@86: fi cannam@86: fi cannam@86: XMMS_CFLAGS="" cannam@86: XMMS_LIBS="" cannam@86: { echo "$as_me:$LINENO: WARNING: *** XMMS >= 0.9.5.1 not installed - XMMS support will not be built" >&5 cannam@86: echo "$as_me: WARNING: *** XMMS >= 0.9.5.1 not installed - XMMS support will not be built" >&2;} cannam@86: fi cannam@86: cannam@86: cannam@86: cannam@86: cannam@86: cannam@86: cannam@86: cannam@86: cannam@86: cannam@86: cannam@86: cannam@86: fi cannam@86: cannam@86: cannam@86: if test -n "$XMMS_INPUT_PLUGIN_DIR"; then cannam@86: FLaC__HAS_XMMS_TRUE= cannam@86: FLaC__HAS_XMMS_FALSE='#' cannam@86: else cannam@86: FLaC__HAS_XMMS_TRUE='#' cannam@86: FLaC__HAS_XMMS_FALSE= cannam@86: fi cannam@86: cannam@86: cannam@86: # Check whether --enable-cpplibs or --disable-cpplibs was given. cannam@86: if test "${enable_cpplibs+set}" = set; then cannam@86: enableval="$enable_cpplibs" cannam@86: case "${enableval}" in cannam@86: yes) disable_cpplibs=false ;; cannam@86: no) disable_cpplibs=true ;; cannam@86: *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-cpplibs" >&5 cannam@86: echo "$as_me: error: bad value ${enableval} for --enable-cpplibs" >&2;} cannam@86: { (exit 1); exit 1; }; } ;; cannam@86: esac cannam@86: else cannam@86: disable_cpplibs=false cannam@86: fi; cannam@86: cannam@86: cannam@86: if test "x$disable_cpplibs" != xtrue; then cannam@86: FLaC__WITH_CPPLIBS_TRUE= cannam@86: FLaC__WITH_CPPLIBS_FALSE='#' cannam@86: else cannam@86: FLaC__WITH_CPPLIBS_TRUE='#' cannam@86: FLaC__WITH_CPPLIBS_FALSE= cannam@86: fi cannam@86: cannam@86: cannam@86: # Check whether --enable-ogg or --disable-ogg was given. cannam@86: if test "${enable_ogg+set}" = set; then cannam@86: enableval="$enable_ogg" cannam@86: want_ogg=$enableval cannam@86: else cannam@86: want_ogg=yes cannam@86: fi; cannam@86: cannam@86: if test "x$want_ogg" != "xno"; then cannam@86: cannam@86: # Check whether --with-ogg or --without-ogg was given. cannam@86: if test "${with_ogg+set}" = set; then cannam@86: withval="$with_ogg" cannam@86: ogg_prefix="$withval" cannam@86: else cannam@86: ogg_prefix="" cannam@86: fi; cannam@86: cannam@86: # Check whether --with-ogg-libraries or --without-ogg-libraries was given. cannam@86: if test "${with_ogg_libraries+set}" = set; then cannam@86: withval="$with_ogg_libraries" cannam@86: ogg_libraries="$withval" cannam@86: else cannam@86: ogg_libraries="" cannam@86: fi; cannam@86: cannam@86: # Check whether --with-ogg-includes or --without-ogg-includes was given. cannam@86: if test "${with_ogg_includes+set}" = set; then cannam@86: withval="$with_ogg_includes" cannam@86: ogg_includes="$withval" cannam@86: else cannam@86: ogg_includes="" cannam@86: fi; cannam@86: # Check whether --enable-oggtest or --disable-oggtest was given. cannam@86: if test "${enable_oggtest+set}" = set; then cannam@86: enableval="$enable_oggtest" cannam@86: cannam@86: else cannam@86: enable_oggtest=yes cannam@86: fi; cannam@86: cannam@86: if test "x$ogg_libraries" != "x" ; then cannam@86: OGG_LIBS="-L$ogg_libraries" cannam@86: elif test "x$ogg_prefix" != "x" ; then cannam@86: OGG_LIBS="-L$ogg_prefix/lib" cannam@86: elif test "x$prefix" != "xNONE" ; then cannam@86: OGG_LIBS="-L$prefix/lib" cannam@86: fi cannam@86: cannam@86: OGG_LIBS="$OGG_LIBS -logg" cannam@86: cannam@86: if test "x$ogg_includes" != "x" ; then cannam@86: OGG_CFLAGS="-I$ogg_includes" cannam@86: elif test "x$ogg_prefix" != "x" ; then cannam@86: OGG_CFLAGS="-I$ogg_prefix/include" cannam@86: elif test "x$prefix" != "xNONE"; then cannam@86: OGG_CFLAGS="-I$prefix/include" cannam@86: fi cannam@86: cannam@86: echo "$as_me:$LINENO: checking for Ogg" >&5 cannam@86: echo $ECHO_N "checking for Ogg... $ECHO_C" >&6 cannam@86: no_ogg="" cannam@86: cannam@86: cannam@86: if test "x$enable_oggtest" = "xyes" ; then cannam@86: ac_save_CFLAGS="$CFLAGS" cannam@86: ac_save_LIBS="$LIBS" cannam@86: CFLAGS="$CFLAGS $OGG_CFLAGS" cannam@86: LIBS="$LIBS $OGG_LIBS" cannam@86: rm -f conf.oggtest cannam@86: if test "$cross_compiling" = yes; then cannam@86: echo $ac_n "cross compiling; assumed OK... $ac_c" cannam@86: else cannam@86: cat >conftest.$ac_ext <<_ACEOF cannam@86: /* confdefs.h. */ cannam@86: _ACEOF cannam@86: cat confdefs.h >>conftest.$ac_ext cannam@86: cat >>conftest.$ac_ext <<_ACEOF cannam@86: /* end confdefs.h. */ cannam@86: cannam@86: #include cannam@86: #include cannam@86: #include cannam@86: #include cannam@86: cannam@86: int main () cannam@86: { cannam@86: system("touch conf.oggtest"); cannam@86: return 0; cannam@86: } cannam@86: cannam@86: cannam@86: _ACEOF cannam@86: rm -f conftest$ac_exeext cannam@86: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 cannam@86: (eval $ac_link) 2>&5 cannam@86: ac_status=$? cannam@86: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@86: (exit $ac_status); } && { ac_try='./conftest$ac_exeext' cannam@86: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 cannam@86: (eval $ac_try) 2>&5 cannam@86: ac_status=$? cannam@86: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@86: (exit $ac_status); }; }; then cannam@86: : cannam@86: else cannam@86: echo "$as_me: program exited with status $ac_status" >&5 cannam@86: echo "$as_me: failed program was:" >&5 cannam@86: sed 's/^/| /' conftest.$ac_ext >&5 cannam@86: cannam@86: ( exit $ac_status ) cannam@86: no_ogg=yes cannam@86: fi cannam@86: rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext cannam@86: fi cannam@86: CFLAGS="$ac_save_CFLAGS" cannam@86: LIBS="$ac_save_LIBS" cannam@86: fi cannam@86: cannam@86: if test "x$no_ogg" = "x" ; then cannam@86: echo "$as_me:$LINENO: result: yes" >&5 cannam@86: echo "${ECHO_T}yes" >&6 cannam@86: have_ogg=yes cannam@86: else cannam@86: echo "$as_me:$LINENO: result: no" >&5 cannam@86: echo "${ECHO_T}no" >&6 cannam@86: if test -f conf.oggtest ; then cannam@86: : cannam@86: else cannam@86: echo "*** Could not run Ogg test program, checking why..." cannam@86: CFLAGS="$CFLAGS $OGG_CFLAGS" cannam@86: LIBS="$LIBS $OGG_LIBS" cannam@86: cat >conftest.$ac_ext <<_ACEOF cannam@86: /* confdefs.h. */ cannam@86: _ACEOF cannam@86: cat confdefs.h >>conftest.$ac_ext cannam@86: cat >>conftest.$ac_ext <<_ACEOF cannam@86: /* end confdefs.h. */ cannam@86: cannam@86: #include cannam@86: #include cannam@86: cannam@86: int cannam@86: main () cannam@86: { cannam@86: return 0; cannam@86: ; cannam@86: return 0; cannam@86: } cannam@86: _ACEOF cannam@86: rm -f conftest.$ac_objext conftest$ac_exeext cannam@86: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 cannam@86: (eval $ac_link) 2>conftest.er1 cannam@86: ac_status=$? cannam@86: grep -v '^ *+' conftest.er1 >conftest.err cannam@86: rm -f conftest.er1 cannam@86: cat conftest.err >&5 cannam@86: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@86: (exit $ac_status); } && cannam@86: { ac_try='test -z "$ac_c_werror_flag" cannam@86: || test ! -s conftest.err' cannam@86: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 cannam@86: (eval $ac_try) 2>&5 cannam@86: ac_status=$? cannam@86: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@86: (exit $ac_status); }; } && cannam@86: { ac_try='test -s conftest$ac_exeext' cannam@86: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 cannam@86: (eval $ac_try) 2>&5 cannam@86: ac_status=$? cannam@86: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@86: (exit $ac_status); }; }; then cannam@86: echo "*** The test program compiled, but did not run. This usually means" cannam@86: echo "*** that the run-time linker is not finding Ogg or finding the wrong" cannam@86: echo "*** version of Ogg. If it is not finding Ogg, you'll need to set your" cannam@86: echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" cannam@86: echo "*** to the installed location Also, make sure you have run ldconfig if that" cannam@86: echo "*** is required on your system" cannam@86: echo "***" cannam@86: echo "*** If you have an old version installed, it is best to remove it, although" cannam@86: echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" cannam@86: else cannam@86: echo "$as_me: failed program was:" >&5 cannam@86: sed 's/^/| /' conftest.$ac_ext >&5 cannam@86: cannam@86: echo "*** The test program failed to compile or link. See the file config.log for the" cannam@86: echo "*** exact error that occured. This usually means Ogg was incorrectly installed" cannam@86: echo "*** or that you have moved Ogg since it was installed." cannam@86: fi cannam@86: rm -f conftest.err conftest.$ac_objext \ cannam@86: conftest$ac_exeext conftest.$ac_ext cannam@86: CFLAGS="$ac_save_CFLAGS" cannam@86: LIBS="$ac_save_LIBS" cannam@86: fi cannam@86: OGG_CFLAGS="" cannam@86: OGG_LIBS="" cannam@86: { echo "$as_me:$LINENO: WARNING: *** Ogg development enviroment not installed - Ogg support will not be built" >&5 cannam@86: echo "$as_me: WARNING: *** Ogg development enviroment not installed - Ogg support will not be built" >&2;} cannam@86: fi cannam@86: cannam@86: cannam@86: rm -f conf.oggtest cannam@86: cannam@86: fi cannam@86: cannam@86: cannam@86: cannam@86: if test "x$have_ogg" = xyes; then cannam@86: FLaC__HAS_OGG_TRUE= cannam@86: FLaC__HAS_OGG_FALSE='#' cannam@86: else cannam@86: FLaC__HAS_OGG_TRUE='#' cannam@86: FLaC__HAS_OGG_FALSE= cannam@86: fi cannam@86: cannam@86: if test "x$have_ogg" = xyes ; then cannam@86: cat >>confdefs.h <<\_ACEOF cannam@86: #define FLAC__HAS_OGG 1 cannam@86: _ACEOF cannam@86: cannam@86: cannam@86: cannam@86: fi cannam@86: cannam@86: cannam@86: if test "X$prefix" = "XNONE"; then cannam@86: acl_final_prefix="$ac_default_prefix" cannam@86: else cannam@86: acl_final_prefix="$prefix" cannam@86: fi cannam@86: if test "X$exec_prefix" = "XNONE"; then cannam@86: acl_final_exec_prefix='${prefix}' cannam@86: else cannam@86: acl_final_exec_prefix="$exec_prefix" cannam@86: fi cannam@86: acl_save_prefix="$prefix" cannam@86: prefix="$acl_final_prefix" cannam@86: eval acl_final_exec_prefix=\"$acl_final_exec_prefix\" cannam@86: prefix="$acl_save_prefix" cannam@86: cannam@86: cannam@86: # Check whether --with-gnu-ld or --without-gnu-ld was given. cannam@86: if test "${with_gnu_ld+set}" = set; then cannam@86: withval="$with_gnu_ld" cannam@86: test "$withval" = no || with_gnu_ld=yes cannam@86: else cannam@86: with_gnu_ld=no cannam@86: fi; cannam@86: # Prepare PATH_SEPARATOR. cannam@86: # The user is always right. cannam@86: if test "${PATH_SEPARATOR+set}" != set; then cannam@86: echo "#! /bin/sh" >conf$$.sh cannam@86: echo "exit 0" >>conf$$.sh cannam@86: chmod +x conf$$.sh cannam@86: if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then cannam@86: PATH_SEPARATOR=';' cannam@86: else cannam@86: PATH_SEPARATOR=: cannam@86: fi cannam@86: rm -f conf$$.sh cannam@86: fi cannam@86: ac_prog=ld cannam@86: if test "$GCC" = yes; then cannam@86: # Check if gcc -print-prog-name=ld gives a path. cannam@86: echo "$as_me:$LINENO: checking for ld used by GCC" >&5 cannam@86: echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6 cannam@86: case $host in cannam@86: *-*-mingw*) cannam@86: # gcc leaves a trailing carriage return which upsets mingw cannam@86: ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; cannam@86: *) cannam@86: ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; cannam@86: esac cannam@86: case $ac_prog in cannam@86: # Accept absolute paths. cannam@86: [\\/]* | [A-Za-z]:[\\/]*) cannam@86: re_direlt='/[^/][^/]*/\.\./' cannam@86: # Canonicalize the path of ld cannam@86: ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` cannam@86: while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do cannam@86: ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` cannam@86: done cannam@86: test -z "$LD" && LD="$ac_prog" cannam@86: ;; cannam@86: "") cannam@86: # If it fails, then pretend we aren't using GCC. cannam@86: ac_prog=ld cannam@86: ;; cannam@86: *) cannam@86: # If it is relative, then search for the first ld in PATH. cannam@86: with_gnu_ld=unknown cannam@86: ;; cannam@86: esac cannam@86: elif test "$with_gnu_ld" = yes; then cannam@86: echo "$as_me:$LINENO: checking for GNU ld" >&5 cannam@86: echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 cannam@86: else cannam@86: echo "$as_me:$LINENO: checking for non-GNU ld" >&5 cannam@86: echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 cannam@86: fi cannam@86: if test "${acl_cv_path_LD+set}" = set; then cannam@86: echo $ECHO_N "(cached) $ECHO_C" >&6 cannam@86: else cannam@86: if test -z "$LD"; then cannam@86: IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" cannam@86: for ac_dir in $PATH; do cannam@86: test -z "$ac_dir" && ac_dir=. cannam@86: if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then cannam@86: acl_cv_path_LD="$ac_dir/$ac_prog" cannam@86: # Check to see if the program is GNU ld. I'd rather use --version, cannam@86: # but apparently some GNU ld's only accept -v. cannam@86: # Break only if it was the GNU/non-GNU ld that we prefer. cannam@86: case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in cannam@86: *GNU* | *'with BFD'*) cannam@86: test "$with_gnu_ld" != no && break ;; cannam@86: *) cannam@86: test "$with_gnu_ld" != yes && break ;; cannam@86: esac cannam@86: fi cannam@86: done cannam@86: IFS="$ac_save_ifs" cannam@86: else cannam@86: acl_cv_path_LD="$LD" # Let the user override the test with a path. cannam@86: fi cannam@86: fi cannam@86: cannam@86: LD="$acl_cv_path_LD" cannam@86: if test -n "$LD"; then cannam@86: echo "$as_me:$LINENO: result: $LD" >&5 cannam@86: echo "${ECHO_T}$LD" >&6 cannam@86: else cannam@86: echo "$as_me:$LINENO: result: no" >&5 cannam@86: echo "${ECHO_T}no" >&6 cannam@86: fi cannam@86: test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 cannam@86: echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} cannam@86: { (exit 1); exit 1; }; } cannam@86: echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 cannam@86: echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 cannam@86: if test "${acl_cv_prog_gnu_ld+set}" = set; then cannam@86: echo $ECHO_N "(cached) $ECHO_C" >&6 cannam@86: else cannam@86: # I'd rather use --version here, but apparently some GNU ld's only accept -v. cannam@86: case `$LD -v 2>&1 &5 cannam@86: echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6 cannam@86: with_gnu_ld=$acl_cv_prog_gnu_ld cannam@86: cannam@86: cannam@86: cannam@86: cannam@86: echo "$as_me:$LINENO: checking for shared library run path origin" >&5 cannam@86: echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6 cannam@86: if test "${acl_cv_rpath+set}" = set; then cannam@86: echo $ECHO_N "(cached) $ECHO_C" >&6 cannam@86: else cannam@86: cannam@86: CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \ cannam@86: ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh cannam@86: . ./conftest.sh cannam@86: rm -f ./conftest.sh cannam@86: acl_cv_rpath=done cannam@86: cannam@86: fi cannam@86: echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5 cannam@86: echo "${ECHO_T}$acl_cv_rpath" >&6 cannam@86: wl="$acl_cv_wl" cannam@86: libext="$acl_cv_libext" cannam@86: shlibext="$acl_cv_shlibext" cannam@86: hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec" cannam@86: hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator" cannam@86: hardcode_direct="$acl_cv_hardcode_direct" cannam@86: hardcode_minus_L="$acl_cv_hardcode_minus_L" cannam@86: # Check whether --enable-rpath or --disable-rpath was given. cannam@86: if test "${enable_rpath+set}" = set; then cannam@86: enableval="$enable_rpath" cannam@86: : cannam@86: else cannam@86: enable_rpath=yes cannam@86: fi; cannam@86: cannam@86: cannam@86: cannam@86: cannam@86: cannam@86: cannam@86: cannam@86: use_additional=yes cannam@86: cannam@86: acl_save_prefix="$prefix" cannam@86: prefix="$acl_final_prefix" cannam@86: acl_save_exec_prefix="$exec_prefix" cannam@86: exec_prefix="$acl_final_exec_prefix" cannam@86: cannam@86: eval additional_includedir=\"$includedir\" cannam@86: eval additional_libdir=\"$libdir\" cannam@86: cannam@86: exec_prefix="$acl_save_exec_prefix" cannam@86: prefix="$acl_save_prefix" cannam@86: cannam@86: cannam@86: # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given. cannam@86: if test "${with_libiconv_prefix+set}" = set; then cannam@86: withval="$with_libiconv_prefix" cannam@86: cannam@86: if test "X$withval" = "Xno"; then cannam@86: use_additional=no cannam@86: else cannam@86: if test "X$withval" = "X"; then cannam@86: cannam@86: acl_save_prefix="$prefix" cannam@86: prefix="$acl_final_prefix" cannam@86: acl_save_exec_prefix="$exec_prefix" cannam@86: exec_prefix="$acl_final_exec_prefix" cannam@86: cannam@86: eval additional_includedir=\"$includedir\" cannam@86: eval additional_libdir=\"$libdir\" cannam@86: cannam@86: exec_prefix="$acl_save_exec_prefix" cannam@86: prefix="$acl_save_prefix" cannam@86: cannam@86: else cannam@86: additional_includedir="$withval/include" cannam@86: additional_libdir="$withval/lib" cannam@86: fi cannam@86: fi cannam@86: cannam@86: fi; cannam@86: LIBICONV= cannam@86: LTLIBICONV= cannam@86: INCICONV= cannam@86: rpathdirs= cannam@86: ltrpathdirs= cannam@86: names_already_handled= cannam@86: names_next_round='iconv ' cannam@86: while test -n "$names_next_round"; do cannam@86: names_this_round="$names_next_round" cannam@86: names_next_round= cannam@86: for name in $names_this_round; do cannam@86: already_handled= cannam@86: for n in $names_already_handled; do cannam@86: if test "$n" = "$name"; then cannam@86: already_handled=yes cannam@86: break cannam@86: fi cannam@86: done cannam@86: if test -z "$already_handled"; then cannam@86: names_already_handled="$names_already_handled $name" cannam@86: uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` cannam@86: eval value=\"\$HAVE_LIB$uppername\" cannam@86: if test -n "$value"; then cannam@86: if test "$value" = yes; then cannam@86: eval value=\"\$LIB$uppername\" cannam@86: test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value" cannam@86: eval value=\"\$LTLIB$uppername\" cannam@86: test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value" cannam@86: else cannam@86: : cannam@86: fi cannam@86: else cannam@86: found_dir= cannam@86: found_la= cannam@86: found_so= cannam@86: found_a= cannam@86: if test $use_additional = yes; then cannam@86: if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then cannam@86: found_dir="$additional_libdir" cannam@86: found_so="$additional_libdir/lib$name.$shlibext" cannam@86: if test -f "$additional_libdir/lib$name.la"; then cannam@86: found_la="$additional_libdir/lib$name.la" cannam@86: fi cannam@86: else cannam@86: if test -f "$additional_libdir/lib$name.$libext"; then cannam@86: found_dir="$additional_libdir" cannam@86: found_a="$additional_libdir/lib$name.$libext" cannam@86: if test -f "$additional_libdir/lib$name.la"; then cannam@86: found_la="$additional_libdir/lib$name.la" cannam@86: fi cannam@86: fi cannam@86: fi cannam@86: fi cannam@86: if test "X$found_dir" = "X"; then cannam@86: for x in $LDFLAGS $LTLIBICONV; do cannam@86: cannam@86: acl_save_prefix="$prefix" cannam@86: prefix="$acl_final_prefix" cannam@86: acl_save_exec_prefix="$exec_prefix" cannam@86: exec_prefix="$acl_final_exec_prefix" cannam@86: eval x=\"$x\" cannam@86: exec_prefix="$acl_save_exec_prefix" cannam@86: prefix="$acl_save_prefix" cannam@86: cannam@86: case "$x" in cannam@86: -L*) cannam@86: dir=`echo "X$x" | sed -e 's/^X-L//'` cannam@86: if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then cannam@86: found_dir="$dir" cannam@86: found_so="$dir/lib$name.$shlibext" cannam@86: if test -f "$dir/lib$name.la"; then cannam@86: found_la="$dir/lib$name.la" cannam@86: fi cannam@86: else cannam@86: if test -f "$dir/lib$name.$libext"; then cannam@86: found_dir="$dir" cannam@86: found_a="$dir/lib$name.$libext" cannam@86: if test -f "$dir/lib$name.la"; then cannam@86: found_la="$dir/lib$name.la" cannam@86: fi cannam@86: fi cannam@86: fi cannam@86: ;; cannam@86: esac cannam@86: if test "X$found_dir" != "X"; then cannam@86: break cannam@86: fi cannam@86: done cannam@86: fi cannam@86: if test "X$found_dir" != "X"; then cannam@86: LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name" cannam@86: if test "X$found_so" != "X"; then cannam@86: if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then cannam@86: LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" cannam@86: else cannam@86: haveit= cannam@86: for x in $ltrpathdirs; do cannam@86: if test "X$x" = "X$found_dir"; then cannam@86: haveit=yes cannam@86: break cannam@86: fi cannam@86: done cannam@86: if test -z "$haveit"; then cannam@86: ltrpathdirs="$ltrpathdirs $found_dir" cannam@86: fi cannam@86: if test "$hardcode_direct" = yes; then cannam@86: LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" cannam@86: else cannam@86: if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then cannam@86: LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" cannam@86: haveit= cannam@86: for x in $rpathdirs; do cannam@86: if test "X$x" = "X$found_dir"; then cannam@86: haveit=yes cannam@86: break cannam@86: fi cannam@86: done cannam@86: if test -z "$haveit"; then cannam@86: rpathdirs="$rpathdirs $found_dir" cannam@86: fi cannam@86: else cannam@86: haveit= cannam@86: for x in $LDFLAGS $LIBICONV; do cannam@86: cannam@86: acl_save_prefix="$prefix" cannam@86: prefix="$acl_final_prefix" cannam@86: acl_save_exec_prefix="$exec_prefix" cannam@86: exec_prefix="$acl_final_exec_prefix" cannam@86: eval x=\"$x\" cannam@86: exec_prefix="$acl_save_exec_prefix" cannam@86: prefix="$acl_save_prefix" cannam@86: cannam@86: if test "X$x" = "X-L$found_dir"; then cannam@86: haveit=yes cannam@86: break cannam@86: fi cannam@86: done cannam@86: if test -z "$haveit"; then cannam@86: LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir" cannam@86: fi cannam@86: if test "$hardcode_minus_L" != no; then cannam@86: LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" cannam@86: else cannam@86: LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" cannam@86: fi cannam@86: fi cannam@86: fi cannam@86: fi cannam@86: else cannam@86: if test "X$found_a" != "X"; then cannam@86: LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a" cannam@86: else cannam@86: LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name" cannam@86: fi cannam@86: fi cannam@86: additional_includedir= cannam@86: case "$found_dir" in cannam@86: */lib | */lib/) cannam@86: basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'` cannam@86: additional_includedir="$basedir/include" cannam@86: ;; cannam@86: esac cannam@86: if test "X$additional_includedir" != "X"; then cannam@86: if test "X$additional_includedir" != "X/usr/include"; then cannam@86: haveit= cannam@86: if test "X$additional_includedir" = "X/usr/local/include"; then cannam@86: if test -n "$GCC"; then cannam@86: case $host_os in cannam@86: linux* | gnu* | k*bsd*-gnu) haveit=yes;; cannam@86: esac cannam@86: fi cannam@86: fi cannam@86: if test -z "$haveit"; then cannam@86: for x in $CPPFLAGS $INCICONV; do cannam@86: cannam@86: acl_save_prefix="$prefix" cannam@86: prefix="$acl_final_prefix" cannam@86: acl_save_exec_prefix="$exec_prefix" cannam@86: exec_prefix="$acl_final_exec_prefix" cannam@86: eval x=\"$x\" cannam@86: exec_prefix="$acl_save_exec_prefix" cannam@86: prefix="$acl_save_prefix" cannam@86: cannam@86: if test "X$x" = "X-I$additional_includedir"; then cannam@86: haveit=yes cannam@86: break cannam@86: fi cannam@86: done cannam@86: if test -z "$haveit"; then cannam@86: if test -d "$additional_includedir"; then cannam@86: INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir" cannam@86: fi cannam@86: fi cannam@86: fi cannam@86: fi cannam@86: fi cannam@86: if test -n "$found_la"; then cannam@86: save_libdir="$libdir" cannam@86: case "$found_la" in cannam@86: */* | *\\*) . "$found_la" ;; cannam@86: *) . "./$found_la" ;; cannam@86: esac cannam@86: libdir="$save_libdir" cannam@86: for dep in $dependency_libs; do cannam@86: case "$dep" in cannam@86: -L*) cannam@86: additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` cannam@86: if test "X$additional_libdir" != "X/usr/lib"; then cannam@86: haveit= cannam@86: if test "X$additional_libdir" = "X/usr/local/lib"; then cannam@86: if test -n "$GCC"; then cannam@86: case $host_os in cannam@86: linux* | gnu* | k*bsd*-gnu) haveit=yes;; cannam@86: esac cannam@86: fi cannam@86: fi cannam@86: if test -z "$haveit"; then cannam@86: haveit= cannam@86: for x in $LDFLAGS $LIBICONV; do cannam@86: cannam@86: acl_save_prefix="$prefix" cannam@86: prefix="$acl_final_prefix" cannam@86: acl_save_exec_prefix="$exec_prefix" cannam@86: exec_prefix="$acl_final_exec_prefix" cannam@86: eval x=\"$x\" cannam@86: exec_prefix="$acl_save_exec_prefix" cannam@86: prefix="$acl_save_prefix" cannam@86: cannam@86: if test "X$x" = "X-L$additional_libdir"; then cannam@86: haveit=yes cannam@86: break cannam@86: fi cannam@86: done cannam@86: if test -z "$haveit"; then cannam@86: if test -d "$additional_libdir"; then cannam@86: LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir" cannam@86: fi cannam@86: fi cannam@86: haveit= cannam@86: for x in $LDFLAGS $LTLIBICONV; do cannam@86: cannam@86: acl_save_prefix="$prefix" cannam@86: prefix="$acl_final_prefix" cannam@86: acl_save_exec_prefix="$exec_prefix" cannam@86: exec_prefix="$acl_final_exec_prefix" cannam@86: eval x=\"$x\" cannam@86: exec_prefix="$acl_save_exec_prefix" cannam@86: prefix="$acl_save_prefix" cannam@86: cannam@86: if test "X$x" = "X-L$additional_libdir"; then cannam@86: haveit=yes cannam@86: break cannam@86: fi cannam@86: done cannam@86: if test -z "$haveit"; then cannam@86: if test -d "$additional_libdir"; then cannam@86: LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir" cannam@86: fi cannam@86: fi cannam@86: fi cannam@86: fi cannam@86: ;; cannam@86: -R*) cannam@86: dir=`echo "X$dep" | sed -e 's/^X-R//'` cannam@86: if test "$enable_rpath" != no; then cannam@86: haveit= cannam@86: for x in $rpathdirs; do cannam@86: if test "X$x" = "X$dir"; then cannam@86: haveit=yes cannam@86: break cannam@86: fi cannam@86: done cannam@86: if test -z "$haveit"; then cannam@86: rpathdirs="$rpathdirs $dir" cannam@86: fi cannam@86: haveit= cannam@86: for x in $ltrpathdirs; do cannam@86: if test "X$x" = "X$dir"; then cannam@86: haveit=yes cannam@86: break cannam@86: fi cannam@86: done cannam@86: if test -z "$haveit"; then cannam@86: ltrpathdirs="$ltrpathdirs $dir" cannam@86: fi cannam@86: fi cannam@86: ;; cannam@86: -l*) cannam@86: names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` cannam@86: ;; cannam@86: *.la) cannam@86: names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` cannam@86: ;; cannam@86: *) cannam@86: LIBICONV="${LIBICONV}${LIBICONV:+ }$dep" cannam@86: LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep" cannam@86: ;; cannam@86: esac cannam@86: done cannam@86: fi cannam@86: else cannam@86: LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" cannam@86: LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name" cannam@86: fi cannam@86: fi cannam@86: fi cannam@86: done cannam@86: done cannam@86: if test "X$rpathdirs" != "X"; then cannam@86: if test -n "$hardcode_libdir_separator"; then cannam@86: alldirs= cannam@86: for found_dir in $rpathdirs; do cannam@86: alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir" cannam@86: done cannam@86: acl_save_libdir="$libdir" cannam@86: libdir="$alldirs" cannam@86: eval flag=\"$hardcode_libdir_flag_spec\" cannam@86: libdir="$acl_save_libdir" cannam@86: LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" cannam@86: else cannam@86: for found_dir in $rpathdirs; do cannam@86: acl_save_libdir="$libdir" cannam@86: libdir="$found_dir" cannam@86: eval flag=\"$hardcode_libdir_flag_spec\" cannam@86: libdir="$acl_save_libdir" cannam@86: LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" cannam@86: done cannam@86: fi cannam@86: fi cannam@86: if test "X$ltrpathdirs" != "X"; then cannam@86: for found_dir in $ltrpathdirs; do cannam@86: LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir" cannam@86: done cannam@86: fi cannam@86: cannam@86: cannam@86: cannam@86: cannam@86: cannam@86: cannam@86: cannam@86: am_save_CPPFLAGS="$CPPFLAGS" cannam@86: cannam@86: for element in $INCICONV; do cannam@86: haveit= cannam@86: for x in $CPPFLAGS; do cannam@86: cannam@86: acl_save_prefix="$prefix" cannam@86: prefix="$acl_final_prefix" cannam@86: acl_save_exec_prefix="$exec_prefix" cannam@86: exec_prefix="$acl_final_exec_prefix" cannam@86: eval x=\"$x\" cannam@86: exec_prefix="$acl_save_exec_prefix" cannam@86: prefix="$acl_save_prefix" cannam@86: cannam@86: if test "X$x" = "X$element"; then cannam@86: haveit=yes cannam@86: break cannam@86: fi cannam@86: done cannam@86: if test -z "$haveit"; then cannam@86: CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" cannam@86: fi cannam@86: done cannam@86: cannam@86: cannam@86: echo "$as_me:$LINENO: checking for iconv" >&5 cannam@86: echo $ECHO_N "checking for iconv... $ECHO_C" >&6 cannam@86: if test "${am_cv_func_iconv+set}" = set; then cannam@86: echo $ECHO_N "(cached) $ECHO_C" >&6 cannam@86: else cannam@86: cannam@86: am_cv_func_iconv="no, consider installing GNU libiconv" cannam@86: am_cv_lib_iconv=no cannam@86: cat >conftest.$ac_ext <<_ACEOF cannam@86: /* confdefs.h. */ cannam@86: _ACEOF cannam@86: cat confdefs.h >>conftest.$ac_ext cannam@86: cat >>conftest.$ac_ext <<_ACEOF cannam@86: /* end confdefs.h. */ cannam@86: #include cannam@86: #include cannam@86: int cannam@86: main () cannam@86: { cannam@86: iconv_t cd = iconv_open("",""); cannam@86: iconv(cd,NULL,NULL,NULL,NULL); cannam@86: iconv_close(cd); cannam@86: ; cannam@86: return 0; cannam@86: } cannam@86: _ACEOF cannam@86: rm -f conftest.$ac_objext conftest$ac_exeext cannam@86: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 cannam@86: (eval $ac_link) 2>conftest.er1 cannam@86: ac_status=$? cannam@86: grep -v '^ *+' conftest.er1 >conftest.err cannam@86: rm -f conftest.er1 cannam@86: cat conftest.err >&5 cannam@86: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@86: (exit $ac_status); } && cannam@86: { ac_try='test -z "$ac_c_werror_flag" cannam@86: || test ! -s conftest.err' cannam@86: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 cannam@86: (eval $ac_try) 2>&5 cannam@86: ac_status=$? cannam@86: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@86: (exit $ac_status); }; } && cannam@86: { ac_try='test -s conftest$ac_exeext' cannam@86: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 cannam@86: (eval $ac_try) 2>&5 cannam@86: ac_status=$? cannam@86: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@86: (exit $ac_status); }; }; then cannam@86: am_cv_func_iconv=yes cannam@86: else cannam@86: echo "$as_me: failed program was:" >&5 cannam@86: sed 's/^/| /' conftest.$ac_ext >&5 cannam@86: cannam@86: fi cannam@86: rm -f conftest.err conftest.$ac_objext \ cannam@86: conftest$ac_exeext conftest.$ac_ext cannam@86: if test "$am_cv_func_iconv" != yes; then cannam@86: am_save_LIBS="$LIBS" cannam@86: LIBS="$LIBS $LIBICONV" cannam@86: cat >conftest.$ac_ext <<_ACEOF cannam@86: /* confdefs.h. */ cannam@86: _ACEOF cannam@86: cat confdefs.h >>conftest.$ac_ext cannam@86: cat >>conftest.$ac_ext <<_ACEOF cannam@86: /* end confdefs.h. */ cannam@86: #include cannam@86: #include cannam@86: int cannam@86: main () cannam@86: { cannam@86: iconv_t cd = iconv_open("",""); cannam@86: iconv(cd,NULL,NULL,NULL,NULL); cannam@86: iconv_close(cd); cannam@86: ; cannam@86: return 0; cannam@86: } cannam@86: _ACEOF cannam@86: rm -f conftest.$ac_objext conftest$ac_exeext cannam@86: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 cannam@86: (eval $ac_link) 2>conftest.er1 cannam@86: ac_status=$? cannam@86: grep -v '^ *+' conftest.er1 >conftest.err cannam@86: rm -f conftest.er1 cannam@86: cat conftest.err >&5 cannam@86: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@86: (exit $ac_status); } && cannam@86: { ac_try='test -z "$ac_c_werror_flag" cannam@86: || test ! -s conftest.err' cannam@86: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 cannam@86: (eval $ac_try) 2>&5 cannam@86: ac_status=$? cannam@86: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@86: (exit $ac_status); }; } && cannam@86: { ac_try='test -s conftest$ac_exeext' cannam@86: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 cannam@86: (eval $ac_try) 2>&5 cannam@86: ac_status=$? cannam@86: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@86: (exit $ac_status); }; }; then cannam@86: am_cv_lib_iconv=yes cannam@86: am_cv_func_iconv=yes cannam@86: else cannam@86: echo "$as_me: failed program was:" >&5 cannam@86: sed 's/^/| /' conftest.$ac_ext >&5 cannam@86: cannam@86: fi cannam@86: rm -f conftest.err conftest.$ac_objext \ cannam@86: conftest$ac_exeext conftest.$ac_ext cannam@86: LIBS="$am_save_LIBS" cannam@86: fi cannam@86: cannam@86: fi cannam@86: echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5 cannam@86: echo "${ECHO_T}$am_cv_func_iconv" >&6 cannam@86: if test "$am_cv_func_iconv" = yes; then cannam@86: cannam@86: cat >>confdefs.h <<\_ACEOF cannam@86: #define HAVE_ICONV 1 cannam@86: _ACEOF cannam@86: cannam@86: fi cannam@86: if test "$am_cv_lib_iconv" = yes; then cannam@86: echo "$as_me:$LINENO: checking how to link with libiconv" >&5 cannam@86: echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6 cannam@86: echo "$as_me:$LINENO: result: $LIBICONV" >&5 cannam@86: echo "${ECHO_T}$LIBICONV" >&6 cannam@86: else cannam@86: CPPFLAGS="$am_save_CPPFLAGS" cannam@86: LIBICONV= cannam@86: LTLIBICONV= cannam@86: fi cannam@86: cannam@86: cannam@86: cannam@86: if test "$am_cv_func_iconv" = yes; then cannam@86: echo "$as_me:$LINENO: checking for iconv declaration" >&5 cannam@86: echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6 cannam@86: if test "${am_cv_proto_iconv+set}" = set; then cannam@86: echo $ECHO_N "(cached) $ECHO_C" >&6 cannam@86: else cannam@86: cannam@86: cat >conftest.$ac_ext <<_ACEOF cannam@86: /* confdefs.h. */ cannam@86: _ACEOF cannam@86: cat confdefs.h >>conftest.$ac_ext cannam@86: cat >>conftest.$ac_ext <<_ACEOF cannam@86: /* end confdefs.h. */ cannam@86: cannam@86: #include cannam@86: #include cannam@86: extern cannam@86: #ifdef __cplusplus cannam@86: "C" cannam@86: #endif cannam@86: #if defined(__STDC__) || defined(__cplusplus) cannam@86: size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); cannam@86: #else cannam@86: size_t iconv(); cannam@86: #endif cannam@86: cannam@86: int cannam@86: main () cannam@86: { cannam@86: cannam@86: ; cannam@86: return 0; cannam@86: } cannam@86: _ACEOF cannam@86: rm -f conftest.$ac_objext cannam@86: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 cannam@86: (eval $ac_compile) 2>conftest.er1 cannam@86: ac_status=$? cannam@86: grep -v '^ *+' conftest.er1 >conftest.err cannam@86: rm -f conftest.er1 cannam@86: cat conftest.err >&5 cannam@86: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@86: (exit $ac_status); } && cannam@86: { ac_try='test -z "$ac_c_werror_flag" cannam@86: || test ! -s conftest.err' cannam@86: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 cannam@86: (eval $ac_try) 2>&5 cannam@86: ac_status=$? cannam@86: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@86: (exit $ac_status); }; } && cannam@86: { ac_try='test -s conftest.$ac_objext' cannam@86: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 cannam@86: (eval $ac_try) 2>&5 cannam@86: ac_status=$? cannam@86: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@86: (exit $ac_status); }; }; then cannam@86: am_cv_proto_iconv_arg1="" cannam@86: else cannam@86: echo "$as_me: failed program was:" >&5 cannam@86: sed 's/^/| /' conftest.$ac_ext >&5 cannam@86: cannam@86: am_cv_proto_iconv_arg1="const" cannam@86: fi cannam@86: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext cannam@86: am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);" cannam@86: fi cannam@86: cannam@86: am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'` cannam@86: echo "$as_me:$LINENO: result: ${ac_t:- cannam@86: }$am_cv_proto_iconv" >&5 cannam@86: echo "${ECHO_T}${ac_t:- cannam@86: }$am_cv_proto_iconv" >&6 cannam@86: cannam@86: cat >>confdefs.h <<_ACEOF cannam@86: #define ICONV_CONST $am_cv_proto_iconv_arg1 cannam@86: _ACEOF cannam@86: cannam@86: fi cannam@86: cannam@86: cannam@86: echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5 cannam@86: echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6 cannam@86: if test "${am_cv_langinfo_codeset+set}" = set; then cannam@86: echo $ECHO_N "(cached) $ECHO_C" >&6 cannam@86: else cannam@86: cat >conftest.$ac_ext <<_ACEOF cannam@86: /* confdefs.h. */ cannam@86: _ACEOF cannam@86: cat confdefs.h >>conftest.$ac_ext cannam@86: cat >>conftest.$ac_ext <<_ACEOF cannam@86: /* end confdefs.h. */ cannam@86: #include cannam@86: int cannam@86: main () cannam@86: { cannam@86: char* cs = nl_langinfo(CODESET); cannam@86: ; cannam@86: return 0; cannam@86: } cannam@86: _ACEOF cannam@86: rm -f conftest.$ac_objext conftest$ac_exeext cannam@86: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 cannam@86: (eval $ac_link) 2>conftest.er1 cannam@86: ac_status=$? cannam@86: grep -v '^ *+' conftest.er1 >conftest.err cannam@86: rm -f conftest.er1 cannam@86: cat conftest.err >&5 cannam@86: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@86: (exit $ac_status); } && cannam@86: { ac_try='test -z "$ac_c_werror_flag" cannam@86: || test ! -s conftest.err' cannam@86: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 cannam@86: (eval $ac_try) 2>&5 cannam@86: ac_status=$? cannam@86: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@86: (exit $ac_status); }; } && cannam@86: { ac_try='test -s conftest$ac_exeext' cannam@86: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 cannam@86: (eval $ac_try) 2>&5 cannam@86: ac_status=$? cannam@86: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@86: (exit $ac_status); }; }; then cannam@86: am_cv_langinfo_codeset=yes cannam@86: else cannam@86: echo "$as_me: failed program was:" >&5 cannam@86: sed 's/^/| /' conftest.$ac_ext >&5 cannam@86: cannam@86: am_cv_langinfo_codeset=no cannam@86: fi cannam@86: rm -f conftest.err conftest.$ac_objext \ cannam@86: conftest$ac_exeext conftest.$ac_ext cannam@86: cannam@86: fi cannam@86: echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5 cannam@86: echo "${ECHO_T}$am_cv_langinfo_codeset" >&6 cannam@86: if test $am_cv_langinfo_codeset = yes; then cannam@86: cannam@86: cat >>confdefs.h <<\_ACEOF cannam@86: #define HAVE_LANGINFO_CODESET 1 cannam@86: _ACEOF cannam@86: cannam@86: fi cannam@86: cannam@86: cannam@86: for ac_prog in docbook-to-man docbook2man cannam@86: do cannam@86: # Extract the first word of "$ac_prog", so it can be a program name with args. cannam@86: set dummy $ac_prog; ac_word=$2 cannam@86: echo "$as_me:$LINENO: checking for $ac_word" >&5 cannam@86: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 cannam@86: if test "${ac_cv_prog_DOCBOOK_TO_MAN+set}" = set; then cannam@86: echo $ECHO_N "(cached) $ECHO_C" >&6 cannam@86: else cannam@86: if test -n "$DOCBOOK_TO_MAN"; then cannam@86: ac_cv_prog_DOCBOOK_TO_MAN="$DOCBOOK_TO_MAN" # Let the user override the test. cannam@86: else cannam@86: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR cannam@86: for as_dir in $PATH cannam@86: do cannam@86: IFS=$as_save_IFS cannam@86: test -z "$as_dir" && as_dir=. cannam@86: for ac_exec_ext in '' $ac_executable_extensions; do cannam@86: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then cannam@86: ac_cv_prog_DOCBOOK_TO_MAN="$ac_prog" cannam@86: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 cannam@86: break 2 cannam@86: fi cannam@86: done cannam@86: done cannam@86: cannam@86: fi cannam@86: fi cannam@86: DOCBOOK_TO_MAN=$ac_cv_prog_DOCBOOK_TO_MAN cannam@86: if test -n "$DOCBOOK_TO_MAN"; then cannam@86: echo "$as_me:$LINENO: result: $DOCBOOK_TO_MAN" >&5 cannam@86: echo "${ECHO_T}$DOCBOOK_TO_MAN" >&6 cannam@86: else cannam@86: echo "$as_me:$LINENO: result: no" >&5 cannam@86: echo "${ECHO_T}no" >&6 cannam@86: fi cannam@86: cannam@86: test -n "$DOCBOOK_TO_MAN" && break cannam@86: done cannam@86: cannam@86: cannam@86: cannam@86: if test -n "$DOCBOOK_TO_MAN"; then cannam@86: FLaC__HAS_DOCBOOK_TO_MAN_TRUE= cannam@86: FLaC__HAS_DOCBOOK_TO_MAN_FALSE='#' cannam@86: else cannam@86: FLaC__HAS_DOCBOOK_TO_MAN_TRUE='#' cannam@86: FLaC__HAS_DOCBOOK_TO_MAN_FALSE= cannam@86: fi cannam@86: cannam@86: if test -n "$DOCBOOK_TO_MAN" ; then cannam@86: cat >>confdefs.h <<\_ACEOF cannam@86: #define FLAC__HAS_DOCBOOK_TO_MAN 1 cannam@86: _ACEOF cannam@86: cannam@86: cannam@86: cannam@86: fi cannam@86: cannam@86: # only matters for x86 cannam@86: for ac_prog in nasm cannam@86: do cannam@86: # Extract the first word of "$ac_prog", so it can be a program name with args. cannam@86: set dummy $ac_prog; ac_word=$2 cannam@86: echo "$as_me:$LINENO: checking for $ac_word" >&5 cannam@86: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 cannam@86: if test "${ac_cv_prog_NASM+set}" = set; then cannam@86: echo $ECHO_N "(cached) $ECHO_C" >&6 cannam@86: else cannam@86: if test -n "$NASM"; then cannam@86: ac_cv_prog_NASM="$NASM" # Let the user override the test. cannam@86: else cannam@86: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR cannam@86: for as_dir in $PATH cannam@86: do cannam@86: IFS=$as_save_IFS cannam@86: test -z "$as_dir" && as_dir=. cannam@86: for ac_exec_ext in '' $ac_executable_extensions; do cannam@86: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then cannam@86: ac_cv_prog_NASM="$ac_prog" cannam@86: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 cannam@86: break 2 cannam@86: fi cannam@86: done cannam@86: done cannam@86: cannam@86: fi cannam@86: fi cannam@86: NASM=$ac_cv_prog_NASM cannam@86: if test -n "$NASM"; then cannam@86: echo "$as_me:$LINENO: result: $NASM" >&5 cannam@86: echo "${ECHO_T}$NASM" >&6 cannam@86: else cannam@86: echo "$as_me:$LINENO: result: no" >&5 cannam@86: echo "${ECHO_T}no" >&6 cannam@86: fi cannam@86: cannam@86: test -n "$NASM" && break cannam@86: done cannam@86: cannam@86: cannam@86: cannam@86: if test -n "$NASM"; then cannam@86: FLaC__HAS_NASM_TRUE= cannam@86: FLaC__HAS_NASM_FALSE='#' cannam@86: else cannam@86: FLaC__HAS_NASM_TRUE='#' cannam@86: FLaC__HAS_NASM_FALSE= cannam@86: fi cannam@86: cannam@86: if test -n "$NASM" ; then cannam@86: cat >>confdefs.h <<\_ACEOF cannam@86: #define FLAC__HAS_NASM 1 cannam@86: _ACEOF cannam@86: cannam@86: cannam@86: cannam@86: fi cannam@86: cannam@86: # only matters for PowerPC cannam@86: for ac_prog in as cannam@86: do cannam@86: # Extract the first word of "$ac_prog", so it can be a program name with args. cannam@86: set dummy $ac_prog; ac_word=$2 cannam@86: echo "$as_me:$LINENO: checking for $ac_word" >&5 cannam@86: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 cannam@86: if test "${ac_cv_prog_AS+set}" = set; then cannam@86: echo $ECHO_N "(cached) $ECHO_C" >&6 cannam@86: else cannam@86: if test -n "$AS"; then cannam@86: ac_cv_prog_AS="$AS" # Let the user override the test. cannam@86: else cannam@86: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR cannam@86: for as_dir in $PATH cannam@86: do cannam@86: IFS=$as_save_IFS cannam@86: test -z "$as_dir" && as_dir=. cannam@86: for ac_exec_ext in '' $ac_executable_extensions; do cannam@86: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then cannam@86: ac_cv_prog_AS="$ac_prog" cannam@86: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 cannam@86: break 2 cannam@86: fi cannam@86: done cannam@86: done cannam@86: cannam@86: fi cannam@86: fi cannam@86: AS=$ac_cv_prog_AS cannam@86: if test -n "$AS"; then cannam@86: echo "$as_me:$LINENO: result: $AS" >&5 cannam@86: echo "${ECHO_T}$AS" >&6 cannam@86: else cannam@86: echo "$as_me:$LINENO: result: no" >&5 cannam@86: echo "${ECHO_T}no" >&6 cannam@86: fi cannam@86: cannam@86: test -n "$AS" && break cannam@86: done cannam@86: test -n "$AS" || AS="as" cannam@86: cannam@86: for ac_prog in gas cannam@86: do cannam@86: # Extract the first word of "$ac_prog", so it can be a program name with args. cannam@86: set dummy $ac_prog; ac_word=$2 cannam@86: echo "$as_me:$LINENO: checking for $ac_word" >&5 cannam@86: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 cannam@86: if test "${ac_cv_prog_GAS+set}" = set; then cannam@86: echo $ECHO_N "(cached) $ECHO_C" >&6 cannam@86: else cannam@86: if test -n "$GAS"; then cannam@86: ac_cv_prog_GAS="$GAS" # Let the user override the test. cannam@86: else cannam@86: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR cannam@86: for as_dir in $PATH cannam@86: do cannam@86: IFS=$as_save_IFS cannam@86: test -z "$as_dir" && as_dir=. cannam@86: for ac_exec_ext in '' $ac_executable_extensions; do cannam@86: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then cannam@86: ac_cv_prog_GAS="$ac_prog" cannam@86: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 cannam@86: break 2 cannam@86: fi cannam@86: done cannam@86: done cannam@86: cannam@86: fi cannam@86: fi cannam@86: GAS=$ac_cv_prog_GAS cannam@86: if test -n "$GAS"; then cannam@86: echo "$as_me:$LINENO: result: $GAS" >&5 cannam@86: echo "${ECHO_T}$GAS" >&6 cannam@86: else cannam@86: echo "$as_me:$LINENO: result: no" >&5 cannam@86: echo "${ECHO_T}no" >&6 cannam@86: fi cannam@86: cannam@86: test -n "$GAS" && break cannam@86: done cannam@86: test -n "$GAS" || GAS="gas" cannam@86: cannam@86: cannam@86: # try -v (apple as) and --version (gas) at the same time cannam@86: test "$AS" = "as" && as --version -v < /dev/null 2>&1 | grep Apple >/dev/null || AS=gas cannam@86: cannam@86: cannam@86: cannam@86: if test "$AS" = "as"; then cannam@86: FLaC__HAS_AS_TRUE= cannam@86: FLaC__HAS_AS_FALSE='#' cannam@86: else cannam@86: FLaC__HAS_AS_TRUE='#' cannam@86: FLaC__HAS_AS_FALSE= cannam@86: fi cannam@86: cannam@86: cannam@86: cannam@86: if test "$AS" = "gas"; then cannam@86: FLaC__HAS_GAS_TRUE= cannam@86: FLaC__HAS_GAS_FALSE='#' cannam@86: else cannam@86: FLaC__HAS_GAS_TRUE='#' cannam@86: FLaC__HAS_GAS_FALSE= cannam@86: fi cannam@86: cannam@86: if test "$AS" = "as" ; then cannam@86: cat >>confdefs.h <<\_ACEOF cannam@86: #define FLAC__HAS_AS 1 cannam@86: _ACEOF cannam@86: cannam@86: cannam@86: cannam@86: fi cannam@86: if test "$AS" = "gas" ; then cannam@86: # funniest. macro. ever. cannam@86: cat >>confdefs.h <<\_ACEOF cannam@86: #define FLAC__HAS_GAS 1 cannam@86: _ACEOF cannam@86: cannam@86: cannam@86: cannam@86: fi cannam@86: cannam@86: CPPFLAGS='-I$(top_builddir) -I$(srcdir)/include -I$(top_srcdir)/include'" $CPPFLAGS" cannam@86: if test "x$debug" = xtrue; then cannam@86: CPPFLAGS="-DDEBUG $CPPFLAGS" cannam@86: CFLAGS="-g $CFLAGS" cannam@86: else cannam@86: CPPFLAGS="-DNDEBUG $CPPFLAGS" cannam@86: if test "x$GCC" = xyes; then cannam@86: CPPFLAGS="-DFLaC__INLINE=__inline__ $CPPFLAGS" cannam@86: CFLAGS="-O3 -funroll-loops -finline-functions -Wall -W -Winline $CFLAGS" cannam@86: fi cannam@86: fi cannam@86: cannam@86: #@@@ cannam@86: cannam@86: cannam@86: if test "yes" = "no"; then cannam@86: FLaC__HAS_AS__TEMPORARILY_DISABLED_TRUE= cannam@86: FLaC__HAS_AS__TEMPORARILY_DISABLED_FALSE='#' cannam@86: else cannam@86: FLaC__HAS_AS__TEMPORARILY_DISABLED_TRUE='#' cannam@86: FLaC__HAS_AS__TEMPORARILY_DISABLED_FALSE= cannam@86: fi cannam@86: cannam@86: cannam@86: cannam@86: if test "yes" = "no"; then cannam@86: FLaC__HAS_GAS__TEMPORARILY_DISABLED_TRUE= cannam@86: FLaC__HAS_GAS__TEMPORARILY_DISABLED_FALSE='#' cannam@86: else cannam@86: FLaC__HAS_GAS__TEMPORARILY_DISABLED_TRUE='#' cannam@86: FLaC__HAS_GAS__TEMPORARILY_DISABLED_FALSE= cannam@86: fi cannam@86: cannam@86: cannam@86: ac_config_files="$ac_config_files Makefile src/Makefile src/libFLAC/Makefile src/libFLAC/flac.pc src/libFLAC/ia32/Makefile src/libFLAC/ppc/Makefile src/libFLAC/ppc/as/Makefile src/libFLAC/ppc/gas/Makefile src/libFLAC/include/Makefile src/libFLAC/include/private/Makefile src/libFLAC/include/protected/Makefile src/libFLAC++/Makefile src/libFLAC++/flac++.pc src/flac/Makefile src/metaflac/Makefile src/monkeys_audio_utilities/Makefile src/monkeys_audio_utilities/flac_mac/Makefile src/monkeys_audio_utilities/flac_ren/Makefile src/plugin_common/Makefile src/plugin_winamp2/Makefile src/plugin_winamp2/include/Makefile src/plugin_winamp2/include/winamp2/Makefile src/plugin_xmms/Makefile src/share/Makefile src/share/getopt/Makefile src/share/grabbag/Makefile src/share/replaygain_analysis/Makefile src/share/replaygain_synthesis/Makefile src/share/replaygain_synthesis/include/Makefile src/share/replaygain_synthesis/include/private/Makefile src/share/utf8/Makefile src/test_grabbag/Makefile src/test_grabbag/cuesheet/Makefile src/test_grabbag/picture/Makefile src/test_libs_common/Makefile src/test_libFLAC/Makefile src/test_libFLAC++/Makefile src/test_seeking/Makefile src/test_streams/Makefile examples/Makefile examples/c/Makefile examples/c/decode/Makefile examples/c/decode/file/Makefile examples/c/encode/Makefile examples/c/encode/file/Makefile examples/cpp/Makefile examples/cpp/decode/Makefile examples/cpp/decode/file/Makefile examples/cpp/encode/Makefile examples/cpp/encode/file/Makefile include/Makefile include/FLAC/Makefile include/FLAC++/Makefile include/share/Makefile include/share/grabbag/Makefile include/test_libs_common/Makefile doc/Makefile doc/html/Makefile doc/html/images/Makefile doc/html/images/hw/Makefile doc/html/ru/Makefile m4/Makefile man/Makefile test/Makefile test/cuesheets/Makefile test/flac-to-flac-metadata-test-files/Makefile test/metaflac-test-files/Makefile test/pictures/Makefile build/Makefile obj/Makefile obj/debug/Makefile obj/debug/bin/Makefile obj/debug/lib/Makefile obj/release/Makefile obj/release/bin/Makefile obj/release/lib/Makefile" cannam@86: cannam@86: cat >confcache <<\_ACEOF cannam@86: # This file is a shell script that caches the results of configure cannam@86: # tests run on this system so they can be shared between configure cannam@86: # scripts and configure runs, see configure's option --config-cache. cannam@86: # It is not useful on other systems. If it contains results you don't cannam@86: # want to keep, you may remove or edit it. cannam@86: # cannam@86: # config.status only pays attention to the cache file if you give it cannam@86: # the --recheck option to rerun configure. cannam@86: # cannam@86: # `ac_cv_env_foo' variables (set or unset) will be overridden when cannam@86: # loading this file, other *unset* `ac_cv_foo' will be assigned the cannam@86: # following values. cannam@86: cannam@86: _ACEOF cannam@86: cannam@86: # The following way of writing the cache mishandles newlines in values, cannam@86: # but we know of no workaround that is simple, portable, and efficient. cannam@86: # So, don't put newlines in cache variables' values. cannam@86: # Ultrix sh set writes to stderr and can't be redirected directly, cannam@86: # and sets the high bit in the cache file unless we assign to the vars. cannam@86: { cannam@86: (set) 2>&1 | cannam@86: case `(ac_space=' '; set | grep ac_space) 2>&1` in cannam@86: *ac_space=\ *) cannam@86: # `set' does not quote correctly, so add quotes (double-quote cannam@86: # substitution turns \\\\ into \\, and sed turns \\ into \). cannam@86: sed -n \ cannam@86: "s/'/'\\\\''/g; cannam@86: s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" cannam@86: ;; cannam@86: *) cannam@86: # `set' quotes correctly as required by POSIX, so do not add quotes. cannam@86: sed -n \ cannam@86: "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" cannam@86: ;; cannam@86: esac; cannam@86: } | cannam@86: sed ' cannam@86: t clear cannam@86: : clear cannam@86: s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ cannam@86: t end cannam@86: /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ cannam@86: : end' >>confcache cannam@86: if diff $cache_file confcache >/dev/null 2>&1; then :; else cannam@86: if test -w $cache_file; then cannam@86: test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" cannam@86: cat confcache >$cache_file cannam@86: else cannam@86: echo "not updating unwritable cache $cache_file" cannam@86: fi cannam@86: fi cannam@86: rm -f confcache cannam@86: cannam@86: test "x$prefix" = xNONE && prefix=$ac_default_prefix cannam@86: # Let make expand exec_prefix. cannam@86: test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' cannam@86: cannam@86: # VPATH may cause trouble with some makes, so we remove $(srcdir), cannam@86: # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and cannam@86: # trailing colons and then remove the whole line if VPATH becomes empty cannam@86: # (actually we leave an empty line to preserve line numbers). cannam@86: if test "x$srcdir" = x.; then cannam@86: ac_vpsub='/^[ ]*VPATH[ ]*=/{ cannam@86: s/:*\$(srcdir):*/:/; cannam@86: s/:*\${srcdir}:*/:/; cannam@86: s/:*@srcdir@:*/:/; cannam@86: s/^\([^=]*=[ ]*\):*/\1/; cannam@86: s/:*$//; cannam@86: s/^[^=]*=[ ]*$//; cannam@86: }' cannam@86: fi cannam@86: cannam@86: DEFS=-DHAVE_CONFIG_H cannam@86: cannam@86: ac_libobjs= cannam@86: ac_ltlibobjs= cannam@86: for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue cannam@86: # 1. Remove the extension, and $U if already installed. cannam@86: ac_i=`echo "$ac_i" | cannam@86: sed 's/\$U\././;s/\.o$//;s/\.obj$//'` cannam@86: # 2. Add them. cannam@86: ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" cannam@86: ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' cannam@86: done cannam@86: LIBOBJS=$ac_libobjs cannam@86: cannam@86: LTLIBOBJS=$ac_ltlibobjs cannam@86: cannam@86: cannam@86: if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then cannam@86: { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined. cannam@86: Usually this means the macro was only invoked conditionally." >&5 cannam@86: echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined. cannam@86: Usually this means the macro was only invoked conditionally." >&2;} cannam@86: { (exit 1); exit 1; }; } cannam@86: fi cannam@86: if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then cannam@86: { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. cannam@86: Usually this means the macro was only invoked conditionally." >&5 cannam@86: echo "$as_me: error: conditional \"AMDEP\" was never defined. cannam@86: Usually this means the macro was only invoked conditionally." >&2;} cannam@86: { (exit 1); exit 1; }; } cannam@86: fi cannam@86: if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then cannam@86: { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. cannam@86: Usually this means the macro was only invoked conditionally." >&5 cannam@86: echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. cannam@86: Usually this means the macro was only invoked conditionally." >&2;} cannam@86: { (exit 1); exit 1; }; } cannam@86: fi cannam@86: if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then cannam@86: { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined. cannam@86: Usually this means the macro was only invoked conditionally." >&5 cannam@86: echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined. cannam@86: Usually this means the macro was only invoked conditionally." >&2;} cannam@86: { (exit 1); exit 1; }; } cannam@86: fi cannam@86: if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then cannam@86: { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined. cannam@86: Usually this means the macro was only invoked conditionally." >&5 cannam@86: echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined. cannam@86: Usually this means the macro was only invoked conditionally." >&2;} cannam@86: { (exit 1); exit 1; }; } cannam@86: fi cannam@86: if test -z "${FLaC__CPU_IA32_TRUE}" && test -z "${FLaC__CPU_IA32_FALSE}"; then cannam@86: { { echo "$as_me:$LINENO: error: conditional \"FLaC__CPU_IA32\" was never defined. cannam@86: Usually this means the macro was only invoked conditionally." >&5 cannam@86: echo "$as_me: error: conditional \"FLaC__CPU_IA32\" was never defined. cannam@86: Usually this means the macro was only invoked conditionally." >&2;} cannam@86: { (exit 1); exit 1; }; } cannam@86: fi cannam@86: if test -z "${FLaC__CPU_PPC_TRUE}" && test -z "${FLaC__CPU_PPC_FALSE}"; then cannam@86: { { echo "$as_me:$LINENO: error: conditional \"FLaC__CPU_PPC\" was never defined. cannam@86: Usually this means the macro was only invoked conditionally." >&5 cannam@86: echo "$as_me: error: conditional \"FLaC__CPU_PPC\" was never defined. cannam@86: Usually this means the macro was only invoked conditionally." >&2;} cannam@86: { (exit 1); exit 1; }; } cannam@86: fi cannam@86: if test -z "${FLaC__CPU_SPARC_TRUE}" && test -z "${FLaC__CPU_SPARC_FALSE}"; then cannam@86: { { echo "$as_me:$LINENO: error: conditional \"FLaC__CPU_SPARC\" was never defined. cannam@86: Usually this means the macro was only invoked conditionally." >&5 cannam@86: echo "$as_me: error: conditional \"FLaC__CPU_SPARC\" was never defined. cannam@86: Usually this means the macro was only invoked conditionally." >&2;} cannam@86: { (exit 1); exit 1; }; } cannam@86: fi cannam@86: if test -z "${FLaC__SYS_DARWIN_TRUE}" && test -z "${FLaC__SYS_DARWIN_FALSE}"; then cannam@86: { { echo "$as_me:$LINENO: error: conditional \"FLaC__SYS_DARWIN\" was never defined. cannam@86: Usually this means the macro was only invoked conditionally." >&5 cannam@86: echo "$as_me: error: conditional \"FLaC__SYS_DARWIN\" was never defined. cannam@86: Usually this means the macro was only invoked conditionally." >&2;} cannam@86: { (exit 1); exit 1; }; } cannam@86: fi cannam@86: if test -z "${FLaC__SYS_LINUX_TRUE}" && test -z "${FLaC__SYS_LINUX_FALSE}"; then cannam@86: { { echo "$as_me:$LINENO: error: conditional \"FLaC__SYS_LINUX\" was never defined. cannam@86: Usually this means the macro was only invoked conditionally." >&5 cannam@86: echo "$as_me: error: conditional \"FLaC__SYS_LINUX\" was never defined. cannam@86: Usually this means the macro was only invoked conditionally." >&2;} cannam@86: { (exit 1); exit 1; }; } cannam@86: fi cannam@86: if test -z "${FLaC__NO_ASM_TRUE}" && test -z "${FLaC__NO_ASM_FALSE}"; then cannam@86: { { echo "$as_me:$LINENO: error: conditional \"FLaC__NO_ASM\" was never defined. cannam@86: Usually this means the macro was only invoked conditionally." >&5 cannam@86: echo "$as_me: error: conditional \"FLaC__NO_ASM\" was never defined. cannam@86: Usually this means the macro was only invoked conditionally." >&2;} cannam@86: { (exit 1); exit 1; }; } cannam@86: fi cannam@86: if test -z "${DEBUG_TRUE}" && test -z "${DEBUG_FALSE}"; then cannam@86: { { echo "$as_me:$LINENO: error: conditional \"DEBUG\" was never defined. cannam@86: Usually this means the macro was only invoked conditionally." >&5 cannam@86: echo "$as_me: error: conditional \"DEBUG\" was never defined. cannam@86: Usually this means the macro was only invoked conditionally." >&2;} cannam@86: { (exit 1); exit 1; }; } cannam@86: fi cannam@86: if test -z "${FLaC__SSE_OS_TRUE}" && test -z "${FLaC__SSE_OS_FALSE}"; then cannam@86: { { echo "$as_me:$LINENO: error: conditional \"FLaC__SSE_OS\" was never defined. cannam@86: Usually this means the macro was only invoked conditionally." >&5 cannam@86: echo "$as_me: error: conditional \"FLaC__SSE_OS\" was never defined. cannam@86: Usually this means the macro was only invoked conditionally." >&2;} cannam@86: { (exit 1); exit 1; }; } cannam@86: fi cannam@86: if test -z "${FLaC__USE_3DNOW_TRUE}" && test -z "${FLaC__USE_3DNOW_FALSE}"; then cannam@86: { { echo "$as_me:$LINENO: error: conditional \"FLaC__USE_3DNOW\" was never defined. cannam@86: Usually this means the macro was only invoked conditionally." >&5 cannam@86: echo "$as_me: error: conditional \"FLaC__USE_3DNOW\" was never defined. cannam@86: Usually this means the macro was only invoked conditionally." >&2;} cannam@86: { (exit 1); exit 1; }; } cannam@86: fi cannam@86: if test -z "${FLaC__USE_ALTIVEC_TRUE}" && test -z "${FLaC__USE_ALTIVEC_FALSE}"; then cannam@86: { { echo "$as_me:$LINENO: error: conditional \"FLaC__USE_ALTIVEC\" was never defined. cannam@86: Usually this means the macro was only invoked conditionally." >&5 cannam@86: echo "$as_me: error: conditional \"FLaC__USE_ALTIVEC\" was never defined. cannam@86: Usually this means the macro was only invoked conditionally." >&2;} cannam@86: { (exit 1); exit 1; }; } cannam@86: fi cannam@86: if test -z "${FLaC__HAS_DOXYGEN_TRUE}" && test -z "${FLaC__HAS_DOXYGEN_FALSE}"; then cannam@86: { { echo "$as_me:$LINENO: error: conditional \"FLaC__HAS_DOXYGEN\" was never defined. cannam@86: Usually this means the macro was only invoked conditionally." >&5 cannam@86: echo "$as_me: error: conditional \"FLaC__HAS_DOXYGEN\" was never defined. cannam@86: Usually this means the macro was only invoked conditionally." >&2;} cannam@86: { (exit 1); exit 1; }; } cannam@86: fi cannam@86: if test -z "${FLaC__INSTALL_XMMS_PLUGIN_LOCALLY_TRUE}" && test -z "${FLaC__INSTALL_XMMS_PLUGIN_LOCALLY_FALSE}"; then cannam@86: { { echo "$as_me:$LINENO: error: conditional \"FLaC__INSTALL_XMMS_PLUGIN_LOCALLY\" was never defined. cannam@86: Usually this means the macro was only invoked conditionally." >&5 cannam@86: echo "$as_me: error: conditional \"FLaC__INSTALL_XMMS_PLUGIN_LOCALLY\" was never defined. cannam@86: Usually this means the macro was only invoked conditionally." >&2;} cannam@86: { (exit 1); exit 1; }; } cannam@86: fi cannam@86: if test -z "${FLaC__HAS_XMMS_TRUE}" && test -z "${FLaC__HAS_XMMS_FALSE}"; then cannam@86: { { echo "$as_me:$LINENO: error: conditional \"FLaC__HAS_XMMS\" was never defined. cannam@86: Usually this means the macro was only invoked conditionally." >&5 cannam@86: echo "$as_me: error: conditional \"FLaC__HAS_XMMS\" was never defined. cannam@86: Usually this means the macro was only invoked conditionally." >&2;} cannam@86: { (exit 1); exit 1; }; } cannam@86: fi cannam@86: if test -z "${FLaC__WITH_CPPLIBS_TRUE}" && test -z "${FLaC__WITH_CPPLIBS_FALSE}"; then cannam@86: { { echo "$as_me:$LINENO: error: conditional \"FLaC__WITH_CPPLIBS\" was never defined. cannam@86: Usually this means the macro was only invoked conditionally." >&5 cannam@86: echo "$as_me: error: conditional \"FLaC__WITH_CPPLIBS\" was never defined. cannam@86: Usually this means the macro was only invoked conditionally." >&2;} cannam@86: { (exit 1); exit 1; }; } cannam@86: fi cannam@86: if test -z "${FLaC__HAS_OGG_TRUE}" && test -z "${FLaC__HAS_OGG_FALSE}"; then cannam@86: { { echo "$as_me:$LINENO: error: conditional \"FLaC__HAS_OGG\" was never defined. cannam@86: Usually this means the macro was only invoked conditionally." >&5 cannam@86: echo "$as_me: error: conditional \"FLaC__HAS_OGG\" was never defined. cannam@86: Usually this means the macro was only invoked conditionally." >&2;} cannam@86: { (exit 1); exit 1; }; } cannam@86: fi cannam@86: if test -z "${FLaC__HAS_DOCBOOK_TO_MAN_TRUE}" && test -z "${FLaC__HAS_DOCBOOK_TO_MAN_FALSE}"; then cannam@86: { { echo "$as_me:$LINENO: error: conditional \"FLaC__HAS_DOCBOOK_TO_MAN\" was never defined. cannam@86: Usually this means the macro was only invoked conditionally." >&5 cannam@86: echo "$as_me: error: conditional \"FLaC__HAS_DOCBOOK_TO_MAN\" was never defined. cannam@86: Usually this means the macro was only invoked conditionally." >&2;} cannam@86: { (exit 1); exit 1; }; } cannam@86: fi cannam@86: if test -z "${FLaC__HAS_NASM_TRUE}" && test -z "${FLaC__HAS_NASM_FALSE}"; then cannam@86: { { echo "$as_me:$LINENO: error: conditional \"FLaC__HAS_NASM\" was never defined. cannam@86: Usually this means the macro was only invoked conditionally." >&5 cannam@86: echo "$as_me: error: conditional \"FLaC__HAS_NASM\" was never defined. cannam@86: Usually this means the macro was only invoked conditionally." >&2;} cannam@86: { (exit 1); exit 1; }; } cannam@86: fi cannam@86: if test -z "${FLaC__HAS_AS_TRUE}" && test -z "${FLaC__HAS_AS_FALSE}"; then cannam@86: { { echo "$as_me:$LINENO: error: conditional \"FLaC__HAS_AS\" was never defined. cannam@86: Usually this means the macro was only invoked conditionally." >&5 cannam@86: echo "$as_me: error: conditional \"FLaC__HAS_AS\" was never defined. cannam@86: Usually this means the macro was only invoked conditionally." >&2;} cannam@86: { (exit 1); exit 1; }; } cannam@86: fi cannam@86: if test -z "${FLaC__HAS_GAS_TRUE}" && test -z "${FLaC__HAS_GAS_FALSE}"; then cannam@86: { { echo "$as_me:$LINENO: error: conditional \"FLaC__HAS_GAS\" was never defined. cannam@86: Usually this means the macro was only invoked conditionally." >&5 cannam@86: echo "$as_me: error: conditional \"FLaC__HAS_GAS\" was never defined. cannam@86: Usually this means the macro was only invoked conditionally." >&2;} cannam@86: { (exit 1); exit 1; }; } cannam@86: fi cannam@86: if test -z "${FLaC__HAS_AS__TEMPORARILY_DISABLED_TRUE}" && test -z "${FLaC__HAS_AS__TEMPORARILY_DISABLED_FALSE}"; then cannam@86: { { echo "$as_me:$LINENO: error: conditional \"FLaC__HAS_AS__TEMPORARILY_DISABLED\" was never defined. cannam@86: Usually this means the macro was only invoked conditionally." >&5 cannam@86: echo "$as_me: error: conditional \"FLaC__HAS_AS__TEMPORARILY_DISABLED\" was never defined. cannam@86: Usually this means the macro was only invoked conditionally." >&2;} cannam@86: { (exit 1); exit 1; }; } cannam@86: fi cannam@86: if test -z "${FLaC__HAS_GAS__TEMPORARILY_DISABLED_TRUE}" && test -z "${FLaC__HAS_GAS__TEMPORARILY_DISABLED_FALSE}"; then cannam@86: { { echo "$as_me:$LINENO: error: conditional \"FLaC__HAS_GAS__TEMPORARILY_DISABLED\" was never defined. cannam@86: Usually this means the macro was only invoked conditionally." >&5 cannam@86: echo "$as_me: error: conditional \"FLaC__HAS_GAS__TEMPORARILY_DISABLED\" was never defined. cannam@86: Usually this means the macro was only invoked conditionally." >&2;} cannam@86: { (exit 1); exit 1; }; } cannam@86: fi cannam@86: cannam@86: : ${CONFIG_STATUS=./config.status} cannam@86: ac_clean_files_save=$ac_clean_files cannam@86: ac_clean_files="$ac_clean_files $CONFIG_STATUS" cannam@86: { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 cannam@86: echo "$as_me: creating $CONFIG_STATUS" >&6;} cannam@86: cat >$CONFIG_STATUS <<_ACEOF cannam@86: #! $SHELL cannam@86: # Generated by $as_me. cannam@86: # Run this file to recreate the current configuration. cannam@86: # Compiler output produced by configure, useful for debugging cannam@86: # configure, is in config.log if it exists. cannam@86: cannam@86: debug=false cannam@86: ac_cs_recheck=false cannam@86: ac_cs_silent=false cannam@86: SHELL=\${CONFIG_SHELL-$SHELL} cannam@86: _ACEOF cannam@86: cannam@86: cat >>$CONFIG_STATUS <<\_ACEOF cannam@86: ## --------------------- ## cannam@86: ## M4sh Initialization. ## cannam@86: ## --------------------- ## cannam@86: cannam@86: # Be Bourne compatible cannam@86: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then cannam@86: emulate sh cannam@86: NULLCMD=: cannam@86: # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which cannam@86: # is contrary to our usage. Disable this feature. cannam@86: alias -g '${1+"$@"}'='"$@"' cannam@86: elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then cannam@86: set -o posix cannam@86: fi cannam@86: DUALCASE=1; export DUALCASE # for MKS sh cannam@86: cannam@86: # Support unset when possible. cannam@86: if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then cannam@86: as_unset=unset cannam@86: else cannam@86: as_unset=false cannam@86: fi cannam@86: cannam@86: cannam@86: # Work around bugs in pre-3.0 UWIN ksh. cannam@86: $as_unset ENV MAIL MAILPATH cannam@86: PS1='$ ' cannam@86: PS2='> ' cannam@86: PS4='+ ' cannam@86: cannam@86: # NLS nuisances. cannam@86: for as_var in \ cannam@86: LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ cannam@86: LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ cannam@86: LC_TELEPHONE LC_TIME cannam@86: do cannam@86: if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then cannam@86: eval $as_var=C; export $as_var cannam@86: else cannam@86: $as_unset $as_var cannam@86: fi cannam@86: done cannam@86: cannam@86: # Required to use basename. cannam@86: if expr a : '\(a\)' >/dev/null 2>&1; then cannam@86: as_expr=expr cannam@86: else cannam@86: as_expr=false cannam@86: fi cannam@86: cannam@86: if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then cannam@86: as_basename=basename cannam@86: else cannam@86: as_basename=false cannam@86: fi cannam@86: cannam@86: cannam@86: # Name of the executable. cannam@86: as_me=`$as_basename "$0" || cannam@86: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ cannam@86: X"$0" : 'X\(//\)$' \| \ cannam@86: X"$0" : 'X\(/\)$' \| \ cannam@86: . : '\(.\)' 2>/dev/null || cannam@86: echo X/"$0" | cannam@86: sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } cannam@86: /^X\/\(\/\/\)$/{ s//\1/; q; } cannam@86: /^X\/\(\/\).*/{ s//\1/; q; } cannam@86: s/.*/./; q'` cannam@86: cannam@86: cannam@86: # PATH needs CR, and LINENO needs CR and PATH. cannam@86: # Avoid depending upon Character Ranges. cannam@86: as_cr_letters='abcdefghijklmnopqrstuvwxyz' cannam@86: as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' cannam@86: as_cr_Letters=$as_cr_letters$as_cr_LETTERS cannam@86: as_cr_digits='0123456789' cannam@86: as_cr_alnum=$as_cr_Letters$as_cr_digits cannam@86: cannam@86: # The user is always right. cannam@86: if test "${PATH_SEPARATOR+set}" != set; then cannam@86: echo "#! /bin/sh" >conf$$.sh cannam@86: echo "exit 0" >>conf$$.sh cannam@86: chmod +x conf$$.sh cannam@86: if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then cannam@86: PATH_SEPARATOR=';' cannam@86: else cannam@86: PATH_SEPARATOR=: cannam@86: fi cannam@86: rm -f conf$$.sh cannam@86: fi cannam@86: cannam@86: cannam@86: as_lineno_1=$LINENO cannam@86: as_lineno_2=$LINENO cannam@86: as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` cannam@86: test "x$as_lineno_1" != "x$as_lineno_2" && cannam@86: test "x$as_lineno_3" = "x$as_lineno_2" || { cannam@86: # Find who we are. Look in the path if we contain no path at all cannam@86: # relative or not. cannam@86: case $0 in cannam@86: *[\\/]* ) as_myself=$0 ;; cannam@86: *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR cannam@86: for as_dir in $PATH cannam@86: do cannam@86: IFS=$as_save_IFS cannam@86: test -z "$as_dir" && as_dir=. cannam@86: test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break cannam@86: done cannam@86: cannam@86: ;; cannam@86: esac cannam@86: # We did not find ourselves, most probably we were run as `sh COMMAND' cannam@86: # in which case we are not to be found in the path. cannam@86: if test "x$as_myself" = x; then cannam@86: as_myself=$0 cannam@86: fi cannam@86: if test ! -f "$as_myself"; then cannam@86: { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 cannam@86: echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} cannam@86: { (exit 1); exit 1; }; } cannam@86: fi cannam@86: case $CONFIG_SHELL in cannam@86: '') cannam@86: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR cannam@86: for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH cannam@86: do cannam@86: IFS=$as_save_IFS cannam@86: test -z "$as_dir" && as_dir=. cannam@86: for as_base in sh bash ksh sh5; do cannam@86: case $as_dir in cannam@86: /*) cannam@86: if ("$as_dir/$as_base" -c ' cannam@86: as_lineno_1=$LINENO cannam@86: as_lineno_2=$LINENO cannam@86: as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` cannam@86: test "x$as_lineno_1" != "x$as_lineno_2" && cannam@86: test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then cannam@86: $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } cannam@86: $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } cannam@86: CONFIG_SHELL=$as_dir/$as_base cannam@86: export CONFIG_SHELL cannam@86: exec "$CONFIG_SHELL" "$0" ${1+"$@"} cannam@86: fi;; cannam@86: esac cannam@86: done cannam@86: done cannam@86: ;; cannam@86: esac cannam@86: cannam@86: # Create $as_me.lineno as a copy of $as_myself, but with $LINENO cannam@86: # uniformly replaced by the line number. The first 'sed' inserts a cannam@86: # line-number line before each line; the second 'sed' does the real cannam@86: # work. The second script uses 'N' to pair each line-number line cannam@86: # with the numbered line, and appends trailing '-' during cannam@86: # substitution so that $LINENO is not a special case at line end. cannam@86: # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the cannam@86: # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) cannam@86: sed '=' <$as_myself | cannam@86: sed ' cannam@86: N cannam@86: s,$,-, cannam@86: : loop cannam@86: s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, cannam@86: t loop cannam@86: s,-$,, cannam@86: s,^['$as_cr_digits']*\n,, cannam@86: ' >$as_me.lineno && cannam@86: chmod +x $as_me.lineno || cannam@86: { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 cannam@86: echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} cannam@86: { (exit 1); exit 1; }; } cannam@86: cannam@86: # Don't try to exec as it changes $[0], causing all sort of problems cannam@86: # (the dirname of $[0] is not the place where we might find the cannam@86: # original and so on. Autoconf is especially sensible to this). cannam@86: . ./$as_me.lineno cannam@86: # Exit status is that of the last command. cannam@86: exit cannam@86: } cannam@86: cannam@86: cannam@86: case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in cannam@86: *c*,-n*) ECHO_N= ECHO_C=' cannam@86: ' ECHO_T=' ' ;; cannam@86: *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; cannam@86: *) ECHO_N= ECHO_C='\c' ECHO_T= ;; cannam@86: esac cannam@86: cannam@86: if expr a : '\(a\)' >/dev/null 2>&1; then cannam@86: as_expr=expr cannam@86: else cannam@86: as_expr=false cannam@86: fi cannam@86: cannam@86: rm -f conf$$ conf$$.exe conf$$.file cannam@86: echo >conf$$.file cannam@86: if ln -s conf$$.file conf$$ 2>/dev/null; then cannam@86: # We could just check for DJGPP; but this test a) works b) is more generic cannam@86: # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). cannam@86: if test -f conf$$.exe; then cannam@86: # Don't use ln at all; we don't have any links cannam@86: as_ln_s='cp -p' cannam@86: else cannam@86: as_ln_s='ln -s' cannam@86: fi cannam@86: elif ln conf$$.file conf$$ 2>/dev/null; then cannam@86: as_ln_s=ln cannam@86: else cannam@86: as_ln_s='cp -p' cannam@86: fi cannam@86: rm -f conf$$ conf$$.exe conf$$.file cannam@86: cannam@86: if mkdir -p . 2>/dev/null; then cannam@86: as_mkdir_p=: cannam@86: else cannam@86: test -d ./-p && rmdir ./-p cannam@86: as_mkdir_p=false cannam@86: fi cannam@86: cannam@86: as_executable_p="test -f" cannam@86: cannam@86: # Sed expression to map a string onto a valid CPP name. cannam@86: as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" cannam@86: cannam@86: # Sed expression to map a string onto a valid variable name. cannam@86: as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" cannam@86: cannam@86: cannam@86: # IFS cannam@86: # We need space, tab and new line, in precisely that order. cannam@86: as_nl=' cannam@86: ' cannam@86: IFS=" $as_nl" cannam@86: cannam@86: # CDPATH. cannam@86: $as_unset CDPATH cannam@86: cannam@86: exec 6>&1 cannam@86: cannam@86: # Open the log real soon, to keep \$[0] and so on meaningful, and to cannam@86: # report actual input values of CONFIG_FILES etc. instead of their cannam@86: # values after options handling. Logging --version etc. is OK. cannam@86: exec 5>>config.log cannam@86: { cannam@86: echo cannam@86: sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX cannam@86: ## Running $as_me. ## cannam@86: _ASBOX cannam@86: } >&5 cannam@86: cat >&5 <<_CSEOF cannam@86: cannam@86: This file was extended by $as_me, which was cannam@86: generated by GNU Autoconf 2.59. Invocation command line was cannam@86: cannam@86: CONFIG_FILES = $CONFIG_FILES cannam@86: CONFIG_HEADERS = $CONFIG_HEADERS cannam@86: CONFIG_LINKS = $CONFIG_LINKS cannam@86: CONFIG_COMMANDS = $CONFIG_COMMANDS cannam@86: $ $0 $@ cannam@86: cannam@86: _CSEOF cannam@86: echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 cannam@86: echo >&5 cannam@86: _ACEOF cannam@86: cannam@86: # Files that config.status was made for. cannam@86: if test -n "$ac_config_files"; then cannam@86: echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS cannam@86: fi cannam@86: cannam@86: if test -n "$ac_config_headers"; then cannam@86: echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS cannam@86: fi cannam@86: cannam@86: if test -n "$ac_config_links"; then cannam@86: echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS cannam@86: fi cannam@86: cannam@86: if test -n "$ac_config_commands"; then cannam@86: echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS cannam@86: fi cannam@86: cannam@86: cat >>$CONFIG_STATUS <<\_ACEOF cannam@86: cannam@86: ac_cs_usage="\ cannam@86: \`$as_me' instantiates files from templates according to the cannam@86: current configuration. cannam@86: cannam@86: Usage: $0 [OPTIONS] [FILE]... cannam@86: cannam@86: -h, --help print this help, then exit cannam@86: -V, --version print version number, then exit cannam@86: -q, --quiet do not print progress messages cannam@86: -d, --debug don't remove temporary files cannam@86: --recheck update $as_me by reconfiguring in the same conditions cannam@86: --file=FILE[:TEMPLATE] cannam@86: instantiate the configuration file FILE cannam@86: --header=FILE[:TEMPLATE] cannam@86: instantiate the configuration header FILE cannam@86: cannam@86: Configuration files: cannam@86: $config_files cannam@86: cannam@86: Configuration headers: cannam@86: $config_headers cannam@86: cannam@86: Configuration commands: cannam@86: $config_commands cannam@86: cannam@86: Report bugs to ." cannam@86: _ACEOF cannam@86: cannam@86: cat >>$CONFIG_STATUS <<_ACEOF cannam@86: ac_cs_version="\\ cannam@86: config.status cannam@86: configured by $0, generated by GNU Autoconf 2.59, cannam@86: with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" cannam@86: cannam@86: Copyright (C) 2003 Free Software Foundation, Inc. cannam@86: This config.status script is free software; the Free Software Foundation cannam@86: gives unlimited permission to copy, distribute and modify it." cannam@86: srcdir=$srcdir cannam@86: INSTALL="$INSTALL" cannam@86: _ACEOF cannam@86: cannam@86: cat >>$CONFIG_STATUS <<\_ACEOF cannam@86: # If no file are specified by the user, then we need to provide default cannam@86: # value. By we need to know if files were specified by the user. cannam@86: ac_need_defaults=: cannam@86: while test $# != 0 cannam@86: do cannam@86: case $1 in cannam@86: --*=*) cannam@86: ac_option=`expr "x$1" : 'x\([^=]*\)='` cannam@86: ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` cannam@86: ac_shift=: cannam@86: ;; cannam@86: -*) cannam@86: ac_option=$1 cannam@86: ac_optarg=$2 cannam@86: ac_shift=shift cannam@86: ;; cannam@86: *) # This is not an option, so the user has probably given explicit cannam@86: # arguments. cannam@86: ac_option=$1 cannam@86: ac_need_defaults=false;; cannam@86: esac cannam@86: cannam@86: case $ac_option in cannam@86: # Handling of the options. cannam@86: _ACEOF cannam@86: cat >>$CONFIG_STATUS <<\_ACEOF cannam@86: -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) cannam@86: ac_cs_recheck=: ;; cannam@86: --version | --vers* | -V ) cannam@86: echo "$ac_cs_version"; exit 0 ;; cannam@86: --he | --h) cannam@86: # Conflict between --help and --header cannam@86: { { echo "$as_me:$LINENO: error: ambiguous option: $1 cannam@86: Try \`$0 --help' for more information." >&5 cannam@86: echo "$as_me: error: ambiguous option: $1 cannam@86: Try \`$0 --help' for more information." >&2;} cannam@86: { (exit 1); exit 1; }; };; cannam@86: --help | --hel | -h ) cannam@86: echo "$ac_cs_usage"; exit 0 ;; cannam@86: --debug | --d* | -d ) cannam@86: debug=: ;; cannam@86: --file | --fil | --fi | --f ) cannam@86: $ac_shift cannam@86: CONFIG_FILES="$CONFIG_FILES $ac_optarg" cannam@86: ac_need_defaults=false;; cannam@86: --header | --heade | --head | --hea ) cannam@86: $ac_shift cannam@86: CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" cannam@86: ac_need_defaults=false;; cannam@86: -q | -quiet | --quiet | --quie | --qui | --qu | --q \ cannam@86: | -silent | --silent | --silen | --sile | --sil | --si | --s) cannam@86: ac_cs_silent=: ;; cannam@86: cannam@86: # This is an error. cannam@86: -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 cannam@86: Try \`$0 --help' for more information." >&5 cannam@86: echo "$as_me: error: unrecognized option: $1 cannam@86: Try \`$0 --help' for more information." >&2;} cannam@86: { (exit 1); exit 1; }; } ;; cannam@86: cannam@86: *) ac_config_targets="$ac_config_targets $1" ;; cannam@86: cannam@86: esac cannam@86: shift cannam@86: done cannam@86: cannam@86: ac_configure_extra_args= cannam@86: cannam@86: if $ac_cs_silent; then cannam@86: exec 6>/dev/null cannam@86: ac_configure_extra_args="$ac_configure_extra_args --silent" cannam@86: fi cannam@86: cannam@86: _ACEOF cannam@86: cat >>$CONFIG_STATUS <<_ACEOF cannam@86: if \$ac_cs_recheck; then cannam@86: echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 cannam@86: exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion cannam@86: fi cannam@86: cannam@86: _ACEOF cannam@86: cannam@86: cat >>$CONFIG_STATUS <<_ACEOF cannam@86: # cannam@86: # INIT-COMMANDS section. cannam@86: # cannam@86: cannam@86: AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" cannam@86: cannam@86: _ACEOF cannam@86: cannam@86: cannam@86: cannam@86: cat >>$CONFIG_STATUS <<\_ACEOF cannam@86: for ac_config_target in $ac_config_targets cannam@86: do cannam@86: case "$ac_config_target" in cannam@86: # Handling of arguments. cannam@86: "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; cannam@86: "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; cannam@86: "src/libFLAC/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/libFLAC/Makefile" ;; cannam@86: "src/libFLAC/flac.pc" ) CONFIG_FILES="$CONFIG_FILES src/libFLAC/flac.pc" ;; cannam@86: "src/libFLAC/ia32/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/libFLAC/ia32/Makefile" ;; cannam@86: "src/libFLAC/ppc/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/libFLAC/ppc/Makefile" ;; cannam@86: "src/libFLAC/ppc/as/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/libFLAC/ppc/as/Makefile" ;; cannam@86: "src/libFLAC/ppc/gas/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/libFLAC/ppc/gas/Makefile" ;; cannam@86: "src/libFLAC/include/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/libFLAC/include/Makefile" ;; cannam@86: "src/libFLAC/include/private/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/libFLAC/include/private/Makefile" ;; cannam@86: "src/libFLAC/include/protected/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/libFLAC/include/protected/Makefile" ;; cannam@86: "src/libFLAC++/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/libFLAC++/Makefile" ;; cannam@86: "src/libFLAC++/flac++.pc" ) CONFIG_FILES="$CONFIG_FILES src/libFLAC++/flac++.pc" ;; cannam@86: "src/flac/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/flac/Makefile" ;; cannam@86: "src/metaflac/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/metaflac/Makefile" ;; cannam@86: "src/monkeys_audio_utilities/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/monkeys_audio_utilities/Makefile" ;; cannam@86: "src/monkeys_audio_utilities/flac_mac/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/monkeys_audio_utilities/flac_mac/Makefile" ;; cannam@86: "src/monkeys_audio_utilities/flac_ren/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/monkeys_audio_utilities/flac_ren/Makefile" ;; cannam@86: "src/plugin_common/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/plugin_common/Makefile" ;; cannam@86: "src/plugin_winamp2/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/plugin_winamp2/Makefile" ;; cannam@86: "src/plugin_winamp2/include/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/plugin_winamp2/include/Makefile" ;; cannam@86: "src/plugin_winamp2/include/winamp2/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/plugin_winamp2/include/winamp2/Makefile" ;; cannam@86: "src/plugin_xmms/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/plugin_xmms/Makefile" ;; cannam@86: "src/share/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/share/Makefile" ;; cannam@86: "src/share/getopt/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/share/getopt/Makefile" ;; cannam@86: "src/share/grabbag/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/share/grabbag/Makefile" ;; cannam@86: "src/share/replaygain_analysis/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/share/replaygain_analysis/Makefile" ;; cannam@86: "src/share/replaygain_synthesis/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/share/replaygain_synthesis/Makefile" ;; cannam@86: "src/share/replaygain_synthesis/include/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/share/replaygain_synthesis/include/Makefile" ;; cannam@86: "src/share/replaygain_synthesis/include/private/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/share/replaygain_synthesis/include/private/Makefile" ;; cannam@86: "src/share/utf8/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/share/utf8/Makefile" ;; cannam@86: "src/test_grabbag/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/test_grabbag/Makefile" ;; cannam@86: "src/test_grabbag/cuesheet/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/test_grabbag/cuesheet/Makefile" ;; cannam@86: "src/test_grabbag/picture/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/test_grabbag/picture/Makefile" ;; cannam@86: "src/test_libs_common/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/test_libs_common/Makefile" ;; cannam@86: "src/test_libFLAC/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/test_libFLAC/Makefile" ;; cannam@86: "src/test_libFLAC++/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/test_libFLAC++/Makefile" ;; cannam@86: "src/test_seeking/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/test_seeking/Makefile" ;; cannam@86: "src/test_streams/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/test_streams/Makefile" ;; cannam@86: "examples/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;; cannam@86: "examples/c/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/c/Makefile" ;; cannam@86: "examples/c/decode/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/c/decode/Makefile" ;; cannam@86: "examples/c/decode/file/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/c/decode/file/Makefile" ;; cannam@86: "examples/c/encode/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/c/encode/Makefile" ;; cannam@86: "examples/c/encode/file/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/c/encode/file/Makefile" ;; cannam@86: "examples/cpp/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/cpp/Makefile" ;; cannam@86: "examples/cpp/decode/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/cpp/decode/Makefile" ;; cannam@86: "examples/cpp/decode/file/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/cpp/decode/file/Makefile" ;; cannam@86: "examples/cpp/encode/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/cpp/encode/Makefile" ;; cannam@86: "examples/cpp/encode/file/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/cpp/encode/file/Makefile" ;; cannam@86: "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;; cannam@86: "include/FLAC/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/FLAC/Makefile" ;; cannam@86: "include/FLAC++/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/FLAC++/Makefile" ;; cannam@86: "include/share/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/share/Makefile" ;; cannam@86: "include/share/grabbag/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/share/grabbag/Makefile" ;; cannam@86: "include/test_libs_common/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/test_libs_common/Makefile" ;; cannam@86: "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; cannam@86: "doc/html/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/html/Makefile" ;; cannam@86: "doc/html/images/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/html/images/Makefile" ;; cannam@86: "doc/html/images/hw/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/html/images/hw/Makefile" ;; cannam@86: "doc/html/ru/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/html/ru/Makefile" ;; cannam@86: "m4/Makefile" ) CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;; cannam@86: "man/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; cannam@86: "test/Makefile" ) CONFIG_FILES="$CONFIG_FILES test/Makefile" ;; cannam@86: "test/cuesheets/Makefile" ) CONFIG_FILES="$CONFIG_FILES test/cuesheets/Makefile" ;; cannam@86: "test/flac-to-flac-metadata-test-files/Makefile" ) CONFIG_FILES="$CONFIG_FILES test/flac-to-flac-metadata-test-files/Makefile" ;; cannam@86: "test/metaflac-test-files/Makefile" ) CONFIG_FILES="$CONFIG_FILES test/metaflac-test-files/Makefile" ;; cannam@86: "test/pictures/Makefile" ) CONFIG_FILES="$CONFIG_FILES test/pictures/Makefile" ;; cannam@86: "build/Makefile" ) CONFIG_FILES="$CONFIG_FILES build/Makefile" ;; cannam@86: "obj/Makefile" ) CONFIG_FILES="$CONFIG_FILES obj/Makefile" ;; cannam@86: "obj/debug/Makefile" ) CONFIG_FILES="$CONFIG_FILES obj/debug/Makefile" ;; cannam@86: "obj/debug/bin/Makefile" ) CONFIG_FILES="$CONFIG_FILES obj/debug/bin/Makefile" ;; cannam@86: "obj/debug/lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES obj/debug/lib/Makefile" ;; cannam@86: "obj/release/Makefile" ) CONFIG_FILES="$CONFIG_FILES obj/release/Makefile" ;; cannam@86: "obj/release/bin/Makefile" ) CONFIG_FILES="$CONFIG_FILES obj/release/bin/Makefile" ;; cannam@86: "obj/release/lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES obj/release/lib/Makefile" ;; cannam@86: "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; cannam@86: "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; cannam@86: *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 cannam@86: echo "$as_me: error: invalid argument: $ac_config_target" >&2;} cannam@86: { (exit 1); exit 1; }; };; cannam@86: esac cannam@86: done cannam@86: cannam@86: # If the user did not use the arguments to specify the items to instantiate, cannam@86: # then the envvar interface is used. Set only those that are not. cannam@86: # We use the long form for the default assignment because of an extremely cannam@86: # bizarre bug on SunOS 4.1.3. cannam@86: if $ac_need_defaults; then cannam@86: test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files cannam@86: test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers cannam@86: test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands cannam@86: fi cannam@86: cannam@86: # Have a temporary directory for convenience. Make it in the build tree cannam@86: # simply because there is no reason to put it here, and in addition, cannam@86: # creating and moving files from /tmp can sometimes cause problems. cannam@86: # Create a temporary directory, and hook for its removal unless debugging. cannam@86: $debug || cannam@86: { cannam@86: trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 cannam@86: trap '{ (exit 1); exit 1; }' 1 2 13 15 cannam@86: } cannam@86: cannam@86: # Create a (secure) tmp directory for tmp files. cannam@86: cannam@86: { cannam@86: tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && cannam@86: test -n "$tmp" && test -d "$tmp" cannam@86: } || cannam@86: { cannam@86: tmp=./confstat$$-$RANDOM cannam@86: (umask 077 && mkdir $tmp) cannam@86: } || cannam@86: { cannam@86: echo "$me: cannot create a temporary directory in ." >&2 cannam@86: { (exit 1); exit 1; } cannam@86: } cannam@86: cannam@86: _ACEOF cannam@86: cannam@86: cat >>$CONFIG_STATUS <<_ACEOF cannam@86: cannam@86: # cannam@86: # CONFIG_FILES section. cannam@86: # cannam@86: cannam@86: # No need to generate the scripts if there are no CONFIG_FILES. cannam@86: # This happens for instance when ./config.status config.h cannam@86: if test -n "\$CONFIG_FILES"; then cannam@86: # Protect against being on the right side of a sed subst in config.status. cannam@86: sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; cannam@86: s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF cannam@86: s,@SHELL@,$SHELL,;t t cannam@86: s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t cannam@86: s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t cannam@86: s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t cannam@86: s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t cannam@86: s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t cannam@86: s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t cannam@86: s,@exec_prefix@,$exec_prefix,;t t cannam@86: s,@prefix@,$prefix,;t t cannam@86: s,@program_transform_name@,$program_transform_name,;t t cannam@86: s,@bindir@,$bindir,;t t cannam@86: s,@sbindir@,$sbindir,;t t cannam@86: s,@libexecdir@,$libexecdir,;t t cannam@86: s,@datadir@,$datadir,;t t cannam@86: s,@sysconfdir@,$sysconfdir,;t t cannam@86: s,@sharedstatedir@,$sharedstatedir,;t t cannam@86: s,@localstatedir@,$localstatedir,;t t cannam@86: s,@libdir@,$libdir,;t t cannam@86: s,@includedir@,$includedir,;t t cannam@86: s,@oldincludedir@,$oldincludedir,;t t cannam@86: s,@infodir@,$infodir,;t t cannam@86: s,@mandir@,$mandir,;t t cannam@86: s,@build_alias@,$build_alias,;t t cannam@86: s,@host_alias@,$host_alias,;t t cannam@86: s,@target_alias@,$target_alias,;t t cannam@86: s,@DEFS@,$DEFS,;t t cannam@86: s,@ECHO_C@,$ECHO_C,;t t cannam@86: s,@ECHO_N@,$ECHO_N,;t t cannam@86: s,@ECHO_T@,$ECHO_T,;t t cannam@86: s,@LIBS@,$LIBS,;t t cannam@86: s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t cannam@86: s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t cannam@86: s,@INSTALL_DATA@,$INSTALL_DATA,;t t cannam@86: s,@CYGPATH_W@,$CYGPATH_W,;t t cannam@86: s,@PACKAGE@,$PACKAGE,;t t cannam@86: s,@VERSION@,$VERSION,;t t cannam@86: s,@ACLOCAL@,$ACLOCAL,;t t cannam@86: s,@AUTOCONF@,$AUTOCONF,;t t cannam@86: s,@AUTOMAKE@,$AUTOMAKE,;t t cannam@86: s,@AUTOHEADER@,$AUTOHEADER,;t t cannam@86: s,@MAKEINFO@,$MAKEINFO,;t t cannam@86: s,@AMTAR@,$AMTAR,;t t cannam@86: s,@install_sh@,$install_sh,;t t cannam@86: s,@STRIP@,$STRIP,;t t cannam@86: s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t cannam@86: s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t cannam@86: s,@AWK@,$AWK,;t t cannam@86: s,@SET_MAKE@,$SET_MAKE,;t t cannam@86: s,@am__leading_dot@,$am__leading_dot,;t t cannam@86: s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t cannam@86: s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t cannam@86: s,@MAINT@,$MAINT,;t t cannam@86: s,@build@,$build,;t t cannam@86: s,@build_cpu@,$build_cpu,;t t cannam@86: s,@build_vendor@,$build_vendor,;t t cannam@86: s,@build_os@,$build_os,;t t cannam@86: s,@host@,$host,;t t cannam@86: s,@host_cpu@,$host_cpu,;t t cannam@86: s,@host_vendor@,$host_vendor,;t t cannam@86: s,@host_os@,$host_os,;t t cannam@86: s,@CC@,$CC,;t t cannam@86: s,@CFLAGS@,$CFLAGS,;t t cannam@86: s,@LDFLAGS@,$LDFLAGS,;t t cannam@86: s,@CPPFLAGS@,$CPPFLAGS,;t t cannam@86: s,@ac_ct_CC@,$ac_ct_CC,;t t cannam@86: s,@EXEEXT@,$EXEEXT,;t t cannam@86: s,@OBJEXT@,$OBJEXT,;t t cannam@86: s,@DEPDIR@,$DEPDIR,;t t cannam@86: s,@am__include@,$am__include,;t t cannam@86: s,@am__quote@,$am__quote,;t t cannam@86: s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t cannam@86: s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t cannam@86: s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t cannam@86: s,@CCDEPMODE@,$CCDEPMODE,;t t cannam@86: s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t cannam@86: s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t cannam@86: s,@EGREP@,$EGREP,;t t cannam@86: s,@LN_S@,$LN_S,;t t cannam@86: s,@ECHO@,$ECHO,;t t cannam@86: s,@AR@,$AR,;t t cannam@86: s,@ac_ct_AR@,$ac_ct_AR,;t t cannam@86: s,@RANLIB@,$RANLIB,;t t cannam@86: s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t cannam@86: s,@CPP@,$CPP,;t t cannam@86: s,@CXX@,$CXX,;t t cannam@86: s,@CXXFLAGS@,$CXXFLAGS,;t t cannam@86: s,@ac_ct_CXX@,$ac_ct_CXX,;t t cannam@86: s,@CXXDEPMODE@,$CXXDEPMODE,;t t cannam@86: s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t cannam@86: s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t cannam@86: s,@CXXCPP@,$CXXCPP,;t t cannam@86: s,@F77@,$F77,;t t cannam@86: s,@FFLAGS@,$FFLAGS,;t t cannam@86: s,@ac_ct_F77@,$ac_ct_F77,;t t cannam@86: s,@LIBTOOL@,$LIBTOOL,;t t cannam@86: s,@ACLOCAL_AMFLAGS@,$ACLOCAL_AMFLAGS,;t t cannam@86: s,@CCAS@,$CCAS,;t t cannam@86: s,@CCASFLAGS@,$CCASFLAGS,;t t cannam@86: s,@FLaC__CPU_IA32_TRUE@,$FLaC__CPU_IA32_TRUE,;t t cannam@86: s,@FLaC__CPU_IA32_FALSE@,$FLaC__CPU_IA32_FALSE,;t t cannam@86: s,@FLaC__CPU_PPC_TRUE@,$FLaC__CPU_PPC_TRUE,;t t cannam@86: s,@FLaC__CPU_PPC_FALSE@,$FLaC__CPU_PPC_FALSE,;t t cannam@86: s,@FLaC__CPU_SPARC_TRUE@,$FLaC__CPU_SPARC_TRUE,;t t cannam@86: s,@FLaC__CPU_SPARC_FALSE@,$FLaC__CPU_SPARC_FALSE,;t t cannam@86: s,@OBJ_FORMAT@,$OBJ_FORMAT,;t t cannam@86: s,@MINGW_WINSOCK_LIBS@,$MINGW_WINSOCK_LIBS,;t t cannam@86: s,@FLaC__SYS_DARWIN_TRUE@,$FLaC__SYS_DARWIN_TRUE,;t t cannam@86: s,@FLaC__SYS_DARWIN_FALSE@,$FLaC__SYS_DARWIN_FALSE,;t t cannam@86: s,@FLaC__SYS_LINUX_TRUE@,$FLaC__SYS_LINUX_TRUE,;t t cannam@86: s,@FLaC__SYS_LINUX_FALSE@,$FLaC__SYS_LINUX_FALSE,;t t cannam@86: s,@FLaC__NO_ASM_TRUE@,$FLaC__NO_ASM_TRUE,;t t cannam@86: s,@FLaC__NO_ASM_FALSE@,$FLaC__NO_ASM_FALSE,;t t cannam@86: s,@DEBUG_TRUE@,$DEBUG_TRUE,;t t cannam@86: s,@DEBUG_FALSE@,$DEBUG_FALSE,;t t cannam@86: s,@FLaC__SSE_OS_TRUE@,$FLaC__SSE_OS_TRUE,;t t cannam@86: s,@FLaC__SSE_OS_FALSE@,$FLaC__SSE_OS_FALSE,;t t cannam@86: s,@FLaC__USE_3DNOW_TRUE@,$FLaC__USE_3DNOW_TRUE,;t t cannam@86: s,@FLaC__USE_3DNOW_FALSE@,$FLaC__USE_3DNOW_FALSE,;t t cannam@86: s,@FLaC__USE_ALTIVEC_TRUE@,$FLaC__USE_ALTIVEC_TRUE,;t t cannam@86: s,@FLaC__USE_ALTIVEC_FALSE@,$FLaC__USE_ALTIVEC_FALSE,;t t cannam@86: s,@FLAC__TEST_LEVEL@,$FLAC__TEST_LEVEL,;t t cannam@86: s,@FLAC__TEST_WITH_VALGRIND@,$FLAC__TEST_WITH_VALGRIND,;t t cannam@86: s,@DOXYGEN@,$DOXYGEN,;t t cannam@86: s,@FLaC__HAS_DOXYGEN_TRUE@,$FLaC__HAS_DOXYGEN_TRUE,;t t cannam@86: s,@FLaC__HAS_DOXYGEN_FALSE@,$FLaC__HAS_DOXYGEN_FALSE,;t t cannam@86: s,@FLaC__INSTALL_XMMS_PLUGIN_LOCALLY_TRUE@,$FLaC__INSTALL_XMMS_PLUGIN_LOCALLY_TRUE,;t t cannam@86: s,@FLaC__INSTALL_XMMS_PLUGIN_LOCALLY_FALSE@,$FLaC__INSTALL_XMMS_PLUGIN_LOCALLY_FALSE,;t t cannam@86: s,@XMMS_CONFIG@,$XMMS_CONFIG,;t t cannam@86: s,@XMMS_CFLAGS@,$XMMS_CFLAGS,;t t cannam@86: s,@XMMS_LIBS@,$XMMS_LIBS,;t t cannam@86: s,@XMMS_VERSION@,$XMMS_VERSION,;t t cannam@86: s,@XMMS_DATA_DIR@,$XMMS_DATA_DIR,;t t cannam@86: s,@XMMS_PLUGIN_DIR@,$XMMS_PLUGIN_DIR,;t t cannam@86: s,@XMMS_VISUALIZATION_PLUGIN_DIR@,$XMMS_VISUALIZATION_PLUGIN_DIR,;t t cannam@86: s,@XMMS_INPUT_PLUGIN_DIR@,$XMMS_INPUT_PLUGIN_DIR,;t t cannam@86: s,@XMMS_OUTPUT_PLUGIN_DIR@,$XMMS_OUTPUT_PLUGIN_DIR,;t t cannam@86: s,@XMMS_GENERAL_PLUGIN_DIR@,$XMMS_GENERAL_PLUGIN_DIR,;t t cannam@86: s,@XMMS_EFFECT_PLUGIN_DIR@,$XMMS_EFFECT_PLUGIN_DIR,;t t cannam@86: s,@FLaC__HAS_XMMS_TRUE@,$FLaC__HAS_XMMS_TRUE,;t t cannam@86: s,@FLaC__HAS_XMMS_FALSE@,$FLaC__HAS_XMMS_FALSE,;t t cannam@86: s,@FLaC__WITH_CPPLIBS_TRUE@,$FLaC__WITH_CPPLIBS_TRUE,;t t cannam@86: s,@FLaC__WITH_CPPLIBS_FALSE@,$FLaC__WITH_CPPLIBS_FALSE,;t t cannam@86: s,@OGG_CFLAGS@,$OGG_CFLAGS,;t t cannam@86: s,@OGG_LIBS@,$OGG_LIBS,;t t cannam@86: s,@FLaC__HAS_OGG_TRUE@,$FLaC__HAS_OGG_TRUE,;t t cannam@86: s,@FLaC__HAS_OGG_FALSE@,$FLaC__HAS_OGG_FALSE,;t t cannam@86: s,@LIBICONV@,$LIBICONV,;t t cannam@86: s,@LTLIBICONV@,$LTLIBICONV,;t t cannam@86: s,@DOCBOOK_TO_MAN@,$DOCBOOK_TO_MAN,;t t cannam@86: s,@FLaC__HAS_DOCBOOK_TO_MAN_TRUE@,$FLaC__HAS_DOCBOOK_TO_MAN_TRUE,;t t cannam@86: s,@FLaC__HAS_DOCBOOK_TO_MAN_FALSE@,$FLaC__HAS_DOCBOOK_TO_MAN_FALSE,;t t cannam@86: s,@NASM@,$NASM,;t t cannam@86: s,@FLaC__HAS_NASM_TRUE@,$FLaC__HAS_NASM_TRUE,;t t cannam@86: s,@FLaC__HAS_NASM_FALSE@,$FLaC__HAS_NASM_FALSE,;t t cannam@86: s,@AS@,$AS,;t t cannam@86: s,@GAS@,$GAS,;t t cannam@86: s,@FLaC__HAS_AS_TRUE@,$FLaC__HAS_AS_TRUE,;t t cannam@86: s,@FLaC__HAS_AS_FALSE@,$FLaC__HAS_AS_FALSE,;t t cannam@86: s,@FLaC__HAS_GAS_TRUE@,$FLaC__HAS_GAS_TRUE,;t t cannam@86: s,@FLaC__HAS_GAS_FALSE@,$FLaC__HAS_GAS_FALSE,;t t cannam@86: s,@FLaC__HAS_AS__TEMPORARILY_DISABLED_TRUE@,$FLaC__HAS_AS__TEMPORARILY_DISABLED_TRUE,;t t cannam@86: s,@FLaC__HAS_AS__TEMPORARILY_DISABLED_FALSE@,$FLaC__HAS_AS__TEMPORARILY_DISABLED_FALSE,;t t cannam@86: s,@FLaC__HAS_GAS__TEMPORARILY_DISABLED_TRUE@,$FLaC__HAS_GAS__TEMPORARILY_DISABLED_TRUE,;t t cannam@86: s,@FLaC__HAS_GAS__TEMPORARILY_DISABLED_FALSE@,$FLaC__HAS_GAS__TEMPORARILY_DISABLED_FALSE,;t t cannam@86: s,@LIBOBJS@,$LIBOBJS,;t t cannam@86: s,@LTLIBOBJS@,$LTLIBOBJS,;t t cannam@86: CEOF cannam@86: cannam@86: _ACEOF cannam@86: cannam@86: cat >>$CONFIG_STATUS <<\_ACEOF cannam@86: # Split the substitutions into bite-sized pieces for seds with cannam@86: # small command number limits, like on Digital OSF/1 and HP-UX. cannam@86: ac_max_sed_lines=48 cannam@86: ac_sed_frag=1 # Number of current file. cannam@86: ac_beg=1 # First line for current file. cannam@86: ac_end=$ac_max_sed_lines # Line after last line for current file. cannam@86: ac_more_lines=: cannam@86: ac_sed_cmds= cannam@86: while $ac_more_lines; do cannam@86: if test $ac_beg -gt 1; then cannam@86: sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag cannam@86: else cannam@86: sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag cannam@86: fi cannam@86: if test ! -s $tmp/subs.frag; then cannam@86: ac_more_lines=false cannam@86: else cannam@86: # The purpose of the label and of the branching condition is to cannam@86: # speed up the sed processing (if there are no `@' at all, there cannam@86: # is no need to browse any of the substitutions). cannam@86: # These are the two extra sed commands mentioned above. cannam@86: (echo ':t cannam@86: /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed cannam@86: if test -z "$ac_sed_cmds"; then cannam@86: ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" cannam@86: else cannam@86: ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" cannam@86: fi cannam@86: ac_sed_frag=`expr $ac_sed_frag + 1` cannam@86: ac_beg=$ac_end cannam@86: ac_end=`expr $ac_end + $ac_max_sed_lines` cannam@86: fi cannam@86: done cannam@86: if test -z "$ac_sed_cmds"; then cannam@86: ac_sed_cmds=cat cannam@86: fi cannam@86: fi # test -n "$CONFIG_FILES" cannam@86: cannam@86: _ACEOF cannam@86: cat >>$CONFIG_STATUS <<\_ACEOF cannam@86: for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue cannam@86: # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". cannam@86: case $ac_file in cannam@86: - | *:- | *:-:* ) # input from stdin cannam@86: cat >$tmp/stdin cannam@86: ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` cannam@86: ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; cannam@86: *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` cannam@86: ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; cannam@86: * ) ac_file_in=$ac_file.in ;; cannam@86: esac cannam@86: cannam@86: # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. cannam@86: ac_dir=`(dirname "$ac_file") 2>/dev/null || cannam@86: $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ cannam@86: X"$ac_file" : 'X\(//\)[^/]' \| \ cannam@86: X"$ac_file" : 'X\(//\)$' \| \ cannam@86: X"$ac_file" : 'X\(/\)' \| \ cannam@86: . : '\(.\)' 2>/dev/null || cannam@86: echo X"$ac_file" | cannam@86: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } cannam@86: /^X\(\/\/\)[^/].*/{ s//\1/; q; } cannam@86: /^X\(\/\/\)$/{ s//\1/; q; } cannam@86: /^X\(\/\).*/{ s//\1/; q; } cannam@86: s/.*/./; q'` cannam@86: { if $as_mkdir_p; then cannam@86: mkdir -p "$ac_dir" cannam@86: else cannam@86: as_dir="$ac_dir" cannam@86: as_dirs= cannam@86: while test ! -d "$as_dir"; do cannam@86: as_dirs="$as_dir $as_dirs" cannam@86: as_dir=`(dirname "$as_dir") 2>/dev/null || cannam@86: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ cannam@86: X"$as_dir" : 'X\(//\)[^/]' \| \ cannam@86: X"$as_dir" : 'X\(//\)$' \| \ cannam@86: X"$as_dir" : 'X\(/\)' \| \ cannam@86: . : '\(.\)' 2>/dev/null || cannam@86: echo X"$as_dir" | cannam@86: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } cannam@86: /^X\(\/\/\)[^/].*/{ s//\1/; q; } cannam@86: /^X\(\/\/\)$/{ s//\1/; q; } cannam@86: /^X\(\/\).*/{ s//\1/; q; } cannam@86: s/.*/./; q'` cannam@86: done cannam@86: test ! -n "$as_dirs" || mkdir $as_dirs cannam@86: fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 cannam@86: echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} cannam@86: { (exit 1); exit 1; }; }; } cannam@86: cannam@86: ac_builddir=. cannam@86: cannam@86: if test "$ac_dir" != .; then cannam@86: ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` cannam@86: # A "../" for each directory in $ac_dir_suffix. cannam@86: ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` cannam@86: else cannam@86: ac_dir_suffix= ac_top_builddir= cannam@86: fi cannam@86: cannam@86: case $srcdir in cannam@86: .) # No --srcdir option. We are building in place. cannam@86: ac_srcdir=. cannam@86: if test -z "$ac_top_builddir"; then cannam@86: ac_top_srcdir=. cannam@86: else cannam@86: ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` cannam@86: fi ;; cannam@86: [\\/]* | ?:[\\/]* ) # Absolute path. cannam@86: ac_srcdir=$srcdir$ac_dir_suffix; cannam@86: ac_top_srcdir=$srcdir ;; cannam@86: *) # Relative path. cannam@86: ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix cannam@86: ac_top_srcdir=$ac_top_builddir$srcdir ;; cannam@86: esac cannam@86: cannam@86: # Do not use `cd foo && pwd` to compute absolute paths, because cannam@86: # the directories may not exist. cannam@86: case `pwd` in cannam@86: .) ac_abs_builddir="$ac_dir";; cannam@86: *) cannam@86: case "$ac_dir" in cannam@86: .) ac_abs_builddir=`pwd`;; cannam@86: [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; cannam@86: *) ac_abs_builddir=`pwd`/"$ac_dir";; cannam@86: esac;; cannam@86: esac cannam@86: case $ac_abs_builddir in cannam@86: .) ac_abs_top_builddir=${ac_top_builddir}.;; cannam@86: *) cannam@86: case ${ac_top_builddir}. in cannam@86: .) ac_abs_top_builddir=$ac_abs_builddir;; cannam@86: [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; cannam@86: *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; cannam@86: esac;; cannam@86: esac cannam@86: case $ac_abs_builddir in cannam@86: .) ac_abs_srcdir=$ac_srcdir;; cannam@86: *) cannam@86: case $ac_srcdir in cannam@86: .) ac_abs_srcdir=$ac_abs_builddir;; cannam@86: [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; cannam@86: *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; cannam@86: esac;; cannam@86: esac cannam@86: case $ac_abs_builddir in cannam@86: .) ac_abs_top_srcdir=$ac_top_srcdir;; cannam@86: *) cannam@86: case $ac_top_srcdir in cannam@86: .) ac_abs_top_srcdir=$ac_abs_builddir;; cannam@86: [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; cannam@86: *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; cannam@86: esac;; cannam@86: esac cannam@86: cannam@86: cannam@86: case $INSTALL in cannam@86: [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; cannam@86: *) ac_INSTALL=$ac_top_builddir$INSTALL ;; cannam@86: esac cannam@86: cannam@86: if test x"$ac_file" != x-; then cannam@86: { echo "$as_me:$LINENO: creating $ac_file" >&5 cannam@86: echo "$as_me: creating $ac_file" >&6;} cannam@86: rm -f "$ac_file" cannam@86: fi cannam@86: # Let's still pretend it is `configure' which instantiates (i.e., don't cannam@86: # use $as_me), people would be surprised to read: cannam@86: # /* config.h. Generated by config.status. */ cannam@86: if test x"$ac_file" = x-; then cannam@86: configure_input= cannam@86: else cannam@86: configure_input="$ac_file. " cannam@86: fi cannam@86: configure_input=$configure_input"Generated from `echo $ac_file_in | cannam@86: sed 's,.*/,,'` by configure." cannam@86: cannam@86: # First look for the input files in the build tree, otherwise in the cannam@86: # src tree. cannam@86: ac_file_inputs=`IFS=: cannam@86: for f in $ac_file_in; do cannam@86: case $f in cannam@86: -) echo $tmp/stdin ;; cannam@86: [\\/$]*) cannam@86: # Absolute (can't be DOS-style, as IFS=:) cannam@86: test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 cannam@86: echo "$as_me: error: cannot find input file: $f" >&2;} cannam@86: { (exit 1); exit 1; }; } cannam@86: echo "$f";; cannam@86: *) # Relative cannam@86: if test -f "$f"; then cannam@86: # Build tree cannam@86: echo "$f" cannam@86: elif test -f "$srcdir/$f"; then cannam@86: # Source tree cannam@86: echo "$srcdir/$f" cannam@86: else cannam@86: # /dev/null tree cannam@86: { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 cannam@86: echo "$as_me: error: cannot find input file: $f" >&2;} cannam@86: { (exit 1); exit 1; }; } cannam@86: fi;; cannam@86: esac cannam@86: done` || { (exit 1); exit 1; } cannam@86: _ACEOF cannam@86: cat >>$CONFIG_STATUS <<_ACEOF cannam@86: sed "$ac_vpsub cannam@86: $extrasub cannam@86: _ACEOF cannam@86: cat >>$CONFIG_STATUS <<\_ACEOF cannam@86: :t cannam@86: /@[a-zA-Z_][a-zA-Z_0-9]*@/!b cannam@86: s,@configure_input@,$configure_input,;t t cannam@86: s,@srcdir@,$ac_srcdir,;t t cannam@86: s,@abs_srcdir@,$ac_abs_srcdir,;t t cannam@86: s,@top_srcdir@,$ac_top_srcdir,;t t cannam@86: s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t cannam@86: s,@builddir@,$ac_builddir,;t t cannam@86: s,@abs_builddir@,$ac_abs_builddir,;t t cannam@86: s,@top_builddir@,$ac_top_builddir,;t t cannam@86: s,@abs_top_builddir@,$ac_abs_top_builddir,;t t cannam@86: s,@INSTALL@,$ac_INSTALL,;t t cannam@86: " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out cannam@86: rm -f $tmp/stdin cannam@86: if test x"$ac_file" != x-; then cannam@86: mv $tmp/out $ac_file cannam@86: else cannam@86: cat $tmp/out cannam@86: rm -f $tmp/out cannam@86: fi cannam@86: cannam@86: done cannam@86: _ACEOF cannam@86: cat >>$CONFIG_STATUS <<\_ACEOF cannam@86: cannam@86: # cannam@86: # CONFIG_HEADER section. cannam@86: # cannam@86: cannam@86: # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where cannam@86: # NAME is the cpp macro being defined and VALUE is the value it is being given. cannam@86: # cannam@86: # ac_d sets the value in "#define NAME VALUE" lines. cannam@86: ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' cannam@86: ac_dB='[ ].*$,\1#\2' cannam@86: ac_dC=' ' cannam@86: ac_dD=',;t' cannam@86: # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". cannam@86: ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' cannam@86: ac_uB='$,\1#\2define\3' cannam@86: ac_uC=' ' cannam@86: ac_uD=',;t' cannam@86: cannam@86: for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue cannam@86: # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". cannam@86: case $ac_file in cannam@86: - | *:- | *:-:* ) # input from stdin cannam@86: cat >$tmp/stdin cannam@86: ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` cannam@86: ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; cannam@86: *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` cannam@86: ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; cannam@86: * ) ac_file_in=$ac_file.in ;; cannam@86: esac cannam@86: cannam@86: test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 cannam@86: echo "$as_me: creating $ac_file" >&6;} cannam@86: cannam@86: # First look for the input files in the build tree, otherwise in the cannam@86: # src tree. cannam@86: ac_file_inputs=`IFS=: cannam@86: for f in $ac_file_in; do cannam@86: case $f in cannam@86: -) echo $tmp/stdin ;; cannam@86: [\\/$]*) cannam@86: # Absolute (can't be DOS-style, as IFS=:) cannam@86: test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 cannam@86: echo "$as_me: error: cannot find input file: $f" >&2;} cannam@86: { (exit 1); exit 1; }; } cannam@86: # Do quote $f, to prevent DOS paths from being IFS'd. cannam@86: echo "$f";; cannam@86: *) # Relative cannam@86: if test -f "$f"; then cannam@86: # Build tree cannam@86: echo "$f" cannam@86: elif test -f "$srcdir/$f"; then cannam@86: # Source tree cannam@86: echo "$srcdir/$f" cannam@86: else cannam@86: # /dev/null tree cannam@86: { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 cannam@86: echo "$as_me: error: cannot find input file: $f" >&2;} cannam@86: { (exit 1); exit 1; }; } cannam@86: fi;; cannam@86: esac cannam@86: done` || { (exit 1); exit 1; } cannam@86: # Remove the trailing spaces. cannam@86: sed 's/[ ]*$//' $ac_file_inputs >$tmp/in cannam@86: cannam@86: _ACEOF cannam@86: cannam@86: # Transform confdefs.h into two sed scripts, `conftest.defines' and cannam@86: # `conftest.undefs', that substitutes the proper values into cannam@86: # config.h.in to produce config.h. The first handles `#define' cannam@86: # templates, and the second `#undef' templates. cannam@86: # And first: Protect against being on the right side of a sed subst in cannam@86: # config.status. Protect against being in an unquoted here document cannam@86: # in config.status. cannam@86: rm -f conftest.defines conftest.undefs cannam@86: # Using a here document instead of a string reduces the quoting nightmare. cannam@86: # Putting comments in sed scripts is not portable. cannam@86: # cannam@86: # `end' is used to avoid that the second main sed command (meant for cannam@86: # 0-ary CPP macros) applies to n-ary macro definitions. cannam@86: # See the Autoconf documentation for `clear'. cannam@86: cat >confdef2sed.sed <<\_ACEOF cannam@86: s/[\\&,]/\\&/g cannam@86: s,[\\$`],\\&,g cannam@86: t clear cannam@86: : clear cannam@86: s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp cannam@86: t end cannam@86: s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp cannam@86: : end cannam@86: _ACEOF cannam@86: # If some macros were called several times there might be several times cannam@86: # the same #defines, which is useless. Nevertheless, we may not want to cannam@86: # sort them, since we want the *last* AC-DEFINE to be honored. cannam@86: uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines cannam@86: sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs cannam@86: rm -f confdef2sed.sed cannam@86: cannam@86: # This sed command replaces #undef with comments. This is necessary, for cannam@86: # example, in the case of _POSIX_SOURCE, which is predefined and required cannam@86: # on some systems where configure will not decide to define it. cannam@86: cat >>conftest.undefs <<\_ACEOF cannam@86: s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, cannam@86: _ACEOF cannam@86: cannam@86: # Break up conftest.defines because some shells have a limit on the size cannam@86: # of here documents, and old seds have small limits too (100 cmds). cannam@86: echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS cannam@86: echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS cannam@86: echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS cannam@86: echo ' :' >>$CONFIG_STATUS cannam@86: rm -f conftest.tail cannam@86: while grep . conftest.defines >/dev/null cannam@86: do cannam@86: # Write a limited-size here document to $tmp/defines.sed. cannam@86: echo ' cat >$tmp/defines.sed <>$CONFIG_STATUS cannam@86: # Speed up: don't consider the non `#define' lines. cannam@86: echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS cannam@86: # Work around the forget-to-reset-the-flag bug. cannam@86: echo 't clr' >>$CONFIG_STATUS cannam@86: echo ': clr' >>$CONFIG_STATUS cannam@86: sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS cannam@86: echo 'CEOF cannam@86: sed -f $tmp/defines.sed $tmp/in >$tmp/out cannam@86: rm -f $tmp/in cannam@86: mv $tmp/out $tmp/in cannam@86: ' >>$CONFIG_STATUS cannam@86: sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail cannam@86: rm -f conftest.defines cannam@86: mv conftest.tail conftest.defines cannam@86: done cannam@86: rm -f conftest.defines cannam@86: echo ' fi # grep' >>$CONFIG_STATUS cannam@86: echo >>$CONFIG_STATUS cannam@86: cannam@86: # Break up conftest.undefs because some shells have a limit on the size cannam@86: # of here documents, and old seds have small limits too (100 cmds). cannam@86: echo ' # Handle all the #undef templates' >>$CONFIG_STATUS cannam@86: rm -f conftest.tail cannam@86: while grep . conftest.undefs >/dev/null cannam@86: do cannam@86: # Write a limited-size here document to $tmp/undefs.sed. cannam@86: echo ' cat >$tmp/undefs.sed <>$CONFIG_STATUS cannam@86: # Speed up: don't consider the non `#undef' cannam@86: echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS cannam@86: # Work around the forget-to-reset-the-flag bug. cannam@86: echo 't clr' >>$CONFIG_STATUS cannam@86: echo ': clr' >>$CONFIG_STATUS cannam@86: sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS cannam@86: echo 'CEOF cannam@86: sed -f $tmp/undefs.sed $tmp/in >$tmp/out cannam@86: rm -f $tmp/in cannam@86: mv $tmp/out $tmp/in cannam@86: ' >>$CONFIG_STATUS cannam@86: sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail cannam@86: rm -f conftest.undefs cannam@86: mv conftest.tail conftest.undefs cannam@86: done cannam@86: rm -f conftest.undefs cannam@86: cannam@86: cat >>$CONFIG_STATUS <<\_ACEOF cannam@86: # Let's still pretend it is `configure' which instantiates (i.e., don't cannam@86: # use $as_me), people would be surprised to read: cannam@86: # /* config.h. Generated by config.status. */ cannam@86: if test x"$ac_file" = x-; then cannam@86: echo "/* Generated by configure. */" >$tmp/config.h cannam@86: else cannam@86: echo "/* $ac_file. Generated by configure. */" >$tmp/config.h cannam@86: fi cannam@86: cat $tmp/in >>$tmp/config.h cannam@86: rm -f $tmp/in cannam@86: if test x"$ac_file" != x-; then cannam@86: if diff $ac_file $tmp/config.h >/dev/null 2>&1; then cannam@86: { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 cannam@86: echo "$as_me: $ac_file is unchanged" >&6;} cannam@86: else cannam@86: ac_dir=`(dirname "$ac_file") 2>/dev/null || cannam@86: $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ cannam@86: X"$ac_file" : 'X\(//\)[^/]' \| \ cannam@86: X"$ac_file" : 'X\(//\)$' \| \ cannam@86: X"$ac_file" : 'X\(/\)' \| \ cannam@86: . : '\(.\)' 2>/dev/null || cannam@86: echo X"$ac_file" | cannam@86: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } cannam@86: /^X\(\/\/\)[^/].*/{ s//\1/; q; } cannam@86: /^X\(\/\/\)$/{ s//\1/; q; } cannam@86: /^X\(\/\).*/{ s//\1/; q; } cannam@86: s/.*/./; q'` cannam@86: { if $as_mkdir_p; then cannam@86: mkdir -p "$ac_dir" cannam@86: else cannam@86: as_dir="$ac_dir" cannam@86: as_dirs= cannam@86: while test ! -d "$as_dir"; do cannam@86: as_dirs="$as_dir $as_dirs" cannam@86: as_dir=`(dirname "$as_dir") 2>/dev/null || cannam@86: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ cannam@86: X"$as_dir" : 'X\(//\)[^/]' \| \ cannam@86: X"$as_dir" : 'X\(//\)$' \| \ cannam@86: X"$as_dir" : 'X\(/\)' \| \ cannam@86: . : '\(.\)' 2>/dev/null || cannam@86: echo X"$as_dir" | cannam@86: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } cannam@86: /^X\(\/\/\)[^/].*/{ s//\1/; q; } cannam@86: /^X\(\/\/\)$/{ s//\1/; q; } cannam@86: /^X\(\/\).*/{ s//\1/; q; } cannam@86: s/.*/./; q'` cannam@86: done cannam@86: test ! -n "$as_dirs" || mkdir $as_dirs cannam@86: fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 cannam@86: echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} cannam@86: { (exit 1); exit 1; }; }; } cannam@86: cannam@86: rm -f $ac_file cannam@86: mv $tmp/config.h $ac_file cannam@86: fi cannam@86: else cannam@86: cat $tmp/config.h cannam@86: rm -f $tmp/config.h cannam@86: fi cannam@86: # Compute $ac_file's index in $config_headers. cannam@86: _am_stamp_count=1 cannam@86: for _am_header in $config_headers :; do cannam@86: case $_am_header in cannam@86: $ac_file | $ac_file:* ) cannam@86: break ;; cannam@86: * ) cannam@86: _am_stamp_count=`expr $_am_stamp_count + 1` ;; cannam@86: esac cannam@86: done cannam@86: echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null || cannam@86: $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ cannam@86: X$ac_file : 'X\(//\)[^/]' \| \ cannam@86: X$ac_file : 'X\(//\)$' \| \ cannam@86: X$ac_file : 'X\(/\)' \| \ cannam@86: . : '\(.\)' 2>/dev/null || cannam@86: echo X$ac_file | cannam@86: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } cannam@86: /^X\(\/\/\)[^/].*/{ s//\1/; q; } cannam@86: /^X\(\/\/\)$/{ s//\1/; q; } cannam@86: /^X\(\/\).*/{ s//\1/; q; } cannam@86: s/.*/./; q'`/stamp-h$_am_stamp_count cannam@86: done cannam@86: _ACEOF cannam@86: cat >>$CONFIG_STATUS <<\_ACEOF cannam@86: cannam@86: # cannam@86: # CONFIG_COMMANDS section. cannam@86: # cannam@86: for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue cannam@86: ac_dest=`echo "$ac_file" | sed 's,:.*,,'` cannam@86: ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` cannam@86: ac_dir=`(dirname "$ac_dest") 2>/dev/null || cannam@86: $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ cannam@86: X"$ac_dest" : 'X\(//\)[^/]' \| \ cannam@86: X"$ac_dest" : 'X\(//\)$' \| \ cannam@86: X"$ac_dest" : 'X\(/\)' \| \ cannam@86: . : '\(.\)' 2>/dev/null || cannam@86: echo X"$ac_dest" | cannam@86: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } cannam@86: /^X\(\/\/\)[^/].*/{ s//\1/; q; } cannam@86: /^X\(\/\/\)$/{ s//\1/; q; } cannam@86: /^X\(\/\).*/{ s//\1/; q; } cannam@86: s/.*/./; q'` cannam@86: { if $as_mkdir_p; then cannam@86: mkdir -p "$ac_dir" cannam@86: else cannam@86: as_dir="$ac_dir" cannam@86: as_dirs= cannam@86: while test ! -d "$as_dir"; do cannam@86: as_dirs="$as_dir $as_dirs" cannam@86: as_dir=`(dirname "$as_dir") 2>/dev/null || cannam@86: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ cannam@86: X"$as_dir" : 'X\(//\)[^/]' \| \ cannam@86: X"$as_dir" : 'X\(//\)$' \| \ cannam@86: X"$as_dir" : 'X\(/\)' \| \ cannam@86: . : '\(.\)' 2>/dev/null || cannam@86: echo X"$as_dir" | cannam@86: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } cannam@86: /^X\(\/\/\)[^/].*/{ s//\1/; q; } cannam@86: /^X\(\/\/\)$/{ s//\1/; q; } cannam@86: /^X\(\/\).*/{ s//\1/; q; } cannam@86: s/.*/./; q'` cannam@86: done cannam@86: test ! -n "$as_dirs" || mkdir $as_dirs cannam@86: fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 cannam@86: echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} cannam@86: { (exit 1); exit 1; }; }; } cannam@86: cannam@86: ac_builddir=. cannam@86: cannam@86: if test "$ac_dir" != .; then cannam@86: ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` cannam@86: # A "../" for each directory in $ac_dir_suffix. cannam@86: ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` cannam@86: else cannam@86: ac_dir_suffix= ac_top_builddir= cannam@86: fi cannam@86: cannam@86: case $srcdir in cannam@86: .) # No --srcdir option. We are building in place. cannam@86: ac_srcdir=. cannam@86: if test -z "$ac_top_builddir"; then cannam@86: ac_top_srcdir=. cannam@86: else cannam@86: ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` cannam@86: fi ;; cannam@86: [\\/]* | ?:[\\/]* ) # Absolute path. cannam@86: ac_srcdir=$srcdir$ac_dir_suffix; cannam@86: ac_top_srcdir=$srcdir ;; cannam@86: *) # Relative path. cannam@86: ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix cannam@86: ac_top_srcdir=$ac_top_builddir$srcdir ;; cannam@86: esac cannam@86: cannam@86: # Do not use `cd foo && pwd` to compute absolute paths, because cannam@86: # the directories may not exist. cannam@86: case `pwd` in cannam@86: .) ac_abs_builddir="$ac_dir";; cannam@86: *) cannam@86: case "$ac_dir" in cannam@86: .) ac_abs_builddir=`pwd`;; cannam@86: [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; cannam@86: *) ac_abs_builddir=`pwd`/"$ac_dir";; cannam@86: esac;; cannam@86: esac cannam@86: case $ac_abs_builddir in cannam@86: .) ac_abs_top_builddir=${ac_top_builddir}.;; cannam@86: *) cannam@86: case ${ac_top_builddir}. in cannam@86: .) ac_abs_top_builddir=$ac_abs_builddir;; cannam@86: [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; cannam@86: *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; cannam@86: esac;; cannam@86: esac cannam@86: case $ac_abs_builddir in cannam@86: .) ac_abs_srcdir=$ac_srcdir;; cannam@86: *) cannam@86: case $ac_srcdir in cannam@86: .) ac_abs_srcdir=$ac_abs_builddir;; cannam@86: [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; cannam@86: *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; cannam@86: esac;; cannam@86: esac cannam@86: case $ac_abs_builddir in cannam@86: .) ac_abs_top_srcdir=$ac_top_srcdir;; cannam@86: *) cannam@86: case $ac_top_srcdir in cannam@86: .) ac_abs_top_srcdir=$ac_abs_builddir;; cannam@86: [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; cannam@86: *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; cannam@86: esac;; cannam@86: esac cannam@86: cannam@86: cannam@86: { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 cannam@86: echo "$as_me: executing $ac_dest commands" >&6;} cannam@86: case $ac_dest in cannam@86: depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do cannam@86: # Strip MF so we end up with the name of the file. cannam@86: mf=`echo "$mf" | sed -e 's/:.*$//'` cannam@86: # Check whether this is an Automake generated Makefile or not. cannam@86: # We used to match only the files named `Makefile.in', but cannam@86: # some people rename them; so instead we look at the file content. cannam@86: # Grep'ing the first line is not enough: some people post-process cannam@86: # each Makefile.in and add a new line on top of each file to say so. cannam@86: # So let's grep whole file. cannam@86: if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then cannam@86: dirpart=`(dirname "$mf") 2>/dev/null || cannam@86: $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ cannam@86: X"$mf" : 'X\(//\)[^/]' \| \ cannam@86: X"$mf" : 'X\(//\)$' \| \ cannam@86: X"$mf" : 'X\(/\)' \| \ cannam@86: . : '\(.\)' 2>/dev/null || cannam@86: echo X"$mf" | cannam@86: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } cannam@86: /^X\(\/\/\)[^/].*/{ s//\1/; q; } cannam@86: /^X\(\/\/\)$/{ s//\1/; q; } cannam@86: /^X\(\/\).*/{ s//\1/; q; } cannam@86: s/.*/./; q'` cannam@86: else cannam@86: continue cannam@86: fi cannam@86: grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue cannam@86: # Extract the definition of DEP_FILES from the Makefile without cannam@86: # running `make'. cannam@86: DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"` cannam@86: test -z "$DEPDIR" && continue cannam@86: # When using ansi2knr, U may be empty or an underscore; expand it cannam@86: U=`sed -n -e '/^U = / s///p' < "$mf"` cannam@86: test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR" cannam@86: # We invoke sed twice because it is the simplest approach to cannam@86: # changing $(DEPDIR) to its actual value in the expansion. cannam@86: for file in `sed -n -e ' cannam@86: /^DEP_FILES = .*\\\\$/ { cannam@86: s/^DEP_FILES = // cannam@86: :loop cannam@86: s/\\\\$// cannam@86: p cannam@86: n cannam@86: /\\\\$/ b loop cannam@86: p cannam@86: } cannam@86: /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \ cannam@86: sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do cannam@86: # Make sure the directory exists. cannam@86: test -f "$dirpart/$file" && continue cannam@86: fdir=`(dirname "$file") 2>/dev/null || cannam@86: $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ cannam@86: X"$file" : 'X\(//\)[^/]' \| \ cannam@86: X"$file" : 'X\(//\)$' \| \ cannam@86: X"$file" : 'X\(/\)' \| \ cannam@86: . : '\(.\)' 2>/dev/null || cannam@86: echo X"$file" | cannam@86: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } cannam@86: /^X\(\/\/\)[^/].*/{ s//\1/; q; } cannam@86: /^X\(\/\/\)$/{ s//\1/; q; } cannam@86: /^X\(\/\).*/{ s//\1/; q; } cannam@86: s/.*/./; q'` cannam@86: { if $as_mkdir_p; then cannam@86: mkdir -p $dirpart/$fdir cannam@86: else cannam@86: as_dir=$dirpart/$fdir cannam@86: as_dirs= cannam@86: while test ! -d "$as_dir"; do cannam@86: as_dirs="$as_dir $as_dirs" cannam@86: as_dir=`(dirname "$as_dir") 2>/dev/null || cannam@86: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ cannam@86: X"$as_dir" : 'X\(//\)[^/]' \| \ cannam@86: X"$as_dir" : 'X\(//\)$' \| \ cannam@86: X"$as_dir" : 'X\(/\)' \| \ cannam@86: . : '\(.\)' 2>/dev/null || cannam@86: echo X"$as_dir" | cannam@86: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } cannam@86: /^X\(\/\/\)[^/].*/{ s//\1/; q; } cannam@86: /^X\(\/\/\)$/{ s//\1/; q; } cannam@86: /^X\(\/\).*/{ s//\1/; q; } cannam@86: s/.*/./; q'` cannam@86: done cannam@86: test ! -n "$as_dirs" || mkdir $as_dirs cannam@86: fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5 cannam@86: echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;} cannam@86: { (exit 1); exit 1; }; }; } cannam@86: cannam@86: # echo "creating $dirpart/$file" cannam@86: echo '# dummy' > "$dirpart/$file" cannam@86: done cannam@86: done cannam@86: ;; cannam@86: esac cannam@86: done cannam@86: _ACEOF cannam@86: cannam@86: cat >>$CONFIG_STATUS <<\_ACEOF cannam@86: cannam@86: { (exit 0); exit 0; } cannam@86: _ACEOF cannam@86: chmod +x $CONFIG_STATUS cannam@86: ac_clean_files=$ac_clean_files_save cannam@86: cannam@86: cannam@86: # configure is writing to config.log, and then calls config.status. cannam@86: # config.status does its own redirection, appending to config.log. cannam@86: # Unfortunately, on DOS this fails, as config.log is still kept open cannam@86: # by configure, so config.status won't be able to write to it; its cannam@86: # output is simply discarded. So we exec the FD to /dev/null, cannam@86: # effectively closing config.log, so it can be properly (re)opened and cannam@86: # appended to by config.status. When coming back to configure, we cannam@86: # need to make the FD available again. cannam@86: if test "$no_create" != yes; then cannam@86: ac_cs_success=: cannam@86: ac_config_status_args= cannam@86: test "$silent" = yes && cannam@86: ac_config_status_args="$ac_config_status_args --quiet" cannam@86: exec 5>/dev/null cannam@86: $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false cannam@86: exec 5>>config.log cannam@86: # Use ||, not &&, to avoid exiting from the if with $? = 1, which cannam@86: # would make configure fail if this is the last instruction. cannam@86: $ac_cs_success || { (exit 1); exit 1; } cannam@86: fi cannam@86: