melunko@47: #! /bin/sh melunko@47: # Guess values for system-dependent variables and create Makefiles. melunko@47: # Generated by GNU Autoconf 2.59. melunko@47: # melunko@47: # Copyright (C) 2003 Free Software Foundation, Inc. melunko@47: # This configure script is free software; the Free Software Foundation melunko@47: # gives unlimited permission to copy, distribute and modify it. melunko@47: ## --------------------- ## melunko@47: ## M4sh Initialization. ## melunko@47: ## --------------------- ## melunko@47: melunko@47: # Be Bourne compatible melunko@47: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then melunko@47: emulate sh melunko@47: NULLCMD=: melunko@47: # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which melunko@47: # is contrary to our usage. Disable this feature. melunko@47: alias -g '${1+"$@"}'='"$@"' melunko@47: elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then melunko@47: set -o posix melunko@47: fi melunko@47: DUALCASE=1; export DUALCASE # for MKS sh melunko@47: melunko@47: # Support unset when possible. melunko@47: if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then melunko@47: as_unset=unset melunko@47: else melunko@47: as_unset=false melunko@47: fi melunko@47: melunko@47: melunko@47: # Work around bugs in pre-3.0 UWIN ksh. melunko@47: $as_unset ENV MAIL MAILPATH melunko@47: PS1='$ ' melunko@47: PS2='> ' melunko@47: PS4='+ ' melunko@47: melunko@47: # NLS nuisances. melunko@47: for as_var in \ melunko@47: LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ melunko@47: LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ melunko@47: LC_TELEPHONE LC_TIME melunko@47: do melunko@47: if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then melunko@47: eval $as_var=C; export $as_var melunko@47: else melunko@47: $as_unset $as_var melunko@47: fi melunko@47: done melunko@47: melunko@47: # Required to use basename. melunko@47: if expr a : '\(a\)' >/dev/null 2>&1; then melunko@47: as_expr=expr melunko@47: else melunko@47: as_expr=false melunko@47: fi melunko@47: melunko@47: if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then melunko@47: as_basename=basename melunko@47: else melunko@47: as_basename=false melunko@47: fi melunko@47: melunko@47: melunko@47: # Name of the executable. melunko@47: as_me=`$as_basename "$0" || melunko@47: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ melunko@47: X"$0" : 'X\(//\)$' \| \ melunko@47: X"$0" : 'X\(/\)$' \| \ melunko@47: . : '\(.\)' 2>/dev/null || melunko@47: echo X/"$0" | melunko@47: sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } melunko@47: /^X\/\(\/\/\)$/{ s//\1/; q; } melunko@47: /^X\/\(\/\).*/{ s//\1/; q; } melunko@47: s/.*/./; q'` melunko@47: melunko@47: melunko@47: # PATH needs CR, and LINENO needs CR and PATH. melunko@47: # Avoid depending upon Character Ranges. melunko@47: as_cr_letters='abcdefghijklmnopqrstuvwxyz' melunko@47: as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' melunko@47: as_cr_Letters=$as_cr_letters$as_cr_LETTERS melunko@47: as_cr_digits='0123456789' melunko@47: as_cr_alnum=$as_cr_Letters$as_cr_digits melunko@47: melunko@47: # The user is always right. melunko@47: if test "${PATH_SEPARATOR+set}" != set; then melunko@47: echo "#! /bin/sh" >conf$$.sh melunko@47: echo "exit 0" >>conf$$.sh melunko@47: chmod +x conf$$.sh melunko@47: if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then melunko@47: PATH_SEPARATOR=';' melunko@47: else melunko@47: PATH_SEPARATOR=: melunko@47: fi melunko@47: rm -f conf$$.sh melunko@47: fi melunko@47: melunko@47: melunko@47: as_lineno_1=$LINENO melunko@47: as_lineno_2=$LINENO melunko@47: as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` melunko@47: test "x$as_lineno_1" != "x$as_lineno_2" && melunko@47: test "x$as_lineno_3" = "x$as_lineno_2" || { melunko@47: # Find who we are. Look in the path if we contain no path at all melunko@47: # relative or not. melunko@47: case $0 in melunko@47: *[\\/]* ) as_myself=$0 ;; melunko@47: *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR melunko@47: for as_dir in $PATH melunko@47: do melunko@47: IFS=$as_save_IFS melunko@47: test -z "$as_dir" && as_dir=. melunko@47: test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break melunko@47: done melunko@47: melunko@47: ;; melunko@47: esac melunko@47: # We did not find ourselves, most probably we were run as `sh COMMAND' melunko@47: # in which case we are not to be found in the path. melunko@47: if test "x$as_myself" = x; then melunko@47: as_myself=$0 melunko@47: fi melunko@47: if test ! -f "$as_myself"; then melunko@47: { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2 melunko@47: { (exit 1); exit 1; }; } melunko@47: fi melunko@47: case $CONFIG_SHELL in melunko@47: '') melunko@47: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR melunko@47: for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH melunko@47: do melunko@47: IFS=$as_save_IFS melunko@47: test -z "$as_dir" && as_dir=. melunko@47: for as_base in sh bash ksh sh5; do melunko@47: case $as_dir in melunko@47: /*) melunko@47: if ("$as_dir/$as_base" -c ' melunko@47: as_lineno_1=$LINENO melunko@47: as_lineno_2=$LINENO melunko@47: as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` melunko@47: test "x$as_lineno_1" != "x$as_lineno_2" && melunko@47: test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then melunko@47: $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } melunko@47: $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } melunko@47: CONFIG_SHELL=$as_dir/$as_base melunko@47: export CONFIG_SHELL melunko@47: exec "$CONFIG_SHELL" "$0" ${1+"$@"} melunko@47: fi;; melunko@47: esac melunko@47: done melunko@47: done melunko@47: ;; melunko@47: esac melunko@47: melunko@47: # Create $as_me.lineno as a copy of $as_myself, but with $LINENO melunko@47: # uniformly replaced by the line number. The first 'sed' inserts a melunko@47: # line-number line before each line; the second 'sed' does the real melunko@47: # work. The second script uses 'N' to pair each line-number line melunko@47: # with the numbered line, and appends trailing '-' during melunko@47: # substitution so that $LINENO is not a special case at line end. melunko@47: # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the melunko@47: # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) melunko@47: sed '=' <$as_myself | melunko@47: sed ' melunko@47: N melunko@47: s,$,-, melunko@47: : loop melunko@47: s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, melunko@47: t loop melunko@47: s,-$,, melunko@47: s,^['$as_cr_digits']*\n,, melunko@47: ' >$as_me.lineno && melunko@47: chmod +x $as_me.lineno || melunko@47: { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 melunko@47: { (exit 1); exit 1; }; } melunko@47: melunko@47: # Don't try to exec as it changes $[0], causing all sort of problems melunko@47: # (the dirname of $[0] is not the place where we might find the melunko@47: # original and so on. Autoconf is especially sensible to this). melunko@47: . ./$as_me.lineno melunko@47: # Exit status is that of the last command. melunko@47: exit melunko@47: } melunko@47: melunko@47: melunko@47: case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in melunko@47: *c*,-n*) ECHO_N= ECHO_C=' melunko@47: ' ECHO_T=' ' ;; melunko@47: *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; melunko@47: *) ECHO_N= ECHO_C='\c' ECHO_T= ;; melunko@47: esac melunko@47: melunko@47: if expr a : '\(a\)' >/dev/null 2>&1; then melunko@47: as_expr=expr melunko@47: else melunko@47: as_expr=false melunko@47: fi melunko@47: melunko@47: rm -f conf$$ conf$$.exe conf$$.file melunko@47: echo >conf$$.file melunko@47: if ln -s conf$$.file conf$$ 2>/dev/null; then melunko@47: # We could just check for DJGPP; but this test a) works b) is more generic melunko@47: # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). melunko@47: if test -f conf$$.exe; then melunko@47: # Don't use ln at all; we don't have any links melunko@47: as_ln_s='cp -p' melunko@47: else melunko@47: as_ln_s='ln -s' melunko@47: fi melunko@47: elif ln conf$$.file conf$$ 2>/dev/null; then melunko@47: as_ln_s=ln melunko@47: else melunko@47: as_ln_s='cp -p' melunko@47: fi melunko@47: rm -f conf$$ conf$$.exe conf$$.file melunko@47: melunko@47: if mkdir -p . 2>/dev/null; then melunko@47: as_mkdir_p=: melunko@47: else melunko@47: test -d ./-p && rmdir ./-p melunko@47: as_mkdir_p=false melunko@47: fi melunko@47: melunko@47: as_executable_p="test -f" melunko@47: melunko@47: # Sed expression to map a string onto a valid CPP name. melunko@47: as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" melunko@47: melunko@47: # Sed expression to map a string onto a valid variable name. melunko@47: as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" melunko@47: melunko@47: melunko@47: # IFS melunko@47: # We need space, tab and new line, in precisely that order. melunko@47: as_nl=' melunko@47: ' melunko@47: IFS=" $as_nl" melunko@47: melunko@47: # CDPATH. melunko@47: $as_unset CDPATH melunko@47: melunko@47: melunko@47: melunko@47: # Check that we are running under the correct shell. melunko@47: SHELL=${CONFIG_SHELL-/bin/sh} melunko@47: melunko@47: case X$ECHO in melunko@47: X*--fallback-echo) melunko@47: # Remove one level of quotation (which was required for Make). melunko@47: ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','` melunko@47: ;; melunko@47: esac melunko@47: melunko@47: echo=${ECHO-echo} melunko@47: if test "X$1" = X--no-reexec; then melunko@47: # Discard the --no-reexec flag, and continue. melunko@47: shift melunko@47: elif test "X$1" = X--fallback-echo; then melunko@47: # Avoid inline document here, it may be left over melunko@47: : melunko@47: elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then melunko@47: # Yippee, $echo works! melunko@47: : melunko@47: else melunko@47: # Restart under the correct shell. melunko@47: exec $SHELL "$0" --no-reexec ${1+"$@"} melunko@47: fi melunko@47: melunko@47: if test "X$1" = X--fallback-echo; then melunko@47: # used as fallback echo melunko@47: shift melunko@47: cat </dev/null 2>&1 && unset CDPATH melunko@47: melunko@47: if test -z "$ECHO"; then melunko@47: if test "X${echo_test_string+set}" != Xset; then melunko@47: # find a string as large as possible, as long as the shell can cope with it melunko@47: for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do melunko@47: # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... melunko@47: if (echo_test_string=`eval $cmd`) 2>/dev/null && melunko@47: echo_test_string=`eval $cmd` && melunko@47: (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null melunko@47: then melunko@47: break melunko@47: fi melunko@47: done melunko@47: fi melunko@47: melunko@47: if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && melunko@47: echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && melunko@47: test "X$echo_testing_string" = "X$echo_test_string"; then melunko@47: : melunko@47: else melunko@47: # The Solaris, AIX, and Digital Unix default echo programs unquote melunko@47: # backslashes. This makes it impossible to quote backslashes using melunko@47: # echo "$something" | sed 's/\\/\\\\/g' melunko@47: # melunko@47: # So, first we look for a working echo in the user's PATH. melunko@47: melunko@47: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR melunko@47: for dir in $PATH /usr/ucb; do melunko@47: IFS="$lt_save_ifs" melunko@47: if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && melunko@47: test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && melunko@47: echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && melunko@47: test "X$echo_testing_string" = "X$echo_test_string"; then melunko@47: echo="$dir/echo" melunko@47: break melunko@47: fi melunko@47: done melunko@47: IFS="$lt_save_ifs" melunko@47: melunko@47: if test "X$echo" = Xecho; then melunko@47: # We didn't find a better echo, so look for alternatives. melunko@47: if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' && melunko@47: echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` && melunko@47: test "X$echo_testing_string" = "X$echo_test_string"; then melunko@47: # This shell has a builtin print -r that does the trick. melunko@47: echo='print -r' melunko@47: elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) && melunko@47: test "X$CONFIG_SHELL" != X/bin/ksh; then melunko@47: # If we have ksh, try running configure again with it. melunko@47: ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} melunko@47: export ORIGINAL_CONFIG_SHELL melunko@47: CONFIG_SHELL=/bin/ksh melunko@47: export CONFIG_SHELL melunko@47: exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} melunko@47: else melunko@47: # Try using printf. melunko@47: echo='printf %s\n' melunko@47: if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && melunko@47: echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && melunko@47: test "X$echo_testing_string" = "X$echo_test_string"; then melunko@47: # Cool, printf works melunko@47: : melunko@47: elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && melunko@47: test "X$echo_testing_string" = 'X\t' && melunko@47: echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && melunko@47: test "X$echo_testing_string" = "X$echo_test_string"; then melunko@47: CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL melunko@47: export CONFIG_SHELL melunko@47: SHELL="$CONFIG_SHELL" melunko@47: export SHELL melunko@47: echo="$CONFIG_SHELL $0 --fallback-echo" melunko@47: elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && melunko@47: test "X$echo_testing_string" = 'X\t' && melunko@47: echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && melunko@47: test "X$echo_testing_string" = "X$echo_test_string"; then melunko@47: echo="$CONFIG_SHELL $0 --fallback-echo" melunko@47: else melunko@47: # maybe with a smaller string... melunko@47: prev=: melunko@47: melunko@47: for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do melunko@47: if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null melunko@47: then melunko@47: break melunko@47: fi melunko@47: prev="$cmd" melunko@47: done melunko@47: melunko@47: if test "$prev" != 'sed 50q "$0"'; then melunko@47: echo_test_string=`eval $prev` melunko@47: export echo_test_string melunko@47: exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} melunko@47: else melunko@47: # Oops. We lost completely, so just stick with echo. melunko@47: echo=echo melunko@47: fi melunko@47: fi melunko@47: fi melunko@47: fi melunko@47: fi melunko@47: fi melunko@47: melunko@47: # Copy echo and quote the copy suitably for passing to libtool from melunko@47: # the Makefile, instead of quoting the original, which is used later. melunko@47: ECHO=$echo melunko@47: if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then melunko@47: ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" melunko@47: fi melunko@47: melunko@47: melunko@47: melunko@47: melunko@47: tagnames=${tagnames+${tagnames},}CXX melunko@47: melunko@47: tagnames=${tagnames+${tagnames},}F77 melunko@47: melunko@47: # Name of the host. melunko@47: # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, melunko@47: # so uname gets run too. melunko@47: ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` melunko@47: melunko@47: exec 6>&1 melunko@47: melunko@47: # melunko@47: # Initializations. melunko@47: # melunko@47: ac_default_prefix=/usr/local melunko@47: ac_config_libobj_dir=. melunko@47: cross_compiling=no melunko@47: subdirs= melunko@47: MFLAGS= melunko@47: MAKEFLAGS= melunko@47: SHELL=${CONFIG_SHELL-/bin/sh} melunko@47: melunko@47: # Maximum number of lines to put in a shell here document. melunko@47: # This variable seems obsolete. It should probably be removed, and melunko@47: # only ac_max_sed_lines should be used. melunko@47: : ${ac_max_here_lines=38} melunko@47: melunko@47: # Identity of this package. melunko@47: PACKAGE_NAME= melunko@47: PACKAGE_TARNAME= melunko@47: PACKAGE_VERSION= melunko@47: PACKAGE_STRING= melunko@47: PACKAGE_BUGREPORT= melunko@47: melunko@47: # Factoring default headers for most tests. melunko@47: ac_includes_default="\ melunko@47: #include melunko@47: #if HAVE_SYS_TYPES_H melunko@47: # include melunko@47: #endif melunko@47: #if HAVE_SYS_STAT_H melunko@47: # include melunko@47: #endif melunko@47: #if STDC_HEADERS melunko@47: # include melunko@47: # include melunko@47: #else melunko@47: # if HAVE_STDLIB_H melunko@47: # include melunko@47: # endif melunko@47: #endif melunko@47: #if HAVE_STRING_H melunko@47: # if !STDC_HEADERS && HAVE_MEMORY_H melunko@47: # include melunko@47: # endif melunko@47: # include melunko@47: #endif melunko@47: #if HAVE_STRINGS_H melunko@47: # include melunko@47: #endif melunko@47: #if HAVE_INTTYPES_H melunko@47: # include melunko@47: #else melunko@47: # if HAVE_STDINT_H melunko@47: # include melunko@47: # endif melunko@47: #endif melunko@47: #if HAVE_UNISTD_H melunko@47: # include melunko@47: #endif" melunko@47: melunko@47: 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 build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT GST_PLUGINS_VERSION GST_PLUGINS_VERSION_RELEASE GST_PLUGINS_VERSION_MAJOR GST_PLUGINS_VERSION_MINOR GST_PLUGINS_VERSION_MICRO GST_PLUGINS_VERSION_NANO PACKAGE VERSION INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot 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 ERROR_CFLAGS HAVE_CXX HAVE_PKGCONFIG PKG_CONFIG GST_CFLAGS GST_LIBS GST_MAJORMINOR GST_BASE_CFLAGS GST_BASE_LIBS GST_PLUGINS_BASE_CFLAGS GST_PLUGINS_BASE_LIBS plugindir GST_PLUGIN_LDFLAGS LIBOBJS LTLIBOBJS' melunko@47: ac_subst_files='' melunko@47: melunko@47: # Initialize some variables set by options. melunko@47: ac_init_help= melunko@47: ac_init_version=false melunko@47: # The variables have the same names as the options, with melunko@47: # dashes changed to underlines. melunko@47: cache_file=/dev/null melunko@47: exec_prefix=NONE melunko@47: no_create= melunko@47: no_recursion= melunko@47: prefix=NONE melunko@47: program_prefix=NONE melunko@47: program_suffix=NONE melunko@47: program_transform_name=s,x,x, melunko@47: silent= melunko@47: site= melunko@47: srcdir= melunko@47: verbose= melunko@47: x_includes=NONE melunko@47: x_libraries=NONE melunko@47: melunko@47: # Installation directory options. melunko@47: # These are left unexpanded so users can "make install exec_prefix=/foo" melunko@47: # and all the variables that are supposed to be based on exec_prefix melunko@47: # by default will actually change. melunko@47: # Use braces instead of parens because sh, perl, etc. also accept them. melunko@47: bindir='${exec_prefix}/bin' melunko@47: sbindir='${exec_prefix}/sbin' melunko@47: libexecdir='${exec_prefix}/libexec' melunko@47: datadir='${prefix}/share' melunko@47: sysconfdir='${prefix}/etc' melunko@47: sharedstatedir='${prefix}/com' melunko@47: localstatedir='${prefix}/var' melunko@47: libdir='${exec_prefix}/lib' melunko@47: includedir='${prefix}/include' melunko@47: oldincludedir='/usr/include' melunko@47: infodir='${prefix}/info' melunko@47: mandir='${prefix}/man' melunko@47: melunko@47: ac_prev= melunko@47: for ac_option melunko@47: do melunko@47: # If the previous option needs an argument, assign it. melunko@47: if test -n "$ac_prev"; then melunko@47: eval "$ac_prev=\$ac_option" melunko@47: ac_prev= melunko@47: continue melunko@47: fi melunko@47: melunko@47: ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` melunko@47: melunko@47: # Accept the important Cygnus configure options, so we can diagnose typos. melunko@47: melunko@47: case $ac_option in melunko@47: melunko@47: -bindir | --bindir | --bindi | --bind | --bin | --bi) melunko@47: ac_prev=bindir ;; melunko@47: -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) melunko@47: bindir=$ac_optarg ;; melunko@47: melunko@47: -build | --build | --buil | --bui | --bu) melunko@47: ac_prev=build_alias ;; melunko@47: -build=* | --build=* | --buil=* | --bui=* | --bu=*) melunko@47: build_alias=$ac_optarg ;; melunko@47: melunko@47: -cache-file | --cache-file | --cache-fil | --cache-fi \ melunko@47: | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) melunko@47: ac_prev=cache_file ;; melunko@47: -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ melunko@47: | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) melunko@47: cache_file=$ac_optarg ;; melunko@47: melunko@47: --config-cache | -C) melunko@47: cache_file=config.cache ;; melunko@47: melunko@47: -datadir | --datadir | --datadi | --datad | --data | --dat | --da) melunko@47: ac_prev=datadir ;; melunko@47: -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ melunko@47: | --da=*) melunko@47: datadir=$ac_optarg ;; melunko@47: melunko@47: -disable-* | --disable-*) melunko@47: ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` melunko@47: # Reject names that are not valid shell variable names. melunko@47: expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && melunko@47: { echo "$as_me: error: invalid feature name: $ac_feature" >&2 melunko@47: { (exit 1); exit 1; }; } melunko@47: ac_feature=`echo $ac_feature | sed 's/-/_/g'` melunko@47: eval "enable_$ac_feature=no" ;; melunko@47: melunko@47: -enable-* | --enable-*) melunko@47: ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` melunko@47: # Reject names that are not valid shell variable names. melunko@47: expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && melunko@47: { echo "$as_me: error: invalid feature name: $ac_feature" >&2 melunko@47: { (exit 1); exit 1; }; } melunko@47: ac_feature=`echo $ac_feature | sed 's/-/_/g'` melunko@47: case $ac_option in melunko@47: *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; melunko@47: *) ac_optarg=yes ;; melunko@47: esac melunko@47: eval "enable_$ac_feature='$ac_optarg'" ;; melunko@47: melunko@47: -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ melunko@47: | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ melunko@47: | --exec | --exe | --ex) melunko@47: ac_prev=exec_prefix ;; melunko@47: -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ melunko@47: | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ melunko@47: | --exec=* | --exe=* | --ex=*) melunko@47: exec_prefix=$ac_optarg ;; melunko@47: melunko@47: -gas | --gas | --ga | --g) melunko@47: # Obsolete; use --with-gas. melunko@47: with_gas=yes ;; melunko@47: melunko@47: -help | --help | --hel | --he | -h) melunko@47: ac_init_help=long ;; melunko@47: -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) melunko@47: ac_init_help=recursive ;; melunko@47: -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) melunko@47: ac_init_help=short ;; melunko@47: melunko@47: -host | --host | --hos | --ho) melunko@47: ac_prev=host_alias ;; melunko@47: -host=* | --host=* | --hos=* | --ho=*) melunko@47: host_alias=$ac_optarg ;; melunko@47: melunko@47: -includedir | --includedir | --includedi | --included | --include \ melunko@47: | --includ | --inclu | --incl | --inc) melunko@47: ac_prev=includedir ;; melunko@47: -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ melunko@47: | --includ=* | --inclu=* | --incl=* | --inc=*) melunko@47: includedir=$ac_optarg ;; melunko@47: melunko@47: -infodir | --infodir | --infodi | --infod | --info | --inf) melunko@47: ac_prev=infodir ;; melunko@47: -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) melunko@47: infodir=$ac_optarg ;; melunko@47: melunko@47: -libdir | --libdir | --libdi | --libd) melunko@47: ac_prev=libdir ;; melunko@47: -libdir=* | --libdir=* | --libdi=* | --libd=*) melunko@47: libdir=$ac_optarg ;; melunko@47: melunko@47: -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ melunko@47: | --libexe | --libex | --libe) melunko@47: ac_prev=libexecdir ;; melunko@47: -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ melunko@47: | --libexe=* | --libex=* | --libe=*) melunko@47: libexecdir=$ac_optarg ;; melunko@47: melunko@47: -localstatedir | --localstatedir | --localstatedi | --localstated \ melunko@47: | --localstate | --localstat | --localsta | --localst \ melunko@47: | --locals | --local | --loca | --loc | --lo) melunko@47: ac_prev=localstatedir ;; melunko@47: -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ melunko@47: | --localstate=* | --localstat=* | --localsta=* | --localst=* \ melunko@47: | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) melunko@47: localstatedir=$ac_optarg ;; melunko@47: melunko@47: -mandir | --mandir | --mandi | --mand | --man | --ma | --m) melunko@47: ac_prev=mandir ;; melunko@47: -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) melunko@47: mandir=$ac_optarg ;; melunko@47: melunko@47: -nfp | --nfp | --nf) melunko@47: # Obsolete; use --without-fp. melunko@47: with_fp=no ;; melunko@47: melunko@47: -no-create | --no-create | --no-creat | --no-crea | --no-cre \ melunko@47: | --no-cr | --no-c | -n) melunko@47: no_create=yes ;; melunko@47: melunko@47: -no-recursion | --no-recursion | --no-recursio | --no-recursi \ melunko@47: | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) melunko@47: no_recursion=yes ;; melunko@47: melunko@47: -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ melunko@47: | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ melunko@47: | --oldin | --oldi | --old | --ol | --o) melunko@47: ac_prev=oldincludedir ;; melunko@47: -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ melunko@47: | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ melunko@47: | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) melunko@47: oldincludedir=$ac_optarg ;; melunko@47: melunko@47: -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) melunko@47: ac_prev=prefix ;; melunko@47: -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) melunko@47: prefix=$ac_optarg ;; melunko@47: melunko@47: -program-prefix | --program-prefix | --program-prefi | --program-pref \ melunko@47: | --program-pre | --program-pr | --program-p) melunko@47: ac_prev=program_prefix ;; melunko@47: -program-prefix=* | --program-prefix=* | --program-prefi=* \ melunko@47: | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) melunko@47: program_prefix=$ac_optarg ;; melunko@47: melunko@47: -program-suffix | --program-suffix | --program-suffi | --program-suff \ melunko@47: | --program-suf | --program-su | --program-s) melunko@47: ac_prev=program_suffix ;; melunko@47: -program-suffix=* | --program-suffix=* | --program-suffi=* \ melunko@47: | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) melunko@47: program_suffix=$ac_optarg ;; melunko@47: melunko@47: -program-transform-name | --program-transform-name \ melunko@47: | --program-transform-nam | --program-transform-na \ melunko@47: | --program-transform-n | --program-transform- \ melunko@47: | --program-transform | --program-transfor \ melunko@47: | --program-transfo | --program-transf \ melunko@47: | --program-trans | --program-tran \ melunko@47: | --progr-tra | --program-tr | --program-t) melunko@47: ac_prev=program_transform_name ;; melunko@47: -program-transform-name=* | --program-transform-name=* \ melunko@47: | --program-transform-nam=* | --program-transform-na=* \ melunko@47: | --program-transform-n=* | --program-transform-=* \ melunko@47: | --program-transform=* | --program-transfor=* \ melunko@47: | --program-transfo=* | --program-transf=* \ melunko@47: | --program-trans=* | --program-tran=* \ melunko@47: | --progr-tra=* | --program-tr=* | --program-t=*) melunko@47: program_transform_name=$ac_optarg ;; melunko@47: melunko@47: -q | -quiet | --quiet | --quie | --qui | --qu | --q \ melunko@47: | -silent | --silent | --silen | --sile | --sil) melunko@47: silent=yes ;; melunko@47: melunko@47: -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) melunko@47: ac_prev=sbindir ;; melunko@47: -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ melunko@47: | --sbi=* | --sb=*) melunko@47: sbindir=$ac_optarg ;; melunko@47: melunko@47: -sharedstatedir | --sharedstatedir | --sharedstatedi \ melunko@47: | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ melunko@47: | --sharedst | --shareds | --shared | --share | --shar \ melunko@47: | --sha | --sh) melunko@47: ac_prev=sharedstatedir ;; melunko@47: -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ melunko@47: | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ melunko@47: | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ melunko@47: | --sha=* | --sh=*) melunko@47: sharedstatedir=$ac_optarg ;; melunko@47: melunko@47: -site | --site | --sit) melunko@47: ac_prev=site ;; melunko@47: -site=* | --site=* | --sit=*) melunko@47: site=$ac_optarg ;; melunko@47: melunko@47: -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) melunko@47: ac_prev=srcdir ;; melunko@47: -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) melunko@47: srcdir=$ac_optarg ;; melunko@47: melunko@47: -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ melunko@47: | --syscon | --sysco | --sysc | --sys | --sy) melunko@47: ac_prev=sysconfdir ;; melunko@47: -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ melunko@47: | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) melunko@47: sysconfdir=$ac_optarg ;; melunko@47: melunko@47: -target | --target | --targe | --targ | --tar | --ta | --t) melunko@47: ac_prev=target_alias ;; melunko@47: -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) melunko@47: target_alias=$ac_optarg ;; melunko@47: melunko@47: -v | -verbose | --verbose | --verbos | --verbo | --verb) melunko@47: verbose=yes ;; melunko@47: melunko@47: -version | --version | --versio | --versi | --vers | -V) melunko@47: ac_init_version=: ;; melunko@47: melunko@47: -with-* | --with-*) melunko@47: ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` melunko@47: # Reject names that are not valid shell variable names. melunko@47: expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && melunko@47: { echo "$as_me: error: invalid package name: $ac_package" >&2 melunko@47: { (exit 1); exit 1; }; } melunko@47: ac_package=`echo $ac_package| sed 's/-/_/g'` melunko@47: case $ac_option in melunko@47: *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; melunko@47: *) ac_optarg=yes ;; melunko@47: esac melunko@47: eval "with_$ac_package='$ac_optarg'" ;; melunko@47: melunko@47: -without-* | --without-*) melunko@47: ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` melunko@47: # Reject names that are not valid shell variable names. melunko@47: expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && melunko@47: { echo "$as_me: error: invalid package name: $ac_package" >&2 melunko@47: { (exit 1); exit 1; }; } melunko@47: ac_package=`echo $ac_package | sed 's/-/_/g'` melunko@47: eval "with_$ac_package=no" ;; melunko@47: melunko@47: --x) melunko@47: # Obsolete; use --with-x. melunko@47: with_x=yes ;; melunko@47: melunko@47: -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ melunko@47: | --x-incl | --x-inc | --x-in | --x-i) melunko@47: ac_prev=x_includes ;; melunko@47: -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ melunko@47: | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) melunko@47: x_includes=$ac_optarg ;; melunko@47: melunko@47: -x-libraries | --x-libraries | --x-librarie | --x-librari \ melunko@47: | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) melunko@47: ac_prev=x_libraries ;; melunko@47: -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ melunko@47: | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) melunko@47: x_libraries=$ac_optarg ;; melunko@47: melunko@47: -*) { echo "$as_me: error: unrecognized option: $ac_option melunko@47: Try \`$0 --help' for more information." >&2 melunko@47: { (exit 1); exit 1; }; } melunko@47: ;; melunko@47: melunko@47: *=*) melunko@47: ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` melunko@47: # Reject names that are not valid shell variable names. melunko@47: expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && melunko@47: { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 melunko@47: { (exit 1); exit 1; }; } melunko@47: ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` melunko@47: eval "$ac_envvar='$ac_optarg'" melunko@47: export $ac_envvar ;; melunko@47: melunko@47: *) melunko@47: # FIXME: should be removed in autoconf 3.0. melunko@47: echo "$as_me: WARNING: you should use --build, --host, --target" >&2 melunko@47: expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && melunko@47: echo "$as_me: WARNING: invalid host type: $ac_option" >&2 melunko@47: : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} melunko@47: ;; melunko@47: melunko@47: esac melunko@47: done melunko@47: melunko@47: if test -n "$ac_prev"; then melunko@47: ac_option=--`echo $ac_prev | sed 's/_/-/g'` melunko@47: { echo "$as_me: error: missing argument to $ac_option" >&2 melunko@47: { (exit 1); exit 1; }; } melunko@47: fi melunko@47: melunko@47: # Be sure to have absolute paths. melunko@47: for ac_var in exec_prefix prefix melunko@47: do melunko@47: eval ac_val=$`echo $ac_var` melunko@47: case $ac_val in melunko@47: [\\/$]* | ?:[\\/]* | NONE | '' ) ;; melunko@47: *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 melunko@47: { (exit 1); exit 1; }; };; melunko@47: esac melunko@47: done melunko@47: melunko@47: # Be sure to have absolute paths. melunko@47: for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ melunko@47: localstatedir libdir includedir oldincludedir infodir mandir melunko@47: do melunko@47: eval ac_val=$`echo $ac_var` melunko@47: case $ac_val in melunko@47: [\\/$]* | ?:[\\/]* ) ;; melunko@47: *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 melunko@47: { (exit 1); exit 1; }; };; melunko@47: esac melunko@47: done melunko@47: melunko@47: # There might be people who depend on the old broken behavior: `$host' melunko@47: # used to hold the argument of --host etc. melunko@47: # FIXME: To remove some day. melunko@47: build=$build_alias melunko@47: host=$host_alias melunko@47: target=$target_alias melunko@47: melunko@47: # FIXME: To remove some day. melunko@47: if test "x$host_alias" != x; then melunko@47: if test "x$build_alias" = x; then melunko@47: cross_compiling=maybe melunko@47: echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. melunko@47: If a cross compiler is detected then cross compile mode will be used." >&2 melunko@47: elif test "x$build_alias" != "x$host_alias"; then melunko@47: cross_compiling=yes melunko@47: fi melunko@47: fi melunko@47: melunko@47: ac_tool_prefix= melunko@47: test -n "$host_alias" && ac_tool_prefix=$host_alias- melunko@47: melunko@47: test "$silent" = yes && exec 6>/dev/null melunko@47: melunko@47: melunko@47: # Find the source files, if location was not specified. melunko@47: if test -z "$srcdir"; then melunko@47: ac_srcdir_defaulted=yes melunko@47: # Try the directory containing this script, then its parent. melunko@47: ac_confdir=`(dirname "$0") 2>/dev/null || melunko@47: $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ melunko@47: X"$0" : 'X\(//\)[^/]' \| \ melunko@47: X"$0" : 'X\(//\)$' \| \ melunko@47: X"$0" : 'X\(/\)' \| \ melunko@47: . : '\(.\)' 2>/dev/null || melunko@47: echo X"$0" | melunko@47: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } melunko@47: /^X\(\/\/\)[^/].*/{ s//\1/; q; } melunko@47: /^X\(\/\/\)$/{ s//\1/; q; } melunko@47: /^X\(\/\).*/{ s//\1/; q; } melunko@47: s/.*/./; q'` melunko@47: srcdir=$ac_confdir melunko@47: if test ! -r $srcdir/$ac_unique_file; then melunko@47: srcdir=.. melunko@47: fi melunko@47: else melunko@47: ac_srcdir_defaulted=no melunko@47: fi melunko@47: if test ! -r $srcdir/$ac_unique_file; then melunko@47: if test "$ac_srcdir_defaulted" = yes; then melunko@47: { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 melunko@47: { (exit 1); exit 1; }; } melunko@47: else melunko@47: { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 melunko@47: { (exit 1); exit 1; }; } melunko@47: fi melunko@47: fi melunko@47: (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || melunko@47: { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 melunko@47: { (exit 1); exit 1; }; } melunko@47: srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` melunko@47: ac_env_build_alias_set=${build_alias+set} melunko@47: ac_env_build_alias_value=$build_alias melunko@47: ac_cv_env_build_alias_set=${build_alias+set} melunko@47: ac_cv_env_build_alias_value=$build_alias melunko@47: ac_env_host_alias_set=${host_alias+set} melunko@47: ac_env_host_alias_value=$host_alias melunko@47: ac_cv_env_host_alias_set=${host_alias+set} melunko@47: ac_cv_env_host_alias_value=$host_alias melunko@47: ac_env_target_alias_set=${target_alias+set} melunko@47: ac_env_target_alias_value=$target_alias melunko@47: ac_cv_env_target_alias_set=${target_alias+set} melunko@47: ac_cv_env_target_alias_value=$target_alias melunko@47: ac_env_CC_set=${CC+set} melunko@47: ac_env_CC_value=$CC melunko@47: ac_cv_env_CC_set=${CC+set} melunko@47: ac_cv_env_CC_value=$CC melunko@47: ac_env_CFLAGS_set=${CFLAGS+set} melunko@47: ac_env_CFLAGS_value=$CFLAGS melunko@47: ac_cv_env_CFLAGS_set=${CFLAGS+set} melunko@47: ac_cv_env_CFLAGS_value=$CFLAGS melunko@47: ac_env_LDFLAGS_set=${LDFLAGS+set} melunko@47: ac_env_LDFLAGS_value=$LDFLAGS melunko@47: ac_cv_env_LDFLAGS_set=${LDFLAGS+set} melunko@47: ac_cv_env_LDFLAGS_value=$LDFLAGS melunko@47: ac_env_CPPFLAGS_set=${CPPFLAGS+set} melunko@47: ac_env_CPPFLAGS_value=$CPPFLAGS melunko@47: ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} melunko@47: ac_cv_env_CPPFLAGS_value=$CPPFLAGS melunko@47: ac_env_CPP_set=${CPP+set} melunko@47: ac_env_CPP_value=$CPP melunko@47: ac_cv_env_CPP_set=${CPP+set} melunko@47: ac_cv_env_CPP_value=$CPP melunko@47: ac_env_CXX_set=${CXX+set} melunko@47: ac_env_CXX_value=$CXX melunko@47: ac_cv_env_CXX_set=${CXX+set} melunko@47: ac_cv_env_CXX_value=$CXX melunko@47: ac_env_CXXFLAGS_set=${CXXFLAGS+set} melunko@47: ac_env_CXXFLAGS_value=$CXXFLAGS melunko@47: ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set} melunko@47: ac_cv_env_CXXFLAGS_value=$CXXFLAGS melunko@47: ac_env_CXXCPP_set=${CXXCPP+set} melunko@47: ac_env_CXXCPP_value=$CXXCPP melunko@47: ac_cv_env_CXXCPP_set=${CXXCPP+set} melunko@47: ac_cv_env_CXXCPP_value=$CXXCPP melunko@47: ac_env_F77_set=${F77+set} melunko@47: ac_env_F77_value=$F77 melunko@47: ac_cv_env_F77_set=${F77+set} melunko@47: ac_cv_env_F77_value=$F77 melunko@47: ac_env_FFLAGS_set=${FFLAGS+set} melunko@47: ac_env_FFLAGS_value=$FFLAGS melunko@47: ac_cv_env_FFLAGS_set=${FFLAGS+set} melunko@47: ac_cv_env_FFLAGS_value=$FFLAGS melunko@47: ac_env_CCAS_set=${CCAS+set} melunko@47: ac_env_CCAS_value=$CCAS melunko@47: ac_cv_env_CCAS_set=${CCAS+set} melunko@47: ac_cv_env_CCAS_value=$CCAS melunko@47: ac_env_CCASFLAGS_set=${CCASFLAGS+set} melunko@47: ac_env_CCASFLAGS_value=$CCASFLAGS melunko@47: ac_cv_env_CCASFLAGS_set=${CCASFLAGS+set} melunko@47: ac_cv_env_CCASFLAGS_value=$CCASFLAGS melunko@47: melunko@47: # melunko@47: # Report the --help message. melunko@47: # melunko@47: if test "$ac_init_help" = "long"; then melunko@47: # Omit some internal or obsolete options to make the list less imposing. melunko@47: # This message is too long to be a string in the A/UX 3.1 sh. melunko@47: cat <<_ACEOF melunko@47: \`configure' configures this package to adapt to many kinds of systems. melunko@47: melunko@47: Usage: $0 [OPTION]... [VAR=VALUE]... melunko@47: melunko@47: To assign environment variables (e.g., CC, CFLAGS...), specify them as melunko@47: VAR=VALUE. See below for descriptions of some of the useful variables. melunko@47: melunko@47: Defaults for the options are specified in brackets. melunko@47: melunko@47: Configuration: melunko@47: -h, --help display this help and exit melunko@47: --help=short display options specific to this package melunko@47: --help=recursive display the short help of all the included packages melunko@47: -V, --version display version information and exit melunko@47: -q, --quiet, --silent do not print \`checking...' messages melunko@47: --cache-file=FILE cache test results in FILE [disabled] melunko@47: -C, --config-cache alias for \`--cache-file=config.cache' melunko@47: -n, --no-create do not create output files melunko@47: --srcdir=DIR find the sources in DIR [configure dir or \`..'] melunko@47: melunko@47: _ACEOF melunko@47: melunko@47: cat <<_ACEOF melunko@47: Installation directories: melunko@47: --prefix=PREFIX install architecture-independent files in PREFIX melunko@47: [$ac_default_prefix] melunko@47: --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX melunko@47: [PREFIX] melunko@47: melunko@47: By default, \`make install' will install all the files in melunko@47: \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify melunko@47: an installation prefix other than \`$ac_default_prefix' using \`--prefix', melunko@47: for instance \`--prefix=\$HOME'. melunko@47: melunko@47: For better control, use the options below. melunko@47: melunko@47: Fine tuning of the installation directories: melunko@47: --bindir=DIR user executables [EPREFIX/bin] melunko@47: --sbindir=DIR system admin executables [EPREFIX/sbin] melunko@47: --libexecdir=DIR program executables [EPREFIX/libexec] melunko@47: --datadir=DIR read-only architecture-independent data [PREFIX/share] melunko@47: --sysconfdir=DIR read-only single-machine data [PREFIX/etc] melunko@47: --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] melunko@47: --localstatedir=DIR modifiable single-machine data [PREFIX/var] melunko@47: --libdir=DIR object code libraries [EPREFIX/lib] melunko@47: --includedir=DIR C header files [PREFIX/include] melunko@47: --oldincludedir=DIR C header files for non-gcc [/usr/include] melunko@47: --infodir=DIR info documentation [PREFIX/info] melunko@47: --mandir=DIR man documentation [PREFIX/man] melunko@47: _ACEOF melunko@47: melunko@47: cat <<\_ACEOF melunko@47: melunko@47: Program names: melunko@47: --program-prefix=PREFIX prepend PREFIX to installed program names melunko@47: --program-suffix=SUFFIX append SUFFIX to installed program names melunko@47: --program-transform-name=PROGRAM run sed PROGRAM on installed program names melunko@47: melunko@47: System types: melunko@47: --build=BUILD configure for building on BUILD [guessed] melunko@47: --host=HOST cross-compile to build programs to run on HOST [BUILD] melunko@47: --target=TARGET configure for building compilers for TARGET [HOST] melunko@47: _ACEOF melunko@47: fi melunko@47: melunko@47: if test -n "$ac_init_help"; then melunko@47: melunko@47: cat <<\_ACEOF melunko@47: melunko@47: Optional Features: melunko@47: --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) melunko@47: --enable-FEATURE[=ARG] include FEATURE [ARG=yes] melunko@47: --enable-static[=PKGS] melunko@47: build static libraries [default=no] melunko@47: --enable-maintainer-mode enable make rules and dependencies not useful melunko@47: (and sometimes confusing) to the casual installer melunko@47: --enable-shared[=PKGS] melunko@47: build shared libraries [default=yes] melunko@47: --enable-fast-install[=PKGS] melunko@47: optimize for fast installation [default=yes] melunko@47: --disable-dependency-tracking speeds up one-time build melunko@47: --enable-dependency-tracking do not reject slow dependency extractors melunko@47: --disable-libtool-lock avoid locking (might break parallel builds) melunko@47: melunko@47: Optional Packages: melunko@47: --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] melunko@47: --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) melunko@47: --with-gnu-ld assume the C compiler uses GNU ld [default=no] melunko@47: --with-pic try to use only PIC/non-PIC objects [default=use melunko@47: both] melunko@47: --with-tags[=TAGS] melunko@47: include additional configurations [automatic] melunko@47: melunko@47: Some influential environment variables: melunko@47: CC C compiler command melunko@47: CFLAGS C compiler flags melunko@47: LDFLAGS linker flags, e.g. -L if you have libraries in a melunko@47: nonstandard directory melunko@47: CPPFLAGS C/C++ preprocessor flags, e.g. -I if you have melunko@47: headers in a nonstandard directory melunko@47: CPP C preprocessor melunko@47: CXX C++ compiler command melunko@47: CXXFLAGS C++ compiler flags melunko@47: CXXCPP C++ preprocessor melunko@47: F77 Fortran 77 compiler command melunko@47: FFLAGS Fortran 77 compiler flags melunko@47: CCAS assembler compiler command (defaults to CC) melunko@47: CCASFLAGS assembler compiler flags (defaults to CFLAGS) melunko@47: melunko@47: Use these variables to override the choices made by `configure' or to help melunko@47: it to find libraries and programs with nonstandard names/locations. melunko@47: melunko@47: _ACEOF melunko@47: fi melunko@47: melunko@47: if test "$ac_init_help" = "recursive"; then melunko@47: # If there are subdirs, report their specific --help. melunko@47: ac_popdir=`pwd` melunko@47: for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue melunko@47: test -d $ac_dir || continue melunko@47: ac_builddir=. melunko@47: melunko@47: if test "$ac_dir" != .; then melunko@47: ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` melunko@47: # A "../" for each directory in $ac_dir_suffix. melunko@47: ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` melunko@47: else melunko@47: ac_dir_suffix= ac_top_builddir= melunko@47: fi melunko@47: melunko@47: case $srcdir in melunko@47: .) # No --srcdir option. We are building in place. melunko@47: ac_srcdir=. melunko@47: if test -z "$ac_top_builddir"; then melunko@47: ac_top_srcdir=. melunko@47: else melunko@47: ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` melunko@47: fi ;; melunko@47: [\\/]* | ?:[\\/]* ) # Absolute path. melunko@47: ac_srcdir=$srcdir$ac_dir_suffix; melunko@47: ac_top_srcdir=$srcdir ;; melunko@47: *) # Relative path. melunko@47: ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix melunko@47: ac_top_srcdir=$ac_top_builddir$srcdir ;; melunko@47: esac melunko@47: melunko@47: # Do not use `cd foo && pwd` to compute absolute paths, because melunko@47: # the directories may not exist. melunko@47: case `pwd` in melunko@47: .) ac_abs_builddir="$ac_dir";; melunko@47: *) melunko@47: case "$ac_dir" in melunko@47: .) ac_abs_builddir=`pwd`;; melunko@47: [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; melunko@47: *) ac_abs_builddir=`pwd`/"$ac_dir";; melunko@47: esac;; melunko@47: esac melunko@47: case $ac_abs_builddir in melunko@47: .) ac_abs_top_builddir=${ac_top_builddir}.;; melunko@47: *) melunko@47: case ${ac_top_builddir}. in melunko@47: .) ac_abs_top_builddir=$ac_abs_builddir;; melunko@47: [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; melunko@47: *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; melunko@47: esac;; melunko@47: esac melunko@47: case $ac_abs_builddir in melunko@47: .) ac_abs_srcdir=$ac_srcdir;; melunko@47: *) melunko@47: case $ac_srcdir in melunko@47: .) ac_abs_srcdir=$ac_abs_builddir;; melunko@47: [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; melunko@47: *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; melunko@47: esac;; melunko@47: esac melunko@47: case $ac_abs_builddir in melunko@47: .) ac_abs_top_srcdir=$ac_top_srcdir;; melunko@47: *) melunko@47: case $ac_top_srcdir in melunko@47: .) ac_abs_top_srcdir=$ac_abs_builddir;; melunko@47: [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; melunko@47: *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; melunko@47: esac;; melunko@47: esac melunko@47: melunko@47: cd $ac_dir melunko@47: # Check for guested configure; otherwise get Cygnus style configure. melunko@47: if test -f $ac_srcdir/configure.gnu; then melunko@47: echo melunko@47: $SHELL $ac_srcdir/configure.gnu --help=recursive melunko@47: elif test -f $ac_srcdir/configure; then melunko@47: echo melunko@47: $SHELL $ac_srcdir/configure --help=recursive melunko@47: elif test -f $ac_srcdir/configure.ac || melunko@47: test -f $ac_srcdir/configure.in; then melunko@47: echo melunko@47: $ac_configure --help melunko@47: else melunko@47: echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 melunko@47: fi melunko@47: cd "$ac_popdir" melunko@47: done melunko@47: fi melunko@47: melunko@47: test -n "$ac_init_help" && exit 0 melunko@47: if $ac_init_version; then melunko@47: cat <<\_ACEOF melunko@47: melunko@47: Copyright (C) 2003 Free Software Foundation, Inc. melunko@47: This configure script is free software; the Free Software Foundation melunko@47: gives unlimited permission to copy, distribute and modify it. melunko@47: _ACEOF melunko@47: exit 0 melunko@47: fi melunko@47: exec 5>config.log melunko@47: cat >&5 <<_ACEOF melunko@47: This file contains any messages produced by compilers while melunko@47: running configure, to aid debugging if configure makes a mistake. melunko@47: melunko@47: It was created by $as_me, which was melunko@47: generated by GNU Autoconf 2.59. Invocation command line was melunko@47: melunko@47: $ $0 $@ melunko@47: melunko@47: _ACEOF melunko@47: { melunko@47: cat <<_ASUNAME melunko@47: ## --------- ## melunko@47: ## Platform. ## melunko@47: ## --------- ## melunko@47: melunko@47: hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` melunko@47: uname -m = `(uname -m) 2>/dev/null || echo unknown` melunko@47: uname -r = `(uname -r) 2>/dev/null || echo unknown` melunko@47: uname -s = `(uname -s) 2>/dev/null || echo unknown` melunko@47: uname -v = `(uname -v) 2>/dev/null || echo unknown` melunko@47: melunko@47: /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` melunko@47: /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` melunko@47: melunko@47: /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` melunko@47: /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` melunko@47: /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` melunko@47: hostinfo = `(hostinfo) 2>/dev/null || echo unknown` melunko@47: /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` melunko@47: /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` melunko@47: /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` melunko@47: melunko@47: _ASUNAME melunko@47: melunko@47: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR melunko@47: for as_dir in $PATH melunko@47: do melunko@47: IFS=$as_save_IFS melunko@47: test -z "$as_dir" && as_dir=. melunko@47: echo "PATH: $as_dir" melunko@47: done melunko@47: melunko@47: } >&5 melunko@47: melunko@47: cat >&5 <<_ACEOF melunko@47: melunko@47: melunko@47: ## ----------- ## melunko@47: ## Core tests. ## melunko@47: ## ----------- ## melunko@47: melunko@47: _ACEOF melunko@47: melunko@47: melunko@47: # Keep a trace of the command line. melunko@47: # Strip out --no-create and --no-recursion so they do not pile up. melunko@47: # Strip out --silent because we don't want to record it for future runs. melunko@47: # Also quote any args containing shell meta-characters. melunko@47: # Make two passes to allow for proper duplicate-argument suppression. melunko@47: ac_configure_args= melunko@47: ac_configure_args0= melunko@47: ac_configure_args1= melunko@47: ac_sep= melunko@47: ac_must_keep_next=false melunko@47: for ac_pass in 1 2 melunko@47: do melunko@47: for ac_arg melunko@47: do melunko@47: case $ac_arg in melunko@47: -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; melunko@47: -q | -quiet | --quiet | --quie | --qui | --qu | --q \ melunko@47: | -silent | --silent | --silen | --sile | --sil) melunko@47: continue ;; melunko@47: *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) melunko@47: ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; melunko@47: esac melunko@47: case $ac_pass in melunko@47: 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; melunko@47: 2) melunko@47: ac_configure_args1="$ac_configure_args1 '$ac_arg'" melunko@47: if test $ac_must_keep_next = true; then melunko@47: ac_must_keep_next=false # Got value, back to normal. melunko@47: else melunko@47: case $ac_arg in melunko@47: *=* | --config-cache | -C | -disable-* | --disable-* \ melunko@47: | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ melunko@47: | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ melunko@47: | -with-* | --with-* | -without-* | --without-* | --x) melunko@47: case "$ac_configure_args0 " in melunko@47: "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; melunko@47: esac melunko@47: ;; melunko@47: -* ) ac_must_keep_next=true ;; melunko@47: esac melunko@47: fi melunko@47: ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" melunko@47: # Get rid of the leading space. melunko@47: ac_sep=" " melunko@47: ;; melunko@47: esac melunko@47: done melunko@47: done melunko@47: $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } melunko@47: $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } melunko@47: melunko@47: # When interrupted or exit'd, cleanup temporary files, and complete melunko@47: # config.log. We remove comments because anyway the quotes in there melunko@47: # would cause problems or look ugly. melunko@47: # WARNING: Be sure not to use single quotes in there, as some shells, melunko@47: # such as our DU 5.0 friend, will then `close' the trap. melunko@47: trap 'exit_status=$? melunko@47: # Save into config.log some information that might help in debugging. melunko@47: { melunko@47: echo melunko@47: melunko@47: cat <<\_ASBOX melunko@47: ## ---------------- ## melunko@47: ## Cache variables. ## melunko@47: ## ---------------- ## melunko@47: _ASBOX melunko@47: echo melunko@47: # The following way of writing the cache mishandles newlines in values, melunko@47: { melunko@47: (set) 2>&1 | melunko@47: case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in melunko@47: *ac_space=\ *) melunko@47: sed -n \ melunko@47: "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; melunko@47: s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" melunko@47: ;; melunko@47: *) melunko@47: sed -n \ melunko@47: "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" melunko@47: ;; melunko@47: esac; melunko@47: } melunko@47: echo melunko@47: melunko@47: cat <<\_ASBOX melunko@47: ## ----------------- ## melunko@47: ## Output variables. ## melunko@47: ## ----------------- ## melunko@47: _ASBOX melunko@47: echo melunko@47: for ac_var in $ac_subst_vars melunko@47: do melunko@47: eval ac_val=$`echo $ac_var` melunko@47: echo "$ac_var='"'"'$ac_val'"'"'" melunko@47: done | sort melunko@47: echo melunko@47: melunko@47: if test -n "$ac_subst_files"; then melunko@47: cat <<\_ASBOX melunko@47: ## ------------- ## melunko@47: ## Output files. ## melunko@47: ## ------------- ## melunko@47: _ASBOX melunko@47: echo melunko@47: for ac_var in $ac_subst_files melunko@47: do melunko@47: eval ac_val=$`echo $ac_var` melunko@47: echo "$ac_var='"'"'$ac_val'"'"'" melunko@47: done | sort melunko@47: echo melunko@47: fi melunko@47: melunko@47: if test -s confdefs.h; then melunko@47: cat <<\_ASBOX melunko@47: ## ----------- ## melunko@47: ## confdefs.h. ## melunko@47: ## ----------- ## melunko@47: _ASBOX melunko@47: echo melunko@47: sed "/^$/d" confdefs.h | sort melunko@47: echo melunko@47: fi melunko@47: test "$ac_signal" != 0 && melunko@47: echo "$as_me: caught signal $ac_signal" melunko@47: echo "$as_me: exit $exit_status" melunko@47: } >&5 melunko@47: rm -f core *.core && melunko@47: rm -rf conftest* confdefs* conf$$* $ac_clean_files && melunko@47: exit $exit_status melunko@47: ' 0 melunko@47: for ac_signal in 1 2 13 15; do melunko@47: trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal melunko@47: done melunko@47: ac_signal=0 melunko@47: melunko@47: # confdefs.h avoids OS command line length limits that DEFS can exceed. melunko@47: rm -rf conftest* confdefs.h melunko@47: # AIX cpp loses on an empty file, so make sure it contains at least a newline. melunko@47: echo >confdefs.h melunko@47: melunko@47: # Predefined preprocessor variables. melunko@47: melunko@47: cat >>confdefs.h <<_ACEOF melunko@47: #define PACKAGE_NAME "$PACKAGE_NAME" melunko@47: _ACEOF melunko@47: melunko@47: melunko@47: cat >>confdefs.h <<_ACEOF melunko@47: #define PACKAGE_TARNAME "$PACKAGE_TARNAME" melunko@47: _ACEOF melunko@47: melunko@47: melunko@47: cat >>confdefs.h <<_ACEOF melunko@47: #define PACKAGE_VERSION "$PACKAGE_VERSION" melunko@47: _ACEOF melunko@47: melunko@47: melunko@47: cat >>confdefs.h <<_ACEOF melunko@47: #define PACKAGE_STRING "$PACKAGE_STRING" melunko@47: _ACEOF melunko@47: melunko@47: melunko@47: cat >>confdefs.h <<_ACEOF melunko@47: #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" melunko@47: _ACEOF melunko@47: melunko@47: melunko@47: # Let the site file select an alternate cache file if it wants to. melunko@47: # Prefer explicitly selected file to automatically selected ones. melunko@47: if test -z "$CONFIG_SITE"; then melunko@47: if test "x$prefix" != xNONE; then melunko@47: CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" melunko@47: else melunko@47: CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" melunko@47: fi melunko@47: fi melunko@47: for ac_site_file in $CONFIG_SITE; do melunko@47: if test -r "$ac_site_file"; then melunko@47: { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 melunko@47: echo "$as_me: loading site script $ac_site_file" >&6;} melunko@47: sed 's/^/| /' "$ac_site_file" >&5 melunko@47: . "$ac_site_file" melunko@47: fi melunko@47: done melunko@47: melunko@47: if test -r "$cache_file"; then melunko@47: # Some versions of bash will fail to source /dev/null (special melunko@47: # files actually), so we avoid doing that. melunko@47: if test -f "$cache_file"; then melunko@47: { echo "$as_me:$LINENO: loading cache $cache_file" >&5 melunko@47: echo "$as_me: loading cache $cache_file" >&6;} melunko@47: case $cache_file in melunko@47: [\\/]* | ?:[\\/]* ) . $cache_file;; melunko@47: *) . ./$cache_file;; melunko@47: esac melunko@47: fi melunko@47: else melunko@47: { echo "$as_me:$LINENO: creating cache $cache_file" >&5 melunko@47: echo "$as_me: creating cache $cache_file" >&6;} melunko@47: >$cache_file melunko@47: fi melunko@47: melunko@47: # Check that the precious variables saved in the cache have kept the same melunko@47: # value. melunko@47: ac_cache_corrupted=false melunko@47: for ac_var in `(set) 2>&1 | melunko@47: sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do melunko@47: eval ac_old_set=\$ac_cv_env_${ac_var}_set melunko@47: eval ac_new_set=\$ac_env_${ac_var}_set melunko@47: eval ac_old_val="\$ac_cv_env_${ac_var}_value" melunko@47: eval ac_new_val="\$ac_env_${ac_var}_value" melunko@47: case $ac_old_set,$ac_new_set in melunko@47: set,) melunko@47: { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 melunko@47: echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} melunko@47: ac_cache_corrupted=: ;; melunko@47: ,set) melunko@47: { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 melunko@47: echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} melunko@47: ac_cache_corrupted=: ;; melunko@47: ,);; melunko@47: *) melunko@47: if test "x$ac_old_val" != "x$ac_new_val"; then melunko@47: { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 melunko@47: echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} melunko@47: { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 melunko@47: echo "$as_me: former value: $ac_old_val" >&2;} melunko@47: { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 melunko@47: echo "$as_me: current value: $ac_new_val" >&2;} melunko@47: ac_cache_corrupted=: melunko@47: fi;; melunko@47: esac melunko@47: # Pass precious variables to config.status. melunko@47: if test "$ac_new_set" = set; then melunko@47: case $ac_new_val in melunko@47: *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) melunko@47: ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; melunko@47: *) ac_arg=$ac_var=$ac_new_val ;; melunko@47: esac melunko@47: case " $ac_configure_args " in melunko@47: *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. melunko@47: *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; melunko@47: esac melunko@47: fi melunko@47: done melunko@47: if $ac_cache_corrupted; then melunko@47: { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 melunko@47: echo "$as_me: error: changes in the environment can compromise the build" >&2;} melunko@47: { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 melunko@47: echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} melunko@47: { (exit 1); exit 1; }; } melunko@47: fi melunko@47: melunko@47: ac_ext=c melunko@47: ac_cpp='$CPP $CPPFLAGS' melunko@47: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' melunko@47: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' melunko@47: ac_compiler_gnu=$ac_cv_c_compiler_gnu melunko@47: melunko@47: melunko@47: melunko@47: melunko@47: melunko@47: melunko@47: melunko@47: melunko@47: melunko@47: melunko@47: melunko@47: melunko@47: melunko@47: melunko@47: melunko@47: melunko@47: melunko@47: melunko@47: melunko@47: ac_aux_dir= melunko@47: for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do melunko@47: if test -f $ac_dir/install-sh; then melunko@47: ac_aux_dir=$ac_dir melunko@47: ac_install_sh="$ac_aux_dir/install-sh -c" melunko@47: break melunko@47: elif test -f $ac_dir/install.sh; then melunko@47: ac_aux_dir=$ac_dir melunko@47: ac_install_sh="$ac_aux_dir/install.sh -c" melunko@47: break melunko@47: elif test -f $ac_dir/shtool; then melunko@47: ac_aux_dir=$ac_dir melunko@47: ac_install_sh="$ac_aux_dir/shtool install -c" melunko@47: break melunko@47: fi melunko@47: done melunko@47: if test -z "$ac_aux_dir"; then melunko@47: { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 melunko@47: echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} melunko@47: { (exit 1); exit 1; }; } melunko@47: fi melunko@47: ac_config_guess="$SHELL $ac_aux_dir/config.guess" melunko@47: ac_config_sub="$SHELL $ac_aux_dir/config.sub" melunko@47: ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. melunko@47: melunko@47: # Make sure we can run config.sub. melunko@47: $ac_config_sub sun4 >/dev/null 2>&1 || melunko@47: { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 melunko@47: echo "$as_me: error: cannot run $ac_config_sub" >&2;} melunko@47: { (exit 1); exit 1; }; } melunko@47: melunko@47: echo "$as_me:$LINENO: checking build system type" >&5 melunko@47: echo $ECHO_N "checking build system type... $ECHO_C" >&6 melunko@47: if test "${ac_cv_build+set}" = set; then melunko@47: echo $ECHO_N "(cached) $ECHO_C" >&6 melunko@47: else melunko@47: ac_cv_build_alias=$build_alias melunko@47: test -z "$ac_cv_build_alias" && melunko@47: ac_cv_build_alias=`$ac_config_guess` melunko@47: test -z "$ac_cv_build_alias" && melunko@47: { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 melunko@47: echo "$as_me: error: cannot guess build type; you must specify one" >&2;} melunko@47: { (exit 1); exit 1; }; } melunko@47: ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || melunko@47: { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 melunko@47: echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} melunko@47: { (exit 1); exit 1; }; } melunko@47: melunko@47: fi melunko@47: echo "$as_me:$LINENO: result: $ac_cv_build" >&5 melunko@47: echo "${ECHO_T}$ac_cv_build" >&6 melunko@47: build=$ac_cv_build melunko@47: build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` melunko@47: build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` melunko@47: build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` melunko@47: melunko@47: melunko@47: echo "$as_me:$LINENO: checking host system type" >&5 melunko@47: echo $ECHO_N "checking host system type... $ECHO_C" >&6 melunko@47: if test "${ac_cv_host+set}" = set; then melunko@47: echo $ECHO_N "(cached) $ECHO_C" >&6 melunko@47: else melunko@47: ac_cv_host_alias=$host_alias melunko@47: test -z "$ac_cv_host_alias" && melunko@47: ac_cv_host_alias=$ac_cv_build_alias melunko@47: ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || melunko@47: { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 melunko@47: echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} melunko@47: { (exit 1); exit 1; }; } melunko@47: melunko@47: fi melunko@47: echo "$as_me:$LINENO: result: $ac_cv_host" >&5 melunko@47: echo "${ECHO_T}$ac_cv_host" >&6 melunko@47: host=$ac_cv_host melunko@47: host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` melunko@47: host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` melunko@47: host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` melunko@47: melunko@47: melunko@47: echo "$as_me:$LINENO: checking target system type" >&5 melunko@47: echo $ECHO_N "checking target system type... $ECHO_C" >&6 melunko@47: if test "${ac_cv_target+set}" = set; then melunko@47: echo $ECHO_N "(cached) $ECHO_C" >&6 melunko@47: else melunko@47: ac_cv_target_alias=$target_alias melunko@47: test "x$ac_cv_target_alias" = "x" && melunko@47: ac_cv_target_alias=$ac_cv_host_alias melunko@47: ac_cv_target=`$ac_config_sub $ac_cv_target_alias` || melunko@47: { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5 melunko@47: echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;} melunko@47: { (exit 1); exit 1; }; } melunko@47: melunko@47: fi melunko@47: echo "$as_me:$LINENO: result: $ac_cv_target" >&5 melunko@47: echo "${ECHO_T}$ac_cv_target" >&6 melunko@47: target=$ac_cv_target melunko@47: target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` melunko@47: target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` melunko@47: target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` melunko@47: melunko@47: melunko@47: # The aliases save the names the user supplied, while $host etc. melunko@47: # will get canonicalized. melunko@47: test -n "$target_alias" && melunko@47: test "$program_prefix$program_suffix$program_transform_name" = \ melunko@47: NONENONEs,x,x, && melunko@47: program_prefix=${target_alias}- melunko@47: melunko@47: case m4 in melunko@47: [\\/]* | ?:[\\/]* ) ac_macro_dir=m4 ;; melunko@47: *) ac_macro_dir=$srcdir/m4 ;; melunko@47: esac melunko@47: if test -d "$ac_macro_dir"; then : melunko@47: else melunko@47: { { echo "$as_me:$LINENO: error: cannot find macro directory \`m4'" >&5 melunko@47: echo "$as_me: error: cannot find macro directory \`m4'" >&2;} melunko@47: { (exit 1); exit 1; }; } melunko@47: fi melunko@47: melunko@47: # Check whether --enable-static or --disable-static was given. melunko@47: if test "${enable_static+set}" = set; then melunko@47: enableval="$enable_static" melunko@47: p=${PACKAGE-default} melunko@47: case $enableval in melunko@47: yes) enable_static=yes ;; melunko@47: no) enable_static=no ;; melunko@47: *) melunko@47: enable_static=no melunko@47: # Look at the argument we got. We use all the common list separators. melunko@47: lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," melunko@47: for pkg in $enableval; do melunko@47: IFS="$lt_save_ifs" melunko@47: if test "X$pkg" = "X$p"; then melunko@47: enable_static=yes melunko@47: fi melunko@47: done melunko@47: IFS="$lt_save_ifs" melunko@47: ;; melunko@47: esac melunko@47: else melunko@47: enable_static=no melunko@47: fi; melunko@47: melunko@47: melunko@47: melunko@47: echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5 melunko@47: echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6 melunko@47: # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given. melunko@47: if test "${enable_maintainer_mode+set}" = set; then melunko@47: enableval="$enable_maintainer_mode" melunko@47: USE_MAINTAINER_MODE=$enableval melunko@47: else melunko@47: USE_MAINTAINER_MODE=no melunko@47: fi; melunko@47: echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5 melunko@47: echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6 melunko@47: melunko@47: melunko@47: if test $USE_MAINTAINER_MODE = yes; then melunko@47: MAINTAINER_MODE_TRUE= melunko@47: MAINTAINER_MODE_FALSE='#' melunko@47: else melunko@47: MAINTAINER_MODE_TRUE='#' melunko@47: MAINTAINER_MODE_FALSE= melunko@47: fi melunko@47: melunko@47: MAINT=$MAINTAINER_MODE_TRUE melunko@47: melunko@47: melunko@47: melunko@47: melunko@47: PACKAGE=gst-plugins-nuvdemux melunko@47: GST_PLUGINS_VERSION_MAJOR=0 melunko@47: GST_PLUGINS_VERSION_MINOR=10 melunko@47: GST_PLUGINS_VERSION_MICRO=0 melunko@47: NANO=1 melunko@47: GST_PLUGINS_VERSION_NANO=$NANO melunko@47: if test "x$NANO" = "x" || test "x$NANO" = "x0"; melunko@47: then melunko@47: { echo "$as_me:$LINENO: configuring gst-plugins-nuvdemux for release" >&5 melunko@47: echo "$as_me: configuring gst-plugins-nuvdemux for release" >&6;} melunko@47: VERSION=0.10.0 melunko@47: GST_PLUGINS_VERSION_RELEASE=1 melunko@47: GST_CVS="no" melunko@47: else melunko@47: { echo "$as_me:$LINENO: configuring gst-plugins-nuvdemux for development with nano $NANO" >&5 melunko@47: echo "$as_me: configuring gst-plugins-nuvdemux for development with nano $NANO" >&6;} melunko@47: VERSION=0.10.0.$NANO melunko@47: GST_PLUGINS_VERSION_RELEASE=0.`date +%Y%m%d.%H%M%S` melunko@47: GST_CVS="yes" melunko@47: fi melunko@47: melunko@47: GST_PLUGINS_VERSION=$VERSION melunko@47: melunko@47: cat >>confdefs.h <<_ACEOF melunko@47: #define GST_PLUGINS_VERSION "$GST_PLUGINS_VERSION" melunko@47: _ACEOF melunko@47: melunko@47: melunko@47: melunko@47: cat >>confdefs.h <<_ACEOF melunko@47: #define GST_PLUGINS_VERSION_RELEASE "$GST_PLUGINS_VERSION_RELEASE" melunko@47: _ACEOF melunko@47: melunko@47: melunko@47: melunko@47: melunko@47: melunko@47: melunko@47: melunko@47: melunko@47: cat >>confdefs.h <<_ACEOF melunko@47: #define PACKAGE "$PACKAGE" melunko@47: _ACEOF melunko@47: melunko@47: melunko@47: melunko@47: cat >>confdefs.h <<_ACEOF melunko@47: #define VERSION "$VERSION" melunko@47: _ACEOF melunko@47: melunko@47: melunko@47: melunko@47: melunko@47: am__api_version="1.8" melunko@47: # Find a good install program. We prefer a C program (faster), melunko@47: # so one script is as good as another. But avoid the broken or melunko@47: # incompatible versions: melunko@47: # SysV /etc/install, /usr/sbin/install melunko@47: # SunOS /usr/etc/install melunko@47: # IRIX /sbin/install melunko@47: # AIX /bin/install melunko@47: # AmigaOS /C/install, which installs bootblocks on floppy discs melunko@47: # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag melunko@47: # AFS /usr/afsws/bin/install, which mishandles nonexistent args melunko@47: # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" melunko@47: # OS/2's system install, which has a completely different semantic melunko@47: # ./install, which can be erroneously created by make from ./install.sh. melunko@47: echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 melunko@47: echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 melunko@47: if test -z "$INSTALL"; then melunko@47: if test "${ac_cv_path_install+set}" = set; then melunko@47: echo $ECHO_N "(cached) $ECHO_C" >&6 melunko@47: else melunko@47: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR melunko@47: for as_dir in $PATH melunko@47: do melunko@47: IFS=$as_save_IFS melunko@47: test -z "$as_dir" && as_dir=. melunko@47: # Account for people who put trailing slashes in PATH elements. melunko@47: case $as_dir/ in melunko@47: ./ | .// | /cC/* | \ melunko@47: /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ melunko@47: ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ melunko@47: /usr/ucb/* ) ;; melunko@47: *) melunko@47: # OSF1 and SCO ODT 3.0 have their own names for install. melunko@47: # Don't use installbsd from OSF since it installs stuff as root melunko@47: # by default. melunko@47: for ac_prog in ginstall scoinst install; do melunko@47: for ac_exec_ext in '' $ac_executable_extensions; do melunko@47: if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then melunko@47: if test $ac_prog = install && melunko@47: grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then melunko@47: # AIX install. It has an incompatible calling convention. melunko@47: : melunko@47: elif test $ac_prog = install && melunko@47: grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then melunko@47: # program-specific install script used by HP pwplus--don't use. melunko@47: : melunko@47: else melunko@47: ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" melunko@47: break 3 melunko@47: fi melunko@47: fi melunko@47: done melunko@47: done melunko@47: ;; melunko@47: esac melunko@47: done melunko@47: melunko@47: melunko@47: fi melunko@47: if test "${ac_cv_path_install+set}" = set; then melunko@47: INSTALL=$ac_cv_path_install melunko@47: else melunko@47: # As a last resort, use the slow shell script. We don't cache a melunko@47: # path for INSTALL within a source directory, because that will melunko@47: # break other packages using the cache if that directory is melunko@47: # removed, or if the path is relative. melunko@47: INSTALL=$ac_install_sh melunko@47: fi melunko@47: fi melunko@47: echo "$as_me:$LINENO: result: $INSTALL" >&5 melunko@47: echo "${ECHO_T}$INSTALL" >&6 melunko@47: melunko@47: # Use test -z because SunOS4 sh mishandles braces in ${var-val}. melunko@47: # It thinks the first close brace ends the variable substitution. melunko@47: test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' melunko@47: melunko@47: test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' melunko@47: melunko@47: test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' melunko@47: melunko@47: echo "$as_me:$LINENO: checking whether build environment is sane" >&5 melunko@47: echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6 melunko@47: # Just in case melunko@47: sleep 1 melunko@47: echo timestamp > conftest.file melunko@47: # Do `set' in a subshell so we don't clobber the current shell's melunko@47: # arguments. Must try -L first in case configure is actually a melunko@47: # symlink; some systems play weird games with the mod time of symlinks melunko@47: # (eg FreeBSD returns the mod time of the symlink's containing melunko@47: # directory). melunko@47: if ( melunko@47: set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` melunko@47: if test "$*" = "X"; then melunko@47: # -L didn't work. melunko@47: set X `ls -t $srcdir/configure conftest.file` melunko@47: fi melunko@47: rm -f conftest.file melunko@47: if test "$*" != "X $srcdir/configure conftest.file" \ melunko@47: && test "$*" != "X conftest.file $srcdir/configure"; then melunko@47: melunko@47: # If neither matched, then we have a broken ls. This can happen melunko@47: # if, for instance, CONFIG_SHELL is bash and it inherits a melunko@47: # broken ls alias from the environment. This has actually melunko@47: # happened. Such a system could not be considered "sane". melunko@47: { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken melunko@47: alias in your environment" >&5 melunko@47: echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken melunko@47: alias in your environment" >&2;} melunko@47: { (exit 1); exit 1; }; } melunko@47: fi melunko@47: melunko@47: test "$2" = conftest.file melunko@47: ) melunko@47: then melunko@47: # Ok. melunko@47: : melunko@47: else melunko@47: { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! melunko@47: Check your system clock" >&5 melunko@47: echo "$as_me: error: newly created file is older than distributed files! melunko@47: Check your system clock" >&2;} melunko@47: { (exit 1); exit 1; }; } melunko@47: fi melunko@47: echo "$as_me:$LINENO: result: yes" >&5 melunko@47: echo "${ECHO_T}yes" >&6 melunko@47: test "$program_prefix" != NONE && melunko@47: program_transform_name="s,^,$program_prefix,;$program_transform_name" melunko@47: # Use a double $ so make ignores it. melunko@47: test "$program_suffix" != NONE && melunko@47: program_transform_name="s,\$,$program_suffix,;$program_transform_name" melunko@47: # Double any \ or $. echo might interpret backslashes. melunko@47: # By default was `s,x,x', remove it if useless. melunko@47: cat <<\_ACEOF >conftest.sed melunko@47: s/[\\$]/&&/g;s/;s,x,x,$// melunko@47: _ACEOF melunko@47: program_transform_name=`echo $program_transform_name | sed -f conftest.sed` melunko@47: rm conftest.sed melunko@47: melunko@47: # expand $ac_aux_dir to an absolute path melunko@47: am_aux_dir=`cd $ac_aux_dir && pwd` melunko@47: melunko@47: test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" melunko@47: # Use eval to expand $SHELL melunko@47: if eval "$MISSING --run true"; then melunko@47: am_missing_run="$MISSING --run " melunko@47: else melunko@47: am_missing_run= melunko@47: { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 melunko@47: echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} melunko@47: fi melunko@47: melunko@47: if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then melunko@47: # Keeping the `.' argument allows $(mkdir_p) to be used without melunko@47: # argument. Indeed, we sometimes output rules like melunko@47: # $(mkdir_p) $(somedir) melunko@47: # where $(somedir) is conditionally defined. melunko@47: # (`test -n '$(somedir)' && $(mkdir_p) $(somedir)' is a more melunko@47: # expensive solution, as it forces Make to start a sub-shell.) melunko@47: mkdir_p='mkdir -p -- .' melunko@47: else melunko@47: # On NextStep and OpenStep, the `mkdir' command does not melunko@47: # recognize any option. It will interpret all options as melunko@47: # directories to create, and then abort because `.' already melunko@47: # exists. melunko@47: for d in ./-p ./--version; melunko@47: do melunko@47: test -d $d && rmdir $d melunko@47: done melunko@47: # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists. melunko@47: if test -f "$ac_aux_dir/mkinstalldirs"; then melunko@47: mkdir_p='$(mkinstalldirs)' melunko@47: else melunko@47: mkdir_p='$(install_sh) -d' melunko@47: fi melunko@47: fi melunko@47: melunko@47: for ac_prog in gawk mawk nawk awk melunko@47: do melunko@47: # Extract the first word of "$ac_prog", so it can be a program name with args. melunko@47: set dummy $ac_prog; ac_word=$2 melunko@47: echo "$as_me:$LINENO: checking for $ac_word" >&5 melunko@47: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 melunko@47: if test "${ac_cv_prog_AWK+set}" = set; then melunko@47: echo $ECHO_N "(cached) $ECHO_C" >&6 melunko@47: else melunko@47: if test -n "$AWK"; then melunko@47: ac_cv_prog_AWK="$AWK" # Let the user override the test. melunko@47: else melunko@47: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR melunko@47: for as_dir in $PATH melunko@47: do melunko@47: IFS=$as_save_IFS melunko@47: test -z "$as_dir" && as_dir=. melunko@47: for ac_exec_ext in '' $ac_executable_extensions; do melunko@47: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then melunko@47: ac_cv_prog_AWK="$ac_prog" melunko@47: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 melunko@47: break 2 melunko@47: fi melunko@47: done melunko@47: done melunko@47: melunko@47: fi melunko@47: fi melunko@47: AWK=$ac_cv_prog_AWK melunko@47: if test -n "$AWK"; then melunko@47: echo "$as_me:$LINENO: result: $AWK" >&5 melunko@47: echo "${ECHO_T}$AWK" >&6 melunko@47: else melunko@47: echo "$as_me:$LINENO: result: no" >&5 melunko@47: echo "${ECHO_T}no" >&6 melunko@47: fi melunko@47: melunko@47: test -n "$AWK" && break melunko@47: done melunko@47: melunko@47: echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 melunko@47: echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 melunko@47: set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` melunko@47: if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then melunko@47: echo $ECHO_N "(cached) $ECHO_C" >&6 melunko@47: else melunko@47: cat >conftest.make <<\_ACEOF melunko@47: all: melunko@47: @echo 'ac_maketemp="$(MAKE)"' melunko@47: _ACEOF melunko@47: # GNU make sometimes prints "make[1]: Entering...", which would confuse us. melunko@47: eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` melunko@47: if test -n "$ac_maketemp"; then melunko@47: eval ac_cv_prog_make_${ac_make}_set=yes melunko@47: else melunko@47: eval ac_cv_prog_make_${ac_make}_set=no melunko@47: fi melunko@47: rm -f conftest.make melunko@47: fi melunko@47: if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then melunko@47: echo "$as_me:$LINENO: result: yes" >&5 melunko@47: echo "${ECHO_T}yes" >&6 melunko@47: SET_MAKE= melunko@47: else melunko@47: echo "$as_me:$LINENO: result: no" >&5 melunko@47: echo "${ECHO_T}no" >&6 melunko@47: SET_MAKE="MAKE=${MAKE-make}" melunko@47: fi melunko@47: melunko@47: rm -rf .tst 2>/dev/null melunko@47: mkdir .tst 2>/dev/null melunko@47: if test -d .tst; then melunko@47: am__leading_dot=. melunko@47: else melunko@47: am__leading_dot=_ melunko@47: fi melunko@47: rmdir .tst 2>/dev/null melunko@47: melunko@47: # test to see if srcdir already configured melunko@47: if test "`cd $srcdir && pwd`" != "`pwd`" && melunko@47: test -f $srcdir/config.status; then melunko@47: { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 melunko@47: echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} melunko@47: { (exit 1); exit 1; }; } melunko@47: fi melunko@47: melunko@47: # test whether we have cygpath melunko@47: if test -z "$CYGPATH_W"; then melunko@47: if (cygpath --version) >/dev/null 2>/dev/null; then melunko@47: CYGPATH_W='cygpath -w' melunko@47: else melunko@47: CYGPATH_W=echo melunko@47: fi melunko@47: fi melunko@47: melunko@47: melunko@47: # Define the identity of the package. melunko@47: PACKAGE=$PACKAGE melunko@47: VERSION=$VERSION melunko@47: melunko@47: melunko@47: cat >>confdefs.h <<_ACEOF melunko@47: #define PACKAGE "$PACKAGE" melunko@47: _ACEOF melunko@47: melunko@47: melunko@47: cat >>confdefs.h <<_ACEOF melunko@47: #define VERSION "$VERSION" melunko@47: _ACEOF melunko@47: melunko@47: # Some tools Automake needs. melunko@47: melunko@47: ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} melunko@47: melunko@47: melunko@47: AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} melunko@47: melunko@47: melunko@47: AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} melunko@47: melunko@47: melunko@47: AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} melunko@47: melunko@47: melunko@47: MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} melunko@47: melunko@47: melunko@47: AMTAR=${AMTAR-"${am_missing_run}tar"} melunko@47: melunko@47: install_sh=${install_sh-"$am_aux_dir/install-sh"} melunko@47: melunko@47: # Installed binaries are usually stripped using `strip' when the user melunko@47: # run `make install-strip'. However `strip' might not be the right melunko@47: # tool to use in cross-compilation environments, therefore Automake melunko@47: # will honor the `STRIP' environment variable to overrule this program. melunko@47: if test "$cross_compiling" != no; then melunko@47: if test -n "$ac_tool_prefix"; then melunko@47: # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. melunko@47: set dummy ${ac_tool_prefix}strip; ac_word=$2 melunko@47: echo "$as_me:$LINENO: checking for $ac_word" >&5 melunko@47: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 melunko@47: if test "${ac_cv_prog_STRIP+set}" = set; then melunko@47: echo $ECHO_N "(cached) $ECHO_C" >&6 melunko@47: else melunko@47: if test -n "$STRIP"; then melunko@47: ac_cv_prog_STRIP="$STRIP" # Let the user override the test. melunko@47: else melunko@47: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR melunko@47: for as_dir in $PATH melunko@47: do melunko@47: IFS=$as_save_IFS melunko@47: test -z "$as_dir" && as_dir=. melunko@47: for ac_exec_ext in '' $ac_executable_extensions; do melunko@47: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then melunko@47: ac_cv_prog_STRIP="${ac_tool_prefix}strip" melunko@47: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 melunko@47: break 2 melunko@47: fi melunko@47: done melunko@47: done melunko@47: melunko@47: fi melunko@47: fi melunko@47: STRIP=$ac_cv_prog_STRIP melunko@47: if test -n "$STRIP"; then melunko@47: echo "$as_me:$LINENO: result: $STRIP" >&5 melunko@47: echo "${ECHO_T}$STRIP" >&6 melunko@47: else melunko@47: echo "$as_me:$LINENO: result: no" >&5 melunko@47: echo "${ECHO_T}no" >&6 melunko@47: fi melunko@47: melunko@47: fi melunko@47: if test -z "$ac_cv_prog_STRIP"; then melunko@47: ac_ct_STRIP=$STRIP melunko@47: # Extract the first word of "strip", so it can be a program name with args. melunko@47: set dummy strip; ac_word=$2 melunko@47: echo "$as_me:$LINENO: checking for $ac_word" >&5 melunko@47: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 melunko@47: if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then melunko@47: echo $ECHO_N "(cached) $ECHO_C" >&6 melunko@47: else melunko@47: if test -n "$ac_ct_STRIP"; then melunko@47: ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. melunko@47: else melunko@47: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR melunko@47: for as_dir in $PATH melunko@47: do melunko@47: IFS=$as_save_IFS melunko@47: test -z "$as_dir" && as_dir=. melunko@47: for ac_exec_ext in '' $ac_executable_extensions; do melunko@47: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then melunko@47: ac_cv_prog_ac_ct_STRIP="strip" melunko@47: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 melunko@47: break 2 melunko@47: fi melunko@47: done melunko@47: done melunko@47: melunko@47: test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" melunko@47: fi melunko@47: fi melunko@47: ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP melunko@47: if test -n "$ac_ct_STRIP"; then melunko@47: echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 melunko@47: echo "${ECHO_T}$ac_ct_STRIP" >&6 melunko@47: else melunko@47: echo "$as_me:$LINENO: result: no" >&5 melunko@47: echo "${ECHO_T}no" >&6 melunko@47: fi melunko@47: melunko@47: STRIP=$ac_ct_STRIP melunko@47: else melunko@47: STRIP="$ac_cv_prog_STRIP" melunko@47: fi melunko@47: melunko@47: fi melunko@47: INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" melunko@47: melunko@47: # We need awk for the "check" target. The system "awk" is bad on melunko@47: # some platforms. melunko@47: melunko@47: melunko@47: melunko@47: melunko@47: # Check whether --enable-shared or --disable-shared was given. melunko@47: if test "${enable_shared+set}" = set; then melunko@47: enableval="$enable_shared" melunko@47: p=${PACKAGE-default} melunko@47: case $enableval in melunko@47: yes) enable_shared=yes ;; melunko@47: no) enable_shared=no ;; melunko@47: *) melunko@47: enable_shared=no melunko@47: # Look at the argument we got. We use all the common list separators. melunko@47: lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," melunko@47: for pkg in $enableval; do melunko@47: IFS="$lt_save_ifs" melunko@47: if test "X$pkg" = "X$p"; then melunko@47: enable_shared=yes melunko@47: fi melunko@47: done melunko@47: IFS="$lt_save_ifs" melunko@47: ;; melunko@47: esac melunko@47: else melunko@47: enable_shared=yes melunko@47: fi; melunko@47: melunko@47: # Check whether --enable-fast-install or --disable-fast-install was given. melunko@47: if test "${enable_fast_install+set}" = set; then melunko@47: enableval="$enable_fast_install" melunko@47: p=${PACKAGE-default} melunko@47: case $enableval in melunko@47: yes) enable_fast_install=yes ;; melunko@47: no) enable_fast_install=no ;; melunko@47: *) melunko@47: enable_fast_install=no melunko@47: # Look at the argument we got. We use all the common list separators. melunko@47: lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," melunko@47: for pkg in $enableval; do melunko@47: IFS="$lt_save_ifs" melunko@47: if test "X$pkg" = "X$p"; then melunko@47: enable_fast_install=yes melunko@47: fi melunko@47: done melunko@47: IFS="$lt_save_ifs" melunko@47: ;; melunko@47: esac melunko@47: else melunko@47: enable_fast_install=yes melunko@47: fi; melunko@47: melunko@47: DEPDIR="${am__leading_dot}deps" melunko@47: melunko@47: ac_config_commands="$ac_config_commands depfiles" melunko@47: melunko@47: melunko@47: am_make=${MAKE-make} melunko@47: cat > confinc << 'END' melunko@47: am__doit: melunko@47: @echo done melunko@47: .PHONY: am__doit melunko@47: END melunko@47: # If we don't find an include directive, just comment out the code. melunko@47: echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 melunko@47: echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6 melunko@47: am__include="#" melunko@47: am__quote= melunko@47: _am_result=none melunko@47: # First try GNU make style include. melunko@47: echo "include confinc" > confmf melunko@47: # We grep out `Entering directory' and `Leaving directory' melunko@47: # messages which can occur if `w' ends up in MAKEFLAGS. melunko@47: # In particular we don't look at `^make:' because GNU make might melunko@47: # be invoked under some other name (usually "gmake"), in which melunko@47: # case it prints its new name instead of `make'. melunko@47: if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then melunko@47: am__include=include melunko@47: am__quote= melunko@47: _am_result=GNU melunko@47: fi melunko@47: # Now try BSD make style include. melunko@47: if test "$am__include" = "#"; then melunko@47: echo '.include "confinc"' > confmf melunko@47: if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then melunko@47: am__include=.include melunko@47: am__quote="\"" melunko@47: _am_result=BSD melunko@47: fi melunko@47: fi melunko@47: melunko@47: melunko@47: echo "$as_me:$LINENO: result: $_am_result" >&5 melunko@47: echo "${ECHO_T}$_am_result" >&6 melunko@47: rm -f confinc confmf melunko@47: melunko@47: # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given. melunko@47: if test "${enable_dependency_tracking+set}" = set; then melunko@47: enableval="$enable_dependency_tracking" melunko@47: melunko@47: fi; melunko@47: if test "x$enable_dependency_tracking" != xno; then melunko@47: am_depcomp="$ac_aux_dir/depcomp" melunko@47: AMDEPBACKSLASH='\' melunko@47: fi melunko@47: melunko@47: melunko@47: if test "x$enable_dependency_tracking" != xno; then melunko@47: AMDEP_TRUE= melunko@47: AMDEP_FALSE='#' melunko@47: else melunko@47: AMDEP_TRUE='#' melunko@47: AMDEP_FALSE= melunko@47: fi melunko@47: melunko@47: melunko@47: melunko@47: ac_ext=c melunko@47: ac_cpp='$CPP $CPPFLAGS' melunko@47: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' melunko@47: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' melunko@47: ac_compiler_gnu=$ac_cv_c_compiler_gnu melunko@47: if test -n "$ac_tool_prefix"; then melunko@47: # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. melunko@47: set dummy ${ac_tool_prefix}gcc; ac_word=$2 melunko@47: echo "$as_me:$LINENO: checking for $ac_word" >&5 melunko@47: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 melunko@47: if test "${ac_cv_prog_CC+set}" = set; then melunko@47: echo $ECHO_N "(cached) $ECHO_C" >&6 melunko@47: else melunko@47: if test -n "$CC"; then melunko@47: ac_cv_prog_CC="$CC" # Let the user override the test. melunko@47: else melunko@47: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR melunko@47: for as_dir in $PATH melunko@47: do melunko@47: IFS=$as_save_IFS melunko@47: test -z "$as_dir" && as_dir=. melunko@47: for ac_exec_ext in '' $ac_executable_extensions; do melunko@47: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then melunko@47: ac_cv_prog_CC="${ac_tool_prefix}gcc" melunko@47: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 melunko@47: break 2 melunko@47: fi melunko@47: done melunko@47: done melunko@47: melunko@47: fi melunko@47: fi melunko@47: CC=$ac_cv_prog_CC melunko@47: if test -n "$CC"; then melunko@47: echo "$as_me:$LINENO: result: $CC" >&5 melunko@47: echo "${ECHO_T}$CC" >&6 melunko@47: else melunko@47: echo "$as_me:$LINENO: result: no" >&5 melunko@47: echo "${ECHO_T}no" >&6 melunko@47: fi melunko@47: melunko@47: fi melunko@47: if test -z "$ac_cv_prog_CC"; then melunko@47: ac_ct_CC=$CC melunko@47: # Extract the first word of "gcc", so it can be a program name with args. melunko@47: set dummy gcc; ac_word=$2 melunko@47: echo "$as_me:$LINENO: checking for $ac_word" >&5 melunko@47: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 melunko@47: if test "${ac_cv_prog_ac_ct_CC+set}" = set; then melunko@47: echo $ECHO_N "(cached) $ECHO_C" >&6 melunko@47: else melunko@47: if test -n "$ac_ct_CC"; then melunko@47: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. melunko@47: else melunko@47: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR melunko@47: for as_dir in $PATH melunko@47: do melunko@47: IFS=$as_save_IFS melunko@47: test -z "$as_dir" && as_dir=. melunko@47: for ac_exec_ext in '' $ac_executable_extensions; do melunko@47: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then melunko@47: ac_cv_prog_ac_ct_CC="gcc" melunko@47: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 melunko@47: break 2 melunko@47: fi melunko@47: done melunko@47: done melunko@47: melunko@47: fi melunko@47: fi melunko@47: ac_ct_CC=$ac_cv_prog_ac_ct_CC melunko@47: if test -n "$ac_ct_CC"; then melunko@47: echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 melunko@47: echo "${ECHO_T}$ac_ct_CC" >&6 melunko@47: else melunko@47: echo "$as_me:$LINENO: result: no" >&5 melunko@47: echo "${ECHO_T}no" >&6 melunko@47: fi melunko@47: melunko@47: CC=$ac_ct_CC melunko@47: else melunko@47: CC="$ac_cv_prog_CC" melunko@47: fi melunko@47: melunko@47: if test -z "$CC"; then melunko@47: if test -n "$ac_tool_prefix"; then melunko@47: # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. melunko@47: set dummy ${ac_tool_prefix}cc; ac_word=$2 melunko@47: echo "$as_me:$LINENO: checking for $ac_word" >&5 melunko@47: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 melunko@47: if test "${ac_cv_prog_CC+set}" = set; then melunko@47: echo $ECHO_N "(cached) $ECHO_C" >&6 melunko@47: else melunko@47: if test -n "$CC"; then melunko@47: ac_cv_prog_CC="$CC" # Let the user override the test. melunko@47: else melunko@47: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR melunko@47: for as_dir in $PATH melunko@47: do melunko@47: IFS=$as_save_IFS melunko@47: test -z "$as_dir" && as_dir=. melunko@47: for ac_exec_ext in '' $ac_executable_extensions; do melunko@47: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then melunko@47: ac_cv_prog_CC="${ac_tool_prefix}cc" melunko@47: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 melunko@47: break 2 melunko@47: fi melunko@47: done melunko@47: done melunko@47: melunko@47: fi melunko@47: fi melunko@47: CC=$ac_cv_prog_CC melunko@47: if test -n "$CC"; then melunko@47: echo "$as_me:$LINENO: result: $CC" >&5 melunko@47: echo "${ECHO_T}$CC" >&6 melunko@47: else melunko@47: echo "$as_me:$LINENO: result: no" >&5 melunko@47: echo "${ECHO_T}no" >&6 melunko@47: fi melunko@47: melunko@47: fi melunko@47: if test -z "$ac_cv_prog_CC"; then melunko@47: ac_ct_CC=$CC melunko@47: # Extract the first word of "cc", so it can be a program name with args. melunko@47: set dummy cc; ac_word=$2 melunko@47: echo "$as_me:$LINENO: checking for $ac_word" >&5 melunko@47: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 melunko@47: if test "${ac_cv_prog_ac_ct_CC+set}" = set; then melunko@47: echo $ECHO_N "(cached) $ECHO_C" >&6 melunko@47: else melunko@47: if test -n "$ac_ct_CC"; then melunko@47: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. melunko@47: else melunko@47: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR melunko@47: for as_dir in $PATH melunko@47: do melunko@47: IFS=$as_save_IFS melunko@47: test -z "$as_dir" && as_dir=. melunko@47: for ac_exec_ext in '' $ac_executable_extensions; do melunko@47: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then melunko@47: ac_cv_prog_ac_ct_CC="cc" melunko@47: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 melunko@47: break 2 melunko@47: fi melunko@47: done melunko@47: done melunko@47: melunko@47: fi melunko@47: fi melunko@47: ac_ct_CC=$ac_cv_prog_ac_ct_CC melunko@47: if test -n "$ac_ct_CC"; then melunko@47: echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 melunko@47: echo "${ECHO_T}$ac_ct_CC" >&6 melunko@47: else melunko@47: echo "$as_me:$LINENO: result: no" >&5 melunko@47: echo "${ECHO_T}no" >&6 melunko@47: fi melunko@47: melunko@47: CC=$ac_ct_CC melunko@47: else melunko@47: CC="$ac_cv_prog_CC" melunko@47: fi melunko@47: melunko@47: fi melunko@47: if test -z "$CC"; then melunko@47: # Extract the first word of "cc", so it can be a program name with args. melunko@47: set dummy cc; ac_word=$2 melunko@47: echo "$as_me:$LINENO: checking for $ac_word" >&5 melunko@47: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 melunko@47: if test "${ac_cv_prog_CC+set}" = set; then melunko@47: echo $ECHO_N "(cached) $ECHO_C" >&6 melunko@47: else melunko@47: if test -n "$CC"; then melunko@47: ac_cv_prog_CC="$CC" # Let the user override the test. melunko@47: else melunko@47: ac_prog_rejected=no melunko@47: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR melunko@47: for as_dir in $PATH melunko@47: do melunko@47: IFS=$as_save_IFS melunko@47: test -z "$as_dir" && as_dir=. melunko@47: for ac_exec_ext in '' $ac_executable_extensions; do melunko@47: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then melunko@47: if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then melunko@47: ac_prog_rejected=yes melunko@47: continue melunko@47: fi melunko@47: ac_cv_prog_CC="cc" melunko@47: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 melunko@47: break 2 melunko@47: fi melunko@47: done melunko@47: done melunko@47: melunko@47: if test $ac_prog_rejected = yes; then melunko@47: # We found a bogon in the path, so make sure we never use it. melunko@47: set dummy $ac_cv_prog_CC melunko@47: shift melunko@47: if test $# != 0; then melunko@47: # We chose a different compiler from the bogus one. melunko@47: # However, it has the same basename, so the bogon will be chosen melunko@47: # first if we set CC to just the basename; use the full file name. melunko@47: shift melunko@47: ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" melunko@47: fi melunko@47: fi melunko@47: fi melunko@47: fi melunko@47: CC=$ac_cv_prog_CC melunko@47: if test -n "$CC"; then melunko@47: echo "$as_me:$LINENO: result: $CC" >&5 melunko@47: echo "${ECHO_T}$CC" >&6 melunko@47: else melunko@47: echo "$as_me:$LINENO: result: no" >&5 melunko@47: echo "${ECHO_T}no" >&6 melunko@47: fi melunko@47: melunko@47: fi melunko@47: if test -z "$CC"; then melunko@47: if test -n "$ac_tool_prefix"; then melunko@47: for ac_prog in cl melunko@47: do melunko@47: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. melunko@47: set dummy $ac_tool_prefix$ac_prog; ac_word=$2 melunko@47: echo "$as_me:$LINENO: checking for $ac_word" >&5 melunko@47: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 melunko@47: if test "${ac_cv_prog_CC+set}" = set; then melunko@47: echo $ECHO_N "(cached) $ECHO_C" >&6 melunko@47: else melunko@47: if test -n "$CC"; then melunko@47: ac_cv_prog_CC="$CC" # Let the user override the test. melunko@47: else melunko@47: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR melunko@47: for as_dir in $PATH melunko@47: do melunko@47: IFS=$as_save_IFS melunko@47: test -z "$as_dir" && as_dir=. melunko@47: for ac_exec_ext in '' $ac_executable_extensions; do melunko@47: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then melunko@47: ac_cv_prog_CC="$ac_tool_prefix$ac_prog" melunko@47: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 melunko@47: break 2 melunko@47: fi melunko@47: done melunko@47: done melunko@47: melunko@47: fi melunko@47: fi melunko@47: CC=$ac_cv_prog_CC melunko@47: if test -n "$CC"; then melunko@47: echo "$as_me:$LINENO: result: $CC" >&5 melunko@47: echo "${ECHO_T}$CC" >&6 melunko@47: else melunko@47: echo "$as_me:$LINENO: result: no" >&5 melunko@47: echo "${ECHO_T}no" >&6 melunko@47: fi melunko@47: melunko@47: test -n "$CC" && break melunko@47: done melunko@47: fi melunko@47: if test -z "$CC"; then melunko@47: ac_ct_CC=$CC melunko@47: for ac_prog in cl melunko@47: do melunko@47: # Extract the first word of "$ac_prog", so it can be a program name with args. melunko@47: set dummy $ac_prog; ac_word=$2 melunko@47: echo "$as_me:$LINENO: checking for $ac_word" >&5 melunko@47: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 melunko@47: if test "${ac_cv_prog_ac_ct_CC+set}" = set; then melunko@47: echo $ECHO_N "(cached) $ECHO_C" >&6 melunko@47: else melunko@47: if test -n "$ac_ct_CC"; then melunko@47: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. melunko@47: else melunko@47: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR melunko@47: for as_dir in $PATH melunko@47: do melunko@47: IFS=$as_save_IFS melunko@47: test -z "$as_dir" && as_dir=. melunko@47: for ac_exec_ext in '' $ac_executable_extensions; do melunko@47: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then melunko@47: ac_cv_prog_ac_ct_CC="$ac_prog" melunko@47: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 melunko@47: break 2 melunko@47: fi melunko@47: done melunko@47: done melunko@47: melunko@47: fi melunko@47: fi melunko@47: ac_ct_CC=$ac_cv_prog_ac_ct_CC melunko@47: if test -n "$ac_ct_CC"; then melunko@47: echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 melunko@47: echo "${ECHO_T}$ac_ct_CC" >&6 melunko@47: else melunko@47: echo "$as_me:$LINENO: result: no" >&5 melunko@47: echo "${ECHO_T}no" >&6 melunko@47: fi melunko@47: melunko@47: test -n "$ac_ct_CC" && break melunko@47: done melunko@47: melunko@47: CC=$ac_ct_CC melunko@47: fi melunko@47: melunko@47: fi melunko@47: melunko@47: melunko@47: test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH melunko@47: See \`config.log' for more details." >&5 melunko@47: echo "$as_me: error: no acceptable C compiler found in \$PATH melunko@47: See \`config.log' for more details." >&2;} melunko@47: { (exit 1); exit 1; }; } melunko@47: melunko@47: # Provide some information about the compiler. melunko@47: echo "$as_me:$LINENO:" \ melunko@47: "checking for C compiler version" >&5 melunko@47: ac_compiler=`set X $ac_compile; echo $2` melunko@47: { (eval echo "$as_me:$LINENO: \"$ac_compiler --version &5\"") >&5 melunko@47: (eval $ac_compiler --version &5) 2>&5 melunko@47: ac_status=$? melunko@47: echo "$as_me:$LINENO: \$? = $ac_status" >&5 melunko@47: (exit $ac_status); } melunko@47: { (eval echo "$as_me:$LINENO: \"$ac_compiler -v &5\"") >&5 melunko@47: (eval $ac_compiler -v &5) 2>&5 melunko@47: ac_status=$? melunko@47: echo "$as_me:$LINENO: \$? = $ac_status" >&5 melunko@47: (exit $ac_status); } melunko@47: { (eval echo "$as_me:$LINENO: \"$ac_compiler -V &5\"") >&5 melunko@47: (eval $ac_compiler -V &5) 2>&5 melunko@47: ac_status=$? melunko@47: echo "$as_me:$LINENO: \$? = $ac_status" >&5 melunko@47: (exit $ac_status); } melunko@47: melunko@47: cat >conftest.$ac_ext <<_ACEOF melunko@47: /* confdefs.h. */ melunko@47: _ACEOF melunko@47: cat confdefs.h >>conftest.$ac_ext melunko@47: cat >>conftest.$ac_ext <<_ACEOF melunko@47: /* end confdefs.h. */ melunko@47: melunko@47: int melunko@47: main () melunko@47: { melunko@47: melunko@47: ; melunko@47: return 0; melunko@47: } melunko@47: _ACEOF melunko@47: ac_clean_files_save=$ac_clean_files melunko@47: ac_clean_files="$ac_clean_files a.out a.exe b.out" melunko@47: # Try to create an executable without -o first, disregard a.out. melunko@47: # It will help us diagnose broken compilers, and finding out an intuition melunko@47: # of exeext. melunko@47: echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 melunko@47: echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 melunko@47: ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` melunko@47: if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 melunko@47: (eval $ac_link_default) 2>&5 melunko@47: ac_status=$? melunko@47: echo "$as_me:$LINENO: \$? = $ac_status" >&5 melunko@47: (exit $ac_status); }; then melunko@47: # Find the output, starting from the most likely. This scheme is melunko@47: # not robust to junk in `.', hence go to wildcards (a.*) only as a last melunko@47: # resort. melunko@47: melunko@47: # Be careful to initialize this variable, since it used to be cached. melunko@47: # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. melunko@47: ac_cv_exeext= melunko@47: # b.out is created by i960 compilers. melunko@47: for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out melunko@47: do melunko@47: test -f "$ac_file" || continue melunko@47: case $ac_file in melunko@47: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) melunko@47: ;; melunko@47: conftest.$ac_ext ) melunko@47: # This is the source file. melunko@47: ;; melunko@47: [ab].out ) melunko@47: # We found the default executable, but exeext='' is most melunko@47: # certainly right. melunko@47: break;; melunko@47: *.* ) melunko@47: ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` melunko@47: # FIXME: I believe we export ac_cv_exeext for Libtool, melunko@47: # but it would be cool to find out if it's true. Does anybody melunko@47: # maintain Libtool? --akim. melunko@47: export ac_cv_exeext melunko@47: break;; melunko@47: * ) melunko@47: break;; melunko@47: esac melunko@47: done melunko@47: else melunko@47: echo "$as_me: failed program was:" >&5 melunko@47: sed 's/^/| /' conftest.$ac_ext >&5 melunko@47: melunko@47: { { echo "$as_me:$LINENO: error: C compiler cannot create executables melunko@47: See \`config.log' for more details." >&5 melunko@47: echo "$as_me: error: C compiler cannot create executables melunko@47: See \`config.log' for more details." >&2;} melunko@47: { (exit 77); exit 77; }; } melunko@47: fi melunko@47: melunko@47: ac_exeext=$ac_cv_exeext melunko@47: echo "$as_me:$LINENO: result: $ac_file" >&5 melunko@47: echo "${ECHO_T}$ac_file" >&6 melunko@47: melunko@47: # Check the compiler produces executables we can run. If not, either melunko@47: # the compiler is broken, or we cross compile. melunko@47: echo "$as_me:$LINENO: checking whether the C compiler works" >&5 melunko@47: echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 melunko@47: # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 melunko@47: # If not cross compiling, check that we can run a simple program. melunko@47: if test "$cross_compiling" != yes; then melunko@47: if { ac_try='./$ac_file' melunko@47: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 melunko@47: (eval $ac_try) 2>&5 melunko@47: ac_status=$? melunko@47: echo "$as_me:$LINENO: \$? = $ac_status" >&5 melunko@47: (exit $ac_status); }; }; then melunko@47: cross_compiling=no melunko@47: else melunko@47: if test "$cross_compiling" = maybe; then melunko@47: cross_compiling=yes melunko@47: else melunko@47: { { echo "$as_me:$LINENO: error: cannot run C compiled programs. melunko@47: If you meant to cross compile, use \`--host'. melunko@47: See \`config.log' for more details." >&5 melunko@47: echo "$as_me: error: cannot run C compiled programs. melunko@47: If you meant to cross compile, use \`--host'. melunko@47: See \`config.log' for more details." >&2;} melunko@47: { (exit 1); exit 1; }; } melunko@47: fi melunko@47: fi melunko@47: fi melunko@47: echo "$as_me:$LINENO: result: yes" >&5 melunko@47: echo "${ECHO_T}yes" >&6 melunko@47: melunko@47: rm -f a.out a.exe conftest$ac_cv_exeext b.out melunko@47: ac_clean_files=$ac_clean_files_save melunko@47: # Check the compiler produces executables we can run. If not, either melunko@47: # the compiler is broken, or we cross compile. melunko@47: echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 melunko@47: echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 melunko@47: echo "$as_me:$LINENO: result: $cross_compiling" >&5 melunko@47: echo "${ECHO_T}$cross_compiling" >&6 melunko@47: melunko@47: echo "$as_me:$LINENO: checking for suffix of executables" >&5 melunko@47: echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 melunko@47: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 melunko@47: (eval $ac_link) 2>&5 melunko@47: ac_status=$? melunko@47: echo "$as_me:$LINENO: \$? = $ac_status" >&5 melunko@47: (exit $ac_status); }; then melunko@47: # If both `conftest.exe' and `conftest' are `present' (well, observable) melunko@47: # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will melunko@47: # work properly (i.e., refer to `conftest.exe'), while it won't with melunko@47: # `rm'. melunko@47: for ac_file in conftest.exe conftest conftest.*; do melunko@47: test -f "$ac_file" || continue melunko@47: case $ac_file in melunko@47: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; melunko@47: *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` melunko@47: export ac_cv_exeext melunko@47: break;; melunko@47: * ) break;; melunko@47: esac melunko@47: done melunko@47: else melunko@47: { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link melunko@47: See \`config.log' for more details." >&5 melunko@47: echo "$as_me: error: cannot compute suffix of executables: cannot compile and link melunko@47: See \`config.log' for more details." >&2;} melunko@47: { (exit 1); exit 1; }; } melunko@47: fi melunko@47: melunko@47: rm -f conftest$ac_cv_exeext melunko@47: echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 melunko@47: echo "${ECHO_T}$ac_cv_exeext" >&6 melunko@47: melunko@47: rm -f conftest.$ac_ext melunko@47: EXEEXT=$ac_cv_exeext melunko@47: ac_exeext=$EXEEXT melunko@47: echo "$as_me:$LINENO: checking for suffix of object files" >&5 melunko@47: echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 melunko@47: if test "${ac_cv_objext+set}" = set; then melunko@47: echo $ECHO_N "(cached) $ECHO_C" >&6 melunko@47: else melunko@47: cat >conftest.$ac_ext <<_ACEOF melunko@47: /* confdefs.h. */ melunko@47: _ACEOF melunko@47: cat confdefs.h >>conftest.$ac_ext melunko@47: cat >>conftest.$ac_ext <<_ACEOF melunko@47: /* end confdefs.h. */ melunko@47: melunko@47: int melunko@47: main () melunko@47: { melunko@47: melunko@47: ; melunko@47: return 0; melunko@47: } melunko@47: _ACEOF melunko@47: rm -f conftest.o conftest.obj melunko@47: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 melunko@47: (eval $ac_compile) 2>&5 melunko@47: ac_status=$? melunko@47: echo "$as_me:$LINENO: \$? = $ac_status" >&5 melunko@47: (exit $ac_status); }; then melunko@47: for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do melunko@47: case $ac_file in melunko@47: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; melunko@47: *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` melunko@47: break;; melunko@47: esac melunko@47: done melunko@47: else melunko@47: echo "$as_me: failed program was:" >&5 melunko@47: sed 's/^/| /' conftest.$ac_ext >&5 melunko@47: melunko@47: { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile melunko@47: See \`config.log' for more details." >&5 melunko@47: echo "$as_me: error: cannot compute suffix of object files: cannot compile melunko@47: See \`config.log' for more details." >&2;} melunko@47: { (exit 1); exit 1; }; } melunko@47: fi melunko@47: melunko@47: rm -f conftest.$ac_cv_objext conftest.$ac_ext melunko@47: fi melunko@47: echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 melunko@47: echo "${ECHO_T}$ac_cv_objext" >&6 melunko@47: OBJEXT=$ac_cv_objext melunko@47: ac_objext=$OBJEXT melunko@47: echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 melunko@47: echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 melunko@47: if test "${ac_cv_c_compiler_gnu+set}" = set; then melunko@47: echo $ECHO_N "(cached) $ECHO_C" >&6 melunko@47: else melunko@47: cat >conftest.$ac_ext <<_ACEOF melunko@47: /* confdefs.h. */ melunko@47: _ACEOF melunko@47: cat confdefs.h >>conftest.$ac_ext melunko@47: cat >>conftest.$ac_ext <<_ACEOF melunko@47: /* end confdefs.h. */ melunko@47: melunko@47: int melunko@47: main () melunko@47: { melunko@47: #ifndef __GNUC__ melunko@47: choke me melunko@47: #endif melunko@47: melunko@47: ; melunko@47: return 0; melunko@47: } melunko@47: _ACEOF melunko@47: rm -f conftest.$ac_objext melunko@47: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 melunko@47: (eval $ac_compile) 2>conftest.er1 melunko@47: ac_status=$? melunko@47: grep -v '^ *+' conftest.er1 >conftest.err melunko@47: rm -f conftest.er1 melunko@47: cat conftest.err >&5 melunko@47: echo "$as_me:$LINENO: \$? = $ac_status" >&5 melunko@47: (exit $ac_status); } && melunko@47: { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' melunko@47: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 melunko@47: (eval $ac_try) 2>&5 melunko@47: ac_status=$? melunko@47: echo "$as_me:$LINENO: \$? = $ac_status" >&5 melunko@47: (exit $ac_status); }; } && melunko@47: { ac_try='test -s conftest.$ac_objext' melunko@47: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 melunko@47: (eval $ac_try) 2>&5 melunko@47: ac_status=$? melunko@47: echo "$as_me:$LINENO: \$? = $ac_status" >&5 melunko@47: (exit $ac_status); }; }; then melunko@47: ac_compiler_gnu=yes melunko@47: else melunko@47: echo "$as_me: failed program was:" >&5 melunko@47: sed 's/^/| /' conftest.$ac_ext >&5 melunko@47: melunko@47: ac_compiler_gnu=no melunko@47: fi melunko@47: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext melunko@47: ac_cv_c_compiler_gnu=$ac_compiler_gnu melunko@47: melunko@47: fi melunko@47: echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 melunko@47: echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 melunko@47: GCC=`test $ac_compiler_gnu = yes && echo yes` melunko@47: ac_test_CFLAGS=${CFLAGS+set} melunko@47: ac_save_CFLAGS=$CFLAGS melunko@47: CFLAGS="-g" melunko@47: echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 melunko@47: echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 melunko@47: if test "${ac_cv_prog_cc_g+set}" = set; then melunko@47: echo $ECHO_N "(cached) $ECHO_C" >&6 melunko@47: else melunko@47: cat >conftest.$ac_ext <<_ACEOF melunko@47: /* confdefs.h. */ melunko@47: _ACEOF melunko@47: cat confdefs.h >>conftest.$ac_ext melunko@47: cat >>conftest.$ac_ext <<_ACEOF melunko@47: /* end confdefs.h. */ melunko@47: melunko@47: int melunko@47: main () melunko@47: { melunko@47: melunko@47: ; melunko@47: return 0; melunko@47: } melunko@47: _ACEOF melunko@47: rm -f conftest.$ac_objext melunko@47: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 melunko@47: (eval $ac_compile) 2>conftest.er1 melunko@47: ac_status=$? melunko@47: grep -v '^ *+' conftest.er1 >conftest.err melunko@47: rm -f conftest.er1 melunko@47: cat conftest.err >&5 melunko@47: echo "$as_me:$LINENO: \$? = $ac_status" >&5 melunko@47: (exit $ac_status); } && melunko@47: { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' melunko@47: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 melunko@47: (eval $ac_try) 2>&5 melunko@47: ac_status=$? melunko@47: echo "$as_me:$LINENO: \$? = $ac_status" >&5 melunko@47: (exit $ac_status); }; } && melunko@47: { ac_try='test -s conftest.$ac_objext' melunko@47: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 melunko@47: (eval $ac_try) 2>&5 melunko@47: ac_status=$? melunko@47: echo "$as_me:$LINENO: \$? = $ac_status" >&5 melunko@47: (exit $ac_status); }; }; then melunko@47: ac_cv_prog_cc_g=yes melunko@47: else melunko@47: echo "$as_me: failed program was:" >&5 melunko@47: sed 's/^/| /' conftest.$ac_ext >&5 melunko@47: melunko@47: ac_cv_prog_cc_g=no melunko@47: fi melunko@47: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext melunko@47: fi melunko@47: echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 melunko@47: echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 melunko@47: if test "$ac_test_CFLAGS" = set; then melunko@47: CFLAGS=$ac_save_CFLAGS melunko@47: elif test $ac_cv_prog_cc_g = yes; then melunko@47: if test "$GCC" = yes; then melunko@47: CFLAGS="-g -O2" melunko@47: else melunko@47: CFLAGS="-g" melunko@47: fi melunko@47: else melunko@47: if test "$GCC" = yes; then melunko@47: CFLAGS="-O2" melunko@47: else melunko@47: CFLAGS= melunko@47: fi melunko@47: fi melunko@47: echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 melunko@47: echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 melunko@47: if test "${ac_cv_prog_cc_stdc+set}" = set; then melunko@47: echo $ECHO_N "(cached) $ECHO_C" >&6 melunko@47: else melunko@47: ac_cv_prog_cc_stdc=no melunko@47: ac_save_CC=$CC melunko@47: cat >conftest.$ac_ext <<_ACEOF melunko@47: /* confdefs.h. */ melunko@47: _ACEOF melunko@47: cat confdefs.h >>conftest.$ac_ext melunko@47: cat >>conftest.$ac_ext <<_ACEOF melunko@47: /* end confdefs.h. */ melunko@47: #include melunko@47: #include melunko@47: #include melunko@47: #include melunko@47: /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ melunko@47: struct buf { int x; }; melunko@47: FILE * (*rcsopen) (struct buf *, struct stat *, int); melunko@47: static char *e (p, i) melunko@47: char **p; melunko@47: int i; melunko@47: { melunko@47: return p[i]; melunko@47: } melunko@47: static char *f (char * (*g) (char **, int), char **p, ...) melunko@47: { melunko@47: char *s; melunko@47: va_list v; melunko@47: va_start (v,p); melunko@47: s = g (p, va_arg (v,int)); melunko@47: va_end (v); melunko@47: return s; melunko@47: } melunko@47: melunko@47: /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has melunko@47: function prototypes and stuff, but not '\xHH' hex character constants. melunko@47: These don't provoke an error unfortunately, instead are silently treated melunko@47: as 'x'. The following induces an error, until -std1 is added to get melunko@47: proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an melunko@47: array size at least. It's necessary to write '\x00'==0 to get something melunko@47: that's true only with -std1. */ melunko@47: int osf4_cc_array ['\x00' == 0 ? 1 : -1]; melunko@47: melunko@47: int test (int i, double x); melunko@47: struct s1 {int (*f) (int a);}; melunko@47: struct s2 {int (*f) (double a);}; melunko@47: int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); melunko@47: int argc; melunko@47: char **argv; melunko@47: int melunko@47: main () melunko@47: { melunko@47: return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; melunko@47: ; melunko@47: return 0; melunko@47: } melunko@47: _ACEOF melunko@47: # Don't try gcc -ansi; that turns off useful extensions and melunko@47: # breaks some systems' header files. melunko@47: # AIX -qlanglvl=ansi melunko@47: # Ultrix and OSF/1 -std1 melunko@47: # HP-UX 10.20 and later -Ae melunko@47: # HP-UX older versions -Aa -D_HPUX_SOURCE melunko@47: # SVR4 -Xc -D__EXTENSIONS__ melunko@47: for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" melunko@47: do melunko@47: CC="$ac_save_CC $ac_arg" melunko@47: rm -f conftest.$ac_objext melunko@47: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 melunko@47: (eval $ac_compile) 2>conftest.er1 melunko@47: ac_status=$? melunko@47: grep -v '^ *+' conftest.er1 >conftest.err melunko@47: rm -f conftest.er1 melunko@47: cat conftest.err >&5 melunko@47: echo "$as_me:$LINENO: \$? = $ac_status" >&5 melunko@47: (exit $ac_status); } && melunko@47: { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' melunko@47: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 melunko@47: (eval $ac_try) 2>&5 melunko@47: ac_status=$? melunko@47: echo "$as_me:$LINENO: \$? = $ac_status" >&5 melunko@47: (exit $ac_status); }; } && melunko@47: { ac_try='test -s conftest.$ac_objext' melunko@47: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 melunko@47: (eval $ac_try) 2>&5 melunko@47: ac_status=$? melunko@47: echo "$as_me:$LINENO: \$? = $ac_status" >&5 melunko@47: (exit $ac_status); }; }; then melunko@47: ac_cv_prog_cc_stdc=$ac_arg melunko@47: break melunko@47: else melunko@47: echo "$as_me: failed program was:" >&5 melunko@47: sed 's/^/| /' conftest.$ac_ext >&5 melunko@47: melunko@47: fi melunko@47: rm -f conftest.err conftest.$ac_objext melunko@47: done melunko@47: rm -f conftest.$ac_ext conftest.$ac_objext melunko@47: CC=$ac_save_CC melunko@47: melunko@47: fi melunko@47: melunko@47: case "x$ac_cv_prog_cc_stdc" in melunko@47: x|xno) melunko@47: echo "$as_me:$LINENO: result: none needed" >&5 melunko@47: echo "${ECHO_T}none needed" >&6 ;; melunko@47: *) melunko@47: echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 melunko@47: echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 melunko@47: CC="$CC $ac_cv_prog_cc_stdc" ;; melunko@47: esac melunko@47: melunko@47: # Some people use a C++ compiler to compile C. Since we use `exit', melunko@47: # in C++ we need to declare it. In case someone uses the same compiler melunko@47: # for both compiling C and C++ we need to have the C++ compiler decide melunko@47: # the declaration of exit, since it's the most demanding environment. melunko@47: cat >conftest.$ac_ext <<_ACEOF melunko@47: #ifndef __cplusplus melunko@47: choke me melunko@47: #endif melunko@47: _ACEOF melunko@47: rm -f conftest.$ac_objext melunko@47: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 melunko@47: (eval $ac_compile) 2>conftest.er1 melunko@47: ac_status=$? melunko@47: grep -v '^ *+' conftest.er1 >conftest.err melunko@47: rm -f conftest.er1 melunko@47: cat conftest.err >&5 melunko@47: echo "$as_me:$LINENO: \$? = $ac_status" >&5 melunko@47: (exit $ac_status); } && melunko@47: { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' melunko@47: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 melunko@47: (eval $ac_try) 2>&5 melunko@47: ac_status=$? melunko@47: echo "$as_me:$LINENO: \$? = $ac_status" >&5 melunko@47: (exit $ac_status); }; } && melunko@47: { ac_try='test -s conftest.$ac_objext' melunko@47: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 melunko@47: (eval $ac_try) 2>&5 melunko@47: ac_status=$? melunko@47: echo "$as_me:$LINENO: \$? = $ac_status" >&5 melunko@47: (exit $ac_status); }; }; then melunko@47: for ac_declaration in \ melunko@47: '' \ melunko@47: 'extern "C" void std::exit (int) throw (); using std::exit;' \ melunko@47: 'extern "C" void std::exit (int); using std::exit;' \ melunko@47: 'extern "C" void exit (int) throw ();' \ melunko@47: 'extern "C" void exit (int);' \ melunko@47: 'void exit (int);' melunko@47: do melunko@47: cat >conftest.$ac_ext <<_ACEOF melunko@47: /* confdefs.h. */ melunko@47: _ACEOF melunko@47: cat confdefs.h >>conftest.$ac_ext melunko@47: cat >>conftest.$ac_ext <<_ACEOF melunko@47: /* end confdefs.h. */ melunko@47: $ac_declaration melunko@47: #include melunko@47: int melunko@47: main () melunko@47: { melunko@47: exit (42); melunko@47: ; melunko@47: return 0; melunko@47: } melunko@47: _ACEOF melunko@47: rm -f conftest.$ac_objext melunko@47: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 melunko@47: (eval $ac_compile) 2>conftest.er1 melunko@47: ac_status=$? melunko@47: grep -v '^ *+' conftest.er1 >conftest.err melunko@47: rm -f conftest.er1 melunko@47: cat conftest.err >&5 melunko@47: echo "$as_me:$LINENO: \$? = $ac_status" >&5 melunko@47: (exit $ac_status); } && melunko@47: { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' melunko@47: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 melunko@47: (eval $ac_try) 2>&5 melunko@47: ac_status=$? melunko@47: echo "$as_me:$LINENO: \$? = $ac_status" >&5 melunko@47: (exit $ac_status); }; } && melunko@47: { ac_try='test -s conftest.$ac_objext' melunko@47: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 melunko@47: (eval $ac_try) 2>&5 melunko@47: ac_status=$? melunko@47: echo "$as_me:$LINENO: \$? = $ac_status" >&5 melunko@47: (exit $ac_status); }; }; then melunko@47: : melunko@47: else melunko@47: echo "$as_me: failed program was:" >&5 melunko@47: sed 's/^/| /' conftest.$ac_ext >&5 melunko@47: melunko@47: continue melunko@47: fi melunko@47: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext melunko@47: cat >conftest.$ac_ext <<_ACEOF melunko@47: /* confdefs.h. */ melunko@47: _ACEOF melunko@47: cat confdefs.h >>conftest.$ac_ext melunko@47: cat >>conftest.$ac_ext <<_ACEOF melunko@47: /* end confdefs.h. */ melunko@47: $ac_declaration melunko@47: int melunko@47: main () melunko@47: { melunko@47: exit (42); melunko@47: ; melunko@47: return 0; melunko@47: } melunko@47: _ACEOF melunko@47: rm -f conftest.$ac_objext melunko@47: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 melunko@47: (eval $ac_compile) 2>conftest.er1 melunko@47: ac_status=$? melunko@47: grep -v '^ *+' conftest.er1 >conftest.err melunko@47: rm -f conftest.er1 melunko@47: cat conftest.err >&5 melunko@47: echo "$as_me:$LINENO: \$? = $ac_status" >&5 melunko@47: (exit $ac_status); } && melunko@47: { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' melunko@47: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 melunko@47: (eval $ac_try) 2>&5 melunko@47: ac_status=$? melunko@47: echo "$as_me:$LINENO: \$? = $ac_status" >&5 melunko@47: (exit $ac_status); }; } && melunko@47: { ac_try='test -s conftest.$ac_objext' melunko@47: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 melunko@47: (eval $ac_try) 2>&5 melunko@47: ac_status=$? melunko@47: echo "$as_me:$LINENO: \$? = $ac_status" >&5 melunko@47: (exit $ac_status); }; }; then melunko@47: break melunko@47: else melunko@47: echo "$as_me: failed program was:" >&5 melunko@47: sed 's/^/| /' conftest.$ac_ext >&5 melunko@47: melunko@47: fi melunko@47: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext melunko@47: done melunko@47: rm -f conftest* melunko@47: if test -n "$ac_declaration"; then melunko@47: echo '#ifdef __cplusplus' >>confdefs.h melunko@47: echo $ac_declaration >>confdefs.h melunko@47: echo '#endif' >>confdefs.h melunko@47: fi melunko@47: melunko@47: else melunko@47: echo "$as_me: failed program was:" >&5 melunko@47: sed 's/^/| /' conftest.$ac_ext >&5 melunko@47: melunko@47: fi melunko@47: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext melunko@47: ac_ext=c melunko@47: ac_cpp='$CPP $CPPFLAGS' melunko@47: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' melunko@47: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' melunko@47: ac_compiler_gnu=$ac_cv_c_compiler_gnu melunko@47: melunko@47: depcc="$CC" am_compiler_list= melunko@47: melunko@47: echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 melunko@47: echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 melunko@47: if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then melunko@47: echo $ECHO_N "(cached) $ECHO_C" >&6 melunko@47: else melunko@47: if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then melunko@47: # We make a subdir and do the tests there. Otherwise we can end up melunko@47: # making bogus files that we don't know about and never remove. For melunko@47: # instance it was reported that on HP-UX the gcc test will end up melunko@47: # making a dummy file named `D' -- because `-MD' means `put the output melunko@47: # in D'. melunko@47: mkdir conftest.dir melunko@47: # Copy depcomp to subdir because otherwise we won't find it if we're melunko@47: # using a relative directory. melunko@47: cp "$am_depcomp" conftest.dir melunko@47: cd conftest.dir melunko@47: # We will build objects and dependencies in a subdirectory because melunko@47: # it helps to detect inapplicable dependency modes. For instance melunko@47: # both Tru64's cc and ICC support -MD to output dependencies as a melunko@47: # side effect of compilation, but ICC will put the dependencies in melunko@47: # the current directory while Tru64 will put them in the object melunko@47: # directory. melunko@47: mkdir sub melunko@47: melunko@47: am_cv_CC_dependencies_compiler_type=none melunko@47: if test "$am_compiler_list" = ""; then melunko@47: am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` melunko@47: fi melunko@47: for depmode in $am_compiler_list; do melunko@47: # Setup a source with many dependencies, because some compilers melunko@47: # like to wrap large dependency lists on column 80 (with \), and melunko@47: # we should not choose a depcomp mode which is confused by this. melunko@47: # melunko@47: # We need to recreate these files for each test, as the compiler may melunko@47: # overwrite some of them when testing with obscure command lines. melunko@47: # This happens at least with the AIX C compiler. melunko@47: : > sub/conftest.c melunko@47: for i in 1 2 3 4 5 6; do melunko@47: echo '#include "conftst'$i'.h"' >> sub/conftest.c melunko@47: # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with melunko@47: # Solaris 8's {/usr,}/bin/sh. melunko@47: touch sub/conftst$i.h melunko@47: done melunko@47: echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf melunko@47: melunko@47: case $depmode in melunko@47: nosideeffect) melunko@47: # after this tag, mechanisms are not by side-effect, so they'll melunko@47: # only be used when explicitly requested melunko@47: if test "x$enable_dependency_tracking" = xyes; then melunko@47: continue melunko@47: else melunko@47: break melunko@47: fi melunko@47: ;; melunko@47: none) break ;; melunko@47: esac melunko@47: # We check with `-c' and `-o' for the sake of the "dashmstdout" melunko@47: # mode. It turns out that the SunPro C++ compiler does not properly melunko@47: # handle `-M -o', and we need to detect this. melunko@47: if depmode=$depmode \ melunko@47: source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ melunko@47: depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ melunko@47: $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ melunko@47: >/dev/null 2>conftest.err && melunko@47: grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && melunko@47: grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && melunko@47: ${MAKE-make} -s -f confmf > /dev/null 2>&1; then melunko@47: # icc doesn't choke on unknown options, it will just issue warnings melunko@47: # or remarks (even with -Werror). So we grep stderr for any message melunko@47: # that says an option was ignored or not supported. melunko@47: # When given -MP, icc 7.0 and 7.1 complain thusly: melunko@47: # icc: Command line warning: ignoring option '-M'; no argument required melunko@47: # The diagnosis changed in icc 8.0: melunko@47: # icc: Command line remark: option '-MP' not supported melunko@47: if (grep 'ignoring option' conftest.err || melunko@47: grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else melunko@47: am_cv_CC_dependencies_compiler_type=$depmode melunko@47: break melunko@47: fi melunko@47: fi melunko@47: done melunko@47: melunko@47: cd .. melunko@47: rm -rf conftest.dir melunko@47: else melunko@47: am_cv_CC_dependencies_compiler_type=none melunko@47: fi melunko@47: melunko@47: fi melunko@47: echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 melunko@47: echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6 melunko@47: CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type melunko@47: melunko@47: melunko@47: melunko@47: if melunko@47: test "x$enable_dependency_tracking" != xno \ melunko@47: && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then melunko@47: am__fastdepCC_TRUE= melunko@47: am__fastdepCC_FALSE='#' melunko@47: else melunko@47: am__fastdepCC_TRUE='#' melunko@47: am__fastdepCC_FALSE= melunko@47: fi melunko@47: melunko@47: melunko@47: echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 melunko@47: echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6 melunko@47: if test "${lt_cv_path_SED+set}" = set; then melunko@47: echo $ECHO_N "(cached) $ECHO_C" >&6 melunko@47: else melunko@47: # Loop through the user's path and test for sed and gsed. melunko@47: # Then use that list of sed's as ones to test for truncation. melunko@47: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR melunko@47: for as_dir in $PATH melunko@47: do melunko@47: IFS=$as_save_IFS melunko@47: test -z "$as_dir" && as_dir=. melunko@47: for lt_ac_prog in sed gsed; do melunko@47: for ac_exec_ext in '' $ac_executable_extensions; do melunko@47: if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then melunko@47: lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" melunko@47: fi melunko@47: done melunko@47: done melunko@47: done melunko@47: lt_ac_max=0 melunko@47: lt_ac_count=0 melunko@47: # Add /usr/xpg4/bin/sed as it is typically found on Solaris melunko@47: # along with /bin/sed that truncates output. melunko@47: for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do melunko@47: test ! -f $lt_ac_sed && continue melunko@47: cat /dev/null > conftest.in melunko@47: lt_ac_count=0 melunko@47: echo $ECHO_N "0123456789$ECHO_C" >conftest.in melunko@47: # Check for GNU sed and select it if it is found. melunko@47: if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then melunko@47: lt_cv_path_SED=$lt_ac_sed melunko@47: break melunko@47: fi melunko@47: while true; do melunko@47: cat conftest.in conftest.in >conftest.tmp melunko@47: mv conftest.tmp conftest.in melunko@47: cp conftest.in conftest.nl melunko@47: echo >>conftest.nl melunko@47: $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break melunko@47: cmp -s conftest.out conftest.nl || break melunko@47: # 10000 chars as input seems more than enough melunko@47: test $lt_ac_count -gt 10 && break melunko@47: lt_ac_count=`expr $lt_ac_count + 1` melunko@47: if test $lt_ac_count -gt $lt_ac_max; then melunko@47: lt_ac_max=$lt_ac_count melunko@47: lt_cv_path_SED=$lt_ac_sed melunko@47: fi melunko@47: done melunko@47: done melunko@47: melunko@47: fi melunko@47: melunko@47: SED=$lt_cv_path_SED melunko@47: echo "$as_me:$LINENO: result: $SED" >&5 melunko@47: echo "${ECHO_T}$SED" >&6 melunko@47: melunko@47: echo "$as_me:$LINENO: checking for egrep" >&5 melunko@47: echo $ECHO_N "checking for egrep... $ECHO_C" >&6 melunko@47: if test "${ac_cv_prog_egrep+set}" = set; then melunko@47: echo $ECHO_N "(cached) $ECHO_C" >&6 melunko@47: else melunko@47: if echo a | (grep -E '(a|b)') >/dev/null 2>&1 melunko@47: then ac_cv_prog_egrep='grep -E' melunko@47: else ac_cv_prog_egrep='egrep' melunko@47: fi melunko@47: fi melunko@47: echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 melunko@47: echo "${ECHO_T}$ac_cv_prog_egrep" >&6 melunko@47: EGREP=$ac_cv_prog_egrep melunko@47: melunko@47: melunko@47: melunko@47: # Check whether --with-gnu-ld or --without-gnu-ld was given. melunko@47: if test "${with_gnu_ld+set}" = set; then melunko@47: withval="$with_gnu_ld" melunko@47: test "$withval" = no || with_gnu_ld=yes melunko@47: else melunko@47: with_gnu_ld=no melunko@47: fi; melunko@47: ac_prog=ld melunko@47: if test "$GCC" = yes; then melunko@47: # Check if gcc -print-prog-name=ld gives a path. melunko@47: echo "$as_me:$LINENO: checking for ld used by $CC" >&5 melunko@47: echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6 melunko@47: case $host in melunko@47: *-*-mingw*) melunko@47: # gcc leaves a trailing carriage return which upsets mingw melunko@47: ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; melunko@47: *) melunko@47: ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; melunko@47: esac melunko@47: case $ac_prog in melunko@47: # Accept absolute paths. melunko@47: [\\/]* | ?:[\\/]*) melunko@47: re_direlt='/[^/][^/]*/\.\./' melunko@47: # Canonicalize the pathname of ld melunko@47: ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` melunko@47: while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do melunko@47: ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` melunko@47: done melunko@47: test -z "$LD" && LD="$ac_prog" melunko@47: ;; melunko@47: "") melunko@47: # If it fails, then pretend we aren't using GCC. melunko@47: ac_prog=ld melunko@47: ;; melunko@47: *) melunko@47: # If it is relative, then search for the first ld in PATH. melunko@47: with_gnu_ld=unknown melunko@47: ;; melunko@47: esac melunko@47: elif test "$with_gnu_ld" = yes; then melunko@47: echo "$as_me:$LINENO: checking for GNU ld" >&5 melunko@47: echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 melunko@47: else melunko@47: echo "$as_me:$LINENO: checking for non-GNU ld" >&5 melunko@47: echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 melunko@47: fi melunko@47: if test "${lt_cv_path_LD+set}" = set; then melunko@47: echo $ECHO_N "(cached) $ECHO_C" >&6 melunko@47: else melunko@47: if test -z "$LD"; then melunko@47: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR melunko@47: for ac_dir in $PATH; do melunko@47: IFS="$lt_save_ifs" melunko@47: test -z "$ac_dir" && ac_dir=. melunko@47: if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then melunko@47: lt_cv_path_LD="$ac_dir/$ac_prog" melunko@47: # Check to see if the program is GNU ld. I'd rather use --version, melunko@47: # but apparently some variants of GNU ld only accept -v. melunko@47: # Break only if it was the GNU/non-GNU ld that we prefer. melunko@47: case `"$lt_cv_path_LD" -v 2>&1 &5 melunko@47: echo "${ECHO_T}$LD" >&6 melunko@47: else melunko@47: echo "$as_me:$LINENO: result: no" >&5 melunko@47: echo "${ECHO_T}no" >&6 melunko@47: fi melunko@47: test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 melunko@47: echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} melunko@47: { (exit 1); exit 1; }; } melunko@47: echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 melunko@47: echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 melunko@47: if test "${lt_cv_prog_gnu_ld+set}" = set; then melunko@47: echo $ECHO_N "(cached) $ECHO_C" >&6 melunko@47: else melunko@47: # I'd rather use --version here, but apparently some GNU lds only accept -v. melunko@47: case `$LD -v 2>&1 &5 melunko@47: echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 melunko@47: with_gnu_ld=$lt_cv_prog_gnu_ld melunko@47: melunko@47: melunko@47: echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 melunko@47: echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6 melunko@47: if test "${lt_cv_ld_reload_flag+set}" = set; then melunko@47: echo $ECHO_N "(cached) $ECHO_C" >&6 melunko@47: else melunko@47: lt_cv_ld_reload_flag='-r' melunko@47: fi melunko@47: echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 melunko@47: echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6 melunko@47: reload_flag=$lt_cv_ld_reload_flag melunko@47: case $reload_flag in melunko@47: "" | " "*) ;; melunko@47: *) reload_flag=" $reload_flag" ;; melunko@47: esac melunko@47: reload_cmds='$LD$reload_flag -o $output$reload_objs' melunko@47: case $host_os in melunko@47: darwin*) melunko@47: if test "$GCC" = yes; then melunko@47: reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs' melunko@47: else melunko@47: reload_cmds='$LD$reload_flag -o $output$reload_objs' melunko@47: fi melunko@47: ;; melunko@47: esac melunko@47: melunko@47: echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 melunko@47: echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6 melunko@47: if test "${lt_cv_path_NM+set}" = set; then melunko@47: echo $ECHO_N "(cached) $ECHO_C" >&6 melunko@47: else melunko@47: if test -n "$NM"; then melunko@47: # Let the user override the test. melunko@47: lt_cv_path_NM="$NM" melunko@47: else melunko@47: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR melunko@47: for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do melunko@47: IFS="$lt_save_ifs" melunko@47: test -z "$ac_dir" && ac_dir=. melunko@47: tmp_nm="$ac_dir/${ac_tool_prefix}nm" melunko@47: if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then melunko@47: # Check to see if the nm accepts a BSD-compat flag. melunko@47: # Adding the `sed 1q' prevents false positives on HP-UX, which says: melunko@47: # nm: unknown option "B" ignored melunko@47: # Tru64's nm complains that /dev/null is an invalid object file melunko@47: case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in melunko@47: */dev/null* | *'Invalid file or object type'*) melunko@47: lt_cv_path_NM="$tmp_nm -B" melunko@47: break melunko@47: ;; melunko@47: *) melunko@47: case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in melunko@47: */dev/null*) melunko@47: lt_cv_path_NM="$tmp_nm -p" melunko@47: break melunko@47: ;; melunko@47: *) melunko@47: lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but melunko@47: continue # so that we can try to find one that supports BSD flags melunko@47: ;; melunko@47: esac melunko@47: esac melunko@47: fi melunko@47: done melunko@47: IFS="$lt_save_ifs" melunko@47: test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm melunko@47: fi melunko@47: fi melunko@47: echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 melunko@47: echo "${ECHO_T}$lt_cv_path_NM" >&6 melunko@47: NM="$lt_cv_path_NM" melunko@47: melunko@47: echo "$as_me:$LINENO: checking whether ln -s works" >&5 melunko@47: echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 melunko@47: LN_S=$as_ln_s melunko@47: if test "$LN_S" = "ln -s"; then melunko@47: echo "$as_me:$LINENO: result: yes" >&5 melunko@47: echo "${ECHO_T}yes" >&6 melunko@47: else melunko@47: echo "$as_me:$LINENO: result: no, using $LN_S" >&5 melunko@47: echo "${ECHO_T}no, using $LN_S" >&6 melunko@47: fi melunko@47: melunko@47: echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5 melunko@47: echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6 melunko@47: if test "${lt_cv_deplibs_check_method+set}" = set; then melunko@47: echo $ECHO_N "(cached) $ECHO_C" >&6 melunko@47: else melunko@47: lt_cv_file_magic_cmd='$MAGIC_CMD' melunko@47: lt_cv_file_magic_test_file= melunko@47: lt_cv_deplibs_check_method='unknown' melunko@47: # Need to set the preceding variable on all platforms that support melunko@47: # interlibrary dependencies. melunko@47: # 'none' -- dependencies not supported. melunko@47: # `unknown' -- same as none, but documents that we really don't know. melunko@47: # 'pass_all' -- all dependencies passed with no checks. melunko@47: # 'test_compile' -- check by making test program. melunko@47: # 'file_magic [[regex]]' -- check by looking for files in library path melunko@47: # which responds to the $file_magic_cmd with a given extended regex. melunko@47: # If you have `file' or equivalent on your system and you're not sure melunko@47: # whether `pass_all' will *always* work, you probably want this one. melunko@47: melunko@47: case $host_os in melunko@47: aix4* | aix5*) melunko@47: lt_cv_deplibs_check_method=pass_all melunko@47: ;; melunko@47: melunko@47: beos*) melunko@47: lt_cv_deplibs_check_method=pass_all melunko@47: ;; melunko@47: melunko@47: bsdi[45]*) melunko@47: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' melunko@47: lt_cv_file_magic_cmd='/usr/bin/file -L' melunko@47: lt_cv_file_magic_test_file=/shlib/libc.so melunko@47: ;; melunko@47: melunko@47: cygwin*) melunko@47: # func_win32_libid is a shell function defined in ltmain.sh melunko@47: lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' melunko@47: lt_cv_file_magic_cmd='func_win32_libid' melunko@47: ;; melunko@47: melunko@47: mingw* | pw32*) melunko@47: # Base MSYS/MinGW do not provide the 'file' command needed by melunko@47: # func_win32_libid shell function, so use a weaker test based on 'objdump'. melunko@47: lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' melunko@47: lt_cv_file_magic_cmd='$OBJDUMP -f' melunko@47: ;; melunko@47: melunko@47: darwin* | rhapsody*) melunko@47: lt_cv_deplibs_check_method=pass_all melunko@47: ;; melunko@47: melunko@47: freebsd* | kfreebsd*-gnu | dragonfly*) melunko@47: if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then melunko@47: case $host_cpu in melunko@47: i*86 ) melunko@47: # Not sure whether the presence of OpenBSD here was a mistake. melunko@47: # Let's accept both of them until this is cleared up. melunko@47: lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' melunko@47: lt_cv_file_magic_cmd=/usr/bin/file melunko@47: lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` melunko@47: ;; melunko@47: esac melunko@47: else melunko@47: lt_cv_deplibs_check_method=pass_all melunko@47: fi melunko@47: ;; melunko@47: melunko@47: gnu*) melunko@47: lt_cv_deplibs_check_method=pass_all melunko@47: ;; melunko@47: melunko@47: hpux10.20* | hpux11*) melunko@47: lt_cv_file_magic_cmd=/usr/bin/file melunko@47: case $host_cpu in melunko@47: ia64*) melunko@47: lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' melunko@47: lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so melunko@47: ;; melunko@47: hppa*64*) melunko@47: 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]' melunko@47: lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl melunko@47: ;; melunko@47: *) melunko@47: lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' melunko@47: lt_cv_file_magic_test_file=/usr/lib/libc.sl melunko@47: ;; melunko@47: esac melunko@47: ;; melunko@47: melunko@47: irix5* | irix6* | nonstopux*) melunko@47: case $LD in melunko@47: *-32|*"-32 ") libmagic=32-bit;; melunko@47: *-n32|*"-n32 ") libmagic=N32;; melunko@47: *-64|*"-64 ") libmagic=64-bit;; melunko@47: *) libmagic=never-match;; melunko@47: esac melunko@47: lt_cv_deplibs_check_method=pass_all melunko@47: ;; melunko@47: melunko@47: # This must be Linux ELF. melunko@47: linux*) melunko@47: lt_cv_deplibs_check_method=pass_all melunko@47: ;; melunko@47: melunko@47: netbsd*) melunko@47: if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then melunko@47: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' melunko@47: else melunko@47: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' melunko@47: fi melunko@47: ;; melunko@47: melunko@47: newos6*) melunko@47: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' melunko@47: lt_cv_file_magic_cmd=/usr/bin/file melunko@47: lt_cv_file_magic_test_file=/usr/lib/libnls.so melunko@47: ;; melunko@47: melunko@47: nto-qnx*) melunko@47: lt_cv_deplibs_check_method=unknown melunko@47: ;; melunko@47: melunko@47: openbsd*) melunko@47: if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then melunko@47: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' melunko@47: else melunko@47: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' melunko@47: fi melunko@47: ;; melunko@47: melunko@47: osf3* | osf4* | osf5*) melunko@47: lt_cv_deplibs_check_method=pass_all melunko@47: ;; melunko@47: melunko@47: sco3.2v5*) melunko@47: lt_cv_deplibs_check_method=pass_all melunko@47: ;; melunko@47: melunko@47: solaris*) melunko@47: lt_cv_deplibs_check_method=pass_all melunko@47: ;; melunko@47: melunko@47: sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) melunko@47: case $host_vendor in melunko@47: motorola) melunko@47: 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]' melunko@47: lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` melunko@47: ;; melunko@47: ncr) melunko@47: lt_cv_deplibs_check_method=pass_all melunko@47: ;; melunko@47: sequent) melunko@47: lt_cv_file_magic_cmd='/bin/file' melunko@47: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' melunko@47: ;; melunko@47: sni) melunko@47: lt_cv_file_magic_cmd='/bin/file' melunko@47: lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" melunko@47: lt_cv_file_magic_test_file=/lib/libc.so melunko@47: ;; melunko@47: siemens) melunko@47: lt_cv_deplibs_check_method=pass_all melunko@47: ;; melunko@47: esac melunko@47: ;; melunko@47: melunko@47: sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*) melunko@47: lt_cv_deplibs_check_method=pass_all melunko@47: ;; melunko@47: esac melunko@47: melunko@47: fi melunko@47: echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 melunko@47: echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6 melunko@47: file_magic_cmd=$lt_cv_file_magic_cmd melunko@47: deplibs_check_method=$lt_cv_deplibs_check_method melunko@47: test -z "$deplibs_check_method" && deplibs_check_method=unknown melunko@47: melunko@47: melunko@47: melunko@47: melunko@47: # If no C compiler was specified, use CC. melunko@47: LTCC=${LTCC-"$CC"} melunko@47: melunko@47: # Allow CC to be a program name with arguments. melunko@47: compiler=$CC melunko@47: melunko@47: melunko@47: # Check whether --enable-libtool-lock or --disable-libtool-lock was given. melunko@47: if test "${enable_libtool_lock+set}" = set; then melunko@47: enableval="$enable_libtool_lock" melunko@47: melunko@47: fi; melunko@47: test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes melunko@47: melunko@47: # Some flags need to be propagated to the compiler or linker for good melunko@47: # libtool support. melunko@47: case $host in melunko@47: ia64-*-hpux*) melunko@47: # Find out which ABI we are using. melunko@47: echo 'int i;' > conftest.$ac_ext melunko@47: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 melunko@47: (eval $ac_compile) 2>&5 melunko@47: ac_status=$? melunko@47: echo "$as_me:$LINENO: \$? = $ac_status" >&5 melunko@47: (exit $ac_status); }; then melunko@47: case `/usr/bin/file conftest.$ac_objext` in melunko@47: *ELF-32*) melunko@47: HPUX_IA64_MODE="32" melunko@47: ;; melunko@47: *ELF-64*) melunko@47: HPUX_IA64_MODE="64" melunko@47: ;; melunko@47: esac melunko@47: fi melunko@47: rm -rf conftest* melunko@47: ;; melunko@47: *-*-irix6*) melunko@47: # Find out which ABI we are using. melunko@47: echo '#line 3760 "configure"' > conftest.$ac_ext melunko@47: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 melunko@47: (eval $ac_compile) 2>&5 melunko@47: ac_status=$? melunko@47: echo "$as_me:$LINENO: \$? = $ac_status" >&5 melunko@47: (exit $ac_status); }; then melunko@47: if test "$lt_cv_prog_gnu_ld" = yes; then melunko@47: case `/usr/bin/file conftest.$ac_objext` in melunko@47: *32-bit*) melunko@47: LD="${LD-ld} -melf32bsmip" melunko@47: ;; melunko@47: *N32*) melunko@47: LD="${LD-ld} -melf32bmipn32" melunko@47: ;; melunko@47: *64-bit*) melunko@47: LD="${LD-ld} -melf64bmip" melunko@47: ;; melunko@47: esac melunko@47: else melunko@47: case `/usr/bin/file conftest.$ac_objext` in melunko@47: *32-bit*) melunko@47: LD="${LD-ld} -32" melunko@47: ;; melunko@47: *N32*) melunko@47: LD="${LD-ld} -n32" melunko@47: ;; melunko@47: *64-bit*) melunko@47: LD="${LD-ld} -64" melunko@47: ;; melunko@47: esac melunko@47: fi melunko@47: fi melunko@47: rm -rf conftest* melunko@47: ;; melunko@47: melunko@47: x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*) melunko@47: # Find out which ABI we are using. melunko@47: echo 'int i;' > conftest.$ac_ext melunko@47: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 melunko@47: (eval $ac_compile) 2>&5 melunko@47: ac_status=$? melunko@47: echo "$as_me:$LINENO: \$? = $ac_status" >&5 melunko@47: (exit $ac_status); }; then melunko@47: case `/usr/bin/file conftest.o` in melunko@47: *32-bit*) melunko@47: case $host in melunko@47: x86_64-*linux*) melunko@47: LD="${LD-ld} -m elf_i386" melunko@47: ;; melunko@47: ppc64-*linux*|powerpc64-*linux*) melunko@47: LD="${LD-ld} -m elf32ppclinux" melunko@47: ;; melunko@47: s390x-*linux*) melunko@47: LD="${LD-ld} -m elf_s390" melunko@47: ;; melunko@47: sparc64-*linux*) melunko@47: LD="${LD-ld} -m elf32_sparc" melunko@47: ;; melunko@47: esac melunko@47: ;; melunko@47: *64-bit*) melunko@47: case $host in melunko@47: x86_64-*linux*) melunko@47: LD="${LD-ld} -m elf_x86_64" melunko@47: ;; melunko@47: ppc*-*linux*|powerpc*-*linux*) melunko@47: LD="${LD-ld} -m elf64ppc" melunko@47: ;; melunko@47: s390*-*linux*) melunko@47: LD="${LD-ld} -m elf64_s390" melunko@47: ;; melunko@47: sparc*-*linux*) melunko@47: LD="${LD-ld} -m elf64_sparc" melunko@47: ;; melunko@47: esac melunko@47: ;; melunko@47: esac melunko@47: fi melunko@47: rm -rf conftest* melunko@47: ;; melunko@47: melunko@47: *-*-sco3.2v5*) melunko@47: # On SCO OpenServer 5, we need -belf to get full-featured binaries. melunko@47: SAVE_CFLAGS="$CFLAGS" melunko@47: CFLAGS="$CFLAGS -belf" melunko@47: echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 melunko@47: echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6 melunko@47: if test "${lt_cv_cc_needs_belf+set}" = set; then melunko@47: echo $ECHO_N "(cached) $ECHO_C" >&6 melunko@47: else melunko@47: ac_ext=c melunko@47: ac_cpp='$CPP $CPPFLAGS' melunko@47: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' melunko@47: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' melunko@47: ac_compiler_gnu=$ac_cv_c_compiler_gnu melunko@47: melunko@47: cat >conftest.$ac_ext <<_ACEOF melunko@47: /* confdefs.h. */ melunko@47: _ACEOF melunko@47: cat confdefs.h >>conftest.$ac_ext melunko@47: cat >>conftest.$ac_ext <<_ACEOF melunko@47: /* end confdefs.h. */ melunko@47: melunko@47: int melunko@47: main () melunko@47: { melunko@47: melunko@47: ; melunko@47: return 0; melunko@47: } melunko@47: _ACEOF melunko@47: rm -f conftest.$ac_objext conftest$ac_exeext melunko@47: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 melunko@47: (eval $ac_link) 2>conftest.er1 melunko@47: ac_status=$? melunko@47: grep -v '^ *+' conftest.er1 >conftest.err melunko@47: rm -f conftest.er1 melunko@47: cat conftest.err >&5 melunko@47: echo "$as_me:$LINENO: \$? = $ac_status" >&5 melunko@47: (exit $ac_status); } && melunko@47: { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' melunko@47: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 melunko@47: (eval $ac_try) 2>&5 melunko@47: ac_status=$? melunko@47: echo "$as_me:$LINENO: \$? = $ac_status" >&5 melunko@47: (exit $ac_status); }; } && melunko@47: { ac_try='test -s conftest$ac_exeext' melunko@47: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 melunko@47: (eval $ac_try) 2>&5 melunko@47: ac_status=$? melunko@47: echo "$as_me:$LINENO: \$? = $ac_status" >&5 melunko@47: (exit $ac_status); }; }; then melunko@47: lt_cv_cc_needs_belf=yes melunko@47: else melunko@47: echo "$as_me: failed program was:" >&5 melunko@47: sed 's/^/| /' conftest.$ac_ext >&5 melunko@47: melunko@47: lt_cv_cc_needs_belf=no melunko@47: fi melunko@47: rm -f conftest.err conftest.$ac_objext \ melunko@47: conftest$ac_exeext conftest.$ac_ext melunko@47: ac_ext=c melunko@47: ac_cpp='$CPP $CPPFLAGS' melunko@47: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' melunko@47: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' melunko@47: ac_compiler_gnu=$ac_cv_c_compiler_gnu melunko@47: melunko@47: fi melunko@47: echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 melunko@47: echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6 melunko@47: if test x"$lt_cv_cc_needs_belf" != x"yes"; then melunko@47: # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf melunko@47: CFLAGS="$SAVE_CFLAGS" melunko@47: fi melunko@47: ;; melunko@47: melunko@47: esac melunko@47: melunko@47: need_locks="$enable_libtool_lock" melunko@47: melunko@47: melunko@47: ac_ext=c melunko@47: ac_cpp='$CPP $CPPFLAGS' melunko@47: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' melunko@47: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' melunko@47: ac_compiler_gnu=$ac_cv_c_compiler_gnu melunko@47: echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 melunko@47: echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 melunko@47: # On Suns, sometimes $CPP names a directory. melunko@47: if test -n "$CPP" && test -d "$CPP"; then melunko@47: CPP= melunko@47: fi melunko@47: if test -z "$CPP"; then melunko@47: if test "${ac_cv_prog_CPP+set}" = set; then melunko@47: echo $ECHO_N "(cached) $ECHO_C" >&6 melunko@47: else melunko@47: # Double quotes because CPP needs to be expanded melunko@47: for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" melunko@47: do melunko@47: ac_preproc_ok=false melunko@47: for ac_c_preproc_warn_flag in '' yes melunko@47: do melunko@47: # Use a header file that comes with gcc, so configuring glibc melunko@47: # with a fresh cross-compiler works. melunko@47: # Prefer to if __STDC__ is defined, since melunko@47: # exists even on freestanding compilers. melunko@47: # On the NeXT, cc -E runs the code through the compiler's parser, melunko@47: # not just through cpp. "Syntax error" is here to catch this case. melunko@47: cat >conftest.$ac_ext <<_ACEOF melunko@47: /* confdefs.h. */ melunko@47: _ACEOF melunko@47: cat confdefs.h >>conftest.$ac_ext melunko@47: cat >>conftest.$ac_ext <<_ACEOF melunko@47: /* end confdefs.h. */ melunko@47: #ifdef __STDC__ melunko@47: # include melunko@47: #else melunko@47: # include melunko@47: #endif melunko@47: Syntax error melunko@47: _ACEOF melunko@47: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 melunko@47: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 melunko@47: ac_status=$? melunko@47: grep -v '^ *+' conftest.er1 >conftest.err melunko@47: rm -f conftest.er1 melunko@47: cat conftest.err >&5 melunko@47: echo "$as_me:$LINENO: \$? = $ac_status" >&5 melunko@47: (exit $ac_status); } >/dev/null; then melunko@47: if test -s conftest.err; then melunko@47: ac_cpp_err=$ac_c_preproc_warn_flag melunko@47: ac_cpp_err=$ac_cpp_err$ac_c_werror_flag melunko@47: else melunko@47: ac_cpp_err= melunko@47: fi melunko@47: else melunko@47: ac_cpp_err=yes melunko@47: fi melunko@47: if test -z "$ac_cpp_err"; then melunko@47: : melunko@47: else melunko@47: echo "$as_me: failed program was:" >&5 melunko@47: sed 's/^/| /' conftest.$ac_ext >&5 melunko@47: melunko@47: # Broken: fails on valid input. melunko@47: continue melunko@47: fi melunko@47: rm -f conftest.err conftest.$ac_ext melunko@47: melunko@47: # OK, works on sane cases. Now check whether non-existent headers melunko@47: # can be detected and how. melunko@47: cat >conftest.$ac_ext <<_ACEOF melunko@47: /* confdefs.h. */ melunko@47: _ACEOF melunko@47: cat confdefs.h >>conftest.$ac_ext melunko@47: cat >>conftest.$ac_ext <<_ACEOF melunko@47: /* end confdefs.h. */ melunko@47: #include melunko@47: _ACEOF melunko@47: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 melunko@47: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 melunko@47: ac_status=$? melunko@47: grep -v '^ *+' conftest.er1 >conftest.err melunko@47: rm -f conftest.er1 melunko@47: cat conftest.err >&5 melunko@47: echo "$as_me:$LINENO: \$? = $ac_status" >&5 melunko@47: (exit $ac_status); } >/dev/null; then melunko@47: if test -s conftest.err; then melunko@47: ac_cpp_err=$ac_c_preproc_warn_flag melunko@47: ac_cpp_err=$ac_cpp_err$ac_c_werror_flag melunko@47: else melunko@47: ac_cpp_err= melunko@47: fi melunko@47: else melunko@47: ac_cpp_err=yes melunko@47: fi melunko@47: if test -z "$ac_cpp_err"; then melunko@47: # Broken: success on invalid input. melunko@47: continue melunko@47: else melunko@47: echo "$as_me: failed program was:" >&5 melunko@47: sed 's/^/| /' conftest.$ac_ext >&5 melunko@47: melunko@47: # Passes both tests. melunko@47: ac_preproc_ok=: melunko@47: break melunko@47: fi melunko@47: rm -f conftest.err conftest.$ac_ext melunko@47: melunko@47: done melunko@47: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. melunko@47: rm -f conftest.err conftest.$ac_ext melunko@47: if $ac_preproc_ok; then melunko@47: break melunko@47: fi melunko@47: melunko@47: done melunko@47: ac_cv_prog_CPP=$CPP melunko@47: melunko@47: fi melunko@47: CPP=$ac_cv_prog_CPP melunko@47: else melunko@47: ac_cv_prog_CPP=$CPP melunko@47: fi melunko@47: echo "$as_me:$LINENO: result: $CPP" >&5 melunko@47: echo "${ECHO_T}$CPP" >&6 melunko@47: ac_preproc_ok=false melunko@47: for ac_c_preproc_warn_flag in '' yes melunko@47: do melunko@47: # Use a header file that comes with gcc, so configuring glibc melunko@47: # with a fresh cross-compiler works. melunko@47: # Prefer to if __STDC__ is defined, since melunko@47: # exists even on freestanding compilers. melunko@47: # On the NeXT, cc -E runs the code through the compiler's parser, melunko@47: # not just through cpp. "Syntax error" is here to catch this case. melunko@47: cat >conftest.$ac_ext <<_ACEOF melunko@47: /* confdefs.h. */ melunko@47: _ACEOF melunko@47: cat confdefs.h >>conftest.$ac_ext melunko@47: cat >>conftest.$ac_ext <<_ACEOF melunko@47: /* end confdefs.h. */ melunko@47: #ifdef __STDC__ melunko@47: # include melunko@47: #else melunko@47: # include melunko@47: #endif melunko@47: Syntax error melunko@47: _ACEOF melunko@47: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 melunko@47: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 melunko@47: ac_status=$? melunko@47: grep -v '^ *+' conftest.er1 >conftest.err melunko@47: rm -f conftest.er1 melunko@47: cat conftest.err >&5 melunko@47: echo "$as_me:$LINENO: \$? = $ac_status" >&5 melunko@47: (exit $ac_status); } >/dev/null; then melunko@47: if test -s conftest.err; then melunko@47: ac_cpp_err=$ac_c_preproc_warn_flag melunko@47: ac_cpp_err=$ac_cpp_err$ac_c_werror_flag melunko@47: else melunko@47: ac_cpp_err= melunko@47: fi melunko@47: else melunko@47: ac_cpp_err=yes melunko@47: fi melunko@47: if test -z "$ac_cpp_err"; then melunko@47: : melunko@47: else melunko@47: echo "$as_me: failed program was:" >&5 melunko@47: sed 's/^/| /' conftest.$ac_ext >&5 melunko@47: melunko@47: # Broken: fails on valid input. melunko@47: continue melunko@47: fi melunko@47: rm -f conftest.err conftest.$ac_ext melunko@47: melunko@47: # OK, works on sane cases. Now check whether non-existent headers melunko@47: # can be detected and how. melunko@47: cat >conftest.$ac_ext <<_ACEOF melunko@47: /* confdefs.h. */ melunko@47: _ACEOF melunko@47: cat confdefs.h >>conftest.$ac_ext melunko@47: cat >>conftest.$ac_ext <<_ACEOF melunko@47: /* end confdefs.h. */ melunko@47: #include melunko@47: _ACEOF melunko@47: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 melunko@47: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 melunko@47: ac_status=$? melunko@47: grep -v '^ *+' conftest.er1 >conftest.err melunko@47: rm -f conftest.er1 melunko@47: cat conftest.err >&5 melunko@47: echo "$as_me:$LINENO: \$? = $ac_status" >&5 melunko@47: (exit $ac_status); } >/dev/null; then melunko@47: if test -s conftest.err; then melunko@47: ac_cpp_err=$ac_c_preproc_warn_flag melunko@47: ac_cpp_err=$ac_cpp_err$ac_c_werror_flag melunko@47: else melunko@47: ac_cpp_err= melunko@47: fi melunko@47: else melunko@47: ac_cpp_err=yes melunko@47: fi melunko@47: if test -z "$ac_cpp_err"; then melunko@47: # Broken: success on invalid input. melunko@47: continue melunko@47: else melunko@47: echo "$as_me: failed program was:" >&5 melunko@47: sed 's/^/| /' conftest.$ac_ext >&5 melunko@47: melunko@47: # Passes both tests. melunko@47: ac_preproc_ok=: melunko@47: break melunko@47: fi melunko@47: rm -f conftest.err conftest.$ac_ext melunko@47: melunko@47: done melunko@47: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. melunko@47: rm -f conftest.err conftest.$ac_ext melunko@47: if $ac_preproc_ok; then melunko@47: : melunko@47: else melunko@47: { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check melunko@47: See \`config.log' for more details." >&5 melunko@47: echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check melunko@47: See \`config.log' for more details." >&2;} melunko@47: { (exit 1); exit 1; }; } melunko@47: fi melunko@47: melunko@47: ac_ext=c melunko@47: ac_cpp='$CPP $CPPFLAGS' melunko@47: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' melunko@47: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' melunko@47: ac_compiler_gnu=$ac_cv_c_compiler_gnu melunko@47: melunko@47: melunko@47: echo "$as_me:$LINENO: checking for ANSI C header files" >&5 melunko@47: echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 melunko@47: if test "${ac_cv_header_stdc+set}" = set; then melunko@47: echo $ECHO_N "(cached) $ECHO_C" >&6 melunko@47: else melunko@47: cat >conftest.$ac_ext <<_ACEOF melunko@47: /* confdefs.h. */ melunko@47: _ACEOF melunko@47: cat confdefs.h >>conftest.$ac_ext melunko@47: cat >>conftest.$ac_ext <<_ACEOF melunko@47: /* end confdefs.h. */ melunko@47: #include melunko@47: #include melunko@47: #include melunko@47: #include melunko@47: melunko@47: int melunko@47: main () melunko@47: { melunko@47: melunko@47: ; melunko@47: return 0; melunko@47: } melunko@47: _ACEOF melunko@47: rm -f conftest.$ac_objext melunko@47: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 melunko@47: (eval $ac_compile) 2>conftest.er1 melunko@47: ac_status=$? melunko@47: grep -v '^ *+' conftest.er1 >conftest.err melunko@47: rm -f conftest.er1 melunko@47: cat conftest.err >&5 melunko@47: echo "$as_me:$LINENO: \$? = $ac_status" >&5 melunko@47: (exit $ac_status); } && melunko@47: { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' melunko@47: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 melunko@47: (eval $ac_try) 2>&5 melunko@47: ac_status=$? melunko@47: echo "$as_me:$LINENO: \$? = $ac_status" >&5 melunko@47: (exit $ac_status); }; } && melunko@47: { ac_try='test -s conftest.$ac_objext' melunko@47: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 melunko@47: (eval $ac_try) 2>&5 melunko@47: ac_status=$? melunko@47: echo "$as_me:$LINENO: \$? = $ac_status" >&5 melunko@47: (exit $ac_status); }; }; then melunko@47: ac_cv_header_stdc=yes melunko@47: else melunko@47: echo "$as_me: failed program was:" >&5 melunko@47: sed 's/^/| /' conftest.$ac_ext >&5 melunko@47: melunko@47: ac_cv_header_stdc=no melunko@47: fi melunko@47: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext melunko@47: melunko@47: if test $ac_cv_header_stdc = yes; then melunko@47: # SunOS 4.x string.h does not declare mem*, contrary to ANSI. melunko@47: cat >conftest.$ac_ext <<_ACEOF melunko@47: /* confdefs.h. */ melunko@47: _ACEOF melunko@47: cat confdefs.h >>conftest.$ac_ext melunko@47: cat >>conftest.$ac_ext <<_ACEOF melunko@47: /* end confdefs.h. */ melunko@47: #include melunko@47: melunko@47: _ACEOF melunko@47: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | melunko@47: $EGREP "memchr" >/dev/null 2>&1; then melunko@47: : melunko@47: else melunko@47: ac_cv_header_stdc=no melunko@47: fi melunko@47: rm -f conftest* melunko@47: melunko@47: fi melunko@47: melunko@47: if test $ac_cv_header_stdc = yes; then melunko@47: # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. melunko@47: cat >conftest.$ac_ext <<_ACEOF melunko@47: /* confdefs.h. */ melunko@47: _ACEOF melunko@47: cat confdefs.h >>conftest.$ac_ext melunko@47: cat >>conftest.$ac_ext <<_ACEOF melunko@47: /* end confdefs.h. */ melunko@47: #include melunko@47: melunko@47: _ACEOF melunko@47: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | melunko@47: $EGREP "free" >/dev/null 2>&1; then melunko@47: : melunko@47: else melunko@47: ac_cv_header_stdc=no melunko@47: fi melunko@47: rm -f conftest* melunko@47: melunko@47: fi melunko@47: melunko@47: if test $ac_cv_header_stdc = yes; then melunko@47: # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. melunko@47: if test "$cross_compiling" = yes; then melunko@47: : melunko@47: else melunko@47: cat >conftest.$ac_ext <<_ACEOF melunko@47: /* confdefs.h. */ melunko@47: _ACEOF melunko@47: cat confdefs.h >>conftest.$ac_ext melunko@47: cat >>conftest.$ac_ext <<_ACEOF melunko@47: /* end confdefs.h. */ melunko@47: #include melunko@47: #if ((' ' & 0x0FF) == 0x020) melunko@47: # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') melunko@47: # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) melunko@47: #else melunko@47: # define ISLOWER(c) \ melunko@47: (('a' <= (c) && (c) <= 'i') \ melunko@47: || ('j' <= (c) && (c) <= 'r') \ melunko@47: || ('s' <= (c) && (c) <= 'z')) melunko@47: # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) melunko@47: #endif melunko@47: melunko@47: #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) melunko@47: int melunko@47: main () melunko@47: { melunko@47: int i; melunko@47: for (i = 0; i < 256; i++) melunko@47: if (XOR (islower (i), ISLOWER (i)) melunko@47: || toupper (i) != TOUPPER (i)) melunko@47: exit(2); melunko@47: exit (0); melunko@47: } melunko@47: _ACEOF melunko@47: rm -f conftest$ac_exeext melunko@47: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 melunko@47: (eval $ac_link) 2>&5 melunko@47: ac_status=$? melunko@47: echo "$as_me:$LINENO: \$? = $ac_status" >&5 melunko@47: (exit $ac_status); } && { ac_try='./conftest$ac_exeext' melunko@47: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 melunko@47: (eval $ac_try) 2>&5 melunko@47: ac_status=$? melunko@47: echo "$as_me:$LINENO: \$? = $ac_status" >&5 melunko@47: (exit $ac_status); }; }; then melunko@47: : melunko@47: else melunko@47: echo "$as_me: program exited with status $ac_status" >&5 melunko@47: echo "$as_me: failed program was:" >&5 melunko@47: sed 's/^/| /' conftest.$ac_ext >&5 melunko@47: melunko@47: ( exit $ac_status ) melunko@47: ac_cv_header_stdc=no melunko@47: fi melunko@47: rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext melunko@47: fi melunko@47: fi melunko@47: fi melunko@47: echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 melunko@47: echo "${ECHO_T}$ac_cv_header_stdc" >&6 melunko@47: if test $ac_cv_header_stdc = yes; then melunko@47: melunko@47: cat >>confdefs.h <<\_ACEOF melunko@47: #define STDC_HEADERS 1 melunko@47: _ACEOF melunko@47: melunko@47: fi melunko@47: melunko@47: # On IRIX 5.3, sys/types and inttypes.h are conflicting. melunko@47: melunko@47: melunko@47: melunko@47: melunko@47: melunko@47: melunko@47: melunko@47: melunko@47: melunko@47: for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ melunko@47: inttypes.h stdint.h unistd.h melunko@47: do melunko@47: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` melunko@47: echo "$as_me:$LINENO: checking for $ac_header" >&5 melunko@47: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 melunko@47: if eval "test \"\${$as_ac_Header+set}\" = set"; then melunko@47: echo $ECHO_N "(cached) $ECHO_C" >&6 melunko@47: else melunko@47: cat >conftest.$ac_ext <<_ACEOF melunko@47: /* confdefs.h. */ melunko@47: _ACEOF melunko@47: cat confdefs.h >>conftest.$ac_ext melunko@47: cat >>conftest.$ac_ext <<_ACEOF melunko@47: /* end confdefs.h. */ melunko@47: $ac_includes_default melunko@47: melunko@47: #include <$ac_header> melunko@47: _ACEOF melunko@47: rm -f conftest.$ac_objext melunko@47: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 melunko@47: (eval $ac_compile) 2>conftest.er1 melunko@47: ac_status=$? melunko@47: grep -v '^ *+' conftest.er1 >conftest.err melunko@47: rm -f conftest.er1 melunko@47: cat conftest.err >&5 melunko@47: echo "$as_me:$LINENO: \$? = $ac_status" >&5 melunko@47: (exit $ac_status); } && melunko@47: { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' melunko@47: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 melunko@47: (eval $ac_try) 2>&5 melunko@47: ac_status=$? melunko@47: echo "$as_me:$LINENO: \$? = $ac_status" >&5 melunko@47: (exit $ac_status); }; } && melunko@47: { ac_try='test -s conftest.$ac_objext' melunko@47: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 melunko@47: (eval $ac_try) 2>&5 melunko@47: ac_status=$? melunko@47: echo "$as_me:$LINENO: \$? = $ac_status" >&5 melunko@47: (exit $ac_status); }; }; then melunko@47: eval "$as_ac_Header=yes" melunko@47: else melunko@47: echo "$as_me: failed program was:" >&5 melunko@47: sed 's/^/| /' conftest.$ac_ext >&5 melunko@47: melunko@47: eval "$as_ac_Header=no" melunko@47: fi melunko@47: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext melunko@47: fi melunko@47: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 melunko@47: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 melunko@47: if test `eval echo '${'$as_ac_Header'}'` = yes; then melunko@47: cat >>confdefs.h <<_ACEOF melunko@47: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 melunko@47: _ACEOF melunko@47: melunko@47: fi melunko@47: melunko@47: done melunko@47: melunko@47: melunko@47: melunko@47: for ac_header in dlfcn.h melunko@47: do melunko@47: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` melunko@47: if eval "test \"\${$as_ac_Header+set}\" = set"; then melunko@47: echo "$as_me:$LINENO: checking for $ac_header" >&5 melunko@47: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 melunko@47: if eval "test \"\${$as_ac_Header+set}\" = set"; then melunko@47: echo $ECHO_N "(cached) $ECHO_C" >&6 melunko@47: fi melunko@47: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 melunko@47: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 melunko@47: else melunko@47: # Is the header compilable? melunko@47: echo "$as_me:$LINENO: checking $ac_header usability" >&5 melunko@47: echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 melunko@47: cat >conftest.$ac_ext <<_ACEOF melunko@47: /* confdefs.h. */ melunko@47: _ACEOF melunko@47: cat confdefs.h >>conftest.$ac_ext melunko@47: cat >>conftest.$ac_ext <<_ACEOF melunko@47: /* end confdefs.h. */ melunko@47: $ac_includes_default melunko@47: #include <$ac_header> melunko@47: _ACEOF melunko@47: rm -f conftest.$ac_objext melunko@47: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 melunko@47: (eval $ac_compile) 2>conftest.er1 melunko@47: ac_status=$? melunko@47: grep -v '^ *+' conftest.er1 >conftest.err melunko@47: rm -f conftest.er1 melunko@47: cat conftest.err >&5 melunko@47: echo "$as_me:$LINENO: \$? = $ac_status" >&5 melunko@47: (exit $ac_status); } && melunko@47: { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' melunko@47: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 melunko@47: (eval $ac_try) 2>&5 melunko@47: ac_status=$? melunko@47: echo "$as_me:$LINENO: \$? = $ac_status" >&5 melunko@47: (exit $ac_status); }; } && melunko@47: { ac_try='test -s conftest.$ac_objext' melunko@47: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 melunko@47: (eval $ac_try) 2>&5 melunko@47: ac_status=$? melunko@47: echo "$as_me:$LINENO: \$? = $ac_status" >&5 melunko@47: (exit $ac_status); }; }; then melunko@47: ac_header_compiler=yes melunko@47: else melunko@47: echo "$as_me: failed program was:" >&5 melunko@47: sed 's/^/| /' conftest.$ac_ext >&5 melunko@47: melunko@47: ac_header_compiler=no melunko@47: fi melunko@47: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext melunko@47: echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 melunko@47: echo "${ECHO_T}$ac_header_compiler" >&6 melunko@47: melunko@47: # Is the header present? melunko@47: echo "$as_me:$LINENO: checking $ac_header presence" >&5 melunko@47: echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 melunko@47: cat >conftest.$ac_ext <<_ACEOF melunko@47: /* confdefs.h. */ melunko@47: _ACEOF melunko@47: cat confdefs.h >>conftest.$ac_ext melunko@47: cat >>conftest.$ac_ext <<_ACEOF melunko@47: /* end confdefs.h. */ melunko@47: #include <$ac_header> melunko@47: _ACEOF melunko@47: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 melunko@47: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 melunko@47: ac_status=$? melunko@47: grep -v '^ *+' conftest.er1 >conftest.err melunko@47: rm -f conftest.er1 melunko@47: cat conftest.err >&5 melunko@47: echo "$as_me:$LINENO: \$? = $ac_status" >&5 melunko@47: (exit $ac_status); } >/dev/null; then melunko@47: if test -s conftest.err; then melunko@47: ac_cpp_err=$ac_c_preproc_warn_flag melunko@47: ac_cpp_err=$ac_cpp_err$ac_c_werror_flag melunko@47: else melunko@47: ac_cpp_err= melunko@47: fi melunko@47: else melunko@47: ac_cpp_err=yes melunko@47: fi melunko@47: if test -z "$ac_cpp_err"; then melunko@47: ac_header_preproc=yes melunko@47: else melunko@47: echo "$as_me: failed program was:" >&5 melunko@47: sed 's/^/| /' conftest.$ac_ext >&5 melunko@47: melunko@47: ac_header_preproc=no melunko@47: fi melunko@47: rm -f conftest.err conftest.$ac_ext melunko@47: echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 melunko@47: echo "${ECHO_T}$ac_header_preproc" >&6 melunko@47: melunko@47: # So? What about this header? melunko@47: case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in melunko@47: yes:no: ) melunko@47: { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 melunko@47: echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} melunko@47: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 melunko@47: echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} melunko@47: ac_header_preproc=yes melunko@47: ;; melunko@47: no:yes:* ) melunko@47: { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 melunko@47: echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} melunko@47: { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 melunko@47: echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} melunko@47: { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 melunko@47: echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} melunko@47: { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 melunko@47: echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} melunko@47: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 melunko@47: echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} melunko@47: { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 melunko@47: echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} melunko@47: ( melunko@47: cat <<\_ASBOX melunko@47: ## ------------------------------------------ ## melunko@47: ## Report this to the AC_PACKAGE_NAME lists. ## melunko@47: ## ------------------------------------------ ## melunko@47: _ASBOX melunko@47: ) | melunko@47: sed "s/^/$as_me: WARNING: /" >&2 melunko@47: ;; melunko@47: esac melunko@47: echo "$as_me:$LINENO: checking for $ac_header" >&5 melunko@47: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 melunko@47: if eval "test \"\${$as_ac_Header+set}\" = set"; then melunko@47: echo $ECHO_N "(cached) $ECHO_C" >&6 melunko@47: else melunko@47: eval "$as_ac_Header=\$ac_header_preproc" melunko@47: fi melunko@47: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 melunko@47: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 melunko@47: melunko@47: fi melunko@47: if test `eval echo '${'$as_ac_Header'}'` = yes; then melunko@47: cat >>confdefs.h <<_ACEOF melunko@47: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 melunko@47: _ACEOF melunko@47: melunko@47: fi melunko@47: melunko@47: done melunko@47: melunko@47: ac_ext=cc melunko@47: ac_cpp='$CXXCPP $CPPFLAGS' melunko@47: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' melunko@47: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' melunko@47: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu melunko@47: if test -n "$ac_tool_prefix"; then melunko@47: for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC melunko@47: do melunko@47: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. melunko@47: set dummy $ac_tool_prefix$ac_prog; ac_word=$2 melunko@47: echo "$as_me:$LINENO: checking for $ac_word" >&5 melunko@47: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 melunko@47: if test "${ac_cv_prog_CXX+set}" = set; then melunko@47: echo $ECHO_N "(cached) $ECHO_C" >&6 melunko@47: else melunko@47: if test -n "$CXX"; then melunko@47: ac_cv_prog_CXX="$CXX" # Let the user override the test. melunko@47: else melunko@47: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR melunko@47: for as_dir in $PATH melunko@47: do melunko@47: IFS=$as_save_IFS melunko@47: test -z "$as_dir" && as_dir=. melunko@47: for ac_exec_ext in '' $ac_executable_extensions; do melunko@47: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then melunko@47: ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" melunko@47: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 melunko@47: break 2 melunko@47: fi melunko@47: done melunko@47: done melunko@47: melunko@47: fi melunko@47: fi melunko@47: CXX=$ac_cv_prog_CXX melunko@47: if test -n "$CXX"; then melunko@47: echo "$as_me:$LINENO: result: $CXX" >&5 melunko@47: echo "${ECHO_T}$CXX" >&6 melunko@47: else melunko@47: echo "$as_me:$LINENO: result: no" >&5 melunko@47: echo "${ECHO_T}no" >&6 melunko@47: fi melunko@47: melunko@47: test -n "$CXX" && break melunko@47: done melunko@47: fi melunko@47: if test -z "$CXX"; then melunko@47: ac_ct_CXX=$CXX melunko@47: for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC melunko@47: do melunko@47: # Extract the first word of "$ac_prog", so it can be a program name with args. melunko@47: set dummy $ac_prog; ac_word=$2 melunko@47: echo "$as_me:$LINENO: checking for $ac_word" >&5 melunko@47: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 melunko@47: if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then melunko@47: echo $ECHO_N "(cached) $ECHO_C" >&6 melunko@47: else melunko@47: if test -n "$ac_ct_CXX"; then melunko@47: ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. melunko@47: else melunko@47: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR melunko@47: for as_dir in $PATH melunko@47: do melunko@47: IFS=$as_save_IFS melunko@47: test -z "$as_dir" && as_dir=. melunko@47: for ac_exec_ext in '' $ac_executable_extensions; do melunko@47: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then melunko@47: ac_cv_prog_ac_ct_CXX="$ac_prog" melunko@47: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 melunko@47: break 2 melunko@47: fi melunko@47: done melunko@47: done melunko@47: melunko@47: fi melunko@47: fi melunko@47: ac_ct_CXX=$ac_cv_prog_ac_ct_CXX melunko@47: if test -n "$ac_ct_CXX"; then melunko@47: echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 melunko@47: echo "${ECHO_T}$ac_ct_CXX" >&6 melunko@47: else melunko@47: echo "$as_me:$LINENO: result: no" >&5 melunko@47: echo "${ECHO_T}no" >&6 melunko@47: fi melunko@47: melunko@47: test -n "$ac_ct_CXX" && break melunko@47: done melunko@47: test -n "$ac_ct_CXX" || ac_ct_CXX="g++" melunko@47: melunko@47: CXX=$ac_ct_CXX melunko@47: fi melunko@47: melunko@47: melunko@47: # Provide some information about the compiler. melunko@47: echo "$as_me:$LINENO:" \ melunko@47: "checking for C++ compiler version" >&5 melunko@47: ac_compiler=`set X $ac_compile; echo $2` melunko@47: { (eval echo "$as_me:$LINENO: \"$ac_compiler --version &5\"") >&5 melunko@47: (eval $ac_compiler --version &5) 2>&5 melunko@47: ac_status=$? melunko@47: echo "$as_me:$LINENO: \$? = $ac_status" >&5 melunko@47: (exit $ac_status); } melunko@47: { (eval echo "$as_me:$LINENO: \"$ac_compiler -v &5\"") >&5 melunko@47: (eval $ac_compiler -v &5) 2>&5 melunko@47: ac_status=$? melunko@47: echo "$as_me:$LINENO: \$? = $ac_status" >&5 melunko@47: (exit $ac_status); } melunko@47: { (eval echo "$as_me:$LINENO: \"$ac_compiler -V &5\"") >&5 melunko@47: (eval $ac_compiler -V &5) 2>&5 melunko@47: ac_status=$? melunko@47: echo "$as_me:$LINENO: \$? = $ac_status" >&5 melunko@47: (exit $ac_status); } melunko@47: melunko@47: echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 melunko@47: echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6 melunko@47: if test "${ac_cv_cxx_compiler_gnu+set}" = set; then melunko@47: echo $ECHO_N "(cached) $ECHO_C" >&6 melunko@47: else melunko@47: cat >conftest.$ac_ext <<_ACEOF melunko@47: /* confdefs.h. */ melunko@47: _ACEOF melunko@47: cat confdefs.h >>conftest.$ac_ext melunko@47: cat >>conftest.$ac_ext <<_ACEOF melunko@47: /* end confdefs.h. */ melunko@47: melunko@47: int melunko@47: main () melunko@47: { melunko@47: #ifndef __GNUC__ melunko@47: choke me melunko@47: #endif melunko@47: melunko@47: ; melunko@47: return 0; melunko@47: } melunko@47: _ACEOF melunko@47: rm -f conftest.$ac_objext melunko@47: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 melunko@47: (eval $ac_compile) 2>conftest.er1 melunko@47: ac_status=$? melunko@47: grep -v '^ *+' conftest.er1 >conftest.err melunko@47: rm -f conftest.er1 melunko@47: cat conftest.err >&5 melunko@47: echo "$as_me:$LINENO: \$? = $ac_status" >&5 melunko@47: (exit $ac_status); } && melunko@47: { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' melunko@47: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 melunko@47: (eval $ac_try) 2>&5 melunko@47: ac_status=$? melunko@47: echo "$as_me:$LINENO: \$? = $ac_status" >&5 melunko@47: (exit $ac_status); }; } && melunko@47: { ac_try='test -s conftest.$ac_objext' melunko@47: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 melunko@47: (eval $ac_try) 2>&5 melunko@47: ac_status=$? melunko@47: echo "$as_me:$LINENO: \$? = $ac_status" >&5 melunko@47: (exit $ac_status); }; }; then melunko@47: ac_compiler_gnu=yes melunko@47: else melunko@47: echo "$as_me: failed program was:" >&5 melunko@47: sed 's/^/| /' conftest.$ac_ext >&5 melunko@47: melunko@47: ac_compiler_gnu=no melunko@47: fi melunko@47: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext melunko@47: ac_cv_cxx_compiler_gnu=$ac_compiler_gnu melunko@47: melunko@47: fi melunko@47: echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 melunko@47: echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6 melunko@47: GXX=`test $ac_compiler_gnu = yes && echo yes` melunko@47: ac_test_CXXFLAGS=${CXXFLAGS+set} melunko@47: ac_save_CXXFLAGS=$CXXFLAGS melunko@47: CXXFLAGS="-g" melunko@47: echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 melunko@47: echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 melunko@47: if test "${ac_cv_prog_cxx_g+set}" = set; then melunko@47: echo $ECHO_N "(cached) $ECHO_C" >&6 melunko@47: else melunko@47: cat >conftest.$ac_ext <<_ACEOF melunko@47: /* confdefs.h. */ melunko@47: _ACEOF melunko@47: cat confdefs.h >>conftest.$ac_ext melunko@47: cat >>conftest.$ac_ext <<_ACEOF melunko@47: /* end confdefs.h. */ melunko@47: melunko@47: int melunko@47: main () melunko@47: { melunko@47: melunko@47: ; melunko@47: return 0; melunko@47: } melunko@47: _ACEOF melunko@47: rm -f conftest.$ac_objext melunko@47: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 melunko@47: (eval $ac_compile) 2>conftest.er1 melunko@47: ac_status=$? melunko@47: grep -v '^ *+' conftest.er1 >conftest.err melunko@47: rm -f conftest.er1 melunko@47: cat conftest.err >&5 melunko@47: echo "$as_me:$LINENO: \$? = $ac_status" >&5 melunko@47: (exit $ac_status); } && melunko@47: { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' melunko@47: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 melunko@47: (eval $ac_try) 2>&5 melunko@47: ac_status=$? melunko@47: echo "$as_me:$LINENO: \$? = $ac_status" >&5 melunko@47: (exit $ac_status); }; } && melunko@47: { ac_try='test -s conftest.$ac_objext' melunko@47: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 melunko@47: (eval $ac_try) 2>&5 melunko@47: ac_status=$? melunko@47: echo "$as_me:$LINENO: \$? = $ac_status" >&5 melunko@47: (exit $ac_status); }; }; then melunko@47: ac_cv_prog_cxx_g=yes melunko@47: else melunko@47: echo "$as_me: failed program was:" >&5 melunko@47: sed 's/^/| /' conftest.$ac_ext >&5 melunko@47: melunko@47: ac_cv_prog_cxx_g=no melunko@47: fi melunko@47: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext melunko@47: fi melunko@47: echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 melunko@47: echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 melunko@47: if test "$ac_test_CXXFLAGS" = set; then melunko@47: CXXFLAGS=$ac_save_CXXFLAGS melunko@47: elif test $ac_cv_prog_cxx_g = yes; then melunko@47: if test "$GXX" = yes; then melunko@47: CXXFLAGS="-g -O2" melunko@47: else melunko@47: CXXFLAGS="-g" melunko@47: fi melunko@47: else melunko@47: if test "$GXX" = yes; then melunko@47: CXXFLAGS="-O2" melunko@47: else melunko@47: CXXFLAGS= melunko@47: fi melunko@47: fi melunko@47: for ac_declaration in \ melunko@47: '' \ melunko@47: 'extern "C" void std::exit (int) throw (); using std::exit;' \ melunko@47: 'extern "C" void std::exit (int); using std::exit;' \ melunko@47: 'extern "C" void exit (int) throw ();' \ melunko@47: 'extern "C" void exit (int);' \ melunko@47: 'void exit (int);' melunko@47: do melunko@47: cat >conftest.$ac_ext <<_ACEOF melunko@47: /* confdefs.h. */ melunko@47: _ACEOF melunko@47: cat confdefs.h >>conftest.$ac_ext melunko@47: cat >>conftest.$ac_ext <<_ACEOF melunko@47: /* end confdefs.h. */ melunko@47: $ac_declaration melunko@47: #include melunko@47: int melunko@47: main () melunko@47: { melunko@47: exit (42); melunko@47: ; melunko@47: return 0; melunko@47: } melunko@47: _ACEOF melunko@47: rm -f conftest.$ac_objext melunko@47: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 melunko@47: (eval $ac_compile) 2>conftest.er1 melunko@47: ac_status=$? melunko@47: grep -v '^ *+' conftest.er1 >conftest.err melunko@47: rm -f conftest.er1 melunko@47: cat conftest.err >&5 melunko@47: echo "$as_me:$LINENO: \$? = $ac_status" >&5 melunko@47: (exit $ac_status); } && melunko@47: { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' melunko@47: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 melunko@47: (eval $ac_try) 2>&5 melunko@47: ac_status=$? melunko@47: echo "$as_me:$LINENO: \$? = $ac_status" >&5 melunko@47: (exit $ac_status); }; } && melunko@47: { ac_try='test -s conftest.$ac_objext' melunko@47: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 melunko@47: (eval $ac_try) 2>&5 melunko@47: ac_status=$? melunko@47: echo "$as_me:$LINENO: \$? = $ac_status" >&5 melunko@47: (exit $ac_status); }; }; then melunko@47: : melunko@47: else melunko@47: echo "$as_me: failed program was:" >&5 melunko@47: sed 's/^/| /' conftest.$ac_ext >&5 melunko@47: melunko@47: continue melunko@47: fi melunko@47: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext melunko@47: cat >conftest.$ac_ext <<_ACEOF melunko@47: /* confdefs.h. */ melunko@47: _ACEOF melunko@47: cat confdefs.h >>conftest.$ac_ext melunko@47: cat >>conftest.$ac_ext <<_ACEOF melunko@47: /* end confdefs.h. */ melunko@47: $ac_declaration melunko@47: int melunko@47: main () melunko@47: { melunko@47: exit (42); melunko@47: ; melunko@47: return 0; melunko@47: } melunko@47: _ACEOF melunko@47: rm -f conftest.$ac_objext melunko@47: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 melunko@47: (eval $ac_compile) 2>conftest.er1 melunko@47: ac_status=$? melunko@47: grep -v '^ *+' conftest.er1 >conftest.err melunko@47: rm -f conftest.er1 melunko@47: cat conftest.err >&5 melunko@47: echo "$as_me:$LINENO: \$? = $ac_status" >&5 melunko@47: (exit $ac_status); } && melunko@47: { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' melunko@47: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 melunko@47: (eval $ac_try) 2>&5 melunko@47: ac_status=$? melunko@47: echo "$as_me:$LINENO: \$? = $ac_status" >&5 melunko@47: (exit $ac_status); }; } && melunko@47: { ac_try='test -s conftest.$ac_objext' melunko@47: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 melunko@47: (eval $ac_try) 2>&5 melunko@47: ac_status=$? melunko@47: echo "$as_me:$LINENO: \$? = $ac_status" >&5 melunko@47: (exit $ac_status); }; }; then melunko@47: break melunko@47: else melunko@47: echo "$as_me: failed program was:" >&5 melunko@47: sed 's/^/| /' conftest.$ac_ext >&5 melunko@47: melunko@47: fi melunko@47: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext melunko@47: done melunko@47: rm -f conftest* melunko@47: if test -n "$ac_declaration"; then melunko@47: echo '#ifdef __cplusplus' >>confdefs.h melunko@47: echo $ac_declaration >>confdefs.h melunko@47: echo '#endif' >>confdefs.h melunko@47: fi melunko@47: melunko@47: ac_ext=cc melunko@47: ac_cpp='$CXXCPP $CPPFLAGS' melunko@47: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' melunko@47: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' melunko@47: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu melunko@47: melunko@47: depcc="$CXX" am_compiler_list= melunko@47: melunko@47: echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 melunko@47: echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 melunko@47: if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then melunko@47: echo $ECHO_N "(cached) $ECHO_C" >&6 melunko@47: else melunko@47: if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then melunko@47: # We make a subdir and do the tests there. Otherwise we can end up melunko@47: # making bogus files that we don't know about and never remove. For melunko@47: # instance it was reported that on HP-UX the gcc test will end up melunko@47: # making a dummy file named `D' -- because `-MD' means `put the output melunko@47: # in D'. melunko@47: mkdir conftest.dir melunko@47: # Copy depcomp to subdir because otherwise we won't find it if we're melunko@47: # using a relative directory. melunko@47: cp "$am_depcomp" conftest.dir melunko@47: cd conftest.dir melunko@47: # We will build objects and dependencies in a subdirectory because melunko@47: # it helps to detect inapplicable dependency modes. For instance melunko@47: # both Tru64's cc and ICC support -MD to output dependencies as a melunko@47: # side effect of compilation, but ICC will put the dependencies in melunko@47: # the current directory while Tru64 will put them in the object melunko@47: # directory. melunko@47: mkdir sub melunko@47: melunko@47: am_cv_CXX_dependencies_compiler_type=none melunko@47: if test "$am_compiler_list" = ""; then melunko@47: am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` melunko@47: fi melunko@47: for depmode in $am_compiler_list; do melunko@47: # Setup a source with many dependencies, because some compilers melunko@47: # like to wrap large dependency lists on column 80 (with \), and melunko@47: # we should not choose a depcomp mode which is confused by this. melunko@47: # melunko@47: # We need to recreate these files for each test, as the compiler may melunko@47: # overwrite some of them when testing with obscure command lines. melunko@47: # This happens at least with the AIX C compiler. melunko@47: : > sub/conftest.c melunko@47: for i in 1 2 3 4 5 6; do melunko@47: echo '#include "conftst'$i'.h"' >> sub/conftest.c melunko@47: # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with melunko@47: # Solaris 8's {/usr,}/bin/sh. melunko@47: touch sub/conftst$i.h melunko@47: done melunko@47: echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf melunko@47: melunko@47: case $depmode in melunko@47: nosideeffect) melunko@47: # after this tag, mechanisms are not by side-effect, so they'll melunko@47: # only be used when explicitly requested melunko@47: if test "x$enable_dependency_tracking" = xyes; then melunko@47: continue melunko@47: else melunko@47: break melunko@47: fi melunko@47: ;; melunko@47: none) break ;; melunko@47: esac melunko@47: # We check with `-c' and `-o' for the sake of the "dashmstdout" melunko@47: # mode. It turns out that the SunPro C++ compiler does not properly melunko@47: # handle `-M -o', and we need to detect this. melunko@47: if depmode=$depmode \ melunko@47: source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ melunko@47: depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ melunko@47: $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ melunko@47: >/dev/null 2>conftest.err && melunko@47: grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && melunko@47: grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && melunko@47: ${MAKE-make} -s -f confmf > /dev/null 2>&1; then melunko@47: # icc doesn't choke on unknown options, it will just issue warnings melunko@47: # or remarks (even with -Werror). So we grep stderr for any message melunko@47: # that says an option was ignored or not supported. melunko@47: # When given -MP, icc 7.0 and 7.1 complain thusly: melunko@47: # icc: Command line warning: ignoring option '-M'; no argument required melunko@47: # The diagnosis changed in icc 8.0: melunko@47: # icc: Command line remark: option '-MP' not supported melunko@47: if (grep 'ignoring option' conftest.err || melunko@47: grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else melunko@47: am_cv_CXX_dependencies_compiler_type=$depmode melunko@47: break melunko@47: fi melunko@47: fi melunko@47: done melunko@47: melunko@47: cd .. melunko@47: rm -rf conftest.dir melunko@47: else melunko@47: am_cv_CXX_dependencies_compiler_type=none melunko@47: fi melunko@47: melunko@47: fi melunko@47: echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 melunko@47: echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6 melunko@47: CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type melunko@47: melunko@47: melunko@47: melunko@47: if melunko@47: test "x$enable_dependency_tracking" != xno \ melunko@47: && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then melunko@47: am__fastdepCXX_TRUE= melunko@47: am__fastdepCXX_FALSE='#' melunko@47: else melunko@47: am__fastdepCXX_TRUE='#' melunko@47: am__fastdepCXX_FALSE= melunko@47: fi melunko@47: melunko@47: melunko@47: melunko@47: melunko@47: if test -n "$CXX" && ( test "X$CXX" != "Xno" && melunko@47: ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || melunko@47: (test "X$CXX" != "Xg++"))) ; then melunko@47: ac_ext=cc melunko@47: ac_cpp='$CXXCPP $CPPFLAGS' melunko@47: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' melunko@47: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' melunko@47: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu melunko@47: echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 melunko@47: echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6 melunko@47: if test -z "$CXXCPP"; then melunko@47: if test "${ac_cv_prog_CXXCPP+set}" = set; then melunko@47: echo $ECHO_N "(cached) $ECHO_C" >&6 melunko@47: else melunko@47: # Double quotes because CXXCPP needs to be expanded melunko@47: for CXXCPP in "$CXX -E" "/lib/cpp" melunko@47: do melunko@47: ac_preproc_ok=false melunko@47: for ac_cxx_preproc_warn_flag in '' yes melunko@47: do melunko@47: # Use a header file that comes with gcc, so configuring glibc melunko@47: # with a fresh cross-compiler works. melunko@47: # Prefer to if __STDC__ is defined, since melunko@47: # exists even on freestanding compilers. melunko@47: # On the NeXT, cc -E runs the code through the compiler's parser, melunko@47: # not just through cpp. "Syntax error" is here to catch this case. melunko@47: cat >conftest.$ac_ext <<_ACEOF melunko@47: /* confdefs.h. */ melunko@47: _ACEOF melunko@47: cat confdefs.h >>conftest.$ac_ext melunko@47: cat >>conftest.$ac_ext <<_ACEOF melunko@47: /* end confdefs.h. */ melunko@47: #ifdef __STDC__ melunko@47: # include melunko@47: #else melunko@47: # include melunko@47: #endif melunko@47: Syntax error melunko@47: _ACEOF melunko@47: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 melunko@47: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 melunko@47: ac_status=$? melunko@47: grep -v '^ *+' conftest.er1 >conftest.err melunko@47: rm -f conftest.er1 melunko@47: cat conftest.err >&5 melunko@47: echo "$as_me:$LINENO: \$? = $ac_status" >&5 melunko@47: (exit $ac_status); } >/dev/null; then melunko@47: if test -s conftest.err; then melunko@47: ac_cpp_err=$ac_cxx_preproc_warn_flag melunko@47: ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag melunko@47: else melunko@47: ac_cpp_err= melunko@47: fi melunko@47: else melunko@47: ac_cpp_err=yes melunko@47: fi melunko@47: if test -z "$ac_cpp_err"; then melunko@47: : melunko@47: else melunko@47: echo "$as_me: failed program was:" >&5 melunko@47: sed 's/^/| /' conftest.$ac_ext >&5 melunko@47: melunko@47: # Broken: fails on valid input. melunko@47: continue melunko@47: fi melunko@47: rm -f conftest.err conftest.$ac_ext melunko@47: melunko@47: # OK, works on sane cases. Now check whether non-existent headers melunko@47: # can be detected and how. melunko@47: cat >conftest.$ac_ext <<_ACEOF melunko@47: /* confdefs.h. */ melunko@47: _ACEOF melunko@47: cat confdefs.h >>conftest.$ac_ext melunko@47: cat >>conftest.$ac_ext <<_ACEOF melunko@47: /* end confdefs.h. */ melunko@47: #include melunko@47: _ACEOF melunko@47: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 melunko@47: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 melunko@47: ac_status=$? melunko@47: grep -v '^ *+' conftest.er1 >conftest.err melunko@47: rm -f conftest.er1 melunko@47: cat conftest.err >&5 melunko@47: echo "$as_me:$LINENO: \$? = $ac_status" >&5 melunko@47: (exit $ac_status); } >/dev/null; then melunko@47: if test -s conftest.err; then melunko@47: ac_cpp_err=$ac_cxx_preproc_warn_flag melunko@47: ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag melunko@47: else melunko@47: ac_cpp_err= melunko@47: fi melunko@47: else melunko@47: ac_cpp_err=yes melunko@47: fi melunko@47: if test -z "$ac_cpp_err"; then melunko@47: # Broken: success on invalid input. melunko@47: continue melunko@47: else melunko@47: echo "$as_me: failed program was:" >&5 melunko@47: sed 's/^/| /' conftest.$ac_ext >&5 melunko@47: melunko@47: # Passes both tests. melunko@47: ac_preproc_ok=: melunko@47: break melunko@47: fi melunko@47: rm -f conftest.err conftest.$ac_ext melunko@47: melunko@47: done melunko@47: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. melunko@47: rm -f conftest.err conftest.$ac_ext melunko@47: if $ac_preproc_ok; then melunko@47: break melunko@47: fi melunko@47: melunko@47: done melunko@47: ac_cv_prog_CXXCPP=$CXXCPP melunko@47: melunko@47: fi melunko@47: CXXCPP=$ac_cv_prog_CXXCPP melunko@47: else melunko@47: ac_cv_prog_CXXCPP=$CXXCPP melunko@47: fi melunko@47: echo "$as_me:$LINENO: result: $CXXCPP" >&5 melunko@47: echo "${ECHO_T}$CXXCPP" >&6 melunko@47: ac_preproc_ok=false melunko@47: for ac_cxx_preproc_warn_flag in '' yes melunko@47: do melunko@47: # Use a header file that comes with gcc, so configuring glibc melunko@47: # with a fresh cross-compiler works. melunko@47: # Prefer to if __STDC__ is defined, since melunko@47: # exists even on freestanding compilers. melunko@47: # On the NeXT, cc -E runs the code through the compiler's parser, melunko@47: # not just through cpp. "Syntax error" is here to catch this case. melunko@47: cat >conftest.$ac_ext <<_ACEOF melunko@47: /* confdefs.h. */ melunko@47: _ACEOF melunko@47: cat confdefs.h >>conftest.$ac_ext melunko@47: cat >>conftest.$ac_ext <<_ACEOF melunko@47: /* end confdefs.h. */ melunko@47: #ifdef __STDC__ melunko@47: # include melunko@47: #else melunko@47: # include melunko@47: #endif melunko@47: Syntax error melunko@47: _ACEOF melunko@47: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 melunko@47: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 melunko@47: ac_status=$? melunko@47: grep -v '^ *+' conftest.er1 >conftest.err melunko@47: rm -f conftest.er1 melunko@47: cat conftest.err >&5 melunko@47: echo "$as_me:$LINENO: \$? = $ac_status" >&5 melunko@47: (exit $ac_status); } >/dev/null; then melunko@47: if test -s conftest.err; then melunko@47: ac_cpp_err=$ac_cxx_preproc_warn_flag melunko@47: ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag melunko@47: else melunko@47: ac_cpp_err= melunko@47: fi melunko@47: else melunko@47: ac_cpp_err=yes melunko@47: fi melunko@47: if test -z "$ac_cpp_err"; then melunko@47: : melunko@47: else melunko@47: echo "$as_me: failed program was:" >&5 melunko@47: sed 's/^/| /' conftest.$ac_ext >&5 melunko@47: melunko@47: # Broken: fails on valid input. melunko@47: continue melunko@47: fi melunko@47: rm -f conftest.err conftest.$ac_ext melunko@47: melunko@47: # OK, works on sane cases. Now check whether non-existent headers melunko@47: # can be detected and how. melunko@47: cat >conftest.$ac_ext <<_ACEOF melunko@47: /* confdefs.h. */ melunko@47: _ACEOF melunko@47: cat confdefs.h >>conftest.$ac_ext melunko@47: cat >>conftest.$ac_ext <<_ACEOF melunko@47: /* end confdefs.h. */ melunko@47: #include melunko@47: _ACEOF melunko@47: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 melunko@47: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 melunko@47: ac_status=$? melunko@47: grep -v '^ *+' conftest.er1 >conftest.err melunko@47: rm -f conftest.er1 melunko@47: cat conftest.err >&5 melunko@47: echo "$as_me:$LINENO: \$? = $ac_status" >&5 melunko@47: (exit $ac_status); } >/dev/null; then melunko@47: if test -s conftest.err; then melunko@47: ac_cpp_err=$ac_cxx_preproc_warn_flag melunko@47: ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag melunko@47: else melunko@47: ac_cpp_err= melunko@47: fi melunko@47: else melunko@47: ac_cpp_err=yes melunko@47: fi melunko@47: if test -z "$ac_cpp_err"; then melunko@47: # Broken: success on invalid input. melunko@47: continue melunko@47: else melunko@47: echo "$as_me: failed program was:" >&5 melunko@47: sed 's/^/| /' conftest.$ac_ext >&5 melunko@47: melunko@47: # Passes both tests. melunko@47: ac_preproc_ok=: melunko@47: break melunko@47: fi melunko@47: rm -f conftest.err conftest.$ac_ext melunko@47: melunko@47: done melunko@47: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. melunko@47: rm -f conftest.err conftest.$ac_ext melunko@47: if $ac_preproc_ok; then melunko@47: : melunko@47: else melunko@47: { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check melunko@47: See \`config.log' for more details." >&5 melunko@47: echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check melunko@47: See \`config.log' for more details." >&2;} melunko@47: { (exit 1); exit 1; }; } melunko@47: fi melunko@47: melunko@47: ac_ext=cc melunko@47: ac_cpp='$CXXCPP $CPPFLAGS' melunko@47: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' melunko@47: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' melunko@47: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu melunko@47: melunko@47: fi melunko@47: melunko@47: melunko@47: ac_ext=f melunko@47: ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' melunko@47: ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' melunko@47: ac_compiler_gnu=$ac_cv_f77_compiler_gnu melunko@47: if test -n "$ac_tool_prefix"; then melunko@47: for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran melunko@47: do melunko@47: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. melunko@47: set dummy $ac_tool_prefix$ac_prog; ac_word=$2 melunko@47: echo "$as_me:$LINENO: checking for $ac_word" >&5 melunko@47: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 melunko@47: if test "${ac_cv_prog_F77+set}" = set; then melunko@47: echo $ECHO_N "(cached) $ECHO_C" >&6 melunko@47: else melunko@47: if test -n "$F77"; then melunko@47: ac_cv_prog_F77="$F77" # Let the user override the test. melunko@47: else melunko@47: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR melunko@47: for as_dir in $PATH melunko@47: do melunko@47: IFS=$as_save_IFS melunko@47: test -z "$as_dir" && as_dir=. melunko@47: for ac_exec_ext in '' $ac_executable_extensions; do melunko@47: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then melunko@47: ac_cv_prog_F77="$ac_tool_prefix$ac_prog" melunko@47: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 melunko@47: break 2 melunko@47: fi melunko@47: done melunko@47: done melunko@47: melunko@47: fi melunko@47: fi melunko@47: F77=$ac_cv_prog_F77 melunko@47: if test -n "$F77"; then melunko@47: echo "$as_me:$LINENO: result: $F77" >&5 melunko@47: echo "${ECHO_T}$F77" >&6 melunko@47: else melunko@47: echo "$as_me:$LINENO: result: no" >&5 melunko@47: echo "${ECHO_T}no" >&6 melunko@47: fi melunko@47: melunko@47: test -n "$F77" && break melunko@47: done melunko@47: fi melunko@47: if test -z "$F77"; then melunko@47: ac_ct_F77=$F77 melunko@47: for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran melunko@47: do melunko@47: # Extract the first word of "$ac_prog", so it can be a program name with args. melunko@47: set dummy $ac_prog; ac_word=$2 melunko@47: echo "$as_me:$LINENO: checking for $ac_word" >&5 melunko@47: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 melunko@47: if test "${ac_cv_prog_ac_ct_F77+set}" = set; then melunko@47: echo $ECHO_N "(cached) $ECHO_C" >&6 melunko@47: else melunko@47: if test -n "$ac_ct_F77"; then melunko@47: ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test. melunko@47: else melunko@47: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR melunko@47: for as_dir in $PATH melunko@47: do melunko@47: IFS=$as_save_IFS melunko@47: test -z "$as_dir" && as_dir=. melunko@47: for ac_exec_ext in '' $ac_executable_extensions; do melunko@47: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then melunko@47: ac_cv_prog_ac_ct_F77="$ac_prog" melunko@47: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 melunko@47: break 2 melunko@47: fi melunko@47: done melunko@47: done melunko@47: melunko@47: fi melunko@47: fi melunko@47: ac_ct_F77=$ac_cv_prog_ac_ct_F77 melunko@47: if test -n "$ac_ct_F77"; then melunko@47: echo "$as_me:$LINENO: result: $ac_ct_F77" >&5 melunko@47: echo "${ECHO_T}$ac_ct_F77" >&6 melunko@47: else melunko@47: echo "$as_me:$LINENO: result: no" >&5 melunko@47: echo "${ECHO_T}no" >&6 melunko@47: fi melunko@47: melunko@47: test -n "$ac_ct_F77" && break melunko@47: done melunko@47: melunko@47: F77=$ac_ct_F77 melunko@47: fi melunko@47: melunko@47: melunko@47: # Provide some information about the compiler. melunko@47: echo "$as_me:5331:" \ melunko@47: "checking for Fortran 77 compiler version" >&5 melunko@47: ac_compiler=`set X $ac_compile; echo $2` melunko@47: { (eval echo "$as_me:$LINENO: \"$ac_compiler --version &5\"") >&5 melunko@47: (eval $ac_compiler --version &5) 2>&5 melunko@47: ac_status=$? melunko@47: echo "$as_me:$LINENO: \$? = $ac_status" >&5 melunko@47: (exit $ac_status); } melunko@47: { (eval echo "$as_me:$LINENO: \"$ac_compiler -v &5\"") >&5 melunko@47: (eval $ac_compiler -v &5) 2>&5 melunko@47: ac_status=$? melunko@47: echo "$as_me:$LINENO: \$? = $ac_status" >&5 melunko@47: (exit $ac_status); } melunko@47: { (eval echo "$as_me:$LINENO: \"$ac_compiler -V &5\"") >&5 melunko@47: (eval $ac_compiler -V &5) 2>&5 melunko@47: ac_status=$? melunko@47: echo "$as_me:$LINENO: \$? = $ac_status" >&5 melunko@47: (exit $ac_status); } melunko@47: rm -f a.out melunko@47: melunko@47: # If we don't use `.F' as extension, the preprocessor is not run on the melunko@47: # input file. (Note that this only needs to work for GNU compilers.) melunko@47: ac_save_ext=$ac_ext melunko@47: ac_ext=F melunko@47: echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5 melunko@47: echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6 melunko@47: if test "${ac_cv_f77_compiler_gnu+set}" = set; then melunko@47: echo $ECHO_N "(cached) $ECHO_C" >&6 melunko@47: else melunko@47: cat >conftest.$ac_ext <<_ACEOF melunko@47: program main melunko@47: #ifndef __GNUC__ melunko@47: choke me melunko@47: #endif melunko@47: melunko@47: end melunko@47: _ACEOF melunko@47: rm -f conftest.$ac_objext melunko@47: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 melunko@47: (eval $ac_compile) 2>conftest.er1 melunko@47: ac_status=$? melunko@47: grep -v '^ *+' conftest.er1 >conftest.err melunko@47: rm -f conftest.er1 melunko@47: cat conftest.err >&5 melunko@47: echo "$as_me:$LINENO: \$? = $ac_status" >&5 melunko@47: (exit $ac_status); } && melunko@47: { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err' melunko@47: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 melunko@47: (eval $ac_try) 2>&5 melunko@47: ac_status=$? melunko@47: echo "$as_me:$LINENO: \$? = $ac_status" >&5 melunko@47: (exit $ac_status); }; } && melunko@47: { ac_try='test -s conftest.$ac_objext' melunko@47: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 melunko@47: (eval $ac_try) 2>&5 melunko@47: ac_status=$? melunko@47: echo "$as_me:$LINENO: \$? = $ac_status" >&5 melunko@47: (exit $ac_status); }; }; then melunko@47: ac_compiler_gnu=yes melunko@47: else melunko@47: echo "$as_me: failed program was:" >&5 melunko@47: sed 's/^/| /' conftest.$ac_ext >&5 melunko@47: melunko@47: ac_compiler_gnu=no melunko@47: fi melunko@47: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext melunko@47: ac_cv_f77_compiler_gnu=$ac_compiler_gnu melunko@47: melunko@47: fi melunko@47: echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5 melunko@47: echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6 melunko@47: ac_ext=$ac_save_ext melunko@47: ac_test_FFLAGS=${FFLAGS+set} melunko@47: ac_save_FFLAGS=$FFLAGS melunko@47: FFLAGS= melunko@47: echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5 melunko@47: echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6 melunko@47: if test "${ac_cv_prog_f77_g+set}" = set; then melunko@47: echo $ECHO_N "(cached) $ECHO_C" >&6 melunko@47: else melunko@47: FFLAGS=-g melunko@47: cat >conftest.$ac_ext <<_ACEOF melunko@47: program main melunko@47: melunko@47: end melunko@47: _ACEOF melunko@47: rm -f conftest.$ac_objext melunko@47: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 melunko@47: (eval $ac_compile) 2>conftest.er1 melunko@47: ac_status=$? melunko@47: grep -v '^ *+' conftest.er1 >conftest.err melunko@47: rm -f conftest.er1 melunko@47: cat conftest.err >&5 melunko@47: echo "$as_me:$LINENO: \$? = $ac_status" >&5 melunko@47: (exit $ac_status); } && melunko@47: { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err' melunko@47: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 melunko@47: (eval $ac_try) 2>&5 melunko@47: ac_status=$? melunko@47: echo "$as_me:$LINENO: \$? = $ac_status" >&5 melunko@47: (exit $ac_status); }; } && melunko@47: { ac_try='test -s conftest.$ac_objext' melunko@47: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 melunko@47: (eval $ac_try) 2>&5 melunko@47: ac_status=$? melunko@47: echo "$as_me:$LINENO: \$? = $ac_status" >&5 melunko@47: (exit $ac_status); }; }; then melunko@47: ac_cv_prog_f77_g=yes melunko@47: else melunko@47: echo "$as_me: failed program was:" >&5 melunko@47: sed 's/^/| /' conftest.$ac_ext >&5 melunko@47: melunko@47: ac_cv_prog_f77_g=no melunko@47: fi melunko@47: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext melunko@47: melunko@47: fi melunko@47: echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5 melunko@47: echo "${ECHO_T}$ac_cv_prog_f77_g" >&6 melunko@47: if test "$ac_test_FFLAGS" = set; then melunko@47: FFLAGS=$ac_save_FFLAGS melunko@47: elif test $ac_cv_prog_f77_g = yes; then melunko@47: if test "x$ac_cv_f77_compiler_gnu" = xyes; then melunko@47: FFLAGS="-g -O2" melunko@47: else melunko@47: FFLAGS="-g" melunko@47: fi melunko@47: else melunko@47: if test "x$ac_cv_f77_compiler_gnu" = xyes; then melunko@47: FFLAGS="-O2" melunko@47: else melunko@47: FFLAGS= melunko@47: fi melunko@47: fi melunko@47: melunko@47: G77=`test $ac_compiler_gnu = yes && echo yes` melunko@47: ac_ext=c melunko@47: ac_cpp='$CPP $CPPFLAGS' melunko@47: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' melunko@47: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' melunko@47: ac_compiler_gnu=$ac_cv_c_compiler_gnu melunko@47: melunko@47: melunko@47: melunko@47: # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! melunko@47: melunko@47: # find the maximum length of command line arguments melunko@47: echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 melunko@47: echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6 melunko@47: if test "${lt_cv_sys_max_cmd_len+set}" = set; then melunko@47: echo $ECHO_N "(cached) $ECHO_C" >&6 melunko@47: else melunko@47: i=0 melunko@47: teststring="ABCD" melunko@47: melunko@47: case $build_os in melunko@47: msdosdjgpp*) melunko@47: # On DJGPP, this test can blow up pretty badly due to problems in libc melunko@47: # (any single argument exceeding 2000 bytes causes a buffer overrun melunko@47: # during glob expansion). Even if it were fixed, the result of this melunko@47: # check would be larger than it should be. melunko@47: lt_cv_sys_max_cmd_len=12288; # 12K is about right melunko@47: ;; melunko@47: melunko@47: gnu*) melunko@47: # Under GNU Hurd, this test is not required because there is melunko@47: # no limit to the length of command line arguments. melunko@47: # Libtool will interpret -1 as no limit whatsoever melunko@47: lt_cv_sys_max_cmd_len=-1; melunko@47: ;; melunko@47: melunko@47: cygwin* | mingw*) melunko@47: # On Win9x/ME, this test blows up -- it succeeds, but takes melunko@47: # about 5 minutes as the teststring grows exponentially. melunko@47: # Worse, since 9x/ME are not pre-emptively multitasking, melunko@47: # you end up with a "frozen" computer, even though with patience melunko@47: # the test eventually succeeds (with a max line length of 256k). melunko@47: # Instead, let's just punt: use the minimum linelength reported by melunko@47: # all of the supported platforms: 8192 (on NT/2K/XP). melunko@47: lt_cv_sys_max_cmd_len=8192; melunko@47: ;; melunko@47: melunko@47: amigaos*) melunko@47: # On AmigaOS with pdksh, this test takes hours, literally. melunko@47: # So we just punt and use a minimum line length of 8192. melunko@47: lt_cv_sys_max_cmd_len=8192; melunko@47: ;; melunko@47: melunko@47: netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) melunko@47: # This has been around since 386BSD, at least. Likely further. melunko@47: if test -x /sbin/sysctl; then melunko@47: lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` melunko@47: elif test -x /usr/sbin/sysctl; then melunko@47: lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` melunko@47: else melunko@47: lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs melunko@47: fi melunko@47: # And add a safety zone melunko@47: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` melunko@47: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` melunko@47: ;; melunko@47: osf*) melunko@47: # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure melunko@47: # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not melunko@47: # nice to cause kernel panics so lets avoid the loop below. melunko@47: # First set a reasonable default. melunko@47: lt_cv_sys_max_cmd_len=16384 melunko@47: # melunko@47: if test -x /sbin/sysconfig; then melunko@47: case `/sbin/sysconfig -q proc exec_disable_arg_limit` in melunko@47: *1*) lt_cv_sys_max_cmd_len=-1 ;; melunko@47: esac melunko@47: fi melunko@47: ;; melunko@47: *) melunko@47: # If test is not a shell built-in, we'll probably end up computing a melunko@47: # maximum length that is only half of the actual maximum length, but melunko@47: # we can't tell. melunko@47: SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} melunko@47: while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \ melunko@47: = "XX$teststring") >/dev/null 2>&1 && melunko@47: new_result=`expr "X$teststring" : ".*" 2>&1` && melunko@47: lt_cv_sys_max_cmd_len=$new_result && melunko@47: test $i != 17 # 1/2 MB should be enough melunko@47: do melunko@47: i=`expr $i + 1` melunko@47: teststring=$teststring$teststring melunko@47: done melunko@47: teststring= melunko@47: # Add a significant safety factor because C++ compilers can tack on massive melunko@47: # amounts of additional arguments before passing them to the linker. melunko@47: # It appears as though 1/2 is a usable value. melunko@47: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` melunko@47: ;; melunko@47: esac melunko@47: melunko@47: fi melunko@47: melunko@47: if test -n $lt_cv_sys_max_cmd_len ; then melunko@47: echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 melunko@47: echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6 melunko@47: else melunko@47: echo "$as_me:$LINENO: result: none" >&5 melunko@47: echo "${ECHO_T}none" >&6 melunko@47: fi melunko@47: melunko@47: melunko@47: melunko@47: melunko@47: # Check for command to grab the raw symbol name followed by C symbol from nm. melunko@47: echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 melunko@47: echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6 melunko@47: if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then melunko@47: echo $ECHO_N "(cached) $ECHO_C" >&6 melunko@47: else melunko@47: melunko@47: # These are sane defaults that work on at least a few old systems. melunko@47: # [They come from Ultrix. What could be older than Ultrix?!! ;)] melunko@47: melunko@47: # Character class describing NM global symbol codes. melunko@47: symcode='[BCDEGRST]' melunko@47: melunko@47: # Regexp to match symbols that can be accessed directly from C. melunko@47: sympat='\([_A-Za-z][_A-Za-z0-9]*\)' melunko@47: melunko@47: # Transform an extracted symbol line into a proper C declaration melunko@47: lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" melunko@47: melunko@47: # Transform an extracted symbol line into symbol name and symbol address melunko@47: 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'" melunko@47: melunko@47: # Define system-specific variables. melunko@47: case $host_os in melunko@47: aix*) melunko@47: symcode='[BCDT]' melunko@47: ;; melunko@47: cygwin* | mingw* | pw32*) melunko@47: symcode='[ABCDGISTW]' melunko@47: ;; melunko@47: hpux*) # Its linker distinguishes data from code symbols melunko@47: if test "$host_cpu" = ia64; then melunko@47: symcode='[ABCDEGRST]' melunko@47: fi melunko@47: lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" melunko@47: 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'" melunko@47: ;; melunko@47: linux*) melunko@47: if test "$host_cpu" = ia64; then melunko@47: symcode='[ABCDGIRSTW]' melunko@47: lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" melunko@47: 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'" melunko@47: fi melunko@47: ;; melunko@47: irix* | nonstopux*) melunko@47: symcode='[BCDEGRST]' melunko@47: ;; melunko@47: osf*) melunko@47: symcode='[BCDEGQRST]' melunko@47: ;; melunko@47: solaris* | sysv5*) melunko@47: symcode='[BDRT]' melunko@47: ;; melunko@47: sysv4) melunko@47: symcode='[DFNSTU]' melunko@47: ;; melunko@47: esac melunko@47: melunko@47: # Handle CRLF in mingw tool chain melunko@47: opt_cr= melunko@47: case $build_os in melunko@47: mingw*) melunko@47: opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp melunko@47: ;; melunko@47: esac melunko@47: melunko@47: # If we're using GNU nm, then use its standard symbol codes. melunko@47: case `$NM -V 2>&1` in melunko@47: *GNU* | *'with BFD'*) melunko@47: symcode='[ABCDGIRSTW]' ;; melunko@47: esac melunko@47: melunko@47: # Try without a prefix undercore, then with it. melunko@47: for ac_symprfx in "" "_"; do melunko@47: melunko@47: # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. melunko@47: symxfrm="\\1 $ac_symprfx\\2 \\2" melunko@47: melunko@47: # Write the raw and C identifiers. melunko@47: lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" melunko@47: melunko@47: # Check to see that the pipe works correctly. melunko@47: pipe_works=no melunko@47: melunko@47: rm -f conftest* melunko@47: cat > conftest.$ac_ext <&5 melunko@47: (eval $ac_compile) 2>&5 melunko@47: ac_status=$? melunko@47: echo "$as_me:$LINENO: \$? = $ac_status" >&5 melunko@47: (exit $ac_status); }; then melunko@47: # Now try to grab the symbols. melunko@47: nlist=conftest.nm melunko@47: if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 melunko@47: (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 melunko@47: ac_status=$? melunko@47: echo "$as_me:$LINENO: \$? = $ac_status" >&5 melunko@47: (exit $ac_status); } && test -s "$nlist"; then melunko@47: # Try sorting and uniquifying the output. melunko@47: if sort "$nlist" | uniq > "$nlist"T; then melunko@47: mv -f "$nlist"T "$nlist" melunko@47: else melunko@47: rm -f "$nlist"T melunko@47: fi melunko@47: melunko@47: # Make sure that we snagged all the symbols we need. melunko@47: if grep ' nm_test_var$' "$nlist" >/dev/null; then melunko@47: if grep ' nm_test_func$' "$nlist" >/dev/null; then melunko@47: cat < conftest.$ac_ext melunko@47: #ifdef __cplusplus melunko@47: extern "C" { melunko@47: #endif melunko@47: melunko@47: EOF melunko@47: # Now generate the symbol file. melunko@47: eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' melunko@47: melunko@47: cat <> conftest.$ac_ext melunko@47: #if defined (__STDC__) && __STDC__ melunko@47: # define lt_ptr_t void * melunko@47: #else melunko@47: # define lt_ptr_t char * melunko@47: # define const melunko@47: #endif melunko@47: melunko@47: /* The mapping between symbol names and symbols. */ melunko@47: const struct { melunko@47: const char *name; melunko@47: lt_ptr_t address; melunko@47: } melunko@47: lt_preloaded_symbols[] = melunko@47: { melunko@47: EOF melunko@47: $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext melunko@47: cat <<\EOF >> conftest.$ac_ext melunko@47: {0, (lt_ptr_t) 0} melunko@47: }; melunko@47: melunko@47: #ifdef __cplusplus melunko@47: } melunko@47: #endif melunko@47: EOF melunko@47: # Now try linking the two files. melunko@47: mv conftest.$ac_objext conftstm.$ac_objext melunko@47: lt_save_LIBS="$LIBS" melunko@47: lt_save_CFLAGS="$CFLAGS" melunko@47: LIBS="conftstm.$ac_objext" melunko@47: CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" melunko@47: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 melunko@47: (eval $ac_link) 2>&5 melunko@47: ac_status=$? melunko@47: echo "$as_me:$LINENO: \$? = $ac_status" >&5 melunko@47: (exit $ac_status); } && test -s conftest${ac_exeext}; then melunko@47: pipe_works=yes melunko@47: fi melunko@47: LIBS="$lt_save_LIBS" melunko@47: CFLAGS="$lt_save_CFLAGS" melunko@47: else melunko@47: echo "cannot find nm_test_func in $nlist" >&5 melunko@47: fi melunko@47: else melunko@47: echo "cannot find nm_test_var in $nlist" >&5 melunko@47: fi melunko@47: else melunko@47: echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 melunko@47: fi melunko@47: else melunko@47: echo "$progname: failed program was:" >&5 melunko@47: cat conftest.$ac_ext >&5 melunko@47: fi melunko@47: rm -f conftest* conftst* melunko@47: melunko@47: # Do not use the global_symbol_pipe unless it works. melunko@47: if test "$pipe_works" = yes; then melunko@47: break melunko@47: else melunko@47: lt_cv_sys_global_symbol_pipe= melunko@47: fi melunko@47: done melunko@47: melunko@47: fi melunko@47: melunko@47: if test -z "$lt_cv_sys_global_symbol_pipe"; then melunko@47: lt_cv_sys_global_symbol_to_cdecl= melunko@47: fi melunko@47: if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then melunko@47: echo "$as_me:$LINENO: result: failed" >&5 melunko@47: echo "${ECHO_T}failed" >&6 melunko@47: else melunko@47: echo "$as_me:$LINENO: result: ok" >&5 melunko@47: echo "${ECHO_T}ok" >&6 melunko@47: fi melunko@47: melunko@47: echo "$as_me:$LINENO: checking for objdir" >&5 melunko@47: echo $ECHO_N "checking for objdir... $ECHO_C" >&6 melunko@47: if test "${lt_cv_objdir+set}" = set; then melunko@47: echo $ECHO_N "(cached) $ECHO_C" >&6 melunko@47: else melunko@47: rm -f .libs 2>/dev/null melunko@47: mkdir .libs 2>/dev/null melunko@47: if test -d .libs; then melunko@47: lt_cv_objdir=.libs melunko@47: else melunko@47: # MS-DOS does not allow filenames that begin with a dot. melunko@47: lt_cv_objdir=_libs melunko@47: fi melunko@47: rmdir .libs 2>/dev/null melunko@47: fi melunko@47: echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 melunko@47: echo "${ECHO_T}$lt_cv_objdir" >&6 melunko@47: objdir=$lt_cv_objdir melunko@47: melunko@47: melunko@47: melunko@47: melunko@47: melunko@47: case $host_os in melunko@47: aix3*) melunko@47: # AIX sometimes has problems with the GCC collect2 program. For some melunko@47: # reason, if we set the COLLECT_NAMES environment variable, the problems melunko@47: # vanish in a puff of smoke. melunko@47: if test "X${COLLECT_NAMES+set}" != Xset; then melunko@47: COLLECT_NAMES= melunko@47: export COLLECT_NAMES melunko@47: fi melunko@47: ;; melunko@47: esac melunko@47: melunko@47: # Sed substitution that helps us do robust quoting. It backslashifies melunko@47: # metacharacters that are still active within double-quoted strings. melunko@47: Xsed='sed -e 1s/^X//' melunko@47: sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' melunko@47: melunko@47: # Same as above, but do not quote variable references. melunko@47: double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' melunko@47: melunko@47: # Sed substitution to delay expansion of an escaped shell variable in a melunko@47: # double_quote_subst'ed string. melunko@47: delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' melunko@47: melunko@47: # Sed substitution to avoid accidental globbing in evaled expressions melunko@47: no_glob_subst='s/\*/\\\*/g' melunko@47: melunko@47: # Constants: melunko@47: rm="rm -f" melunko@47: melunko@47: # Global variables: melunko@47: default_ofile=libtool melunko@47: can_build_shared=yes melunko@47: melunko@47: # All known linkers require a `.a' archive for static linking (except MSVC, melunko@47: # which needs '.lib'). melunko@47: libext=a melunko@47: ltmain="$ac_aux_dir/ltmain.sh" melunko@47: ofile="$default_ofile" melunko@47: with_gnu_ld="$lt_cv_prog_gnu_ld" melunko@47: melunko@47: if test -n "$ac_tool_prefix"; then melunko@47: # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. melunko@47: set dummy ${ac_tool_prefix}ar; ac_word=$2 melunko@47: echo "$as_me:$LINENO: checking for $ac_word" >&5 melunko@47: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 melunko@47: if test "${ac_cv_prog_AR+set}" = set; then melunko@47: echo $ECHO_N "(cached) $ECHO_C" >&6 melunko@47: else melunko@47: if test -n "$AR"; then melunko@47: ac_cv_prog_AR="$AR" # Let the user override the test. melunko@47: else melunko@47: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR melunko@47: for as_dir in $PATH melunko@47: do melunko@47: IFS=$as_save_IFS melunko@47: test -z "$as_dir" && as_dir=. melunko@47: for ac_exec_ext in '' $ac_executable_extensions; do melunko@47: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then melunko@47: ac_cv_prog_AR="${ac_tool_prefix}ar" melunko@47: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 melunko@47: break 2 melunko@47: fi melunko@47: done melunko@47: done melunko@47: melunko@47: fi melunko@47: fi melunko@47: AR=$ac_cv_prog_AR melunko@47: if test -n "$AR"; then melunko@47: echo "$as_me:$LINENO: result: $AR" >&5 melunko@47: echo "${ECHO_T}$AR" >&6 melunko@47: else melunko@47: echo "$as_me:$LINENO: result: no" >&5 melunko@47: echo "${ECHO_T}no" >&6 melunko@47: fi melunko@47: melunko@47: fi melunko@47: if test -z "$ac_cv_prog_AR"; then melunko@47: ac_ct_AR=$AR melunko@47: # Extract the first word of "ar", so it can be a program name with args. melunko@47: set dummy ar; ac_word=$2 melunko@47: echo "$as_me:$LINENO: checking for $ac_word" >&5 melunko@47: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 melunko@47: if test "${ac_cv_prog_ac_ct_AR+set}" = set; then melunko@47: echo $ECHO_N "(cached) $ECHO_C" >&6 melunko@47: else melunko@47: if test -n "$ac_ct_AR"; then melunko@47: ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. melunko@47: else melunko@47: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR melunko@47: for as_dir in $PATH melunko@47: do melunko@47: IFS=$as_save_IFS melunko@47: test -z "$as_dir" && as_dir=. melunko@47: for ac_exec_ext in '' $ac_executable_extensions; do melunko@47: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then melunko@47: ac_cv_prog_ac_ct_AR="ar" melunko@47: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 melunko@47: break 2 melunko@47: fi melunko@47: done melunko@47: done melunko@47: melunko@47: test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false" melunko@47: fi melunko@47: fi melunko@47: ac_ct_AR=$ac_cv_prog_ac_ct_AR melunko@47: if test -n "$ac_ct_AR"; then melunko@47: echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 melunko@47: echo "${ECHO_T}$ac_ct_AR" >&6 melunko@47: else melunko@47: echo "$as_me:$LINENO: result: no" >&5 melunko@47: echo "${ECHO_T}no" >&6 melunko@47: fi melunko@47: melunko@47: AR=$ac_ct_AR melunko@47: else melunko@47: AR="$ac_cv_prog_AR" melunko@47: fi melunko@47: melunko@47: if test -n "$ac_tool_prefix"; then melunko@47: # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. melunko@47: set dummy ${ac_tool_prefix}ranlib; ac_word=$2 melunko@47: echo "$as_me:$LINENO: checking for $ac_word" >&5 melunko@47: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 melunko@47: if test "${ac_cv_prog_RANLIB+set}" = set; then melunko@47: echo $ECHO_N "(cached) $ECHO_C" >&6 melunko@47: else melunko@47: if test -n "$RANLIB"; then melunko@47: ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. melunko@47: else melunko@47: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR melunko@47: for as_dir in $PATH melunko@47: do melunko@47: IFS=$as_save_IFS melunko@47: test -z "$as_dir" && as_dir=. melunko@47: for ac_exec_ext in '' $ac_executable_extensions; do melunko@47: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then melunko@47: ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" melunko@47: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 melunko@47: break 2 melunko@47: fi melunko@47: done melunko@47: done melunko@47: melunko@47: fi melunko@47: fi melunko@47: RANLIB=$ac_cv_prog_RANLIB melunko@47: if test -n "$RANLIB"; then melunko@47: echo "$as_me:$LINENO: result: $RANLIB" >&5 melunko@47: echo "${ECHO_T}$RANLIB" >&6 melunko@47: else melunko@47: echo "$as_me:$LINENO: result: no" >&5 melunko@47: echo "${ECHO_T}no" >&6 melunko@47: fi melunko@47: melunko@47: fi melunko@47: if test -z "$ac_cv_prog_RANLIB"; then melunko@47: ac_ct_RANLIB=$RANLIB melunko@47: # Extract the first word of "ranlib", so it can be a program name with args. melunko@47: set dummy ranlib; ac_word=$2 melunko@47: echo "$as_me:$LINENO: checking for $ac_word" >&5 melunko@47: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 melunko@47: if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then melunko@47: echo $ECHO_N "(cached) $ECHO_C" >&6 melunko@47: else melunko@47: if test -n "$ac_ct_RANLIB"; then melunko@47: ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. melunko@47: else melunko@47: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR melunko@47: for as_dir in $PATH melunko@47: do melunko@47: IFS=$as_save_IFS melunko@47: test -z "$as_dir" && as_dir=. melunko@47: for ac_exec_ext in '' $ac_executable_extensions; do melunko@47: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then melunko@47: ac_cv_prog_ac_ct_RANLIB="ranlib" melunko@47: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 melunko@47: break 2 melunko@47: fi melunko@47: done melunko@47: done melunko@47: melunko@47: test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" melunko@47: fi melunko@47: fi melunko@47: ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB melunko@47: if test -n "$ac_ct_RANLIB"; then melunko@47: echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 melunko@47: echo "${ECHO_T}$ac_ct_RANLIB" >&6 melunko@47: else melunko@47: echo "$as_me:$LINENO: result: no" >&5 melunko@47: echo "${ECHO_T}no" >&6 melunko@47: fi melunko@47: melunko@47: RANLIB=$ac_ct_RANLIB melunko@47: else melunko@47: RANLIB="$ac_cv_prog_RANLIB" melunko@47: fi melunko@47: melunko@47: if test -n "$ac_tool_prefix"; then melunko@47: # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. melunko@47: set dummy ${ac_tool_prefix}strip; ac_word=$2 melunko@47: echo "$as_me:$LINENO: checking for $ac_word" >&5 melunko@47: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 melunko@47: if test "${ac_cv_prog_STRIP+set}" = set; then melunko@47: echo $ECHO_N "(cached) $ECHO_C" >&6 melunko@47: else melunko@47: if test -n "$STRIP"; then melunko@47: ac_cv_prog_STRIP="$STRIP" # Let the user override the test. melunko@47: else melunko@47: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR melunko@47: for as_dir in $PATH melunko@47: do melunko@47: IFS=$as_save_IFS melunko@47: test -z "$as_dir" && as_dir=. melunko@47: for ac_exec_ext in '' $ac_executable_extensions; do melunko@47: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then melunko@47: ac_cv_prog_STRIP="${ac_tool_prefix}strip" melunko@47: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 melunko@47: break 2 melunko@47: fi melunko@47: done melunko@47: done melunko@47: melunko@47: fi melunko@47: fi melunko@47: STRIP=$ac_cv_prog_STRIP melunko@47: if test -n "$STRIP"; then melunko@47: echo "$as_me:$LINENO: result: $STRIP" >&5 melunko@47: echo "${ECHO_T}$STRIP" >&6 melunko@47: else melunko@47: echo "$as_me:$LINENO: result: no" >&5 melunko@47: echo "${ECHO_T}no" >&6 melunko@47: fi melunko@47: melunko@47: fi melunko@47: if test -z "$ac_cv_prog_STRIP"; then melunko@47: ac_ct_STRIP=$STRIP melunko@47: # Extract the first word of "strip", so it can be a program name with args. melunko@47: set dummy strip; ac_word=$2 melunko@47: echo "$as_me:$LINENO: checking for $ac_word" >&5 melunko@47: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 melunko@47: if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then melunko@47: echo $ECHO_N "(cached) $ECHO_C" >&6 melunko@47: else melunko@47: if test -n "$ac_ct_STRIP"; then melunko@47: ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. melunko@47: else melunko@47: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR melunko@47: for as_dir in $PATH melunko@47: do melunko@47: IFS=$as_save_IFS melunko@47: test -z "$as_dir" && as_dir=. melunko@47: for ac_exec_ext in '' $ac_executable_extensions; do melunko@47: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then melunko@47: ac_cv_prog_ac_ct_STRIP="strip" melunko@47: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 melunko@47: break 2 melunko@47: fi melunko@47: done melunko@47: done melunko@47: melunko@47: test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" melunko@47: fi melunko@47: fi melunko@47: ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP melunko@47: if test -n "$ac_ct_STRIP"; then melunko@47: echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 melunko@47: echo "${ECHO_T}$ac_ct_STRIP" >&6 melunko@47: else melunko@47: echo "$as_me:$LINENO: result: no" >&5 melunko@47: echo "${ECHO_T}no" >&6 melunko@47: fi melunko@47: melunko@47: STRIP=$ac_ct_STRIP melunko@47: else melunko@47: STRIP="$ac_cv_prog_STRIP" melunko@47: fi melunko@47: melunko@47: melunko@47: old_CC="$CC" melunko@47: old_CFLAGS="$CFLAGS" melunko@47: melunko@47: # Set sane defaults for various variables melunko@47: test -z "$AR" && AR=ar melunko@47: test -z "$AR_FLAGS" && AR_FLAGS=cru melunko@47: test -z "$AS" && AS=as melunko@47: test -z "$CC" && CC=cc melunko@47: test -z "$LTCC" && LTCC=$CC melunko@47: test -z "$DLLTOOL" && DLLTOOL=dlltool melunko@47: test -z "$LD" && LD=ld melunko@47: test -z "$LN_S" && LN_S="ln -s" melunko@47: test -z "$MAGIC_CMD" && MAGIC_CMD=file melunko@47: test -z "$NM" && NM=nm melunko@47: test -z "$SED" && SED=sed melunko@47: test -z "$OBJDUMP" && OBJDUMP=objdump melunko@47: test -z "$RANLIB" && RANLIB=: melunko@47: test -z "$STRIP" && STRIP=: melunko@47: test -z "$ac_objext" && ac_objext=o melunko@47: melunko@47: # Determine commands to create old-style static archives. melunko@47: old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs' melunko@47: old_postinstall_cmds='chmod 644 $oldlib' melunko@47: old_postuninstall_cmds= melunko@47: melunko@47: if test -n "$RANLIB"; then melunko@47: case $host_os in melunko@47: openbsd*) melunko@47: old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds" melunko@47: ;; melunko@47: *) melunko@47: old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds" melunko@47: ;; melunko@47: esac melunko@47: old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" melunko@47: fi melunko@47: melunko@47: for cc_temp in $compiler""; do melunko@47: case $cc_temp in melunko@47: compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; melunko@47: distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; melunko@47: \-*) ;; melunko@47: *) break;; melunko@47: esac melunko@47: done melunko@47: cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` melunko@47: melunko@47: melunko@47: # Only perform the check for file, if the check method requires it melunko@47: case $deplibs_check_method in melunko@47: file_magic*) melunko@47: if test "$file_magic_cmd" = '$MAGIC_CMD'; then melunko@47: echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 melunko@47: echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6 melunko@47: if test "${lt_cv_path_MAGIC_CMD+set}" = set; then melunko@47: echo $ECHO_N "(cached) $ECHO_C" >&6 melunko@47: else melunko@47: case $MAGIC_CMD in melunko@47: [\\/*] | ?:[\\/]*) melunko@47: lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. melunko@47: ;; melunko@47: *) melunko@47: lt_save_MAGIC_CMD="$MAGIC_CMD" melunko@47: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR melunko@47: ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" melunko@47: for ac_dir in $ac_dummy; do melunko@47: IFS="$lt_save_ifs" melunko@47: test -z "$ac_dir" && ac_dir=. melunko@47: if test -f $ac_dir/${ac_tool_prefix}file; then melunko@47: lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" melunko@47: if test -n "$file_magic_test_file"; then melunko@47: case $deplibs_check_method in melunko@47: "file_magic "*) melunko@47: file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` melunko@47: MAGIC_CMD="$lt_cv_path_MAGIC_CMD" melunko@47: if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | melunko@47: $EGREP "$file_magic_regex" > /dev/null; then melunko@47: : melunko@47: else melunko@47: cat <&2 melunko@47: melunko@47: *** Warning: the command libtool uses to detect shared libraries, melunko@47: *** $file_magic_cmd, produces output that libtool cannot recognize. melunko@47: *** The result is that libtool may fail to recognize shared libraries melunko@47: *** as such. This will affect the creation of libtool libraries that melunko@47: *** depend on shared libraries, but programs linked with such libtool melunko@47: *** libraries will work regardless of this problem. Nevertheless, you melunko@47: *** may want to report the problem to your system manager and/or to melunko@47: *** bug-libtool@gnu.org melunko@47: melunko@47: EOF melunko@47: fi ;; melunko@47: esac melunko@47: fi melunko@47: break melunko@47: fi melunko@47: done melunko@47: IFS="$lt_save_ifs" melunko@47: MAGIC_CMD="$lt_save_MAGIC_CMD" melunko@47: ;; melunko@47: esac melunko@47: fi melunko@47: melunko@47: MAGIC_CMD="$lt_cv_path_MAGIC_CMD" melunko@47: if test -n "$MAGIC_CMD"; then melunko@47: echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 melunko@47: echo "${ECHO_T}$MAGIC_CMD" >&6 melunko@47: else melunko@47: echo "$as_me:$LINENO: result: no" >&5 melunko@47: echo "${ECHO_T}no" >&6 melunko@47: fi melunko@47: melunko@47: if test -z "$lt_cv_path_MAGIC_CMD"; then melunko@47: if test -n "$ac_tool_prefix"; then melunko@47: echo "$as_me:$LINENO: checking for file" >&5 melunko@47: echo $ECHO_N "checking for file... $ECHO_C" >&6 melunko@47: if test "${lt_cv_path_MAGIC_CMD+set}" = set; then melunko@47: echo $ECHO_N "(cached) $ECHO_C" >&6 melunko@47: else melunko@47: case $MAGIC_CMD in melunko@47: [\\/*] | ?:[\\/]*) melunko@47: lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. melunko@47: ;; melunko@47: *) melunko@47: lt_save_MAGIC_CMD="$MAGIC_CMD" melunko@47: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR melunko@47: ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" melunko@47: for ac_dir in $ac_dummy; do melunko@47: IFS="$lt_save_ifs" melunko@47: test -z "$ac_dir" && ac_dir=. melunko@47: if test -f $ac_dir/file; then melunko@47: lt_cv_path_MAGIC_CMD="$ac_dir/file" melunko@47: if test -n "$file_magic_test_file"; then melunko@47: case $deplibs_check_method in melunko@47: "file_magic "*) melunko@47: file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` melunko@47: MAGIC_CMD="$lt_cv_path_MAGIC_CMD" melunko@47: if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | melunko@47: $EGREP "$file_magic_regex" > /dev/null; then melunko@47: : melunko@47: else melunko@47: cat <&2 melunko@47: melunko@47: *** Warning: the command libtool uses to detect shared libraries, melunko@47: *** $file_magic_cmd, produces output that libtool cannot recognize. melunko@47: *** The result is that libtool may fail to recognize shared libraries melunko@47: *** as such. This will affect the creation of libtool libraries that melunko@47: *** depend on shared libraries, but programs linked with such libtool melunko@47: *** libraries will work regardless of this problem. Nevertheless, you melunko@47: *** may want to report the problem to your system manager and/or to melunko@47: *** bug-libtool@gnu.org melunko@47: melunko@47: EOF melunko@47: fi ;; melunko@47: esac melunko@47: fi melunko@47: break melunko@47: fi melunko@47: done melunko@47: IFS="$lt_save_ifs" melunko@47: MAGIC_CMD="$lt_save_MAGIC_CMD" melunko@47: ;; melunko@47: esac melunko@47: fi melunko@47: melunko@47: MAGIC_CMD="$lt_cv_path_MAGIC_CMD" melunko@47: if test -n "$MAGIC_CMD"; then melunko@47: echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 melunko@47: echo "${ECHO_T}$MAGIC_CMD" >&6 melunko@47: else melunko@47: echo "$as_me:$LINENO: result: no" >&5 melunko@47: echo "${ECHO_T}no" >&6 melunko@47: fi melunko@47: melunko@47: else melunko@47: MAGIC_CMD=: melunko@47: fi melunko@47: fi melunko@47: melunko@47: fi melunko@47: ;; melunko@47: esac melunko@47: melunko@47: enable_dlopen=no melunko@47: enable_win32_dll=no melunko@47: melunko@47: # Check whether --enable-libtool-lock or --disable-libtool-lock was given. melunko@47: if test "${enable_libtool_lock+set}" = set; then melunko@47: enableval="$enable_libtool_lock" melunko@47: melunko@47: fi; melunko@47: test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes melunko@47: melunko@47: melunko@47: # Check whether --with-pic or --without-pic was given. melunko@47: if test "${with_pic+set}" = set; then melunko@47: withval="$with_pic" melunko@47: pic_mode="$withval" melunko@47: else melunko@47: pic_mode=default melunko@47: fi; melunko@47: test -z "$pic_mode" && pic_mode=default melunko@47: melunko@47: # Use C for the default configuration in the libtool script melunko@47: tagname= melunko@47: lt_save_CC="$CC" melunko@47: ac_ext=c melunko@47: ac_cpp='$CPP $CPPFLAGS' melunko@47: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' melunko@47: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' melunko@47: ac_compiler_gnu=$ac_cv_c_compiler_gnu melunko@47: melunko@47: melunko@47: # Source file extension for C test sources. melunko@47: ac_ext=c melunko@47: melunko@47: # Object file extension for compiled C test sources. melunko@47: objext=o melunko@47: objext=$objext melunko@47: melunko@47: # Code to be used in simple compile tests melunko@47: lt_simple_compile_test_code="int some_variable = 0;\n" melunko@47: melunko@47: # Code to be used in simple link tests melunko@47: lt_simple_link_test_code='int main(){return(0);}\n' melunko@47: melunko@47: melunko@47: # If no C compiler was specified, use CC. melunko@47: LTCC=${LTCC-"$CC"} melunko@47: melunko@47: # Allow CC to be a program name with arguments. melunko@47: compiler=$CC melunko@47: melunko@47: melunko@47: # save warnings/boilerplate of simple test code melunko@47: ac_outfile=conftest.$ac_objext melunko@47: printf "$lt_simple_compile_test_code" >conftest.$ac_ext melunko@47: eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err melunko@47: _lt_compiler_boilerplate=`cat conftest.err` melunko@47: $rm conftest* melunko@47: melunko@47: ac_outfile=conftest.$ac_objext melunko@47: printf "$lt_simple_link_test_code" >conftest.$ac_ext melunko@47: eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err melunko@47: _lt_linker_boilerplate=`cat conftest.err` melunko@47: $rm conftest* melunko@47: melunko@47: melunko@47: # melunko@47: # Check for any special shared library compilation flags. melunko@47: # melunko@47: lt_prog_cc_shlib= melunko@47: if test "$GCC" = no; then melunko@47: case $host_os in melunko@47: sco3.2v5*) melunko@47: lt_prog_cc_shlib='-belf' melunko@47: ;; melunko@47: esac melunko@47: fi melunko@47: if test -n "$lt_prog_cc_shlib"; then melunko@47: { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5 melunko@47: echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;} melunko@47: if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then : melunko@47: else melunko@47: { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5 melunko@47: echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;} melunko@47: lt_cv_prog_cc_can_build_shared=no melunko@47: fi melunko@47: fi melunko@47: melunko@47: melunko@47: # melunko@47: # Check to make sure the static flag actually works. melunko@47: # melunko@47: echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5 melunko@47: echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6 melunko@47: if test "${lt_prog_compiler_static_works+set}" = set; then melunko@47: echo $ECHO_N "(cached) $ECHO_C" >&6 melunko@47: else melunko@47: lt_prog_compiler_static_works=no melunko@47: save_LDFLAGS="$LDFLAGS" melunko@47: LDFLAGS="$LDFLAGS $lt_prog_compiler_static" melunko@47: printf "$lt_simple_link_test_code" > conftest.$ac_ext melunko@47: if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then melunko@47: # The linker can only warn and ignore the option if not recognized melunko@47: # So say no if there are warnings melunko@47: if test -s conftest.err; then melunko@47: # Append any errors to the config.log. melunko@47: cat conftest.err 1>&5 melunko@47: $echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp melunko@47: $SED '/^$/d' conftest.err >conftest.er2 melunko@47: if diff conftest.exp conftest.er2 >/dev/null; then melunko@47: lt_prog_compiler_static_works=yes melunko@47: fi melunko@47: else melunko@47: lt_prog_compiler_static_works=yes melunko@47: fi melunko@47: fi melunko@47: $rm conftest* melunko@47: LDFLAGS="$save_LDFLAGS" melunko@47: melunko@47: fi melunko@47: echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5 melunko@47: echo "${ECHO_T}$lt_prog_compiler_static_works" >&6 melunko@47: melunko@47: if test x"$lt_prog_compiler_static_works" = xyes; then melunko@47: : melunko@47: else melunko@47: lt_prog_compiler_static= melunko@47: fi melunko@47: melunko@47: melunko@47: melunko@47: melunko@47: lt_prog_compiler_no_builtin_flag= melunko@47: melunko@47: if test "$GCC" = yes; then melunko@47: lt_prog_compiler_no_builtin_flag=' -fno-builtin' melunko@47: melunko@47: melunko@47: echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 melunko@47: echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6 melunko@47: if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then melunko@47: echo $ECHO_N "(cached) $ECHO_C" >&6 melunko@47: else melunko@47: lt_cv_prog_compiler_rtti_exceptions=no melunko@47: ac_outfile=conftest.$ac_objext melunko@47: printf "$lt_simple_compile_test_code" > conftest.$ac_ext melunko@47: lt_compiler_flag="-fno-rtti -fno-exceptions" melunko@47: # Insert the option either (1) after the last *FLAGS variable, or melunko@47: # (2) before a word containing "conftest.", or (3) at the end. melunko@47: # Note that $ac_compile itself does not contain backslashes and begins melunko@47: # with a dollar sign (not a hyphen), so the echo should work correctly. melunko@47: # The option is referenced via a variable to avoid confusing sed. melunko@47: lt_compile=`echo "$ac_compile" | $SED \ melunko@47: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ melunko@47: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ melunko@47: -e 's:$: $lt_compiler_flag:'` melunko@47: (eval echo "\"\$as_me:6427: $lt_compile\"" >&5) melunko@47: (eval "$lt_compile" 2>conftest.err) melunko@47: ac_status=$? melunko@47: cat conftest.err >&5 melunko@47: echo "$as_me:6431: \$? = $ac_status" >&5 melunko@47: if (exit $ac_status) && test -s "$ac_outfile"; then melunko@47: # The compiler can only warn and ignore the option if not recognized melunko@47: # So say no if there are warnings other than the usual output. melunko@47: $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp melunko@47: $SED '/^$/d' conftest.err >conftest.er2 melunko@47: if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then melunko@47: lt_cv_prog_compiler_rtti_exceptions=yes melunko@47: fi melunko@47: fi melunko@47: $rm conftest* melunko@47: melunko@47: fi melunko@47: echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 melunko@47: echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6 melunko@47: melunko@47: if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then melunko@47: lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" melunko@47: else melunko@47: : melunko@47: fi melunko@47: melunko@47: fi melunko@47: melunko@47: lt_prog_compiler_wl= melunko@47: lt_prog_compiler_pic= melunko@47: lt_prog_compiler_static= melunko@47: melunko@47: echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 melunko@47: echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 melunko@47: melunko@47: if test "$GCC" = yes; then melunko@47: lt_prog_compiler_wl='-Wl,' melunko@47: lt_prog_compiler_static='-static' melunko@47: melunko@47: case $host_os in melunko@47: aix*) melunko@47: # All AIX code is PIC. melunko@47: if test "$host_cpu" = ia64; then melunko@47: # AIX 5 now supports IA64 processor melunko@47: lt_prog_compiler_static='-Bstatic' melunko@47: fi melunko@47: ;; melunko@47: melunko@47: amigaos*) melunko@47: # FIXME: we need at least 68020 code to build shared libraries, but melunko@47: # adding the `-m68020' flag to GCC prevents building anything better, melunko@47: # like `-m68040'. melunko@47: lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' melunko@47: ;; melunko@47: melunko@47: beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) melunko@47: # PIC is the default for these OSes. melunko@47: ;; melunko@47: melunko@47: mingw* | pw32* | os2*) melunko@47: # This hack is so that the source file can tell whether it is being melunko@47: # built for inclusion in a dll (and should export symbols for example). melunko@47: lt_prog_compiler_pic='-DDLL_EXPORT' melunko@47: ;; melunko@47: melunko@47: darwin* | rhapsody*) melunko@47: # PIC is the default on this platform melunko@47: # Common symbols not allowed in MH_DYLIB files melunko@47: lt_prog_compiler_pic='-fno-common' melunko@47: ;; melunko@47: melunko@47: msdosdjgpp*) melunko@47: # Just because we use GCC doesn't mean we suddenly get shared libraries melunko@47: # on systems that don't support them. melunko@47: lt_prog_compiler_can_build_shared=no melunko@47: enable_shared=no melunko@47: ;; melunko@47: melunko@47: sysv4*MP*) melunko@47: if test -d /usr/nec; then melunko@47: lt_prog_compiler_pic=-Kconform_pic melunko@47: fi melunko@47: ;; melunko@47: melunko@47: hpux*) melunko@47: # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but melunko@47: # not for PA HP-UX. melunko@47: case $host_cpu in melunko@47: hppa*64*|ia64*) melunko@47: # +Z the default melunko@47: ;; melunko@47: *) melunko@47: lt_prog_compiler_pic='-fPIC' melunko@47: ;; melunko@47: esac melunko@47: ;; melunko@47: melunko@47: *) melunko@47: lt_prog_compiler_pic='-fPIC' melunko@47: ;; melunko@47: esac melunko@47: else melunko@47: # PORTME Check for flag to pass linker flags through the system compiler. melunko@47: case $host_os in melunko@47: aix*) melunko@47: lt_prog_compiler_wl='-Wl,' melunko@47: if test "$host_cpu" = ia64; then melunko@47: # AIX 5 now supports IA64 processor melunko@47: lt_prog_compiler_static='-Bstatic' melunko@47: else melunko@47: lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' melunko@47: fi melunko@47: ;; melunko@47: darwin*) melunko@47: # PIC is the default on this platform melunko@47: # Common symbols not allowed in MH_DYLIB files melunko@47: case $cc_basename in melunko@47: xlc*) melunko@47: lt_prog_compiler_pic='-qnocommon' melunko@47: lt_prog_compiler_wl='-Wl,' melunko@47: ;; melunko@47: esac melunko@47: ;; melunko@47: melunko@47: mingw* | pw32* | os2*) melunko@47: # This hack is so that the source file can tell whether it is being melunko@47: # built for inclusion in a dll (and should export symbols for example). melunko@47: lt_prog_compiler_pic='-DDLL_EXPORT' melunko@47: ;; melunko@47: melunko@47: hpux9* | hpux10* | hpux11*) melunko@47: lt_prog_compiler_wl='-Wl,' melunko@47: # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but melunko@47: # not for PA HP-UX. melunko@47: case $host_cpu in melunko@47: hppa*64*|ia64*) melunko@47: # +Z the default melunko@47: ;; melunko@47: *) melunko@47: lt_prog_compiler_pic='+Z' melunko@47: ;; melunko@47: esac melunko@47: # Is there a better lt_prog_compiler_static that works with the bundled CC? melunko@47: lt_prog_compiler_static='${wl}-a ${wl}archive' melunko@47: ;; melunko@47: melunko@47: irix5* | irix6* | nonstopux*) melunko@47: lt_prog_compiler_wl='-Wl,' melunko@47: # PIC (with -KPIC) is the default. melunko@47: lt_prog_compiler_static='-non_shared' melunko@47: ;; melunko@47: melunko@47: newsos6) melunko@47: lt_prog_compiler_pic='-KPIC' melunko@47: lt_prog_compiler_static='-Bstatic' melunko@47: ;; melunko@47: melunko@47: linux*) melunko@47: case $cc_basename in melunko@47: icc* | ecc*) melunko@47: lt_prog_compiler_wl='-Wl,' melunko@47: lt_prog_compiler_pic='-KPIC' melunko@47: lt_prog_compiler_static='-static' melunko@47: ;; melunko@47: pgcc* | pgf77* | pgf90* | pgf95*) melunko@47: # Portland Group compilers (*not* the Pentium gcc compiler, melunko@47: # which looks to be a dead project) melunko@47: lt_prog_compiler_wl='-Wl,' melunko@47: lt_prog_compiler_pic='-fpic' melunko@47: lt_prog_compiler_static='-Bstatic' melunko@47: ;; melunko@47: ccc*) melunko@47: lt_prog_compiler_wl='-Wl,' melunko@47: # All Alpha code is PIC. melunko@47: lt_prog_compiler_static='-non_shared' melunko@47: ;; melunko@47: esac melunko@47: ;; melunko@47: melunko@47: osf3* | osf4* | osf5*) melunko@47: lt_prog_compiler_wl='-Wl,' melunko@47: # All OSF/1 code is PIC. melunko@47: lt_prog_compiler_static='-non_shared' melunko@47: ;; melunko@47: melunko@47: sco3.2v5*) melunko@47: lt_prog_compiler_pic='-Kpic' melunko@47: lt_prog_compiler_static='-dn' melunko@47: ;; melunko@47: melunko@47: solaris*) melunko@47: lt_prog_compiler_pic='-KPIC' melunko@47: lt_prog_compiler_static='-Bstatic' melunko@47: case $cc_basename in melunko@47: f77* | f90* | f95*) melunko@47: lt_prog_compiler_wl='-Qoption ld ';; melunko@47: *) melunko@47: lt_prog_compiler_wl='-Wl,';; melunko@47: esac melunko@47: ;; melunko@47: melunko@47: sunos4*) melunko@47: lt_prog_compiler_wl='-Qoption ld ' melunko@47: lt_prog_compiler_pic='-PIC' melunko@47: lt_prog_compiler_static='-Bstatic' melunko@47: ;; melunko@47: melunko@47: sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) melunko@47: lt_prog_compiler_wl='-Wl,' melunko@47: lt_prog_compiler_pic='-KPIC' melunko@47: lt_prog_compiler_static='-Bstatic' melunko@47: ;; melunko@47: melunko@47: sysv4*MP*) melunko@47: if test -d /usr/nec ;then melunko@47: lt_prog_compiler_pic='-Kconform_pic' melunko@47: lt_prog_compiler_static='-Bstatic' melunko@47: fi melunko@47: ;; melunko@47: melunko@47: unicos*) melunko@47: lt_prog_compiler_wl='-Wl,' melunko@47: lt_prog_compiler_can_build_shared=no melunko@47: ;; melunko@47: melunko@47: uts4*) melunko@47: lt_prog_compiler_pic='-pic' melunko@47: lt_prog_compiler_static='-Bstatic' melunko@47: ;; melunko@47: melunko@47: *) melunko@47: lt_prog_compiler_can_build_shared=no melunko@47: ;; melunko@47: esac melunko@47: fi melunko@47: melunko@47: echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 melunko@47: echo "${ECHO_T}$lt_prog_compiler_pic" >&6 melunko@47: melunko@47: # melunko@47: # Check to make sure the PIC flag actually works. melunko@47: # melunko@47: if test -n "$lt_prog_compiler_pic"; then melunko@47: melunko@47: echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 melunko@47: echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6 melunko@47: if test "${lt_prog_compiler_pic_works+set}" = set; then melunko@47: echo $ECHO_N "(cached) $ECHO_C" >&6 melunko@47: else melunko@47: lt_prog_compiler_pic_works=no melunko@47: ac_outfile=conftest.$ac_objext melunko@47: printf "$lt_simple_compile_test_code" > conftest.$ac_ext melunko@47: lt_compiler_flag="$lt_prog_compiler_pic -DPIC" melunko@47: # Insert the option either (1) after the last *FLAGS variable, or melunko@47: # (2) before a word containing "conftest.", or (3) at the end. melunko@47: # Note that $ac_compile itself does not contain backslashes and begins melunko@47: # with a dollar sign (not a hyphen), so the echo should work correctly. melunko@47: # The option is referenced via a variable to avoid confusing sed. melunko@47: lt_compile=`echo "$ac_compile" | $SED \ melunko@47: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ melunko@47: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ melunko@47: -e 's:$: $lt_compiler_flag:'` melunko@47: (eval echo "\"\$as_me:6689: $lt_compile\"" >&5) melunko@47: (eval "$lt_compile" 2>conftest.err) melunko@47: ac_status=$? melunko@47: cat conftest.err >&5 melunko@47: echo "$as_me:6693: \$? = $ac_status" >&5 melunko@47: if (exit $ac_status) && test -s "$ac_outfile"; then melunko@47: # The compiler can only warn and ignore the option if not recognized melunko@47: # So say no if there are warnings other than the usual output. melunko@47: $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp melunko@47: $SED '/^$/d' conftest.err >conftest.er2 melunko@47: if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then melunko@47: lt_prog_compiler_pic_works=yes melunko@47: fi melunko@47: fi melunko@47: $rm conftest* melunko@47: melunko@47: fi melunko@47: echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5 melunko@47: echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6 melunko@47: melunko@47: if test x"$lt_prog_compiler_pic_works" = xyes; then melunko@47: case $lt_prog_compiler_pic in melunko@47: "" | " "*) ;; melunko@47: *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; melunko@47: esac melunko@47: else melunko@47: lt_prog_compiler_pic= melunko@47: lt_prog_compiler_can_build_shared=no melunko@47: fi melunko@47: melunko@47: fi melunko@47: case $host_os in melunko@47: # For platforms which do not support PIC, -DPIC is meaningless: melunko@47: *djgpp*) melunko@47: lt_prog_compiler_pic= melunko@47: ;; melunko@47: *) melunko@47: lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" melunko@47: ;; melunko@47: esac melunko@47: melunko@47: echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 melunko@47: echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 melunko@47: if test "${lt_cv_prog_compiler_c_o+set}" = set; then melunko@47: echo $ECHO_N "(cached) $ECHO_C" >&6 melunko@47: else melunko@47: lt_cv_prog_compiler_c_o=no melunko@47: $rm -r conftest 2>/dev/null melunko@47: mkdir conftest melunko@47: cd conftest melunko@47: mkdir out melunko@47: printf "$lt_simple_compile_test_code" > conftest.$ac_ext melunko@47: melunko@47: lt_compiler_flag="-o out/conftest2.$ac_objext" melunko@47: # Insert the option either (1) after the last *FLAGS variable, or melunko@47: # (2) before a word containing "conftest.", or (3) at the end. melunko@47: # Note that $ac_compile itself does not contain backslashes and begins melunko@47: # with a dollar sign (not a hyphen), so the echo should work correctly. melunko@47: lt_compile=`echo "$ac_compile" | $SED \ melunko@47: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ melunko@47: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ melunko@47: -e 's:$: $lt_compiler_flag:'` melunko@47: (eval echo "\"\$as_me:6751: $lt_compile\"" >&5) melunko@47: (eval "$lt_compile" 2>out/conftest.err) melunko@47: ac_status=$? melunko@47: cat out/conftest.err >&5 melunko@47: echo "$as_me:6755: \$? = $ac_status" >&5 melunko@47: if (exit $ac_status) && test -s out/conftest2.$ac_objext melunko@47: then melunko@47: # The compiler can only warn and ignore the option if not recognized melunko@47: # So say no if there are warnings melunko@47: $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp melunko@47: $SED '/^$/d' out/conftest.err >out/conftest.er2 melunko@47: if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then melunko@47: lt_cv_prog_compiler_c_o=yes melunko@47: fi melunko@47: fi melunko@47: chmod u+w . 2>&5 melunko@47: $rm conftest* melunko@47: # SGI C++ compiler will create directory out/ii_files/ for melunko@47: # template instantiation melunko@47: test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files melunko@47: $rm out/* && rmdir out melunko@47: cd .. melunko@47: rmdir conftest melunko@47: $rm conftest* melunko@47: melunko@47: fi melunko@47: echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 melunko@47: echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6 melunko@47: melunko@47: melunko@47: hard_links="nottested" melunko@47: if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then melunko@47: # do not overwrite the value of need_locks provided by the user melunko@47: echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 melunko@47: echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 melunko@47: hard_links=yes melunko@47: $rm conftest* melunko@47: ln conftest.a conftest.b 2>/dev/null && hard_links=no melunko@47: touch conftest.a melunko@47: ln conftest.a conftest.b 2>&5 || hard_links=no melunko@47: ln conftest.a conftest.b 2>/dev/null && hard_links=no melunko@47: echo "$as_me:$LINENO: result: $hard_links" >&5 melunko@47: echo "${ECHO_T}$hard_links" >&6 melunko@47: if test "$hard_links" = no; then melunko@47: { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 melunko@47: echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} melunko@47: need_locks=warn melunko@47: fi melunko@47: else melunko@47: need_locks=no melunko@47: fi melunko@47: melunko@47: echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 melunko@47: echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 melunko@47: melunko@47: runpath_var= melunko@47: allow_undefined_flag= melunko@47: enable_shared_with_static_runtimes=no melunko@47: archive_cmds= melunko@47: archive_expsym_cmds= melunko@47: old_archive_From_new_cmds= melunko@47: old_archive_from_expsyms_cmds= melunko@47: export_dynamic_flag_spec= melunko@47: whole_archive_flag_spec= melunko@47: thread_safe_flag_spec= melunko@47: hardcode_libdir_flag_spec= melunko@47: hardcode_libdir_flag_spec_ld= melunko@47: hardcode_libdir_separator= melunko@47: hardcode_direct=no melunko@47: hardcode_minus_L=no melunko@47: hardcode_shlibpath_var=unsupported melunko@47: link_all_deplibs=unknown melunko@47: hardcode_automatic=no melunko@47: module_cmds= melunko@47: module_expsym_cmds= melunko@47: always_export_symbols=no melunko@47: export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' melunko@47: # include_expsyms should be a list of space-separated symbols to be *always* melunko@47: # included in the symbol list melunko@47: include_expsyms= melunko@47: # exclude_expsyms can be an extended regexp of symbols to exclude melunko@47: # it will be wrapped by ` (' and `)$', so one must not match beginning or melunko@47: # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', melunko@47: # as well as any symbol that contains `d'. melunko@47: exclude_expsyms="_GLOBAL_OFFSET_TABLE_" melunko@47: # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out melunko@47: # platforms (ab)use it in PIC code, but their linkers get confused if melunko@47: # the symbol is explicitly referenced. Since portable code cannot melunko@47: # rely on this symbol name, it's probably fine to never include it in melunko@47: # preloaded symbol tables. melunko@47: extract_expsyms_cmds= melunko@47: # Just being paranoid about ensuring that cc_basename is set. melunko@47: for cc_temp in $compiler""; do melunko@47: case $cc_temp in melunko@47: compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; melunko@47: distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; melunko@47: \-*) ;; melunko@47: *) break;; melunko@47: esac melunko@47: done melunko@47: cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` melunko@47: melunko@47: case $host_os in melunko@47: cygwin* | mingw* | pw32*) melunko@47: # FIXME: the MSVC++ port hasn't been tested in a loooong time melunko@47: # When not using gcc, we currently assume that we are using melunko@47: # Microsoft Visual C++. melunko@47: if test "$GCC" != yes; then melunko@47: with_gnu_ld=no melunko@47: fi melunko@47: ;; melunko@47: openbsd*) melunko@47: with_gnu_ld=no melunko@47: ;; melunko@47: esac melunko@47: melunko@47: ld_shlibs=yes melunko@47: if test "$with_gnu_ld" = yes; then melunko@47: # If archive_cmds runs LD, not CC, wlarc should be empty melunko@47: wlarc='${wl}' melunko@47: melunko@47: # Set some defaults for GNU ld with shared library support. These melunko@47: # are reset later if shared libraries are not supported. Putting them melunko@47: # here allows them to be overridden if necessary. melunko@47: runpath_var=LD_RUN_PATH melunko@47: hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' melunko@47: export_dynamic_flag_spec='${wl}--export-dynamic' melunko@47: # ancient GNU ld didn't support --whole-archive et. al. melunko@47: if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then melunko@47: whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' melunko@47: else melunko@47: whole_archive_flag_spec= melunko@47: fi melunko@47: supports_anon_versioning=no melunko@47: case `$LD -v 2>/dev/null` in melunko@47: *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 melunko@47: *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... melunko@47: *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... melunko@47: *\ 2.11.*) ;; # other 2.11 versions melunko@47: *) supports_anon_versioning=yes ;; melunko@47: esac melunko@47: melunko@47: # See if GNU ld supports shared libraries. melunko@47: case $host_os in melunko@47: aix3* | aix4* | aix5*) melunko@47: # On AIX/PPC, the GNU linker is very broken melunko@47: if test "$host_cpu" != ia64; then melunko@47: ld_shlibs=no melunko@47: cat <&2 melunko@47: melunko@47: *** Warning: the GNU linker, at least up to release 2.9.1, is reported melunko@47: *** to be unable to reliably create shared libraries on AIX. melunko@47: *** Therefore, libtool is disabling shared libraries support. If you melunko@47: *** really care for shared libraries, you may want to modify your PATH melunko@47: *** so that a non-GNU linker is found, and then restart. melunko@47: melunko@47: EOF melunko@47: fi melunko@47: ;; melunko@47: melunko@47: amigaos*) melunko@47: 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)' melunko@47: hardcode_libdir_flag_spec='-L$libdir' melunko@47: hardcode_minus_L=yes melunko@47: melunko@47: # Samuel A. Falvo II reports melunko@47: # that the semantics of dynamic libraries on AmigaOS, at least up melunko@47: # to version 4, is to share data among multiple programs linked melunko@47: # with the same dynamic library. Since this doesn't match the melunko@47: # behavior of shared libraries on other platforms, we can't use melunko@47: # them. melunko@47: ld_shlibs=no melunko@47: ;; melunko@47: melunko@47: beos*) melunko@47: if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then melunko@47: allow_undefined_flag=unsupported melunko@47: # Joseph Beckenbach says some releases of gcc melunko@47: # support --undefined. This deserves some investigation. FIXME melunko@47: archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' melunko@47: else melunko@47: ld_shlibs=no melunko@47: fi melunko@47: ;; melunko@47: melunko@47: cygwin* | mingw* | pw32*) melunko@47: # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, melunko@47: # as there is no search path for DLLs. melunko@47: hardcode_libdir_flag_spec='-L$libdir' melunko@47: allow_undefined_flag=unsupported melunko@47: always_export_symbols=no melunko@47: enable_shared_with_static_runtimes=yes melunko@47: export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' melunko@47: melunko@47: if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then melunko@47: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' melunko@47: # If the export-symbols file already is a .def file (1st line melunko@47: # is EXPORTS), use it as is; otherwise, prepend... melunko@47: archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then melunko@47: cp $export_symbols $output_objdir/$soname.def; melunko@47: else melunko@47: echo EXPORTS > $output_objdir/$soname.def; melunko@47: cat $export_symbols >> $output_objdir/$soname.def; melunko@47: fi~ melunko@47: $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' melunko@47: else melunko@47: ld_shlibs=no melunko@47: fi melunko@47: ;; melunko@47: melunko@47: linux*) melunko@47: if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then melunko@47: tmp_addflag= melunko@47: case $cc_basename,$host_cpu in melunko@47: pgcc*) # Portland Group C compiler melunko@47: whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' melunko@47: tmp_addflag=' $pic_flag' melunko@47: ;; melunko@47: pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers melunko@47: whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' melunko@47: tmp_addflag=' $pic_flag -Mnomain' ;; melunko@47: ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 melunko@47: tmp_addflag=' -i_dynamic' ;; melunko@47: efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 melunko@47: tmp_addflag=' -i_dynamic -nofor_main' ;; melunko@47: ifc* | ifort*) # Intel Fortran compiler melunko@47: tmp_addflag=' -nofor_main' ;; melunko@47: esac melunko@47: archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' melunko@47: melunko@47: if test $supports_anon_versioning = yes; then melunko@47: archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~ melunko@47: cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ melunko@47: $echo "local: *; };" >> $output_objdir/$libname.ver~ melunko@47: $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' melunko@47: fi melunko@47: else melunko@47: ld_shlibs=no melunko@47: fi melunko@47: ;; melunko@47: melunko@47: netbsd*) melunko@47: if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then melunko@47: archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' melunko@47: wlarc= melunko@47: else melunko@47: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' melunko@47: archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' melunko@47: fi melunko@47: ;; melunko@47: melunko@47: solaris* | sysv5*) melunko@47: if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then melunko@47: ld_shlibs=no melunko@47: cat <&2 melunko@47: melunko@47: *** Warning: The releases 2.8.* of the GNU linker cannot reliably melunko@47: *** create shared libraries on Solaris systems. Therefore, libtool melunko@47: *** is disabling shared libraries support. We urge you to upgrade GNU melunko@47: *** binutils to release 2.9.1 or newer. Another option is to modify melunko@47: *** your PATH or compiler configuration so that the native linker is melunko@47: *** used, and then restart. melunko@47: melunko@47: EOF melunko@47: elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then melunko@47: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' melunko@47: archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' melunko@47: else melunko@47: ld_shlibs=no melunko@47: fi melunko@47: ;; melunko@47: melunko@47: sunos4*) melunko@47: archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' melunko@47: wlarc= melunko@47: hardcode_direct=yes melunko@47: hardcode_shlibpath_var=no melunko@47: ;; melunko@47: melunko@47: *) melunko@47: if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then melunko@47: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' melunko@47: archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' melunko@47: else melunko@47: ld_shlibs=no melunko@47: fi melunko@47: ;; melunko@47: esac melunko@47: melunko@47: if test "$ld_shlibs" = no; then melunko@47: runpath_var= melunko@47: hardcode_libdir_flag_spec= melunko@47: export_dynamic_flag_spec= melunko@47: whole_archive_flag_spec= melunko@47: fi melunko@47: else melunko@47: # PORTME fill in a description of your system's linker (not GNU ld) melunko@47: case $host_os in melunko@47: aix3*) melunko@47: allow_undefined_flag=unsupported melunko@47: always_export_symbols=yes melunko@47: 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' melunko@47: # Note: this linker hardcodes the directories in LIBPATH if there melunko@47: # are no directories specified by -L. melunko@47: hardcode_minus_L=yes melunko@47: if test "$GCC" = yes && test -z "$link_static_flag"; then melunko@47: # Neither direct hardcoding nor static linking is supported with a melunko@47: # broken collect2. melunko@47: hardcode_direct=unsupported melunko@47: fi melunko@47: ;; melunko@47: melunko@47: aix4* | aix5*) melunko@47: if test "$host_cpu" = ia64; then melunko@47: # On IA64, the linker does run time linking by default, so we don't melunko@47: # have to do anything special. melunko@47: aix_use_runtimelinking=no melunko@47: exp_sym_flag='-Bexport' melunko@47: no_entry_flag="" melunko@47: else melunko@47: # If we're using GNU nm, then we don't want the "-C" option. melunko@47: # -C means demangle to AIX nm, but means don't demangle with GNU nm melunko@47: if $NM -V 2>&1 | grep 'GNU' > /dev/null; then melunko@47: 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' melunko@47: else melunko@47: 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' melunko@47: fi melunko@47: aix_use_runtimelinking=no melunko@47: melunko@47: # Test if we are trying to use run time linking or normal melunko@47: # AIX style linking. If -brtl is somewhere in LDFLAGS, we melunko@47: # need to do runtime linking. melunko@47: case $host_os in aix4.[23]|aix4.[23].*|aix5*) melunko@47: for ld_flag in $LDFLAGS; do melunko@47: if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then melunko@47: aix_use_runtimelinking=yes melunko@47: break melunko@47: fi melunko@47: done melunko@47: esac melunko@47: melunko@47: exp_sym_flag='-bexport' melunko@47: no_entry_flag='-bnoentry' melunko@47: fi melunko@47: melunko@47: # When large executables or shared objects are built, AIX ld can melunko@47: # have problems creating the table of contents. If linking a library melunko@47: # or program results in "error TOC overflow" add -mminimal-toc to melunko@47: # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not melunko@47: # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. melunko@47: melunko@47: archive_cmds='' melunko@47: hardcode_direct=yes melunko@47: hardcode_libdir_separator=':' melunko@47: link_all_deplibs=yes melunko@47: melunko@47: if test "$GCC" = yes; then melunko@47: case $host_os in aix4.[012]|aix4.[012].*) melunko@47: # We only want to do this on AIX 4.2 and lower, the check melunko@47: # below for broken collect2 doesn't work under 4.3+ melunko@47: collect2name=`${CC} -print-prog-name=collect2` melunko@47: if test -f "$collect2name" && \ melunko@47: strings "$collect2name" | grep resolve_lib_name >/dev/null melunko@47: then melunko@47: # We have reworked collect2 melunko@47: hardcode_direct=yes melunko@47: else melunko@47: # We have old collect2 melunko@47: hardcode_direct=unsupported melunko@47: # It fails to find uninstalled libraries when the uninstalled melunko@47: # path is not listed in the libpath. Setting hardcode_minus_L melunko@47: # to unsupported forces relinking melunko@47: hardcode_minus_L=yes melunko@47: hardcode_libdir_flag_spec='-L$libdir' melunko@47: hardcode_libdir_separator= melunko@47: fi melunko@47: esac melunko@47: shared_flag='-shared' melunko@47: if test "$aix_use_runtimelinking" = yes; then melunko@47: shared_flag="$shared_flag "'${wl}-G' melunko@47: fi melunko@47: else melunko@47: # not using gcc melunko@47: if test "$host_cpu" = ia64; then melunko@47: # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release melunko@47: # chokes on -Wl,-G. The following line is correct: melunko@47: shared_flag='-G' melunko@47: else melunko@47: if test "$aix_use_runtimelinking" = yes; then melunko@47: shared_flag='${wl}-G' melunko@47: else melunko@47: shared_flag='${wl}-bM:SRE' melunko@47: fi melunko@47: fi melunko@47: fi melunko@47: melunko@47: # It seems that -bexpall does not export symbols beginning with melunko@47: # underscore (_), so it is better to generate a list of symbols to export. melunko@47: always_export_symbols=yes melunko@47: if test "$aix_use_runtimelinking" = yes; then melunko@47: # Warning - without using the other runtime loading flags (-brtl), melunko@47: # -berok will link without error, but may produce a broken library. melunko@47: allow_undefined_flag='-berok' melunko@47: # Determine the default libpath from the value encoded in an empty executable. melunko@47: cat >conftest.$ac_ext <<_ACEOF melunko@47: /* confdefs.h. */ melunko@47: _ACEOF melunko@47: cat confdefs.h >>conftest.$ac_ext melunko@47: cat >>conftest.$ac_ext <<_ACEOF melunko@47: /* end confdefs.h. */ melunko@47: melunko@47: int melunko@47: main () melunko@47: { melunko@47: melunko@47: ; melunko@47: return 0; melunko@47: } melunko@47: _ACEOF melunko@47: rm -f conftest.$ac_objext conftest$ac_exeext melunko@47: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 melunko@47: (eval $ac_link) 2>conftest.er1 melunko@47: ac_status=$? melunko@47: grep -v '^ *+' conftest.er1 >conftest.err melunko@47: rm -f conftest.er1 melunko@47: cat conftest.err >&5 melunko@47: echo "$as_me:$LINENO: \$? = $ac_status" >&5 melunko@47: (exit $ac_status); } && melunko@47: { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' melunko@47: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 melunko@47: (eval $ac_try) 2>&5 melunko@47: ac_status=$? melunko@47: echo "$as_me:$LINENO: \$? = $ac_status" >&5 melunko@47: (exit $ac_status); }; } && melunko@47: { ac_try='test -s conftest$ac_exeext' melunko@47: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 melunko@47: (eval $ac_try) 2>&5 melunko@47: ac_status=$? melunko@47: echo "$as_me:$LINENO: \$? = $ac_status" >&5 melunko@47: (exit $ac_status); }; }; then melunko@47: melunko@47: aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } melunko@47: }'` melunko@47: # Check for a 64-bit object if we didn't find anything. melunko@47: 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; } melunko@47: }'`; fi melunko@47: else melunko@47: echo "$as_me: failed program was:" >&5 melunko@47: sed 's/^/| /' conftest.$ac_ext >&5 melunko@47: melunko@47: fi melunko@47: rm -f conftest.err conftest.$ac_objext \ melunko@47: conftest$ac_exeext conftest.$ac_ext melunko@47: if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi melunko@47: melunko@47: hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" melunko@47: 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" melunko@47: else melunko@47: if test "$host_cpu" = ia64; then melunko@47: hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' melunko@47: allow_undefined_flag="-z nodefs" melunko@47: 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" melunko@47: else melunko@47: # Determine the default libpath from the value encoded in an empty executable. melunko@47: cat >conftest.$ac_ext <<_ACEOF melunko@47: /* confdefs.h. */ melunko@47: _ACEOF melunko@47: cat confdefs.h >>conftest.$ac_ext melunko@47: cat >>conftest.$ac_ext <<_ACEOF melunko@47: /* end confdefs.h. */ melunko@47: melunko@47: int melunko@47: main () melunko@47: { melunko@47: melunko@47: ; melunko@47: return 0; melunko@47: } melunko@47: _ACEOF melunko@47: rm -f conftest.$ac_objext conftest$ac_exeext melunko@47: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 melunko@47: (eval $ac_link) 2>conftest.er1 melunko@47: ac_status=$? melunko@47: grep -v '^ *+' conftest.er1 >conftest.err melunko@47: rm -f conftest.er1 melunko@47: cat conftest.err >&5 melunko@47: echo "$as_me:$LINENO: \$? = $ac_status" >&5 melunko@47: (exit $ac_status); } && melunko@47: { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' melunko@47: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 melunko@47: (eval $ac_try) 2>&5 melunko@47: ac_status=$? melunko@47: echo "$as_me:$LINENO: \$? = $ac_status" >&5 melunko@47: (exit $ac_status); }; } && melunko@47: { ac_try='test -s conftest$ac_exeext' melunko@47: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 melunko@47: (eval $ac_try) 2>&5 melunko@47: ac_status=$? melunko@47: echo "$as_me:$LINENO: \$? = $ac_status" >&5 melunko@47: (exit $ac_status); }; }; then melunko@47: melunko@47: aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } melunko@47: }'` melunko@47: # Check for a 64-bit object if we didn't find anything. melunko@47: 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; } melunko@47: }'`; fi melunko@47: else melunko@47: echo "$as_me: failed program was:" >&5 melunko@47: sed 's/^/| /' conftest.$ac_ext >&5 melunko@47: melunko@47: fi melunko@47: rm -f conftest.err conftest.$ac_objext \ melunko@47: conftest$ac_exeext conftest.$ac_ext melunko@47: if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi melunko@47: melunko@47: hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" melunko@47: # Warning - without using the other run time loading flags, melunko@47: # -berok will link without error, but may produce a broken library. melunko@47: no_undefined_flag=' ${wl}-bernotok' melunko@47: allow_undefined_flag=' ${wl}-berok' melunko@47: # -bexpall does not export symbols beginning with underscore (_) melunko@47: always_export_symbols=yes melunko@47: # Exported symbols can be pulled into shared objects from archives melunko@47: whole_archive_flag_spec=' ' melunko@47: archive_cmds_need_lc=yes melunko@47: # This is similar to how AIX traditionally builds its shared libraries. melunko@47: 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' melunko@47: fi melunko@47: fi melunko@47: ;; melunko@47: melunko@47: amigaos*) melunko@47: 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)' melunko@47: hardcode_libdir_flag_spec='-L$libdir' melunko@47: hardcode_minus_L=yes melunko@47: # see comment about different semantics on the GNU ld section melunko@47: ld_shlibs=no melunko@47: ;; melunko@47: melunko@47: bsdi[45]*) melunko@47: export_dynamic_flag_spec=-rdynamic melunko@47: ;; melunko@47: melunko@47: cygwin* | mingw* | pw32*) melunko@47: # When not using gcc, we currently assume that we are using melunko@47: # Microsoft Visual C++. melunko@47: # hardcode_libdir_flag_spec is actually meaningless, as there is melunko@47: # no search path for DLLs. melunko@47: hardcode_libdir_flag_spec=' ' melunko@47: allow_undefined_flag=unsupported melunko@47: # Tell ltmain to make .lib files, not .a files. melunko@47: libext=lib melunko@47: # Tell ltmain to make .dll files, not .so files. melunko@47: shrext_cmds=".dll" melunko@47: # FIXME: Setting linknames here is a bad hack. melunko@47: archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' melunko@47: # The linker will automatically build a .lib file if we build a DLL. melunko@47: old_archive_From_new_cmds='true' melunko@47: # FIXME: Should let the user specify the lib program. melunko@47: old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs' melunko@47: fix_srcfile_path='`cygpath -w "$srcfile"`' melunko@47: enable_shared_with_static_runtimes=yes melunko@47: ;; melunko@47: melunko@47: darwin* | rhapsody*) melunko@47: case $host_os in melunko@47: rhapsody* | darwin1.[012]) melunko@47: allow_undefined_flag='${wl}-undefined ${wl}suppress' melunko@47: ;; melunko@47: *) # Darwin 1.3 on melunko@47: if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then melunko@47: allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' melunko@47: else melunko@47: case ${MACOSX_DEPLOYMENT_TARGET} in melunko@47: 10.[012]) melunko@47: allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' melunko@47: ;; melunko@47: 10.*) melunko@47: allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup' melunko@47: ;; melunko@47: esac melunko@47: fi melunko@47: ;; melunko@47: esac melunko@47: archive_cmds_need_lc=no melunko@47: hardcode_direct=no melunko@47: hardcode_automatic=yes melunko@47: hardcode_shlibpath_var=unsupported melunko@47: whole_archive_flag_spec='' melunko@47: link_all_deplibs=yes melunko@47: if test "$GCC" = yes ; then melunko@47: output_verbose_link_cmd='echo' melunko@47: archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' melunko@47: module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' melunko@47: # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds melunko@47: 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}' melunko@47: 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}' melunko@47: else melunko@47: case $cc_basename in melunko@47: xlc*) melunko@47: output_verbose_link_cmd='echo' melunko@47: archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' melunko@47: module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' melunko@47: # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds melunko@47: 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}' melunko@47: 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}' melunko@47: ;; melunko@47: *) melunko@47: ld_shlibs=no melunko@47: ;; melunko@47: esac melunko@47: fi melunko@47: ;; melunko@47: melunko@47: dgux*) melunko@47: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' melunko@47: hardcode_libdir_flag_spec='-L$libdir' melunko@47: hardcode_shlibpath_var=no melunko@47: ;; melunko@47: melunko@47: freebsd1*) melunko@47: ld_shlibs=no melunko@47: ;; melunko@47: melunko@47: # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor melunko@47: # support. Future versions do this automatically, but an explicit c++rt0.o melunko@47: # does not break anything, and helps significantly (at the cost of a little melunko@47: # extra space). melunko@47: freebsd2.2*) melunko@47: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' melunko@47: hardcode_libdir_flag_spec='-R$libdir' melunko@47: hardcode_direct=yes melunko@47: hardcode_shlibpath_var=no melunko@47: ;; melunko@47: melunko@47: # Unfortunately, older versions of FreeBSD 2 do not have this feature. melunko@47: freebsd2*) melunko@47: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' melunko@47: hardcode_direct=yes melunko@47: hardcode_minus_L=yes melunko@47: hardcode_shlibpath_var=no melunko@47: ;; melunko@47: melunko@47: # FreeBSD 3 and greater uses gcc -shared to do shared libraries. melunko@47: freebsd* | kfreebsd*-gnu | dragonfly*) melunko@47: archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' melunko@47: hardcode_libdir_flag_spec='-R$libdir' melunko@47: hardcode_direct=yes melunko@47: hardcode_shlibpath_var=no melunko@47: ;; melunko@47: melunko@47: hpux9*) melunko@47: if test "$GCC" = yes; then melunko@47: 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' melunko@47: else melunko@47: 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' melunko@47: fi melunko@47: hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' melunko@47: hardcode_libdir_separator=: melunko@47: hardcode_direct=yes melunko@47: melunko@47: # hardcode_minus_L: Not really in the search PATH, melunko@47: # but as the default location of the library. melunko@47: hardcode_minus_L=yes melunko@47: export_dynamic_flag_spec='${wl}-E' melunko@47: ;; melunko@47: melunko@47: hpux10* | hpux11*) melunko@47: if test "$GCC" = yes -a "$with_gnu_ld" = no; then melunko@47: case $host_cpu in melunko@47: hppa*64*|ia64*) melunko@47: archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' melunko@47: ;; melunko@47: *) melunko@47: archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' melunko@47: ;; melunko@47: esac melunko@47: else melunko@47: case $host_cpu in melunko@47: hppa*64*|ia64*) melunko@47: archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags' melunko@47: ;; melunko@47: *) melunko@47: archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' melunko@47: ;; melunko@47: esac melunko@47: fi melunko@47: if test "$with_gnu_ld" = no; then melunko@47: case $host_cpu in melunko@47: hppa*64*) melunko@47: hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' melunko@47: hardcode_libdir_flag_spec_ld='+b $libdir' melunko@47: hardcode_libdir_separator=: melunko@47: hardcode_direct=no melunko@47: hardcode_shlibpath_var=no melunko@47: ;; melunko@47: ia64*) melunko@47: hardcode_libdir_flag_spec='-L$libdir' melunko@47: hardcode_direct=no melunko@47: hardcode_shlibpath_var=no melunko@47: melunko@47: # hardcode_minus_L: Not really in the search PATH, melunko@47: # but as the default location of the library. melunko@47: hardcode_minus_L=yes melunko@47: ;; melunko@47: *) melunko@47: hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' melunko@47: hardcode_libdir_separator=: melunko@47: hardcode_direct=yes melunko@47: export_dynamic_flag_spec='${wl}-E' melunko@47: melunko@47: # hardcode_minus_L: Not really in the search PATH, melunko@47: # but as the default location of the library. melunko@47: hardcode_minus_L=yes melunko@47: ;; melunko@47: esac melunko@47: fi melunko@47: ;; melunko@47: melunko@47: irix5* | irix6* | nonstopux*) melunko@47: if test "$GCC" = yes; then melunko@47: 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' melunko@47: else melunko@47: 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' melunko@47: hardcode_libdir_flag_spec_ld='-rpath $libdir' melunko@47: fi melunko@47: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' melunko@47: hardcode_libdir_separator=: melunko@47: link_all_deplibs=yes melunko@47: ;; melunko@47: melunko@47: netbsd*) melunko@47: if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then melunko@47: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out melunko@47: else melunko@47: archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF melunko@47: fi melunko@47: hardcode_libdir_flag_spec='-R$libdir' melunko@47: hardcode_direct=yes melunko@47: hardcode_shlibpath_var=no melunko@47: ;; melunko@47: melunko@47: newsos6) melunko@47: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' melunko@47: hardcode_direct=yes melunko@47: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' melunko@47: hardcode_libdir_separator=: melunko@47: hardcode_shlibpath_var=no melunko@47: ;; melunko@47: melunko@47: openbsd*) melunko@47: hardcode_direct=yes melunko@47: hardcode_shlibpath_var=no melunko@47: if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then melunko@47: archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' melunko@47: archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' melunko@47: hardcode_libdir_flag_spec='${wl}-rpath,$libdir' melunko@47: export_dynamic_flag_spec='${wl}-E' melunko@47: else melunko@47: case $host_os in melunko@47: openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) melunko@47: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' melunko@47: hardcode_libdir_flag_spec='-R$libdir' melunko@47: ;; melunko@47: *) melunko@47: archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' melunko@47: hardcode_libdir_flag_spec='${wl}-rpath,$libdir' melunko@47: ;; melunko@47: esac melunko@47: fi melunko@47: ;; melunko@47: melunko@47: os2*) melunko@47: hardcode_libdir_flag_spec='-L$libdir' melunko@47: hardcode_minus_L=yes melunko@47: allow_undefined_flag=unsupported melunko@47: 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' melunko@47: old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' melunko@47: ;; melunko@47: melunko@47: osf3*) melunko@47: if test "$GCC" = yes; then melunko@47: allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' melunko@47: 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' melunko@47: else melunko@47: allow_undefined_flag=' -expect_unresolved \*' melunko@47: 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' melunko@47: fi melunko@47: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' melunko@47: hardcode_libdir_separator=: melunko@47: ;; melunko@47: melunko@47: osf4* | osf5*) # as osf3* with the addition of -msym flag melunko@47: if test "$GCC" = yes; then melunko@47: allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' melunko@47: 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' melunko@47: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' melunko@47: else melunko@47: allow_undefined_flag=' -expect_unresolved \*' melunko@47: 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' melunko@47: archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ melunko@47: $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' melunko@47: melunko@47: # Both c and cxx compiler support -rpath directly melunko@47: hardcode_libdir_flag_spec='-rpath $libdir' melunko@47: fi melunko@47: hardcode_libdir_separator=: melunko@47: ;; melunko@47: melunko@47: sco3.2v5*) melunko@47: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' melunko@47: hardcode_shlibpath_var=no melunko@47: export_dynamic_flag_spec='${wl}-Bexport' melunko@47: runpath_var=LD_RUN_PATH melunko@47: hardcode_runpath_var=yes melunko@47: ;; melunko@47: melunko@47: solaris*) melunko@47: no_undefined_flag=' -z text' melunko@47: if test "$GCC" = yes; then melunko@47: wlarc='${wl}' melunko@47: archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' melunko@47: archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ melunko@47: $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' melunko@47: else melunko@47: wlarc='' melunko@47: archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' melunko@47: archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ melunko@47: $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' melunko@47: fi melunko@47: hardcode_libdir_flag_spec='-R$libdir' melunko@47: hardcode_shlibpath_var=no melunko@47: case $host_os in melunko@47: solaris2.[0-5] | solaris2.[0-5].*) ;; melunko@47: *) melunko@47: # The compiler driver will combine linker options so we melunko@47: # cannot just pass the convience library names through melunko@47: # without $wl, iff we do not link with $LD. melunko@47: # Luckily, gcc supports the same syntax we need for Sun Studio. melunko@47: # Supported since Solaris 2.6 (maybe 2.5.1?) melunko@47: case $wlarc in melunko@47: '') melunko@47: whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;; melunko@47: *) melunko@47: 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' ;; melunko@47: esac ;; melunko@47: esac melunko@47: link_all_deplibs=yes melunko@47: ;; melunko@47: melunko@47: sunos4*) melunko@47: if test "x$host_vendor" = xsequent; then melunko@47: # Use $CC to link under sequent, because it throws in some extra .o melunko@47: # files that make .init and .fini sections work. melunko@47: archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' melunko@47: else melunko@47: archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' melunko@47: fi melunko@47: hardcode_libdir_flag_spec='-L$libdir' melunko@47: hardcode_direct=yes melunko@47: hardcode_minus_L=yes melunko@47: hardcode_shlibpath_var=no melunko@47: ;; melunko@47: melunko@47: sysv4) melunko@47: case $host_vendor in melunko@47: sni) melunko@47: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' melunko@47: hardcode_direct=yes # is this really true??? melunko@47: ;; melunko@47: siemens) melunko@47: ## LD is ld it makes a PLAMLIB melunko@47: ## CC just makes a GrossModule. melunko@47: archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' melunko@47: reload_cmds='$CC -r -o $output$reload_objs' melunko@47: hardcode_direct=no melunko@47: ;; melunko@47: motorola) melunko@47: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' melunko@47: hardcode_direct=no #Motorola manual says yes, but my tests say they lie melunko@47: ;; melunko@47: esac melunko@47: runpath_var='LD_RUN_PATH' melunko@47: hardcode_shlibpath_var=no melunko@47: ;; melunko@47: melunko@47: sysv4.3*) melunko@47: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' melunko@47: hardcode_shlibpath_var=no melunko@47: export_dynamic_flag_spec='-Bexport' melunko@47: ;; melunko@47: melunko@47: sysv4*MP*) melunko@47: if test -d /usr/nec; then melunko@47: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' melunko@47: hardcode_shlibpath_var=no melunko@47: runpath_var=LD_RUN_PATH melunko@47: hardcode_runpath_var=yes melunko@47: ld_shlibs=yes melunko@47: fi melunko@47: ;; melunko@47: melunko@47: sysv4.2uw2*) melunko@47: archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' melunko@47: hardcode_direct=yes melunko@47: hardcode_minus_L=no melunko@47: hardcode_shlibpath_var=no melunko@47: hardcode_runpath_var=yes melunko@47: runpath_var=LD_RUN_PATH melunko@47: ;; melunko@47: melunko@47: sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) melunko@47: no_undefined_flag='${wl}-z ${wl}text' melunko@47: if test "$GCC" = yes; then melunko@47: archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' melunko@47: else melunko@47: archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' melunko@47: fi melunko@47: runpath_var='LD_RUN_PATH' melunko@47: hardcode_shlibpath_var=no melunko@47: ;; melunko@47: melunko@47: sysv5*) melunko@47: no_undefined_flag=' -z text' melunko@47: # $CC -shared without GNU ld will not create a library from C++ melunko@47: # object files and a static libstdc++, better avoid it by now melunko@47: archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' melunko@47: archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ melunko@47: $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' melunko@47: hardcode_libdir_flag_spec= melunko@47: hardcode_shlibpath_var=no melunko@47: runpath_var='LD_RUN_PATH' melunko@47: ;; melunko@47: melunko@47: uts4*) melunko@47: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' melunko@47: hardcode_libdir_flag_spec='-L$libdir' melunko@47: hardcode_shlibpath_var=no melunko@47: ;; melunko@47: melunko@47: *) melunko@47: ld_shlibs=no melunko@47: ;; melunko@47: esac melunko@47: fi melunko@47: melunko@47: echo "$as_me:$LINENO: result: $ld_shlibs" >&5 melunko@47: echo "${ECHO_T}$ld_shlibs" >&6 melunko@47: test "$ld_shlibs" = no && can_build_shared=no melunko@47: melunko@47: variables_saved_for_relink="PATH $shlibpath_var $runpath_var" melunko@47: if test "$GCC" = yes; then melunko@47: variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" melunko@47: fi melunko@47: melunko@47: # melunko@47: # Do we need to explicitly link libc? melunko@47: # melunko@47: case "x$archive_cmds_need_lc" in melunko@47: x|xyes) melunko@47: # Assume -lc should be added melunko@47: archive_cmds_need_lc=yes melunko@47: melunko@47: if test "$enable_shared" = yes && test "$GCC" = yes; then melunko@47: case $archive_cmds in melunko@47: *'~'*) melunko@47: # FIXME: we may have to deal with multi-command sequences. melunko@47: ;; melunko@47: '$CC '*) melunko@47: # Test whether the compiler implicitly links with -lc since on some melunko@47: # systems, -lgcc has to come before -lc. If gcc already passes -lc melunko@47: # to ld, don't add -lc before -lgcc. melunko@47: echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 melunko@47: echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 melunko@47: $rm conftest* melunko@47: printf "$lt_simple_compile_test_code" > conftest.$ac_ext melunko@47: melunko@47: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 melunko@47: (eval $ac_compile) 2>&5 melunko@47: ac_status=$? melunko@47: echo "$as_me:$LINENO: \$? = $ac_status" >&5 melunko@47: (exit $ac_status); } 2>conftest.err; then melunko@47: soname=conftest melunko@47: lib=conftest melunko@47: libobjs=conftest.$ac_objext melunko@47: deplibs= melunko@47: wl=$lt_prog_compiler_wl melunko@47: compiler_flags=-v melunko@47: linker_flags=-v melunko@47: verstring= melunko@47: output_objdir=. melunko@47: libname=conftest melunko@47: lt_save_allow_undefined_flag=$allow_undefined_flag melunko@47: allow_undefined_flag= melunko@47: if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 melunko@47: (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 melunko@47: ac_status=$? melunko@47: echo "$as_me:$LINENO: \$? = $ac_status" >&5 melunko@47: (exit $ac_status); } melunko@47: then melunko@47: archive_cmds_need_lc=no melunko@47: else melunko@47: archive_cmds_need_lc=yes melunko@47: fi melunko@47: allow_undefined_flag=$lt_save_allow_undefined_flag melunko@47: else melunko@47: cat conftest.err 1>&5 melunko@47: fi melunko@47: $rm conftest* melunko@47: echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 melunko@47: echo "${ECHO_T}$archive_cmds_need_lc" >&6 melunko@47: ;; melunko@47: esac melunko@47: fi melunko@47: ;; melunko@47: esac melunko@47: melunko@47: echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 melunko@47: echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 melunko@47: library_names_spec= melunko@47: libname_spec='lib$name' melunko@47: soname_spec= melunko@47: shrext_cmds=".so" melunko@47: postinstall_cmds= melunko@47: postuninstall_cmds= melunko@47: finish_cmds= melunko@47: finish_eval= melunko@47: shlibpath_var= melunko@47: shlibpath_overrides_runpath=unknown melunko@47: version_type=none melunko@47: dynamic_linker="$host_os ld.so" melunko@47: sys_lib_dlsearch_path_spec="/lib /usr/lib" melunko@47: if test "$GCC" = yes; then melunko@47: sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` melunko@47: if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then melunko@47: # if the path contains ";" then we assume it to be the separator melunko@47: # otherwise default to the standard path separator (i.e. ":") - it is melunko@47: # assumed that no part of a normal pathname contains ";" but that should melunko@47: # okay in the real world where ";" in dirpaths is itself problematic. melunko@47: sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` melunko@47: else melunko@47: sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` melunko@47: fi melunko@47: else melunko@47: sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" melunko@47: fi melunko@47: need_lib_prefix=unknown melunko@47: hardcode_into_libs=no melunko@47: melunko@47: # when you set need_version to no, make sure it does not cause -set_version melunko@47: # flags to be left without arguments melunko@47: need_version=unknown melunko@47: melunko@47: case $host_os in melunko@47: aix3*) melunko@47: version_type=linux melunko@47: library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' melunko@47: shlibpath_var=LIBPATH melunko@47: melunko@47: # AIX 3 has no versioning support, so we append a major version to the name. melunko@47: soname_spec='${libname}${release}${shared_ext}$major' melunko@47: ;; melunko@47: melunko@47: aix4* | aix5*) melunko@47: version_type=linux melunko@47: need_lib_prefix=no melunko@47: need_version=no melunko@47: hardcode_into_libs=yes melunko@47: if test "$host_cpu" = ia64; then melunko@47: # AIX 5 supports IA64 melunko@47: library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' melunko@47: shlibpath_var=LD_LIBRARY_PATH melunko@47: else melunko@47: # With GCC up to 2.95.x, collect2 would create an import file melunko@47: # for dependence libraries. The import file would start with melunko@47: # the line `#! .'. This would cause the generated library to melunko@47: # depend on `.', always an invalid library. This was fixed in melunko@47: # development snapshots of GCC prior to 3.0. melunko@47: case $host_os in melunko@47: aix4 | aix4.[01] | aix4.[01].*) melunko@47: if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' melunko@47: echo ' yes ' melunko@47: echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then melunko@47: : melunko@47: else melunko@47: can_build_shared=no melunko@47: fi melunko@47: ;; melunko@47: esac melunko@47: # AIX (on Power*) has no versioning support, so currently we can not hardcode correct melunko@47: # soname into executable. Probably we can add versioning support to melunko@47: # collect2, so additional links can be useful in future. melunko@47: if test "$aix_use_runtimelinking" = yes; then melunko@47: # If using run time linking (on AIX 4.2 or later) use lib.so melunko@47: # instead of lib.a to let people know that these are not melunko@47: # typical AIX shared libraries. melunko@47: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' melunko@47: else melunko@47: # We preserve .a as extension for shared libraries through AIX4.2 melunko@47: # and later when we are not doing run time linking. melunko@47: library_names_spec='${libname}${release}.a $libname.a' melunko@47: soname_spec='${libname}${release}${shared_ext}$major' melunko@47: fi melunko@47: shlibpath_var=LIBPATH melunko@47: fi melunko@47: ;; melunko@47: melunko@47: amigaos*) melunko@47: library_names_spec='$libname.ixlibrary $libname.a' melunko@47: # Create ${libname}_ixlibrary.a entries in /sys/libs. melunko@47: 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' melunko@47: ;; melunko@47: melunko@47: beos*) melunko@47: library_names_spec='${libname}${shared_ext}' melunko@47: dynamic_linker="$host_os ld.so" melunko@47: shlibpath_var=LIBRARY_PATH melunko@47: ;; melunko@47: melunko@47: bsdi[45]*) melunko@47: version_type=linux melunko@47: need_version=no melunko@47: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' melunko@47: soname_spec='${libname}${release}${shared_ext}$major' melunko@47: finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' melunko@47: shlibpath_var=LD_LIBRARY_PATH melunko@47: sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" melunko@47: sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" melunko@47: # the default ld.so.conf also contains /usr/contrib/lib and melunko@47: # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow melunko@47: # libtool to hard-code these into programs melunko@47: ;; melunko@47: melunko@47: cygwin* | mingw* | pw32*) melunko@47: version_type=windows melunko@47: shrext_cmds=".dll" melunko@47: need_version=no melunko@47: need_lib_prefix=no melunko@47: melunko@47: case $GCC,$host_os in melunko@47: yes,cygwin* | yes,mingw* | yes,pw32*) melunko@47: library_names_spec='$libname.dll.a' melunko@47: # DLL is installed to $(libdir)/../bin by postinstall_cmds melunko@47: postinstall_cmds='base_file=`basename \${file}`~ melunko@47: dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ melunko@47: dldir=$destdir/`dirname \$dlpath`~ melunko@47: test -d \$dldir || mkdir -p \$dldir~ melunko@47: $install_prog $dir/$dlname \$dldir/$dlname~ melunko@47: chmod a+x \$dldir/$dlname' melunko@47: postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ melunko@47: dlpath=$dir/\$dldll~ melunko@47: $rm \$dlpath' melunko@47: shlibpath_overrides_runpath=yes melunko@47: melunko@47: case $host_os in melunko@47: cygwin*) melunko@47: # Cygwin DLLs use 'cyg' prefix rather than 'lib' melunko@47: soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' melunko@47: sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" melunko@47: ;; melunko@47: mingw*) melunko@47: # MinGW DLLs use traditional 'lib' prefix melunko@47: soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' melunko@47: sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` melunko@47: if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then melunko@47: # It is most probably a Windows format PATH printed by melunko@47: # mingw gcc, but we are running on Cygwin. Gcc prints its search melunko@47: # path with ; separators, and with drive letters. We can handle the melunko@47: # drive letters (cygwin fileutils understands them), so leave them, melunko@47: # especially as we might pass files found there to a mingw objdump, melunko@47: # which wouldn't understand a cygwinified path. Ahh. melunko@47: sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` melunko@47: else melunko@47: sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` melunko@47: fi melunko@47: ;; melunko@47: pw32*) melunko@47: # pw32 DLLs use 'pw' prefix rather than 'lib' melunko@47: library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' melunko@47: ;; melunko@47: esac melunko@47: ;; melunko@47: melunko@47: *) melunko@47: library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' melunko@47: ;; melunko@47: esac melunko@47: dynamic_linker='Win32 ld.exe' melunko@47: # FIXME: first we should search . and the directory the executable is in melunko@47: shlibpath_var=PATH melunko@47: ;; melunko@47: melunko@47: darwin* | rhapsody*) melunko@47: dynamic_linker="$host_os dyld" melunko@47: version_type=darwin melunko@47: need_lib_prefix=no melunko@47: need_version=no melunko@47: library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' melunko@47: soname_spec='${libname}${release}${major}$shared_ext' melunko@47: shlibpath_overrides_runpath=yes melunko@47: shlibpath_var=DYLD_LIBRARY_PATH melunko@47: shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' melunko@47: # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. melunko@47: if test "$GCC" = yes; then melunko@47: 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"` melunko@47: else melunko@47: sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' melunko@47: fi melunko@47: sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' melunko@47: ;; melunko@47: melunko@47: dgux*) melunko@47: version_type=linux melunko@47: need_lib_prefix=no melunko@47: need_version=no melunko@47: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' melunko@47: soname_spec='${libname}${release}${shared_ext}$major' melunko@47: shlibpath_var=LD_LIBRARY_PATH melunko@47: ;; melunko@47: melunko@47: freebsd1*) melunko@47: dynamic_linker=no melunko@47: ;; melunko@47: melunko@47: kfreebsd*-gnu) melunko@47: version_type=linux melunko@47: need_lib_prefix=no melunko@47: need_version=no melunko@47: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' melunko@47: soname_spec='${libname}${release}${shared_ext}$major' melunko@47: shlibpath_var=LD_LIBRARY_PATH melunko@47: shlibpath_overrides_runpath=no melunko@47: hardcode_into_libs=yes melunko@47: dynamic_linker='GNU ld.so' melunko@47: ;; melunko@47: melunko@47: freebsd* | dragonfly*) melunko@47: # DragonFly does not have aout. When/if they implement a new melunko@47: # versioning mechanism, adjust this. melunko@47: if test -x /usr/bin/objformat; then melunko@47: objformat=`/usr/bin/objformat` melunko@47: else melunko@47: case $host_os in melunko@47: freebsd[123]*) objformat=aout ;; melunko@47: *) objformat=elf ;; melunko@47: esac melunko@47: fi melunko@47: version_type=freebsd-$objformat melunko@47: case $version_type in melunko@47: freebsd-elf*) melunko@47: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' melunko@47: need_version=no melunko@47: need_lib_prefix=no melunko@47: ;; melunko@47: freebsd-*) melunko@47: library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' melunko@47: need_version=yes melunko@47: ;; melunko@47: esac melunko@47: shlibpath_var=LD_LIBRARY_PATH melunko@47: case $host_os in melunko@47: freebsd2*) melunko@47: shlibpath_overrides_runpath=yes melunko@47: ;; melunko@47: freebsd3.[01]* | freebsdelf3.[01]*) melunko@47: shlibpath_overrides_runpath=yes melunko@47: hardcode_into_libs=yes melunko@47: ;; melunko@47: *) # from 3.2 on melunko@47: shlibpath_overrides_runpath=no melunko@47: hardcode_into_libs=yes melunko@47: ;; melunko@47: esac melunko@47: ;; melunko@47: melunko@47: gnu*) melunko@47: version_type=linux melunko@47: need_lib_prefix=no melunko@47: need_version=no melunko@47: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' melunko@47: soname_spec='${libname}${release}${shared_ext}$major' melunko@47: shlibpath_var=LD_LIBRARY_PATH melunko@47: hardcode_into_libs=yes melunko@47: ;; melunko@47: melunko@47: hpux9* | hpux10* | hpux11*) melunko@47: # Give a soname corresponding to the major version so that dld.sl refuses to melunko@47: # link against other versions. melunko@47: version_type=sunos melunko@47: need_lib_prefix=no melunko@47: need_version=no melunko@47: case $host_cpu in melunko@47: ia64*) melunko@47: shrext_cmds='.so' melunko@47: hardcode_into_libs=yes melunko@47: dynamic_linker="$host_os dld.so" melunko@47: shlibpath_var=LD_LIBRARY_PATH melunko@47: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. melunko@47: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' melunko@47: soname_spec='${libname}${release}${shared_ext}$major' melunko@47: if test "X$HPUX_IA64_MODE" = X32; then melunko@47: sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" melunko@47: else melunko@47: sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" melunko@47: fi melunko@47: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec melunko@47: ;; melunko@47: hppa*64*) melunko@47: shrext_cmds='.sl' melunko@47: hardcode_into_libs=yes melunko@47: dynamic_linker="$host_os dld.sl" melunko@47: shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH melunko@47: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. melunko@47: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' melunko@47: soname_spec='${libname}${release}${shared_ext}$major' melunko@47: sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" melunko@47: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec melunko@47: ;; melunko@47: *) melunko@47: shrext_cmds='.sl' melunko@47: dynamic_linker="$host_os dld.sl" melunko@47: shlibpath_var=SHLIB_PATH melunko@47: shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH melunko@47: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' melunko@47: soname_spec='${libname}${release}${shared_ext}$major' melunko@47: ;; melunko@47: esac melunko@47: # HP-UX runs *really* slowly unless shared libraries are mode 555. melunko@47: postinstall_cmds='chmod 555 $lib' melunko@47: ;; melunko@47: melunko@47: irix5* | irix6* | nonstopux*) melunko@47: case $host_os in melunko@47: nonstopux*) version_type=nonstopux ;; melunko@47: *) melunko@47: if test "$lt_cv_prog_gnu_ld" = yes; then melunko@47: version_type=linux melunko@47: else melunko@47: version_type=irix melunko@47: fi ;; melunko@47: esac melunko@47: need_lib_prefix=no melunko@47: need_version=no melunko@47: soname_spec='${libname}${release}${shared_ext}$major' melunko@47: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' melunko@47: case $host_os in melunko@47: irix5* | nonstopux*) melunko@47: libsuff= shlibsuff= melunko@47: ;; melunko@47: *) melunko@47: case $LD in # libtool.m4 will add one of these switches to LD melunko@47: *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") melunko@47: libsuff= shlibsuff= libmagic=32-bit;; melunko@47: *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") melunko@47: libsuff=32 shlibsuff=N32 libmagic=N32;; melunko@47: *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") melunko@47: libsuff=64 shlibsuff=64 libmagic=64-bit;; melunko@47: *) libsuff= shlibsuff= libmagic=never-match;; melunko@47: esac melunko@47: ;; melunko@47: esac melunko@47: shlibpath_var=LD_LIBRARY${shlibsuff}_PATH melunko@47: shlibpath_overrides_runpath=no melunko@47: sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" melunko@47: sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" melunko@47: hardcode_into_libs=yes melunko@47: ;; melunko@47: melunko@47: # No shared lib support for Linux oldld, aout, or coff. melunko@47: linux*oldld* | linux*aout* | linux*coff*) melunko@47: dynamic_linker=no melunko@47: ;; melunko@47: melunko@47: # This must be Linux ELF. melunko@47: linux*) melunko@47: version_type=linux melunko@47: need_lib_prefix=no melunko@47: need_version=no melunko@47: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' melunko@47: soname_spec='${libname}${release}${shared_ext}$major' melunko@47: finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' melunko@47: shlibpath_var=LD_LIBRARY_PATH melunko@47: shlibpath_overrides_runpath=no melunko@47: # This implies no fast_install, which is unacceptable. melunko@47: # Some rework will be needed to allow for fast_install melunko@47: # before this can be enabled. melunko@47: hardcode_into_libs=yes melunko@47: melunko@47: # Append ld.so.conf contents to the search path melunko@47: if test -f /etc/ld.so.conf; then melunko@47: lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` melunko@47: sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" melunko@47: fi melunko@47: melunko@47: # We used to test for /lib/ld.so.1 and disable shared libraries on melunko@47: # powerpc, because MkLinux only supported shared libraries with the melunko@47: # GNU dynamic linker. Since this was broken with cross compilers, melunko@47: # most powerpc-linux boxes support dynamic linking these days and melunko@47: # people can always --disable-shared, the test was removed, and we melunko@47: # assume the GNU/Linux dynamic linker is in use. melunko@47: dynamic_linker='GNU/Linux ld.so' melunko@47: ;; melunko@47: melunko@47: knetbsd*-gnu) melunko@47: version_type=linux melunko@47: need_lib_prefix=no melunko@47: need_version=no melunko@47: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' melunko@47: soname_spec='${libname}${release}${shared_ext}$major' melunko@47: shlibpath_var=LD_LIBRARY_PATH melunko@47: shlibpath_overrides_runpath=no melunko@47: hardcode_into_libs=yes melunko@47: dynamic_linker='GNU ld.so' melunko@47: ;; melunko@47: melunko@47: netbsd*) melunko@47: version_type=sunos melunko@47: need_lib_prefix=no melunko@47: need_version=no melunko@47: if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then melunko@47: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' melunko@47: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' melunko@47: dynamic_linker='NetBSD (a.out) ld.so' melunko@47: else melunko@47: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' melunko@47: soname_spec='${libname}${release}${shared_ext}$major' melunko@47: dynamic_linker='NetBSD ld.elf_so' melunko@47: fi melunko@47: shlibpath_var=LD_LIBRARY_PATH melunko@47: shlibpath_overrides_runpath=yes melunko@47: hardcode_into_libs=yes melunko@47: ;; melunko@47: melunko@47: newsos6) melunko@47: version_type=linux melunko@47: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' melunko@47: shlibpath_var=LD_LIBRARY_PATH melunko@47: shlibpath_overrides_runpath=yes melunko@47: ;; melunko@47: melunko@47: nto-qnx*) melunko@47: version_type=linux melunko@47: need_lib_prefix=no melunko@47: need_version=no melunko@47: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' melunko@47: soname_spec='${libname}${release}${shared_ext}$major' melunko@47: shlibpath_var=LD_LIBRARY_PATH melunko@47: shlibpath_overrides_runpath=yes melunko@47: ;; melunko@47: melunko@47: openbsd*) melunko@47: version_type=sunos melunko@47: need_lib_prefix=no melunko@47: # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. melunko@47: case $host_os in melunko@47: openbsd3.3 | openbsd3.3.*) need_version=yes ;; melunko@47: *) need_version=no ;; melunko@47: esac melunko@47: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' melunko@47: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' melunko@47: shlibpath_var=LD_LIBRARY_PATH melunko@47: if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then melunko@47: case $host_os in melunko@47: openbsd2.[89] | openbsd2.[89].*) melunko@47: shlibpath_overrides_runpath=no melunko@47: ;; melunko@47: *) melunko@47: shlibpath_overrides_runpath=yes melunko@47: ;; melunko@47: esac melunko@47: else melunko@47: shlibpath_overrides_runpath=yes melunko@47: fi melunko@47: ;; melunko@47: melunko@47: os2*) melunko@47: libname_spec='$name' melunko@47: shrext_cmds=".dll" melunko@47: need_lib_prefix=no melunko@47: library_names_spec='$libname${shared_ext} $libname.a' melunko@47: dynamic_linker='OS/2 ld.exe' melunko@47: shlibpath_var=LIBPATH melunko@47: ;; melunko@47: melunko@47: osf3* | osf4* | osf5*) melunko@47: version_type=osf melunko@47: need_lib_prefix=no melunko@47: need_version=no melunko@47: soname_spec='${libname}${release}${shared_ext}$major' melunko@47: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' melunko@47: shlibpath_var=LD_LIBRARY_PATH melunko@47: sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" melunko@47: sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" melunko@47: ;; melunko@47: melunko@47: sco3.2v5*) melunko@47: version_type=osf melunko@47: soname_spec='${libname}${release}${shared_ext}$major' melunko@47: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' melunko@47: shlibpath_var=LD_LIBRARY_PATH melunko@47: ;; melunko@47: melunko@47: solaris*) melunko@47: version_type=linux melunko@47: need_lib_prefix=no melunko@47: need_version=no melunko@47: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' melunko@47: soname_spec='${libname}${release}${shared_ext}$major' melunko@47: shlibpath_var=LD_LIBRARY_PATH melunko@47: shlibpath_overrides_runpath=yes melunko@47: hardcode_into_libs=yes melunko@47: # ldd complains unless libraries are executable melunko@47: postinstall_cmds='chmod +x $lib' melunko@47: ;; melunko@47: melunko@47: sunos4*) melunko@47: version_type=sunos melunko@47: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' melunko@47: finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' melunko@47: shlibpath_var=LD_LIBRARY_PATH melunko@47: shlibpath_overrides_runpath=yes melunko@47: if test "$with_gnu_ld" = yes; then melunko@47: need_lib_prefix=no melunko@47: fi melunko@47: need_version=yes melunko@47: ;; melunko@47: melunko@47: sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) melunko@47: version_type=linux melunko@47: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' melunko@47: soname_spec='${libname}${release}${shared_ext}$major' melunko@47: shlibpath_var=LD_LIBRARY_PATH melunko@47: case $host_vendor in melunko@47: sni) melunko@47: shlibpath_overrides_runpath=no melunko@47: need_lib_prefix=no melunko@47: export_dynamic_flag_spec='${wl}-Blargedynsym' melunko@47: runpath_var=LD_RUN_PATH melunko@47: ;; melunko@47: siemens) melunko@47: need_lib_prefix=no melunko@47: ;; melunko@47: motorola) melunko@47: need_lib_prefix=no melunko@47: need_version=no melunko@47: shlibpath_overrides_runpath=no melunko@47: sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' melunko@47: ;; melunko@47: esac melunko@47: ;; melunko@47: melunko@47: sysv4*MP*) melunko@47: if test -d /usr/nec ;then melunko@47: version_type=linux melunko@47: library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' melunko@47: soname_spec='$libname${shared_ext}.$major' melunko@47: shlibpath_var=LD_LIBRARY_PATH melunko@47: fi melunko@47: ;; melunko@47: melunko@47: uts4*) melunko@47: version_type=linux melunko@47: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' melunko@47: soname_spec='${libname}${release}${shared_ext}$major' melunko@47: shlibpath_var=LD_LIBRARY_PATH melunko@47: ;; melunko@47: melunko@47: *) melunko@47: dynamic_linker=no melunko@47: ;; melunko@47: esac melunko@47: echo "$as_me:$LINENO: result: $dynamic_linker" >&5 melunko@47: echo "${ECHO_T}$dynamic_linker" >&6 melunko@47: test "$dynamic_linker" = no && can_build_shared=no melunko@47: melunko@47: echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 melunko@47: echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 melunko@47: hardcode_action= melunko@47: if test -n "$hardcode_libdir_flag_spec" || \ melunko@47: test -n "$runpath_var" || \ melunko@47: test "X$hardcode_automatic" = "Xyes" ; then melunko@47: melunko@47: # We can hardcode non-existant directories. melunko@47: if test "$hardcode_direct" != no && melunko@47: # If the only mechanism to avoid hardcoding is shlibpath_var, we melunko@47: # have to relink, otherwise we might link with an installed library melunko@47: # when we should be linking with a yet-to-be-installed one melunko@47: ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no && melunko@47: test "$hardcode_minus_L" != no; then melunko@47: # Linking always hardcodes the temporary library directory. melunko@47: hardcode_action=relink melunko@47: else melunko@47: # We can link without hardcoding, and we can hardcode nonexisting dirs. melunko@47: hardcode_action=immediate melunko@47: fi melunko@47: else melunko@47: # We cannot hardcode anything, or else we can only hardcode existing melunko@47: # directories. melunko@47: hardcode_action=unsupported melunko@47: fi melunko@47: echo "$as_me:$LINENO: result: $hardcode_action" >&5 melunko@47: echo "${ECHO_T}$hardcode_action" >&6 melunko@47: melunko@47: if test "$hardcode_action" = relink; then melunko@47: # Fast installation is not supported melunko@47: enable_fast_install=no melunko@47: elif test "$shlibpath_overrides_runpath" = yes || melunko@47: test "$enable_shared" = no; then melunko@47: # Fast installation is not necessary melunko@47: enable_fast_install=needless melunko@47: fi melunko@47: melunko@47: striplib= melunko@47: old_striplib= melunko@47: echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 melunko@47: echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 melunko@47: if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then melunko@47: test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" melunko@47: test -z "$striplib" && striplib="$STRIP --strip-unneeded" melunko@47: echo "$as_me:$LINENO: result: yes" >&5 melunko@47: echo "${ECHO_T}yes" >&6 melunko@47: else melunko@47: # FIXME - insert some real tests, host_os isn't really good enough melunko@47: case $host_os in melunko@47: darwin*) melunko@47: if test -n "$STRIP" ; then melunko@47: striplib="$STRIP -x" melunko@47: echo "$as_me:$LINENO: result: yes" >&5 melunko@47: echo "${ECHO_T}yes" >&6 melunko@47: else melunko@47: echo "$as_me:$LINENO: result: no" >&5 melunko@47: echo "${ECHO_T}no" >&6 melunko@47: fi melunko@47: ;; melunko@47: *) melunko@47: echo "$as_me:$LINENO: result: no" >&5 melunko@47: echo "${ECHO_T}no" >&6 melunko@47: ;; melunko@47: esac melunko@47: fi melunko@47: melunko@47: if test "x$enable_dlopen" != xyes; then melunko@47: enable_dlopen=unknown melunko@47: enable_dlopen_self=unknown melunko@47: enable_dlopen_self_static=unknown melunko@47: else melunko@47: lt_cv_dlopen=no melunko@47: lt_cv_dlopen_libs= melunko@47: melunko@47: case $host_os in melunko@47: beos*) melunko@47: lt_cv_dlopen="load_add_on" melunko@47: lt_cv_dlopen_libs= melunko@47: lt_cv_dlopen_self=yes melunko@47: ;; melunko@47: melunko@47: mingw* | pw32*) melunko@47: lt_cv_dlopen="LoadLibrary" melunko@47: lt_cv_dlopen_libs= melunko@47: ;; melunko@47: melunko@47: cygwin*) melunko@47: lt_cv_dlopen="dlopen" melunko@47: lt_cv_dlopen_libs= melunko@47: ;; melunko@47: melunko@47: darwin*) melunko@47: # if libdl is installed we need to link against it melunko@47: echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 melunko@47: echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 melunko@47: if test "${ac_cv_lib_dl_dlopen+set}" = set; then melunko@47: echo $ECHO_N "(cached) $ECHO_C" >&6 melunko@47: else melunko@47: ac_check_lib_save_LIBS=$LIBS melunko@47: LIBS="-ldl $LIBS" melunko@47: cat >conftest.$ac_ext <<_ACEOF melunko@47: /* confdefs.h. */ melunko@47: _ACEOF melunko@47: cat confdefs.h >>conftest.$ac_ext melunko@47: cat >>conftest.$ac_ext <<_ACEOF melunko@47: /* end confdefs.h. */ melunko@47: melunko@47: /* Override any gcc2 internal prototype to avoid an error. */ melunko@47: #ifdef __cplusplus melunko@47: extern "C" melunko@47: #endif melunko@47: /* We use char because int might match the return type of a gcc2 melunko@47: builtin and then its argument prototype would still apply. */ melunko@47: char dlopen (); melunko@47: int melunko@47: main () melunko@47: { melunko@47: dlopen (); melunko@47: ; melunko@47: return 0; melunko@47: } melunko@47: _ACEOF melunko@47: rm -f conftest.$ac_objext conftest$ac_exeext melunko@47: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 melunko@47: (eval $ac_link) 2>conftest.er1 melunko@47: ac_status=$? melunko@47: grep -v '^ *+' conftest.er1 >conftest.err melunko@47: rm -f conftest.er1 melunko@47: cat conftest.err >&5 melunko@47: echo "$as_me:$LINENO: \$? = $ac_status" >&5 melunko@47: (exit $ac_status); } && melunko@47: { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' melunko@47: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 melunko@47: (eval $ac_try) 2>&5 melunko@47: ac_status=$? melunko@47: echo "$as_me:$LINENO: \$? = $ac_status" >&5 melunko@47: (exit $ac_status); }; } && melunko@47: { ac_try='test -s conftest$ac_exeext' melunko@47: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 melunko@47: (eval $ac_try) 2>&5 melunko@47: ac_status=$? melunko@47: echo "$as_me:$LINENO: \$? = $ac_status" >&5 melunko@47: (exit $ac_status); }; }; then melunko@47: ac_cv_lib_dl_dlopen=yes melunko@47: else melunko@47: echo "$as_me: failed program was:" >&5 melunko@47: sed 's/^/| /' conftest.$ac_ext >&5 melunko@47: melunko@47: ac_cv_lib_dl_dlopen=no melunko@47: fi melunko@47: rm -f conftest.err conftest.$ac_objext \ melunko@47: conftest$ac_exeext conftest.$ac_ext melunko@47: LIBS=$ac_check_lib_save_LIBS melunko@47: fi melunko@47: echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 melunko@47: echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 melunko@47: if test $ac_cv_lib_dl_dlopen = yes; then melunko@47: lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" melunko@47: else melunko@47: melunko@47: lt_cv_dlopen="dyld" melunko@47: lt_cv_dlopen_libs= melunko@47: lt_cv_dlopen_self=yes melunko@47: melunko@47: fi melunko@47: melunko@47: ;; melunko@47: melunko@47: *) melunko@47: echo "$as_me:$LINENO: checking for shl_load" >&5 melunko@47: echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 melunko@47: if test "${ac_cv_func_shl_load+set}" = set; then melunko@47: echo $ECHO_N "(cached) $ECHO_C" >&6 melunko@47: else melunko@47: cat >conftest.$ac_ext <<_ACEOF melunko@47: /* confdefs.h. */ melunko@47: _ACEOF melunko@47: cat confdefs.h >>conftest.$ac_ext melunko@47: cat >>conftest.$ac_ext <<_ACEOF melunko@47: /* end confdefs.h. */ melunko@47: /* Define shl_load to an innocuous variant, in case declares shl_load. melunko@47: For example, HP-UX 11i declares gettimeofday. */ melunko@47: #define shl_load innocuous_shl_load melunko@47: melunko@47: /* System header to define __stub macros and hopefully few prototypes, melunko@47: which can conflict with char shl_load (); below. melunko@47: Prefer to if __STDC__ is defined, since melunko@47: exists even on freestanding compilers. */ melunko@47: melunko@47: #ifdef __STDC__ melunko@47: # include melunko@47: #else melunko@47: # include melunko@47: #endif melunko@47: melunko@47: #undef shl_load melunko@47: melunko@47: /* Override any gcc2 internal prototype to avoid an error. */ melunko@47: #ifdef __cplusplus melunko@47: extern "C" melunko@47: { melunko@47: #endif melunko@47: /* We use char because int might match the return type of a gcc2 melunko@47: builtin and then its argument prototype would still apply. */ melunko@47: char shl_load (); melunko@47: /* The GNU C library defines this for functions which it implements melunko@47: to always fail with ENOSYS. Some functions are actually named melunko@47: something starting with __ and the normal name is an alias. */ melunko@47: #if defined (__stub_shl_load) || defined (__stub___shl_load) melunko@47: choke me melunko@47: #else melunko@47: char (*f) () = shl_load; melunko@47: #endif melunko@47: #ifdef __cplusplus melunko@47: } melunko@47: #endif melunko@47: melunko@47: int melunko@47: main () melunko@47: { melunko@47: return f != shl_load; melunko@47: ; melunko@47: return 0; melunko@47: } melunko@47: _ACEOF melunko@47: rm -f conftest.$ac_objext conftest$ac_exeext melunko@47: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 melunko@47: (eval $ac_link) 2>conftest.er1 melunko@47: ac_status=$? melunko@47: grep -v '^ *+' conftest.er1 >conftest.err melunko@47: rm -f conftest.er1 melunko@47: cat conftest.err >&5 melunko@47: echo "$as_me:$LINENO: \$? = $ac_status" >&5 melunko@47: (exit $ac_status); } && melunko@47: { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' melunko@47: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 melunko@47: (eval $ac_try) 2>&5 melunko@47: ac_status=$? melunko@47: echo "$as_me:$LINENO: \$? = $ac_status" >&5 melunko@47: (exit $ac_status); }; } && melunko@47: { ac_try='test -s conftest$ac_exeext' melunko@47: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 melunko@47: (eval $ac_try) 2>&5 melunko@47: ac_status=$? melunko@47: echo "$as_me:$LINENO: \$? = $ac_status" >&5 melunko@47: (exit $ac_status); }; }; then melunko@47: ac_cv_func_shl_load=yes melunko@47: else melunko@47: echo "$as_me: failed program was:" >&5 melunko@47: sed 's/^/| /' conftest.$ac_ext >&5 melunko@47: melunko@47: ac_cv_func_shl_load=no melunko@47: fi melunko@47: rm -f conftest.err conftest.$ac_objext \ melunko@47: conftest$ac_exeext conftest.$ac_ext melunko@47: fi melunko@47: echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 melunko@47: echo "${ECHO_T}$ac_cv_func_shl_load" >&6 melunko@47: if test $ac_cv_func_shl_load = yes; then melunko@47: lt_cv_dlopen="shl_load" melunko@47: else melunko@47: echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 melunko@47: echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 melunko@47: if test "${ac_cv_lib_dld_shl_load+set}" = set; then melunko@47: echo $ECHO_N "(cached) $ECHO_C" >&6 melunko@47: else melunko@47: ac_check_lib_save_LIBS=$LIBS melunko@47: LIBS="-ldld $LIBS" melunko@47: cat >conftest.$ac_ext <<_ACEOF melunko@47: /* confdefs.h. */ melunko@47: _ACEOF melunko@47: cat confdefs.h >>conftest.$ac_ext melunko@47: cat >>conftest.$ac_ext <<_ACEOF melunko@47: /* end confdefs.h. */ melunko@47: melunko@47: /* Override any gcc2 internal prototype to avoid an error. */ melunko@47: #ifdef __cplusplus melunko@47: extern "C" melunko@47: #endif melunko@47: /* We use char because int might match the return type of a gcc2 melunko@47: builtin and then its argument prototype would still apply. */ melunko@47: char shl_load (); melunko@47: int melunko@47: main () melunko@47: { melunko@47: shl_load (); melunko@47: ; melunko@47: return 0; melunko@47: } melunko@47: _ACEOF melunko@47: rm -f conftest.$ac_objext conftest$ac_exeext melunko@47: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 melunko@47: (eval $ac_link) 2>conftest.er1 melunko@47: ac_status=$? melunko@47: grep -v '^ *+' conftest.er1 >conftest.err melunko@47: rm -f conftest.er1 melunko@47: cat conftest.err >&5 melunko@47: echo "$as_me:$LINENO: \$? = $ac_status" >&5 melunko@47: (exit $ac_status); } && melunko@47: { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' melunko@47: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 melunko@47: (eval $ac_try) 2>&5 melunko@47: ac_status=$? melunko@47: echo "$as_me:$LINENO: \$? = $ac_status" >&5 melunko@47: (exit $ac_status); }; } && melunko@47: { ac_try='test -s conftest$ac_exeext' melunko@47: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 melunko@47: (eval $ac_try) 2>&5 melunko@47: ac_status=$? melunko@47: echo "$as_me:$LINENO: \$? = $ac_status" >&5 melunko@47: (exit $ac_status); }; }; then melunko@47: ac_cv_lib_dld_shl_load=yes melunko@47: else melunko@47: echo "$as_me: failed program was:" >&5 melunko@47: sed 's/^/| /' conftest.$ac_ext >&5 melunko@47: melunko@47: ac_cv_lib_dld_shl_load=no melunko@47: fi melunko@47: rm -f conftest.err conftest.$ac_objext \ melunko@47: conftest$ac_exeext conftest.$ac_ext melunko@47: LIBS=$ac_check_lib_save_LIBS melunko@47: fi melunko@47: echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 melunko@47: echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 melunko@47: if test $ac_cv_lib_dld_shl_load = yes; then melunko@47: lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" melunko@47: else melunko@47: echo "$as_me:$LINENO: checking for dlopen" >&5 melunko@47: echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 melunko@47: if test "${ac_cv_func_dlopen+set}" = set; then melunko@47: echo $ECHO_N "(cached) $ECHO_C" >&6 melunko@47: else melunko@47: cat >conftest.$ac_ext <<_ACEOF melunko@47: /* confdefs.h. */ melunko@47: _ACEOF melunko@47: cat confdefs.h >>conftest.$ac_ext melunko@47: cat >>conftest.$ac_ext <<_ACEOF melunko@47: /* end confdefs.h. */ melunko@47: /* Define dlopen to an innocuous variant, in case declares dlopen. melunko@47: For example, HP-UX 11i declares gettimeofday. */ melunko@47: #define dlopen innocuous_dlopen melunko@47: melunko@47: /* System header to define __stub macros and hopefully few prototypes, melunko@47: which can conflict with char dlopen (); below. melunko@47: Prefer to if __STDC__ is defined, since melunko@47: exists even on freestanding compilers. */ melunko@47: melunko@47: #ifdef __STDC__ melunko@47: # include melunko@47: #else melunko@47: # include melunko@47: #endif melunko@47: melunko@47: #undef dlopen melunko@47: melunko@47: /* Override any gcc2 internal prototype to avoid an error. */ melunko@47: #ifdef __cplusplus melunko@47: extern "C" melunko@47: { melunko@47: #endif melunko@47: /* We use char because int might match the return type of a gcc2 melunko@47: builtin and then its argument prototype would still apply. */ melunko@47: char dlopen (); melunko@47: /* The GNU C library defines this for functions which it implements melunko@47: to always fail with ENOSYS. Some functions are actually named melunko@47: something starting with __ and the normal name is an alias. */ melunko@47: #if defined (__stub_dlopen) || defined (__stub___dlopen) melunko@47: choke me melunko@47: #else melunko@47: char (*f) () = dlopen; melunko@47: #endif melunko@47: #ifdef __cplusplus melunko@47: } melunko@47: #endif melunko@47: melunko@47: int melunko@47: main () melunko@47: { melunko@47: return f != dlopen; melunko@47: ; melunko@47: return 0; melunko@47: } melunko@47: _ACEOF melunko@47: rm -f conftest.$ac_objext conftest$ac_exeext melunko@47: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 melunko@47: (eval $ac_link) 2>conftest.er1 melunko@47: ac_status=$? melunko@47: grep -v '^ *+' conftest.er1 >conftest.err melunko@47: rm -f conftest.er1 melunko@47: cat conftest.err >&5 melunko@47: echo "$as_me:$LINENO: \$? = $ac_status" >&5 melunko@47: (exit $ac_status); } && melunko@47: { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' melunko@47: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 melunko@47: (eval $ac_try) 2>&5 melunko@47: ac_status=$? melunko@47: echo "$as_me:$LINENO: \$? = $ac_status" >&5 melunko@47: (exit $ac_status); }; } && melunko@47: { ac_try='test -s conftest$ac_exeext' melunko@47: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 melunko@47: (eval $ac_try) 2>&5 melunko@47: ac_status=$? melunko@47: echo "$as_me:$LINENO: \$? = $ac_status" >&5 melunko@47: (exit $ac_status); }; }; then melunko@47: ac_cv_func_dlopen=yes melunko@47: else melunko@47: echo "$as_me: failed program was:" >&5 melunko@47: sed 's/^/| /' conftest.$ac_ext >&5 melunko@47: melunko@47: ac_cv_func_dlopen=no melunko@47: fi melunko@47: rm -f conftest.err conftest.$ac_objext \ melunko@47: conftest$ac_exeext conftest.$ac_ext melunko@47: fi melunko@47: echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 melunko@47: echo "${ECHO_T}$ac_cv_func_dlopen" >&6 melunko@47: if test $ac_cv_func_dlopen = yes; then melunko@47: lt_cv_dlopen="dlopen" melunko@47: else melunko@47: echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 melunko@47: echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 melunko@47: if test "${ac_cv_lib_dl_dlopen+set}" = set; then melunko@47: echo $ECHO_N "(cached) $ECHO_C" >&6 melunko@47: else melunko@47: ac_check_lib_save_LIBS=$LIBS melunko@47: LIBS="-ldl $LIBS" melunko@47: cat >conftest.$ac_ext <<_ACEOF melunko@47: /* confdefs.h. */ melunko@47: _ACEOF melunko@47: cat confdefs.h >>conftest.$ac_ext melunko@47: cat >>conftest.$ac_ext <<_ACEOF melunko@47: /* end confdefs.h. */ melunko@47: melunko@47: /* Override any gcc2 internal prototype to avoid an error. */ melunko@47: #ifdef __cplusplus melunko@47: extern "C" melunko@47: #endif melunko@47: /* We use char because int might match the return type of a gcc2 melunko@47: builtin and then its argument prototype would still apply. */ melunko@47: char dlopen (); melunko@47: int melunko@47: main () melunko@47: { melunko@47: dlopen (); melunko@47: ; melunko@47: return 0; melunko@47: } melunko@47: _ACEOF melunko@47: rm -f conftest.$ac_objext conftest$ac_exeext melunko@47: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 melunko@47: (eval $ac_link) 2>conftest.er1 melunko@47: ac_status=$? melunko@47: grep -v '^ *+' conftest.er1 >conftest.err melunko@47: rm -f conftest.er1 melunko@47: cat conftest.err >&5 melunko@47: echo "$as_me:$LINENO: \$? = $ac_status" >&5 melunko@47: (exit $ac_status); } && melunko@47: { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' melunko@47: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 melunko@47: (eval $ac_try) 2>&5 melunko@47: ac_status=$? melunko@47: echo "$as_me:$LINENO: \$? = $ac_status" >&5 melunko@47: (exit $ac_status); }; } && melunko@47: { ac_try='test -s conftest$ac_exeext' melunko@47: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 melunko@47: (eval $ac_try) 2>&5 melunko@47: ac_status=$? melunko@47: echo "$as_me:$LINENO: \$? = $ac_status" >&5 melunko@47: (exit $ac_status); }; }; then melunko@47: ac_cv_lib_dl_dlopen=yes melunko@47: else melunko@47: echo "$as_me: failed program was:" >&5 melunko@47: sed 's/^/| /' conftest.$ac_ext >&5 melunko@47: melunko@47: ac_cv_lib_dl_dlopen=no melunko@47: fi melunko@47: rm -f conftest.err conftest.$ac_objext \ melunko@47: conftest$ac_exeext conftest.$ac_ext melunko@47: LIBS=$ac_check_lib_save_LIBS melunko@47: fi melunko@47: echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 melunko@47: echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 melunko@47: if test $ac_cv_lib_dl_dlopen = yes; then melunko@47: lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" melunko@47: else melunko@47: echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 melunko@47: echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 melunko@47: if test "${ac_cv_lib_svld_dlopen+set}" = set; then melunko@47: echo $ECHO_N "(cached) $ECHO_C" >&6 melunko@47: else melunko@47: ac_check_lib_save_LIBS=$LIBS melunko@47: LIBS="-lsvld $LIBS" melunko@47: cat >conftest.$ac_ext <<_ACEOF melunko@47: /* confdefs.h. */ melunko@47: _ACEOF melunko@47: cat confdefs.h >>conftest.$ac_ext melunko@47: cat >>conftest.$ac_ext <<_ACEOF melunko@47: /* end confdefs.h. */ melunko@47: melunko@47: /* Override any gcc2 internal prototype to avoid an error. */ melunko@47: #ifdef __cplusplus melunko@47: extern "C" melunko@47: #endif melunko@47: /* We use char because int might match the return type of a gcc2 melunko@47: builtin and then its argument prototype would still apply. */ melunko@47: char dlopen (); melunko@47: int melunko@47: main () melunko@47: { melunko@47: dlopen (); melunko@47: ; melunko@47: return 0; melunko@47: } melunko@47: _ACEOF melunko@47: rm -f conftest.$ac_objext conftest$ac_exeext melunko@47: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 melunko@47: (eval $ac_link) 2>conftest.er1 melunko@47: ac_status=$? melunko@47: grep -v '^ *+' conftest.er1 >conftest.err melunko@47: rm -f conftest.er1 melunko@47: cat conftest.err >&5 melunko@47: echo "$as_me:$LINENO: \$? = $ac_status" >&5 melunko@47: (exit $ac_status); } && melunko@47: { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' melunko@47: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 melunko@47: (eval $ac_try) 2>&5 melunko@47: ac_status=$? melunko@47: echo "$as_me:$LINENO: \$? = $ac_status" >&5 melunko@47: (exit $ac_status); }; } && melunko@47: { ac_try='test -s conftest$ac_exeext' melunko@47: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 melunko@47: (eval $ac_try) 2>&5 melunko@47: ac_status=$? melunko@47: echo "$as_me:$LINENO: \$? = $ac_status" >&5 melunko@47: (exit $ac_status); }; }; then melunko@47: ac_cv_lib_svld_dlopen=yes melunko@47: else melunko@47: echo "$as_me: failed program was:" >&5 melunko@47: sed 's/^/| /' conftest.$ac_ext >&5 melunko@47: melunko@47: ac_cv_lib_svld_dlopen=no melunko@47: fi melunko@47: rm -f conftest.err conftest.$ac_objext \ melunko@47: conftest$ac_exeext conftest.$ac_ext melunko@47: LIBS=$ac_check_lib_save_LIBS melunko@47: fi melunko@47: echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 melunko@47: echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 melunko@47: if test $ac_cv_lib_svld_dlopen = yes; then melunko@47: lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" melunko@47: else melunko@47: echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 melunko@47: echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 melunko@47: if test "${ac_cv_lib_dld_dld_link+set}" = set; then melunko@47: echo $ECHO_N "(cached) $ECHO_C" >&6 melunko@47: else melunko@47: ac_check_lib_save_LIBS=$LIBS melunko@47: LIBS="-ldld $LIBS" melunko@47: cat >conftest.$ac_ext <<_ACEOF melunko@47: /* confdefs.h. */ melunko@47: _ACEOF melunko@47: cat confdefs.h >>conftest.$ac_ext melunko@47: cat >>conftest.$ac_ext <<_ACEOF melunko@47: /* end confdefs.h. */ melunko@47: melunko@47: /* Override any gcc2 internal prototype to avoid an error. */ melunko@47: #ifdef __cplusplus melunko@47: extern "C" melunko@47: #endif melunko@47: /* We use char because int might match the return type of a gcc2 melunko@47: builtin and then its argument prototype would still apply. */ melunko@47: char dld_link (); melunko@47: int melunko@47: main () melunko@47: { melunko@47: dld_link (); melunko@47: ; melunko@47: return 0; melunko@47: } melunko@47: _ACEOF melunko@47: rm -f conftest.$ac_objext conftest$ac_exeext melunko@47: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 melunko@47: (eval $ac_link) 2>conftest.er1 melunko@47: ac_status=$? melunko@47: grep -v '^ *+' conftest.er1 >conftest.err melunko@47: rm -f conftest.er1 melunko@47: cat conftest.err >&5 melunko@47: echo "$as_me:$LINENO: \$? = $ac_status" >&5 melunko@47: (exit $ac_status); } && melunko@47: { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' melunko@47: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 melunko@47: (eval $ac_try) 2>&5 melunko@47: ac_status=$? melunko@47: echo "$as_me:$LINENO: \$? = $ac_status" >&5 melunko@47: (exit $ac_status); }; } && melunko@47: { ac_try='test -s conftest$ac_exeext' melunko@47: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 melunko@47: (eval $ac_try) 2>&5 melunko@47: ac_status=$? melunko@47: echo "$as_me:$LINENO: \$? = $ac_status" >&5 melunko@47: (exit $ac_status); }; }; then melunko@47: ac_cv_lib_dld_dld_link=yes melunko@47: else melunko@47: echo "$as_me: failed program was:" >&5 melunko@47: sed 's/^/| /' conftest.$ac_ext >&5 melunko@47: melunko@47: ac_cv_lib_dld_dld_link=no melunko@47: fi melunko@47: rm -f conftest.err conftest.$ac_objext \ melunko@47: conftest$ac_exeext conftest.$ac_ext melunko@47: LIBS=$ac_check_lib_save_LIBS melunko@47: fi melunko@47: echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 melunko@47: echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 melunko@47: if test $ac_cv_lib_dld_dld_link = yes; then melunko@47: lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" melunko@47: fi melunko@47: melunko@47: melunko@47: fi melunko@47: melunko@47: melunko@47: fi melunko@47: melunko@47: melunko@47: fi melunko@47: melunko@47: melunko@47: fi melunko@47: melunko@47: melunko@47: fi melunko@47: melunko@47: ;; melunko@47: esac melunko@47: melunko@47: if test "x$lt_cv_dlopen" != xno; then melunko@47: enable_dlopen=yes melunko@47: else melunko@47: enable_dlopen=no melunko@47: fi melunko@47: melunko@47: case $lt_cv_dlopen in melunko@47: dlopen) melunko@47: save_CPPFLAGS="$CPPFLAGS" melunko@47: test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" melunko@47: melunko@47: save_LDFLAGS="$LDFLAGS" melunko@47: eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" melunko@47: melunko@47: save_LIBS="$LIBS" melunko@47: LIBS="$lt_cv_dlopen_libs $LIBS" melunko@47: melunko@47: echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 melunko@47: echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 melunko@47: if test "${lt_cv_dlopen_self+set}" = set; then melunko@47: echo $ECHO_N "(cached) $ECHO_C" >&6 melunko@47: else melunko@47: if test "$cross_compiling" = yes; then : melunko@47: lt_cv_dlopen_self=cross melunko@47: else melunko@47: lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 melunko@47: lt_status=$lt_dlunknown melunko@47: cat > conftest.$ac_ext < melunko@47: #endif melunko@47: melunko@47: #include melunko@47: melunko@47: #ifdef RTLD_GLOBAL melunko@47: # define LT_DLGLOBAL RTLD_GLOBAL melunko@47: #else melunko@47: # ifdef DL_GLOBAL melunko@47: # define LT_DLGLOBAL DL_GLOBAL melunko@47: # else melunko@47: # define LT_DLGLOBAL 0 melunko@47: # endif melunko@47: #endif melunko@47: melunko@47: /* We may have to define LT_DLLAZY_OR_NOW in the command line if we melunko@47: find out it does not work in some platform. */ melunko@47: #ifndef LT_DLLAZY_OR_NOW melunko@47: # ifdef RTLD_LAZY melunko@47: # define LT_DLLAZY_OR_NOW RTLD_LAZY melunko@47: # else melunko@47: # ifdef DL_LAZY melunko@47: # define LT_DLLAZY_OR_NOW DL_LAZY melunko@47: # else melunko@47: # ifdef RTLD_NOW melunko@47: # define LT_DLLAZY_OR_NOW RTLD_NOW melunko@47: # else melunko@47: # ifdef DL_NOW melunko@47: # define LT_DLLAZY_OR_NOW DL_NOW melunko@47: # else melunko@47: # define LT_DLLAZY_OR_NOW 0 melunko@47: # endif melunko@47: # endif melunko@47: # endif melunko@47: # endif melunko@47: #endif melunko@47: melunko@47: #ifdef __cplusplus melunko@47: extern "C" void exit (int); melunko@47: #endif melunko@47: melunko@47: void fnord() { int i=42;} melunko@47: int main () melunko@47: { melunko@47: void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); melunko@47: int status = $lt_dlunknown; melunko@47: melunko@47: if (self) melunko@47: { melunko@47: if (dlsym (self,"fnord")) status = $lt_dlno_uscore; melunko@47: else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; melunko@47: /* dlclose (self); */ melunko@47: } melunko@47: melunko@47: exit (status); melunko@47: } melunko@47: EOF melunko@47: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 melunko@47: (eval $ac_link) 2>&5 melunko@47: ac_status=$? melunko@47: echo "$as_me:$LINENO: \$? = $ac_status" >&5 melunko@47: (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then melunko@47: (./conftest; exit; ) >&5 2>/dev/null melunko@47: lt_status=$? melunko@47: case x$lt_status in melunko@47: x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; melunko@47: x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; melunko@47: x$lt_unknown|x*) lt_cv_dlopen_self=no ;; melunko@47: esac melunko@47: else : melunko@47: # compilation failed melunko@47: lt_cv_dlopen_self=no melunko@47: fi melunko@47: fi melunko@47: rm -fr conftest* melunko@47: melunko@47: melunko@47: fi melunko@47: echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 melunko@47: echo "${ECHO_T}$lt_cv_dlopen_self" >&6 melunko@47: melunko@47: if test "x$lt_cv_dlopen_self" = xyes; then melunko@47: LDFLAGS="$LDFLAGS $link_static_flag" melunko@47: echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 melunko@47: echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 melunko@47: if test "${lt_cv_dlopen_self_static+set}" = set; then melunko@47: echo $ECHO_N "(cached) $ECHO_C" >&6 melunko@47: else melunko@47: if test "$cross_compiling" = yes; then : melunko@47: lt_cv_dlopen_self_static=cross melunko@47: else melunko@47: lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 melunko@47: lt_status=$lt_dlunknown melunko@47: cat > conftest.$ac_ext < melunko@47: #endif melunko@47: melunko@47: #include melunko@47: melunko@47: #ifdef RTLD_GLOBAL melunko@47: # define LT_DLGLOBAL RTLD_GLOBAL melunko@47: #else melunko@47: # ifdef DL_GLOBAL melunko@47: # define LT_DLGLOBAL DL_GLOBAL melunko@47: # else melunko@47: # define LT_DLGLOBAL 0 melunko@47: # endif melunko@47: #endif melunko@47: melunko@47: /* We may have to define LT_DLLAZY_OR_NOW in the command line if we melunko@47: find out it does not work in some platform. */ melunko@47: #ifndef LT_DLLAZY_OR_NOW melunko@47: # ifdef RTLD_LAZY melunko@47: # define LT_DLLAZY_OR_NOW RTLD_LAZY melunko@47: # else melunko@47: # ifdef DL_LAZY melunko@47: # define LT_DLLAZY_OR_NOW DL_LAZY melunko@47: # else melunko@47: # ifdef RTLD_NOW melunko@47: # define LT_DLLAZY_OR_NOW RTLD_NOW melunko@47: # else melunko@47: # ifdef DL_NOW melunko@47: # define LT_DLLAZY_OR_NOW DL_NOW melunko@47: # else melunko@47: # define LT_DLLAZY_OR_NOW 0 melunko@47: # endif melunko@47: # endif melunko@47: # endif melunko@47: # endif melunko@47: #endif melunko@47: melunko@47: #ifdef __cplusplus melunko@47: extern "C" void exit (int); melunko@47: #endif melunko@47: melunko@47: void fnord() { int i=42;} melunko@47: int main () melunko@47: { melunko@47: void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); melunko@47: int status = $lt_dlunknown; melunko@47: melunko@47: if (self) melunko@47: { melunko@47: if (dlsym (self,"fnord")) status = $lt_dlno_uscore; melunko@47: else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; melunko@47: /* dlclose (self); */ melunko@47: } melunko@47: melunko@47: exit (status); melunko@47: } melunko@47: EOF melunko@47: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 melunko@47: (eval $ac_link) 2>&5 melunko@47: ac_status=$? melunko@47: echo "$as_me:$LINENO: \$? = $ac_status" >&5 melunko@47: (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then melunko@47: (./conftest; exit; ) >&5 2>/dev/null melunko@47: lt_status=$? melunko@47: case x$lt_status in melunko@47: x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; melunko@47: x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; melunko@47: x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;; melunko@47: esac melunko@47: else : melunko@47: # compilation failed melunko@47: lt_cv_dlopen_self_static=no melunko@47: fi melunko@47: fi melunko@47: rm -fr conftest* melunko@47: melunko@47: melunko@47: fi melunko@47: echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 melunko@47: echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 melunko@47: fi melunko@47: melunko@47: CPPFLAGS="$save_CPPFLAGS" melunko@47: LDFLAGS="$save_LDFLAGS" melunko@47: LIBS="$save_LIBS" melunko@47: ;; melunko@47: esac melunko@47: melunko@47: case $lt_cv_dlopen_self in melunko@47: yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; melunko@47: *) enable_dlopen_self=unknown ;; melunko@47: esac melunko@47: melunko@47: case $lt_cv_dlopen_self_static in melunko@47: yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; melunko@47: *) enable_dlopen_self_static=unknown ;; melunko@47: esac melunko@47: fi melunko@47: melunko@47: melunko@47: # Report which librarie types wil actually be built melunko@47: echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 melunko@47: echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6 melunko@47: echo "$as_me:$LINENO: result: $can_build_shared" >&5 melunko@47: echo "${ECHO_T}$can_build_shared" >&6 melunko@47: melunko@47: echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 melunko@47: echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6 melunko@47: test "$can_build_shared" = "no" && enable_shared=no melunko@47: melunko@47: # On AIX, shared libraries and static libraries use the same namespace, and melunko@47: # are all built from PIC. melunko@47: case $host_os in melunko@47: aix3*) melunko@47: test "$enable_shared" = yes && enable_static=no melunko@47: if test -n "$RANLIB"; then melunko@47: archive_cmds="$archive_cmds~\$RANLIB \$lib" melunko@47: postinstall_cmds='$RANLIB $lib' melunko@47: fi melunko@47: ;; melunko@47: melunko@47: aix4* | aix5*) melunko@47: if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then melunko@47: test "$enable_shared" = yes && enable_static=no melunko@47: fi melunko@47: ;; melunko@47: esac melunko@47: echo "$as_me:$LINENO: result: $enable_shared" >&5 melunko@47: echo "${ECHO_T}$enable_shared" >&6 melunko@47: melunko@47: echo "$as_me:$LINENO: checking whether to build static libraries" >&5 melunko@47: echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6 melunko@47: # Make sure either enable_shared or enable_static is yes. melunko@47: test "$enable_shared" = yes || enable_static=yes melunko@47: echo "$as_me:$LINENO: result: $enable_static" >&5 melunko@47: echo "${ECHO_T}$enable_static" >&6 melunko@47: melunko@47: # The else clause should only fire when bootstrapping the melunko@47: # libtool distribution, otherwise you forgot to ship ltmain.sh melunko@47: # with your package, and you will get complaints that there are melunko@47: # no rules to generate ltmain.sh. melunko@47: if test -f "$ltmain"; then melunko@47: # See if we are running on zsh, and set the options which allow our commands through melunko@47: # without removal of \ escapes. melunko@47: if test -n "${ZSH_VERSION+set}" ; then melunko@47: setopt NO_GLOB_SUBST melunko@47: fi melunko@47: # Now quote all the things that may contain metacharacters while being melunko@47: # careful not to overquote the AC_SUBSTed values. We take copies of the melunko@47: # variables and quote the copies for generation of the libtool script. melunko@47: for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ melunko@47: SED SHELL STRIP \ melunko@47: libname_spec library_names_spec soname_spec extract_expsyms_cmds \ melunko@47: old_striplib striplib file_magic_cmd finish_cmds finish_eval \ melunko@47: deplibs_check_method reload_flag reload_cmds need_locks \ melunko@47: lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ melunko@47: lt_cv_sys_global_symbol_to_c_name_address \ melunko@47: sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ melunko@47: old_postinstall_cmds old_postuninstall_cmds \ melunko@47: compiler \ melunko@47: CC \ melunko@47: LD \ melunko@47: lt_prog_compiler_wl \ melunko@47: lt_prog_compiler_pic \ melunko@47: lt_prog_compiler_static \ melunko@47: lt_prog_compiler_no_builtin_flag \ melunko@47: export_dynamic_flag_spec \ melunko@47: thread_safe_flag_spec \ melunko@47: whole_archive_flag_spec \ melunko@47: enable_shared_with_static_runtimes \ melunko@47: old_archive_cmds \ melunko@47: old_archive_from_new_cmds \ melunko@47: predep_objects \ melunko@47: postdep_objects \ melunko@47: predeps \ melunko@47: postdeps \ melunko@47: compiler_lib_search_path \ melunko@47: archive_cmds \ melunko@47: archive_expsym_cmds \ melunko@47: postinstall_cmds \ melunko@47: postuninstall_cmds \ melunko@47: old_archive_from_expsyms_cmds \ melunko@47: allow_undefined_flag \ melunko@47: no_undefined_flag \ melunko@47: export_symbols_cmds \ melunko@47: hardcode_libdir_flag_spec \ melunko@47: hardcode_libdir_flag_spec_ld \ melunko@47: hardcode_libdir_separator \ melunko@47: hardcode_automatic \ melunko@47: module_cmds \ melunko@47: module_expsym_cmds \ melunko@47: lt_cv_prog_compiler_c_o \ melunko@47: exclude_expsyms \ melunko@47: include_expsyms; do melunko@47: melunko@47: case $var in melunko@47: old_archive_cmds | \ melunko@47: old_archive_from_new_cmds | \ melunko@47: archive_cmds | \ melunko@47: archive_expsym_cmds | \ melunko@47: module_cmds | \ melunko@47: module_expsym_cmds | \ melunko@47: old_archive_from_expsyms_cmds | \ melunko@47: export_symbols_cmds | \ melunko@47: extract_expsyms_cmds | reload_cmds | finish_cmds | \ melunko@47: postinstall_cmds | postuninstall_cmds | \ melunko@47: old_postinstall_cmds | old_postuninstall_cmds | \ melunko@47: sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) melunko@47: # Double-quote double-evaled strings. melunko@47: eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" melunko@47: ;; melunko@47: *) melunko@47: eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" melunko@47: ;; melunko@47: esac melunko@47: done melunko@47: melunko@47: case $lt_echo in melunko@47: *'\$0 --fallback-echo"') melunko@47: lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` melunko@47: ;; melunko@47: esac melunko@47: melunko@47: cfgfile="${ofile}T" melunko@47: trap "$rm \"$cfgfile\"; exit 1" 1 2 15 melunko@47: $rm -f "$cfgfile" melunko@47: { echo "$as_me:$LINENO: creating $ofile" >&5 melunko@47: echo "$as_me: creating $ofile" >&6;} melunko@47: melunko@47: cat <<__EOF__ >> "$cfgfile" melunko@47: #! $SHELL melunko@47: melunko@47: # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services. melunko@47: # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) melunko@47: # NOTE: Changes made to this file will be lost: look at ltmain.sh. melunko@47: # melunko@47: # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001 melunko@47: # Free Software Foundation, Inc. melunko@47: # melunko@47: # This file is part of GNU Libtool: melunko@47: # Originally by Gordon Matzigkeit , 1996 melunko@47: # melunko@47: # This program is free software; you can redistribute it and/or modify melunko@47: # it under the terms of the GNU General Public License as published by melunko@47: # the Free Software Foundation; either version 2 of the License, or melunko@47: # (at your option) any later version. melunko@47: # melunko@47: # This program is distributed in the hope that it will be useful, but melunko@47: # WITHOUT ANY WARRANTY; without even the implied warranty of melunko@47: # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU melunko@47: # General Public License for more details. melunko@47: # melunko@47: # You should have received a copy of the GNU General Public License melunko@47: # along with this program; if not, write to the Free Software melunko@47: # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. melunko@47: # melunko@47: # As a special exception to the GNU General Public License, if you melunko@47: # distribute this file as part of a program that contains a melunko@47: # configuration script generated by Autoconf, you may include it under melunko@47: # the same distribution terms that you use for the rest of that program. melunko@47: melunko@47: # A sed program that does not truncate output. melunko@47: SED=$lt_SED melunko@47: melunko@47: # Sed that helps us avoid accidentally triggering echo(1) options like -n. melunko@47: Xsed="$SED -e 1s/^X//" melunko@47: melunko@47: # The HP-UX ksh and POSIX shell print the target directory to stdout melunko@47: # if CDPATH is set. melunko@47: (unset CDPATH) >/dev/null 2>&1 && unset CDPATH melunko@47: melunko@47: # The names of the tagged configurations supported by this script. melunko@47: available_tags= melunko@47: melunko@47: # ### BEGIN LIBTOOL CONFIG melunko@47: melunko@47: # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: melunko@47: melunko@47: # Shell to use when invoking shell scripts. melunko@47: SHELL=$lt_SHELL melunko@47: melunko@47: # Whether or not to build shared libraries. melunko@47: build_libtool_libs=$enable_shared melunko@47: melunko@47: # Whether or not to build static libraries. melunko@47: build_old_libs=$enable_static melunko@47: melunko@47: # Whether or not to add -lc for building shared libraries. melunko@47: build_libtool_need_lc=$archive_cmds_need_lc melunko@47: melunko@47: # Whether or not to disallow shared libs when runtime libs are static melunko@47: allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes melunko@47: melunko@47: # Whether or not to optimize for fast installation. melunko@47: fast_install=$enable_fast_install melunko@47: melunko@47: # The host system. melunko@47: host_alias=$host_alias melunko@47: host=$host melunko@47: host_os=$host_os melunko@47: melunko@47: # The build system. melunko@47: build_alias=$build_alias melunko@47: build=$build melunko@47: build_os=$build_os melunko@47: melunko@47: # An echo program that does not interpret backslashes. melunko@47: echo=$lt_echo melunko@47: melunko@47: # The archiver. melunko@47: AR=$lt_AR melunko@47: AR_FLAGS=$lt_AR_FLAGS melunko@47: melunko@47: # A C compiler. melunko@47: LTCC=$lt_LTCC melunko@47: melunko@47: # A language-specific compiler. melunko@47: CC=$lt_compiler melunko@47: melunko@47: # Is the compiler the GNU C compiler? melunko@47: with_gcc=$GCC melunko@47: melunko@47: # An ERE matcher. melunko@47: EGREP=$lt_EGREP melunko@47: melunko@47: # The linker used to build libraries. melunko@47: LD=$lt_LD melunko@47: melunko@47: # Whether we need hard or soft links. melunko@47: LN_S=$lt_LN_S melunko@47: melunko@47: # A BSD-compatible nm program. melunko@47: NM=$lt_NM melunko@47: melunko@47: # A symbol stripping program melunko@47: STRIP=$lt_STRIP melunko@47: melunko@47: # Used to examine libraries when file_magic_cmd begins "file" melunko@47: MAGIC_CMD=$MAGIC_CMD melunko@47: melunko@47: # Used on cygwin: DLL creation program. melunko@47: DLLTOOL="$DLLTOOL" melunko@47: melunko@47: # Used on cygwin: object dumper. melunko@47: OBJDUMP="$OBJDUMP" melunko@47: melunko@47: # Used on cygwin: assembler. melunko@47: AS="$AS" melunko@47: melunko@47: # The name of the directory that contains temporary libtool files. melunko@47: objdir=$objdir melunko@47: melunko@47: # How to create reloadable object files. melunko@47: reload_flag=$lt_reload_flag melunko@47: reload_cmds=$lt_reload_cmds melunko@47: melunko@47: # How to pass a linker flag through the compiler. melunko@47: wl=$lt_lt_prog_compiler_wl melunko@47: melunko@47: # Object file suffix (normally "o"). melunko@47: objext="$ac_objext" melunko@47: melunko@47: # Old archive suffix (normally "a"). melunko@47: libext="$libext" melunko@47: melunko@47: # Shared library suffix (normally ".so"). melunko@47: shrext_cmds='$shrext_cmds' melunko@47: melunko@47: # Executable file suffix (normally ""). melunko@47: exeext="$exeext" melunko@47: melunko@47: # Additional compiler flags for building library objects. melunko@47: pic_flag=$lt_lt_prog_compiler_pic melunko@47: pic_mode=$pic_mode melunko@47: melunko@47: # What is the maximum length of a command? melunko@47: max_cmd_len=$lt_cv_sys_max_cmd_len melunko@47: melunko@47: # Does compiler simultaneously support -c and -o options? melunko@47: compiler_c_o=$lt_lt_cv_prog_compiler_c_o melunko@47: melunko@47: # Must we lock files when doing compilation? melunko@47: need_locks=$lt_need_locks melunko@47: melunko@47: # Do we need the lib prefix for modules? melunko@47: need_lib_prefix=$need_lib_prefix melunko@47: melunko@47: # Do we need a version for libraries? melunko@47: need_version=$need_version melunko@47: melunko@47: # Whether dlopen is supported. melunko@47: dlopen_support=$enable_dlopen melunko@47: melunko@47: # Whether dlopen of programs is supported. melunko@47: dlopen_self=$enable_dlopen_self melunko@47: melunko@47: # Whether dlopen of statically linked programs is supported. melunko@47: dlopen_self_static=$enable_dlopen_self_static melunko@47: melunko@47: # Compiler flag to prevent dynamic linking. melunko@47: link_static_flag=$lt_lt_prog_compiler_static melunko@47: melunko@47: # Compiler flag to turn off builtin functions. melunko@47: no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag melunko@47: melunko@47: # Compiler flag to allow reflexive dlopens. melunko@47: export_dynamic_flag_spec=$lt_export_dynamic_flag_spec melunko@47: melunko@47: # Compiler flag to generate shared objects directly from archives. melunko@47: whole_archive_flag_spec=$lt_whole_archive_flag_spec melunko@47: melunko@47: # Compiler flag to generate thread-safe objects. melunko@47: thread_safe_flag_spec=$lt_thread_safe_flag_spec melunko@47: melunko@47: # Library versioning type. melunko@47: version_type=$version_type melunko@47: melunko@47: # Format of library name prefix. melunko@47: libname_spec=$lt_libname_spec melunko@47: melunko@47: # List of archive names. First name is the real one, the rest are links. melunko@47: # The last name is the one that the linker finds with -lNAME. melunko@47: library_names_spec=$lt_library_names_spec melunko@47: melunko@47: # The coded name of the library, if different from the real name. melunko@47: soname_spec=$lt_soname_spec melunko@47: melunko@47: # Commands used to build and install an old-style archive. melunko@47: RANLIB=$lt_RANLIB melunko@47: old_archive_cmds=$lt_old_archive_cmds melunko@47: old_postinstall_cmds=$lt_old_postinstall_cmds melunko@47: old_postuninstall_cmds=$lt_old_postuninstall_cmds melunko@47: melunko@47: # Create an old-style archive from a shared archive. melunko@47: old_archive_from_new_cmds=$lt_old_archive_from_new_cmds melunko@47: melunko@47: # Create a temporary old-style archive to link instead of a shared archive. melunko@47: old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds melunko@47: melunko@47: # Commands used to build and install a shared archive. melunko@47: archive_cmds=$lt_archive_cmds melunko@47: archive_expsym_cmds=$lt_archive_expsym_cmds melunko@47: postinstall_cmds=$lt_postinstall_cmds melunko@47: postuninstall_cmds=$lt_postuninstall_cmds melunko@47: melunko@47: # Commands used to build a loadable module (assumed same as above if empty) melunko@47: module_cmds=$lt_module_cmds melunko@47: module_expsym_cmds=$lt_module_expsym_cmds melunko@47: melunko@47: # Commands to strip libraries. melunko@47: old_striplib=$lt_old_striplib melunko@47: striplib=$lt_striplib melunko@47: melunko@47: # Dependencies to place before the objects being linked to create a melunko@47: # shared library. melunko@47: predep_objects=$lt_predep_objects melunko@47: melunko@47: # Dependencies to place after the objects being linked to create a melunko@47: # shared library. melunko@47: postdep_objects=$lt_postdep_objects melunko@47: melunko@47: # Dependencies to place before the objects being linked to create a melunko@47: # shared library. melunko@47: predeps=$lt_predeps melunko@47: melunko@47: # Dependencies to place after the objects being linked to create a melunko@47: # shared library. melunko@47: postdeps=$lt_postdeps melunko@47: melunko@47: # The library search path used internally by the compiler when linking melunko@47: # a shared library. melunko@47: compiler_lib_search_path=$lt_compiler_lib_search_path melunko@47: melunko@47: # Method to check whether dependent libraries are shared objects. melunko@47: deplibs_check_method=$lt_deplibs_check_method melunko@47: melunko@47: # Command to use when deplibs_check_method == file_magic. melunko@47: file_magic_cmd=$lt_file_magic_cmd melunko@47: melunko@47: # Flag that allows shared libraries with undefined symbols to be built. melunko@47: allow_undefined_flag=$lt_allow_undefined_flag melunko@47: melunko@47: # Flag that forces no undefined symbols. melunko@47: no_undefined_flag=$lt_no_undefined_flag melunko@47: melunko@47: # Commands used to finish a libtool library installation in a directory. melunko@47: finish_cmds=$lt_finish_cmds melunko@47: melunko@47: # Same as above, but a single script fragment to be evaled but not shown. melunko@47: finish_eval=$lt_finish_eval melunko@47: melunko@47: # Take the output of nm and produce a listing of raw symbols and C names. melunko@47: global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe melunko@47: melunko@47: # Transform the output of nm in a proper C declaration melunko@47: global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl melunko@47: melunko@47: # Transform the output of nm in a C name address pair melunko@47: global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address melunko@47: melunko@47: # This is the shared library runtime path variable. melunko@47: runpath_var=$runpath_var melunko@47: melunko@47: # This is the shared library path variable. melunko@47: shlibpath_var=$shlibpath_var melunko@47: melunko@47: # Is shlibpath searched before the hard-coded library search path? melunko@47: shlibpath_overrides_runpath=$shlibpath_overrides_runpath melunko@47: melunko@47: # How to hardcode a shared library path into an executable. melunko@47: hardcode_action=$hardcode_action melunko@47: melunko@47: # Whether we should hardcode library paths into libraries. melunko@47: hardcode_into_libs=$hardcode_into_libs melunko@47: melunko@47: # Flag to hardcode \$libdir into a binary during linking. melunko@47: # This must work even if \$libdir does not exist. melunko@47: hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec melunko@47: melunko@47: # If ld is used when linking, flag to hardcode \$libdir into melunko@47: # a binary during linking. This must work even if \$libdir does melunko@47: # not exist. melunko@47: hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld melunko@47: melunko@47: # Whether we need a single -rpath flag with a separated argument. melunko@47: hardcode_libdir_separator=$lt_hardcode_libdir_separator melunko@47: melunko@47: # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the melunko@47: # resulting binary. melunko@47: hardcode_direct=$hardcode_direct melunko@47: melunko@47: # Set to yes if using the -LDIR flag during linking hardcodes DIR into the melunko@47: # resulting binary. melunko@47: hardcode_minus_L=$hardcode_minus_L melunko@47: melunko@47: # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into melunko@47: # the resulting binary. melunko@47: hardcode_shlibpath_var=$hardcode_shlibpath_var melunko@47: melunko@47: # Set to yes if building a shared library automatically hardcodes DIR into the library melunko@47: # and all subsequent libraries and executables linked against it. melunko@47: hardcode_automatic=$hardcode_automatic melunko@47: melunko@47: # Variables whose values should be saved in libtool wrapper scripts and melunko@47: # restored at relink time. melunko@47: variables_saved_for_relink="$variables_saved_for_relink" melunko@47: melunko@47: # Whether libtool must link a program against all its dependency libraries. melunko@47: link_all_deplibs=$link_all_deplibs melunko@47: melunko@47: # Compile-time system search path for libraries melunko@47: sys_lib_search_path_spec=$lt_sys_lib_search_path_spec melunko@47: melunko@47: # Run-time system search path for libraries melunko@47: sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec melunko@47: melunko@47: # Fix the shell variable \$srcfile for the compiler. melunko@47: fix_srcfile_path="$fix_srcfile_path" melunko@47: melunko@47: # Set to yes if exported symbols are required. melunko@47: always_export_symbols=$always_export_symbols melunko@47: melunko@47: # The commands to list exported symbols. melunko@47: export_symbols_cmds=$lt_export_symbols_cmds melunko@47: melunko@47: # The commands to extract the exported symbol list from a shared archive. melunko@47: extract_expsyms_cmds=$lt_extract_expsyms_cmds melunko@47: melunko@47: # Symbols that should not be listed in the preloaded symbols. melunko@47: exclude_expsyms=$lt_exclude_expsyms melunko@47: melunko@47: # Symbols that must always be exported. melunko@47: include_expsyms=$lt_include_expsyms melunko@47: melunko@47: # ### END LIBTOOL CONFIG melunko@47: melunko@47: __EOF__ melunko@47: melunko@47: melunko@47: case $host_os in melunko@47: aix3*) melunko@47: cat <<\EOF >> "$cfgfile" melunko@47: melunko@47: # AIX sometimes has problems with the GCC collect2 program. For some melunko@47: # reason, if we set the COLLECT_NAMES environment variable, the problems melunko@47: # vanish in a puff of smoke. melunko@47: if test "X${COLLECT_NAMES+set}" != Xset; then melunko@47: COLLECT_NAMES= melunko@47: export COLLECT_NAMES melunko@47: fi melunko@47: EOF melunko@47: ;; melunko@47: esac melunko@47: melunko@47: # We use sed instead of cat because bash on DJGPP gets confused if melunko@47: # if finds mixed CR/LF and LF-only lines. Since sed operates in melunko@47: # text mode, it properly converts lines to CR/LF. This bash problem melunko@47: # is reportedly fixed, but why not run on old versions too? melunko@47: sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1) melunko@47: melunko@47: mv -f "$cfgfile" "$ofile" || \ melunko@47: (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") melunko@47: chmod +x "$ofile" melunko@47: melunko@47: else melunko@47: # If there is no Makefile yet, we rely on a make rule to execute melunko@47: # `config.status --recheck' to rerun these tests and create the melunko@47: # libtool script then. melunko@47: ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` melunko@47: if test -f "$ltmain_in"; then melunko@47: test -f Makefile && make "$ltmain" melunko@47: fi melunko@47: fi melunko@47: melunko@47: melunko@47: ac_ext=c melunko@47: ac_cpp='$CPP $CPPFLAGS' melunko@47: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' melunko@47: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' melunko@47: ac_compiler_gnu=$ac_cv_c_compiler_gnu melunko@47: melunko@47: CC="$lt_save_CC" melunko@47: melunko@47: melunko@47: # Check whether --with-tags or --without-tags was given. melunko@47: if test "${with_tags+set}" = set; then melunko@47: withval="$with_tags" melunko@47: tagnames="$withval" melunko@47: fi; melunko@47: melunko@47: if test -f "$ltmain" && test -n "$tagnames"; then melunko@47: if test ! -f "${ofile}"; then melunko@47: { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5 melunko@47: echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;} melunko@47: fi melunko@47: melunko@47: if test -z "$LTCC"; then melunko@47: eval "`$SHELL ${ofile} --config | grep '^LTCC='`" melunko@47: if test -z "$LTCC"; then melunko@47: { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5 melunko@47: echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;} melunko@47: else melunko@47: { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5 melunko@47: echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;} melunko@47: fi melunko@47: fi melunko@47: melunko@47: # Extract list of available tagged configurations in $ofile. melunko@47: # Note that this assumes the entire list is on one line. melunko@47: available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` melunko@47: melunko@47: lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," melunko@47: for tagname in $tagnames; do melunko@47: IFS="$lt_save_ifs" melunko@47: # Check whether tagname contains only valid characters melunko@47: case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in melunko@47: "") ;; melunko@47: *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5 melunko@47: echo "$as_me: error: invalid tag name: $tagname" >&2;} melunko@47: { (exit 1); exit 1; }; } melunko@47: ;; melunko@47: esac melunko@47: melunko@47: if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null melunko@47: then melunko@47: { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5 melunko@47: echo "$as_me: error: tag name \"$tagname\" already exists" >&2;} melunko@47: { (exit 1); exit 1; }; } melunko@47: fi melunko@47: melunko@47: # Update the list of available tags. melunko@47: if test -n "$tagname"; then melunko@47: echo appending configuration tag \"$tagname\" to $ofile melunko@47: melunko@47: case $tagname in melunko@47: CXX) melunko@47: if test -n "$CXX" && ( test "X$CXX" != "Xno" && melunko@47: ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || melunko@47: (test "X$CXX" != "Xg++"))) ; then melunko@47: ac_ext=cc melunko@47: ac_cpp='$CXXCPP $CPPFLAGS' melunko@47: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' melunko@47: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' melunko@47: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu melunko@47: melunko@47: melunko@47: melunko@47: melunko@47: archive_cmds_need_lc_CXX=no melunko@47: allow_undefined_flag_CXX= melunko@47: always_export_symbols_CXX=no melunko@47: archive_expsym_cmds_CXX= melunko@47: export_dynamic_flag_spec_CXX= melunko@47: hardcode_direct_CXX=no melunko@47: hardcode_libdir_flag_spec_CXX= melunko@47: hardcode_libdir_flag_spec_ld_CXX= melunko@47: hardcode_libdir_separator_CXX= melunko@47: hardcode_minus_L_CXX=no melunko@47: hardcode_automatic_CXX=no melunko@47: module_cmds_CXX= melunko@47: module_expsym_cmds_CXX= melunko@47: link_all_deplibs_CXX=unknown melunko@47: old_archive_cmds_CXX=$old_archive_cmds melunko@47: no_undefined_flag_CXX= melunko@47: whole_archive_flag_spec_CXX= melunko@47: enable_shared_with_static_runtimes_CXX=no melunko@47: melunko@47: # Dependencies to place before and after the object being linked: melunko@47: predep_objects_CXX= melunko@47: postdep_objects_CXX= melunko@47: predeps_CXX= melunko@47: postdeps_CXX= melunko@47: compiler_lib_search_path_CXX= melunko@47: melunko@47: # Source file extension for C++ test sources. melunko@47: ac_ext=cpp melunko@47: melunko@47: # Object file extension for compiled C++ test sources. melunko@47: objext=o melunko@47: objext_CXX=$objext melunko@47: melunko@47: # Code to be used in simple compile tests melunko@47: lt_simple_compile_test_code="int some_variable = 0;\n" melunko@47: melunko@47: # Code to be used in simple link tests melunko@47: lt_simple_link_test_code='int main(int, char *) { return(0); }\n' melunko@47: melunko@47: # ltmain only uses $CC for tagged configurations so make sure $CC is set. melunko@47: melunko@47: # If no C compiler was specified, use CC. melunko@47: LTCC=${LTCC-"$CC"} melunko@47: melunko@47: # Allow CC to be a program name with arguments. melunko@47: compiler=$CC melunko@47: melunko@47: melunko@47: # save warnings/boilerplate of simple test code melunko@47: ac_outfile=conftest.$ac_objext melunko@47: printf "$lt_simple_compile_test_code" >conftest.$ac_ext melunko@47: eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err melunko@47: _lt_compiler_boilerplate=`cat conftest.err` melunko@47: $rm conftest* melunko@47: melunko@47: ac_outfile=conftest.$ac_objext melunko@47: printf "$lt_simple_link_test_code" >conftest.$ac_ext melunko@47: eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err melunko@47: _lt_linker_boilerplate=`cat conftest.err` melunko@47: $rm conftest* melunko@47: melunko@47: melunko@47: # Allow CC to be a program name with arguments. melunko@47: lt_save_CC=$CC melunko@47: lt_save_LD=$LD melunko@47: lt_save_GCC=$GCC melunko@47: GCC=$GXX melunko@47: lt_save_with_gnu_ld=$with_gnu_ld melunko@47: lt_save_path_LD=$lt_cv_path_LD melunko@47: if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then melunko@47: lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx melunko@47: else melunko@47: unset lt_cv_prog_gnu_ld melunko@47: fi melunko@47: if test -n "${lt_cv_path_LDCXX+set}"; then melunko@47: lt_cv_path_LD=$lt_cv_path_LDCXX melunko@47: else melunko@47: unset lt_cv_path_LD melunko@47: fi melunko@47: test -z "${LDCXX+set}" || LD=$LDCXX melunko@47: CC=${CXX-"c++"} melunko@47: compiler=$CC melunko@47: compiler_CXX=$CC melunko@47: for cc_temp in $compiler""; do melunko@47: case $cc_temp in melunko@47: compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; melunko@47: distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; melunko@47: \-*) ;; melunko@47: *) break;; melunko@47: esac melunko@47: done melunko@47: cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` melunko@47: melunko@47: melunko@47: # We don't want -fno-exception wen compiling C++ code, so set the melunko@47: # no_builtin_flag separately melunko@47: if test "$GXX" = yes; then melunko@47: lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' melunko@47: else melunko@47: lt_prog_compiler_no_builtin_flag_CXX= melunko@47: fi melunko@47: melunko@47: if test "$GXX" = yes; then melunko@47: # Set up default GNU C++ configuration melunko@47: melunko@47: melunko@47: # Check whether --with-gnu-ld or --without-gnu-ld was given. melunko@47: if test "${with_gnu_ld+set}" = set; then melunko@47: withval="$with_gnu_ld" melunko@47: test "$withval" = no || with_gnu_ld=yes melunko@47: else melunko@47: with_gnu_ld=no melunko@47: fi; melunko@47: ac_prog=ld melunko@47: if test "$GCC" = yes; then melunko@47: # Check if gcc -print-prog-name=ld gives a path. melunko@47: echo "$as_me:$LINENO: checking for ld used by $CC" >&5 melunko@47: echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6 melunko@47: case $host in melunko@47: *-*-mingw*) melunko@47: # gcc leaves a trailing carriage return which upsets mingw melunko@47: ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; melunko@47: *) melunko@47: ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; melunko@47: esac melunko@47: case $ac_prog in melunko@47: # Accept absolute paths. melunko@47: [\\/]* | ?:[\\/]*) melunko@47: re_direlt='/[^/][^/]*/\.\./' melunko@47: # Canonicalize the pathname of ld melunko@47: ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` melunko@47: while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do melunko@47: ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` melunko@47: done melunko@47: test -z "$LD" && LD="$ac_prog" melunko@47: ;; melunko@47: "") melunko@47: # If it fails, then pretend we aren't using GCC. melunko@47: ac_prog=ld melunko@47: ;; melunko@47: *) melunko@47: # If it is relative, then search for the first ld in PATH. melunko@47: with_gnu_ld=unknown melunko@47: ;; melunko@47: esac melunko@47: elif test "$with_gnu_ld" = yes; then melunko@47: echo "$as_me:$LINENO: checking for GNU ld" >&5 melunko@47: echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 melunko@47: else melunko@47: echo "$as_me:$LINENO: checking for non-GNU ld" >&5 melunko@47: echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 melunko@47: fi melunko@47: if test "${lt_cv_path_LD+set}" = set; then melunko@47: echo $ECHO_N "(cached) $ECHO_C" >&6 melunko@47: else melunko@47: if test -z "$LD"; then melunko@47: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR melunko@47: for ac_dir in $PATH; do melunko@47: IFS="$lt_save_ifs" melunko@47: test -z "$ac_dir" && ac_dir=. melunko@47: if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then melunko@47: lt_cv_path_LD="$ac_dir/$ac_prog" melunko@47: # Check to see if the program is GNU ld. I'd rather use --version, melunko@47: # but apparently some variants of GNU ld only accept -v. melunko@47: # Break only if it was the GNU/non-GNU ld that we prefer. melunko@47: case `"$lt_cv_path_LD" -v 2>&1 &5 melunko@47: echo "${ECHO_T}$LD" >&6 melunko@47: else melunko@47: echo "$as_me:$LINENO: result: no" >&5 melunko@47: echo "${ECHO_T}no" >&6 melunko@47: fi melunko@47: test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 melunko@47: echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} melunko@47: { (exit 1); exit 1; }; } melunko@47: echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 melunko@47: echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 melunko@47: if test "${lt_cv_prog_gnu_ld+set}" = set; then melunko@47: echo $ECHO_N "(cached) $ECHO_C" >&6 melunko@47: else melunko@47: # I'd rather use --version here, but apparently some GNU lds only accept -v. melunko@47: case `$LD -v 2>&1 &5 melunko@47: echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 melunko@47: with_gnu_ld=$lt_cv_prog_gnu_ld melunko@47: melunko@47: melunko@47: melunko@47: # Check if GNU C++ uses GNU ld as the underlying linker, since the melunko@47: # archiving commands below assume that GNU ld is being used. melunko@47: if test "$with_gnu_ld" = yes; then melunko@47: archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' melunko@47: 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' melunko@47: melunko@47: hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' melunko@47: export_dynamic_flag_spec_CXX='${wl}--export-dynamic' melunko@47: melunko@47: # If archive_cmds runs LD, not CC, wlarc should be empty melunko@47: # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to melunko@47: # investigate it a little bit more. (MM) melunko@47: wlarc='${wl}' melunko@47: melunko@47: # ancient GNU ld didn't support --whole-archive et. al. melunko@47: if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ melunko@47: grep 'no-whole-archive' > /dev/null; then melunko@47: whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' melunko@47: else melunko@47: whole_archive_flag_spec_CXX= melunko@47: fi melunko@47: else melunko@47: with_gnu_ld=no melunko@47: wlarc= melunko@47: melunko@47: # A generic and very simple default shared library creation melunko@47: # command for GNU C++ for the case where it uses the native melunko@47: # linker, instead of GNU ld. If possible, this setting should melunko@47: # overridden to take advantage of the native linker features on melunko@47: # the platform it is being used on. melunko@47: archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' melunko@47: fi melunko@47: melunko@47: # Commands to make compiler produce verbose output that lists melunko@47: # what "hidden" libraries, object files and flags are used when melunko@47: # linking a shared library. melunko@47: output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' melunko@47: melunko@47: else melunko@47: GXX=no melunko@47: with_gnu_ld=no melunko@47: wlarc= melunko@47: fi melunko@47: melunko@47: # PORTME: fill in a description of your system's C++ link characteristics melunko@47: echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 melunko@47: echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 melunko@47: ld_shlibs_CXX=yes melunko@47: case $host_os in melunko@47: aix3*) melunko@47: # FIXME: insert proper C++ library support melunko@47: ld_shlibs_CXX=no melunko@47: ;; melunko@47: aix4* | aix5*) melunko@47: if test "$host_cpu" = ia64; then melunko@47: # On IA64, the linker does run time linking by default, so we don't melunko@47: # have to do anything special. melunko@47: aix_use_runtimelinking=no melunko@47: exp_sym_flag='-Bexport' melunko@47: no_entry_flag="" melunko@47: else melunko@47: aix_use_runtimelinking=no melunko@47: melunko@47: # Test if we are trying to use run time linking or normal melunko@47: # AIX style linking. If -brtl is somewhere in LDFLAGS, we melunko@47: # need to do runtime linking. melunko@47: case $host_os in aix4.[23]|aix4.[23].*|aix5*) melunko@47: for ld_flag in $LDFLAGS; do melunko@47: case $ld_flag in melunko@47: *-brtl*) melunko@47: aix_use_runtimelinking=yes melunko@47: break melunko@47: ;; melunko@47: esac melunko@47: done melunko@47: esac melunko@47: melunko@47: exp_sym_flag='-bexport' melunko@47: no_entry_flag='-bnoentry' melunko@47: fi melunko@47: melunko@47: # When large executables or shared objects are built, AIX ld can melunko@47: # have problems creating the table of contents. If linking a library melunko@47: # or program results in "error TOC overflow" add -mminimal-toc to melunko@47: # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not melunko@47: # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. melunko@47: melunko@47: archive_cmds_CXX='' melunko@47: hardcode_direct_CXX=yes melunko@47: hardcode_libdir_separator_CXX=':' melunko@47: link_all_deplibs_CXX=yes melunko@47: melunko@47: if test "$GXX" = yes; then melunko@47: case $host_os in aix4.[012]|aix4.[012].*) melunko@47: # We only want to do this on AIX 4.2 and lower, the check melunko@47: # below for broken collect2 doesn't work under 4.3+ melunko@47: collect2name=`${CC} -print-prog-name=collect2` melunko@47: if test -f "$collect2name" && \ melunko@47: strings "$collect2name" | grep resolve_lib_name >/dev/null melunko@47: then melunko@47: # We have reworked collect2 melunko@47: hardcode_direct_CXX=yes melunko@47: else melunko@47: # We have old collect2 melunko@47: hardcode_direct_CXX=unsupported melunko@47: # It fails to find uninstalled libraries when the uninstalled melunko@47: # path is not listed in the libpath. Setting hardcode_minus_L melunko@47: # to unsupported forces relinking melunko@47: hardcode_minus_L_CXX=yes melunko@47: hardcode_libdir_flag_spec_CXX='-L$libdir' melunko@47: hardcode_libdir_separator_CXX= melunko@47: fi melunko@47: esac melunko@47: shared_flag='-shared' melunko@47: if test "$aix_use_runtimelinking" = yes; then melunko@47: shared_flag="$shared_flag "'${wl}-G' melunko@47: fi melunko@47: else melunko@47: # not using gcc melunko@47: if test "$host_cpu" = ia64; then melunko@47: # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release melunko@47: # chokes on -Wl,-G. The following line is correct: melunko@47: shared_flag='-G' melunko@47: else melunko@47: if test "$aix_use_runtimelinking" = yes; then melunko@47: shared_flag='${wl}-G' melunko@47: else melunko@47: shared_flag='${wl}-bM:SRE' melunko@47: fi melunko@47: fi melunko@47: fi melunko@47: melunko@47: # It seems that -bexpall does not export symbols beginning with melunko@47: # underscore (_), so it is better to generate a list of symbols to export. melunko@47: always_export_symbols_CXX=yes melunko@47: if test "$aix_use_runtimelinking" = yes; then melunko@47: # Warning - without using the other runtime loading flags (-brtl), melunko@47: # -berok will link without error, but may produce a broken library. melunko@47: allow_undefined_flag_CXX='-berok' melunko@47: # Determine the default libpath from the value encoded in an empty executable. melunko@47: cat >conftest.$ac_ext <<_ACEOF melunko@47: /* confdefs.h. */ melunko@47: _ACEOF melunko@47: cat confdefs.h >>conftest.$ac_ext melunko@47: cat >>conftest.$ac_ext <<_ACEOF melunko@47: /* end confdefs.h. */ melunko@47: melunko@47: int melunko@47: main () melunko@47: { melunko@47: melunko@47: ; melunko@47: return 0; melunko@47: } melunko@47: _ACEOF melunko@47: rm -f conftest.$ac_objext conftest$ac_exeext melunko@47: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 melunko@47: (eval $ac_link) 2>conftest.er1 melunko@47: ac_status=$? melunko@47: grep -v '^ *+' conftest.er1 >conftest.err melunko@47: rm -f conftest.er1 melunko@47: cat conftest.err >&5 melunko@47: echo "$as_me:$LINENO: \$? = $ac_status" >&5 melunko@47: (exit $ac_status); } && melunko@47: { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' melunko@47: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 melunko@47: (eval $ac_try) 2>&5 melunko@47: ac_status=$? melunko@47: echo "$as_me:$LINENO: \$? = $ac_status" >&5 melunko@47: (exit $ac_status); }; } && melunko@47: { ac_try='test -s conftest$ac_exeext' melunko@47: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 melunko@47: (eval $ac_try) 2>&5 melunko@47: ac_status=$? melunko@47: echo "$as_me:$LINENO: \$? = $ac_status" >&5 melunko@47: (exit $ac_status); }; }; then melunko@47: melunko@47: aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } melunko@47: }'` melunko@47: # Check for a 64-bit object if we didn't find anything. melunko@47: 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; } melunko@47: }'`; fi melunko@47: else melunko@47: echo "$as_me: failed program was:" >&5 melunko@47: sed 's/^/| /' conftest.$ac_ext >&5 melunko@47: melunko@47: fi melunko@47: rm -f conftest.err conftest.$ac_objext \ melunko@47: conftest$ac_exeext conftest.$ac_ext melunko@47: if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi melunko@47: melunko@47: hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" melunko@47: melunko@47: 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" melunko@47: else melunko@47: if test "$host_cpu" = ia64; then melunko@47: hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' melunko@47: allow_undefined_flag_CXX="-z nodefs" melunko@47: 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" melunko@47: else melunko@47: # Determine the default libpath from the value encoded in an empty executable. melunko@47: cat >conftest.$ac_ext <<_ACEOF melunko@47: /* confdefs.h. */ melunko@47: _ACEOF melunko@47: cat confdefs.h >>conftest.$ac_ext melunko@47: cat >>conftest.$ac_ext <<_ACEOF melunko@47: /* end confdefs.h. */ melunko@47: melunko@47: int melunko@47: main () melunko@47: { melunko@47: melunko@47: ; melunko@47: return 0; melunko@47: } melunko@47: _ACEOF melunko@47: rm -f conftest.$ac_objext conftest$ac_exeext melunko@47: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 melunko@47: (eval $ac_link) 2>conftest.er1 melunko@47: ac_status=$? melunko@47: grep -v '^ *+' conftest.er1 >conftest.err melunko@47: rm -f conftest.er1 melunko@47: cat conftest.err >&5 melunko@47: echo "$as_me:$LINENO: \$? = $ac_status" >&5 melunko@47: (exit $ac_status); } && melunko@47: { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' melunko@47: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 melunko@47: (eval $ac_try) 2>&5 melunko@47: ac_status=$? melunko@47: echo "$as_me:$LINENO: \$? = $ac_status" >&5 melunko@47: (exit $ac_status); }; } && melunko@47: { ac_try='test -s conftest$ac_exeext' melunko@47: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 melunko@47: (eval $ac_try) 2>&5 melunko@47: ac_status=$? melunko@47: echo "$as_me:$LINENO: \$? = $ac_status" >&5 melunko@47: (exit $ac_status); }; }; then melunko@47: melunko@47: aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } melunko@47: }'` melunko@47: # Check for a 64-bit object if we didn't find anything. melunko@47: 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; } melunko@47: }'`; fi melunko@47: else melunko@47: echo "$as_me: failed program was:" >&5 melunko@47: sed 's/^/| /' conftest.$ac_ext >&5 melunko@47: melunko@47: fi melunko@47: rm -f conftest.err conftest.$ac_objext \ melunko@47: conftest$ac_exeext conftest.$ac_ext melunko@47: if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi melunko@47: melunko@47: hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" melunko@47: # Warning - without using the other run time loading flags, melunko@47: # -berok will link without error, but may produce a broken library. melunko@47: no_undefined_flag_CXX=' ${wl}-bernotok' melunko@47: allow_undefined_flag_CXX=' ${wl}-berok' melunko@47: # -bexpall does not export symbols beginning with underscore (_) melunko@47: always_export_symbols_CXX=yes melunko@47: # Exported symbols can be pulled into shared objects from archives melunko@47: whole_archive_flag_spec_CXX=' ' melunko@47: archive_cmds_need_lc_CXX=yes melunko@47: # This is similar to how AIX traditionally builds its shared libraries. melunko@47: 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' melunko@47: fi melunko@47: fi melunko@47: ;; melunko@47: chorus*) melunko@47: case $cc_basename in melunko@47: *) melunko@47: # FIXME: insert proper C++ library support melunko@47: ld_shlibs_CXX=no melunko@47: ;; melunko@47: esac melunko@47: ;; melunko@47: melunko@47: melunko@47: cygwin* | mingw* | pw32*) melunko@47: # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, melunko@47: # as there is no search path for DLLs. melunko@47: hardcode_libdir_flag_spec_CXX='-L$libdir' melunko@47: allow_undefined_flag_CXX=unsupported melunko@47: always_export_symbols_CXX=no melunko@47: enable_shared_with_static_runtimes_CXX=yes melunko@47: melunko@47: if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then melunko@47: 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' melunko@47: # If the export-symbols file already is a .def file (1st line melunko@47: # is EXPORTS), use it as is; otherwise, prepend... melunko@47: archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then melunko@47: cp $export_symbols $output_objdir/$soname.def; melunko@47: else melunko@47: echo EXPORTS > $output_objdir/$soname.def; melunko@47: cat $export_symbols >> $output_objdir/$soname.def; melunko@47: fi~ melunko@47: $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' melunko@47: else melunko@47: ld_shlibs_CXX=no melunko@47: fi melunko@47: ;; melunko@47: darwin* | rhapsody*) melunko@47: case $host_os in melunko@47: rhapsody* | darwin1.[012]) melunko@47: allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress' melunko@47: ;; melunko@47: *) # Darwin 1.3 on melunko@47: if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then melunko@47: allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' melunko@47: else melunko@47: case ${MACOSX_DEPLOYMENT_TARGET} in melunko@47: 10.[012]) melunko@47: allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' melunko@47: ;; melunko@47: 10.*) melunko@47: allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup' melunko@47: ;; melunko@47: esac melunko@47: fi melunko@47: ;; melunko@47: esac melunko@47: archive_cmds_need_lc_CXX=no melunko@47: hardcode_direct_CXX=no melunko@47: hardcode_automatic_CXX=yes melunko@47: hardcode_shlibpath_var_CXX=unsupported melunko@47: whole_archive_flag_spec_CXX='' melunko@47: link_all_deplibs_CXX=yes melunko@47: melunko@47: if test "$GXX" = yes ; then melunko@47: lt_int_apple_cc_single_mod=no melunko@47: output_verbose_link_cmd='echo' melunko@47: if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then melunko@47: lt_int_apple_cc_single_mod=yes melunko@47: fi melunko@47: if test "X$lt_int_apple_cc_single_mod" = Xyes ; then melunko@47: archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' melunko@47: else melunko@47: 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' melunko@47: fi melunko@47: module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' melunko@47: # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds melunko@47: if test "X$lt_int_apple_cc_single_mod" = Xyes ; then melunko@47: 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}' melunko@47: else melunko@47: 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}' melunko@47: fi melunko@47: 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}' melunko@47: else melunko@47: case $cc_basename in melunko@47: xlc*) melunko@47: output_verbose_link_cmd='echo' melunko@47: 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' melunko@47: module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' melunko@47: # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds melunko@47: 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}' melunko@47: 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}' melunko@47: ;; melunko@47: *) melunko@47: ld_shlibs_CXX=no melunko@47: ;; melunko@47: esac melunko@47: fi melunko@47: ;; melunko@47: melunko@47: dgux*) melunko@47: case $cc_basename in melunko@47: ec++*) melunko@47: # FIXME: insert proper C++ library support melunko@47: ld_shlibs_CXX=no melunko@47: ;; melunko@47: ghcx*) melunko@47: # Green Hills C++ Compiler melunko@47: # FIXME: insert proper C++ library support melunko@47: ld_shlibs_CXX=no melunko@47: ;; melunko@47: *) melunko@47: # FIXME: insert proper C++ library support melunko@47: ld_shlibs_CXX=no melunko@47: ;; melunko@47: esac melunko@47: ;; melunko@47: freebsd[12]*) melunko@47: # C++ shared libraries reported to be fairly broken before switch to ELF melunko@47: ld_shlibs_CXX=no melunko@47: ;; melunko@47: freebsd-elf*) melunko@47: archive_cmds_need_lc_CXX=no melunko@47: ;; melunko@47: freebsd* | kfreebsd*-gnu | dragonfly*) melunko@47: # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF melunko@47: # conventions melunko@47: ld_shlibs_CXX=yes melunko@47: ;; melunko@47: gnu*) melunko@47: ;; melunko@47: hpux9*) melunko@47: hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' melunko@47: hardcode_libdir_separator_CXX=: melunko@47: export_dynamic_flag_spec_CXX='${wl}-E' melunko@47: hardcode_direct_CXX=yes melunko@47: hardcode_minus_L_CXX=yes # Not in the search PATH, melunko@47: # but as the default melunko@47: # location of the library. melunko@47: melunko@47: case $cc_basename in melunko@47: CC*) melunko@47: # FIXME: insert proper C++ library support melunko@47: ld_shlibs_CXX=no melunko@47: ;; melunko@47: aCC*) melunko@47: 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' melunko@47: # Commands to make compiler produce verbose output that lists melunko@47: # what "hidden" libraries, object files and flags are used when melunko@47: # linking a shared library. melunko@47: # melunko@47: # There doesn't appear to be a way to prevent this compiler from melunko@47: # explicitly linking system object files so we need to strip them melunko@47: # from the output so that they don't get included in the library melunko@47: # dependencies. melunko@47: 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' melunko@47: ;; melunko@47: *) melunko@47: if test "$GXX" = yes; then melunko@47: 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' melunko@47: else melunko@47: # FIXME: insert proper C++ library support melunko@47: ld_shlibs_CXX=no melunko@47: fi melunko@47: ;; melunko@47: esac melunko@47: ;; melunko@47: hpux10*|hpux11*) melunko@47: if test $with_gnu_ld = no; then melunko@47: case $host_cpu in melunko@47: hppa*64*) melunko@47: hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' melunko@47: hardcode_libdir_flag_spec_ld_CXX='+b $libdir' melunko@47: hardcode_libdir_separator_CXX=: melunko@47: ;; melunko@47: ia64*) melunko@47: hardcode_libdir_flag_spec_CXX='-L$libdir' melunko@47: ;; melunko@47: *) melunko@47: hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' melunko@47: hardcode_libdir_separator_CXX=: melunko@47: export_dynamic_flag_spec_CXX='${wl}-E' melunko@47: ;; melunko@47: esac melunko@47: fi melunko@47: case $host_cpu in melunko@47: hppa*64*) melunko@47: hardcode_direct_CXX=no melunko@47: hardcode_shlibpath_var_CXX=no melunko@47: ;; melunko@47: ia64*) melunko@47: hardcode_direct_CXX=no melunko@47: hardcode_shlibpath_var_CXX=no melunko@47: hardcode_minus_L_CXX=yes # Not in the search PATH, melunko@47: # but as the default melunko@47: # location of the library. melunko@47: ;; melunko@47: *) melunko@47: hardcode_direct_CXX=yes melunko@47: hardcode_minus_L_CXX=yes # Not in the search PATH, melunko@47: # but as the default melunko@47: # location of the library. melunko@47: ;; melunko@47: esac melunko@47: melunko@47: case $cc_basename in melunko@47: CC*) melunko@47: # FIXME: insert proper C++ library support melunko@47: ld_shlibs_CXX=no melunko@47: ;; melunko@47: aCC*) melunko@47: case $host_cpu in melunko@47: hppa*64*|ia64*) melunko@47: archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs' melunko@47: ;; melunko@47: *) melunko@47: archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' melunko@47: ;; melunko@47: esac melunko@47: # Commands to make compiler produce verbose output that lists melunko@47: # what "hidden" libraries, object files and flags are used when melunko@47: # linking a shared library. melunko@47: # melunko@47: # There doesn't appear to be a way to prevent this compiler from melunko@47: # explicitly linking system object files so we need to strip them melunko@47: # from the output so that they don't get included in the library melunko@47: # dependencies. melunko@47: 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' melunko@47: ;; melunko@47: *) melunko@47: if test "$GXX" = yes; then melunko@47: if test $with_gnu_ld = no; then melunko@47: case $host_cpu in melunko@47: ia64*|hppa*64*) melunko@47: archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs' melunko@47: ;; melunko@47: *) melunko@47: 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' melunko@47: ;; melunko@47: esac melunko@47: fi melunko@47: else melunko@47: # FIXME: insert proper C++ library support melunko@47: ld_shlibs_CXX=no melunko@47: fi melunko@47: ;; melunko@47: esac melunko@47: ;; melunko@47: irix5* | irix6*) melunko@47: case $cc_basename in melunko@47: CC*) melunko@47: # SGI C++ melunko@47: 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' melunko@47: melunko@47: # Archives containing C++ object files must be created using melunko@47: # "CC -ar", where "CC" is the IRIX C++ compiler. This is melunko@47: # necessary to make sure instantiated templates are included melunko@47: # in the archive. melunko@47: old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' melunko@47: ;; melunko@47: *) melunko@47: if test "$GXX" = yes; then melunko@47: if test "$with_gnu_ld" = no; then melunko@47: 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' melunko@47: else melunko@47: 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' melunko@47: fi melunko@47: fi melunko@47: link_all_deplibs_CXX=yes melunko@47: ;; melunko@47: esac melunko@47: hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' melunko@47: hardcode_libdir_separator_CXX=: melunko@47: ;; melunko@47: linux*) melunko@47: case $cc_basename in melunko@47: KCC*) melunko@47: # Kuck and Associates, Inc. (KAI) C++ Compiler melunko@47: melunko@47: # KCC will only create a shared library if the output file melunko@47: # ends with ".so" (or ".sl" for HP-UX), so rename the library melunko@47: # to its proper name (with version) after linking. melunko@47: 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' melunko@47: 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' melunko@47: # Commands to make compiler produce verbose output that lists melunko@47: # what "hidden" libraries, object files and flags are used when melunko@47: # linking a shared library. melunko@47: # melunko@47: # There doesn't appear to be a way to prevent this compiler from melunko@47: # explicitly linking system object files so we need to strip them melunko@47: # from the output so that they don't get included in the library melunko@47: # dependencies. melunko@47: 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' melunko@47: melunko@47: hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir' melunko@47: export_dynamic_flag_spec_CXX='${wl}--export-dynamic' melunko@47: melunko@47: # Archives containing C++ object files must be created using melunko@47: # "CC -Bstatic", where "CC" is the KAI C++ compiler. melunko@47: old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' melunko@47: ;; melunko@47: icpc*) melunko@47: # Intel C++ melunko@47: with_gnu_ld=yes melunko@47: # version 8.0 and above of icpc choke on multiply defined symbols melunko@47: # if we add $predep_objects and $postdep_objects, however 7.1 and melunko@47: # earlier do not add the objects themselves. melunko@47: case `$CC -V 2>&1` in melunko@47: *"Version 7."*) melunko@47: archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' melunko@47: 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' melunko@47: ;; melunko@47: *) # Version 8.0 or newer melunko@47: tmp_idyn= melunko@47: case $host_cpu in melunko@47: ia64*) tmp_idyn=' -i_dynamic';; melunko@47: esac melunko@47: archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' melunko@47: 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' melunko@47: ;; melunko@47: esac melunko@47: archive_cmds_need_lc_CXX=no melunko@47: hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' melunko@47: export_dynamic_flag_spec_CXX='${wl}--export-dynamic' melunko@47: whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' melunko@47: ;; melunko@47: pgCC*) melunko@47: # Portland Group C++ compiler melunko@47: archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' melunko@47: archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' melunko@47: melunko@47: hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' melunko@47: export_dynamic_flag_spec_CXX='${wl}--export-dynamic' melunko@47: whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' melunko@47: ;; melunko@47: cxx*) melunko@47: # Compaq C++ melunko@47: archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' melunko@47: 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' melunko@47: melunko@47: runpath_var=LD_RUN_PATH melunko@47: hardcode_libdir_flag_spec_CXX='-rpath $libdir' melunko@47: hardcode_libdir_separator_CXX=: melunko@47: melunko@47: # Commands to make compiler produce verbose output that lists melunko@47: # what "hidden" libraries, object files and flags are used when melunko@47: # linking a shared library. melunko@47: # melunko@47: # There doesn't appear to be a way to prevent this compiler from melunko@47: # explicitly linking system object files so we need to strip them melunko@47: # from the output so that they don't get included in the library melunko@47: # dependencies. melunko@47: 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' melunko@47: ;; melunko@47: esac melunko@47: ;; melunko@47: lynxos*) melunko@47: # FIXME: insert proper C++ library support melunko@47: ld_shlibs_CXX=no melunko@47: ;; melunko@47: m88k*) melunko@47: # FIXME: insert proper C++ library support melunko@47: ld_shlibs_CXX=no melunko@47: ;; melunko@47: mvs*) melunko@47: case $cc_basename in melunko@47: cxx*) melunko@47: # FIXME: insert proper C++ library support melunko@47: ld_shlibs_CXX=no melunko@47: ;; melunko@47: *) melunko@47: # FIXME: insert proper C++ library support melunko@47: ld_shlibs_CXX=no melunko@47: ;; melunko@47: esac melunko@47: ;; melunko@47: netbsd*) melunko@47: if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then melunko@47: archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' melunko@47: wlarc= melunko@47: hardcode_libdir_flag_spec_CXX='-R$libdir' melunko@47: hardcode_direct_CXX=yes melunko@47: hardcode_shlibpath_var_CXX=no melunko@47: fi melunko@47: # Workaround some broken pre-1.5 toolchains melunko@47: output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' melunko@47: ;; melunko@47: openbsd2*) melunko@47: # C++ shared libraries are fairly broken melunko@47: ld_shlibs_CXX=no melunko@47: ;; melunko@47: openbsd*) melunko@47: hardcode_direct_CXX=yes melunko@47: hardcode_shlibpath_var_CXX=no melunko@47: archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' melunko@47: hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' melunko@47: if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then melunko@47: archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' melunko@47: export_dynamic_flag_spec_CXX='${wl}-E' melunko@47: whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' melunko@47: fi melunko@47: output_verbose_link_cmd='echo' melunko@47: ;; melunko@47: osf3*) melunko@47: case $cc_basename in melunko@47: KCC*) melunko@47: # Kuck and Associates, Inc. (KAI) C++ Compiler melunko@47: melunko@47: # KCC will only create a shared library if the output file melunko@47: # ends with ".so" (or ".sl" for HP-UX), so rename the library melunko@47: # to its proper name (with version) after linking. melunko@47: 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' melunko@47: melunko@47: hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' melunko@47: hardcode_libdir_separator_CXX=: melunko@47: melunko@47: # Archives containing C++ object files must be created using melunko@47: # "CC -Bstatic", where "CC" is the KAI C++ compiler. melunko@47: old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' melunko@47: melunko@47: ;; melunko@47: RCC*) melunko@47: # Rational C++ 2.4.1 melunko@47: # FIXME: insert proper C++ library support melunko@47: ld_shlibs_CXX=no melunko@47: ;; melunko@47: cxx*) melunko@47: allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' melunko@47: 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' melunko@47: melunko@47: hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' melunko@47: hardcode_libdir_separator_CXX=: melunko@47: melunko@47: # Commands to make compiler produce verbose output that lists melunko@47: # what "hidden" libraries, object files and flags are used when melunko@47: # linking a shared library. melunko@47: # melunko@47: # There doesn't appear to be a way to prevent this compiler from melunko@47: # explicitly linking system object files so we need to strip them melunko@47: # from the output so that they don't get included in the library melunko@47: # dependencies. melunko@47: 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' melunko@47: ;; melunko@47: *) melunko@47: if test "$GXX" = yes && test "$with_gnu_ld" = no; then melunko@47: allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' melunko@47: 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' melunko@47: melunko@47: hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' melunko@47: hardcode_libdir_separator_CXX=: melunko@47: melunko@47: # Commands to make compiler produce verbose output that lists melunko@47: # what "hidden" libraries, object files and flags are used when melunko@47: # linking a shared library. melunko@47: output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' melunko@47: melunko@47: else melunko@47: # FIXME: insert proper C++ library support melunko@47: ld_shlibs_CXX=no melunko@47: fi melunko@47: ;; melunko@47: esac melunko@47: ;; melunko@47: osf4* | osf5*) melunko@47: case $cc_basename in melunko@47: KCC*) melunko@47: # Kuck and Associates, Inc. (KAI) C++ Compiler melunko@47: melunko@47: # KCC will only create a shared library if the output file melunko@47: # ends with ".so" (or ".sl" for HP-UX), so rename the library melunko@47: # to its proper name (with version) after linking. melunko@47: 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' melunko@47: melunko@47: hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' melunko@47: hardcode_libdir_separator_CXX=: melunko@47: melunko@47: # Archives containing C++ object files must be created using melunko@47: # the KAI C++ compiler. melunko@47: old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' melunko@47: ;; melunko@47: RCC*) melunko@47: # Rational C++ 2.4.1 melunko@47: # FIXME: insert proper C++ library support melunko@47: ld_shlibs_CXX=no melunko@47: ;; melunko@47: cxx*) melunko@47: allow_undefined_flag_CXX=' -expect_unresolved \*' melunko@47: 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' melunko@47: archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ melunko@47: echo "-hidden">> $lib.exp~ melunko@47: $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~ melunko@47: $rm $lib.exp' melunko@47: melunko@47: hardcode_libdir_flag_spec_CXX='-rpath $libdir' melunko@47: hardcode_libdir_separator_CXX=: melunko@47: melunko@47: # Commands to make compiler produce verbose output that lists melunko@47: # what "hidden" libraries, object files and flags are used when melunko@47: # linking a shared library. melunko@47: # melunko@47: # There doesn't appear to be a way to prevent this compiler from melunko@47: # explicitly linking system object files so we need to strip them melunko@47: # from the output so that they don't get included in the library melunko@47: # dependencies. melunko@47: 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' melunko@47: ;; melunko@47: *) melunko@47: if test "$GXX" = yes && test "$with_gnu_ld" = no; then melunko@47: allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' melunko@47: 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' melunko@47: melunko@47: hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' melunko@47: hardcode_libdir_separator_CXX=: melunko@47: melunko@47: # Commands to make compiler produce verbose output that lists melunko@47: # what "hidden" libraries, object files and flags are used when melunko@47: # linking a shared library. melunko@47: output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' melunko@47: melunko@47: else melunko@47: # FIXME: insert proper C++ library support melunko@47: ld_shlibs_CXX=no melunko@47: fi melunko@47: ;; melunko@47: esac melunko@47: ;; melunko@47: psos*) melunko@47: # FIXME: insert proper C++ library support melunko@47: ld_shlibs_CXX=no melunko@47: ;; melunko@47: sco*) melunko@47: archive_cmds_need_lc_CXX=no melunko@47: case $cc_basename in melunko@47: CC*) melunko@47: # FIXME: insert proper C++ library support melunko@47: ld_shlibs_CXX=no melunko@47: ;; melunko@47: *) melunko@47: # FIXME: insert proper C++ library support melunko@47: ld_shlibs_CXX=no melunko@47: ;; melunko@47: esac melunko@47: ;; melunko@47: sunos4*) melunko@47: case $cc_basename in melunko@47: CC*) melunko@47: # Sun C++ 4.x melunko@47: # FIXME: insert proper C++ library support melunko@47: ld_shlibs_CXX=no melunko@47: ;; melunko@47: lcc*) melunko@47: # Lucid melunko@47: # FIXME: insert proper C++ library support melunko@47: ld_shlibs_CXX=no melunko@47: ;; melunko@47: *) melunko@47: # FIXME: insert proper C++ library support melunko@47: ld_shlibs_CXX=no melunko@47: ;; melunko@47: esac melunko@47: ;; melunko@47: solaris*) melunko@47: case $cc_basename in melunko@47: CC*) melunko@47: # Sun C++ 4.2, 5.x and Centerline C++ melunko@47: archive_cmds_need_lc_CXX=yes melunko@47: no_undefined_flag_CXX=' -zdefs' melunko@47: archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' melunko@47: archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ melunko@47: $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' melunko@47: melunko@47: hardcode_libdir_flag_spec_CXX='-R$libdir' melunko@47: hardcode_shlibpath_var_CXX=no melunko@47: case $host_os in melunko@47: solaris2.[0-5] | solaris2.[0-5].*) ;; melunko@47: *) melunko@47: # The C++ compiler is used as linker so we must use $wl melunko@47: # flag to pass the commands to the underlying system melunko@47: # linker. We must also pass each convience library through melunko@47: # to the system linker between allextract/defaultextract. melunko@47: # The C++ compiler will combine linker options so we melunko@47: # cannot just pass the convience library names through melunko@47: # without $wl. melunko@47: # Supported since Solaris 2.6 (maybe 2.5.1?) melunko@47: 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' melunko@47: ;; melunko@47: esac melunko@47: link_all_deplibs_CXX=yes melunko@47: melunko@47: output_verbose_link_cmd='echo' melunko@47: melunko@47: # Archives containing C++ object files must be created using melunko@47: # "CC -xar", where "CC" is the Sun C++ compiler. This is melunko@47: # necessary to make sure instantiated templates are included melunko@47: # in the archive. melunko@47: old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' melunko@47: ;; melunko@47: gcx*) melunko@47: # Green Hills C++ Compiler melunko@47: archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' melunko@47: melunko@47: # The C++ compiler must be used to create the archive. melunko@47: old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' melunko@47: ;; melunko@47: *) melunko@47: # GNU C++ compiler with Solaris linker melunko@47: if test "$GXX" = yes && test "$with_gnu_ld" = no; then melunko@47: no_undefined_flag_CXX=' ${wl}-z ${wl}defs' melunko@47: if $CC --version | grep -v '^2\.7' > /dev/null; then melunko@47: archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' melunko@47: archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ melunko@47: $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' melunko@47: melunko@47: # Commands to make compiler produce verbose output that lists melunko@47: # what "hidden" libraries, object files and flags are used when melunko@47: # linking a shared library. melunko@47: output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" melunko@47: else melunko@47: # g++ 2.7 appears to require `-G' NOT `-shared' on this melunko@47: # platform. melunko@47: archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' melunko@47: archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ melunko@47: $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' melunko@47: melunko@47: # Commands to make compiler produce verbose output that lists melunko@47: # what "hidden" libraries, object files and flags are used when melunko@47: # linking a shared library. melunko@47: output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" melunko@47: fi melunko@47: melunko@47: hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' melunko@47: fi melunko@47: ;; melunko@47: esac melunko@47: ;; melunko@47: sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) melunko@47: archive_cmds_need_lc_CXX=no melunko@47: ;; melunko@47: tandem*) melunko@47: case $cc_basename in melunko@47: NCC*) melunko@47: # NonStop-UX NCC 3.20 melunko@47: # FIXME: insert proper C++ library support melunko@47: ld_shlibs_CXX=no melunko@47: ;; melunko@47: *) melunko@47: # FIXME: insert proper C++ library support melunko@47: ld_shlibs_CXX=no melunko@47: ;; melunko@47: esac melunko@47: ;; melunko@47: vxworks*) melunko@47: # FIXME: insert proper C++ library support melunko@47: ld_shlibs_CXX=no melunko@47: ;; melunko@47: *) melunko@47: # FIXME: insert proper C++ library support melunko@47: ld_shlibs_CXX=no melunko@47: ;; melunko@47: esac melunko@47: echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 melunko@47: echo "${ECHO_T}$ld_shlibs_CXX" >&6 melunko@47: test "$ld_shlibs_CXX" = no && can_build_shared=no melunko@47: melunko@47: GCC_CXX="$GXX" melunko@47: LD_CXX="$LD" melunko@47: melunko@47: melunko@47: cat > conftest.$ac_ext <&5 melunko@47: (eval $ac_compile) 2>&5 melunko@47: ac_status=$? melunko@47: echo "$as_me:$LINENO: \$? = $ac_status" >&5 melunko@47: (exit $ac_status); }; then melunko@47: # Parse the compiler output and extract the necessary melunko@47: # objects, libraries and library flags. melunko@47: melunko@47: # Sentinel used to keep track of whether or not we are before melunko@47: # the conftest object file. melunko@47: pre_test_object_deps_done=no melunko@47: melunko@47: # The `*' in the case matches for architectures that use `case' in melunko@47: # $output_verbose_cmd can trigger glob expansion during the loop melunko@47: # eval without this substitution. melunko@47: output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"` melunko@47: melunko@47: for p in `eval $output_verbose_link_cmd`; do melunko@47: case $p in melunko@47: melunko@47: -L* | -R* | -l*) melunko@47: # Some compilers place space between "-{L,R}" and the path. melunko@47: # Remove the space. melunko@47: if test $p = "-L" \ melunko@47: || test $p = "-R"; then melunko@47: prev=$p melunko@47: continue melunko@47: else melunko@47: prev= melunko@47: fi melunko@47: melunko@47: if test "$pre_test_object_deps_done" = no; then melunko@47: case $p in melunko@47: -L* | -R*) melunko@47: # Internal compiler library paths should come after those melunko@47: # provided the user. The postdeps already come after the melunko@47: # user supplied libs so there is no need to process them. melunko@47: if test -z "$compiler_lib_search_path_CXX"; then melunko@47: compiler_lib_search_path_CXX="${prev}${p}" melunko@47: else melunko@47: compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" melunko@47: fi melunko@47: ;; melunko@47: # The "-l" case would never come before the object being melunko@47: # linked, so don't bother handling this case. melunko@47: esac melunko@47: else melunko@47: if test -z "$postdeps_CXX"; then melunko@47: postdeps_CXX="${prev}${p}" melunko@47: else melunko@47: postdeps_CXX="${postdeps_CXX} ${prev}${p}" melunko@47: fi melunko@47: fi melunko@47: ;; melunko@47: melunko@47: *.$objext) melunko@47: # This assumes that the test object file only shows up melunko@47: # once in the compiler output. melunko@47: if test "$p" = "conftest.$objext"; then melunko@47: pre_test_object_deps_done=yes melunko@47: continue melunko@47: fi melunko@47: melunko@47: if test "$pre_test_object_deps_done" = no; then melunko@47: if test -z "$predep_objects_CXX"; then melunko@47: predep_objects_CXX="$p" melunko@47: else melunko@47: predep_objects_CXX="$predep_objects_CXX $p" melunko@47: fi melunko@47: else melunko@47: if test -z "$postdep_objects_CXX"; then melunko@47: postdep_objects_CXX="$p" melunko@47: else melunko@47: postdep_objects_CXX="$postdep_objects_CXX $p" melunko@47: fi melunko@47: fi melunko@47: ;; melunko@47: melunko@47: *) ;; # Ignore the rest. melunko@47: melunko@47: esac melunko@47: done melunko@47: melunko@47: # Clean up. melunko@47: rm -f a.out a.exe melunko@47: else melunko@47: echo "libtool.m4: error: problem compiling CXX test program" melunko@47: fi melunko@47: melunko@47: $rm -f confest.$objext melunko@47: melunko@47: # PORTME: override above test on systems where it is broken melunko@47: case $host_os in melunko@47: solaris*) melunko@47: case $cc_basename in melunko@47: CC*) melunko@47: # Adding this requires a known-good setup of shared libraries for melunko@47: # Sun compiler versions before 5.6, else PIC objects from an old melunko@47: # archive will be linked into the output, leading to subtle bugs. melunko@47: postdeps_CXX='-lCstd -lCrun' melunko@47: ;; melunko@47: esac melunko@47: esac melunko@47: melunko@47: melunko@47: case " $postdeps_CXX " in melunko@47: *" -lc "*) archive_cmds_need_lc_CXX=no ;; melunko@47: esac melunko@47: melunko@47: lt_prog_compiler_wl_CXX= melunko@47: lt_prog_compiler_pic_CXX= melunko@47: lt_prog_compiler_static_CXX= melunko@47: melunko@47: echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 melunko@47: echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 melunko@47: melunko@47: # C++ specific cases for pic, static, wl, etc. melunko@47: if test "$GXX" = yes; then melunko@47: lt_prog_compiler_wl_CXX='-Wl,' melunko@47: lt_prog_compiler_static_CXX='-static' melunko@47: melunko@47: case $host_os in melunko@47: aix*) melunko@47: # All AIX code is PIC. melunko@47: if test "$host_cpu" = ia64; then melunko@47: # AIX 5 now supports IA64 processor melunko@47: lt_prog_compiler_static_CXX='-Bstatic' melunko@47: fi melunko@47: ;; melunko@47: amigaos*) melunko@47: # FIXME: we need at least 68020 code to build shared libraries, but melunko@47: # adding the `-m68020' flag to GCC prevents building anything better, melunko@47: # like `-m68040'. melunko@47: lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' melunko@47: ;; melunko@47: beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) melunko@47: # PIC is the default for these OSes. melunko@47: ;; melunko@47: mingw* | os2* | pw32*) melunko@47: # This hack is so that the source file can tell whether it is being melunko@47: # built for inclusion in a dll (and should export symbols for example). melunko@47: lt_prog_compiler_pic_CXX='-DDLL_EXPORT' melunko@47: ;; melunko@47: darwin* | rhapsody*) melunko@47: # PIC is the default on this platform melunko@47: # Common symbols not allowed in MH_DYLIB files melunko@47: lt_prog_compiler_pic_CXX='-fno-common' melunko@47: ;; melunko@47: *djgpp*) melunko@47: # DJGPP does not support shared libraries at all melunko@47: lt_prog_compiler_pic_CXX= melunko@47: ;; melunko@47: sysv4*MP*) melunko@47: if test -d /usr/nec; then melunko@47: lt_prog_compiler_pic_CXX=-Kconform_pic melunko@47: fi melunko@47: ;; melunko@47: hpux*) melunko@47: # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but melunko@47: # not for PA HP-UX. melunko@47: case $host_cpu in melunko@47: hppa*64*|ia64*) melunko@47: ;; melunko@47: *) melunko@47: lt_prog_compiler_pic_CXX='-fPIC' melunko@47: ;; melunko@47: esac melunko@47: ;; melunko@47: *) melunko@47: lt_prog_compiler_pic_CXX='-fPIC' melunko@47: ;; melunko@47: esac melunko@47: else melunko@47: case $host_os in melunko@47: aix4* | aix5*) melunko@47: # All AIX code is PIC. melunko@47: if test "$host_cpu" = ia64; then melunko@47: # AIX 5 now supports IA64 processor melunko@47: lt_prog_compiler_static_CXX='-Bstatic' melunko@47: else melunko@47: lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' melunko@47: fi melunko@47: ;; melunko@47: chorus*) melunko@47: case $cc_basename in melunko@47: cxch68*) melunko@47: # Green Hills C++ Compiler melunko@47: # _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" melunko@47: ;; melunko@47: esac melunko@47: ;; melunko@47: darwin*) melunko@47: # PIC is the default on this platform melunko@47: # Common symbols not allowed in MH_DYLIB files melunko@47: case $cc_basename in melunko@47: xlc*) melunko@47: lt_prog_compiler_pic_CXX='-qnocommon' melunko@47: lt_prog_compiler_wl_CXX='-Wl,' melunko@47: ;; melunko@47: esac melunko@47: ;; melunko@47: dgux*) melunko@47: case $cc_basename in melunko@47: ec++*) melunko@47: lt_prog_compiler_pic_CXX='-KPIC' melunko@47: ;; melunko@47: ghcx*) melunko@47: # Green Hills C++ Compiler melunko@47: lt_prog_compiler_pic_CXX='-pic' melunko@47: ;; melunko@47: *) melunko@47: ;; melunko@47: esac melunko@47: ;; melunko@47: freebsd* | kfreebsd*-gnu | dragonfly*) melunko@47: # FreeBSD uses GNU C++ melunko@47: ;; melunko@47: hpux9* | hpux10* | hpux11*) melunko@47: case $cc_basename in melunko@47: CC*) melunko@47: lt_prog_compiler_wl_CXX='-Wl,' melunko@47: lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive" melunko@47: if test "$host_cpu" != ia64; then melunko@47: lt_prog_compiler_pic_CXX='+Z' melunko@47: fi melunko@47: ;; melunko@47: aCC*) melunko@47: lt_prog_compiler_wl_CXX='-Wl,' melunko@47: lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive" melunko@47: case $host_cpu in melunko@47: hppa*64*|ia64*) melunko@47: # +Z the default melunko@47: ;; melunko@47: *) melunko@47: lt_prog_compiler_pic_CXX='+Z' melunko@47: ;; melunko@47: esac melunko@47: ;; melunko@47: *) melunko@47: ;; melunko@47: esac melunko@47: ;; melunko@47: irix5* | irix6* | nonstopux*) melunko@47: case $cc_basename in melunko@47: CC*) melunko@47: lt_prog_compiler_wl_CXX='-Wl,' melunko@47: lt_prog_compiler_static_CXX='-non_shared' melunko@47: # CC pic flag -KPIC is the default. melunko@47: ;; melunko@47: *) melunko@47: ;; melunko@47: esac melunko@47: ;; melunko@47: linux*) melunko@47: case $cc_basename in melunko@47: KCC*) melunko@47: # KAI C++ Compiler melunko@47: lt_prog_compiler_wl_CXX='--backend -Wl,' melunko@47: lt_prog_compiler_pic_CXX='-fPIC' melunko@47: ;; melunko@47: icpc* | ecpc*) melunko@47: # Intel C++ melunko@47: lt_prog_compiler_wl_CXX='-Wl,' melunko@47: lt_prog_compiler_pic_CXX='-KPIC' melunko@47: lt_prog_compiler_static_CXX='-static' melunko@47: ;; melunko@47: pgCC*) melunko@47: # Portland Group C++ compiler. melunko@47: lt_prog_compiler_wl_CXX='-Wl,' melunko@47: lt_prog_compiler_pic_CXX='-fpic' melunko@47: lt_prog_compiler_static_CXX='-Bstatic' melunko@47: ;; melunko@47: cxx*) melunko@47: # Compaq C++ melunko@47: # Make sure the PIC flag is empty. It appears that all Alpha melunko@47: # Linux and Compaq Tru64 Unix objects are PIC. melunko@47: lt_prog_compiler_pic_CXX= melunko@47: lt_prog_compiler_static_CXX='-non_shared' melunko@47: ;; melunko@47: *) melunko@47: ;; melunko@47: esac melunko@47: ;; melunko@47: lynxos*) melunko@47: ;; melunko@47: m88k*) melunko@47: ;; melunko@47: mvs*) melunko@47: case $cc_basename in melunko@47: cxx*) melunko@47: lt_prog_compiler_pic_CXX='-W c,exportall' melunko@47: ;; melunko@47: *) melunko@47: ;; melunko@47: esac melunko@47: ;; melunko@47: netbsd*) melunko@47: ;; melunko@47: osf3* | osf4* | osf5*) melunko@47: case $cc_basename in melunko@47: KCC*) melunko@47: lt_prog_compiler_wl_CXX='--backend -Wl,' melunko@47: ;; melunko@47: RCC*) melunko@47: # Rational C++ 2.4.1 melunko@47: lt_prog_compiler_pic_CXX='-pic' melunko@47: ;; melunko@47: cxx*) melunko@47: # Digital/Compaq C++ melunko@47: lt_prog_compiler_wl_CXX='-Wl,' melunko@47: # Make sure the PIC flag is empty. It appears that all Alpha melunko@47: # Linux and Compaq Tru64 Unix objects are PIC. melunko@47: lt_prog_compiler_pic_CXX= melunko@47: lt_prog_compiler_static_CXX='-non_shared' melunko@47: ;; melunko@47: *) melunko@47: ;; melunko@47: esac melunko@47: ;; melunko@47: psos*) melunko@47: ;; melunko@47: sco*) melunko@47: case $cc_basename in melunko@47: CC*) melunko@47: lt_prog_compiler_pic_CXX='-fPIC' melunko@47: ;; melunko@47: *) melunko@47: ;; melunko@47: esac melunko@47: ;; melunko@47: solaris*) melunko@47: case $cc_basename in melunko@47: CC*) melunko@47: # Sun C++ 4.2, 5.x and Centerline C++ melunko@47: lt_prog_compiler_pic_CXX='-KPIC' melunko@47: lt_prog_compiler_static_CXX='-Bstatic' melunko@47: lt_prog_compiler_wl_CXX='-Qoption ld ' melunko@47: ;; melunko@47: gcx*) melunko@47: # Green Hills C++ Compiler melunko@47: lt_prog_compiler_pic_CXX='-PIC' melunko@47: ;; melunko@47: *) melunko@47: ;; melunko@47: esac melunko@47: ;; melunko@47: sunos4*) melunko@47: case $cc_basename in melunko@47: CC*) melunko@47: # Sun C++ 4.x melunko@47: lt_prog_compiler_pic_CXX='-pic' melunko@47: lt_prog_compiler_static_CXX='-Bstatic' melunko@47: ;; melunko@47: lcc*) melunko@47: # Lucid melunko@47: lt_prog_compiler_pic_CXX='-pic' melunko@47: ;; melunko@47: *) melunko@47: ;; melunko@47: esac melunko@47: ;; melunko@47: tandem*) melunko@47: case $cc_basename in melunko@47: NCC*) melunko@47: # NonStop-UX NCC 3.20 melunko@47: lt_prog_compiler_pic_CXX='-KPIC' melunko@47: ;; melunko@47: *) melunko@47: ;; melunko@47: esac melunko@47: ;; melunko@47: unixware*) melunko@47: ;; melunko@47: vxworks*) melunko@47: ;; melunko@47: *) melunko@47: lt_prog_compiler_can_build_shared_CXX=no melunko@47: ;; melunko@47: esac melunko@47: fi melunko@47: melunko@47: echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5 melunko@47: echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6 melunko@47: melunko@47: # melunko@47: # Check to make sure the PIC flag actually works. melunko@47: # melunko@47: if test -n "$lt_prog_compiler_pic_CXX"; then melunko@47: melunko@47: echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 melunko@47: echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6 melunko@47: if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then melunko@47: echo $ECHO_N "(cached) $ECHO_C" >&6 melunko@47: else melunko@47: lt_prog_compiler_pic_works_CXX=no melunko@47: ac_outfile=conftest.$ac_objext melunko@47: printf "$lt_simple_compile_test_code" > conftest.$ac_ext melunko@47: lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" melunko@47: # Insert the option either (1) after the last *FLAGS variable, or melunko@47: # (2) before a word containing "conftest.", or (3) at the end. melunko@47: # Note that $ac_compile itself does not contain backslashes and begins melunko@47: # with a dollar sign (not a hyphen), so the echo should work correctly. melunko@47: # The option is referenced via a variable to avoid confusing sed. melunko@47: lt_compile=`echo "$ac_compile" | $SED \ melunko@47: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ melunko@47: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ melunko@47: -e 's:$: $lt_compiler_flag:'` melunko@47: (eval echo "\"\$as_me:11341: $lt_compile\"" >&5) melunko@47: (eval "$lt_compile" 2>conftest.err) melunko@47: ac_status=$? melunko@47: cat conftest.err >&5 melunko@47: echo "$as_me:11345: \$? = $ac_status" >&5 melunko@47: if (exit $ac_status) && test -s "$ac_outfile"; then melunko@47: # The compiler can only warn and ignore the option if not recognized melunko@47: # So say no if there are warnings other than the usual output. melunko@47: $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp melunko@47: $SED '/^$/d' conftest.err >conftest.er2 melunko@47: if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then melunko@47: lt_prog_compiler_pic_works_CXX=yes melunko@47: fi melunko@47: fi melunko@47: $rm conftest* melunko@47: melunko@47: fi melunko@47: echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5 melunko@47: echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6 melunko@47: melunko@47: if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then melunko@47: case $lt_prog_compiler_pic_CXX in melunko@47: "" | " "*) ;; melunko@47: *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; melunko@47: esac melunko@47: else melunko@47: lt_prog_compiler_pic_CXX= melunko@47: lt_prog_compiler_can_build_shared_CXX=no melunko@47: fi melunko@47: melunko@47: fi melunko@47: case $host_os in melunko@47: # For platforms which do not support PIC, -DPIC is meaningless: melunko@47: *djgpp*) melunko@47: lt_prog_compiler_pic_CXX= melunko@47: ;; melunko@47: *) melunko@47: lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" melunko@47: ;; melunko@47: esac melunko@47: melunko@47: echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 melunko@47: echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 melunko@47: if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then melunko@47: echo $ECHO_N "(cached) $ECHO_C" >&6 melunko@47: else melunko@47: lt_cv_prog_compiler_c_o_CXX=no melunko@47: $rm -r conftest 2>/dev/null melunko@47: mkdir conftest melunko@47: cd conftest melunko@47: mkdir out melunko@47: printf "$lt_simple_compile_test_code" > conftest.$ac_ext melunko@47: melunko@47: lt_compiler_flag="-o out/conftest2.$ac_objext" melunko@47: # Insert the option either (1) after the last *FLAGS variable, or melunko@47: # (2) before a word containing "conftest.", or (3) at the end. melunko@47: # Note that $ac_compile itself does not contain backslashes and begins melunko@47: # with a dollar sign (not a hyphen), so the echo should work correctly. melunko@47: lt_compile=`echo "$ac_compile" | $SED \ melunko@47: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ melunko@47: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ melunko@47: -e 's:$: $lt_compiler_flag:'` melunko@47: (eval echo "\"\$as_me:11403: $lt_compile\"" >&5) melunko@47: (eval "$lt_compile" 2>out/conftest.err) melunko@47: ac_status=$? melunko@47: cat out/conftest.err >&5 melunko@47: echo "$as_me:11407: \$? = $ac_status" >&5 melunko@47: if (exit $ac_status) && test -s out/conftest2.$ac_objext melunko@47: then melunko@47: # The compiler can only warn and ignore the option if not recognized melunko@47: # So say no if there are warnings melunko@47: $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp melunko@47: $SED '/^$/d' out/conftest.err >out/conftest.er2 melunko@47: if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then melunko@47: lt_cv_prog_compiler_c_o_CXX=yes melunko@47: fi melunko@47: fi melunko@47: chmod u+w . 2>&5 melunko@47: $rm conftest* melunko@47: # SGI C++ compiler will create directory out/ii_files/ for melunko@47: # template instantiation melunko@47: test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files melunko@47: $rm out/* && rmdir out melunko@47: cd .. melunko@47: rmdir conftest melunko@47: $rm conftest* melunko@47: melunko@47: fi melunko@47: echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5 melunko@47: echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6 melunko@47: melunko@47: melunko@47: hard_links="nottested" melunko@47: if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then melunko@47: # do not overwrite the value of need_locks provided by the user melunko@47: echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 melunko@47: echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 melunko@47: hard_links=yes melunko@47: $rm conftest* melunko@47: ln conftest.a conftest.b 2>/dev/null && hard_links=no melunko@47: touch conftest.a melunko@47: ln conftest.a conftest.b 2>&5 || hard_links=no melunko@47: ln conftest.a conftest.b 2>/dev/null && hard_links=no melunko@47: echo "$as_me:$LINENO: result: $hard_links" >&5 melunko@47: echo "${ECHO_T}$hard_links" >&6 melunko@47: if test "$hard_links" = no; then melunko@47: { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 melunko@47: echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} melunko@47: need_locks=warn melunko@47: fi melunko@47: else melunko@47: need_locks=no melunko@47: fi melunko@47: melunko@47: echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 melunko@47: echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 melunko@47: melunko@47: export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' melunko@47: case $host_os in melunko@47: aix4* | aix5*) melunko@47: # If we're using GNU nm, then we don't want the "-C" option. melunko@47: # -C means demangle to AIX nm, but means don't demangle with GNU nm melunko@47: if $NM -V 2>&1 | grep 'GNU' > /dev/null; then melunko@47: 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' melunko@47: else melunko@47: 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' melunko@47: fi melunko@47: ;; melunko@47: pw32*) melunko@47: export_symbols_cmds_CXX="$ltdll_cmds" melunko@47: ;; melunko@47: cygwin* | mingw*) melunko@47: 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' melunko@47: ;; melunko@47: *) melunko@47: export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' melunko@47: ;; melunko@47: esac melunko@47: melunko@47: echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 melunko@47: echo "${ECHO_T}$ld_shlibs_CXX" >&6 melunko@47: test "$ld_shlibs_CXX" = no && can_build_shared=no melunko@47: melunko@47: variables_saved_for_relink="PATH $shlibpath_var $runpath_var" melunko@47: if test "$GCC" = yes; then melunko@47: variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" melunko@47: fi melunko@47: melunko@47: # melunko@47: # Do we need to explicitly link libc? melunko@47: # melunko@47: case "x$archive_cmds_need_lc_CXX" in melunko@47: x|xyes) melunko@47: # Assume -lc should be added melunko@47: archive_cmds_need_lc_CXX=yes melunko@47: melunko@47: if test "$enable_shared" = yes && test "$GCC" = yes; then melunko@47: case $archive_cmds_CXX in melunko@47: *'~'*) melunko@47: # FIXME: we may have to deal with multi-command sequences. melunko@47: ;; melunko@47: '$CC '*) melunko@47: # Test whether the compiler implicitly links with -lc since on some melunko@47: # systems, -lgcc has to come before -lc. If gcc already passes -lc melunko@47: # to ld, don't add -lc before -lgcc. melunko@47: echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 melunko@47: echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 melunko@47: $rm conftest* melunko@47: printf "$lt_simple_compile_test_code" > conftest.$ac_ext melunko@47: melunko@47: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 melunko@47: (eval $ac_compile) 2>&5 melunko@47: ac_status=$? melunko@47: echo "$as_me:$LINENO: \$? = $ac_status" >&5 melunko@47: (exit $ac_status); } 2>conftest.err; then melunko@47: soname=conftest melunko@47: lib=conftest melunko@47: libobjs=conftest.$ac_objext melunko@47: deplibs= melunko@47: wl=$lt_prog_compiler_wl_CXX melunko@47: compiler_flags=-v melunko@47: linker_flags=-v melunko@47: verstring= melunko@47: output_objdir=. melunko@47: libname=conftest melunko@47: lt_save_allow_undefined_flag=$allow_undefined_flag_CXX melunko@47: allow_undefined_flag_CXX= melunko@47: if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 melunko@47: (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 melunko@47: ac_status=$? melunko@47: echo "$as_me:$LINENO: \$? = $ac_status" >&5 melunko@47: (exit $ac_status); } melunko@47: then melunko@47: archive_cmds_need_lc_CXX=no melunko@47: else melunko@47: archive_cmds_need_lc_CXX=yes melunko@47: fi melunko@47: allow_undefined_flag_CXX=$lt_save_allow_undefined_flag melunko@47: else melunko@47: cat conftest.err 1>&5 melunko@47: fi melunko@47: $rm conftest* melunko@47: echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5 melunko@47: echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6 melunko@47: ;; melunko@47: esac melunko@47: fi melunko@47: ;; melunko@47: esac melunko@47: melunko@47: echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 melunko@47: echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 melunko@47: library_names_spec= melunko@47: libname_spec='lib$name' melunko@47: soname_spec= melunko@47: shrext_cmds=".so" melunko@47: postinstall_cmds= melunko@47: postuninstall_cmds= melunko@47: finish_cmds= melunko@47: finish_eval= melunko@47: shlibpath_var= melunko@47: shlibpath_overrides_runpath=unknown melunko@47: version_type=none melunko@47: dynamic_linker="$host_os ld.so" melunko@47: sys_lib_dlsearch_path_spec="/lib /usr/lib" melunko@47: if test "$GCC" = yes; then melunko@47: sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` melunko@47: if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then melunko@47: # if the path contains ";" then we assume it to be the separator melunko@47: # otherwise default to the standard path separator (i.e. ":") - it is melunko@47: # assumed that no part of a normal pathname contains ";" but that should melunko@47: # okay in the real world where ";" in dirpaths is itself problematic. melunko@47: sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` melunko@47: else melunko@47: sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` melunko@47: fi melunko@47: else melunko@47: sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" melunko@47: fi melunko@47: need_lib_prefix=unknown melunko@47: hardcode_into_libs=no melunko@47: melunko@47: # when you set need_version to no, make sure it does not cause -set_version melunko@47: # flags to be left without arguments melunko@47: need_version=unknown melunko@47: melunko@47: case $host_os in melunko@47: aix3*) melunko@47: version_type=linux melunko@47: library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' melunko@47: shlibpath_var=LIBPATH melunko@47: melunko@47: # AIX 3 has no versioning support, so we append a major version to the name. melunko@47: soname_spec='${libname}${release}${shared_ext}$major' melunko@47: ;; melunko@47: melunko@47: aix4* | aix5*) melunko@47: version_type=linux melunko@47: need_lib_prefix=no melunko@47: need_version=no melunko@47: hardcode_into_libs=yes melunko@47: if test "$host_cpu" = ia64; then melunko@47: # AIX 5 supports IA64 melunko@47: library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' melunko@47: shlibpath_var=LD_LIBRARY_PATH melunko@47: else melunko@47: # With GCC up to 2.95.x, collect2 would create an import file melunko@47: # for dependence libraries. The import file would start with melunko@47: # the line `#! .'. This would cause the generated library to melunko@47: # depend on `.', always an invalid library. This was fixed in melunko@47: # development snapshots of GCC prior to 3.0. melunko@47: case $host_os in melunko@47: aix4 | aix4.[01] | aix4.[01].*) melunko@47: if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' melunko@47: echo ' yes ' melunko@47: echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then melunko@47: : melunko@47: else melunko@47: can_build_shared=no melunko@47: fi melunko@47: ;; melunko@47: esac melunko@47: # AIX (on Power*) has no versioning support, so currently we can not hardcode correct melunko@47: # soname into executable. Probably we can add versioning support to melunko@47: # collect2, so additional links can be useful in future. melunko@47: if test "$aix_use_runtimelinking" = yes; then melunko@47: # If using run time linking (on AIX 4.2 or later) use lib.so melunko@47: # instead of lib.a to let people know that these are not melunko@47: # typical AIX shared libraries. melunko@47: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' melunko@47: else melunko@47: # We preserve .a as extension for shared libraries through AIX4.2 melunko@47: # and later when we are not doing run time linking. melunko@47: library_names_spec='${libname}${release}.a $libname.a' melunko@47: soname_spec='${libname}${release}${shared_ext}$major' melunko@47: fi melunko@47: shlibpath_var=LIBPATH melunko@47: fi melunko@47: ;; melunko@47: melunko@47: amigaos*) melunko@47: library_names_spec='$libname.ixlibrary $libname.a' melunko@47: # Create ${libname}_ixlibrary.a entries in /sys/libs. melunko@47: 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' melunko@47: ;; melunko@47: melunko@47: beos*) melunko@47: library_names_spec='${libname}${shared_ext}' melunko@47: dynamic_linker="$host_os ld.so" melunko@47: shlibpath_var=LIBRARY_PATH melunko@47: ;; melunko@47: melunko@47: bsdi[45]*) melunko@47: version_type=linux melunko@47: need_version=no melunko@47: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' melunko@47: soname_spec='${libname}${release}${shared_ext}$major' melunko@47: finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' melunko@47: shlibpath_var=LD_LIBRARY_PATH melunko@47: sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" melunko@47: sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" melunko@47: # the default ld.so.conf also contains /usr/contrib/lib and melunko@47: # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow melunko@47: # libtool to hard-code these into programs melunko@47: ;; melunko@47: melunko@47: cygwin* | mingw* | pw32*) melunko@47: version_type=windows melunko@47: shrext_cmds=".dll" melunko@47: need_version=no melunko@47: need_lib_prefix=no melunko@47: melunko@47: case $GCC,$host_os in melunko@47: yes,cygwin* | yes,mingw* | yes,pw32*) melunko@47: library_names_spec='$libname.dll.a' melunko@47: # DLL is installed to $(libdir)/../bin by postinstall_cmds melunko@47: postinstall_cmds='base_file=`basename \${file}`~ melunko@47: dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ melunko@47: dldir=$destdir/`dirname \$dlpath`~ melunko@47: test -d \$dldir || mkdir -p \$dldir~ melunko@47: $install_prog $dir/$dlname \$dldir/$dlname~ melunko@47: chmod a+x \$dldir/$dlname' melunko@47: postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ melunko@47: dlpath=$dir/\$dldll~ melunko@47: $rm \$dlpath' melunko@47: shlibpath_overrides_runpath=yes melunko@47: melunko@47: case $host_os in melunko@47: cygwin*) melunko@47: # Cygwin DLLs use 'cyg' prefix rather than 'lib' melunko@47: soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' melunko@47: sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" melunko@47: ;; melunko@47: mingw*) melunko@47: # MinGW DLLs use traditional 'lib' prefix melunko@47: soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' melunko@47: sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` melunko@47: if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then melunko@47: # It is most probably a Windows format PATH printed by melunko@47: # mingw gcc, but we are running on Cygwin. Gcc prints its search melunko@47: # path with ; separators, and with drive letters. We can handle the melunko@47: # drive letters (cygwin fileutils understands them), so leave them, melunko@47: # especially as we might pass files found there to a mingw objdump, melunko@47: # which wouldn't understand a cygwinified path. Ahh. melunko@47: sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` melunko@47: else melunko@47: sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` melunko@47: fi melunko@47: ;; melunko@47: pw32*) melunko@47: # pw32 DLLs use 'pw' prefix rather than 'lib' melunko@47: library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' melunko@47: ;; melunko@47: esac melunko@47: ;; melunko@47: melunko@47: *) melunko@47: library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' melunko@47: ;; melunko@47: esac melunko@47: dynamic_linker='Win32 ld.exe' melunko@47: # FIXME: first we should search . and the directory the executable is in melunko@47: shlibpath_var=PATH melunko@47: ;; melunko@47: melunko@47: darwin* | rhapsody*) melunko@47: dynamic_linker="$host_os dyld" melunko@47: version_type=darwin melunko@47: need_lib_prefix=no melunko@47: need_version=no melunko@47: library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' melunko@47: soname_spec='${libname}${release}${major}$shared_ext' melunko@47: shlibpath_overrides_runpath=yes melunko@47: shlibpath_var=DYLD_LIBRARY_PATH melunko@47: shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' melunko@47: # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. melunko@47: if test "$GCC" = yes; then melunko@47: 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"` melunko@47: else melunko@47: sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' melunko@47: fi melunko@47: sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' melunko@47: ;; melunko@47: melunko@47: dgux*) melunko@47: version_type=linux melunko@47: need_lib_prefix=no melunko@47: need_version=no melunko@47: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' melunko@47: soname_spec='${libname}${release}${shared_ext}$major' melunko@47: shlibpath_var=LD_LIBRARY_PATH melunko@47: ;; melunko@47: melunko@47: freebsd1*) melunko@47: dynamic_linker=no melunko@47: ;; melunko@47: melunko@47: kfreebsd*-gnu) melunko@47: version_type=linux melunko@47: need_lib_prefix=no melunko@47: need_version=no melunko@47: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' melunko@47: soname_spec='${libname}${release}${shared_ext}$major' melunko@47: shlibpath_var=LD_LIBRARY_PATH melunko@47: shlibpath_overrides_runpath=no melunko@47: hardcode_into_libs=yes melunko@47: dynamic_linker='GNU ld.so' melunko@47: ;; melunko@47: melunko@47: freebsd* | dragonfly*) melunko@47: # DragonFly does not have aout. When/if they implement a new melunko@47: # versioning mechanism, adjust this. melunko@47: if test -x /usr/bin/objformat; then melunko@47: objformat=`/usr/bin/objformat` melunko@47: else melunko@47: case $host_os in melunko@47: freebsd[123]*) objformat=aout ;; melunko@47: *) objformat=elf ;; melunko@47: esac melunko@47: fi melunko@47: version_type=freebsd-$objformat melunko@47: case $version_type in melunko@47: freebsd-elf*) melunko@47: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' melunko@47: need_version=no melunko@47: need_lib_prefix=no melunko@47: ;; melunko@47: freebsd-*) melunko@47: library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' melunko@47: need_version=yes melunko@47: ;; melunko@47: esac melunko@47: shlibpath_var=LD_LIBRARY_PATH melunko@47: case $host_os in melunko@47: freebsd2*) melunko@47: shlibpath_overrides_runpath=yes melunko@47: ;; melunko@47: freebsd3.[01]* | freebsdelf3.[01]*) melunko@47: shlibpath_overrides_runpath=yes melunko@47: hardcode_into_libs=yes melunko@47: ;; melunko@47: *) # from 3.2 on melunko@47: shlibpath_overrides_runpath=no melunko@47: hardcode_into_libs=yes melunko@47: ;; melunko@47: esac melunko@47: ;; melunko@47: melunko@47: gnu*) melunko@47: version_type=linux melunko@47: need_lib_prefix=no melunko@47: need_version=no melunko@47: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' melunko@47: soname_spec='${libname}${release}${shared_ext}$major' melunko@47: shlibpath_var=LD_LIBRARY_PATH melunko@47: hardcode_into_libs=yes melunko@47: ;; melunko@47: melunko@47: hpux9* | hpux10* | hpux11*) melunko@47: # Give a soname corresponding to the major version so that dld.sl refuses to melunko@47: # link against other versions. melunko@47: version_type=sunos melunko@47: need_lib_prefix=no melunko@47: need_version=no melunko@47: case $host_cpu in melunko@47: ia64*) melunko@47: shrext_cmds='.so' melunko@47: hardcode_into_libs=yes melunko@47: dynamic_linker="$host_os dld.so" melunko@47: shlibpath_var=LD_LIBRARY_PATH melunko@47: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. melunko@47: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' melunko@47: soname_spec='${libname}${release}${shared_ext}$major' melunko@47: if test "X$HPUX_IA64_MODE" = X32; then melunko@47: sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" melunko@47: else melunko@47: sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" melunko@47: fi melunko@47: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec melunko@47: ;; melunko@47: hppa*64*) melunko@47: shrext_cmds='.sl' melunko@47: hardcode_into_libs=yes melunko@47: dynamic_linker="$host_os dld.sl" melunko@47: shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH melunko@47: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. melunko@47: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' melunko@47: soname_spec='${libname}${release}${shared_ext}$major' melunko@47: sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" melunko@47: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec melunko@47: ;; melunko@47: *) melunko@47: shrext_cmds='.sl' melunko@47: dynamic_linker="$host_os dld.sl" melunko@47: shlibpath_var=SHLIB_PATH melunko@47: shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH melunko@47: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' melunko@47: soname_spec='${libname}${release}${shared_ext}$major' melunko@47: ;; melunko@47: esac melunko@47: # HP-UX runs *really* slowly unless shared libraries are mode 555. melunko@47: postinstall_cmds='chmod 555 $lib' melunko@47: ;; melunko@47: melunko@47: irix5* | irix6* | nonstopux*) melunko@47: case $host_os in melunko@47: nonstopux*) version_type=nonstopux ;; melunko@47: *) melunko@47: if test "$lt_cv_prog_gnu_ld" = yes; then melunko@47: version_type=linux melunko@47: else melunko@47: version_type=irix melunko@47: fi ;; melunko@47: esac melunko@47: need_lib_prefix=no melunko@47: need_version=no melunko@47: soname_spec='${libname}${release}${shared_ext}$major' melunko@47: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' melunko@47: case $host_os in melunko@47: irix5* | nonstopux*) melunko@47: libsuff= shlibsuff= melunko@47: ;; melunko@47: *) melunko@47: case $LD in # libtool.m4 will add one of these switches to LD melunko@47: *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") melunko@47: libsuff= shlibsuff= libmagic=32-bit;; melunko@47: *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") melunko@47: libsuff=32 shlibsuff=N32 libmagic=N32;; melunko@47: *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") melunko@47: libsuff=64 shlibsuff=64 libmagic=64-bit;; melunko@47: *) libsuff= shlibsuff= libmagic=never-match;; melunko@47: esac melunko@47: ;; melunko@47: esac melunko@47: shlibpath_var=LD_LIBRARY${shlibsuff}_PATH melunko@47: shlibpath_overrides_runpath=no melunko@47: sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" melunko@47: sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" melunko@47: hardcode_into_libs=yes melunko@47: ;; melunko@47: melunko@47: # No shared lib support for Linux oldld, aout, or coff. melunko@47: linux*oldld* | linux*aout* | linux*coff*) melunko@47: dynamic_linker=no melunko@47: ;; melunko@47: melunko@47: # This must be Linux ELF. melunko@47: linux*) melunko@47: version_type=linux melunko@47: need_lib_prefix=no melunko@47: need_version=no melunko@47: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' melunko@47: soname_spec='${libname}${release}${shared_ext}$major' melunko@47: finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' melunko@47: shlibpath_var=LD_LIBRARY_PATH melunko@47: shlibpath_overrides_runpath=no melunko@47: # This implies no fast_install, which is unacceptable. melunko@47: # Some rework will be needed to allow for fast_install melunko@47: # before this can be enabled. melunko@47: hardcode_into_libs=yes melunko@47: melunko@47: # Append ld.so.conf contents to the search path melunko@47: if test -f /etc/ld.so.conf; then melunko@47: lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` melunko@47: sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" melunko@47: fi melunko@47: melunko@47: # We used to test for /lib/ld.so.1 and disable shared libraries on melunko@47: # powerpc, because MkLinux only supported shared libraries with the melunko@47: # GNU dynamic linker. Since this was broken with cross compilers, melunko@47: # most powerpc-linux boxes support dynamic linking these days and melunko@47: # people can always --disable-shared, the test was removed, and we melunko@47: # assume the GNU/Linux dynamic linker is in use. melunko@47: dynamic_linker='GNU/Linux ld.so' melunko@47: ;; melunko@47: melunko@47: knetbsd*-gnu) melunko@47: version_type=linux melunko@47: need_lib_prefix=no melunko@47: need_version=no melunko@47: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' melunko@47: soname_spec='${libname}${release}${shared_ext}$major' melunko@47: shlibpath_var=LD_LIBRARY_PATH melunko@47: shlibpath_overrides_runpath=no melunko@47: hardcode_into_libs=yes melunko@47: dynamic_linker='GNU ld.so' melunko@47: ;; melunko@47: melunko@47: netbsd*) melunko@47: version_type=sunos melunko@47: need_lib_prefix=no melunko@47: need_version=no melunko@47: if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then melunko@47: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' melunko@47: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' melunko@47: dynamic_linker='NetBSD (a.out) ld.so' melunko@47: else melunko@47: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' melunko@47: soname_spec='${libname}${release}${shared_ext}$major' melunko@47: dynamic_linker='NetBSD ld.elf_so' melunko@47: fi melunko@47: shlibpath_var=LD_LIBRARY_PATH melunko@47: shlibpath_overrides_runpath=yes melunko@47: hardcode_into_libs=yes melunko@47: ;; melunko@47: melunko@47: newsos6) melunko@47: version_type=linux melunko@47: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' melunko@47: shlibpath_var=LD_LIBRARY_PATH melunko@47: shlibpath_overrides_runpath=yes melunko@47: ;; melunko@47: melunko@47: nto-qnx*) melunko@47: version_type=linux melunko@47: need_lib_prefix=no melunko@47: need_version=no melunko@47: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' melunko@47: soname_spec='${libname}${release}${shared_ext}$major' melunko@47: shlibpath_var=LD_LIBRARY_PATH melunko@47: shlibpath_overrides_runpath=yes melunko@47: ;; melunko@47: melunko@47: openbsd*) melunko@47: version_type=sunos melunko@47: need_lib_prefix=no melunko@47: # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. melunko@47: case $host_os in melunko@47: openbsd3.3 | openbsd3.3.*) need_version=yes ;; melunko@47: *) need_version=no ;; melunko@47: esac melunko@47: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' melunko@47: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' melunko@47: shlibpath_var=LD_LIBRARY_PATH melunko@47: if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then melunko@47: case $host_os in melunko@47: openbsd2.[89] | openbsd2.[89].*) melunko@47: shlibpath_overrides_runpath=no melunko@47: ;; melunko@47: *) melunko@47: shlibpath_overrides_runpath=yes melunko@47: ;; melunko@47: esac melunko@47: else melunko@47: shlibpath_overrides_runpath=yes melunko@47: fi melunko@47: ;; melunko@47: melunko@47: os2*) melunko@47: libname_spec='$name' melunko@47: shrext_cmds=".dll" melunko@47: need_lib_prefix=no melunko@47: library_names_spec='$libname${shared_ext} $libname.a' melunko@47: dynamic_linker='OS/2 ld.exe' melunko@47: shlibpath_var=LIBPATH melunko@47: ;; melunko@47: melunko@47: osf3* | osf4* | osf5*) melunko@47: version_type=osf melunko@47: need_lib_prefix=no melunko@47: need_version=no melunko@47: soname_spec='${libname}${release}${shared_ext}$major' melunko@47: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' melunko@47: shlibpath_var=LD_LIBRARY_PATH melunko@47: sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" melunko@47: sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" melunko@47: ;; melunko@47: melunko@47: sco3.2v5*) melunko@47: version_type=osf melunko@47: soname_spec='${libname}${release}${shared_ext}$major' melunko@47: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' melunko@47: shlibpath_var=LD_LIBRARY_PATH melunko@47: ;; melunko@47: melunko@47: solaris*) melunko@47: version_type=linux melunko@47: need_lib_prefix=no melunko@47: need_version=no melunko@47: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' melunko@47: soname_spec='${libname}${release}${shared_ext}$major' melunko@47: shlibpath_var=LD_LIBRARY_PATH melunko@47: shlibpath_overrides_runpath=yes melunko@47: hardcode_into_libs=yes melunko@47: # ldd complains unless libraries are executable melunko@47: postinstall_cmds='chmod +x $lib' melunko@47: ;; melunko@47: melunko@47: sunos4*) melunko@47: version_type=sunos melunko@47: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' melunko@47: finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' melunko@47: shlibpath_var=LD_LIBRARY_PATH melunko@47: shlibpath_overrides_runpath=yes melunko@47: if test "$with_gnu_ld" = yes; then melunko@47: need_lib_prefix=no melunko@47: fi melunko@47: need_version=yes melunko@47: ;; melunko@47: melunko@47: sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) melunko@47: version_type=linux melunko@47: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' melunko@47: soname_spec='${libname}${release}${shared_ext}$major' melunko@47: shlibpath_var=LD_LIBRARY_PATH melunko@47: case $host_vendor in melunko@47: sni) melunko@47: shlibpath_overrides_runpath=no melunko@47: need_lib_prefix=no melunko@47: export_dynamic_flag_spec='${wl}-Blargedynsym' melunko@47: runpath_var=LD_RUN_PATH melunko@47: ;; melunko@47: siemens) melunko@47: need_lib_prefix=no melunko@47: ;; melunko@47: motorola) melunko@47: need_lib_prefix=no melunko@47: need_version=no melunko@47: shlibpath_overrides_runpath=no melunko@47: sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' melunko@47: ;; melunko@47: esac melunko@47: ;; melunko@47: melunko@47: sysv4*MP*) melunko@47: if test -d /usr/nec ;then melunko@47: version_type=linux melunko@47: library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' melunko@47: soname_spec='$libname${shared_ext}.$major' melunko@47: shlibpath_var=LD_LIBRARY_PATH melunko@47: fi melunko@47: ;; melunko@47: melunko@47: uts4*) melunko@47: version_type=linux melunko@47: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' melunko@47: soname_spec='${libname}${release}${shared_ext}$major' melunko@47: shlibpath_var=LD_LIBRARY_PATH melunko@47: ;; melunko@47: melunko@47: *) melunko@47: dynamic_linker=no melunko@47: ;; melunko@47: esac melunko@47: echo "$as_me:$LINENO: result: $dynamic_linker" >&5 melunko@47: echo "${ECHO_T}$dynamic_linker" >&6 melunko@47: test "$dynamic_linker" = no && can_build_shared=no melunko@47: melunko@47: echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 melunko@47: echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 melunko@47: hardcode_action_CXX= melunko@47: if test -n "$hardcode_libdir_flag_spec_CXX" || \ melunko@47: test -n "$runpath_var_CXX" || \ melunko@47: test "X$hardcode_automatic_CXX" = "Xyes" ; then melunko@47: melunko@47: # We can hardcode non-existant directories. melunko@47: if test "$hardcode_direct_CXX" != no && melunko@47: # If the only mechanism to avoid hardcoding is shlibpath_var, we melunko@47: # have to relink, otherwise we might link with an installed library melunko@47: # when we should be linking with a yet-to-be-installed one melunko@47: ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no && melunko@47: test "$hardcode_minus_L_CXX" != no; then melunko@47: # Linking always hardcodes the temporary library directory. melunko@47: hardcode_action_CXX=relink melunko@47: else melunko@47: # We can link without hardcoding, and we can hardcode nonexisting dirs. melunko@47: hardcode_action_CXX=immediate melunko@47: fi melunko@47: else melunko@47: # We cannot hardcode anything, or else we can only hardcode existing melunko@47: # directories. melunko@47: hardcode_action_CXX=unsupported melunko@47: fi melunko@47: echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5 melunko@47: echo "${ECHO_T}$hardcode_action_CXX" >&6 melunko@47: melunko@47: if test "$hardcode_action_CXX" = relink; then melunko@47: # Fast installation is not supported melunko@47: enable_fast_install=no melunko@47: elif test "$shlibpath_overrides_runpath" = yes || melunko@47: test "$enable_shared" = no; then melunko@47: # Fast installation is not necessary melunko@47: enable_fast_install=needless melunko@47: fi melunko@47: melunko@47: striplib= melunko@47: old_striplib= melunko@47: echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 melunko@47: echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 melunko@47: if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then melunko@47: test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" melunko@47: test -z "$striplib" && striplib="$STRIP --strip-unneeded" melunko@47: echo "$as_me:$LINENO: result: yes" >&5 melunko@47: echo "${ECHO_T}yes" >&6 melunko@47: else melunko@47: # FIXME - insert some real tests, host_os isn't really good enough melunko@47: case $host_os in melunko@47: darwin*) melunko@47: if test -n "$STRIP" ; then melunko@47: striplib="$STRIP -x" melunko@47: echo "$as_me:$LINENO: result: yes" >&5 melunko@47: echo "${ECHO_T}yes" >&6 melunko@47: else melunko@47: echo "$as_me:$LINENO: result: no" >&5 melunko@47: echo "${ECHO_T}no" >&6 melunko@47: fi melunko@47: ;; melunko@47: *) melunko@47: echo "$as_me:$LINENO: result: no" >&5 melunko@47: echo "${ECHO_T}no" >&6 melunko@47: ;; melunko@47: esac melunko@47: fi melunko@47: melunko@47: if test "x$enable_dlopen" != xyes; then melunko@47: enable_dlopen=unknown melunko@47: enable_dlopen_self=unknown melunko@47: enable_dlopen_self_static=unknown melunko@47: else melunko@47: lt_cv_dlopen=no melunko@47: lt_cv_dlopen_libs= melunko@47: melunko@47: case $host_os in melunko@47: beos*) melunko@47: lt_cv_dlopen="load_add_on" melunko@47: lt_cv_dlopen_libs= melunko@47: lt_cv_dlopen_self=yes melunko@47: ;; melunko@47: melunko@47: mingw* | pw32*) melunko@47: lt_cv_dlopen="LoadLibrary" melunko@47: lt_cv_dlopen_libs= melunko@47: ;; melunko@47: melunko@47: cygwin*) melunko@47: lt_cv_dlopen="dlopen" melunko@47: lt_cv_dlopen_libs= melunko@47: ;; melunko@47: melunko@47: darwin*) melunko@47: # if libdl is installed we need to link against it melunko@47: echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 melunko@47: echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 melunko@47: if test "${ac_cv_lib_dl_dlopen+set}" = set; then melunko@47: echo $ECHO_N "(cached) $ECHO_C" >&6 melunko@47: else melunko@47: ac_check_lib_save_LIBS=$LIBS melunko@47: LIBS="-ldl $LIBS" melunko@47: cat >conftest.$ac_ext <<_ACEOF melunko@47: /* confdefs.h. */ melunko@47: _ACEOF melunko@47: cat confdefs.h >>conftest.$ac_ext melunko@47: cat >>conftest.$ac_ext <<_ACEOF melunko@47: /* end confdefs.h. */ melunko@47: melunko@47: /* Override any gcc2 internal prototype to avoid an error. */ melunko@47: #ifdef __cplusplus melunko@47: extern "C" melunko@47: #endif melunko@47: /* We use char because int might match the return type of a gcc2 melunko@47: builtin and then its argument prototype would still apply. */ melunko@47: char dlopen (); melunko@47: int melunko@47: main () melunko@47: { melunko@47: dlopen (); melunko@47: ; melunko@47: return 0; melunko@47: } melunko@47: _ACEOF melunko@47: rm -f conftest.$ac_objext conftest$ac_exeext melunko@47: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 melunko@47: (eval $ac_link) 2>conftest.er1 melunko@47: ac_status=$? melunko@47: grep -v '^ *+' conftest.er1 >conftest.err melunko@47: rm -f conftest.er1 melunko@47: cat conftest.err >&5 melunko@47: echo "$as_me:$LINENO: \$? = $ac_status" >&5 melunko@47: (exit $ac_status); } && melunko@47: { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' melunko@47: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 melunko@47: (eval $ac_try) 2>&5 melunko@47: ac_status=$? melunko@47: echo "$as_me:$LINENO: \$? = $ac_status" >&5 melunko@47: (exit $ac_status); }; } && melunko@47: { ac_try='test -s conftest$ac_exeext' melunko@47: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 melunko@47: (eval $ac_try) 2>&5 melunko@47: ac_status=$? melunko@47: echo "$as_me:$LINENO: \$? = $ac_status" >&5 melunko@47: (exit $ac_status); }; }; then melunko@47: ac_cv_lib_dl_dlopen=yes melunko@47: else melunko@47: echo "$as_me: failed program was:" >&5 melunko@47: sed 's/^/| /' conftest.$ac_ext >&5 melunko@47: melunko@47: ac_cv_lib_dl_dlopen=no melunko@47: fi melunko@47: rm -f conftest.err conftest.$ac_objext \ melunko@47: conftest$ac_exeext conftest.$ac_ext melunko@47: LIBS=$ac_check_lib_save_LIBS melunko@47: fi melunko@47: echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 melunko@47: echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 melunko@47: if test $ac_cv_lib_dl_dlopen = yes; then melunko@47: lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" melunko@47: else melunko@47: melunko@47: lt_cv_dlopen="dyld" melunko@47: lt_cv_dlopen_libs= melunko@47: lt_cv_dlopen_self=yes melunko@47: melunko@47: fi melunko@47: melunko@47: ;; melunko@47: melunko@47: *) melunko@47: echo "$as_me:$LINENO: checking for shl_load" >&5 melunko@47: echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 melunko@47: if test "${ac_cv_func_shl_load+set}" = set; then melunko@47: echo $ECHO_N "(cached) $ECHO_C" >&6 melunko@47: else melunko@47: cat >conftest.$ac_ext <<_ACEOF melunko@47: /* confdefs.h. */ melunko@47: _ACEOF melunko@47: cat confdefs.h >>conftest.$ac_ext melunko@47: cat >>conftest.$ac_ext <<_ACEOF melunko@47: /* end confdefs.h. */ melunko@47: /* Define shl_load to an innocuous variant, in case declares shl_load. melunko@47: For example, HP-UX 11i declares gettimeofday. */ melunko@47: #define shl_load innocuous_shl_load melunko@47: melunko@47: /* System header to define __stub macros and hopefully few prototypes, melunko@47: which can conflict with char shl_load (); below. melunko@47: Prefer to if __STDC__ is defined, since melunko@47: exists even on freestanding compilers. */ melunko@47: melunko@47: #ifdef __STDC__ melunko@47: # include melunko@47: #else melunko@47: # include melunko@47: #endif melunko@47: melunko@47: #undef shl_load melunko@47: melunko@47: /* Override any gcc2 internal prototype to avoid an error. */ melunko@47: #ifdef __cplusplus melunko@47: extern "C" melunko@47: { melunko@47: #endif melunko@47: /* We use char because int might match the return type of a gcc2 melunko@47: builtin and then its argument prototype would still apply. */ melunko@47: char shl_load (); melunko@47: /* The GNU C library defines this for functions which it implements melunko@47: to always fail with ENOSYS. Some functions are actually named melunko@47: something starting with __ and the normal name is an alias. */ melunko@47: #if defined (__stub_shl_load) || defined (__stub___shl_load) melunko@47: choke me melunko@47: #else melunko@47: char (*f) () = shl_load; melunko@47: #endif melunko@47: #ifdef __cplusplus melunko@47: } melunko@47: #endif melunko@47: melunko@47: int melunko@47: main () melunko@47: { melunko@47: return f != shl_load; melunko@47: ; melunko@47: return 0; melunko@47: } melunko@47: _ACEOF melunko@47: rm -f conftest.$ac_objext conftest$ac_exeext melunko@47: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 melunko@47: (eval $ac_link) 2>conftest.er1 melunko@47: ac_status=$? melunko@47: grep -v '^ *+' conftest.er1 >conftest.err melunko@47: rm -f conftest.er1 melunko@47: cat conftest.err >&5 melunko@47: echo "$as_me:$LINENO: \$? = $ac_status" >&5 melunko@47: (exit $ac_status); } && melunko@47: { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' melunko@47: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 melunko@47: (eval $ac_try) 2>&5 melunko@47: ac_status=$? melunko@47: echo "$as_me:$LINENO: \$? = $ac_status" >&5 melunko@47: (exit $ac_status); }; } && melunko@47: { ac_try='test -s conftest$ac_exeext' melunko@47: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 melunko@47: (eval $ac_try) 2>&5 melunko@47: ac_status=$? melunko@47: echo "$as_me:$LINENO: \$? = $ac_status" >&5 melunko@47: (exit $ac_status); }; }; then melunko@47: ac_cv_func_shl_load=yes melunko@47: else melunko@47: echo "$as_me: failed program was:" >&5 melunko@47: sed 's/^/| /' conftest.$ac_ext >&5 melunko@47: melunko@47: ac_cv_func_shl_load=no melunko@47: fi melunko@47: rm -f conftest.err conftest.$ac_objext \ melunko@47: conftest$ac_exeext conftest.$ac_ext melunko@47: fi melunko@47: echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 melunko@47: echo "${ECHO_T}$ac_cv_func_shl_load" >&6 melunko@47: if test $ac_cv_func_shl_load = yes; then melunko@47: lt_cv_dlopen="shl_load" melunko@47: else melunko@47: echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 melunko@47: echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 melunko@47: if test "${ac_cv_lib_dld_shl_load+set}" = set; then melunko@47: echo $ECHO_N "(cached) $ECHO_C" >&6 melunko@47: else melunko@47: ac_check_lib_save_LIBS=$LIBS melunko@47: LIBS="-ldld $LIBS" melunko@47: cat >conftest.$ac_ext <<_ACEOF melunko@47: /* confdefs.h. */ melunko@47: _ACEOF melunko@47: cat confdefs.h >>conftest.$ac_ext melunko@47: cat >>conftest.$ac_ext <<_ACEOF melunko@47: /* end confdefs.h. */ melunko@47: melunko@47: /* Override any gcc2 internal prototype to avoid an error. */ melunko@47: #ifdef __cplusplus melunko@47: extern "C" melunko@47: #endif melunko@47: /* We use char because int might match the return type of a gcc2 melunko@47: builtin and then its argument prototype would still apply. */ melunko@47: char shl_load (); melunko@47: int melunko@47: main () melunko@47: { melunko@47: shl_load (); melunko@47: ; melunko@47: return 0; melunko@47: } melunko@47: _ACEOF melunko@47: rm -f conftest.$ac_objext conftest$ac_exeext melunko@47: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 melunko@47: (eval $ac_link) 2>conftest.er1 melunko@47: ac_status=$? melunko@47: grep -v '^ *+' conftest.er1 >conftest.err melunko@47: rm -f conftest.er1 melunko@47: cat conftest.err >&5 melunko@47: echo "$as_me:$LINENO: \$? = $ac_status" >&5 melunko@47: (exit $ac_status); } && melunko@47: { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' melunko@47: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 melunko@47: (eval $ac_try) 2>&5 melunko@47: ac_status=$? melunko@47: echo "$as_me:$LINENO: \$? = $ac_status" >&5 melunko@47: (exit $ac_status); }; } && melunko@47: { ac_try='test -s conftest$ac_exeext' melunko@47: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 melunko@47: (eval $ac_try) 2>&5 melunko@47: ac_status=$? melunko@47: echo "$as_me:$LINENO: \$? = $ac_status" >&5 melunko@47: (exit $ac_status); }; }; then melunko@47: ac_cv_lib_dld_shl_load=yes melunko@47: else melunko@47: echo "$as_me: failed program was:" >&5 melunko@47: sed 's/^/| /' conftest.$ac_ext >&5 melunko@47: melunko@47: ac_cv_lib_dld_shl_load=no melunko@47: fi melunko@47: rm -f conftest.err conftest.$ac_objext \ melunko@47: conftest$ac_exeext conftest.$ac_ext melunko@47: LIBS=$ac_check_lib_save_LIBS melunko@47: fi melunko@47: echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 melunko@47: echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 melunko@47: if test $ac_cv_lib_dld_shl_load = yes; then melunko@47: lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" melunko@47: else melunko@47: echo "$as_me:$LINENO: checking for dlopen" >&5 melunko@47: echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 melunko@47: if test "${ac_cv_func_dlopen+set}" = set; then melunko@47: echo $ECHO_N "(cached) $ECHO_C" >&6 melunko@47: else melunko@47: cat >conftest.$ac_ext <<_ACEOF melunko@47: /* confdefs.h. */ melunko@47: _ACEOF melunko@47: cat confdefs.h >>conftest.$ac_ext melunko@47: cat >>conftest.$ac_ext <<_ACEOF melunko@47: /* end confdefs.h. */ melunko@47: /* Define dlopen to an innocuous variant, in case declares dlopen. melunko@47: For example, HP-UX 11i declares gettimeofday. */ melunko@47: #define dlopen innocuous_dlopen melunko@47: melunko@47: /* System header to define __stub macros and hopefully few prototypes, melunko@47: which can conflict with char dlopen (); below. melunko@47: Prefer to if __STDC__ is defined, since melunko@47: exists even on freestanding compilers. */ melunko@47: melunko@47: #ifdef __STDC__ melunko@47: # include melunko@47: #else melunko@47: # include melunko@47: #endif melunko@47: melunko@47: #undef dlopen melunko@47: melunko@47: /* Override any gcc2 internal prototype to avoid an error. */ melunko@47: #ifdef __cplusplus melunko@47: extern "C" melunko@47: { melunko@47: #endif melunko@47: /* We use char because int might match the return type of a gcc2 melunko@47: builtin and then its argument prototype would still apply. */ melunko@47: char dlopen (); melunko@47: /* The GNU C library defines this for functions which it implements melunko@47: to always fail with ENOSYS. Some functions are actually named melunko@47: something starting with __ and the normal name is an alias. */ melunko@47: #if defined (__stub_dlopen) || defined (__stub___dlopen) melunko@47: choke me melunko@47: #else melunko@47: char (*f) () = dlopen; melunko@47: #endif melunko@47: #ifdef __cplusplus melunko@47: } melunko@47: #endif melunko@47: melunko@47: int melunko@47: main () melunko@47: { melunko@47: return f != dlopen; melunko@47: ; melunko@47: return 0; melunko@47: } melunko@47: _ACEOF melunko@47: rm -f conftest.$ac_objext conftest$ac_exeext melunko@47: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 melunko@47: (eval $ac_link) 2>conftest.er1 melunko@47: ac_status=$? melunko@47: grep -v '^ *+' conftest.er1 >conftest.err melunko@47: rm -f conftest.er1 melunko@47: cat conftest.err >&5 melunko@47: echo "$as_me:$LINENO: \$? = $ac_status" >&5 melunko@47: (exit $ac_status); } && melunko@47: { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' melunko@47: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 melunko@47: (eval $ac_try) 2>&5 melunko@47: ac_status=$? melunko@47: echo "$as_me:$LINENO: \$? = $ac_status" >&5 melunko@47: (exit $ac_status); }; } && melunko@47: { ac_try='test -s conftest$ac_exeext' melunko@47: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 melunko@47: (eval $ac_try) 2>&5 melunko@47: ac_status=$? melunko@47: echo "$as_me:$LINENO: \$? = $ac_status" >&5 melunko@47: (exit $ac_status); }; }; then melunko@47: ac_cv_func_dlopen=yes melunko@47: else melunko@47: echo "$as_me: failed program was:" >&5 melunko@47: sed 's/^/| /' conftest.$ac_ext >&5 melunko@47: melunko@47: ac_cv_func_dlopen=no melunko@47: fi melunko@47: rm -f conftest.err conftest.$ac_objext \ melunko@47: conftest$ac_exeext conftest.$ac_ext melunko@47: fi melunko@47: echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 melunko@47: echo "${ECHO_T}$ac_cv_func_dlopen" >&6 melunko@47: if test $ac_cv_func_dlopen = yes; then melunko@47: lt_cv_dlopen="dlopen" melunko@47: else melunko@47: echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 melunko@47: echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 melunko@47: if test "${ac_cv_lib_dl_dlopen+set}" = set; then melunko@47: echo $ECHO_N "(cached) $ECHO_C" >&6 melunko@47: else melunko@47: ac_check_lib_save_LIBS=$LIBS melunko@47: LIBS="-ldl $LIBS" melunko@47: cat >conftest.$ac_ext <<_ACEOF melunko@47: /* confdefs.h. */ melunko@47: _ACEOF melunko@47: cat confdefs.h >>conftest.$ac_ext melunko@47: cat >>conftest.$ac_ext <<_ACEOF melunko@47: /* end confdefs.h. */ melunko@47: melunko@47: /* Override any gcc2 internal prototype to avoid an error. */ melunko@47: #ifdef __cplusplus melunko@47: extern "C" melunko@47: #endif melunko@47: /* We use char because int might match the return type of a gcc2 melunko@47: builtin and then its argument prototype would still apply. */ melunko@47: char dlopen (); melunko@47: int melunko@47: main () melunko@47: { melunko@47: dlopen (); melunko@47: ; melunko@47: return 0; melunko@47: } melunko@47: _ACEOF melunko@47: rm -f conftest.$ac_objext conftest$ac_exeext melunko@47: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 melunko@47: (eval $ac_link) 2>conftest.er1 melunko@47: ac_status=$? melunko@47: grep -v '^ *+' conftest.er1 >conftest.err melunko@47: rm -f conftest.er1 melunko@47: cat conftest.err >&5 melunko@47: echo "$as_me:$LINENO: \$? = $ac_status" >&5 melunko@47: (exit $ac_status); } && melunko@47: { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' melunko@47: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 melunko@47: (eval $ac_try) 2>&5 melunko@47: ac_status=$? melunko@47: echo "$as_me:$LINENO: \$? = $ac_status" >&5 melunko@47: (exit $ac_status); }; } && melunko@47: { ac_try='test -s conftest$ac_exeext' melunko@47: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 melunko@47: (eval $ac_try) 2>&5 melunko@47: ac_status=$? melunko@47: echo "$as_me:$LINENO: \$? = $ac_status" >&5 melunko@47: (exit $ac_status); }; }; then melunko@47: ac_cv_lib_dl_dlopen=yes melunko@47: else melunko@47: echo "$as_me: failed program was:" >&5 melunko@47: sed 's/^/| /' conftest.$ac_ext >&5 melunko@47: melunko@47: ac_cv_lib_dl_dlopen=no melunko@47: fi melunko@47: rm -f conftest.err conftest.$ac_objext \ melunko@47: conftest$ac_exeext conftest.$ac_ext melunko@47: LIBS=$ac_check_lib_save_LIBS melunko@47: fi melunko@47: echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 melunko@47: echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 melunko@47: if test $ac_cv_lib_dl_dlopen = yes; then melunko@47: lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" melunko@47: else melunko@47: echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 melunko@47: echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 melunko@47: if test "${ac_cv_lib_svld_dlopen+set}" = set; then melunko@47: echo $ECHO_N "(cached) $ECHO_C" >&6 melunko@47: else melunko@47: ac_check_lib_save_LIBS=$LIBS melunko@47: LIBS="-lsvld $LIBS" melunko@47: cat >conftest.$ac_ext <<_ACEOF melunko@47: /* confdefs.h. */ melunko@47: _ACEOF melunko@47: cat confdefs.h >>conftest.$ac_ext melunko@47: cat >>conftest.$ac_ext <<_ACEOF melunko@47: /* end confdefs.h. */ melunko@47: melunko@47: /* Override any gcc2 internal prototype to avoid an error. */ melunko@47: #ifdef __cplusplus melunko@47: extern "C" melunko@47: #endif melunko@47: /* We use char because int might match the return type of a gcc2 melunko@47: builtin and then its argument prototype would still apply. */ melunko@47: char dlopen (); melunko@47: int melunko@47: main () melunko@47: { melunko@47: dlopen (); melunko@47: ; melunko@47: return 0; melunko@47: } melunko@47: _ACEOF melunko@47: rm -f conftest.$ac_objext conftest$ac_exeext melunko@47: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 melunko@47: (eval $ac_link) 2>conftest.er1 melunko@47: ac_status=$? melunko@47: grep -v '^ *+' conftest.er1 >conftest.err melunko@47: rm -f conftest.er1 melunko@47: cat conftest.err >&5 melunko@47: echo "$as_me:$LINENO: \$? = $ac_status" >&5 melunko@47: (exit $ac_status); } && melunko@47: { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' melunko@47: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 melunko@47: (eval $ac_try) 2>&5 melunko@47: ac_status=$? melunko@47: echo "$as_me:$LINENO: \$? = $ac_status" >&5 melunko@47: (exit $ac_status); }; } && melunko@47: { ac_try='test -s conftest$ac_exeext' melunko@47: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 melunko@47: (eval $ac_try) 2>&5 melunko@47: ac_status=$? melunko@47: echo "$as_me:$LINENO: \$? = $ac_status" >&5 melunko@47: (exit $ac_status); }; }; then melunko@47: ac_cv_lib_svld_dlopen=yes melunko@47: else melunko@47: echo "$as_me: failed program was:" >&5 melunko@47: sed 's/^/| /' conftest.$ac_ext >&5 melunko@47: melunko@47: ac_cv_lib_svld_dlopen=no melunko@47: fi melunko@47: rm -f conftest.err conftest.$ac_objext \ melunko@47: conftest$ac_exeext conftest.$ac_ext melunko@47: LIBS=$ac_check_lib_save_LIBS melunko@47: fi melunko@47: echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 melunko@47: echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 melunko@47: if test $ac_cv_lib_svld_dlopen = yes; then melunko@47: lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" melunko@47: else melunko@47: echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 melunko@47: echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 melunko@47: if test "${ac_cv_lib_dld_dld_link+set}" = set; then melunko@47: echo $ECHO_N "(cached) $ECHO_C" >&6 melunko@47: else melunko@47: ac_check_lib_save_LIBS=$LIBS melunko@47: LIBS="-ldld $LIBS" melunko@47: cat >conftest.$ac_ext <<_ACEOF melunko@47: /* confdefs.h. */ melunko@47: _ACEOF melunko@47: cat confdefs.h >>conftest.$ac_ext melunko@47: cat >>conftest.$ac_ext <<_ACEOF melunko@47: /* end confdefs.h. */ melunko@47: melunko@47: /* Override any gcc2 internal prototype to avoid an error. */ melunko@47: #ifdef __cplusplus melunko@47: extern "C" melunko@47: #endif melunko@47: /* We use char because int might match the return type of a gcc2 melunko@47: builtin and then its argument prototype would still apply. */ melunko@47: char dld_link (); melunko@47: int melunko@47: main () melunko@47: { melunko@47: dld_link (); melunko@47: ; melunko@47: return 0; melunko@47: } melunko@47: _ACEOF melunko@47: rm -f conftest.$ac_objext conftest$ac_exeext melunko@47: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 melunko@47: (eval $ac_link) 2>conftest.er1 melunko@47: ac_status=$? melunko@47: grep -v '^ *+' conftest.er1 >conftest.err melunko@47: rm -f conftest.er1 melunko@47: cat conftest.err >&5 melunko@47: echo "$as_me:$LINENO: \$? = $ac_status" >&5 melunko@47: (exit $ac_status); } && melunko@47: { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' melunko@47: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 melunko@47: (eval $ac_try) 2>&5 melunko@47: ac_status=$? melunko@47: echo "$as_me:$LINENO: \$? = $ac_status" >&5 melunko@47: (exit $ac_status); }; } && melunko@47: { ac_try='test -s conftest$ac_exeext' melunko@47: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 melunko@47: (eval $ac_try) 2>&5 melunko@47: ac_status=$? melunko@47: echo "$as_me:$LINENO: \$? = $ac_status" >&5 melunko@47: (exit $ac_status); }; }; then melunko@47: ac_cv_lib_dld_dld_link=yes melunko@47: else melunko@47: echo "$as_me: failed program was:" >&5 melunko@47: sed 's/^/| /' conftest.$ac_ext >&5 melunko@47: melunko@47: ac_cv_lib_dld_dld_link=no melunko@47: fi melunko@47: rm -f conftest.err conftest.$ac_objext \ melunko@47: conftest$ac_exeext conftest.$ac_ext melunko@47: LIBS=$ac_check_lib_save_LIBS melunko@47: fi melunko@47: echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 melunko@47: echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 melunko@47: if test $ac_cv_lib_dld_dld_link = yes; then melunko@47: lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" melunko@47: fi melunko@47: melunko@47: melunko@47: fi melunko@47: melunko@47: melunko@47: fi melunko@47: melunko@47: melunko@47: fi melunko@47: melunko@47: melunko@47: fi melunko@47: melunko@47: melunko@47: fi melunko@47: melunko@47: ;; melunko@47: esac melunko@47: melunko@47: if test "x$lt_cv_dlopen" != xno; then melunko@47: enable_dlopen=yes melunko@47: else melunko@47: enable_dlopen=no melunko@47: fi melunko@47: melunko@47: case $lt_cv_dlopen in melunko@47: dlopen) melunko@47: save_CPPFLAGS="$CPPFLAGS" melunko@47: test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" melunko@47: melunko@47: save_LDFLAGS="$LDFLAGS" melunko@47: eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" melunko@47: melunko@47: save_LIBS="$LIBS" melunko@47: LIBS="$lt_cv_dlopen_libs $LIBS" melunko@47: melunko@47: echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 melunko@47: echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 melunko@47: if test "${lt_cv_dlopen_self+set}" = set; then melunko@47: echo $ECHO_N "(cached) $ECHO_C" >&6 melunko@47: else melunko@47: if test "$cross_compiling" = yes; then : melunko@47: lt_cv_dlopen_self=cross melunko@47: else melunko@47: lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 melunko@47: lt_status=$lt_dlunknown melunko@47: cat > conftest.$ac_ext < melunko@47: #endif melunko@47: melunko@47: #include melunko@47: melunko@47: #ifdef RTLD_GLOBAL melunko@47: # define LT_DLGLOBAL RTLD_GLOBAL melunko@47: #else melunko@47: # ifdef DL_GLOBAL melunko@47: # define LT_DLGLOBAL DL_GLOBAL melunko@47: # else melunko@47: # define LT_DLGLOBAL 0 melunko@47: # endif melunko@47: #endif melunko@47: melunko@47: /* We may have to define LT_DLLAZY_OR_NOW in the command line if we melunko@47: find out it does not work in some platform. */ melunko@47: #ifndef LT_DLLAZY_OR_NOW melunko@47: # ifdef RTLD_LAZY melunko@47: # define LT_DLLAZY_OR_NOW RTLD_LAZY melunko@47: # else melunko@47: # ifdef DL_LAZY melunko@47: # define LT_DLLAZY_OR_NOW DL_LAZY melunko@47: # else melunko@47: # ifdef RTLD_NOW melunko@47: # define LT_DLLAZY_OR_NOW RTLD_NOW melunko@47: # else melunko@47: # ifdef DL_NOW melunko@47: # define LT_DLLAZY_OR_NOW DL_NOW melunko@47: # else melunko@47: # define LT_DLLAZY_OR_NOW 0 melunko@47: # endif melunko@47: # endif melunko@47: # endif melunko@47: # endif melunko@47: #endif melunko@47: melunko@47: #ifdef __cplusplus melunko@47: extern "C" void exit (int); melunko@47: #endif melunko@47: melunko@47: void fnord() { int i=42;} melunko@47: int main () melunko@47: { melunko@47: void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); melunko@47: int status = $lt_dlunknown; melunko@47: melunko@47: if (self) melunko@47: { melunko@47: if (dlsym (self,"fnord")) status = $lt_dlno_uscore; melunko@47: else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; melunko@47: /* dlclose (self); */ melunko@47: } melunko@47: melunko@47: exit (status); melunko@47: } melunko@47: EOF melunko@47: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 melunko@47: (eval $ac_link) 2>&5 melunko@47: ac_status=$? melunko@47: echo "$as_me:$LINENO: \$? = $ac_status" >&5 melunko@47: (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then melunko@47: (./conftest; exit; ) >&5 2>/dev/null melunko@47: lt_status=$? melunko@47: case x$lt_status in melunko@47: x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; melunko@47: x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; melunko@47: x$lt_unknown|x*) lt_cv_dlopen_self=no ;; melunko@47: esac melunko@47: else : melunko@47: # compilation failed melunko@47: lt_cv_dlopen_self=no melunko@47: fi melunko@47: fi melunko@47: rm -fr conftest* melunko@47: melunko@47: melunko@47: fi melunko@47: echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 melunko@47: echo "${ECHO_T}$lt_cv_dlopen_self" >&6 melunko@47: melunko@47: if test "x$lt_cv_dlopen_self" = xyes; then melunko@47: LDFLAGS="$LDFLAGS $link_static_flag" melunko@47: echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 melunko@47: echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 melunko@47: if test "${lt_cv_dlopen_self_static+set}" = set; then melunko@47: echo $ECHO_N "(cached) $ECHO_C" >&6 melunko@47: else melunko@47: if test "$cross_compiling" = yes; then : melunko@47: lt_cv_dlopen_self_static=cross melunko@47: else melunko@47: lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 melunko@47: lt_status=$lt_dlunknown melunko@47: cat > conftest.$ac_ext < melunko@47: #endif melunko@47: melunko@47: #include melunko@47: melunko@47: #ifdef RTLD_GLOBAL melunko@47: # define LT_DLGLOBAL RTLD_GLOBAL melunko@47: #else melunko@47: # ifdef DL_GLOBAL melunko@47: # define LT_DLGLOBAL DL_GLOBAL melunko@47: # else melunko@47: # define LT_DLGLOBAL 0 melunko@47: # endif melunko@47: #endif melunko@47: melunko@47: /* We may have to define LT_DLLAZY_OR_NOW in the command line if we melunko@47: find out it does not work in some platform. */ melunko@47: #ifndef LT_DLLAZY_OR_NOW melunko@47: # ifdef RTLD_LAZY melunko@47: # define LT_DLLAZY_OR_NOW RTLD_LAZY melunko@47: # else melunko@47: # ifdef DL_LAZY melunko@47: # define LT_DLLAZY_OR_NOW DL_LAZY melunko@47: # else melunko@47: # ifdef RTLD_NOW melunko@47: # define LT_DLLAZY_OR_NOW RTLD_NOW melunko@47: # else melunko@47: # ifdef DL_NOW melunko@47: # define LT_DLLAZY_OR_NOW DL_NOW melunko@47: # else melunko@47: # define LT_DLLAZY_OR_NOW 0 melunko@47: # endif melunko@47: # endif melunko@47: # endif melunko@47: # endif melunko@47: #endif melunko@47: melunko@47: #ifdef __cplusplus melunko@47: extern "C" void exit (int); melunko@47: #endif melunko@47: melunko@47: void fnord() { int i=42;} melunko@47: int main () melunko@47: { melunko@47: void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); melunko@47: int status = $lt_dlunknown; melunko@47: melunko@47: if (self) melunko@47: { melunko@47: if (dlsym (self,"fnord")) status = $lt_dlno_uscore; melunko@47: else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; melunko@47: /* dlclose (self); */ melunko@47: } melunko@47: melunko@47: exit (status); melunko@47: } melunko@47: EOF melunko@47: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 melunko@47: (eval $ac_link) 2>&5 melunko@47: ac_status=$? melunko@47: echo "$as_me:$LINENO: \$? = $ac_status" >&5 melunko@47: (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then melunko@47: (./conftest; exit; ) >&5 2>/dev/null melunko@47: lt_status=$? melunko@47: case x$lt_status in melunko@47: x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; melunko@47: x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; melunko@47: x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;; melunko@47: esac melunko@47: else : melunko@47: # compilation failed melunko@47: lt_cv_dlopen_self_static=no melunko@47: fi melunko@47: fi melunko@47: rm -fr conftest* melunko@47: melunko@47: melunko@47: fi melunko@47: echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 melunko@47: echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 melunko@47: fi melunko@47: melunko@47: CPPFLAGS="$save_CPPFLAGS" melunko@47: LDFLAGS="$save_LDFLAGS" melunko@47: LIBS="$save_LIBS" melunko@47: ;; melunko@47: esac melunko@47: melunko@47: case $lt_cv_dlopen_self in melunko@47: yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; melunko@47: *) enable_dlopen_self=unknown ;; melunko@47: esac melunko@47: melunko@47: case $lt_cv_dlopen_self_static in melunko@47: yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; melunko@47: *) enable_dlopen_self_static=unknown ;; melunko@47: esac melunko@47: fi melunko@47: melunko@47: melunko@47: # The else clause should only fire when bootstrapping the melunko@47: # libtool distribution, otherwise you forgot to ship ltmain.sh melunko@47: # with your package, and you will get complaints that there are melunko@47: # no rules to generate ltmain.sh. melunko@47: if test -f "$ltmain"; then melunko@47: # See if we are running on zsh, and set the options which allow our commands through melunko@47: # without removal of \ escapes. melunko@47: if test -n "${ZSH_VERSION+set}" ; then melunko@47: setopt NO_GLOB_SUBST melunko@47: fi melunko@47: # Now quote all the things that may contain metacharacters while being melunko@47: # careful not to overquote the AC_SUBSTed values. We take copies of the melunko@47: # variables and quote the copies for generation of the libtool script. melunko@47: for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ melunko@47: SED SHELL STRIP \ melunko@47: libname_spec library_names_spec soname_spec extract_expsyms_cmds \ melunko@47: old_striplib striplib file_magic_cmd finish_cmds finish_eval \ melunko@47: deplibs_check_method reload_flag reload_cmds need_locks \ melunko@47: lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ melunko@47: lt_cv_sys_global_symbol_to_c_name_address \ melunko@47: sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ melunko@47: old_postinstall_cmds old_postuninstall_cmds \ melunko@47: compiler_CXX \ melunko@47: CC_CXX \ melunko@47: LD_CXX \ melunko@47: lt_prog_compiler_wl_CXX \ melunko@47: lt_prog_compiler_pic_CXX \ melunko@47: lt_prog_compiler_static_CXX \ melunko@47: lt_prog_compiler_no_builtin_flag_CXX \ melunko@47: export_dynamic_flag_spec_CXX \ melunko@47: thread_safe_flag_spec_CXX \ melunko@47: whole_archive_flag_spec_CXX \ melunko@47: enable_shared_with_static_runtimes_CXX \ melunko@47: old_archive_cmds_CXX \ melunko@47: old_archive_from_new_cmds_CXX \ melunko@47: predep_objects_CXX \ melunko@47: postdep_objects_CXX \ melunko@47: predeps_CXX \ melunko@47: postdeps_CXX \ melunko@47: compiler_lib_search_path_CXX \ melunko@47: archive_cmds_CXX \ melunko@47: archive_expsym_cmds_CXX \ melunko@47: postinstall_cmds_CXX \ melunko@47: postuninstall_cmds_CXX \ melunko@47: old_archive_from_expsyms_cmds_CXX \ melunko@47: allow_undefined_flag_CXX \ melunko@47: no_undefined_flag_CXX \ melunko@47: export_symbols_cmds_CXX \ melunko@47: hardcode_libdir_flag_spec_CXX \ melunko@47: hardcode_libdir_flag_spec_ld_CXX \ melunko@47: hardcode_libdir_separator_CXX \ melunko@47: hardcode_automatic_CXX \ melunko@47: module_cmds_CXX \ melunko@47: module_expsym_cmds_CXX \ melunko@47: lt_cv_prog_compiler_c_o_CXX \ melunko@47: exclude_expsyms_CXX \ melunko@47: include_expsyms_CXX; do melunko@47: melunko@47: case $var in melunko@47: old_archive_cmds_CXX | \ melunko@47: old_archive_from_new_cmds_CXX | \ melunko@47: archive_cmds_CXX | \ melunko@47: archive_expsym_cmds_CXX | \ melunko@47: module_cmds_CXX | \ melunko@47: module_expsym_cmds_CXX | \ melunko@47: old_archive_from_expsyms_cmds_CXX | \ melunko@47: export_symbols_cmds_CXX | \ melunko@47: extract_expsyms_cmds | reload_cmds | finish_cmds | \ melunko@47: postinstall_cmds | postuninstall_cmds | \ melunko@47: old_postinstall_cmds | old_postuninstall_cmds | \ melunko@47: sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) melunko@47: # Double-quote double-evaled strings. melunko@47: eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" melunko@47: ;; melunko@47: *) melunko@47: eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" melunko@47: ;; melunko@47: esac melunko@47: done melunko@47: melunko@47: case $lt_echo in melunko@47: *'\$0 --fallback-echo"') melunko@47: lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` melunko@47: ;; melunko@47: esac melunko@47: melunko@47: cfgfile="$ofile" melunko@47: melunko@47: cat <<__EOF__ >> "$cfgfile" melunko@47: # ### BEGIN LIBTOOL TAG CONFIG: $tagname melunko@47: melunko@47: # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: melunko@47: melunko@47: # Shell to use when invoking shell scripts. melunko@47: SHELL=$lt_SHELL melunko@47: melunko@47: # Whether or not to build shared libraries. melunko@47: build_libtool_libs=$enable_shared melunko@47: melunko@47: # Whether or not to build static libraries. melunko@47: build_old_libs=$enable_static melunko@47: melunko@47: # Whether or not to add -lc for building shared libraries. melunko@47: build_libtool_need_lc=$archive_cmds_need_lc_CXX melunko@47: melunko@47: # Whether or not to disallow shared libs when runtime libs are static melunko@47: allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX melunko@47: melunko@47: # Whether or not to optimize for fast installation. melunko@47: fast_install=$enable_fast_install melunko@47: melunko@47: # The host system. melunko@47: host_alias=$host_alias melunko@47: host=$host melunko@47: host_os=$host_os melunko@47: melunko@47: # The build system. melunko@47: build_alias=$build_alias melunko@47: build=$build melunko@47: build_os=$build_os melunko@47: melunko@47: # An echo program that does not interpret backslashes. melunko@47: echo=$lt_echo melunko@47: melunko@47: # The archiver. melunko@47: AR=$lt_AR melunko@47: AR_FLAGS=$lt_AR_FLAGS melunko@47: melunko@47: # A C compiler. melunko@47: LTCC=$lt_LTCC melunko@47: melunko@47: # A language-specific compiler. melunko@47: CC=$lt_compiler_CXX melunko@47: melunko@47: # Is the compiler the GNU C compiler? melunko@47: with_gcc=$GCC_CXX melunko@47: melunko@47: # An ERE matcher. melunko@47: EGREP=$lt_EGREP melunko@47: melunko@47: # The linker used to build libraries. melunko@47: LD=$lt_LD_CXX melunko@47: melunko@47: # Whether we need hard or soft links. melunko@47: LN_S=$lt_LN_S melunko@47: melunko@47: # A BSD-compatible nm program. melunko@47: NM=$lt_NM melunko@47: melunko@47: # A symbol stripping program melunko@47: STRIP=$lt_STRIP melunko@47: melunko@47: # Used to examine libraries when file_magic_cmd begins "file" melunko@47: MAGIC_CMD=$MAGIC_CMD melunko@47: melunko@47: # Used on cygwin: DLL creation program. melunko@47: DLLTOOL="$DLLTOOL" melunko@47: melunko@47: # Used on cygwin: object dumper. melunko@47: OBJDUMP="$OBJDUMP" melunko@47: melunko@47: # Used on cygwin: assembler. melunko@47: AS="$AS" melunko@47: melunko@47: # The name of the directory that contains temporary libtool files. melunko@47: objdir=$objdir melunko@47: melunko@47: # How to create reloadable object files. melunko@47: reload_flag=$lt_reload_flag melunko@47: reload_cmds=$lt_reload_cmds melunko@47: melunko@47: # How to pass a linker flag through the compiler. melunko@47: wl=$lt_lt_prog_compiler_wl_CXX melunko@47: melunko@47: # Object file suffix (normally "o"). melunko@47: objext="$ac_objext" melunko@47: melunko@47: # Old archive suffix (normally "a"). melunko@47: libext="$libext" melunko@47: melunko@47: # Shared library suffix (normally ".so"). melunko@47: shrext_cmds='$shrext_cmds' melunko@47: melunko@47: # Executable file suffix (normally ""). melunko@47: exeext="$exeext" melunko@47: melunko@47: # Additional compiler flags for building library objects. melunko@47: pic_flag=$lt_lt_prog_compiler_pic_CXX melunko@47: pic_mode=$pic_mode melunko@47: melunko@47: # What is the maximum length of a command? melunko@47: max_cmd_len=$lt_cv_sys_max_cmd_len melunko@47: melunko@47: # Does compiler simultaneously support -c and -o options? melunko@47: compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX melunko@47: melunko@47: # Must we lock files when doing compilation? melunko@47: need_locks=$lt_need_locks melunko@47: melunko@47: # Do we need the lib prefix for modules? melunko@47: need_lib_prefix=$need_lib_prefix melunko@47: melunko@47: # Do we need a version for libraries? melunko@47: need_version=$need_version melunko@47: melunko@47: # Whether dlopen is supported. melunko@47: dlopen_support=$enable_dlopen melunko@47: melunko@47: # Whether dlopen of programs is supported. melunko@47: dlopen_self=$enable_dlopen_self melunko@47: melunko@47: # Whether dlopen of statically linked programs is supported. melunko@47: dlopen_self_static=$enable_dlopen_self_static melunko@47: melunko@47: # Compiler flag to prevent dynamic linking. melunko@47: link_static_flag=$lt_lt_prog_compiler_static_CXX melunko@47: melunko@47: # Compiler flag to turn off builtin functions. melunko@47: no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX melunko@47: melunko@47: # Compiler flag to allow reflexive dlopens. melunko@47: export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX melunko@47: melunko@47: # Compiler flag to generate shared objects directly from archives. melunko@47: whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX melunko@47: melunko@47: # Compiler flag to generate thread-safe objects. melunko@47: thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX melunko@47: melunko@47: # Library versioning type. melunko@47: version_type=$version_type melunko@47: melunko@47: # Format of library name prefix. melunko@47: libname_spec=$lt_libname_spec melunko@47: melunko@47: # List of archive names. First name is the real one, the rest are links. melunko@47: # The last name is the one that the linker finds with -lNAME. melunko@47: library_names_spec=$lt_library_names_spec melunko@47: melunko@47: # The coded name of the library, if different from the real name. melunko@47: soname_spec=$lt_soname_spec melunko@47: melunko@47: # Commands used to build and install an old-style archive. melunko@47: RANLIB=$lt_RANLIB melunko@47: old_archive_cmds=$lt_old_archive_cmds_CXX melunko@47: old_postinstall_cmds=$lt_old_postinstall_cmds melunko@47: old_postuninstall_cmds=$lt_old_postuninstall_cmds melunko@47: melunko@47: # Create an old-style archive from a shared archive. melunko@47: old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX melunko@47: melunko@47: # Create a temporary old-style archive to link instead of a shared archive. melunko@47: old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX melunko@47: melunko@47: # Commands used to build and install a shared archive. melunko@47: archive_cmds=$lt_archive_cmds_CXX melunko@47: archive_expsym_cmds=$lt_archive_expsym_cmds_CXX melunko@47: postinstall_cmds=$lt_postinstall_cmds melunko@47: postuninstall_cmds=$lt_postuninstall_cmds melunko@47: melunko@47: # Commands used to build a loadable module (assumed same as above if empty) melunko@47: module_cmds=$lt_module_cmds_CXX melunko@47: module_expsym_cmds=$lt_module_expsym_cmds_CXX melunko@47: melunko@47: # Commands to strip libraries. melunko@47: old_striplib=$lt_old_striplib melunko@47: striplib=$lt_striplib melunko@47: melunko@47: # Dependencies to place before the objects being linked to create a melunko@47: # shared library. melunko@47: predep_objects=$lt_predep_objects_CXX melunko@47: melunko@47: # Dependencies to place after the objects being linked to create a melunko@47: # shared library. melunko@47: postdep_objects=$lt_postdep_objects_CXX melunko@47: melunko@47: # Dependencies to place before the objects being linked to create a melunko@47: # shared library. melunko@47: predeps=$lt_predeps_CXX melunko@47: melunko@47: # Dependencies to place after the objects being linked to create a melunko@47: # shared library. melunko@47: postdeps=$lt_postdeps_CXX melunko@47: melunko@47: # The library search path used internally by the compiler when linking melunko@47: # a shared library. melunko@47: compiler_lib_search_path=$lt_compiler_lib_search_path_CXX melunko@47: melunko@47: # Method to check whether dependent libraries are shared objects. melunko@47: deplibs_check_method=$lt_deplibs_check_method melunko@47: melunko@47: # Command to use when deplibs_check_method == file_magic. melunko@47: file_magic_cmd=$lt_file_magic_cmd melunko@47: melunko@47: # Flag that allows shared libraries with undefined symbols to be built. melunko@47: allow_undefined_flag=$lt_allow_undefined_flag_CXX melunko@47: melunko@47: # Flag that forces no undefined symbols. melunko@47: no_undefined_flag=$lt_no_undefined_flag_CXX melunko@47: melunko@47: # Commands used to finish a libtool library installation in a directory. melunko@47: finish_cmds=$lt_finish_cmds melunko@47: melunko@47: # Same as above, but a single script fragment to be evaled but not shown. melunko@47: finish_eval=$lt_finish_eval melunko@47: melunko@47: # Take the output of nm and produce a listing of raw symbols and C names. melunko@47: global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe melunko@47: melunko@47: # Transform the output of nm in a proper C declaration melunko@47: global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl melunko@47: melunko@47: # Transform the output of nm in a C name address pair melunko@47: global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address melunko@47: melunko@47: # This is the shared library runtime path variable. melunko@47: runpath_var=$runpath_var melunko@47: melunko@47: # This is the shared library path variable. melunko@47: shlibpath_var=$shlibpath_var melunko@47: melunko@47: # Is shlibpath searched before the hard-coded library search path? melunko@47: shlibpath_overrides_runpath=$shlibpath_overrides_runpath melunko@47: melunko@47: # How to hardcode a shared library path into an executable. melunko@47: hardcode_action=$hardcode_action_CXX melunko@47: melunko@47: # Whether we should hardcode library paths into libraries. melunko@47: hardcode_into_libs=$hardcode_into_libs melunko@47: melunko@47: # Flag to hardcode \$libdir into a binary during linking. melunko@47: # This must work even if \$libdir does not exist. melunko@47: hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX melunko@47: melunko@47: # If ld is used when linking, flag to hardcode \$libdir into melunko@47: # a binary during linking. This must work even if \$libdir does melunko@47: # not exist. melunko@47: hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX melunko@47: melunko@47: # Whether we need a single -rpath flag with a separated argument. melunko@47: hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX melunko@47: melunko@47: # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the melunko@47: # resulting binary. melunko@47: hardcode_direct=$hardcode_direct_CXX melunko@47: melunko@47: # Set to yes if using the -LDIR flag during linking hardcodes DIR into the melunko@47: # resulting binary. melunko@47: hardcode_minus_L=$hardcode_minus_L_CXX melunko@47: melunko@47: # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into melunko@47: # the resulting binary. melunko@47: hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX melunko@47: melunko@47: # Set to yes if building a shared library automatically hardcodes DIR into the library melunko@47: # and all subsequent libraries and executables linked against it. melunko@47: hardcode_automatic=$hardcode_automatic_CXX melunko@47: melunko@47: # Variables whose values should be saved in libtool wrapper scripts and melunko@47: # restored at relink time. melunko@47: variables_saved_for_relink="$variables_saved_for_relink" melunko@47: melunko@47: # Whether libtool must link a program against all its dependency libraries. melunko@47: link_all_deplibs=$link_all_deplibs_CXX melunko@47: melunko@47: # Compile-time system search path for libraries melunko@47: sys_lib_search_path_spec=$lt_sys_lib_search_path_spec melunko@47: melunko@47: # Run-time system search path for libraries melunko@47: sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec melunko@47: melunko@47: # Fix the shell variable \$srcfile for the compiler. melunko@47: fix_srcfile_path="$fix_srcfile_path_CXX" melunko@47: melunko@47: # Set to yes if exported symbols are required. melunko@47: always_export_symbols=$always_export_symbols_CXX melunko@47: melunko@47: # The commands to list exported symbols. melunko@47: export_symbols_cmds=$lt_export_symbols_cmds_CXX melunko@47: melunko@47: # The commands to extract the exported symbol list from a shared archive. melunko@47: extract_expsyms_cmds=$lt_extract_expsyms_cmds melunko@47: melunko@47: # Symbols that should not be listed in the preloaded symbols. melunko@47: exclude_expsyms=$lt_exclude_expsyms_CXX melunko@47: melunko@47: # Symbols that must always be exported. melunko@47: include_expsyms=$lt_include_expsyms_CXX melunko@47: melunko@47: # ### END LIBTOOL TAG CONFIG: $tagname melunko@47: melunko@47: __EOF__ melunko@47: melunko@47: melunko@47: else melunko@47: # If there is no Makefile yet, we rely on a make rule to execute melunko@47: # `config.status --recheck' to rerun these tests and create the melunko@47: # libtool script then. melunko@47: ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` melunko@47: if test -f "$ltmain_in"; then melunko@47: test -f Makefile && make "$ltmain" melunko@47: fi melunko@47: fi melunko@47: melunko@47: melunko@47: ac_ext=c melunko@47: ac_cpp='$CPP $CPPFLAGS' melunko@47: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' melunko@47: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' melunko@47: ac_compiler_gnu=$ac_cv_c_compiler_gnu melunko@47: melunko@47: CC=$lt_save_CC melunko@47: LDCXX=$LD melunko@47: LD=$lt_save_LD melunko@47: GCC=$lt_save_GCC melunko@47: with_gnu_ldcxx=$with_gnu_ld melunko@47: with_gnu_ld=$lt_save_with_gnu_ld melunko@47: lt_cv_path_LDCXX=$lt_cv_path_LD melunko@47: lt_cv_path_LD=$lt_save_path_LD melunko@47: lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld melunko@47: lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld melunko@47: melunko@47: else melunko@47: tagname="" melunko@47: fi melunko@47: ;; melunko@47: melunko@47: F77) melunko@47: if test -n "$F77" && test "X$F77" != "Xno"; then melunko@47: melunko@47: ac_ext=f melunko@47: ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' melunko@47: ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' melunko@47: ac_compiler_gnu=$ac_cv_f77_compiler_gnu melunko@47: melunko@47: melunko@47: archive_cmds_need_lc_F77=no melunko@47: allow_undefined_flag_F77= melunko@47: always_export_symbols_F77=no melunko@47: archive_expsym_cmds_F77= melunko@47: export_dynamic_flag_spec_F77= melunko@47: hardcode_direct_F77=no melunko@47: hardcode_libdir_flag_spec_F77= melunko@47: hardcode_libdir_flag_spec_ld_F77= melunko@47: hardcode_libdir_separator_F77= melunko@47: hardcode_minus_L_F77=no melunko@47: hardcode_automatic_F77=no melunko@47: module_cmds_F77= melunko@47: module_expsym_cmds_F77= melunko@47: link_all_deplibs_F77=unknown melunko@47: old_archive_cmds_F77=$old_archive_cmds melunko@47: no_undefined_flag_F77= melunko@47: whole_archive_flag_spec_F77= melunko@47: enable_shared_with_static_runtimes_F77=no melunko@47: melunko@47: # Source file extension for f77 test sources. melunko@47: ac_ext=f melunko@47: melunko@47: # Object file extension for compiled f77 test sources. melunko@47: objext=o melunko@47: objext_F77=$objext melunko@47: melunko@47: # Code to be used in simple compile tests melunko@47: lt_simple_compile_test_code=" subroutine t\n return\n end\n" melunko@47: melunko@47: # Code to be used in simple link tests melunko@47: lt_simple_link_test_code=" program t\n end\n" melunko@47: melunko@47: # ltmain only uses $CC for tagged configurations so make sure $CC is set. melunko@47: melunko@47: # If no C compiler was specified, use CC. melunko@47: LTCC=${LTCC-"$CC"} melunko@47: melunko@47: # Allow CC to be a program name with arguments. melunko@47: compiler=$CC melunko@47: melunko@47: melunko@47: # save warnings/boilerplate of simple test code melunko@47: ac_outfile=conftest.$ac_objext melunko@47: printf "$lt_simple_compile_test_code" >conftest.$ac_ext melunko@47: eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err melunko@47: _lt_compiler_boilerplate=`cat conftest.err` melunko@47: $rm conftest* melunko@47: melunko@47: ac_outfile=conftest.$ac_objext melunko@47: printf "$lt_simple_link_test_code" >conftest.$ac_ext melunko@47: eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err melunko@47: _lt_linker_boilerplate=`cat conftest.err` melunko@47: $rm conftest* melunko@47: melunko@47: melunko@47: # Allow CC to be a program name with arguments. melunko@47: lt_save_CC="$CC" melunko@47: CC=${F77-"f77"} melunko@47: compiler=$CC melunko@47: compiler_F77=$CC melunko@47: for cc_temp in $compiler""; do melunko@47: case $cc_temp in melunko@47: compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; melunko@47: distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; melunko@47: \-*) ;; melunko@47: *) break;; melunko@47: esac melunko@47: done melunko@47: cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` melunko@47: melunko@47: melunko@47: echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 melunko@47: echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6 melunko@47: echo "$as_me:$LINENO: result: $can_build_shared" >&5 melunko@47: echo "${ECHO_T}$can_build_shared" >&6 melunko@47: melunko@47: echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 melunko@47: echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6 melunko@47: test "$can_build_shared" = "no" && enable_shared=no melunko@47: melunko@47: # On AIX, shared libraries and static libraries use the same namespace, and melunko@47: # are all built from PIC. melunko@47: case $host_os in melunko@47: aix3*) melunko@47: test "$enable_shared" = yes && enable_static=no melunko@47: if test -n "$RANLIB"; then melunko@47: archive_cmds="$archive_cmds~\$RANLIB \$lib" melunko@47: postinstall_cmds='$RANLIB $lib' melunko@47: fi melunko@47: ;; melunko@47: aix4* | aix5*) melunko@47: if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then melunko@47: test "$enable_shared" = yes && enable_static=no melunko@47: fi melunko@47: ;; melunko@47: esac melunko@47: echo "$as_me:$LINENO: result: $enable_shared" >&5 melunko@47: echo "${ECHO_T}$enable_shared" >&6 melunko@47: melunko@47: echo "$as_me:$LINENO: checking whether to build static libraries" >&5 melunko@47: echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6 melunko@47: # Make sure either enable_shared or enable_static is yes. melunko@47: test "$enable_shared" = yes || enable_static=yes melunko@47: echo "$as_me:$LINENO: result: $enable_static" >&5 melunko@47: echo "${ECHO_T}$enable_static" >&6 melunko@47: melunko@47: test "$ld_shlibs_F77" = no && can_build_shared=no melunko@47: melunko@47: GCC_F77="$G77" melunko@47: LD_F77="$LD" melunko@47: melunko@47: lt_prog_compiler_wl_F77= melunko@47: lt_prog_compiler_pic_F77= melunko@47: lt_prog_compiler_static_F77= melunko@47: melunko@47: echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 melunko@47: echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 melunko@47: melunko@47: if test "$GCC" = yes; then melunko@47: lt_prog_compiler_wl_F77='-Wl,' melunko@47: lt_prog_compiler_static_F77='-static' melunko@47: melunko@47: case $host_os in melunko@47: aix*) melunko@47: # All AIX code is PIC. melunko@47: if test "$host_cpu" = ia64; then melunko@47: # AIX 5 now supports IA64 processor melunko@47: lt_prog_compiler_static_F77='-Bstatic' melunko@47: fi melunko@47: ;; melunko@47: melunko@47: amigaos*) melunko@47: # FIXME: we need at least 68020 code to build shared libraries, but melunko@47: # adding the `-m68020' flag to GCC prevents building anything better, melunko@47: # like `-m68040'. melunko@47: lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4' melunko@47: ;; melunko@47: melunko@47: beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) melunko@47: # PIC is the default for these OSes. melunko@47: ;; melunko@47: melunko@47: mingw* | pw32* | os2*) melunko@47: # This hack is so that the source file can tell whether it is being melunko@47: # built for inclusion in a dll (and should export symbols for example). melunko@47: lt_prog_compiler_pic_F77='-DDLL_EXPORT' melunko@47: ;; melunko@47: melunko@47: darwin* | rhapsody*) melunko@47: # PIC is the default on this platform melunko@47: # Common symbols not allowed in MH_DYLIB files melunko@47: lt_prog_compiler_pic_F77='-fno-common' melunko@47: ;; melunko@47: melunko@47: msdosdjgpp*) melunko@47: # Just because we use GCC doesn't mean we suddenly get shared libraries melunko@47: # on systems that don't support them. melunko@47: lt_prog_compiler_can_build_shared_F77=no melunko@47: enable_shared=no melunko@47: ;; melunko@47: melunko@47: sysv4*MP*) melunko@47: if test -d /usr/nec; then melunko@47: lt_prog_compiler_pic_F77=-Kconform_pic melunko@47: fi melunko@47: ;; melunko@47: melunko@47: hpux*) melunko@47: # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but melunko@47: # not for PA HP-UX. melunko@47: case $host_cpu in melunko@47: hppa*64*|ia64*) melunko@47: # +Z the default melunko@47: ;; melunko@47: *) melunko@47: lt_prog_compiler_pic_F77='-fPIC' melunko@47: ;; melunko@47: esac melunko@47: ;; melunko@47: melunko@47: *) melunko@47: lt_prog_compiler_pic_F77='-fPIC' melunko@47: ;; melunko@47: esac melunko@47: else melunko@47: # PORTME Check for flag to pass linker flags through the system compiler. melunko@47: case $host_os in melunko@47: aix*) melunko@47: lt_prog_compiler_wl_F77='-Wl,' melunko@47: if test "$host_cpu" = ia64; then melunko@47: # AIX 5 now supports IA64 processor melunko@47: lt_prog_compiler_static_F77='-Bstatic' melunko@47: else melunko@47: lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp' melunko@47: fi melunko@47: ;; melunko@47: darwin*) melunko@47: # PIC is the default on this platform melunko@47: # Common symbols not allowed in MH_DYLIB files melunko@47: case $cc_basename in melunko@47: xlc*) melunko@47: lt_prog_compiler_pic_F77='-qnocommon' melunko@47: lt_prog_compiler_wl_F77='-Wl,' melunko@47: ;; melunko@47: esac melunko@47: ;; melunko@47: melunko@47: mingw* | pw32* | os2*) melunko@47: # This hack is so that the source file can tell whether it is being melunko@47: # built for inclusion in a dll (and should export symbols for example). melunko@47: lt_prog_compiler_pic_F77='-DDLL_EXPORT' melunko@47: ;; melunko@47: melunko@47: hpux9* | hpux10* | hpux11*) melunko@47: lt_prog_compiler_wl_F77='-Wl,' melunko@47: # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but melunko@47: # not for PA HP-UX. melunko@47: case $host_cpu in melunko@47: hppa*64*|ia64*) melunko@47: # +Z the default melunko@47: ;; melunko@47: *) melunko@47: lt_prog_compiler_pic_F77='+Z' melunko@47: ;; melunko@47: esac melunko@47: # Is there a better lt_prog_compiler_static that works with the bundled CC? melunko@47: lt_prog_compiler_static_F77='${wl}-a ${wl}archive' melunko@47: ;; melunko@47: melunko@47: irix5* | irix6* | nonstopux*) melunko@47: lt_prog_compiler_wl_F77='-Wl,' melunko@47: # PIC (with -KPIC) is the default. melunko@47: lt_prog_compiler_static_F77='-non_shared' melunko@47: ;; melunko@47: melunko@47: newsos6) melunko@47: lt_prog_compiler_pic_F77='-KPIC' melunko@47: lt_prog_compiler_static_F77='-Bstatic' melunko@47: ;; melunko@47: melunko@47: linux*) melunko@47: case $cc_basename in melunko@47: icc* | ecc*) melunko@47: lt_prog_compiler_wl_F77='-Wl,' melunko@47: lt_prog_compiler_pic_F77='-KPIC' melunko@47: lt_prog_compiler_static_F77='-static' melunko@47: ;; melunko@47: pgcc* | pgf77* | pgf90* | pgf95*) melunko@47: # Portland Group compilers (*not* the Pentium gcc compiler, melunko@47: # which looks to be a dead project) melunko@47: lt_prog_compiler_wl_F77='-Wl,' melunko@47: lt_prog_compiler_pic_F77='-fpic' melunko@47: lt_prog_compiler_static_F77='-Bstatic' melunko@47: ;; melunko@47: ccc*) melunko@47: lt_prog_compiler_wl_F77='-Wl,' melunko@47: # All Alpha code is PIC. melunko@47: lt_prog_compiler_static_F77='-non_shared' melunko@47: ;; melunko@47: esac melunko@47: ;; melunko@47: melunko@47: osf3* | osf4* | osf5*) melunko@47: lt_prog_compiler_wl_F77='-Wl,' melunko@47: # All OSF/1 code is PIC. melunko@47: lt_prog_compiler_static_F77='-non_shared' melunko@47: ;; melunko@47: melunko@47: sco3.2v5*) melunko@47: lt_prog_compiler_pic_F77='-Kpic' melunko@47: lt_prog_compiler_static_F77='-dn' melunko@47: ;; melunko@47: melunko@47: solaris*) melunko@47: lt_prog_compiler_pic_F77='-KPIC' melunko@47: lt_prog_compiler_static_F77='-Bstatic' melunko@47: case $cc_basename in melunko@47: f77* | f90* | f95*) melunko@47: lt_prog_compiler_wl_F77='-Qoption ld ';; melunko@47: *) melunko@47: lt_prog_compiler_wl_F77='-Wl,';; melunko@47: esac melunko@47: ;; melunko@47: melunko@47: sunos4*) melunko@47: lt_prog_compiler_wl_F77='-Qoption ld ' melunko@47: lt_prog_compiler_pic_F77='-PIC' melunko@47: lt_prog_compiler_static_F77='-Bstatic' melunko@47: ;; melunko@47: melunko@47: sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) melunko@47: lt_prog_compiler_wl_F77='-Wl,' melunko@47: lt_prog_compiler_pic_F77='-KPIC' melunko@47: lt_prog_compiler_static_F77='-Bstatic' melunko@47: ;; melunko@47: melunko@47: sysv4*MP*) melunko@47: if test -d /usr/nec ;then melunko@47: lt_prog_compiler_pic_F77='-Kconform_pic' melunko@47: lt_prog_compiler_static_F77='-Bstatic' melunko@47: fi melunko@47: ;; melunko@47: melunko@47: unicos*) melunko@47: lt_prog_compiler_wl_F77='-Wl,' melunko@47: lt_prog_compiler_can_build_shared_F77=no melunko@47: ;; melunko@47: melunko@47: uts4*) melunko@47: lt_prog_compiler_pic_F77='-pic' melunko@47: lt_prog_compiler_static_F77='-Bstatic' melunko@47: ;; melunko@47: melunko@47: *) melunko@47: lt_prog_compiler_can_build_shared_F77=no melunko@47: ;; melunko@47: esac melunko@47: fi melunko@47: melunko@47: echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5 melunko@47: echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6 melunko@47: melunko@47: # melunko@47: # Check to make sure the PIC flag actually works. melunko@47: # melunko@47: if test -n "$lt_prog_compiler_pic_F77"; then melunko@47: melunko@47: echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5 melunko@47: echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6 melunko@47: if test "${lt_prog_compiler_pic_works_F77+set}" = set; then melunko@47: echo $ECHO_N "(cached) $ECHO_C" >&6 melunko@47: else melunko@47: lt_prog_compiler_pic_works_F77=no melunko@47: ac_outfile=conftest.$ac_objext melunko@47: printf "$lt_simple_compile_test_code" > conftest.$ac_ext melunko@47: lt_compiler_flag="$lt_prog_compiler_pic_F77" melunko@47: # Insert the option either (1) after the last *FLAGS variable, or melunko@47: # (2) before a word containing "conftest.", or (3) at the end. melunko@47: # Note that $ac_compile itself does not contain backslashes and begins melunko@47: # with a dollar sign (not a hyphen), so the echo should work correctly. melunko@47: # The option is referenced via a variable to avoid confusing sed. melunko@47: lt_compile=`echo "$ac_compile" | $SED \ melunko@47: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ melunko@47: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ melunko@47: -e 's:$: $lt_compiler_flag:'` melunko@47: (eval echo "\"\$as_me:13756: $lt_compile\"" >&5) melunko@47: (eval "$lt_compile" 2>conftest.err) melunko@47: ac_status=$? melunko@47: cat conftest.err >&5 melunko@47: echo "$as_me:13760: \$? = $ac_status" >&5 melunko@47: if (exit $ac_status) && test -s "$ac_outfile"; then melunko@47: # The compiler can only warn and ignore the option if not recognized melunko@47: # So say no if there are warnings other than the usual output. melunko@47: $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp melunko@47: $SED '/^$/d' conftest.err >conftest.er2 melunko@47: if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then melunko@47: lt_prog_compiler_pic_works_F77=yes melunko@47: fi melunko@47: fi melunko@47: $rm conftest* melunko@47: melunko@47: fi melunko@47: echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5 melunko@47: echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6 melunko@47: melunko@47: if test x"$lt_prog_compiler_pic_works_F77" = xyes; then melunko@47: case $lt_prog_compiler_pic_F77 in melunko@47: "" | " "*) ;; melunko@47: *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;; melunko@47: esac melunko@47: else melunko@47: lt_prog_compiler_pic_F77= melunko@47: lt_prog_compiler_can_build_shared_F77=no melunko@47: fi melunko@47: melunko@47: fi melunko@47: case $host_os in melunko@47: # For platforms which do not support PIC, -DPIC is meaningless: melunko@47: *djgpp*) melunko@47: lt_prog_compiler_pic_F77= melunko@47: ;; melunko@47: *) melunko@47: lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77" melunko@47: ;; melunko@47: esac melunko@47: melunko@47: echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 melunko@47: echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 melunko@47: if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then melunko@47: echo $ECHO_N "(cached) $ECHO_C" >&6 melunko@47: else melunko@47: lt_cv_prog_compiler_c_o_F77=no melunko@47: $rm -r conftest 2>/dev/null melunko@47: mkdir conftest melunko@47: cd conftest melunko@47: mkdir out melunko@47: printf "$lt_simple_compile_test_code" > conftest.$ac_ext melunko@47: melunko@47: lt_compiler_flag="-o out/conftest2.$ac_objext" melunko@47: # Insert the option either (1) after the last *FLAGS variable, or melunko@47: # (2) before a word containing "conftest.", or (3) at the end. melunko@47: # Note that $ac_compile itself does not contain backslashes and begins melunko@47: # with a dollar sign (not a hyphen), so the echo should work correctly. melunko@47: lt_compile=`echo "$ac_compile" | $SED \ melunko@47: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ melunko@47: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ melunko@47: -e 's:$: $lt_compiler_flag:'` melunko@47: (eval echo "\"\$as_me:13818: $lt_compile\"" >&5) melunko@47: (eval "$lt_compile" 2>out/conftest.err) melunko@47: ac_status=$? melunko@47: cat out/conftest.err >&5 melunko@47: echo "$as_me:13822: \$? = $ac_status" >&5 melunko@47: if (exit $ac_status) && test -s out/conftest2.$ac_objext melunko@47: then melunko@47: # The compiler can only warn and ignore the option if not recognized melunko@47: # So say no if there are warnings melunko@47: $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp melunko@47: $SED '/^$/d' out/conftest.err >out/conftest.er2 melunko@47: if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then melunko@47: lt_cv_prog_compiler_c_o_F77=yes melunko@47: fi melunko@47: fi melunko@47: chmod u+w . 2>&5 melunko@47: $rm conftest* melunko@47: # SGI C++ compiler will create directory out/ii_files/ for melunko@47: # template instantiation melunko@47: test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files melunko@47: $rm out/* && rmdir out melunko@47: cd .. melunko@47: rmdir conftest melunko@47: $rm conftest* melunko@47: melunko@47: fi melunko@47: echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5 melunko@47: echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6 melunko@47: melunko@47: melunko@47: hard_links="nottested" melunko@47: if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then melunko@47: # do not overwrite the value of need_locks provided by the user melunko@47: echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 melunko@47: echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 melunko@47: hard_links=yes melunko@47: $rm conftest* melunko@47: ln conftest.a conftest.b 2>/dev/null && hard_links=no melunko@47: touch conftest.a melunko@47: ln conftest.a conftest.b 2>&5 || hard_links=no melunko@47: ln conftest.a conftest.b 2>/dev/null && hard_links=no melunko@47: echo "$as_me:$LINENO: result: $hard_links" >&5 melunko@47: echo "${ECHO_T}$hard_links" >&6 melunko@47: if test "$hard_links" = no; then melunko@47: { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 melunko@47: echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} melunko@47: need_locks=warn melunko@47: fi melunko@47: else melunko@47: need_locks=no melunko@47: fi melunko@47: melunko@47: echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 melunko@47: echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 melunko@47: melunko@47: runpath_var= melunko@47: allow_undefined_flag_F77= melunko@47: enable_shared_with_static_runtimes_F77=no melunko@47: archive_cmds_F77= melunko@47: archive_expsym_cmds_F77= melunko@47: old_archive_From_new_cmds_F77= melunko@47: old_archive_from_expsyms_cmds_F77= melunko@47: export_dynamic_flag_spec_F77= melunko@47: whole_archive_flag_spec_F77= melunko@47: thread_safe_flag_spec_F77= melunko@47: hardcode_libdir_flag_spec_F77= melunko@47: hardcode_libdir_flag_spec_ld_F77= melunko@47: hardcode_libdir_separator_F77= melunko@47: hardcode_direct_F77=no melunko@47: hardcode_minus_L_F77=no melunko@47: hardcode_shlibpath_var_F77=unsupported melunko@47: link_all_deplibs_F77=unknown melunko@47: hardcode_automatic_F77=no melunko@47: module_cmds_F77= melunko@47: module_expsym_cmds_F77= melunko@47: always_export_symbols_F77=no melunko@47: export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' melunko@47: # include_expsyms should be a list of space-separated symbols to be *always* melunko@47: # included in the symbol list melunko@47: include_expsyms_F77= melunko@47: # exclude_expsyms can be an extended regexp of symbols to exclude melunko@47: # it will be wrapped by ` (' and `)$', so one must not match beginning or melunko@47: # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', melunko@47: # as well as any symbol that contains `d'. melunko@47: exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_" melunko@47: # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out melunko@47: # platforms (ab)use it in PIC code, but their linkers get confused if melunko@47: # the symbol is explicitly referenced. Since portable code cannot melunko@47: # rely on this symbol name, it's probably fine to never include it in melunko@47: # preloaded symbol tables. melunko@47: extract_expsyms_cmds= melunko@47: # Just being paranoid about ensuring that cc_basename is set. melunko@47: for cc_temp in $compiler""; do melunko@47: case $cc_temp in melunko@47: compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; melunko@47: distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; melunko@47: \-*) ;; melunko@47: *) break;; melunko@47: esac melunko@47: done melunko@47: cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` melunko@47: melunko@47: case $host_os in melunko@47: cygwin* | mingw* | pw32*) melunko@47: # FIXME: the MSVC++ port hasn't been tested in a loooong time melunko@47: # When not using gcc, we currently assume that we are using melunko@47: # Microsoft Visual C++. melunko@47: if test "$GCC" != yes; then melunko@47: with_gnu_ld=no melunko@47: fi melunko@47: ;; melunko@47: openbsd*) melunko@47: with_gnu_ld=no melunko@47: ;; melunko@47: esac melunko@47: melunko@47: ld_shlibs_F77=yes melunko@47: if test "$with_gnu_ld" = yes; then melunko@47: # If archive_cmds runs LD, not CC, wlarc should be empty melunko@47: wlarc='${wl}' melunko@47: melunko@47: # Set some defaults for GNU ld with shared library support. These melunko@47: # are reset later if shared libraries are not supported. Putting them melunko@47: # here allows them to be overridden if necessary. melunko@47: runpath_var=LD_RUN_PATH melunko@47: hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir' melunko@47: export_dynamic_flag_spec_F77='${wl}--export-dynamic' melunko@47: # ancient GNU ld didn't support --whole-archive et. al. melunko@47: if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then melunko@47: whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' melunko@47: else melunko@47: whole_archive_flag_spec_F77= melunko@47: fi melunko@47: supports_anon_versioning=no melunko@47: case `$LD -v 2>/dev/null` in melunko@47: *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 melunko@47: *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... melunko@47: *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... melunko@47: *\ 2.11.*) ;; # other 2.11 versions melunko@47: *) supports_anon_versioning=yes ;; melunko@47: esac melunko@47: melunko@47: # See if GNU ld supports shared libraries. melunko@47: case $host_os in melunko@47: aix3* | aix4* | aix5*) melunko@47: # On AIX/PPC, the GNU linker is very broken melunko@47: if test "$host_cpu" != ia64; then melunko@47: ld_shlibs_F77=no melunko@47: cat <&2 melunko@47: melunko@47: *** Warning: the GNU linker, at least up to release 2.9.1, is reported melunko@47: *** to be unable to reliably create shared libraries on AIX. melunko@47: *** Therefore, libtool is disabling shared libraries support. If you melunko@47: *** really care for shared libraries, you may want to modify your PATH melunko@47: *** so that a non-GNU linker is found, and then restart. melunko@47: melunko@47: EOF melunko@47: fi melunko@47: ;; melunko@47: melunko@47: amigaos*) melunko@47: 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)' melunko@47: hardcode_libdir_flag_spec_F77='-L$libdir' melunko@47: hardcode_minus_L_F77=yes melunko@47: melunko@47: # Samuel A. Falvo II reports melunko@47: # that the semantics of dynamic libraries on AmigaOS, at least up melunko@47: # to version 4, is to share data among multiple programs linked melunko@47: # with the same dynamic library. Since this doesn't match the melunko@47: # behavior of shared libraries on other platforms, we can't use melunko@47: # them. melunko@47: ld_shlibs_F77=no melunko@47: ;; melunko@47: melunko@47: beos*) melunko@47: if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then melunko@47: allow_undefined_flag_F77=unsupported melunko@47: # Joseph Beckenbach says some releases of gcc melunko@47: # support --undefined. This deserves some investigation. FIXME melunko@47: archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' melunko@47: else melunko@47: ld_shlibs_F77=no melunko@47: fi melunko@47: ;; melunko@47: melunko@47: cygwin* | mingw* | pw32*) melunko@47: # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless, melunko@47: # as there is no search path for DLLs. melunko@47: hardcode_libdir_flag_spec_F77='-L$libdir' melunko@47: allow_undefined_flag_F77=unsupported melunko@47: always_export_symbols_F77=no melunko@47: enable_shared_with_static_runtimes_F77=yes melunko@47: export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' melunko@47: melunko@47: if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then melunko@47: archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' melunko@47: # If the export-symbols file already is a .def file (1st line melunko@47: # is EXPORTS), use it as is; otherwise, prepend... melunko@47: archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then melunko@47: cp $export_symbols $output_objdir/$soname.def; melunko@47: else melunko@47: echo EXPORTS > $output_objdir/$soname.def; melunko@47: cat $export_symbols >> $output_objdir/$soname.def; melunko@47: fi~ melunko@47: $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' melunko@47: else melunko@47: ld_shlibs_F77=no melunko@47: fi melunko@47: ;; melunko@47: melunko@47: linux*) melunko@47: if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then melunko@47: tmp_addflag= melunko@47: case $cc_basename,$host_cpu in melunko@47: pgcc*) # Portland Group C compiler melunko@47: whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' melunko@47: tmp_addflag=' $pic_flag' melunko@47: ;; melunko@47: pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers melunko@47: whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' melunko@47: tmp_addflag=' $pic_flag -Mnomain' ;; melunko@47: ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 melunko@47: tmp_addflag=' -i_dynamic' ;; melunko@47: efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 melunko@47: tmp_addflag=' -i_dynamic -nofor_main' ;; melunko@47: ifc* | ifort*) # Intel Fortran compiler melunko@47: tmp_addflag=' -nofor_main' ;; melunko@47: esac melunko@47: archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' melunko@47: melunko@47: if test $supports_anon_versioning = yes; then melunko@47: archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~ melunko@47: cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ melunko@47: $echo "local: *; };" >> $output_objdir/$libname.ver~ melunko@47: $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' melunko@47: fi melunko@47: else melunko@47: ld_shlibs_F77=no melunko@47: fi melunko@47: ;; melunko@47: melunko@47: netbsd*) melunko@47: if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then melunko@47: archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' melunko@47: wlarc= melunko@47: else melunko@47: archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' melunko@47: archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' melunko@47: fi melunko@47: ;; melunko@47: melunko@47: solaris* | sysv5*) melunko@47: if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then melunko@47: ld_shlibs_F77=no melunko@47: cat <&2 melunko@47: melunko@47: *** Warning: The releases 2.8.* of the GNU linker cannot reliably melunko@47: *** create shared libraries on Solaris systems. Therefore, libtool melunko@47: *** is disabling shared libraries support. We urge you to upgrade GNU melunko@47: *** binutils to release 2.9.1 or newer. Another option is to modify melunko@47: *** your PATH or compiler configuration so that the native linker is melunko@47: *** used, and then restart. melunko@47: melunko@47: EOF melunko@47: elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then melunko@47: archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' melunko@47: archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' melunko@47: else melunko@47: ld_shlibs_F77=no melunko@47: fi melunko@47: ;; melunko@47: melunko@47: sunos4*) melunko@47: archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' melunko@47: wlarc= melunko@47: hardcode_direct_F77=yes melunko@47: hardcode_shlibpath_var_F77=no melunko@47: ;; melunko@47: melunko@47: *) melunko@47: if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then melunko@47: archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' melunko@47: archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' melunko@47: else melunko@47: ld_shlibs_F77=no melunko@47: fi melunko@47: ;; melunko@47: esac melunko@47: melunko@47: if test "$ld_shlibs_F77" = no; then melunko@47: runpath_var= melunko@47: hardcode_libdir_flag_spec_F77= melunko@47: export_dynamic_flag_spec_F77= melunko@47: whole_archive_flag_spec_F77= melunko@47: fi melunko@47: else melunko@47: # PORTME fill in a description of your system's linker (not GNU ld) melunko@47: case $host_os in melunko@47: aix3*) melunko@47: allow_undefined_flag_F77=unsupported melunko@47: always_export_symbols_F77=yes melunko@47: 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' melunko@47: # Note: this linker hardcodes the directories in LIBPATH if there melunko@47: # are no directories specified by -L. melunko@47: hardcode_minus_L_F77=yes melunko@47: if test "$GCC" = yes && test -z "$link_static_flag"; then melunko@47: # Neither direct hardcoding nor static linking is supported with a melunko@47: # broken collect2. melunko@47: hardcode_direct_F77=unsupported melunko@47: fi melunko@47: ;; melunko@47: melunko@47: aix4* | aix5*) melunko@47: if test "$host_cpu" = ia64; then melunko@47: # On IA64, the linker does run time linking by default, so we don't melunko@47: # have to do anything special. melunko@47: aix_use_runtimelinking=no melunko@47: exp_sym_flag='-Bexport' melunko@47: no_entry_flag="" melunko@47: else melunko@47: # If we're using GNU nm, then we don't want the "-C" option. melunko@47: # -C means demangle to AIX nm, but means don't demangle with GNU nm melunko@47: if $NM -V 2>&1 | grep 'GNU' > /dev/null; then melunko@47: 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' melunko@47: else melunko@47: 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' melunko@47: fi melunko@47: aix_use_runtimelinking=no melunko@47: melunko@47: # Test if we are trying to use run time linking or normal melunko@47: # AIX style linking. If -brtl is somewhere in LDFLAGS, we melunko@47: # need to do runtime linking. melunko@47: case $host_os in aix4.[23]|aix4.[23].*|aix5*) melunko@47: for ld_flag in $LDFLAGS; do melunko@47: if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then melunko@47: aix_use_runtimelinking=yes melunko@47: break melunko@47: fi melunko@47: done melunko@47: esac melunko@47: melunko@47: exp_sym_flag='-bexport' melunko@47: no_entry_flag='-bnoentry' melunko@47: fi melunko@47: melunko@47: # When large executables or shared objects are built, AIX ld can melunko@47: # have problems creating the table of contents. If linking a library melunko@47: # or program results in "error TOC overflow" add -mminimal-toc to melunko@47: # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not melunko@47: # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. melunko@47: melunko@47: archive_cmds_F77='' melunko@47: hardcode_direct_F77=yes melunko@47: hardcode_libdir_separator_F77=':' melunko@47: link_all_deplibs_F77=yes melunko@47: melunko@47: if test "$GCC" = yes; then melunko@47: case $host_os in aix4.[012]|aix4.[012].*) melunko@47: # We only want to do this on AIX 4.2 and lower, the check melunko@47: # below for broken collect2 doesn't work under 4.3+ melunko@47: collect2name=`${CC} -print-prog-name=collect2` melunko@47: if test -f "$collect2name" && \ melunko@47: strings "$collect2name" | grep resolve_lib_name >/dev/null melunko@47: then melunko@47: # We have reworked collect2 melunko@47: hardcode_direct_F77=yes melunko@47: else melunko@47: # We have old collect2 melunko@47: hardcode_direct_F77=unsupported melunko@47: # It fails to find uninstalled libraries when the uninstalled melunko@47: # path is not listed in the libpath. Setting hardcode_minus_L melunko@47: # to unsupported forces relinking melunko@47: hardcode_minus_L_F77=yes melunko@47: hardcode_libdir_flag_spec_F77='-L$libdir' melunko@47: hardcode_libdir_separator_F77= melunko@47: fi melunko@47: esac melunko@47: shared_flag='-shared' melunko@47: if test "$aix_use_runtimelinking" = yes; then melunko@47: shared_flag="$shared_flag "'${wl}-G' melunko@47: fi melunko@47: else melunko@47: # not using gcc melunko@47: if test "$host_cpu" = ia64; then melunko@47: # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release melunko@47: # chokes on -Wl,-G. The following line is correct: melunko@47: shared_flag='-G' melunko@47: else melunko@47: if test "$aix_use_runtimelinking" = yes; then melunko@47: shared_flag='${wl}-G' melunko@47: else melunko@47: shared_flag='${wl}-bM:SRE' melunko@47: fi melunko@47: fi melunko@47: fi melunko@47: melunko@47: # It seems that -bexpall does not export symbols beginning with melunko@47: # underscore (_), so it is better to generate a list of symbols to export. melunko@47: always_export_symbols_F77=yes melunko@47: if test "$aix_use_runtimelinking" = yes; then melunko@47: # Warning - without using the other runtime loading flags (-brtl), melunko@47: # -berok will link without error, but may produce a broken library. melunko@47: allow_undefined_flag_F77='-berok' melunko@47: # Determine the default libpath from the value encoded in an empty executable. melunko@47: cat >conftest.$ac_ext <<_ACEOF melunko@47: program main melunko@47: melunko@47: end melunko@47: _ACEOF melunko@47: rm -f conftest.$ac_objext conftest$ac_exeext melunko@47: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 melunko@47: (eval $ac_link) 2>conftest.er1 melunko@47: ac_status=$? melunko@47: grep -v '^ *+' conftest.er1 >conftest.err melunko@47: rm -f conftest.er1 melunko@47: cat conftest.err >&5 melunko@47: echo "$as_me:$LINENO: \$? = $ac_status" >&5 melunko@47: (exit $ac_status); } && melunko@47: { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err' melunko@47: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 melunko@47: (eval $ac_try) 2>&5 melunko@47: ac_status=$? melunko@47: echo "$as_me:$LINENO: \$? = $ac_status" >&5 melunko@47: (exit $ac_status); }; } && melunko@47: { ac_try='test -s conftest$ac_exeext' melunko@47: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 melunko@47: (eval $ac_try) 2>&5 melunko@47: ac_status=$? melunko@47: echo "$as_me:$LINENO: \$? = $ac_status" >&5 melunko@47: (exit $ac_status); }; }; then melunko@47: melunko@47: aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } melunko@47: }'` melunko@47: # Check for a 64-bit object if we didn't find anything. melunko@47: 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; } melunko@47: }'`; fi melunko@47: else melunko@47: echo "$as_me: failed program was:" >&5 melunko@47: sed 's/^/| /' conftest.$ac_ext >&5 melunko@47: melunko@47: fi melunko@47: rm -f conftest.err conftest.$ac_objext \ melunko@47: conftest$ac_exeext conftest.$ac_ext melunko@47: if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi melunko@47: melunko@47: hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" melunko@47: 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" melunko@47: else melunko@47: if test "$host_cpu" = ia64; then melunko@47: hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib' melunko@47: allow_undefined_flag_F77="-z nodefs" melunko@47: 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" melunko@47: else melunko@47: # Determine the default libpath from the value encoded in an empty executable. melunko@47: cat >conftest.$ac_ext <<_ACEOF melunko@47: program main melunko@47: melunko@47: end melunko@47: _ACEOF melunko@47: rm -f conftest.$ac_objext conftest$ac_exeext melunko@47: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 melunko@47: (eval $ac_link) 2>conftest.er1 melunko@47: ac_status=$? melunko@47: grep -v '^ *+' conftest.er1 >conftest.err melunko@47: rm -f conftest.er1 melunko@47: cat conftest.err >&5 melunko@47: echo "$as_me:$LINENO: \$? = $ac_status" >&5 melunko@47: (exit $ac_status); } && melunko@47: { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err' melunko@47: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 melunko@47: (eval $ac_try) 2>&5 melunko@47: ac_status=$? melunko@47: echo "$as_me:$LINENO: \$? = $ac_status" >&5 melunko@47: (exit $ac_status); }; } && melunko@47: { ac_try='test -s conftest$ac_exeext' melunko@47: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 melunko@47: (eval $ac_try) 2>&5 melunko@47: ac_status=$? melunko@47: echo "$as_me:$LINENO: \$? = $ac_status" >&5 melunko@47: (exit $ac_status); }; }; then melunko@47: melunko@47: aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } melunko@47: }'` melunko@47: # Check for a 64-bit object if we didn't find anything. melunko@47: 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; } melunko@47: }'`; fi melunko@47: else melunko@47: echo "$as_me: failed program was:" >&5 melunko@47: sed 's/^/| /' conftest.$ac_ext >&5 melunko@47: melunko@47: fi melunko@47: rm -f conftest.err conftest.$ac_objext \ melunko@47: conftest$ac_exeext conftest.$ac_ext melunko@47: if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi melunko@47: melunko@47: hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" melunko@47: # Warning - without using the other run time loading flags, melunko@47: # -berok will link without error, but may produce a broken library. melunko@47: no_undefined_flag_F77=' ${wl}-bernotok' melunko@47: allow_undefined_flag_F77=' ${wl}-berok' melunko@47: # -bexpall does not export symbols beginning with underscore (_) melunko@47: always_export_symbols_F77=yes melunko@47: # Exported symbols can be pulled into shared objects from archives melunko@47: whole_archive_flag_spec_F77=' ' melunko@47: archive_cmds_need_lc_F77=yes melunko@47: # This is similar to how AIX traditionally builds its shared libraries. melunko@47: 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' melunko@47: fi melunko@47: fi melunko@47: ;; melunko@47: melunko@47: amigaos*) melunko@47: 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)' melunko@47: hardcode_libdir_flag_spec_F77='-L$libdir' melunko@47: hardcode_minus_L_F77=yes melunko@47: # see comment about different semantics on the GNU ld section melunko@47: ld_shlibs_F77=no melunko@47: ;; melunko@47: melunko@47: bsdi[45]*) melunko@47: export_dynamic_flag_spec_F77=-rdynamic melunko@47: ;; melunko@47: melunko@47: cygwin* | mingw* | pw32*) melunko@47: # When not using gcc, we currently assume that we are using melunko@47: # Microsoft Visual C++. melunko@47: # hardcode_libdir_flag_spec is actually meaningless, as there is melunko@47: # no search path for DLLs. melunko@47: hardcode_libdir_flag_spec_F77=' ' melunko@47: allow_undefined_flag_F77=unsupported melunko@47: # Tell ltmain to make .lib files, not .a files. melunko@47: libext=lib melunko@47: # Tell ltmain to make .dll files, not .so files. melunko@47: shrext_cmds=".dll" melunko@47: # FIXME: Setting linknames here is a bad hack. melunko@47: archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' melunko@47: # The linker will automatically build a .lib file if we build a DLL. melunko@47: old_archive_From_new_cmds_F77='true' melunko@47: # FIXME: Should let the user specify the lib program. melunko@47: old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs' melunko@47: fix_srcfile_path_F77='`cygpath -w "$srcfile"`' melunko@47: enable_shared_with_static_runtimes_F77=yes melunko@47: ;; melunko@47: melunko@47: darwin* | rhapsody*) melunko@47: case $host_os in melunko@47: rhapsody* | darwin1.[012]) melunko@47: allow_undefined_flag_F77='${wl}-undefined ${wl}suppress' melunko@47: ;; melunko@47: *) # Darwin 1.3 on melunko@47: if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then melunko@47: allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' melunko@47: else melunko@47: case ${MACOSX_DEPLOYMENT_TARGET} in melunko@47: 10.[012]) melunko@47: allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' melunko@47: ;; melunko@47: 10.*) melunko@47: allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup' melunko@47: ;; melunko@47: esac melunko@47: fi melunko@47: ;; melunko@47: esac melunko@47: archive_cmds_need_lc_F77=no melunko@47: hardcode_direct_F77=no melunko@47: hardcode_automatic_F77=yes melunko@47: hardcode_shlibpath_var_F77=unsupported melunko@47: whole_archive_flag_spec_F77='' melunko@47: link_all_deplibs_F77=yes melunko@47: if test "$GCC" = yes ; then melunko@47: output_verbose_link_cmd='echo' melunko@47: archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' melunko@47: module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' melunko@47: # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds melunko@47: 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}' melunko@47: 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}' melunko@47: else melunko@47: case $cc_basename in melunko@47: xlc*) melunko@47: output_verbose_link_cmd='echo' melunko@47: archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' melunko@47: module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' melunko@47: # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds melunko@47: 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}' melunko@47: 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}' melunko@47: ;; melunko@47: *) melunko@47: ld_shlibs_F77=no melunko@47: ;; melunko@47: esac melunko@47: fi melunko@47: ;; melunko@47: melunko@47: dgux*) melunko@47: archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' melunko@47: hardcode_libdir_flag_spec_F77='-L$libdir' melunko@47: hardcode_shlibpath_var_F77=no melunko@47: ;; melunko@47: melunko@47: freebsd1*) melunko@47: ld_shlibs_F77=no melunko@47: ;; melunko@47: melunko@47: # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor melunko@47: # support. Future versions do this automatically, but an explicit c++rt0.o melunko@47: # does not break anything, and helps significantly (at the cost of a little melunko@47: # extra space). melunko@47: freebsd2.2*) melunko@47: archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' melunko@47: hardcode_libdir_flag_spec_F77='-R$libdir' melunko@47: hardcode_direct_F77=yes melunko@47: hardcode_shlibpath_var_F77=no melunko@47: ;; melunko@47: melunko@47: # Unfortunately, older versions of FreeBSD 2 do not have this feature. melunko@47: freebsd2*) melunko@47: archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' melunko@47: hardcode_direct_F77=yes melunko@47: hardcode_minus_L_F77=yes melunko@47: hardcode_shlibpath_var_F77=no melunko@47: ;; melunko@47: melunko@47: # FreeBSD 3 and greater uses gcc -shared to do shared libraries. melunko@47: freebsd* | kfreebsd*-gnu | dragonfly*) melunko@47: archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' melunko@47: hardcode_libdir_flag_spec_F77='-R$libdir' melunko@47: hardcode_direct_F77=yes melunko@47: hardcode_shlibpath_var_F77=no melunko@47: ;; melunko@47: melunko@47: hpux9*) melunko@47: if test "$GCC" = yes; then melunko@47: 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' melunko@47: else melunko@47: 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' melunko@47: fi melunko@47: hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' melunko@47: hardcode_libdir_separator_F77=: melunko@47: hardcode_direct_F77=yes melunko@47: melunko@47: # hardcode_minus_L: Not really in the search PATH, melunko@47: # but as the default location of the library. melunko@47: hardcode_minus_L_F77=yes melunko@47: export_dynamic_flag_spec_F77='${wl}-E' melunko@47: ;; melunko@47: melunko@47: hpux10* | hpux11*) melunko@47: if test "$GCC" = yes -a "$with_gnu_ld" = no; then melunko@47: case $host_cpu in melunko@47: hppa*64*|ia64*) melunko@47: archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' melunko@47: ;; melunko@47: *) melunko@47: archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' melunko@47: ;; melunko@47: esac melunko@47: else melunko@47: case $host_cpu in melunko@47: hppa*64*|ia64*) melunko@47: archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags' melunko@47: ;; melunko@47: *) melunko@47: archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' melunko@47: ;; melunko@47: esac melunko@47: fi melunko@47: if test "$with_gnu_ld" = no; then melunko@47: case $host_cpu in melunko@47: hppa*64*) melunko@47: hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' melunko@47: hardcode_libdir_flag_spec_ld_F77='+b $libdir' melunko@47: hardcode_libdir_separator_F77=: melunko@47: hardcode_direct_F77=no melunko@47: hardcode_shlibpath_var_F77=no melunko@47: ;; melunko@47: ia64*) melunko@47: hardcode_libdir_flag_spec_F77='-L$libdir' melunko@47: hardcode_direct_F77=no melunko@47: hardcode_shlibpath_var_F77=no melunko@47: melunko@47: # hardcode_minus_L: Not really in the search PATH, melunko@47: # but as the default location of the library. melunko@47: hardcode_minus_L_F77=yes melunko@47: ;; melunko@47: *) melunko@47: hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' melunko@47: hardcode_libdir_separator_F77=: melunko@47: hardcode_direct_F77=yes melunko@47: export_dynamic_flag_spec_F77='${wl}-E' melunko@47: melunko@47: # hardcode_minus_L: Not really in the search PATH, melunko@47: # but as the default location of the library. melunko@47: hardcode_minus_L_F77=yes melunko@47: ;; melunko@47: esac melunko@47: fi melunko@47: ;; melunko@47: melunko@47: irix5* | irix6* | nonstopux*) melunko@47: if test "$GCC" = yes; then melunko@47: 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' melunko@47: else melunko@47: 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' melunko@47: hardcode_libdir_flag_spec_ld_F77='-rpath $libdir' melunko@47: fi melunko@47: hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' melunko@47: hardcode_libdir_separator_F77=: melunko@47: link_all_deplibs_F77=yes melunko@47: ;; melunko@47: melunko@47: netbsd*) melunko@47: if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then melunko@47: archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out melunko@47: else melunko@47: archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF melunko@47: fi melunko@47: hardcode_libdir_flag_spec_F77='-R$libdir' melunko@47: hardcode_direct_F77=yes melunko@47: hardcode_shlibpath_var_F77=no melunko@47: ;; melunko@47: melunko@47: newsos6) melunko@47: archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' melunko@47: hardcode_direct_F77=yes melunko@47: hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' melunko@47: hardcode_libdir_separator_F77=: melunko@47: hardcode_shlibpath_var_F77=no melunko@47: ;; melunko@47: melunko@47: openbsd*) melunko@47: hardcode_direct_F77=yes melunko@47: hardcode_shlibpath_var_F77=no melunko@47: if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then melunko@47: archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' melunko@47: archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' melunko@47: hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' melunko@47: export_dynamic_flag_spec_F77='${wl}-E' melunko@47: else melunko@47: case $host_os in melunko@47: openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) melunko@47: archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' melunko@47: hardcode_libdir_flag_spec_F77='-R$libdir' melunko@47: ;; melunko@47: *) melunko@47: archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' melunko@47: hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' melunko@47: ;; melunko@47: esac melunko@47: fi melunko@47: ;; melunko@47: melunko@47: os2*) melunko@47: hardcode_libdir_flag_spec_F77='-L$libdir' melunko@47: hardcode_minus_L_F77=yes melunko@47: allow_undefined_flag_F77=unsupported melunko@47: 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' melunko@47: old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' melunko@47: ;; melunko@47: melunko@47: osf3*) melunko@47: if test "$GCC" = yes; then melunko@47: allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' melunko@47: 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' melunko@47: else melunko@47: allow_undefined_flag_F77=' -expect_unresolved \*' melunko@47: 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' melunko@47: fi melunko@47: hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' melunko@47: hardcode_libdir_separator_F77=: melunko@47: ;; melunko@47: melunko@47: osf4* | osf5*) # as osf3* with the addition of -msym flag melunko@47: if test "$GCC" = yes; then melunko@47: allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' melunko@47: 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' melunko@47: hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' melunko@47: else melunko@47: allow_undefined_flag_F77=' -expect_unresolved \*' melunko@47: 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' melunko@47: 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~ melunko@47: $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' melunko@47: melunko@47: # Both c and cxx compiler support -rpath directly melunko@47: hardcode_libdir_flag_spec_F77='-rpath $libdir' melunko@47: fi melunko@47: hardcode_libdir_separator_F77=: melunko@47: ;; melunko@47: melunko@47: sco3.2v5*) melunko@47: archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' melunko@47: hardcode_shlibpath_var_F77=no melunko@47: export_dynamic_flag_spec_F77='${wl}-Bexport' melunko@47: runpath_var=LD_RUN_PATH melunko@47: hardcode_runpath_var=yes melunko@47: ;; melunko@47: melunko@47: solaris*) melunko@47: no_undefined_flag_F77=' -z text' melunko@47: if test "$GCC" = yes; then melunko@47: wlarc='${wl}' melunko@47: archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' melunko@47: archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ melunko@47: $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' melunko@47: else melunko@47: wlarc='' melunko@47: archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' melunko@47: archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ melunko@47: $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' melunko@47: fi melunko@47: hardcode_libdir_flag_spec_F77='-R$libdir' melunko@47: hardcode_shlibpath_var_F77=no melunko@47: case $host_os in melunko@47: solaris2.[0-5] | solaris2.[0-5].*) ;; melunko@47: *) melunko@47: # The compiler driver will combine linker options so we melunko@47: # cannot just pass the convience library names through melunko@47: # without $wl, iff we do not link with $LD. melunko@47: # Luckily, gcc supports the same syntax we need for Sun Studio. melunko@47: # Supported since Solaris 2.6 (maybe 2.5.1?) melunko@47: case $wlarc in melunko@47: '') melunko@47: whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;; melunko@47: *) melunko@47: 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' ;; melunko@47: esac ;; melunko@47: esac melunko@47: link_all_deplibs_F77=yes melunko@47: ;; melunko@47: melunko@47: sunos4*) melunko@47: if test "x$host_vendor" = xsequent; then melunko@47: # Use $CC to link under sequent, because it throws in some extra .o melunko@47: # files that make .init and .fini sections work. melunko@47: archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' melunko@47: else melunko@47: archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' melunko@47: fi melunko@47: hardcode_libdir_flag_spec_F77='-L$libdir' melunko@47: hardcode_direct_F77=yes melunko@47: hardcode_minus_L_F77=yes melunko@47: hardcode_shlibpath_var_F77=no melunko@47: ;; melunko@47: melunko@47: sysv4) melunko@47: case $host_vendor in melunko@47: sni) melunko@47: archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' melunko@47: hardcode_direct_F77=yes # is this really true??? melunko@47: ;; melunko@47: siemens) melunko@47: ## LD is ld it makes a PLAMLIB melunko@47: ## CC just makes a GrossModule. melunko@47: archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' melunko@47: reload_cmds_F77='$CC -r -o $output$reload_objs' melunko@47: hardcode_direct_F77=no melunko@47: ;; melunko@47: motorola) melunko@47: archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' melunko@47: hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie melunko@47: ;; melunko@47: esac melunko@47: runpath_var='LD_RUN_PATH' melunko@47: hardcode_shlibpath_var_F77=no melunko@47: ;; melunko@47: melunko@47: sysv4.3*) melunko@47: archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' melunko@47: hardcode_shlibpath_var_F77=no melunko@47: export_dynamic_flag_spec_F77='-Bexport' melunko@47: ;; melunko@47: melunko@47: sysv4*MP*) melunko@47: if test -d /usr/nec; then melunko@47: archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' melunko@47: hardcode_shlibpath_var_F77=no melunko@47: runpath_var=LD_RUN_PATH melunko@47: hardcode_runpath_var=yes melunko@47: ld_shlibs_F77=yes melunko@47: fi melunko@47: ;; melunko@47: melunko@47: sysv4.2uw2*) melunko@47: archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' melunko@47: hardcode_direct_F77=yes melunko@47: hardcode_minus_L_F77=no melunko@47: hardcode_shlibpath_var_F77=no melunko@47: hardcode_runpath_var=yes melunko@47: runpath_var=LD_RUN_PATH melunko@47: ;; melunko@47: melunko@47: sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) melunko@47: no_undefined_flag_F77='${wl}-z ${wl}text' melunko@47: if test "$GCC" = yes; then melunko@47: archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' melunko@47: else melunko@47: archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' melunko@47: fi melunko@47: runpath_var='LD_RUN_PATH' melunko@47: hardcode_shlibpath_var_F77=no melunko@47: ;; melunko@47: melunko@47: sysv5*) melunko@47: no_undefined_flag_F77=' -z text' melunko@47: # $CC -shared without GNU ld will not create a library from C++ melunko@47: # object files and a static libstdc++, better avoid it by now melunko@47: archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' melunko@47: archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ melunko@47: $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' melunko@47: hardcode_libdir_flag_spec_F77= melunko@47: hardcode_shlibpath_var_F77=no melunko@47: runpath_var='LD_RUN_PATH' melunko@47: ;; melunko@47: melunko@47: uts4*) melunko@47: archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' melunko@47: hardcode_libdir_flag_spec_F77='-L$libdir' melunko@47: hardcode_shlibpath_var_F77=no melunko@47: ;; melunko@47: melunko@47: *) melunko@47: ld_shlibs_F77=no melunko@47: ;; melunko@47: esac melunko@47: fi melunko@47: melunko@47: echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5 melunko@47: echo "${ECHO_T}$ld_shlibs_F77" >&6 melunko@47: test "$ld_shlibs_F77" = no && can_build_shared=no melunko@47: melunko@47: variables_saved_for_relink="PATH $shlibpath_var $runpath_var" melunko@47: if test "$GCC" = yes; then melunko@47: variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" melunko@47: fi melunko@47: melunko@47: # melunko@47: # Do we need to explicitly link libc? melunko@47: # melunko@47: case "x$archive_cmds_need_lc_F77" in melunko@47: x|xyes) melunko@47: # Assume -lc should be added melunko@47: archive_cmds_need_lc_F77=yes melunko@47: melunko@47: if test "$enable_shared" = yes && test "$GCC" = yes; then melunko@47: case $archive_cmds_F77 in melunko@47: *'~'*) melunko@47: # FIXME: we may have to deal with multi-command sequences. melunko@47: ;; melunko@47: '$CC '*) melunko@47: # Test whether the compiler implicitly links with -lc since on some melunko@47: # systems, -lgcc has to come before -lc. If gcc already passes -lc melunko@47: # to ld, don't add -lc before -lgcc. melunko@47: echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 melunko@47: echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 melunko@47: $rm conftest* melunko@47: printf "$lt_simple_compile_test_code" > conftest.$ac_ext melunko@47: melunko@47: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 melunko@47: (eval $ac_compile) 2>&5 melunko@47: ac_status=$? melunko@47: echo "$as_me:$LINENO: \$? = $ac_status" >&5 melunko@47: (exit $ac_status); } 2>conftest.err; then melunko@47: soname=conftest melunko@47: lib=conftest melunko@47: libobjs=conftest.$ac_objext melunko@47: deplibs= melunko@47: wl=$lt_prog_compiler_wl_F77 melunko@47: compiler_flags=-v melunko@47: linker_flags=-v melunko@47: verstring= melunko@47: output_objdir=. melunko@47: libname=conftest melunko@47: lt_save_allow_undefined_flag=$allow_undefined_flag_F77 melunko@47: allow_undefined_flag_F77= melunko@47: if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 melunko@47: (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 melunko@47: ac_status=$? melunko@47: echo "$as_me:$LINENO: \$? = $ac_status" >&5 melunko@47: (exit $ac_status); } melunko@47: then melunko@47: archive_cmds_need_lc_F77=no melunko@47: else melunko@47: archive_cmds_need_lc_F77=yes melunko@47: fi melunko@47: allow_undefined_flag_F77=$lt_save_allow_undefined_flag melunko@47: else melunko@47: cat conftest.err 1>&5 melunko@47: fi melunko@47: $rm conftest* melunko@47: echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5 melunko@47: echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6 melunko@47: ;; melunko@47: esac melunko@47: fi melunko@47: ;; melunko@47: esac melunko@47: melunko@47: echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 melunko@47: echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 melunko@47: library_names_spec= melunko@47: libname_spec='lib$name' melunko@47: soname_spec= melunko@47: shrext_cmds=".so" melunko@47: postinstall_cmds= melunko@47: postuninstall_cmds= melunko@47: finish_cmds= melunko@47: finish_eval= melunko@47: shlibpath_var= melunko@47: shlibpath_overrides_runpath=unknown melunko@47: version_type=none melunko@47: dynamic_linker="$host_os ld.so" melunko@47: sys_lib_dlsearch_path_spec="/lib /usr/lib" melunko@47: if test "$GCC" = yes; then melunko@47: sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` melunko@47: if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then melunko@47: # if the path contains ";" then we assume it to be the separator melunko@47: # otherwise default to the standard path separator (i.e. ":") - it is melunko@47: # assumed that no part of a normal pathname contains ";" but that should melunko@47: # okay in the real world where ";" in dirpaths is itself problematic. melunko@47: sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` melunko@47: else melunko@47: sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` melunko@47: fi melunko@47: else melunko@47: sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" melunko@47: fi melunko@47: need_lib_prefix=unknown melunko@47: hardcode_into_libs=no melunko@47: melunko@47: # when you set need_version to no, make sure it does not cause -set_version melunko@47: # flags to be left without arguments melunko@47: need_version=unknown melunko@47: melunko@47: case $host_os in melunko@47: aix3*) melunko@47: version_type=linux melunko@47: library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' melunko@47: shlibpath_var=LIBPATH melunko@47: melunko@47: # AIX 3 has no versioning support, so we append a major version to the name. melunko@47: soname_spec='${libname}${release}${shared_ext}$major' melunko@47: ;; melunko@47: melunko@47: aix4* | aix5*) melunko@47: version_type=linux melunko@47: need_lib_prefix=no melunko@47: need_version=no melunko@47: hardcode_into_libs=yes melunko@47: if test "$host_cpu" = ia64; then melunko@47: # AIX 5 supports IA64 melunko@47: library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' melunko@47: shlibpath_var=LD_LIBRARY_PATH melunko@47: else melunko@47: # With GCC up to 2.95.x, collect2 would create an import file melunko@47: # for dependence libraries. The import file would start with melunko@47: # the line `#! .'. This would cause the generated library to melunko@47: # depend on `.', always an invalid library. This was fixed in melunko@47: # development snapshots of GCC prior to 3.0. melunko@47: case $host_os in melunko@47: aix4 | aix4.[01] | aix4.[01].*) melunko@47: if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' melunko@47: echo ' yes ' melunko@47: echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then melunko@47: : melunko@47: else melunko@47: can_build_shared=no melunko@47: fi melunko@47: ;; melunko@47: esac melunko@47: # AIX (on Power*) has no versioning support, so currently we can not hardcode correct melunko@47: # soname into executable. Probably we can add versioning support to melunko@47: # collect2, so additional links can be useful in future. melunko@47: if test "$aix_use_runtimelinking" = yes; then melunko@47: # If using run time linking (on AIX 4.2 or later) use lib.so melunko@47: # instead of lib.a to let people know that these are not melunko@47: # typical AIX shared libraries. melunko@47: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' melunko@47: else melunko@47: # We preserve .a as extension for shared libraries through AIX4.2 melunko@47: # and later when we are not doing run time linking. melunko@47: library_names_spec='${libname}${release}.a $libname.a' melunko@47: soname_spec='${libname}${release}${shared_ext}$major' melunko@47: fi melunko@47: shlibpath_var=LIBPATH melunko@47: fi melunko@47: ;; melunko@47: melunko@47: amigaos*) melunko@47: library_names_spec='$libname.ixlibrary $libname.a' melunko@47: # Create ${libname}_ixlibrary.a entries in /sys/libs. melunko@47: 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' melunko@47: ;; melunko@47: melunko@47: beos*) melunko@47: library_names_spec='${libname}${shared_ext}' melunko@47: dynamic_linker="$host_os ld.so" melunko@47: shlibpath_var=LIBRARY_PATH melunko@47: ;; melunko@47: melunko@47: bsdi[45]*) melunko@47: version_type=linux melunko@47: need_version=no melunko@47: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' melunko@47: soname_spec='${libname}${release}${shared_ext}$major' melunko@47: finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' melunko@47: shlibpath_var=LD_LIBRARY_PATH melunko@47: sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" melunko@47: sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" melunko@47: # the default ld.so.conf also contains /usr/contrib/lib and melunko@47: # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow melunko@47: # libtool to hard-code these into programs melunko@47: ;; melunko@47: melunko@47: cygwin* | mingw* | pw32*) melunko@47: version_type=windows melunko@47: shrext_cmds=".dll" melunko@47: need_version=no melunko@47: need_lib_prefix=no melunko@47: melunko@47: case $GCC,$host_os in melunko@47: yes,cygwin* | yes,mingw* | yes,pw32*) melunko@47: library_names_spec='$libname.dll.a' melunko@47: # DLL is installed to $(libdir)/../bin by postinstall_cmds melunko@47: postinstall_cmds='base_file=`basename \${file}`~ melunko@47: dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ melunko@47: dldir=$destdir/`dirname \$dlpath`~ melunko@47: test -d \$dldir || mkdir -p \$dldir~ melunko@47: $install_prog $dir/$dlname \$dldir/$dlname~ melunko@47: chmod a+x \$dldir/$dlname' melunko@47: postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ melunko@47: dlpath=$dir/\$dldll~ melunko@47: $rm \$dlpath' melunko@47: shlibpath_overrides_runpath=yes melunko@47: melunko@47: case $host_os in melunko@47: cygwin*) melunko@47: # Cygwin DLLs use 'cyg' prefix rather than 'lib' melunko@47: soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' melunko@47: sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" melunko@47: ;; melunko@47: mingw*) melunko@47: # MinGW DLLs use traditional 'lib' prefix melunko@47: soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' melunko@47: sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` melunko@47: if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then melunko@47: # It is most probably a Windows format PATH printed by melunko@47: # mingw gcc, but we are running on Cygwin. Gcc prints its search melunko@47: # path with ; separators, and with drive letters. We can handle the melunko@47: # drive letters (cygwin fileutils understands them), so leave them, melunko@47: # especially as we might pass files found there to a mingw objdump, melunko@47: # which wouldn't understand a cygwinified path. Ahh. melunko@47: sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` melunko@47: else melunko@47: sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` melunko@47: fi melunko@47: ;; melunko@47: pw32*) melunko@47: # pw32 DLLs use 'pw' prefix rather than 'lib' melunko@47: library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' melunko@47: ;; melunko@47: esac melunko@47: ;; melunko@47: melunko@47: *) melunko@47: library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' melunko@47: ;; melunko@47: esac melunko@47: dynamic_linker='Win32 ld.exe' melunko@47: # FIXME: first we should search . and the directory the executable is in melunko@47: shlibpath_var=PATH melunko@47: ;; melunko@47: melunko@47: darwin* | rhapsody*) melunko@47: dynamic_linker="$host_os dyld" melunko@47: version_type=darwin melunko@47: need_lib_prefix=no melunko@47: need_version=no melunko@47: library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' melunko@47: soname_spec='${libname}${release}${major}$shared_ext' melunko@47: shlibpath_overrides_runpath=yes melunko@47: shlibpath_var=DYLD_LIBRARY_PATH melunko@47: shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' melunko@47: # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. melunko@47: if test "$GCC" = yes; then melunko@47: 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"` melunko@47: else melunko@47: sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' melunko@47: fi melunko@47: sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' melunko@47: ;; melunko@47: melunko@47: dgux*) melunko@47: version_type=linux melunko@47: need_lib_prefix=no melunko@47: need_version=no melunko@47: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' melunko@47: soname_spec='${libname}${release}${shared_ext}$major' melunko@47: shlibpath_var=LD_LIBRARY_PATH melunko@47: ;; melunko@47: melunko@47: freebsd1*) melunko@47: dynamic_linker=no melunko@47: ;; melunko@47: melunko@47: kfreebsd*-gnu) melunko@47: version_type=linux melunko@47: need_lib_prefix=no melunko@47: need_version=no melunko@47: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' melunko@47: soname_spec='${libname}${release}${shared_ext}$major' melunko@47: shlibpath_var=LD_LIBRARY_PATH melunko@47: shlibpath_overrides_runpath=no melunko@47: hardcode_into_libs=yes melunko@47: dynamic_linker='GNU ld.so' melunko@47: ;; melunko@47: melunko@47: freebsd* | dragonfly*) melunko@47: # DragonFly does not have aout. When/if they implement a new melunko@47: # versioning mechanism, adjust this. melunko@47: if test -x /usr/bin/objformat; then melunko@47: objformat=`/usr/bin/objformat` melunko@47: else melunko@47: case $host_os in melunko@47: freebsd[123]*) objformat=aout ;; melunko@47: *) objformat=elf ;; melunko@47: esac melunko@47: fi melunko@47: version_type=freebsd-$objformat melunko@47: case $version_type in melunko@47: freebsd-elf*) melunko@47: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' melunko@47: need_version=no melunko@47: need_lib_prefix=no melunko@47: ;; melunko@47: freebsd-*) melunko@47: library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' melunko@47: need_version=yes melunko@47: ;; melunko@47: esac melunko@47: shlibpath_var=LD_LIBRARY_PATH melunko@47: case $host_os in melunko@47: freebsd2*) melunko@47: shlibpath_overrides_runpath=yes melunko@47: ;; melunko@47: freebsd3.[01]* | freebsdelf3.[01]*) melunko@47: shlibpath_overrides_runpath=yes melunko@47: hardcode_into_libs=yes melunko@47: ;; melunko@47: *) # from 3.2 on melunko@47: shlibpath_overrides_runpath=no melunko@47: hardcode_into_libs=yes melunko@47: ;; melunko@47: esac melunko@47: ;; melunko@47: melunko@47: gnu*) melunko@47: version_type=linux melunko@47: need_lib_prefix=no melunko@47: need_version=no melunko@47: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' melunko@47: soname_spec='${libname}${release}${shared_ext}$major' melunko@47: shlibpath_var=LD_LIBRARY_PATH melunko@47: hardcode_into_libs=yes melunko@47: ;; melunko@47: melunko@47: hpux9* | hpux10* | hpux11*) melunko@47: # Give a soname corresponding to the major version so that dld.sl refuses to melunko@47: # link against other versions. melunko@47: version_type=sunos melunko@47: need_lib_prefix=no melunko@47: need_version=no melunko@47: case $host_cpu in melunko@47: ia64*) melunko@47: shrext_cmds='.so' melunko@47: hardcode_into_libs=yes melunko@47: dynamic_linker="$host_os dld.so" melunko@47: shlibpath_var=LD_LIBRARY_PATH melunko@47: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. melunko@47: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' melunko@47: soname_spec='${libname}${release}${shared_ext}$major' melunko@47: if test "X$HPUX_IA64_MODE" = X32; then melunko@47: sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" melunko@47: else melunko@47: sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" melunko@47: fi melunko@47: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec melunko@47: ;; melunko@47: hppa*64*) melunko@47: shrext_cmds='.sl' melunko@47: hardcode_into_libs=yes melunko@47: dynamic_linker="$host_os dld.sl" melunko@47: shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH melunko@47: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. melunko@47: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' melunko@47: soname_spec='${libname}${release}${shared_ext}$major' melunko@47: sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" melunko@47: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec melunko@47: ;; melunko@47: *) melunko@47: shrext_cmds='.sl' melunko@47: dynamic_linker="$host_os dld.sl" melunko@47: shlibpath_var=SHLIB_PATH melunko@47: shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH melunko@47: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' melunko@47: soname_spec='${libname}${release}${shared_ext}$major' melunko@47: ;; melunko@47: esac melunko@47: # HP-UX runs *really* slowly unless shared libraries are mode 555. melunko@47: postinstall_cmds='chmod 555 $lib' melunko@47: ;; melunko@47: melunko@47: irix5* | irix6* | nonstopux*) melunko@47: case $host_os in melunko@47: nonstopux*) version_type=nonstopux ;; melunko@47: *) melunko@47: if test "$lt_cv_prog_gnu_ld" = yes; then melunko@47: version_type=linux melunko@47: else melunko@47: version_type=irix melunko@47: fi ;; melunko@47: esac melunko@47: need_lib_prefix=no melunko@47: need_version=no melunko@47: soname_spec='${libname}${release}${shared_ext}$major' melunko@47: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' melunko@47: case $host_os in melunko@47: irix5* | nonstopux*) melunko@47: libsuff= shlibsuff= melunko@47: ;; melunko@47: *) melunko@47: case $LD in # libtool.m4 will add one of these switches to LD melunko@47: *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") melunko@47: libsuff= shlibsuff= libmagic=32-bit;; melunko@47: *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") melunko@47: libsuff=32 shlibsuff=N32 libmagic=N32;; melunko@47: *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") melunko@47: libsuff=64 shlibsuff=64 libmagic=64-bit;; melunko@47: *) libsuff= shlibsuff= libmagic=never-match;; melunko@47: esac melunko@47: ;; melunko@47: esac melunko@47: shlibpath_var=LD_LIBRARY${shlibsuff}_PATH melunko@47: shlibpath_overrides_runpath=no melunko@47: sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" melunko@47: sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" melunko@47: hardcode_into_libs=yes melunko@47: ;; melunko@47: melunko@47: # No shared lib support for Linux oldld, aout, or coff. melunko@47: linux*oldld* | linux*aout* | linux*coff*) melunko@47: dynamic_linker=no melunko@47: ;; melunko@47: melunko@47: # This must be Linux ELF. melunko@47: linux*) melunko@47: version_type=linux melunko@47: need_lib_prefix=no melunko@47: need_version=no melunko@47: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' melunko@47: soname_spec='${libname}${release}${shared_ext}$major' melunko@47: finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' melunko@47: shlibpath_var=LD_LIBRARY_PATH melunko@47: shlibpath_overrides_runpath=no melunko@47: # This implies no fast_install, which is unacceptable. melunko@47: # Some rework will be needed to allow for fast_install melunko@47: # before this can be enabled. melunko@47: hardcode_into_libs=yes melunko@47: melunko@47: # Append ld.so.conf contents to the search path melunko@47: if test -f /etc/ld.so.conf; then melunko@47: lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` melunko@47: sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" melunko@47: fi melunko@47: melunko@47: # We used to test for /lib/ld.so.1 and disable shared libraries on melunko@47: # powerpc, because MkLinux only supported shared libraries with the melunko@47: # GNU dynamic linker. Since this was broken with cross compilers, melunko@47: # most powerpc-linux boxes support dynamic linking these days and melunko@47: # people can always --disable-shared, the test was removed, and we melunko@47: # assume the GNU/Linux dynamic linker is in use. melunko@47: dynamic_linker='GNU/Linux ld.so' melunko@47: ;; melunko@47: melunko@47: knetbsd*-gnu) melunko@47: version_type=linux melunko@47: need_lib_prefix=no melunko@47: need_version=no melunko@47: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' melunko@47: soname_spec='${libname}${release}${shared_ext}$major' melunko@47: shlibpath_var=LD_LIBRARY_PATH melunko@47: shlibpath_overrides_runpath=no melunko@47: hardcode_into_libs=yes melunko@47: dynamic_linker='GNU ld.so' melunko@47: ;; melunko@47: melunko@47: netbsd*) melunko@47: version_type=sunos melunko@47: need_lib_prefix=no melunko@47: need_version=no melunko@47: if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then melunko@47: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' melunko@47: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' melunko@47: dynamic_linker='NetBSD (a.out) ld.so' melunko@47: else melunko@47: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' melunko@47: soname_spec='${libname}${release}${shared_ext}$major' melunko@47: dynamic_linker='NetBSD ld.elf_so' melunko@47: fi melunko@47: shlibpath_var=LD_LIBRARY_PATH melunko@47: shlibpath_overrides_runpath=yes melunko@47: hardcode_into_libs=yes melunko@47: ;; melunko@47: melunko@47: newsos6) melunko@47: version_type=linux melunko@47: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' melunko@47: shlibpath_var=LD_LIBRARY_PATH melunko@47: shlibpath_overrides_runpath=yes melunko@47: ;; melunko@47: melunko@47: nto-qnx*) melunko@47: version_type=linux melunko@47: need_lib_prefix=no melunko@47: need_version=no melunko@47: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' melunko@47: soname_spec='${libname}${release}${shared_ext}$major' melunko@47: shlibpath_var=LD_LIBRARY_PATH melunko@47: shlibpath_overrides_runpath=yes melunko@47: ;; melunko@47: melunko@47: openbsd*) melunko@47: version_type=sunos melunko@47: need_lib_prefix=no melunko@47: # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. melunko@47: case $host_os in melunko@47: openbsd3.3 | openbsd3.3.*) need_version=yes ;; melunko@47: *) need_version=no ;; melunko@47: esac melunko@47: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' melunko@47: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' melunko@47: shlibpath_var=LD_LIBRARY_PATH melunko@47: if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then melunko@47: case $host_os in melunko@47: openbsd2.[89] | openbsd2.[89].*) melunko@47: shlibpath_overrides_runpath=no melunko@47: ;; melunko@47: *) melunko@47: shlibpath_overrides_runpath=yes melunko@47: ;; melunko@47: esac melunko@47: else melunko@47: shlibpath_overrides_runpath=yes melunko@47: fi melunko@47: ;; melunko@47: melunko@47: os2*) melunko@47: libname_spec='$name' melunko@47: shrext_cmds=".dll" melunko@47: need_lib_prefix=no melunko@47: library_names_spec='$libname${shared_ext} $libname.a' melunko@47: dynamic_linker='OS/2 ld.exe' melunko@47: shlibpath_var=LIBPATH melunko@47: ;; melunko@47: melunko@47: osf3* | osf4* | osf5*) melunko@47: version_type=osf melunko@47: need_lib_prefix=no melunko@47: need_version=no melunko@47: soname_spec='${libname}${release}${shared_ext}$major' melunko@47: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' melunko@47: shlibpath_var=LD_LIBRARY_PATH melunko@47: sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" melunko@47: sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" melunko@47: ;; melunko@47: melunko@47: sco3.2v5*) melunko@47: version_type=osf melunko@47: soname_spec='${libname}${release}${shared_ext}$major' melunko@47: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' melunko@47: shlibpath_var=LD_LIBRARY_PATH melunko@47: ;; melunko@47: melunko@47: solaris*) melunko@47: version_type=linux melunko@47: need_lib_prefix=no melunko@47: need_version=no melunko@47: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' melunko@47: soname_spec='${libname}${release}${shared_ext}$major' melunko@47: shlibpath_var=LD_LIBRARY_PATH melunko@47: shlibpath_overrides_runpath=yes melunko@47: hardcode_into_libs=yes melunko@47: # ldd complains unless libraries are executable melunko@47: postinstall_cmds='chmod +x $lib' melunko@47: ;; melunko@47: melunko@47: sunos4*) melunko@47: version_type=sunos melunko@47: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' melunko@47: finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' melunko@47: shlibpath_var=LD_LIBRARY_PATH melunko@47: shlibpath_overrides_runpath=yes melunko@47: if test "$with_gnu_ld" = yes; then melunko@47: need_lib_prefix=no melunko@47: fi melunko@47: need_version=yes melunko@47: ;; melunko@47: melunko@47: sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) melunko@47: version_type=linux melunko@47: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' melunko@47: soname_spec='${libname}${release}${shared_ext}$major' melunko@47: shlibpath_var=LD_LIBRARY_PATH melunko@47: case $host_vendor in melunko@47: sni) melunko@47: shlibpath_overrides_runpath=no melunko@47: need_lib_prefix=no melunko@47: export_dynamic_flag_spec='${wl}-Blargedynsym' melunko@47: runpath_var=LD_RUN_PATH melunko@47: ;; melunko@47: siemens) melunko@47: need_lib_prefix=no melunko@47: ;; melunko@47: motorola) melunko@47: need_lib_prefix=no melunko@47: need_version=no melunko@47: shlibpath_overrides_runpath=no melunko@47: sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' melunko@47: ;; melunko@47: esac melunko@47: ;; melunko@47: melunko@47: sysv4*MP*) melunko@47: if test -d /usr/nec ;then melunko@47: version_type=linux melunko@47: library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' melunko@47: soname_spec='$libname${shared_ext}.$major' melunko@47: shlibpath_var=LD_LIBRARY_PATH melunko@47: fi melunko@47: ;; melunko@47: melunko@47: uts4*) melunko@47: version_type=linux melunko@47: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' melunko@47: soname_spec='${libname}${release}${shared_ext}$major' melunko@47: shlibpath_var=LD_LIBRARY_PATH melunko@47: ;; melunko@47: melunko@47: *) melunko@47: dynamic_linker=no melunko@47: ;; melunko@47: esac melunko@47: echo "$as_me:$LINENO: result: $dynamic_linker" >&5 melunko@47: echo "${ECHO_T}$dynamic_linker" >&6 melunko@47: test "$dynamic_linker" = no && can_build_shared=no melunko@47: melunko@47: echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 melunko@47: echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 melunko@47: hardcode_action_F77= melunko@47: if test -n "$hardcode_libdir_flag_spec_F77" || \ melunko@47: test -n "$runpath_var_F77" || \ melunko@47: test "X$hardcode_automatic_F77" = "Xyes" ; then melunko@47: melunko@47: # We can hardcode non-existant directories. melunko@47: if test "$hardcode_direct_F77" != no && melunko@47: # If the only mechanism to avoid hardcoding is shlibpath_var, we melunko@47: # have to relink, otherwise we might link with an installed library melunko@47: # when we should be linking with a yet-to-be-installed one melunko@47: ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no && melunko@47: test "$hardcode_minus_L_F77" != no; then melunko@47: # Linking always hardcodes the temporary library directory. melunko@47: hardcode_action_F77=relink melunko@47: else melunko@47: # We can link without hardcoding, and we can hardcode nonexisting dirs. melunko@47: hardcode_action_F77=immediate melunko@47: fi melunko@47: else melunko@47: # We cannot hardcode anything, or else we can only hardcode existing melunko@47: # directories. melunko@47: hardcode_action_F77=unsupported melunko@47: fi melunko@47: echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5 melunko@47: echo "${ECHO_T}$hardcode_action_F77" >&6 melunko@47: melunko@47: if test "$hardcode_action_F77" = relink; then melunko@47: # Fast installation is not supported melunko@47: enable_fast_install=no melunko@47: elif test "$shlibpath_overrides_runpath" = yes || melunko@47: test "$enable_shared" = no; then melunko@47: # Fast installation is not necessary melunko@47: enable_fast_install=needless melunko@47: fi melunko@47: melunko@47: striplib= melunko@47: old_striplib= melunko@47: echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 melunko@47: echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 melunko@47: if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then melunko@47: test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" melunko@47: test -z "$striplib" && striplib="$STRIP --strip-unneeded" melunko@47: echo "$as_me:$LINENO: result: yes" >&5 melunko@47: echo "${ECHO_T}yes" >&6 melunko@47: else melunko@47: # FIXME - insert some real tests, host_os isn't really good enough melunko@47: case $host_os in melunko@47: darwin*) melunko@47: if test -n "$STRIP" ; then melunko@47: striplib="$STRIP -x" melunko@47: echo "$as_me:$LINENO: result: yes" >&5 melunko@47: echo "${ECHO_T}yes" >&6 melunko@47: else melunko@47: echo "$as_me:$LINENO: result: no" >&5 melunko@47: echo "${ECHO_T}no" >&6 melunko@47: fi melunko@47: ;; melunko@47: *) melunko@47: echo "$as_me:$LINENO: result: no" >&5 melunko@47: echo "${ECHO_T}no" >&6 melunko@47: ;; melunko@47: esac melunko@47: fi melunko@47: melunko@47: melunko@47: melunko@47: # The else clause should only fire when bootstrapping the melunko@47: # libtool distribution, otherwise you forgot to ship ltmain.sh melunko@47: # with your package, and you will get complaints that there are melunko@47: # no rules to generate ltmain.sh. melunko@47: if test -f "$ltmain"; then melunko@47: # See if we are running on zsh, and set the options which allow our commands through melunko@47: # without removal of \ escapes. melunko@47: if test -n "${ZSH_VERSION+set}" ; then melunko@47: setopt NO_GLOB_SUBST melunko@47: fi melunko@47: # Now quote all the things that may contain metacharacters while being melunko@47: # careful not to overquote the AC_SUBSTed values. We take copies of the melunko@47: # variables and quote the copies for generation of the libtool script. melunko@47: for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ melunko@47: SED SHELL STRIP \ melunko@47: libname_spec library_names_spec soname_spec extract_expsyms_cmds \ melunko@47: old_striplib striplib file_magic_cmd finish_cmds finish_eval \ melunko@47: deplibs_check_method reload_flag reload_cmds need_locks \ melunko@47: lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ melunko@47: lt_cv_sys_global_symbol_to_c_name_address \ melunko@47: sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ melunko@47: old_postinstall_cmds old_postuninstall_cmds \ melunko@47: compiler_F77 \ melunko@47: CC_F77 \ melunko@47: LD_F77 \ melunko@47: lt_prog_compiler_wl_F77 \ melunko@47: lt_prog_compiler_pic_F77 \ melunko@47: lt_prog_compiler_static_F77 \ melunko@47: lt_prog_compiler_no_builtin_flag_F77 \ melunko@47: export_dynamic_flag_spec_F77 \ melunko@47: thread_safe_flag_spec_F77 \ melunko@47: whole_archive_flag_spec_F77 \ melunko@47: enable_shared_with_static_runtimes_F77 \ melunko@47: old_archive_cmds_F77 \ melunko@47: old_archive_from_new_cmds_F77 \ melunko@47: predep_objects_F77 \ melunko@47: postdep_objects_F77 \ melunko@47: predeps_F77 \ melunko@47: postdeps_F77 \ melunko@47: compiler_lib_search_path_F77 \ melunko@47: archive_cmds_F77 \ melunko@47: archive_expsym_cmds_F77 \ melunko@47: postinstall_cmds_F77 \ melunko@47: postuninstall_cmds_F77 \ melunko@47: old_archive_from_expsyms_cmds_F77 \ melunko@47: allow_undefined_flag_F77 \ melunko@47: no_undefined_flag_F77 \ melunko@47: export_symbols_cmds_F77 \ melunko@47: hardcode_libdir_flag_spec_F77 \ melunko@47: hardcode_libdir_flag_spec_ld_F77 \ melunko@47: hardcode_libdir_separator_F77 \ melunko@47: hardcode_automatic_F77 \ melunko@47: module_cmds_F77 \ melunko@47: module_expsym_cmds_F77 \ melunko@47: lt_cv_prog_compiler_c_o_F77 \ melunko@47: exclude_expsyms_F77 \ melunko@47: include_expsyms_F77; do melunko@47: melunko@47: case $var in melunko@47: old_archive_cmds_F77 | \ melunko@47: old_archive_from_new_cmds_F77 | \ melunko@47: archive_cmds_F77 | \ melunko@47: archive_expsym_cmds_F77 | \ melunko@47: module_cmds_F77 | \ melunko@47: module_expsym_cmds_F77 | \ melunko@47: old_archive_from_expsyms_cmds_F77 | \ melunko@47: export_symbols_cmds_F77 | \ melunko@47: extract_expsyms_cmds | reload_cmds | finish_cmds | \ melunko@47: postinstall_cmds | postuninstall_cmds | \ melunko@47: old_postinstall_cmds | old_postuninstall_cmds | \ melunko@47: sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) melunko@47: # Double-quote double-evaled strings. melunko@47: eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" melunko@47: ;; melunko@47: *) melunko@47: eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" melunko@47: ;; melunko@47: esac melunko@47: done melunko@47: melunko@47: case $lt_echo in melunko@47: *'\$0 --fallback-echo"') melunko@47: lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` melunko@47: ;; melunko@47: esac melunko@47: melunko@47: cfgfile="$ofile" melunko@47: melunko@47: cat <<__EOF__ >> "$cfgfile" melunko@47: # ### BEGIN LIBTOOL TAG CONFIG: $tagname melunko@47: melunko@47: # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: melunko@47: melunko@47: # Shell to use when invoking shell scripts. melunko@47: SHELL=$lt_SHELL melunko@47: melunko@47: # Whether or not to build shared libraries. melunko@47: build_libtool_libs=$enable_shared melunko@47: melunko@47: # Whether or not to build static libraries. melunko@47: build_old_libs=$enable_static melunko@47: melunko@47: # Whether or not to add -lc for building shared libraries. melunko@47: build_libtool_need_lc=$archive_cmds_need_lc_F77 melunko@47: melunko@47: # Whether or not to disallow shared libs when runtime libs are static melunko@47: allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77 melunko@47: melunko@47: # Whether or not to optimize for fast installation. melunko@47: fast_install=$enable_fast_install melunko@47: melunko@47: # The host system. melunko@47: host_alias=$host_alias melunko@47: host=$host melunko@47: host_os=$host_os melunko@47: melunko@47: # The build system. melunko@47: build_alias=$build_alias melunko@47: build=$build melunko@47: build_os=$build_os melunko@47: melunko@47: # An echo program that does not interpret backslashes. melunko@47: echo=$lt_echo melunko@47: melunko@47: # The archiver. melunko@47: AR=$lt_AR melunko@47: AR_FLAGS=$lt_AR_FLAGS melunko@47: melunko@47: # A C compiler. melunko@47: LTCC=$lt_LTCC melunko@47: melunko@47: # A language-specific compiler. melunko@47: CC=$lt_compiler_F77 melunko@47: melunko@47: # Is the compiler the GNU C compiler? melunko@47: with_gcc=$GCC_F77 melunko@47: melunko@47: # An ERE matcher. melunko@47: EGREP=$lt_EGREP melunko@47: melunko@47: # The linker used to build libraries. melunko@47: LD=$lt_LD_F77 melunko@47: melunko@47: # Whether we need hard or soft links. melunko@47: LN_S=$lt_LN_S melunko@47: melunko@47: # A BSD-compatible nm program. melunko@47: NM=$lt_NM melunko@47: melunko@47: # A symbol stripping program melunko@47: STRIP=$lt_STRIP melunko@47: melunko@47: # Used to examine libraries when file_magic_cmd begins "file" melunko@47: MAGIC_CMD=$MAGIC_CMD melunko@47: melunko@47: # Used on cygwin: DLL creation program. melunko@47: DLLTOOL="$DLLTOOL" melunko@47: melunko@47: # Used on cygwin: object dumper. melunko@47: OBJDUMP="$OBJDUMP" melunko@47: melunko@47: # Used on cygwin: assembler. melunko@47: AS="$AS" melunko@47: melunko@47: # The name of the directory that contains temporary libtool files. melunko@47: objdir=$objdir melunko@47: melunko@47: # How to create reloadable object files. melunko@47: reload_flag=$lt_reload_flag melunko@47: reload_cmds=$lt_reload_cmds melunko@47: melunko@47: # How to pass a linker flag through the compiler. melunko@47: wl=$lt_lt_prog_compiler_wl_F77 melunko@47: melunko@47: # Object file suffix (normally "o"). melunko@47: objext="$ac_objext" melunko@47: melunko@47: # Old archive suffix (normally "a"). melunko@47: libext="$libext" melunko@47: melunko@47: # Shared library suffix (normally ".so"). melunko@47: shrext_cmds='$shrext_cmds' melunko@47: melunko@47: # Executable file suffix (normally ""). melunko@47: exeext="$exeext" melunko@47: melunko@47: # Additional compiler flags for building library objects. melunko@47: pic_flag=$lt_lt_prog_compiler_pic_F77 melunko@47: pic_mode=$pic_mode melunko@47: melunko@47: # What is the maximum length of a command? melunko@47: max_cmd_len=$lt_cv_sys_max_cmd_len melunko@47: melunko@47: # Does compiler simultaneously support -c and -o options? melunko@47: compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77 melunko@47: melunko@47: # Must we lock files when doing compilation? melunko@47: need_locks=$lt_need_locks melunko@47: melunko@47: # Do we need the lib prefix for modules? melunko@47: need_lib_prefix=$need_lib_prefix melunko@47: melunko@47: # Do we need a version for libraries? melunko@47: need_version=$need_version melunko@47: melunko@47: # Whether dlopen is supported. melunko@47: dlopen_support=$enable_dlopen melunko@47: melunko@47: # Whether dlopen of programs is supported. melunko@47: dlopen_self=$enable_dlopen_self melunko@47: melunko@47: # Whether dlopen of statically linked programs is supported. melunko@47: dlopen_self_static=$enable_dlopen_self_static melunko@47: melunko@47: # Compiler flag to prevent dynamic linking. melunko@47: link_static_flag=$lt_lt_prog_compiler_static_F77 melunko@47: melunko@47: # Compiler flag to turn off builtin functions. melunko@47: no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77 melunko@47: melunko@47: # Compiler flag to allow reflexive dlopens. melunko@47: export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77 melunko@47: melunko@47: # Compiler flag to generate shared objects directly from archives. melunko@47: whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77 melunko@47: melunko@47: # Compiler flag to generate thread-safe objects. melunko@47: thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77 melunko@47: melunko@47: # Library versioning type. melunko@47: version_type=$version_type melunko@47: melunko@47: # Format of library name prefix. melunko@47: libname_spec=$lt_libname_spec melunko@47: melunko@47: # List of archive names. First name is the real one, the rest are links. melunko@47: # The last name is the one that the linker finds with -lNAME. melunko@47: library_names_spec=$lt_library_names_spec melunko@47: melunko@47: # The coded name of the library, if different from the real name. melunko@47: soname_spec=$lt_soname_spec melunko@47: melunko@47: # Commands used to build and install an old-style archive. melunko@47: RANLIB=$lt_RANLIB melunko@47: old_archive_cmds=$lt_old_archive_cmds_F77 melunko@47: old_postinstall_cmds=$lt_old_postinstall_cmds melunko@47: old_postuninstall_cmds=$lt_old_postuninstall_cmds melunko@47: melunko@47: # Create an old-style archive from a shared archive. melunko@47: old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77 melunko@47: melunko@47: # Create a temporary old-style archive to link instead of a shared archive. melunko@47: old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77 melunko@47: melunko@47: # Commands used to build and install a shared archive. melunko@47: archive_cmds=$lt_archive_cmds_F77 melunko@47: archive_expsym_cmds=$lt_archive_expsym_cmds_F77 melunko@47: postinstall_cmds=$lt_postinstall_cmds melunko@47: postuninstall_cmds=$lt_postuninstall_cmds melunko@47: melunko@47: # Commands used to build a loadable module (assumed same as above if empty) melunko@47: module_cmds=$lt_module_cmds_F77 melunko@47: module_expsym_cmds=$lt_module_expsym_cmds_F77 melunko@47: melunko@47: # Commands to strip libraries. melunko@47: old_striplib=$lt_old_striplib melunko@47: striplib=$lt_striplib melunko@47: melunko@47: # Dependencies to place before the objects being linked to create a melunko@47: # shared library. melunko@47: predep_objects=$lt_predep_objects_F77 melunko@47: melunko@47: # Dependencies to place after the objects being linked to create a melunko@47: # shared library. melunko@47: postdep_objects=$lt_postdep_objects_F77 melunko@47: melunko@47: # Dependencies to place before the objects being linked to create a melunko@47: # shared library. melunko@47: predeps=$lt_predeps_F77 melunko@47: melunko@47: # Dependencies to place after the objects being linked to create a melunko@47: # shared library. melunko@47: postdeps=$lt_postdeps_F77 melunko@47: melunko@47: # The library search path used internally by the compiler when linking melunko@47: # a shared library. melunko@47: compiler_lib_search_path=$lt_compiler_lib_search_path_F77 melunko@47: melunko@47: # Method to check whether dependent libraries are shared objects. melunko@47: deplibs_check_method=$lt_deplibs_check_method melunko@47: melunko@47: # Command to use when deplibs_check_method == file_magic. melunko@47: file_magic_cmd=$lt_file_magic_cmd melunko@47: melunko@47: # Flag that allows shared libraries with undefined symbols to be built. melunko@47: allow_undefined_flag=$lt_allow_undefined_flag_F77 melunko@47: melunko@47: # Flag that forces no undefined symbols. melunko@47: no_undefined_flag=$lt_no_undefined_flag_F77 melunko@47: melunko@47: # Commands used to finish a libtool library installation in a directory. melunko@47: finish_cmds=$lt_finish_cmds melunko@47: melunko@47: # Same as above, but a single script fragment to be evaled but not shown. melunko@47: finish_eval=$lt_finish_eval melunko@47: melunko@47: # Take the output of nm and produce a listing of raw symbols and C names. melunko@47: global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe melunko@47: melunko@47: # Transform the output of nm in a proper C declaration melunko@47: global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl melunko@47: melunko@47: # Transform the output of nm in a C name address pair melunko@47: global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address melunko@47: melunko@47: # This is the shared library runtime path variable. melunko@47: runpath_var=$runpath_var melunko@47: melunko@47: # This is the shared library path variable. melunko@47: shlibpath_var=$shlibpath_var melunko@47: melunko@47: # Is shlibpath searched before the hard-coded library search path? melunko@47: shlibpath_overrides_runpath=$shlibpath_overrides_runpath melunko@47: melunko@47: # How to hardcode a shared library path into an executable. melunko@47: hardcode_action=$hardcode_action_F77 melunko@47: melunko@47: # Whether we should hardcode library paths into libraries. melunko@47: hardcode_into_libs=$hardcode_into_libs melunko@47: melunko@47: # Flag to hardcode \$libdir into a binary during linking. melunko@47: # This must work even if \$libdir does not exist. melunko@47: hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77 melunko@47: melunko@47: # If ld is used when linking, flag to hardcode \$libdir into melunko@47: # a binary during linking. This must work even if \$libdir does melunko@47: # not exist. melunko@47: hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77 melunko@47: melunko@47: # Whether we need a single -rpath flag with a separated argument. melunko@47: hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77 melunko@47: melunko@47: # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the melunko@47: # resulting binary. melunko@47: hardcode_direct=$hardcode_direct_F77 melunko@47: melunko@47: # Set to yes if using the -LDIR flag during linking hardcodes DIR into the melunko@47: # resulting binary. melunko@47: hardcode_minus_L=$hardcode_minus_L_F77 melunko@47: melunko@47: # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into melunko@47: # the resulting binary. melunko@47: hardcode_shlibpath_var=$hardcode_shlibpath_var_F77 melunko@47: melunko@47: # Set to yes if building a shared library automatically hardcodes DIR into the library melunko@47: # and all subsequent libraries and executables linked against it. melunko@47: hardcode_automatic=$hardcode_automatic_F77 melunko@47: melunko@47: # Variables whose values should be saved in libtool wrapper scripts and melunko@47: # restored at relink time. melunko@47: variables_saved_for_relink="$variables_saved_for_relink" melunko@47: melunko@47: # Whether libtool must link a program against all its dependency libraries. melunko@47: link_all_deplibs=$link_all_deplibs_F77 melunko@47: melunko@47: # Compile-time system search path for libraries melunko@47: sys_lib_search_path_spec=$lt_sys_lib_search_path_spec melunko@47: melunko@47: # Run-time system search path for libraries melunko@47: sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec melunko@47: melunko@47: # Fix the shell variable \$srcfile for the compiler. melunko@47: fix_srcfile_path="$fix_srcfile_path_F77" melunko@47: melunko@47: # Set to yes if exported symbols are required. melunko@47: always_export_symbols=$always_export_symbols_F77 melunko@47: melunko@47: # The commands to list exported symbols. melunko@47: export_symbols_cmds=$lt_export_symbols_cmds_F77 melunko@47: melunko@47: # The commands to extract the exported symbol list from a shared archive. melunko@47: extract_expsyms_cmds=$lt_extract_expsyms_cmds melunko@47: melunko@47: # Symbols that should not be listed in the preloaded symbols. melunko@47: exclude_expsyms=$lt_exclude_expsyms_F77 melunko@47: melunko@47: # Symbols that must always be exported. melunko@47: include_expsyms=$lt_include_expsyms_F77 melunko@47: melunko@47: # ### END LIBTOOL TAG CONFIG: $tagname melunko@47: melunko@47: __EOF__ melunko@47: melunko@47: melunko@47: else melunko@47: # If there is no Makefile yet, we rely on a make rule to execute melunko@47: # `config.status --recheck' to rerun these tests and create the melunko@47: # libtool script then. melunko@47: ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` melunko@47: if test -f "$ltmain_in"; then melunko@47: test -f Makefile && make "$ltmain" melunko@47: fi melunko@47: fi melunko@47: melunko@47: melunko@47: ac_ext=c melunko@47: ac_cpp='$CPP $CPPFLAGS' melunko@47: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' melunko@47: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' melunko@47: ac_compiler_gnu=$ac_cv_c_compiler_gnu melunko@47: melunko@47: CC="$lt_save_CC" melunko@47: melunko@47: else melunko@47: tagname="" melunko@47: fi melunko@47: ;; melunko@47: melunko@47: GCJ) melunko@47: if test -n "$GCJ" && test "X$GCJ" != "Xno"; then melunko@47: melunko@47: melunko@47: melunko@47: # Source file extension for Java test sources. melunko@47: ac_ext=java melunko@47: melunko@47: # Object file extension for compiled Java test sources. melunko@47: objext=o melunko@47: objext_GCJ=$objext melunko@47: melunko@47: # Code to be used in simple compile tests melunko@47: lt_simple_compile_test_code="class foo {}\n" melunko@47: melunko@47: # Code to be used in simple link tests melunko@47: lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n' melunko@47: melunko@47: # ltmain only uses $CC for tagged configurations so make sure $CC is set. melunko@47: melunko@47: # If no C compiler was specified, use CC. melunko@47: LTCC=${LTCC-"$CC"} melunko@47: melunko@47: # Allow CC to be a program name with arguments. melunko@47: compiler=$CC melunko@47: melunko@47: melunko@47: # save warnings/boilerplate of simple test code melunko@47: ac_outfile=conftest.$ac_objext melunko@47: printf "$lt_simple_compile_test_code" >conftest.$ac_ext melunko@47: eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err melunko@47: _lt_compiler_boilerplate=`cat conftest.err` melunko@47: $rm conftest* melunko@47: melunko@47: ac_outfile=conftest.$ac_objext melunko@47: printf "$lt_simple_link_test_code" >conftest.$ac_ext melunko@47: eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err melunko@47: _lt_linker_boilerplate=`cat conftest.err` melunko@47: $rm conftest* melunko@47: melunko@47: melunko@47: # Allow CC to be a program name with arguments. melunko@47: lt_save_CC="$CC" melunko@47: CC=${GCJ-"gcj"} melunko@47: compiler=$CC melunko@47: compiler_GCJ=$CC melunko@47: for cc_temp in $compiler""; do melunko@47: case $cc_temp in melunko@47: compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; melunko@47: distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; melunko@47: \-*) ;; melunko@47: *) break;; melunko@47: esac melunko@47: done melunko@47: cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` melunko@47: melunko@47: melunko@47: # GCJ did not exist at the time GCC didn't implicitly link libc in. melunko@47: archive_cmds_need_lc_GCJ=no melunko@47: melunko@47: old_archive_cmds_GCJ=$old_archive_cmds melunko@47: melunko@47: melunko@47: lt_prog_compiler_no_builtin_flag_GCJ= melunko@47: melunko@47: if test "$GCC" = yes; then melunko@47: lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin' melunko@47: melunko@47: melunko@47: echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 melunko@47: echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6 melunko@47: if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then melunko@47: echo $ECHO_N "(cached) $ECHO_C" >&6 melunko@47: else melunko@47: lt_cv_prog_compiler_rtti_exceptions=no melunko@47: ac_outfile=conftest.$ac_objext melunko@47: printf "$lt_simple_compile_test_code" > conftest.$ac_ext melunko@47: lt_compiler_flag="-fno-rtti -fno-exceptions" melunko@47: # Insert the option either (1) after the last *FLAGS variable, or melunko@47: # (2) before a word containing "conftest.", or (3) at the end. melunko@47: # Note that $ac_compile itself does not contain backslashes and begins melunko@47: # with a dollar sign (not a hyphen), so the echo should work correctly. melunko@47: # The option is referenced via a variable to avoid confusing sed. melunko@47: lt_compile=`echo "$ac_compile" | $SED \ melunko@47: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ melunko@47: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ melunko@47: -e 's:$: $lt_compiler_flag:'` melunko@47: (eval echo "\"\$as_me:15946: $lt_compile\"" >&5) melunko@47: (eval "$lt_compile" 2>conftest.err) melunko@47: ac_status=$? melunko@47: cat conftest.err >&5 melunko@47: echo "$as_me:15950: \$? = $ac_status" >&5 melunko@47: if (exit $ac_status) && test -s "$ac_outfile"; then melunko@47: # The compiler can only warn and ignore the option if not recognized melunko@47: # So say no if there are warnings other than the usual output. melunko@47: $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp melunko@47: $SED '/^$/d' conftest.err >conftest.er2 melunko@47: if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then melunko@47: lt_cv_prog_compiler_rtti_exceptions=yes melunko@47: fi melunko@47: fi melunko@47: $rm conftest* melunko@47: melunko@47: fi melunko@47: echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 melunko@47: echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6 melunko@47: melunko@47: if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then melunko@47: lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions" melunko@47: else melunko@47: : melunko@47: fi melunko@47: melunko@47: fi melunko@47: melunko@47: lt_prog_compiler_wl_GCJ= melunko@47: lt_prog_compiler_pic_GCJ= melunko@47: lt_prog_compiler_static_GCJ= melunko@47: melunko@47: echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 melunko@47: echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 melunko@47: melunko@47: if test "$GCC" = yes; then melunko@47: lt_prog_compiler_wl_GCJ='-Wl,' melunko@47: lt_prog_compiler_static_GCJ='-static' melunko@47: melunko@47: case $host_os in melunko@47: aix*) melunko@47: # All AIX code is PIC. melunko@47: if test "$host_cpu" = ia64; then melunko@47: # AIX 5 now supports IA64 processor melunko@47: lt_prog_compiler_static_GCJ='-Bstatic' melunko@47: fi melunko@47: ;; melunko@47: melunko@47: amigaos*) melunko@47: # FIXME: we need at least 68020 code to build shared libraries, but melunko@47: # adding the `-m68020' flag to GCC prevents building anything better, melunko@47: # like `-m68040'. melunko@47: lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4' melunko@47: ;; melunko@47: melunko@47: beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) melunko@47: # PIC is the default for these OSes. melunko@47: ;; melunko@47: melunko@47: mingw* | pw32* | os2*) melunko@47: # This hack is so that the source file can tell whether it is being melunko@47: # built for inclusion in a dll (and should export symbols for example). melunko@47: lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' melunko@47: ;; melunko@47: melunko@47: darwin* | rhapsody*) melunko@47: # PIC is the default on this platform melunko@47: # Common symbols not allowed in MH_DYLIB files melunko@47: lt_prog_compiler_pic_GCJ='-fno-common' melunko@47: ;; melunko@47: melunko@47: msdosdjgpp*) melunko@47: # Just because we use GCC doesn't mean we suddenly get shared libraries melunko@47: # on systems that don't support them. melunko@47: lt_prog_compiler_can_build_shared_GCJ=no melunko@47: enable_shared=no melunko@47: ;; melunko@47: melunko@47: sysv4*MP*) melunko@47: if test -d /usr/nec; then melunko@47: lt_prog_compiler_pic_GCJ=-Kconform_pic melunko@47: fi melunko@47: ;; melunko@47: melunko@47: hpux*) melunko@47: # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but melunko@47: # not for PA HP-UX. melunko@47: case $host_cpu in melunko@47: hppa*64*|ia64*) melunko@47: # +Z the default melunko@47: ;; melunko@47: *) melunko@47: lt_prog_compiler_pic_GCJ='-fPIC' melunko@47: ;; melunko@47: esac melunko@47: ;; melunko@47: melunko@47: *) melunko@47: lt_prog_compiler_pic_GCJ='-fPIC' melunko@47: ;; melunko@47: esac melunko@47: else melunko@47: # PORTME Check for flag to pass linker flags through the system compiler. melunko@47: case $host_os in melunko@47: aix*) melunko@47: lt_prog_compiler_wl_GCJ='-Wl,' melunko@47: if test "$host_cpu" = ia64; then melunko@47: # AIX 5 now supports IA64 processor melunko@47: lt_prog_compiler_static_GCJ='-Bstatic' melunko@47: else melunko@47: lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp' melunko@47: fi melunko@47: ;; melunko@47: darwin*) melunko@47: # PIC is the default on this platform melunko@47: # Common symbols not allowed in MH_DYLIB files melunko@47: case $cc_basename in melunko@47: xlc*) melunko@47: lt_prog_compiler_pic_GCJ='-qnocommon' melunko@47: lt_prog_compiler_wl_GCJ='-Wl,' melunko@47: ;; melunko@47: esac melunko@47: ;; melunko@47: melunko@47: mingw* | pw32* | os2*) melunko@47: # This hack is so that the source file can tell whether it is being melunko@47: # built for inclusion in a dll (and should export symbols for example). melunko@47: lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' melunko@47: ;; melunko@47: melunko@47: hpux9* | hpux10* | hpux11*) melunko@47: lt_prog_compiler_wl_GCJ='-Wl,' melunko@47: # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but melunko@47: # not for PA HP-UX. melunko@47: case $host_cpu in melunko@47: hppa*64*|ia64*) melunko@47: # +Z the default melunko@47: ;; melunko@47: *) melunko@47: lt_prog_compiler_pic_GCJ='+Z' melunko@47: ;; melunko@47: esac melunko@47: # Is there a better lt_prog_compiler_static that works with the bundled CC? melunko@47: lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive' melunko@47: ;; melunko@47: melunko@47: irix5* | irix6* | nonstopux*) melunko@47: lt_prog_compiler_wl_GCJ='-Wl,' melunko@47: # PIC (with -KPIC) is the default. melunko@47: lt_prog_compiler_static_GCJ='-non_shared' melunko@47: ;; melunko@47: melunko@47: newsos6) melunko@47: lt_prog_compiler_pic_GCJ='-KPIC' melunko@47: lt_prog_compiler_static_GCJ='-Bstatic' melunko@47: ;; melunko@47: melunko@47: linux*) melunko@47: case $cc_basename in melunko@47: icc* | ecc*) melunko@47: lt_prog_compiler_wl_GCJ='-Wl,' melunko@47: lt_prog_compiler_pic_GCJ='-KPIC' melunko@47: lt_prog_compiler_static_GCJ='-static' melunko@47: ;; melunko@47: pgcc* | pgf77* | pgf90* | pgf95*) melunko@47: # Portland Group compilers (*not* the Pentium gcc compiler, melunko@47: # which looks to be a dead project) melunko@47: lt_prog_compiler_wl_GCJ='-Wl,' melunko@47: lt_prog_compiler_pic_GCJ='-fpic' melunko@47: lt_prog_compiler_static_GCJ='-Bstatic' melunko@47: ;; melunko@47: ccc*) melunko@47: lt_prog_compiler_wl_GCJ='-Wl,' melunko@47: # All Alpha code is PIC. melunko@47: lt_prog_compiler_static_GCJ='-non_shared' melunko@47: ;; melunko@47: esac melunko@47: ;; melunko@47: melunko@47: osf3* | osf4* | osf5*) melunko@47: lt_prog_compiler_wl_GCJ='-Wl,' melunko@47: # All OSF/1 code is PIC. melunko@47: lt_prog_compiler_static_GCJ='-non_shared' melunko@47: ;; melunko@47: melunko@47: sco3.2v5*) melunko@47: lt_prog_compiler_pic_GCJ='-Kpic' melunko@47: lt_prog_compiler_static_GCJ='-dn' melunko@47: ;; melunko@47: melunko@47: solaris*) melunko@47: lt_prog_compiler_pic_GCJ='-KPIC' melunko@47: lt_prog_compiler_static_GCJ='-Bstatic' melunko@47: case $cc_basename in melunko@47: f77* | f90* | f95*) melunko@47: lt_prog_compiler_wl_GCJ='-Qoption ld ';; melunko@47: *) melunko@47: lt_prog_compiler_wl_GCJ='-Wl,';; melunko@47: esac melunko@47: ;; melunko@47: melunko@47: sunos4*) melunko@47: lt_prog_compiler_wl_GCJ='-Qoption ld ' melunko@47: lt_prog_compiler_pic_GCJ='-PIC' melunko@47: lt_prog_compiler_static_GCJ='-Bstatic' melunko@47: ;; melunko@47: melunko@47: sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) melunko@47: lt_prog_compiler_wl_GCJ='-Wl,' melunko@47: lt_prog_compiler_pic_GCJ='-KPIC' melunko@47: lt_prog_compiler_static_GCJ='-Bstatic' melunko@47: ;; melunko@47: melunko@47: sysv4*MP*) melunko@47: if test -d /usr/nec ;then melunko@47: lt_prog_compiler_pic_GCJ='-Kconform_pic' melunko@47: lt_prog_compiler_static_GCJ='-Bstatic' melunko@47: fi melunko@47: ;; melunko@47: melunko@47: unicos*) melunko@47: lt_prog_compiler_wl_GCJ='-Wl,' melunko@47: lt_prog_compiler_can_build_shared_GCJ=no melunko@47: ;; melunko@47: melunko@47: uts4*) melunko@47: lt_prog_compiler_pic_GCJ='-pic' melunko@47: lt_prog_compiler_static_GCJ='-Bstatic' melunko@47: ;; melunko@47: melunko@47: *) melunko@47: lt_prog_compiler_can_build_shared_GCJ=no melunko@47: ;; melunko@47: esac melunko@47: fi melunko@47: melunko@47: echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5 melunko@47: echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6 melunko@47: melunko@47: # melunko@47: # Check to make sure the PIC flag actually works. melunko@47: # melunko@47: if test -n "$lt_prog_compiler_pic_GCJ"; then melunko@47: melunko@47: echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5 melunko@47: echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6 melunko@47: if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then melunko@47: echo $ECHO_N "(cached) $ECHO_C" >&6 melunko@47: else melunko@47: lt_prog_compiler_pic_works_GCJ=no melunko@47: ac_outfile=conftest.$ac_objext melunko@47: printf "$lt_simple_compile_test_code" > conftest.$ac_ext melunko@47: lt_compiler_flag="$lt_prog_compiler_pic_GCJ" melunko@47: # Insert the option either (1) after the last *FLAGS variable, or melunko@47: # (2) before a word containing "conftest.", or (3) at the end. melunko@47: # Note that $ac_compile itself does not contain backslashes and begins melunko@47: # with a dollar sign (not a hyphen), so the echo should work correctly. melunko@47: # The option is referenced via a variable to avoid confusing sed. melunko@47: lt_compile=`echo "$ac_compile" | $SED \ melunko@47: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ melunko@47: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ melunko@47: -e 's:$: $lt_compiler_flag:'` melunko@47: (eval echo "\"\$as_me:16208: $lt_compile\"" >&5) melunko@47: (eval "$lt_compile" 2>conftest.err) melunko@47: ac_status=$? melunko@47: cat conftest.err >&5 melunko@47: echo "$as_me:16212: \$? = $ac_status" >&5 melunko@47: if (exit $ac_status) && test -s "$ac_outfile"; then melunko@47: # The compiler can only warn and ignore the option if not recognized melunko@47: # So say no if there are warnings other than the usual output. melunko@47: $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp melunko@47: $SED '/^$/d' conftest.err >conftest.er2 melunko@47: if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then melunko@47: lt_prog_compiler_pic_works_GCJ=yes melunko@47: fi melunko@47: fi melunko@47: $rm conftest* melunko@47: melunko@47: fi melunko@47: echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5 melunko@47: echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6 melunko@47: melunko@47: if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then melunko@47: case $lt_prog_compiler_pic_GCJ in melunko@47: "" | " "*) ;; melunko@47: *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;; melunko@47: esac melunko@47: else melunko@47: lt_prog_compiler_pic_GCJ= melunko@47: lt_prog_compiler_can_build_shared_GCJ=no melunko@47: fi melunko@47: melunko@47: fi melunko@47: case $host_os in melunko@47: # For platforms which do not support PIC, -DPIC is meaningless: melunko@47: *djgpp*) melunko@47: lt_prog_compiler_pic_GCJ= melunko@47: ;; melunko@47: *) melunko@47: lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ" melunko@47: ;; melunko@47: esac melunko@47: melunko@47: echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 melunko@47: echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 melunko@47: if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then melunko@47: echo $ECHO_N "(cached) $ECHO_C" >&6 melunko@47: else melunko@47: lt_cv_prog_compiler_c_o_GCJ=no melunko@47: $rm -r conftest 2>/dev/null melunko@47: mkdir conftest melunko@47: cd conftest melunko@47: mkdir out melunko@47: printf "$lt_simple_compile_test_code" > conftest.$ac_ext melunko@47: melunko@47: lt_compiler_flag="-o out/conftest2.$ac_objext" melunko@47: # Insert the option either (1) after the last *FLAGS variable, or melunko@47: # (2) before a word containing "conftest.", or (3) at the end. melunko@47: # Note that $ac_compile itself does not contain backslashes and begins melunko@47: # with a dollar sign (not a hyphen), so the echo should work correctly. melunko@47: lt_compile=`echo "$ac_compile" | $SED \ melunko@47: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ melunko@47: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ melunko@47: -e 's:$: $lt_compiler_flag:'` melunko@47: (eval echo "\"\$as_me:16270: $lt_compile\"" >&5) melunko@47: (eval "$lt_compile" 2>out/conftest.err) melunko@47: ac_status=$? melunko@47: cat out/conftest.err >&5 melunko@47: echo "$as_me:16274: \$? = $ac_status" >&5 melunko@47: if (exit $ac_status) && test -s out/conftest2.$ac_objext melunko@47: then melunko@47: # The compiler can only warn and ignore the option if not recognized melunko@47: # So say no if there are warnings melunko@47: $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp melunko@47: $SED '/^$/d' out/conftest.err >out/conftest.er2 melunko@47: if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then melunko@47: lt_cv_prog_compiler_c_o_GCJ=yes melunko@47: fi melunko@47: fi melunko@47: chmod u+w . 2>&5 melunko@47: $rm conftest* melunko@47: # SGI C++ compiler will create directory out/ii_files/ for melunko@47: # template instantiation melunko@47: test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files melunko@47: $rm out/* && rmdir out melunko@47: cd .. melunko@47: rmdir conftest melunko@47: $rm conftest* melunko@47: melunko@47: fi melunko@47: echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5 melunko@47: echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6 melunko@47: melunko@47: melunko@47: hard_links="nottested" melunko@47: if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then melunko@47: # do not overwrite the value of need_locks provided by the user melunko@47: echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 melunko@47: echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 melunko@47: hard_links=yes melunko@47: $rm conftest* melunko@47: ln conftest.a conftest.b 2>/dev/null && hard_links=no melunko@47: touch conftest.a melunko@47: ln conftest.a conftest.b 2>&5 || hard_links=no melunko@47: ln conftest.a conftest.b 2>/dev/null && hard_links=no melunko@47: echo "$as_me:$LINENO: result: $hard_links" >&5 melunko@47: echo "${ECHO_T}$hard_links" >&6 melunko@47: if test "$hard_links" = no; then melunko@47: { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 melunko@47: echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} melunko@47: need_locks=warn melunko@47: fi melunko@47: else melunko@47: need_locks=no melunko@47: fi melunko@47: melunko@47: echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 melunko@47: echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 melunko@47: melunko@47: runpath_var= melunko@47: allow_undefined_flag_GCJ= melunko@47: enable_shared_with_static_runtimes_GCJ=no melunko@47: archive_cmds_GCJ= melunko@47: archive_expsym_cmds_GCJ= melunko@47: old_archive_From_new_cmds_GCJ= melunko@47: old_archive_from_expsyms_cmds_GCJ= melunko@47: export_dynamic_flag_spec_GCJ= melunko@47: whole_archive_flag_spec_GCJ= melunko@47: thread_safe_flag_spec_GCJ= melunko@47: hardcode_libdir_flag_spec_GCJ= melunko@47: hardcode_libdir_flag_spec_ld_GCJ= melunko@47: hardcode_libdir_separator_GCJ= melunko@47: hardcode_direct_GCJ=no melunko@47: hardcode_minus_L_GCJ=no melunko@47: hardcode_shlibpath_var_GCJ=unsupported melunko@47: link_all_deplibs_GCJ=unknown melunko@47: hardcode_automatic_GCJ=no melunko@47: module_cmds_GCJ= melunko@47: module_expsym_cmds_GCJ= melunko@47: always_export_symbols_GCJ=no melunko@47: export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' melunko@47: # include_expsyms should be a list of space-separated symbols to be *always* melunko@47: # included in the symbol list melunko@47: include_expsyms_GCJ= melunko@47: # exclude_expsyms can be an extended regexp of symbols to exclude melunko@47: # it will be wrapped by ` (' and `)$', so one must not match beginning or melunko@47: # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', melunko@47: # as well as any symbol that contains `d'. melunko@47: exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_" melunko@47: # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out melunko@47: # platforms (ab)use it in PIC code, but their linkers get confused if melunko@47: # the symbol is explicitly referenced. Since portable code cannot melunko@47: # rely on this symbol name, it's probably fine to never include it in melunko@47: # preloaded symbol tables. melunko@47: extract_expsyms_cmds= melunko@47: # Just being paranoid about ensuring that cc_basename is set. melunko@47: for cc_temp in $compiler""; do melunko@47: case $cc_temp in melunko@47: compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; melunko@47: distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; melunko@47: \-*) ;; melunko@47: *) break;; melunko@47: esac melunko@47: done melunko@47: cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` melunko@47: melunko@47: case $host_os in melunko@47: cygwin* | mingw* | pw32*) melunko@47: # FIXME: the MSVC++ port hasn't been tested in a loooong time melunko@47: # When not using gcc, we currently assume that we are using melunko@47: # Microsoft Visual C++. melunko@47: if test "$GCC" != yes; then melunko@47: with_gnu_ld=no melunko@47: fi melunko@47: ;; melunko@47: openbsd*) melunko@47: with_gnu_ld=no melunko@47: ;; melunko@47: esac melunko@47: melunko@47: ld_shlibs_GCJ=yes melunko@47: if test "$with_gnu_ld" = yes; then melunko@47: # If archive_cmds runs LD, not CC, wlarc should be empty melunko@47: wlarc='${wl}' melunko@47: melunko@47: # Set some defaults for GNU ld with shared library support. These melunko@47: # are reset later if shared libraries are not supported. Putting them melunko@47: # here allows them to be overridden if necessary. melunko@47: runpath_var=LD_RUN_PATH melunko@47: hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir' melunko@47: export_dynamic_flag_spec_GCJ='${wl}--export-dynamic' melunko@47: # ancient GNU ld didn't support --whole-archive et. al. melunko@47: if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then melunko@47: whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' melunko@47: else melunko@47: whole_archive_flag_spec_GCJ= melunko@47: fi melunko@47: supports_anon_versioning=no melunko@47: case `$LD -v 2>/dev/null` in melunko@47: *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 melunko@47: *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... melunko@47: *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... melunko@47: *\ 2.11.*) ;; # other 2.11 versions melunko@47: *) supports_anon_versioning=yes ;; melunko@47: esac melunko@47: melunko@47: # See if GNU ld supports shared libraries. melunko@47: case $host_os in melunko@47: aix3* | aix4* | aix5*) melunko@47: # On AIX/PPC, the GNU linker is very broken melunko@47: if test "$host_cpu" != ia64; then melunko@47: ld_shlibs_GCJ=no melunko@47: cat <&2 melunko@47: melunko@47: *** Warning: the GNU linker, at least up to release 2.9.1, is reported melunko@47: *** to be unable to reliably create shared libraries on AIX. melunko@47: *** Therefore, libtool is disabling shared libraries support. If you melunko@47: *** really care for shared libraries, you may want to modify your PATH melunko@47: *** so that a non-GNU linker is found, and then restart. melunko@47: melunko@47: EOF melunko@47: fi melunko@47: ;; melunko@47: melunko@47: amigaos*) melunko@47: 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)' melunko@47: hardcode_libdir_flag_spec_GCJ='-L$libdir' melunko@47: hardcode_minus_L_GCJ=yes melunko@47: melunko@47: # Samuel A. Falvo II reports melunko@47: # that the semantics of dynamic libraries on AmigaOS, at least up melunko@47: # to version 4, is to share data among multiple programs linked melunko@47: # with the same dynamic library. Since this doesn't match the melunko@47: # behavior of shared libraries on other platforms, we can't use melunko@47: # them. melunko@47: ld_shlibs_GCJ=no melunko@47: ;; melunko@47: melunko@47: beos*) melunko@47: if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then melunko@47: allow_undefined_flag_GCJ=unsupported melunko@47: # Joseph Beckenbach says some releases of gcc melunko@47: # support --undefined. This deserves some investigation. FIXME melunko@47: archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' melunko@47: else melunko@47: ld_shlibs_GCJ=no melunko@47: fi melunko@47: ;; melunko@47: melunko@47: cygwin* | mingw* | pw32*) melunko@47: # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless, melunko@47: # as there is no search path for DLLs. melunko@47: hardcode_libdir_flag_spec_GCJ='-L$libdir' melunko@47: allow_undefined_flag_GCJ=unsupported melunko@47: always_export_symbols_GCJ=no melunko@47: enable_shared_with_static_runtimes_GCJ=yes melunko@47: export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' melunko@47: melunko@47: if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then melunko@47: archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' melunko@47: # If the export-symbols file already is a .def file (1st line melunko@47: # is EXPORTS), use it as is; otherwise, prepend... melunko@47: archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then melunko@47: cp $export_symbols $output_objdir/$soname.def; melunko@47: else melunko@47: echo EXPORTS > $output_objdir/$soname.def; melunko@47: cat $export_symbols >> $output_objdir/$soname.def; melunko@47: fi~ melunko@47: $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' melunko@47: else melunko@47: ld_shlibs_GCJ=no melunko@47: fi melunko@47: ;; melunko@47: melunko@47: linux*) melunko@47: if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then melunko@47: tmp_addflag= melunko@47: case $cc_basename,$host_cpu in melunko@47: pgcc*) # Portland Group C compiler melunko@47: whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' melunko@47: tmp_addflag=' $pic_flag' melunko@47: ;; melunko@47: pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers melunko@47: whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' melunko@47: tmp_addflag=' $pic_flag -Mnomain' ;; melunko@47: ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 melunko@47: tmp_addflag=' -i_dynamic' ;; melunko@47: efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 melunko@47: tmp_addflag=' -i_dynamic -nofor_main' ;; melunko@47: ifc* | ifort*) # Intel Fortran compiler melunko@47: tmp_addflag=' -nofor_main' ;; melunko@47: esac melunko@47: archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' melunko@47: melunko@47: if test $supports_anon_versioning = yes; then melunko@47: archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~ melunko@47: cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ melunko@47: $echo "local: *; };" >> $output_objdir/$libname.ver~ melunko@47: $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' melunko@47: fi melunko@47: else melunko@47: ld_shlibs_GCJ=no melunko@47: fi melunko@47: ;; melunko@47: melunko@47: netbsd*) melunko@47: if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then melunko@47: archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' melunko@47: wlarc= melunko@47: else melunko@47: archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' melunko@47: archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' melunko@47: fi melunko@47: ;; melunko@47: melunko@47: solaris* | sysv5*) melunko@47: if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then melunko@47: ld_shlibs_GCJ=no melunko@47: cat <&2 melunko@47: melunko@47: *** Warning: The releases 2.8.* of the GNU linker cannot reliably melunko@47: *** create shared libraries on Solaris systems. Therefore, libtool melunko@47: *** is disabling shared libraries support. We urge you to upgrade GNU melunko@47: *** binutils to release 2.9.1 or newer. Another option is to modify melunko@47: *** your PATH or compiler configuration so that the native linker is melunko@47: *** used, and then restart. melunko@47: melunko@47: EOF melunko@47: elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then melunko@47: archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' melunko@47: archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' melunko@47: else melunko@47: ld_shlibs_GCJ=no melunko@47: fi melunko@47: ;; melunko@47: melunko@47: sunos4*) melunko@47: archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' melunko@47: wlarc= melunko@47: hardcode_direct_GCJ=yes melunko@47: hardcode_shlibpath_var_GCJ=no melunko@47: ;; melunko@47: melunko@47: *) melunko@47: if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then melunko@47: archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' melunko@47: archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' melunko@47: else melunko@47: ld_shlibs_GCJ=no melunko@47: fi melunko@47: ;; melunko@47: esac melunko@47: melunko@47: if test "$ld_shlibs_GCJ" = no; then melunko@47: runpath_var= melunko@47: hardcode_libdir_flag_spec_GCJ= melunko@47: export_dynamic_flag_spec_GCJ= melunko@47: whole_archive_flag_spec_GCJ= melunko@47: fi melunko@47: else melunko@47: # PORTME fill in a description of your system's linker (not GNU ld) melunko@47: case $host_os in melunko@47: aix3*) melunko@47: allow_undefined_flag_GCJ=unsupported melunko@47: always_export_symbols_GCJ=yes melunko@47: 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' melunko@47: # Note: this linker hardcodes the directories in LIBPATH if there melunko@47: # are no directories specified by -L. melunko@47: hardcode_minus_L_GCJ=yes melunko@47: if test "$GCC" = yes && test -z "$link_static_flag"; then melunko@47: # Neither direct hardcoding nor static linking is supported with a melunko@47: # broken collect2. melunko@47: hardcode_direct_GCJ=unsupported melunko@47: fi melunko@47: ;; melunko@47: melunko@47: aix4* | aix5*) melunko@47: if test "$host_cpu" = ia64; then melunko@47: # On IA64, the linker does run time linking by default, so we don't melunko@47: # have to do anything special. melunko@47: aix_use_runtimelinking=no melunko@47: exp_sym_flag='-Bexport' melunko@47: no_entry_flag="" melunko@47: else melunko@47: # If we're using GNU nm, then we don't want the "-C" option. melunko@47: # -C means demangle to AIX nm, but means don't demangle with GNU nm melunko@47: if $NM -V 2>&1 | grep 'GNU' > /dev/null; then melunko@47: 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' melunko@47: else melunko@47: 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' melunko@47: fi melunko@47: aix_use_runtimelinking=no melunko@47: melunko@47: # Test if we are trying to use run time linking or normal melunko@47: # AIX style linking. If -brtl is somewhere in LDFLAGS, we melunko@47: # need to do runtime linking. melunko@47: case $host_os in aix4.[23]|aix4.[23].*|aix5*) melunko@47: for ld_flag in $LDFLAGS; do melunko@47: if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then melunko@47: aix_use_runtimelinking=yes melunko@47: break melunko@47: fi melunko@47: done melunko@47: esac melunko@47: melunko@47: exp_sym_flag='-bexport' melunko@47: no_entry_flag='-bnoentry' melunko@47: fi melunko@47: melunko@47: # When large executables or shared objects are built, AIX ld can melunko@47: # have problems creating the table of contents. If linking a library melunko@47: # or program results in "error TOC overflow" add -mminimal-toc to melunko@47: # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not melunko@47: # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. melunko@47: melunko@47: archive_cmds_GCJ='' melunko@47: hardcode_direct_GCJ=yes melunko@47: hardcode_libdir_separator_GCJ=':' melunko@47: link_all_deplibs_GCJ=yes melunko@47: melunko@47: if test "$GCC" = yes; then melunko@47: case $host_os in aix4.[012]|aix4.[012].*) melunko@47: # We only want to do this on AIX 4.2 and lower, the check melunko@47: # below for broken collect2 doesn't work under 4.3+ melunko@47: collect2name=`${CC} -print-prog-name=collect2` melunko@47: if test -f "$collect2name" && \ melunko@47: strings "$collect2name" | grep resolve_lib_name >/dev/null melunko@47: then melunko@47: # We have reworked collect2 melunko@47: hardcode_direct_GCJ=yes melunko@47: else melunko@47: # We have old collect2 melunko@47: hardcode_direct_GCJ=unsupported melunko@47: # It fails to find uninstalled libraries when the uninstalled melunko@47: # path is not listed in the libpath. Setting hardcode_minus_L melunko@47: # to unsupported forces relinking melunko@47: hardcode_minus_L_GCJ=yes melunko@47: hardcode_libdir_flag_spec_GCJ='-L$libdir' melunko@47: hardcode_libdir_separator_GCJ= melunko@47: fi melunko@47: esac melunko@47: shared_flag='-shared' melunko@47: if test "$aix_use_runtimelinking" = yes; then melunko@47: shared_flag="$shared_flag "'${wl}-G' melunko@47: fi melunko@47: else melunko@47: # not using gcc melunko@47: if test "$host_cpu" = ia64; then melunko@47: # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release melunko@47: # chokes on -Wl,-G. The following line is correct: melunko@47: shared_flag='-G' melunko@47: else melunko@47: if test "$aix_use_runtimelinking" = yes; then melunko@47: shared_flag='${wl}-G' melunko@47: else melunko@47: shared_flag='${wl}-bM:SRE' melunko@47: fi melunko@47: fi melunko@47: fi melunko@47: melunko@47: # It seems that -bexpall does not export symbols beginning with melunko@47: # underscore (_), so it is better to generate a list of symbols to export. melunko@47: always_export_symbols_GCJ=yes melunko@47: if test "$aix_use_runtimelinking" = yes; then melunko@47: # Warning - without using the other runtime loading flags (-brtl), melunko@47: # -berok will link without error, but may produce a broken library. melunko@47: allow_undefined_flag_GCJ='-berok' melunko@47: # Determine the default libpath from the value encoded in an empty executable. melunko@47: cat >conftest.$ac_ext <<_ACEOF melunko@47: /* confdefs.h. */ melunko@47: _ACEOF melunko@47: cat confdefs.h >>conftest.$ac_ext melunko@47: cat >>conftest.$ac_ext <<_ACEOF melunko@47: /* end confdefs.h. */ melunko@47: melunko@47: int melunko@47: main () melunko@47: { melunko@47: melunko@47: ; melunko@47: return 0; melunko@47: } melunko@47: _ACEOF melunko@47: rm -f conftest.$ac_objext conftest$ac_exeext melunko@47: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 melunko@47: (eval $ac_link) 2>conftest.er1 melunko@47: ac_status=$? melunko@47: grep -v '^ *+' conftest.er1 >conftest.err melunko@47: rm -f conftest.er1 melunko@47: cat conftest.err >&5 melunko@47: echo "$as_me:$LINENO: \$? = $ac_status" >&5 melunko@47: (exit $ac_status); } && melunko@47: { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' melunko@47: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 melunko@47: (eval $ac_try) 2>&5 melunko@47: ac_status=$? melunko@47: echo "$as_me:$LINENO: \$? = $ac_status" >&5 melunko@47: (exit $ac_status); }; } && melunko@47: { ac_try='test -s conftest$ac_exeext' melunko@47: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 melunko@47: (eval $ac_try) 2>&5 melunko@47: ac_status=$? melunko@47: echo "$as_me:$LINENO: \$? = $ac_status" >&5 melunko@47: (exit $ac_status); }; }; then melunko@47: melunko@47: aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } melunko@47: }'` melunko@47: # Check for a 64-bit object if we didn't find anything. melunko@47: 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; } melunko@47: }'`; fi melunko@47: else melunko@47: echo "$as_me: failed program was:" >&5 melunko@47: sed 's/^/| /' conftest.$ac_ext >&5 melunko@47: melunko@47: fi melunko@47: rm -f conftest.err conftest.$ac_objext \ melunko@47: conftest$ac_exeext conftest.$ac_ext melunko@47: if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi melunko@47: melunko@47: hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" melunko@47: 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" melunko@47: else melunko@47: if test "$host_cpu" = ia64; then melunko@47: hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib' melunko@47: allow_undefined_flag_GCJ="-z nodefs" melunko@47: 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" melunko@47: else melunko@47: # Determine the default libpath from the value encoded in an empty executable. melunko@47: cat >conftest.$ac_ext <<_ACEOF melunko@47: /* confdefs.h. */ melunko@47: _ACEOF melunko@47: cat confdefs.h >>conftest.$ac_ext melunko@47: cat >>conftest.$ac_ext <<_ACEOF melunko@47: /* end confdefs.h. */ melunko@47: melunko@47: int melunko@47: main () melunko@47: { melunko@47: melunko@47: ; melunko@47: return 0; melunko@47: } melunko@47: _ACEOF melunko@47: rm -f conftest.$ac_objext conftest$ac_exeext melunko@47: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 melunko@47: (eval $ac_link) 2>conftest.er1 melunko@47: ac_status=$? melunko@47: grep -v '^ *+' conftest.er1 >conftest.err melunko@47: rm -f conftest.er1 melunko@47: cat conftest.err >&5 melunko@47: echo "$as_me:$LINENO: \$? = $ac_status" >&5 melunko@47: (exit $ac_status); } && melunko@47: { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' melunko@47: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 melunko@47: (eval $ac_try) 2>&5 melunko@47: ac_status=$? melunko@47: echo "$as_me:$LINENO: \$? = $ac_status" >&5 melunko@47: (exit $ac_status); }; } && melunko@47: { ac_try='test -s conftest$ac_exeext' melunko@47: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 melunko@47: (eval $ac_try) 2>&5 melunko@47: ac_status=$? melunko@47: echo "$as_me:$LINENO: \$? = $ac_status" >&5 melunko@47: (exit $ac_status); }; }; then melunko@47: melunko@47: aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } melunko@47: }'` melunko@47: # Check for a 64-bit object if we didn't find anything. melunko@47: 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; } melunko@47: }'`; fi melunko@47: else melunko@47: echo "$as_me: failed program was:" >&5 melunko@47: sed 's/^/| /' conftest.$ac_ext >&5 melunko@47: melunko@47: fi melunko@47: rm -f conftest.err conftest.$ac_objext \ melunko@47: conftest$ac_exeext conftest.$ac_ext melunko@47: if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi melunko@47: melunko@47: hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" melunko@47: # Warning - without using the other run time loading flags, melunko@47: # -berok will link without error, but may produce a broken library. melunko@47: no_undefined_flag_GCJ=' ${wl}-bernotok' melunko@47: allow_undefined_flag_GCJ=' ${wl}-berok' melunko@47: # -bexpall does not export symbols beginning with underscore (_) melunko@47: always_export_symbols_GCJ=yes melunko@47: # Exported symbols can be pulled into shared objects from archives melunko@47: whole_archive_flag_spec_GCJ=' ' melunko@47: archive_cmds_need_lc_GCJ=yes melunko@47: # This is similar to how AIX traditionally builds its shared libraries. melunko@47: 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' melunko@47: fi melunko@47: fi melunko@47: ;; melunko@47: melunko@47: amigaos*) melunko@47: 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)' melunko@47: hardcode_libdir_flag_spec_GCJ='-L$libdir' melunko@47: hardcode_minus_L_GCJ=yes melunko@47: # see comment about different semantics on the GNU ld section melunko@47: ld_shlibs_GCJ=no melunko@47: ;; melunko@47: melunko@47: bsdi[45]*) melunko@47: export_dynamic_flag_spec_GCJ=-rdynamic melunko@47: ;; melunko@47: melunko@47: cygwin* | mingw* | pw32*) melunko@47: # When not using gcc, we currently assume that we are using melunko@47: # Microsoft Visual C++. melunko@47: # hardcode_libdir_flag_spec is actually meaningless, as there is melunko@47: # no search path for DLLs. melunko@47: hardcode_libdir_flag_spec_GCJ=' ' melunko@47: allow_undefined_flag_GCJ=unsupported melunko@47: # Tell ltmain to make .lib files, not .a files. melunko@47: libext=lib melunko@47: # Tell ltmain to make .dll files, not .so files. melunko@47: shrext_cmds=".dll" melunko@47: # FIXME: Setting linknames here is a bad hack. melunko@47: archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' melunko@47: # The linker will automatically build a .lib file if we build a DLL. melunko@47: old_archive_From_new_cmds_GCJ='true' melunko@47: # FIXME: Should let the user specify the lib program. melunko@47: old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs' melunko@47: fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`' melunko@47: enable_shared_with_static_runtimes_GCJ=yes melunko@47: ;; melunko@47: melunko@47: darwin* | rhapsody*) melunko@47: case $host_os in melunko@47: rhapsody* | darwin1.[012]) melunko@47: allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress' melunko@47: ;; melunko@47: *) # Darwin 1.3 on melunko@47: if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then melunko@47: allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' melunko@47: else melunko@47: case ${MACOSX_DEPLOYMENT_TARGET} in melunko@47: 10.[012]) melunko@47: allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' melunko@47: ;; melunko@47: 10.*) melunko@47: allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup' melunko@47: ;; melunko@47: esac melunko@47: fi melunko@47: ;; melunko@47: esac melunko@47: archive_cmds_need_lc_GCJ=no melunko@47: hardcode_direct_GCJ=no melunko@47: hardcode_automatic_GCJ=yes melunko@47: hardcode_shlibpath_var_GCJ=unsupported melunko@47: whole_archive_flag_spec_GCJ='' melunko@47: link_all_deplibs_GCJ=yes melunko@47: if test "$GCC" = yes ; then melunko@47: output_verbose_link_cmd='echo' melunko@47: archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' melunko@47: module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' melunko@47: # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds melunko@47: 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}' melunko@47: 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}' melunko@47: else melunko@47: case $cc_basename in melunko@47: xlc*) melunko@47: output_verbose_link_cmd='echo' melunko@47: archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' melunko@47: module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' melunko@47: # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds melunko@47: 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}' melunko@47: 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}' melunko@47: ;; melunko@47: *) melunko@47: ld_shlibs_GCJ=no melunko@47: ;; melunko@47: esac melunko@47: fi melunko@47: ;; melunko@47: melunko@47: dgux*) melunko@47: archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' melunko@47: hardcode_libdir_flag_spec_GCJ='-L$libdir' melunko@47: hardcode_shlibpath_var_GCJ=no melunko@47: ;; melunko@47: melunko@47: freebsd1*) melunko@47: ld_shlibs_GCJ=no melunko@47: ;; melunko@47: melunko@47: # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor melunko@47: # support. Future versions do this automatically, but an explicit c++rt0.o melunko@47: # does not break anything, and helps significantly (at the cost of a little melunko@47: # extra space). melunko@47: freebsd2.2*) melunko@47: archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' melunko@47: hardcode_libdir_flag_spec_GCJ='-R$libdir' melunko@47: hardcode_direct_GCJ=yes melunko@47: hardcode_shlibpath_var_GCJ=no melunko@47: ;; melunko@47: melunko@47: # Unfortunately, older versions of FreeBSD 2 do not have this feature. melunko@47: freebsd2*) melunko@47: archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' melunko@47: hardcode_direct_GCJ=yes melunko@47: hardcode_minus_L_GCJ=yes melunko@47: hardcode_shlibpath_var_GCJ=no melunko@47: ;; melunko@47: melunko@47: # FreeBSD 3 and greater uses gcc -shared to do shared libraries. melunko@47: freebsd* | kfreebsd*-gnu | dragonfly*) melunko@47: archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' melunko@47: hardcode_libdir_flag_spec_GCJ='-R$libdir' melunko@47: hardcode_direct_GCJ=yes melunko@47: hardcode_shlibpath_var_GCJ=no melunko@47: ;; melunko@47: melunko@47: hpux9*) melunko@47: if test "$GCC" = yes; then melunko@47: 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' melunko@47: else melunko@47: 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' melunko@47: fi melunko@47: hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' melunko@47: hardcode_libdir_separator_GCJ=: melunko@47: hardcode_direct_GCJ=yes melunko@47: melunko@47: # hardcode_minus_L: Not really in the search PATH, melunko@47: # but as the default location of the library. melunko@47: hardcode_minus_L_GCJ=yes melunko@47: export_dynamic_flag_spec_GCJ='${wl}-E' melunko@47: ;; melunko@47: melunko@47: hpux10* | hpux11*) melunko@47: if test "$GCC" = yes -a "$with_gnu_ld" = no; then melunko@47: case $host_cpu in melunko@47: hppa*64*|ia64*) melunko@47: archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' melunko@47: ;; melunko@47: *) melunko@47: archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' melunko@47: ;; melunko@47: esac melunko@47: else melunko@47: case $host_cpu in melunko@47: hppa*64*|ia64*) melunko@47: archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags' melunko@47: ;; melunko@47: *) melunko@47: archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' melunko@47: ;; melunko@47: esac melunko@47: fi melunko@47: if test "$with_gnu_ld" = no; then melunko@47: case $host_cpu in melunko@47: hppa*64*) melunko@47: hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' melunko@47: hardcode_libdir_flag_spec_ld_GCJ='+b $libdir' melunko@47: hardcode_libdir_separator_GCJ=: melunko@47: hardcode_direct_GCJ=no melunko@47: hardcode_shlibpath_var_GCJ=no melunko@47: ;; melunko@47: ia64*) melunko@47: hardcode_libdir_flag_spec_GCJ='-L$libdir' melunko@47: hardcode_direct_GCJ=no melunko@47: hardcode_shlibpath_var_GCJ=no melunko@47: melunko@47: # hardcode_minus_L: Not really in the search PATH, melunko@47: # but as the default location of the library. melunko@47: hardcode_minus_L_GCJ=yes melunko@47: ;; melunko@47: *) melunko@47: hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' melunko@47: hardcode_libdir_separator_GCJ=: melunko@47: hardcode_direct_GCJ=yes melunko@47: export_dynamic_flag_spec_GCJ='${wl}-E' melunko@47: melunko@47: # hardcode_minus_L: Not really in the search PATH, melunko@47: # but as the default location of the library. melunko@47: hardcode_minus_L_GCJ=yes melunko@47: ;; melunko@47: esac melunko@47: fi melunko@47: ;; melunko@47: melunko@47: irix5* | irix6* | nonstopux*) melunko@47: if test "$GCC" = yes; then melunko@47: 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' melunko@47: else melunko@47: 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' melunko@47: hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir' melunko@47: fi melunko@47: hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' melunko@47: hardcode_libdir_separator_GCJ=: melunko@47: link_all_deplibs_GCJ=yes melunko@47: ;; melunko@47: melunko@47: netbsd*) melunko@47: if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then melunko@47: archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out melunko@47: else melunko@47: archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF melunko@47: fi melunko@47: hardcode_libdir_flag_spec_GCJ='-R$libdir' melunko@47: hardcode_direct_GCJ=yes melunko@47: hardcode_shlibpath_var_GCJ=no melunko@47: ;; melunko@47: melunko@47: newsos6) melunko@47: archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' melunko@47: hardcode_direct_GCJ=yes melunko@47: hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' melunko@47: hardcode_libdir_separator_GCJ=: melunko@47: hardcode_shlibpath_var_GCJ=no melunko@47: ;; melunko@47: melunko@47: openbsd*) melunko@47: hardcode_direct_GCJ=yes melunko@47: hardcode_shlibpath_var_GCJ=no melunko@47: if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then melunko@47: archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' melunko@47: archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' melunko@47: hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' melunko@47: export_dynamic_flag_spec_GCJ='${wl}-E' melunko@47: else melunko@47: case $host_os in melunko@47: openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) melunko@47: archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' melunko@47: hardcode_libdir_flag_spec_GCJ='-R$libdir' melunko@47: ;; melunko@47: *) melunko@47: archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' melunko@47: hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' melunko@47: ;; melunko@47: esac melunko@47: fi melunko@47: ;; melunko@47: melunko@47: os2*) melunko@47: hardcode_libdir_flag_spec_GCJ='-L$libdir' melunko@47: hardcode_minus_L_GCJ=yes melunko@47: allow_undefined_flag_GCJ=unsupported melunko@47: 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' melunko@47: old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' melunko@47: ;; melunko@47: melunko@47: osf3*) melunko@47: if test "$GCC" = yes; then melunko@47: allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' melunko@47: 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' melunko@47: else melunko@47: allow_undefined_flag_GCJ=' -expect_unresolved \*' melunko@47: 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' melunko@47: fi melunko@47: hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' melunko@47: hardcode_libdir_separator_GCJ=: melunko@47: ;; melunko@47: melunko@47: osf4* | osf5*) # as osf3* with the addition of -msym flag melunko@47: if test "$GCC" = yes; then melunko@47: allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' melunko@47: 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' melunko@47: hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' melunko@47: else melunko@47: allow_undefined_flag_GCJ=' -expect_unresolved \*' melunko@47: 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' melunko@47: 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~ melunko@47: $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' melunko@47: melunko@47: # Both c and cxx compiler support -rpath directly melunko@47: hardcode_libdir_flag_spec_GCJ='-rpath $libdir' melunko@47: fi melunko@47: hardcode_libdir_separator_GCJ=: melunko@47: ;; melunko@47: melunko@47: sco3.2v5*) melunko@47: archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' melunko@47: hardcode_shlibpath_var_GCJ=no melunko@47: export_dynamic_flag_spec_GCJ='${wl}-Bexport' melunko@47: runpath_var=LD_RUN_PATH melunko@47: hardcode_runpath_var=yes melunko@47: ;; melunko@47: melunko@47: solaris*) melunko@47: no_undefined_flag_GCJ=' -z text' melunko@47: if test "$GCC" = yes; then melunko@47: wlarc='${wl}' melunko@47: archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' melunko@47: archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ melunko@47: $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' melunko@47: else melunko@47: wlarc='' melunko@47: archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' melunko@47: archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ melunko@47: $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' melunko@47: fi melunko@47: hardcode_libdir_flag_spec_GCJ='-R$libdir' melunko@47: hardcode_shlibpath_var_GCJ=no melunko@47: case $host_os in melunko@47: solaris2.[0-5] | solaris2.[0-5].*) ;; melunko@47: *) melunko@47: # The compiler driver will combine linker options so we melunko@47: # cannot just pass the convience library names through melunko@47: # without $wl, iff we do not link with $LD. melunko@47: # Luckily, gcc supports the same syntax we need for Sun Studio. melunko@47: # Supported since Solaris 2.6 (maybe 2.5.1?) melunko@47: case $wlarc in melunko@47: '') melunko@47: whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;; melunko@47: *) melunko@47: 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' ;; melunko@47: esac ;; melunko@47: esac melunko@47: link_all_deplibs_GCJ=yes melunko@47: ;; melunko@47: melunko@47: sunos4*) melunko@47: if test "x$host_vendor" = xsequent; then melunko@47: # Use $CC to link under sequent, because it throws in some extra .o melunko@47: # files that make .init and .fini sections work. melunko@47: archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' melunko@47: else melunko@47: archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' melunko@47: fi melunko@47: hardcode_libdir_flag_spec_GCJ='-L$libdir' melunko@47: hardcode_direct_GCJ=yes melunko@47: hardcode_minus_L_GCJ=yes melunko@47: hardcode_shlibpath_var_GCJ=no melunko@47: ;; melunko@47: melunko@47: sysv4) melunko@47: case $host_vendor in melunko@47: sni) melunko@47: archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' melunko@47: hardcode_direct_GCJ=yes # is this really true??? melunko@47: ;; melunko@47: siemens) melunko@47: ## LD is ld it makes a PLAMLIB melunko@47: ## CC just makes a GrossModule. melunko@47: archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' melunko@47: reload_cmds_GCJ='$CC -r -o $output$reload_objs' melunko@47: hardcode_direct_GCJ=no melunko@47: ;; melunko@47: motorola) melunko@47: archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' melunko@47: hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie melunko@47: ;; melunko@47: esac melunko@47: runpath_var='LD_RUN_PATH' melunko@47: hardcode_shlibpath_var_GCJ=no melunko@47: ;; melunko@47: melunko@47: sysv4.3*) melunko@47: archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' melunko@47: hardcode_shlibpath_var_GCJ=no melunko@47: export_dynamic_flag_spec_GCJ='-Bexport' melunko@47: ;; melunko@47: melunko@47: sysv4*MP*) melunko@47: if test -d /usr/nec; then melunko@47: archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' melunko@47: hardcode_shlibpath_var_GCJ=no melunko@47: runpath_var=LD_RUN_PATH melunko@47: hardcode_runpath_var=yes melunko@47: ld_shlibs_GCJ=yes melunko@47: fi melunko@47: ;; melunko@47: melunko@47: sysv4.2uw2*) melunko@47: archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' melunko@47: hardcode_direct_GCJ=yes melunko@47: hardcode_minus_L_GCJ=no melunko@47: hardcode_shlibpath_var_GCJ=no melunko@47: hardcode_runpath_var=yes melunko@47: runpath_var=LD_RUN_PATH melunko@47: ;; melunko@47: melunko@47: sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) melunko@47: no_undefined_flag_GCJ='${wl}-z ${wl}text' melunko@47: if test "$GCC" = yes; then melunko@47: archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' melunko@47: else melunko@47: archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' melunko@47: fi melunko@47: runpath_var='LD_RUN_PATH' melunko@47: hardcode_shlibpath_var_GCJ=no melunko@47: ;; melunko@47: melunko@47: sysv5*) melunko@47: no_undefined_flag_GCJ=' -z text' melunko@47: # $CC -shared without GNU ld will not create a library from C++ melunko@47: # object files and a static libstdc++, better avoid it by now melunko@47: archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' melunko@47: archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ melunko@47: $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' melunko@47: hardcode_libdir_flag_spec_GCJ= melunko@47: hardcode_shlibpath_var_GCJ=no melunko@47: runpath_var='LD_RUN_PATH' melunko@47: ;; melunko@47: melunko@47: uts4*) melunko@47: archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' melunko@47: hardcode_libdir_flag_spec_GCJ='-L$libdir' melunko@47: hardcode_shlibpath_var_GCJ=no melunko@47: ;; melunko@47: melunko@47: *) melunko@47: ld_shlibs_GCJ=no melunko@47: ;; melunko@47: esac melunko@47: fi melunko@47: melunko@47: echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5 melunko@47: echo "${ECHO_T}$ld_shlibs_GCJ" >&6 melunko@47: test "$ld_shlibs_GCJ" = no && can_build_shared=no melunko@47: melunko@47: variables_saved_for_relink="PATH $shlibpath_var $runpath_var" melunko@47: if test "$GCC" = yes; then melunko@47: variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" melunko@47: fi melunko@47: melunko@47: # melunko@47: # Do we need to explicitly link libc? melunko@47: # melunko@47: case "x$archive_cmds_need_lc_GCJ" in melunko@47: x|xyes) melunko@47: # Assume -lc should be added melunko@47: archive_cmds_need_lc_GCJ=yes melunko@47: melunko@47: if test "$enable_shared" = yes && test "$GCC" = yes; then melunko@47: case $archive_cmds_GCJ in melunko@47: *'~'*) melunko@47: # FIXME: we may have to deal with multi-command sequences. melunko@47: ;; melunko@47: '$CC '*) melunko@47: # Test whether the compiler implicitly links with -lc since on some melunko@47: # systems, -lgcc has to come before -lc. If gcc already passes -lc melunko@47: # to ld, don't add -lc before -lgcc. melunko@47: echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 melunko@47: echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 melunko@47: $rm conftest* melunko@47: printf "$lt_simple_compile_test_code" > conftest.$ac_ext melunko@47: melunko@47: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 melunko@47: (eval $ac_compile) 2>&5 melunko@47: ac_status=$? melunko@47: echo "$as_me:$LINENO: \$? = $ac_status" >&5 melunko@47: (exit $ac_status); } 2>conftest.err; then melunko@47: soname=conftest melunko@47: lib=conftest melunko@47: libobjs=conftest.$ac_objext melunko@47: deplibs= melunko@47: wl=$lt_prog_compiler_wl_GCJ melunko@47: compiler_flags=-v melunko@47: linker_flags=-v melunko@47: verstring= melunko@47: output_objdir=. melunko@47: libname=conftest melunko@47: lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ melunko@47: allow_undefined_flag_GCJ= melunko@47: if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 melunko@47: (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 melunko@47: ac_status=$? melunko@47: echo "$as_me:$LINENO: \$? = $ac_status" >&5 melunko@47: (exit $ac_status); } melunko@47: then melunko@47: archive_cmds_need_lc_GCJ=no melunko@47: else melunko@47: archive_cmds_need_lc_GCJ=yes melunko@47: fi melunko@47: allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag melunko@47: else melunko@47: cat conftest.err 1>&5 melunko@47: fi melunko@47: $rm conftest* melunko@47: echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5 melunko@47: echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6 melunko@47: ;; melunko@47: esac melunko@47: fi melunko@47: ;; melunko@47: esac melunko@47: melunko@47: echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 melunko@47: echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 melunko@47: library_names_spec= melunko@47: libname_spec='lib$name' melunko@47: soname_spec= melunko@47: shrext_cmds=".so" melunko@47: postinstall_cmds= melunko@47: postuninstall_cmds= melunko@47: finish_cmds= melunko@47: finish_eval= melunko@47: shlibpath_var= melunko@47: shlibpath_overrides_runpath=unknown melunko@47: version_type=none melunko@47: dynamic_linker="$host_os ld.so" melunko@47: sys_lib_dlsearch_path_spec="/lib /usr/lib" melunko@47: if test "$GCC" = yes; then melunko@47: sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` melunko@47: if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then melunko@47: # if the path contains ";" then we assume it to be the separator melunko@47: # otherwise default to the standard path separator (i.e. ":") - it is melunko@47: # assumed that no part of a normal pathname contains ";" but that should melunko@47: # okay in the real world where ";" in dirpaths is itself problematic. melunko@47: sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` melunko@47: else melunko@47: sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` melunko@47: fi melunko@47: else melunko@47: sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" melunko@47: fi melunko@47: need_lib_prefix=unknown melunko@47: hardcode_into_libs=no melunko@47: melunko@47: # when you set need_version to no, make sure it does not cause -set_version melunko@47: # flags to be left without arguments melunko@47: need_version=unknown melunko@47: melunko@47: case $host_os in melunko@47: aix3*) melunko@47: version_type=linux melunko@47: library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' melunko@47: shlibpath_var=LIBPATH melunko@47: melunko@47: # AIX 3 has no versioning support, so we append a major version to the name. melunko@47: soname_spec='${libname}${release}${shared_ext}$major' melunko@47: ;; melunko@47: melunko@47: aix4* | aix5*) melunko@47: version_type=linux melunko@47: need_lib_prefix=no melunko@47: need_version=no melunko@47: hardcode_into_libs=yes melunko@47: if test "$host_cpu" = ia64; then melunko@47: # AIX 5 supports IA64 melunko@47: library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' melunko@47: shlibpath_var=LD_LIBRARY_PATH melunko@47: else melunko@47: # With GCC up to 2.95.x, collect2 would create an import file melunko@47: # for dependence libraries. The import file would start with melunko@47: # the line `#! .'. This would cause the generated library to melunko@47: # depend on `.', always an invalid library. This was fixed in melunko@47: # development snapshots of GCC prior to 3.0. melunko@47: case $host_os in melunko@47: aix4 | aix4.[01] | aix4.[01].*) melunko@47: if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' melunko@47: echo ' yes ' melunko@47: echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then melunko@47: : melunko@47: else melunko@47: can_build_shared=no melunko@47: fi melunko@47: ;; melunko@47: esac melunko@47: # AIX (on Power*) has no versioning support, so currently we can not hardcode correct melunko@47: # soname into executable. Probably we can add versioning support to melunko@47: # collect2, so additional links can be useful in future. melunko@47: if test "$aix_use_runtimelinking" = yes; then melunko@47: # If using run time linking (on AIX 4.2 or later) use lib.so melunko@47: # instead of lib.a to let people know that these are not melunko@47: # typical AIX shared libraries. melunko@47: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' melunko@47: else melunko@47: # We preserve .a as extension for shared libraries through AIX4.2 melunko@47: # and later when we are not doing run time linking. melunko@47: library_names_spec='${libname}${release}.a $libname.a' melunko@47: soname_spec='${libname}${release}${shared_ext}$major' melunko@47: fi melunko@47: shlibpath_var=LIBPATH melunko@47: fi melunko@47: ;; melunko@47: melunko@47: amigaos*) melunko@47: library_names_spec='$libname.ixlibrary $libname.a' melunko@47: # Create ${libname}_ixlibrary.a entries in /sys/libs. melunko@47: 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' melunko@47: ;; melunko@47: melunko@47: beos*) melunko@47: library_names_spec='${libname}${shared_ext}' melunko@47: dynamic_linker="$host_os ld.so" melunko@47: shlibpath_var=LIBRARY_PATH melunko@47: ;; melunko@47: melunko@47: bsdi[45]*) melunko@47: version_type=linux melunko@47: need_version=no melunko@47: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' melunko@47: soname_spec='${libname}${release}${shared_ext}$major' melunko@47: finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' melunko@47: shlibpath_var=LD_LIBRARY_PATH melunko@47: sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" melunko@47: sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" melunko@47: # the default ld.so.conf also contains /usr/contrib/lib and melunko@47: # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow melunko@47: # libtool to hard-code these into programs melunko@47: ;; melunko@47: melunko@47: cygwin* | mingw* | pw32*) melunko@47: version_type=windows melunko@47: shrext_cmds=".dll" melunko@47: need_version=no melunko@47: need_lib_prefix=no melunko@47: melunko@47: case $GCC,$host_os in melunko@47: yes,cygwin* | yes,mingw* | yes,pw32*) melunko@47: library_names_spec='$libname.dll.a' melunko@47: # DLL is installed to $(libdir)/../bin by postinstall_cmds melunko@47: postinstall_cmds='base_file=`basename \${file}`~ melunko@47: dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ melunko@47: dldir=$destdir/`dirname \$dlpath`~ melunko@47: test -d \$dldir || mkdir -p \$dldir~ melunko@47: $install_prog $dir/$dlname \$dldir/$dlname~ melunko@47: chmod a+x \$dldir/$dlname' melunko@47: postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ melunko@47: dlpath=$dir/\$dldll~ melunko@47: $rm \$dlpath' melunko@47: shlibpath_overrides_runpath=yes melunko@47: melunko@47: case $host_os in melunko@47: cygwin*) melunko@47: # Cygwin DLLs use 'cyg' prefix rather than 'lib' melunko@47: soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' melunko@47: sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" melunko@47: ;; melunko@47: mingw*) melunko@47: # MinGW DLLs use traditional 'lib' prefix melunko@47: soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' melunko@47: sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` melunko@47: if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then melunko@47: # It is most probably a Windows format PATH printed by melunko@47: # mingw gcc, but we are running on Cygwin. Gcc prints its search melunko@47: # path with ; separators, and with drive letters. We can handle the melunko@47: # drive letters (cygwin fileutils understands them), so leave them, melunko@47: # especially as we might pass files found there to a mingw objdump, melunko@47: # which wouldn't understand a cygwinified path. Ahh. melunko@47: sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` melunko@47: else melunko@47: sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` melunko@47: fi melunko@47: ;; melunko@47: pw32*) melunko@47: # pw32 DLLs use 'pw' prefix rather than 'lib' melunko@47: library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' melunko@47: ;; melunko@47: esac melunko@47: ;; melunko@47: melunko@47: *) melunko@47: library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' melunko@47: ;; melunko@47: esac melunko@47: dynamic_linker='Win32 ld.exe' melunko@47: # FIXME: first we should search . and the directory the executable is in melunko@47: shlibpath_var=PATH melunko@47: ;; melunko@47: melunko@47: darwin* | rhapsody*) melunko@47: dynamic_linker="$host_os dyld" melunko@47: version_type=darwin melunko@47: need_lib_prefix=no melunko@47: need_version=no melunko@47: library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' melunko@47: soname_spec='${libname}${release}${major}$shared_ext' melunko@47: shlibpath_overrides_runpath=yes melunko@47: shlibpath_var=DYLD_LIBRARY_PATH melunko@47: shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' melunko@47: # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. melunko@47: if test "$GCC" = yes; then melunko@47: 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"` melunko@47: else melunko@47: sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' melunko@47: fi melunko@47: sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' melunko@47: ;; melunko@47: melunko@47: dgux*) melunko@47: version_type=linux melunko@47: need_lib_prefix=no melunko@47: need_version=no melunko@47: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' melunko@47: soname_spec='${libname}${release}${shared_ext}$major' melunko@47: shlibpath_var=LD_LIBRARY_PATH melunko@47: ;; melunko@47: melunko@47: freebsd1*) melunko@47: dynamic_linker=no melunko@47: ;; melunko@47: melunko@47: kfreebsd*-gnu) melunko@47: version_type=linux melunko@47: need_lib_prefix=no melunko@47: need_version=no melunko@47: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' melunko@47: soname_spec='${libname}${release}${shared_ext}$major' melunko@47: shlibpath_var=LD_LIBRARY_PATH melunko@47: shlibpath_overrides_runpath=no melunko@47: hardcode_into_libs=yes melunko@47: dynamic_linker='GNU ld.so' melunko@47: ;; melunko@47: melunko@47: freebsd* | dragonfly*) melunko@47: # DragonFly does not have aout. When/if they implement a new melunko@47: # versioning mechanism, adjust this. melunko@47: if test -x /usr/bin/objformat; then melunko@47: objformat=`/usr/bin/objformat` melunko@47: else melunko@47: case $host_os in melunko@47: freebsd[123]*) objformat=aout ;; melunko@47: *) objformat=elf ;; melunko@47: esac melunko@47: fi melunko@47: version_type=freebsd-$objformat melunko@47: case $version_type in melunko@47: freebsd-elf*) melunko@47: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' melunko@47: need_version=no melunko@47: need_lib_prefix=no melunko@47: ;; melunko@47: freebsd-*) melunko@47: library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' melunko@47: need_version=yes melunko@47: ;; melunko@47: esac melunko@47: shlibpath_var=LD_LIBRARY_PATH melunko@47: case $host_os in melunko@47: freebsd2*) melunko@47: shlibpath_overrides_runpath=yes melunko@47: ;; melunko@47: freebsd3.[01]* | freebsdelf3.[01]*) melunko@47: shlibpath_overrides_runpath=yes melunko@47: hardcode_into_libs=yes melunko@47: ;; melunko@47: *) # from 3.2 on melunko@47: shlibpath_overrides_runpath=no melunko@47: hardcode_into_libs=yes melunko@47: ;; melunko@47: esac melunko@47: ;; melunko@47: melunko@47: gnu*) melunko@47: version_type=linux melunko@47: need_lib_prefix=no melunko@47: need_version=no melunko@47: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' melunko@47: soname_spec='${libname}${release}${shared_ext}$major' melunko@47: shlibpath_var=LD_LIBRARY_PATH melunko@47: hardcode_into_libs=yes melunko@47: ;; melunko@47: melunko@47: hpux9* | hpux10* | hpux11*) melunko@47: # Give a soname corresponding to the major version so that dld.sl refuses to melunko@47: # link against other versions. melunko@47: version_type=sunos melunko@47: need_lib_prefix=no melunko@47: need_version=no melunko@47: case $host_cpu in melunko@47: ia64*) melunko@47: shrext_cmds='.so' melunko@47: hardcode_into_libs=yes melunko@47: dynamic_linker="$host_os dld.so" melunko@47: shlibpath_var=LD_LIBRARY_PATH melunko@47: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. melunko@47: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' melunko@47: soname_spec='${libname}${release}${shared_ext}$major' melunko@47: if test "X$HPUX_IA64_MODE" = X32; then melunko@47: sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" melunko@47: else melunko@47: sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" melunko@47: fi melunko@47: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec melunko@47: ;; melunko@47: hppa*64*) melunko@47: shrext_cmds='.sl' melunko@47: hardcode_into_libs=yes melunko@47: dynamic_linker="$host_os dld.sl" melunko@47: shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH melunko@47: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. melunko@47: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' melunko@47: soname_spec='${libname}${release}${shared_ext}$major' melunko@47: sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" melunko@47: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec melunko@47: ;; melunko@47: *) melunko@47: shrext_cmds='.sl' melunko@47: dynamic_linker="$host_os dld.sl" melunko@47: shlibpath_var=SHLIB_PATH melunko@47: shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH melunko@47: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' melunko@47: soname_spec='${libname}${release}${shared_ext}$major' melunko@47: ;; melunko@47: esac melunko@47: # HP-UX runs *really* slowly unless shared libraries are mode 555. melunko@47: postinstall_cmds='chmod 555 $lib' melunko@47: ;; melunko@47: melunko@47: irix5* | irix6* | nonstopux*) melunko@47: case $host_os in melunko@47: nonstopux*) version_type=nonstopux ;; melunko@47: *) melunko@47: if test "$lt_cv_prog_gnu_ld" = yes; then melunko@47: version_type=linux melunko@47: else melunko@47: version_type=irix melunko@47: fi ;; melunko@47: esac melunko@47: need_lib_prefix=no melunko@47: need_version=no melunko@47: soname_spec='${libname}${release}${shared_ext}$major' melunko@47: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' melunko@47: case $host_os in melunko@47: irix5* | nonstopux*) melunko@47: libsuff= shlibsuff= melunko@47: ;; melunko@47: *) melunko@47: case $LD in # libtool.m4 will add one of these switches to LD melunko@47: *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") melunko@47: libsuff= shlibsuff= libmagic=32-bit;; melunko@47: *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") melunko@47: libsuff=32 shlibsuff=N32 libmagic=N32;; melunko@47: *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") melunko@47: libsuff=64 shlibsuff=64 libmagic=64-bit;; melunko@47: *) libsuff= shlibsuff= libmagic=never-match;; melunko@47: esac melunko@47: ;; melunko@47: esac melunko@47: shlibpath_var=LD_LIBRARY${shlibsuff}_PATH melunko@47: shlibpath_overrides_runpath=no melunko@47: sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" melunko@47: sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" melunko@47: hardcode_into_libs=yes melunko@47: ;; melunko@47: melunko@47: # No shared lib support for Linux oldld, aout, or coff. melunko@47: linux*oldld* | linux*aout* | linux*coff*) melunko@47: dynamic_linker=no melunko@47: ;; melunko@47: melunko@47: # This must be Linux ELF. melunko@47: linux*) melunko@47: version_type=linux melunko@47: need_lib_prefix=no melunko@47: need_version=no melunko@47: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' melunko@47: soname_spec='${libname}${release}${shared_ext}$major' melunko@47: finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' melunko@47: shlibpath_var=LD_LIBRARY_PATH melunko@47: shlibpath_overrides_runpath=no melunko@47: # This implies no fast_install, which is unacceptable. melunko@47: # Some rework will be needed to allow for fast_install melunko@47: # before this can be enabled. melunko@47: hardcode_into_libs=yes melunko@47: melunko@47: # Append ld.so.conf contents to the search path melunko@47: if test -f /etc/ld.so.conf; then melunko@47: lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` melunko@47: sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" melunko@47: fi melunko@47: melunko@47: # We used to test for /lib/ld.so.1 and disable shared libraries on melunko@47: # powerpc, because MkLinux only supported shared libraries with the melunko@47: # GNU dynamic linker. Since this was broken with cross compilers, melunko@47: # most powerpc-linux boxes support dynamic linking these days and melunko@47: # people can always --disable-shared, the test was removed, and we melunko@47: # assume the GNU/Linux dynamic linker is in use. melunko@47: dynamic_linker='GNU/Linux ld.so' melunko@47: ;; melunko@47: melunko@47: knetbsd*-gnu) melunko@47: version_type=linux melunko@47: need_lib_prefix=no melunko@47: need_version=no melunko@47: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' melunko@47: soname_spec='${libname}${release}${shared_ext}$major' melunko@47: shlibpath_var=LD_LIBRARY_PATH melunko@47: shlibpath_overrides_runpath=no melunko@47: hardcode_into_libs=yes melunko@47: dynamic_linker='GNU ld.so' melunko@47: ;; melunko@47: melunko@47: netbsd*) melunko@47: version_type=sunos melunko@47: need_lib_prefix=no melunko@47: need_version=no melunko@47: if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then melunko@47: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' melunko@47: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' melunko@47: dynamic_linker='NetBSD (a.out) ld.so' melunko@47: else melunko@47: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' melunko@47: soname_spec='${libname}${release}${shared_ext}$major' melunko@47: dynamic_linker='NetBSD ld.elf_so' melunko@47: fi melunko@47: shlibpath_var=LD_LIBRARY_PATH melunko@47: shlibpath_overrides_runpath=yes melunko@47: hardcode_into_libs=yes melunko@47: ;; melunko@47: melunko@47: newsos6) melunko@47: version_type=linux melunko@47: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' melunko@47: shlibpath_var=LD_LIBRARY_PATH melunko@47: shlibpath_overrides_runpath=yes melunko@47: ;; melunko@47: melunko@47: nto-qnx*) melunko@47: version_type=linux melunko@47: need_lib_prefix=no melunko@47: need_version=no melunko@47: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' melunko@47: soname_spec='${libname}${release}${shared_ext}$major' melunko@47: shlibpath_var=LD_LIBRARY_PATH melunko@47: shlibpath_overrides_runpath=yes melunko@47: ;; melunko@47: melunko@47: openbsd*) melunko@47: version_type=sunos melunko@47: need_lib_prefix=no melunko@47: # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. melunko@47: case $host_os in melunko@47: openbsd3.3 | openbsd3.3.*) need_version=yes ;; melunko@47: *) need_version=no ;; melunko@47: esac melunko@47: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' melunko@47: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' melunko@47: shlibpath_var=LD_LIBRARY_PATH melunko@47: if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then melunko@47: case $host_os in melunko@47: openbsd2.[89] | openbsd2.[89].*) melunko@47: shlibpath_overrides_runpath=no melunko@47: ;; melunko@47: *) melunko@47: shlibpath_overrides_runpath=yes melunko@47: ;; melunko@47: esac melunko@47: else melunko@47: shlibpath_overrides_runpath=yes melunko@47: fi melunko@47: ;; melunko@47: melunko@47: os2*) melunko@47: libname_spec='$name' melunko@47: shrext_cmds=".dll" melunko@47: need_lib_prefix=no melunko@47: library_names_spec='$libname${shared_ext} $libname.a' melunko@47: dynamic_linker='OS/2 ld.exe' melunko@47: shlibpath_var=LIBPATH melunko@47: ;; melunko@47: melunko@47: osf3* | osf4* | osf5*) melunko@47: version_type=osf melunko@47: need_lib_prefix=no melunko@47: need_version=no melunko@47: soname_spec='${libname}${release}${shared_ext}$major' melunko@47: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' melunko@47: shlibpath_var=LD_LIBRARY_PATH melunko@47: sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" melunko@47: sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" melunko@47: ;; melunko@47: melunko@47: sco3.2v5*) melunko@47: version_type=osf melunko@47: soname_spec='${libname}${release}${shared_ext}$major' melunko@47: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' melunko@47: shlibpath_var=LD_LIBRARY_PATH melunko@47: ;; melunko@47: melunko@47: solaris*) melunko@47: version_type=linux melunko@47: need_lib_prefix=no melunko@47: need_version=no melunko@47: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' melunko@47: soname_spec='${libname}${release}${shared_ext}$major' melunko@47: shlibpath_var=LD_LIBRARY_PATH melunko@47: shlibpath_overrides_runpath=yes melunko@47: hardcode_into_libs=yes melunko@47: # ldd complains unless libraries are executable melunko@47: postinstall_cmds='chmod +x $lib' melunko@47: ;; melunko@47: melunko@47: sunos4*) melunko@47: version_type=sunos melunko@47: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' melunko@47: finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' melunko@47: shlibpath_var=LD_LIBRARY_PATH melunko@47: shlibpath_overrides_runpath=yes melunko@47: if test "$with_gnu_ld" = yes; then melunko@47: need_lib_prefix=no melunko@47: fi melunko@47: need_version=yes melunko@47: ;; melunko@47: melunko@47: sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) melunko@47: version_type=linux melunko@47: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' melunko@47: soname_spec='${libname}${release}${shared_ext}$major' melunko@47: shlibpath_var=LD_LIBRARY_PATH melunko@47: case $host_vendor in melunko@47: sni) melunko@47: shlibpath_overrides_runpath=no melunko@47: need_lib_prefix=no melunko@47: export_dynamic_flag_spec='${wl}-Blargedynsym' melunko@47: runpath_var=LD_RUN_PATH melunko@47: ;; melunko@47: siemens) melunko@47: need_lib_prefix=no melunko@47: ;; melunko@47: motorola) melunko@47: need_lib_prefix=no melunko@47: need_version=no melunko@47: shlibpath_overrides_runpath=no melunko@47: sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' melunko@47: ;; melunko@47: esac melunko@47: ;; melunko@47: melunko@47: sysv4*MP*) melunko@47: if test -d /usr/nec ;then melunko@47: version_type=linux melunko@47: library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' melunko@47: soname_spec='$libname${shared_ext}.$major' melunko@47: shlibpath_var=LD_LIBRARY_PATH melunko@47: fi melunko@47: ;; melunko@47: melunko@47: uts4*) melunko@47: version_type=linux melunko@47: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' melunko@47: soname_spec='${libname}${release}${shared_ext}$major' melunko@47: shlibpath_var=LD_LIBRARY_PATH melunko@47: ;; melunko@47: melunko@47: *) melunko@47: dynamic_linker=no melunko@47: ;; melunko@47: esac melunko@47: echo "$as_me:$LINENO: result: $dynamic_linker" >&5 melunko@47: echo "${ECHO_T}$dynamic_linker" >&6 melunko@47: test "$dynamic_linker" = no && can_build_shared=no melunko@47: melunko@47: echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 melunko@47: echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 melunko@47: hardcode_action_GCJ= melunko@47: if test -n "$hardcode_libdir_flag_spec_GCJ" || \ melunko@47: test -n "$runpath_var_GCJ" || \ melunko@47: test "X$hardcode_automatic_GCJ" = "Xyes" ; then melunko@47: melunko@47: # We can hardcode non-existant directories. melunko@47: if test "$hardcode_direct_GCJ" != no && melunko@47: # If the only mechanism to avoid hardcoding is shlibpath_var, we melunko@47: # have to relink, otherwise we might link with an installed library melunko@47: # when we should be linking with a yet-to-be-installed one melunko@47: ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no && melunko@47: test "$hardcode_minus_L_GCJ" != no; then melunko@47: # Linking always hardcodes the temporary library directory. melunko@47: hardcode_action_GCJ=relink melunko@47: else melunko@47: # We can link without hardcoding, and we can hardcode nonexisting dirs. melunko@47: hardcode_action_GCJ=immediate melunko@47: fi melunko@47: else melunko@47: # We cannot hardcode anything, or else we can only hardcode existing melunko@47: # directories. melunko@47: hardcode_action_GCJ=unsupported melunko@47: fi melunko@47: echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5 melunko@47: echo "${ECHO_T}$hardcode_action_GCJ" >&6 melunko@47: melunko@47: if test "$hardcode_action_GCJ" = relink; then melunko@47: # Fast installation is not supported melunko@47: enable_fast_install=no melunko@47: elif test "$shlibpath_overrides_runpath" = yes || melunko@47: test "$enable_shared" = no; then melunko@47: # Fast installation is not necessary melunko@47: enable_fast_install=needless melunko@47: fi melunko@47: melunko@47: striplib= melunko@47: old_striplib= melunko@47: echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 melunko@47: echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 melunko@47: if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then melunko@47: test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" melunko@47: test -z "$striplib" && striplib="$STRIP --strip-unneeded" melunko@47: echo "$as_me:$LINENO: result: yes" >&5 melunko@47: echo "${ECHO_T}yes" >&6 melunko@47: else melunko@47: # FIXME - insert some real tests, host_os isn't really good enough melunko@47: case $host_os in melunko@47: darwin*) melunko@47: if test -n "$STRIP" ; then melunko@47: striplib="$STRIP -x" melunko@47: echo "$as_me:$LINENO: result: yes" >&5 melunko@47: echo "${ECHO_T}yes" >&6 melunko@47: else melunko@47: echo "$as_me:$LINENO: result: no" >&5 melunko@47: echo "${ECHO_T}no" >&6 melunko@47: fi melunko@47: ;; melunko@47: *) melunko@47: echo "$as_me:$LINENO: result: no" >&5 melunko@47: echo "${ECHO_T}no" >&6 melunko@47: ;; melunko@47: esac melunko@47: fi melunko@47: melunko@47: if test "x$enable_dlopen" != xyes; then melunko@47: enable_dlopen=unknown melunko@47: enable_dlopen_self=unknown melunko@47: enable_dlopen_self_static=unknown melunko@47: else melunko@47: lt_cv_dlopen=no melunko@47: lt_cv_dlopen_libs= melunko@47: melunko@47: case $host_os in melunko@47: beos*) melunko@47: lt_cv_dlopen="load_add_on" melunko@47: lt_cv_dlopen_libs= melunko@47: lt_cv_dlopen_self=yes melunko@47: ;; melunko@47: melunko@47: mingw* | pw32*) melunko@47: lt_cv_dlopen="LoadLibrary" melunko@47: lt_cv_dlopen_libs= melunko@47: ;; melunko@47: melunko@47: cygwin*) melunko@47: lt_cv_dlopen="dlopen" melunko@47: lt_cv_dlopen_libs= melunko@47: ;; melunko@47: melunko@47: darwin*) melunko@47: # if libdl is installed we need to link against it melunko@47: echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 melunko@47: echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 melunko@47: if test "${ac_cv_lib_dl_dlopen+set}" = set; then melunko@47: echo $ECHO_N "(cached) $ECHO_C" >&6 melunko@47: else melunko@47: ac_check_lib_save_LIBS=$LIBS melunko@47: LIBS="-ldl $LIBS" melunko@47: cat >conftest.$ac_ext <<_ACEOF melunko@47: /* confdefs.h. */ melunko@47: _ACEOF melunko@47: cat confdefs.h >>conftest.$ac_ext melunko@47: cat >>conftest.$ac_ext <<_ACEOF melunko@47: /* end confdefs.h. */ melunko@47: melunko@47: /* Override any gcc2 internal prototype to avoid an error. */ melunko@47: #ifdef __cplusplus melunko@47: extern "C" melunko@47: #endif melunko@47: /* We use char because int might match the return type of a gcc2 melunko@47: builtin and then its argument prototype would still apply. */ melunko@47: char dlopen (); melunko@47: int melunko@47: main () melunko@47: { melunko@47: dlopen (); melunko@47: ; melunko@47: return 0; melunko@47: } melunko@47: _ACEOF melunko@47: rm -f conftest.$ac_objext conftest$ac_exeext melunko@47: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 melunko@47: (eval $ac_link) 2>conftest.er1 melunko@47: ac_status=$? melunko@47: grep -v '^ *+' conftest.er1 >conftest.err melunko@47: rm -f conftest.er1 melunko@47: cat conftest.err >&5 melunko@47: echo "$as_me:$LINENO: \$? = $ac_status" >&5 melunko@47: (exit $ac_status); } && melunko@47: { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' melunko@47: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 melunko@47: (eval $ac_try) 2>&5 melunko@47: ac_status=$? melunko@47: echo "$as_me:$LINENO: \$? = $ac_status" >&5 melunko@47: (exit $ac_status); }; } && melunko@47: { ac_try='test -s conftest$ac_exeext' melunko@47: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 melunko@47: (eval $ac_try) 2>&5 melunko@47: ac_status=$? melunko@47: echo "$as_me:$LINENO: \$? = $ac_status" >&5 melunko@47: (exit $ac_status); }; }; then melunko@47: ac_cv_lib_dl_dlopen=yes melunko@47: else melunko@47: echo "$as_me: failed program was:" >&5 melunko@47: sed 's/^/| /' conftest.$ac_ext >&5 melunko@47: melunko@47: ac_cv_lib_dl_dlopen=no melunko@47: fi melunko@47: rm -f conftest.err conftest.$ac_objext \ melunko@47: conftest$ac_exeext conftest.$ac_ext melunko@47: LIBS=$ac_check_lib_save_LIBS melunko@47: fi melunko@47: echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 melunko@47: echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 melunko@47: if test $ac_cv_lib_dl_dlopen = yes; then melunko@47: lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" melunko@47: else melunko@47: melunko@47: lt_cv_dlopen="dyld" melunko@47: lt_cv_dlopen_libs= melunko@47: lt_cv_dlopen_self=yes melunko@47: melunko@47: fi melunko@47: melunko@47: ;; melunko@47: melunko@47: *) melunko@47: echo "$as_me:$LINENO: checking for shl_load" >&5 melunko@47: echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 melunko@47: if test "${ac_cv_func_shl_load+set}" = set; then melunko@47: echo $ECHO_N "(cached) $ECHO_C" >&6 melunko@47: else melunko@47: cat >conftest.$ac_ext <<_ACEOF melunko@47: /* confdefs.h. */ melunko@47: _ACEOF melunko@47: cat confdefs.h >>conftest.$ac_ext melunko@47: cat >>conftest.$ac_ext <<_ACEOF melunko@47: /* end confdefs.h. */ melunko@47: /* Define shl_load to an innocuous variant, in case declares shl_load. melunko@47: For example, HP-UX 11i declares gettimeofday. */ melunko@47: #define shl_load innocuous_shl_load melunko@47: melunko@47: /* System header to define __stub macros and hopefully few prototypes, melunko@47: which can conflict with char shl_load (); below. melunko@47: Prefer to if __STDC__ is defined, since melunko@47: exists even on freestanding compilers. */ melunko@47: melunko@47: #ifdef __STDC__ melunko@47: # include melunko@47: #else melunko@47: # include melunko@47: #endif melunko@47: melunko@47: #undef shl_load melunko@47: melunko@47: /* Override any gcc2 internal prototype to avoid an error. */ melunko@47: #ifdef __cplusplus melunko@47: extern "C" melunko@47: { melunko@47: #endif melunko@47: /* We use char because int might match the return type of a gcc2 melunko@47: builtin and then its argument prototype would still apply. */ melunko@47: char shl_load (); melunko@47: /* The GNU C library defines this for functions which it implements melunko@47: to always fail with ENOSYS. Some functions are actually named melunko@47: something starting with __ and the normal name is an alias. */ melunko@47: #if defined (__stub_shl_load) || defined (__stub___shl_load) melunko@47: choke me melunko@47: #else melunko@47: char (*f) () = shl_load; melunko@47: #endif melunko@47: #ifdef __cplusplus melunko@47: } melunko@47: #endif melunko@47: melunko@47: int melunko@47: main () melunko@47: { melunko@47: return f != shl_load; melunko@47: ; melunko@47: return 0; melunko@47: } melunko@47: _ACEOF melunko@47: rm -f conftest.$ac_objext conftest$ac_exeext melunko@47: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 melunko@47: (eval $ac_link) 2>conftest.er1 melunko@47: ac_status=$? melunko@47: grep -v '^ *+' conftest.er1 >conftest.err melunko@47: rm -f conftest.er1 melunko@47: cat conftest.err >&5 melunko@47: echo "$as_me:$LINENO: \$? = $ac_status" >&5 melunko@47: (exit $ac_status); } && melunko@47: { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' melunko@47: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 melunko@47: (eval $ac_try) 2>&5 melunko@47: ac_status=$? melunko@47: echo "$as_me:$LINENO: \$? = $ac_status" >&5 melunko@47: (exit $ac_status); }; } && melunko@47: { ac_try='test -s conftest$ac_exeext' melunko@47: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 melunko@47: (eval $ac_try) 2>&5 melunko@47: ac_status=$? melunko@47: echo "$as_me:$LINENO: \$? = $ac_status" >&5 melunko@47: (exit $ac_status); }; }; then melunko@47: ac_cv_func_shl_load=yes melunko@47: else melunko@47: echo "$as_me: failed program was:" >&5 melunko@47: sed 's/^/| /' conftest.$ac_ext >&5 melunko@47: melunko@47: ac_cv_func_shl_load=no melunko@47: fi melunko@47: rm -f conftest.err conftest.$ac_objext \ melunko@47: conftest$ac_exeext conftest.$ac_ext melunko@47: fi melunko@47: echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 melunko@47: echo "${ECHO_T}$ac_cv_func_shl_load" >&6 melunko@47: if test $ac_cv_func_shl_load = yes; then melunko@47: lt_cv_dlopen="shl_load" melunko@47: else melunko@47: echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 melunko@47: echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 melunko@47: if test "${ac_cv_lib_dld_shl_load+set}" = set; then melunko@47: echo $ECHO_N "(cached) $ECHO_C" >&6 melunko@47: else melunko@47: ac_check_lib_save_LIBS=$LIBS melunko@47: LIBS="-ldld $LIBS" melunko@47: cat >conftest.$ac_ext <<_ACEOF melunko@47: /* confdefs.h. */ melunko@47: _ACEOF melunko@47: cat confdefs.h >>conftest.$ac_ext melunko@47: cat >>conftest.$ac_ext <<_ACEOF melunko@47: /* end confdefs.h. */ melunko@47: melunko@47: /* Override any gcc2 internal prototype to avoid an error. */ melunko@47: #ifdef __cplusplus melunko@47: extern "C" melunko@47: #endif melunko@47: /* We use char because int might match the return type of a gcc2 melunko@47: builtin and then its argument prototype would still apply. */ melunko@47: char shl_load (); melunko@47: int melunko@47: main () melunko@47: { melunko@47: shl_load (); melunko@47: ; melunko@47: return 0; melunko@47: } melunko@47: _ACEOF melunko@47: rm -f conftest.$ac_objext conftest$ac_exeext melunko@47: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 melunko@47: (eval $ac_link) 2>conftest.er1 melunko@47: ac_status=$? melunko@47: grep -v '^ *+' conftest.er1 >conftest.err melunko@47: rm -f conftest.er1 melunko@47: cat conftest.err >&5 melunko@47: echo "$as_me:$LINENO: \$? = $ac_status" >&5 melunko@47: (exit $ac_status); } && melunko@47: { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' melunko@47: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 melunko@47: (eval $ac_try) 2>&5 melunko@47: ac_status=$? melunko@47: echo "$as_me:$LINENO: \$? = $ac_status" >&5 melunko@47: (exit $ac_status); }; } && melunko@47: { ac_try='test -s conftest$ac_exeext' melunko@47: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 melunko@47: (eval $ac_try) 2>&5 melunko@47: ac_status=$? melunko@47: echo "$as_me:$LINENO: \$? = $ac_status" >&5 melunko@47: (exit $ac_status); }; }; then melunko@47: ac_cv_lib_dld_shl_load=yes melunko@47: else melunko@47: echo "$as_me: failed program was:" >&5 melunko@47: sed 's/^/| /' conftest.$ac_ext >&5 melunko@47: melunko@47: ac_cv_lib_dld_shl_load=no melunko@47: fi melunko@47: rm -f conftest.err conftest.$ac_objext \ melunko@47: conftest$ac_exeext conftest.$ac_ext melunko@47: LIBS=$ac_check_lib_save_LIBS melunko@47: fi melunko@47: echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 melunko@47: echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 melunko@47: if test $ac_cv_lib_dld_shl_load = yes; then melunko@47: lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" melunko@47: else melunko@47: echo "$as_me:$LINENO: checking for dlopen" >&5 melunko@47: echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 melunko@47: if test "${ac_cv_func_dlopen+set}" = set; then melunko@47: echo $ECHO_N "(cached) $ECHO_C" >&6 melunko@47: else melunko@47: cat >conftest.$ac_ext <<_ACEOF melunko@47: /* confdefs.h. */ melunko@47: _ACEOF melunko@47: cat confdefs.h >>conftest.$ac_ext melunko@47: cat >>conftest.$ac_ext <<_ACEOF melunko@47: /* end confdefs.h. */ melunko@47: /* Define dlopen to an innocuous variant, in case declares dlopen. melunko@47: For example, HP-UX 11i declares gettimeofday. */ melunko@47: #define dlopen innocuous_dlopen melunko@47: melunko@47: /* System header to define __stub macros and hopefully few prototypes, melunko@47: which can conflict with char dlopen (); below. melunko@47: Prefer to if __STDC__ is defined, since melunko@47: exists even on freestanding compilers. */ melunko@47: melunko@47: #ifdef __STDC__ melunko@47: # include melunko@47: #else melunko@47: # include melunko@47: #endif melunko@47: melunko@47: #undef dlopen melunko@47: melunko@47: /* Override any gcc2 internal prototype to avoid an error. */ melunko@47: #ifdef __cplusplus melunko@47: extern "C" melunko@47: { melunko@47: #endif melunko@47: /* We use char because int might match the return type of a gcc2 melunko@47: builtin and then its argument prototype would still apply. */ melunko@47: char dlopen (); melunko@47: /* The GNU C library defines this for functions which it implements melunko@47: to always fail with ENOSYS. Some functions are actually named melunko@47: something starting with __ and the normal name is an alias. */ melunko@47: #if defined (__stub_dlopen) || defined (__stub___dlopen) melunko@47: choke me melunko@47: #else melunko@47: char (*f) () = dlopen; melunko@47: #endif melunko@47: #ifdef __cplusplus melunko@47: } melunko@47: #endif melunko@47: melunko@47: int melunko@47: main () melunko@47: { melunko@47: return f != dlopen; melunko@47: ; melunko@47: return 0; melunko@47: } melunko@47: _ACEOF melunko@47: rm -f conftest.$ac_objext conftest$ac_exeext melunko@47: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 melunko@47: (eval $ac_link) 2>conftest.er1 melunko@47: ac_status=$? melunko@47: grep -v '^ *+' conftest.er1 >conftest.err melunko@47: rm -f conftest.er1 melunko@47: cat conftest.err >&5 melunko@47: echo "$as_me:$LINENO: \$? = $ac_status" >&5 melunko@47: (exit $ac_status); } && melunko@47: { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' melunko@47: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 melunko@47: (eval $ac_try) 2>&5 melunko@47: ac_status=$? melunko@47: echo "$as_me:$LINENO: \$? = $ac_status" >&5 melunko@47: (exit $ac_status); }; } && melunko@47: { ac_try='test -s conftest$ac_exeext' melunko@47: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 melunko@47: (eval $ac_try) 2>&5 melunko@47: ac_status=$? melunko@47: echo "$as_me:$LINENO: \$? = $ac_status" >&5 melunko@47: (exit $ac_status); }; }; then melunko@47: ac_cv_func_dlopen=yes melunko@47: else melunko@47: echo "$as_me: failed program was:" >&5 melunko@47: sed 's/^/| /' conftest.$ac_ext >&5 melunko@47: melunko@47: ac_cv_func_dlopen=no melunko@47: fi melunko@47: rm -f conftest.err conftest.$ac_objext \ melunko@47: conftest$ac_exeext conftest.$ac_ext melunko@47: fi melunko@47: echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 melunko@47: echo "${ECHO_T}$ac_cv_func_dlopen" >&6 melunko@47: if test $ac_cv_func_dlopen = yes; then melunko@47: lt_cv_dlopen="dlopen" melunko@47: else melunko@47: echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 melunko@47: echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 melunko@47: if test "${ac_cv_lib_dl_dlopen+set}" = set; then melunko@47: echo $ECHO_N "(cached) $ECHO_C" >&6 melunko@47: else melunko@47: ac_check_lib_save_LIBS=$LIBS melunko@47: LIBS="-ldl $LIBS" melunko@47: cat >conftest.$ac_ext <<_ACEOF melunko@47: /* confdefs.h. */ melunko@47: _ACEOF melunko@47: cat confdefs.h >>conftest.$ac_ext melunko@47: cat >>conftest.$ac_ext <<_ACEOF melunko@47: /* end confdefs.h. */ melunko@47: melunko@47: /* Override any gcc2 internal prototype to avoid an error. */ melunko@47: #ifdef __cplusplus melunko@47: extern "C" melunko@47: #endif melunko@47: /* We use char because int might match the return type of a gcc2 melunko@47: builtin and then its argument prototype would still apply. */ melunko@47: char dlopen (); melunko@47: int melunko@47: main () melunko@47: { melunko@47: dlopen (); melunko@47: ; melunko@47: return 0; melunko@47: } melunko@47: _ACEOF melunko@47: rm -f conftest.$ac_objext conftest$ac_exeext melunko@47: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 melunko@47: (eval $ac_link) 2>conftest.er1 melunko@47: ac_status=$? melunko@47: grep -v '^ *+' conftest.er1 >conftest.err melunko@47: rm -f conftest.er1 melunko@47: cat conftest.err >&5 melunko@47: echo "$as_me:$LINENO: \$? = $ac_status" >&5 melunko@47: (exit $ac_status); } && melunko@47: { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' melunko@47: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 melunko@47: (eval $ac_try) 2>&5 melunko@47: ac_status=$? melunko@47: echo "$as_me:$LINENO: \$? = $ac_status" >&5 melunko@47: (exit $ac_status); }; } && melunko@47: { ac_try='test -s conftest$ac_exeext' melunko@47: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 melunko@47: (eval $ac_try) 2>&5 melunko@47: ac_status=$? melunko@47: echo "$as_me:$LINENO: \$? = $ac_status" >&5 melunko@47: (exit $ac_status); }; }; then melunko@47: ac_cv_lib_dl_dlopen=yes melunko@47: else melunko@47: echo "$as_me: failed program was:" >&5 melunko@47: sed 's/^/| /' conftest.$ac_ext >&5 melunko@47: melunko@47: ac_cv_lib_dl_dlopen=no melunko@47: fi melunko@47: rm -f conftest.err conftest.$ac_objext \ melunko@47: conftest$ac_exeext conftest.$ac_ext melunko@47: LIBS=$ac_check_lib_save_LIBS melunko@47: fi melunko@47: echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 melunko@47: echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 melunko@47: if test $ac_cv_lib_dl_dlopen = yes; then melunko@47: lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" melunko@47: else melunko@47: echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 melunko@47: echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 melunko@47: if test "${ac_cv_lib_svld_dlopen+set}" = set; then melunko@47: echo $ECHO_N "(cached) $ECHO_C" >&6 melunko@47: else melunko@47: ac_check_lib_save_LIBS=$LIBS melunko@47: LIBS="-lsvld $LIBS" melunko@47: cat >conftest.$ac_ext <<_ACEOF melunko@47: /* confdefs.h. */ melunko@47: _ACEOF melunko@47: cat confdefs.h >>conftest.$ac_ext melunko@47: cat >>conftest.$ac_ext <<_ACEOF melunko@47: /* end confdefs.h. */ melunko@47: melunko@47: /* Override any gcc2 internal prototype to avoid an error. */ melunko@47: #ifdef __cplusplus melunko@47: extern "C" melunko@47: #endif melunko@47: /* We use char because int might match the return type of a gcc2 melunko@47: builtin and then its argument prototype would still apply. */ melunko@47: char dlopen (); melunko@47: int melunko@47: main () melunko@47: { melunko@47: dlopen (); melunko@47: ; melunko@47: return 0; melunko@47: } melunko@47: _ACEOF melunko@47: rm -f conftest.$ac_objext conftest$ac_exeext melunko@47: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 melunko@47: (eval $ac_link) 2>conftest.er1 melunko@47: ac_status=$? melunko@47: grep -v '^ *+' conftest.er1 >conftest.err melunko@47: rm -f conftest.er1 melunko@47: cat conftest.err >&5 melunko@47: echo "$as_me:$LINENO: \$? = $ac_status" >&5 melunko@47: (exit $ac_status); } && melunko@47: { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' melunko@47: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 melunko@47: (eval $ac_try) 2>&5 melunko@47: ac_status=$? melunko@47: echo "$as_me:$LINENO: \$? = $ac_status" >&5 melunko@47: (exit $ac_status); }; } && melunko@47: { ac_try='test -s conftest$ac_exeext' melunko@47: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 melunko@47: (eval $ac_try) 2>&5 melunko@47: ac_status=$? melunko@47: echo "$as_me:$LINENO: \$? = $ac_status" >&5 melunko@47: (exit $ac_status); }; }; then melunko@47: ac_cv_lib_svld_dlopen=yes melunko@47: else melunko@47: echo "$as_me: failed program was:" >&5 melunko@47: sed 's/^/| /' conftest.$ac_ext >&5 melunko@47: melunko@47: ac_cv_lib_svld_dlopen=no melunko@47: fi melunko@47: rm -f conftest.err conftest.$ac_objext \ melunko@47: conftest$ac_exeext conftest.$ac_ext melunko@47: LIBS=$ac_check_lib_save_LIBS melunko@47: fi melunko@47: echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 melunko@47: echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 melunko@47: if test $ac_cv_lib_svld_dlopen = yes; then melunko@47: lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" melunko@47: else melunko@47: echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 melunko@47: echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 melunko@47: if test "${ac_cv_lib_dld_dld_link+set}" = set; then melunko@47: echo $ECHO_N "(cached) $ECHO_C" >&6 melunko@47: else melunko@47: ac_check_lib_save_LIBS=$LIBS melunko@47: LIBS="-ldld $LIBS" melunko@47: cat >conftest.$ac_ext <<_ACEOF melunko@47: /* confdefs.h. */ melunko@47: _ACEOF melunko@47: cat confdefs.h >>conftest.$ac_ext melunko@47: cat >>conftest.$ac_ext <<_ACEOF melunko@47: /* end confdefs.h. */ melunko@47: melunko@47: /* Override any gcc2 internal prototype to avoid an error. */ melunko@47: #ifdef __cplusplus melunko@47: extern "C" melunko@47: #endif melunko@47: /* We use char because int might match the return type of a gcc2 melunko@47: builtin and then its argument prototype would still apply. */ melunko@47: char dld_link (); melunko@47: int melunko@47: main () melunko@47: { melunko@47: dld_link (); melunko@47: ; melunko@47: return 0; melunko@47: } melunko@47: _ACEOF melunko@47: rm -f conftest.$ac_objext conftest$ac_exeext melunko@47: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 melunko@47: (eval $ac_link) 2>conftest.er1 melunko@47: ac_status=$? melunko@47: grep -v '^ *+' conftest.er1 >conftest.err melunko@47: rm -f conftest.er1 melunko@47: cat conftest.err >&5 melunko@47: echo "$as_me:$LINENO: \$? = $ac_status" >&5 melunko@47: (exit $ac_status); } && melunko@47: { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' melunko@47: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 melunko@47: (eval $ac_try) 2>&5 melunko@47: ac_status=$? melunko@47: echo "$as_me:$LINENO: \$? = $ac_status" >&5 melunko@47: (exit $ac_status); }; } && melunko@47: { ac_try='test -s conftest$ac_exeext' melunko@47: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 melunko@47: (eval $ac_try) 2>&5 melunko@47: ac_status=$? melunko@47: echo "$as_me:$LINENO: \$? = $ac_status" >&5 melunko@47: (exit $ac_status); }; }; then melunko@47: ac_cv_lib_dld_dld_link=yes melunko@47: else melunko@47: echo "$as_me: failed program was:" >&5 melunko@47: sed 's/^/| /' conftest.$ac_ext >&5 melunko@47: melunko@47: ac_cv_lib_dld_dld_link=no melunko@47: fi melunko@47: rm -f conftest.err conftest.$ac_objext \ melunko@47: conftest$ac_exeext conftest.$ac_ext melunko@47: LIBS=$ac_check_lib_save_LIBS melunko@47: fi melunko@47: echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 melunko@47: echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 melunko@47: if test $ac_cv_lib_dld_dld_link = yes; then melunko@47: lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" melunko@47: fi melunko@47: melunko@47: melunko@47: fi melunko@47: melunko@47: melunko@47: fi melunko@47: melunko@47: melunko@47: fi melunko@47: melunko@47: melunko@47: fi melunko@47: melunko@47: melunko@47: fi melunko@47: melunko@47: ;; melunko@47: esac melunko@47: melunko@47: if test "x$lt_cv_dlopen" != xno; then melunko@47: enable_dlopen=yes melunko@47: else melunko@47: enable_dlopen=no melunko@47: fi melunko@47: melunko@47: case $lt_cv_dlopen in melunko@47: dlopen) melunko@47: save_CPPFLAGS="$CPPFLAGS" melunko@47: test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" melunko@47: melunko@47: save_LDFLAGS="$LDFLAGS" melunko@47: eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" melunko@47: melunko@47: save_LIBS="$LIBS" melunko@47: LIBS="$lt_cv_dlopen_libs $LIBS" melunko@47: melunko@47: echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 melunko@47: echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 melunko@47: if test "${lt_cv_dlopen_self+set}" = set; then melunko@47: echo $ECHO_N "(cached) $ECHO_C" >&6 melunko@47: else melunko@47: if test "$cross_compiling" = yes; then : melunko@47: lt_cv_dlopen_self=cross melunko@47: else melunko@47: lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 melunko@47: lt_status=$lt_dlunknown melunko@47: cat > conftest.$ac_ext < melunko@47: #endif melunko@47: melunko@47: #include melunko@47: melunko@47: #ifdef RTLD_GLOBAL melunko@47: # define LT_DLGLOBAL RTLD_GLOBAL melunko@47: #else melunko@47: # ifdef DL_GLOBAL melunko@47: # define LT_DLGLOBAL DL_GLOBAL melunko@47: # else melunko@47: # define LT_DLGLOBAL 0 melunko@47: # endif melunko@47: #endif melunko@47: melunko@47: /* We may have to define LT_DLLAZY_OR_NOW in the command line if we melunko@47: find out it does not work in some platform. */ melunko@47: #ifndef LT_DLLAZY_OR_NOW melunko@47: # ifdef RTLD_LAZY melunko@47: # define LT_DLLAZY_OR_NOW RTLD_LAZY melunko@47: # else melunko@47: # ifdef DL_LAZY melunko@47: # define LT_DLLAZY_OR_NOW DL_LAZY melunko@47: # else melunko@47: # ifdef RTLD_NOW melunko@47: # define LT_DLLAZY_OR_NOW RTLD_NOW melunko@47: # else melunko@47: # ifdef DL_NOW melunko@47: # define LT_DLLAZY_OR_NOW DL_NOW melunko@47: # else melunko@47: # define LT_DLLAZY_OR_NOW 0 melunko@47: # endif melunko@47: # endif melunko@47: # endif melunko@47: # endif melunko@47: #endif melunko@47: melunko@47: #ifdef __cplusplus melunko@47: extern "C" void exit (int); melunko@47: #endif melunko@47: melunko@47: void fnord() { int i=42;} melunko@47: int main () melunko@47: { melunko@47: void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); melunko@47: int status = $lt_dlunknown; melunko@47: melunko@47: if (self) melunko@47: { melunko@47: if (dlsym (self,"fnord")) status = $lt_dlno_uscore; melunko@47: else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; melunko@47: /* dlclose (self); */ melunko@47: } melunko@47: melunko@47: exit (status); melunko@47: } melunko@47: EOF melunko@47: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 melunko@47: (eval $ac_link) 2>&5 melunko@47: ac_status=$? melunko@47: echo "$as_me:$LINENO: \$? = $ac_status" >&5 melunko@47: (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then melunko@47: (./conftest; exit; ) >&5 2>/dev/null melunko@47: lt_status=$? melunko@47: case x$lt_status in melunko@47: x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; melunko@47: x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; melunko@47: x$lt_unknown|x*) lt_cv_dlopen_self=no ;; melunko@47: esac melunko@47: else : melunko@47: # compilation failed melunko@47: lt_cv_dlopen_self=no melunko@47: fi melunko@47: fi melunko@47: rm -fr conftest* melunko@47: melunko@47: melunko@47: fi melunko@47: echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 melunko@47: echo "${ECHO_T}$lt_cv_dlopen_self" >&6 melunko@47: melunko@47: if test "x$lt_cv_dlopen_self" = xyes; then melunko@47: LDFLAGS="$LDFLAGS $link_static_flag" melunko@47: echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 melunko@47: echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 melunko@47: if test "${lt_cv_dlopen_self_static+set}" = set; then melunko@47: echo $ECHO_N "(cached) $ECHO_C" >&6 melunko@47: else melunko@47: if test "$cross_compiling" = yes; then : melunko@47: lt_cv_dlopen_self_static=cross melunko@47: else melunko@47: lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 melunko@47: lt_status=$lt_dlunknown melunko@47: cat > conftest.$ac_ext < melunko@47: #endif melunko@47: melunko@47: #include melunko@47: melunko@47: #ifdef RTLD_GLOBAL melunko@47: # define LT_DLGLOBAL RTLD_GLOBAL melunko@47: #else melunko@47: # ifdef DL_GLOBAL melunko@47: # define LT_DLGLOBAL DL_GLOBAL melunko@47: # else melunko@47: # define LT_DLGLOBAL 0 melunko@47: # endif melunko@47: #endif melunko@47: melunko@47: /* We may have to define LT_DLLAZY_OR_NOW in the command line if we melunko@47: find out it does not work in some platform. */ melunko@47: #ifndef LT_DLLAZY_OR_NOW melunko@47: # ifdef RTLD_LAZY melunko@47: # define LT_DLLAZY_OR_NOW RTLD_LAZY melunko@47: # else melunko@47: # ifdef DL_LAZY melunko@47: # define LT_DLLAZY_OR_NOW DL_LAZY melunko@47: # else melunko@47: # ifdef RTLD_NOW melunko@47: # define LT_DLLAZY_OR_NOW RTLD_NOW melunko@47: # else melunko@47: # ifdef DL_NOW melunko@47: # define LT_DLLAZY_OR_NOW DL_NOW melunko@47: # else melunko@47: # define LT_DLLAZY_OR_NOW 0 melunko@47: # endif melunko@47: # endif melunko@47: # endif melunko@47: # endif melunko@47: #endif melunko@47: melunko@47: #ifdef __cplusplus melunko@47: extern "C" void exit (int); melunko@47: #endif melunko@47: melunko@47: void fnord() { int i=42;} melunko@47: int main () melunko@47: { melunko@47: void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); melunko@47: int status = $lt_dlunknown; melunko@47: melunko@47: if (self) melunko@47: { melunko@47: if (dlsym (self,"fnord")) status = $lt_dlno_uscore; melunko@47: else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; melunko@47: /* dlclose (self); */ melunko@47: } melunko@47: melunko@47: exit (status); melunko@47: } melunko@47: EOF melunko@47: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 melunko@47: (eval $ac_link) 2>&5 melunko@47: ac_status=$? melunko@47: echo "$as_me:$LINENO: \$? = $ac_status" >&5 melunko@47: (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then melunko@47: (./conftest; exit; ) >&5 2>/dev/null melunko@47: lt_status=$? melunko@47: case x$lt_status in melunko@47: x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; melunko@47: x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; melunko@47: x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;; melunko@47: esac melunko@47: else : melunko@47: # compilation failed melunko@47: lt_cv_dlopen_self_static=no melunko@47: fi melunko@47: fi melunko@47: rm -fr conftest* melunko@47: melunko@47: melunko@47: fi melunko@47: echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 melunko@47: echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 melunko@47: fi melunko@47: melunko@47: CPPFLAGS="$save_CPPFLAGS" melunko@47: LDFLAGS="$save_LDFLAGS" melunko@47: LIBS="$save_LIBS" melunko@47: ;; melunko@47: esac melunko@47: melunko@47: case $lt_cv_dlopen_self in melunko@47: yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; melunko@47: *) enable_dlopen_self=unknown ;; melunko@47: esac melunko@47: melunko@47: case $lt_cv_dlopen_self_static in melunko@47: yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; melunko@47: *) enable_dlopen_self_static=unknown ;; melunko@47: esac melunko@47: fi melunko@47: melunko@47: melunko@47: # The else clause should only fire when bootstrapping the melunko@47: # libtool distribution, otherwise you forgot to ship ltmain.sh melunko@47: # with your package, and you will get complaints that there are melunko@47: # no rules to generate ltmain.sh. melunko@47: if test -f "$ltmain"; then melunko@47: # See if we are running on zsh, and set the options which allow our commands through melunko@47: # without removal of \ escapes. melunko@47: if test -n "${ZSH_VERSION+set}" ; then melunko@47: setopt NO_GLOB_SUBST melunko@47: fi melunko@47: # Now quote all the things that may contain metacharacters while being melunko@47: # careful not to overquote the AC_SUBSTed values. We take copies of the melunko@47: # variables and quote the copies for generation of the libtool script. melunko@47: for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ melunko@47: SED SHELL STRIP \ melunko@47: libname_spec library_names_spec soname_spec extract_expsyms_cmds \ melunko@47: old_striplib striplib file_magic_cmd finish_cmds finish_eval \ melunko@47: deplibs_check_method reload_flag reload_cmds need_locks \ melunko@47: lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ melunko@47: lt_cv_sys_global_symbol_to_c_name_address \ melunko@47: sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ melunko@47: old_postinstall_cmds old_postuninstall_cmds \ melunko@47: compiler_GCJ \ melunko@47: CC_GCJ \ melunko@47: LD_GCJ \ melunko@47: lt_prog_compiler_wl_GCJ \ melunko@47: lt_prog_compiler_pic_GCJ \ melunko@47: lt_prog_compiler_static_GCJ \ melunko@47: lt_prog_compiler_no_builtin_flag_GCJ \ melunko@47: export_dynamic_flag_spec_GCJ \ melunko@47: thread_safe_flag_spec_GCJ \ melunko@47: whole_archive_flag_spec_GCJ \ melunko@47: enable_shared_with_static_runtimes_GCJ \ melunko@47: old_archive_cmds_GCJ \ melunko@47: old_archive_from_new_cmds_GCJ \ melunko@47: predep_objects_GCJ \ melunko@47: postdep_objects_GCJ \ melunko@47: predeps_GCJ \ melunko@47: postdeps_GCJ \ melunko@47: compiler_lib_search_path_GCJ \ melunko@47: archive_cmds_GCJ \ melunko@47: archive_expsym_cmds_GCJ \ melunko@47: postinstall_cmds_GCJ \ melunko@47: postuninstall_cmds_GCJ \ melunko@47: old_archive_from_expsyms_cmds_GCJ \ melunko@47: allow_undefined_flag_GCJ \ melunko@47: no_undefined_flag_GCJ \ melunko@47: export_symbols_cmds_GCJ \ melunko@47: hardcode_libdir_flag_spec_GCJ \ melunko@47: hardcode_libdir_flag_spec_ld_GCJ \ melunko@47: hardcode_libdir_separator_GCJ \ melunko@47: hardcode_automatic_GCJ \ melunko@47: module_cmds_GCJ \ melunko@47: module_expsym_cmds_GCJ \ melunko@47: lt_cv_prog_compiler_c_o_GCJ \ melunko@47: exclude_expsyms_GCJ \ melunko@47: include_expsyms_GCJ; do melunko@47: melunko@47: case $var in melunko@47: old_archive_cmds_GCJ | \ melunko@47: old_archive_from_new_cmds_GCJ | \ melunko@47: archive_cmds_GCJ | \ melunko@47: archive_expsym_cmds_GCJ | \ melunko@47: module_cmds_GCJ | \ melunko@47: module_expsym_cmds_GCJ | \ melunko@47: old_archive_from_expsyms_cmds_GCJ | \ melunko@47: export_symbols_cmds_GCJ | \ melunko@47: extract_expsyms_cmds | reload_cmds | finish_cmds | \ melunko@47: postinstall_cmds | postuninstall_cmds | \ melunko@47: old_postinstall_cmds | old_postuninstall_cmds | \ melunko@47: sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) melunko@47: # Double-quote double-evaled strings. melunko@47: eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" melunko@47: ;; melunko@47: *) melunko@47: eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" melunko@47: ;; melunko@47: esac melunko@47: done melunko@47: melunko@47: case $lt_echo in melunko@47: *'\$0 --fallback-echo"') melunko@47: lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` melunko@47: ;; melunko@47: esac melunko@47: melunko@47: cfgfile="$ofile" melunko@47: melunko@47: cat <<__EOF__ >> "$cfgfile" melunko@47: # ### BEGIN LIBTOOL TAG CONFIG: $tagname melunko@47: melunko@47: # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: melunko@47: melunko@47: # Shell to use when invoking shell scripts. melunko@47: SHELL=$lt_SHELL melunko@47: melunko@47: # Whether or not to build shared libraries. melunko@47: build_libtool_libs=$enable_shared melunko@47: melunko@47: # Whether or not to build static libraries. melunko@47: build_old_libs=$enable_static melunko@47: melunko@47: # Whether or not to add -lc for building shared libraries. melunko@47: build_libtool_need_lc=$archive_cmds_need_lc_GCJ melunko@47: melunko@47: # Whether or not to disallow shared libs when runtime libs are static melunko@47: allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ melunko@47: melunko@47: # Whether or not to optimize for fast installation. melunko@47: fast_install=$enable_fast_install melunko@47: melunko@47: # The host system. melunko@47: host_alias=$host_alias melunko@47: host=$host melunko@47: host_os=$host_os melunko@47: melunko@47: # The build system. melunko@47: build_alias=$build_alias melunko@47: build=$build melunko@47: build_os=$build_os melunko@47: melunko@47: # An echo program that does not interpret backslashes. melunko@47: echo=$lt_echo melunko@47: melunko@47: # The archiver. melunko@47: AR=$lt_AR melunko@47: AR_FLAGS=$lt_AR_FLAGS melunko@47: melunko@47: # A C compiler. melunko@47: LTCC=$lt_LTCC melunko@47: melunko@47: # A language-specific compiler. melunko@47: CC=$lt_compiler_GCJ melunko@47: melunko@47: # Is the compiler the GNU C compiler? melunko@47: with_gcc=$GCC_GCJ melunko@47: melunko@47: # An ERE matcher. melunko@47: EGREP=$lt_EGREP melunko@47: melunko@47: # The linker used to build libraries. melunko@47: LD=$lt_LD_GCJ melunko@47: melunko@47: # Whether we need hard or soft links. melunko@47: LN_S=$lt_LN_S melunko@47: melunko@47: # A BSD-compatible nm program. melunko@47: NM=$lt_NM melunko@47: melunko@47: # A symbol stripping program melunko@47: STRIP=$lt_STRIP melunko@47: melunko@47: # Used to examine libraries when file_magic_cmd begins "file" melunko@47: MAGIC_CMD=$MAGIC_CMD melunko@47: melunko@47: # Used on cygwin: DLL creation program. melunko@47: DLLTOOL="$DLLTOOL" melunko@47: melunko@47: # Used on cygwin: object dumper. melunko@47: OBJDUMP="$OBJDUMP" melunko@47: melunko@47: # Used on cygwin: assembler. melunko@47: AS="$AS" melunko@47: melunko@47: # The name of the directory that contains temporary libtool files. melunko@47: objdir=$objdir melunko@47: melunko@47: # How to create reloadable object files. melunko@47: reload_flag=$lt_reload_flag melunko@47: reload_cmds=$lt_reload_cmds melunko@47: melunko@47: # How to pass a linker flag through the compiler. melunko@47: wl=$lt_lt_prog_compiler_wl_GCJ melunko@47: melunko@47: # Object file suffix (normally "o"). melunko@47: objext="$ac_objext" melunko@47: melunko@47: # Old archive suffix (normally "a"). melunko@47: libext="$libext" melunko@47: melunko@47: # Shared library suffix (normally ".so"). melunko@47: shrext_cmds='$shrext_cmds' melunko@47: melunko@47: # Executable file suffix (normally ""). melunko@47: exeext="$exeext" melunko@47: melunko@47: # Additional compiler flags for building library objects. melunko@47: pic_flag=$lt_lt_prog_compiler_pic_GCJ melunko@47: pic_mode=$pic_mode melunko@47: melunko@47: # What is the maximum length of a command? melunko@47: max_cmd_len=$lt_cv_sys_max_cmd_len melunko@47: melunko@47: # Does compiler simultaneously support -c and -o options? melunko@47: compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ melunko@47: melunko@47: # Must we lock files when doing compilation? melunko@47: need_locks=$lt_need_locks melunko@47: melunko@47: # Do we need the lib prefix for modules? melunko@47: need_lib_prefix=$need_lib_prefix melunko@47: melunko@47: # Do we need a version for libraries? melunko@47: need_version=$need_version melunko@47: melunko@47: # Whether dlopen is supported. melunko@47: dlopen_support=$enable_dlopen melunko@47: melunko@47: # Whether dlopen of programs is supported. melunko@47: dlopen_self=$enable_dlopen_self melunko@47: melunko@47: # Whether dlopen of statically linked programs is supported. melunko@47: dlopen_self_static=$enable_dlopen_self_static melunko@47: melunko@47: # Compiler flag to prevent dynamic linking. melunko@47: link_static_flag=$lt_lt_prog_compiler_static_GCJ melunko@47: melunko@47: # Compiler flag to turn off builtin functions. melunko@47: no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ melunko@47: melunko@47: # Compiler flag to allow reflexive dlopens. melunko@47: export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ melunko@47: melunko@47: # Compiler flag to generate shared objects directly from archives. melunko@47: whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ melunko@47: melunko@47: # Compiler flag to generate thread-safe objects. melunko@47: thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ melunko@47: melunko@47: # Library versioning type. melunko@47: version_type=$version_type melunko@47: melunko@47: # Format of library name prefix. melunko@47: libname_spec=$lt_libname_spec melunko@47: melunko@47: # List of archive names. First name is the real one, the rest are links. melunko@47: # The last name is the one that the linker finds with -lNAME. melunko@47: library_names_spec=$lt_library_names_spec melunko@47: melunko@47: # The coded name of the library, if different from the real name. melunko@47: soname_spec=$lt_soname_spec melunko@47: melunko@47: # Commands used to build and install an old-style archive. melunko@47: RANLIB=$lt_RANLIB melunko@47: old_archive_cmds=$lt_old_archive_cmds_GCJ melunko@47: old_postinstall_cmds=$lt_old_postinstall_cmds melunko@47: old_postuninstall_cmds=$lt_old_postuninstall_cmds melunko@47: melunko@47: # Create an old-style archive from a shared archive. melunko@47: old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ melunko@47: melunko@47: # Create a temporary old-style archive to link instead of a shared archive. melunko@47: old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ melunko@47: melunko@47: # Commands used to build and install a shared archive. melunko@47: archive_cmds=$lt_archive_cmds_GCJ melunko@47: archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ melunko@47: postinstall_cmds=$lt_postinstall_cmds melunko@47: postuninstall_cmds=$lt_postuninstall_cmds melunko@47: melunko@47: # Commands used to build a loadable module (assumed same as above if empty) melunko@47: module_cmds=$lt_module_cmds_GCJ melunko@47: module_expsym_cmds=$lt_module_expsym_cmds_GCJ melunko@47: melunko@47: # Commands to strip libraries. melunko@47: old_striplib=$lt_old_striplib melunko@47: striplib=$lt_striplib melunko@47: melunko@47: # Dependencies to place before the objects being linked to create a melunko@47: # shared library. melunko@47: predep_objects=$lt_predep_objects_GCJ melunko@47: melunko@47: # Dependencies to place after the objects being linked to create a melunko@47: # shared library. melunko@47: postdep_objects=$lt_postdep_objects_GCJ melunko@47: melunko@47: # Dependencies to place before the objects being linked to create a melunko@47: # shared library. melunko@47: predeps=$lt_predeps_GCJ melunko@47: melunko@47: # Dependencies to place after the objects being linked to create a melunko@47: # shared library. melunko@47: postdeps=$lt_postdeps_GCJ melunko@47: melunko@47: # The library search path used internally by the compiler when linking melunko@47: # a shared library. melunko@47: compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ melunko@47: melunko@47: # Method to check whether dependent libraries are shared objects. melunko@47: deplibs_check_method=$lt_deplibs_check_method melunko@47: melunko@47: # Command to use when deplibs_check_method == file_magic. melunko@47: file_magic_cmd=$lt_file_magic_cmd melunko@47: melunko@47: # Flag that allows shared libraries with undefined symbols to be built. melunko@47: allow_undefined_flag=$lt_allow_undefined_flag_GCJ melunko@47: melunko@47: # Flag that forces no undefined symbols. melunko@47: no_undefined_flag=$lt_no_undefined_flag_GCJ melunko@47: melunko@47: # Commands used to finish a libtool library installation in a directory. melunko@47: finish_cmds=$lt_finish_cmds melunko@47: melunko@47: # Same as above, but a single script fragment to be evaled but not shown. melunko@47: finish_eval=$lt_finish_eval melunko@47: melunko@47: # Take the output of nm and produce a listing of raw symbols and C names. melunko@47: global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe melunko@47: melunko@47: # Transform the output of nm in a proper C declaration melunko@47: global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl melunko@47: melunko@47: # Transform the output of nm in a C name address pair melunko@47: global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address melunko@47: melunko@47: # This is the shared library runtime path variable. melunko@47: runpath_var=$runpath_var melunko@47: melunko@47: # This is the shared library path variable. melunko@47: shlibpath_var=$shlibpath_var melunko@47: melunko@47: # Is shlibpath searched before the hard-coded library search path? melunko@47: shlibpath_overrides_runpath=$shlibpath_overrides_runpath melunko@47: melunko@47: # How to hardcode a shared library path into an executable. melunko@47: hardcode_action=$hardcode_action_GCJ melunko@47: melunko@47: # Whether we should hardcode library paths into libraries. melunko@47: hardcode_into_libs=$hardcode_into_libs melunko@47: melunko@47: # Flag to hardcode \$libdir into a binary during linking. melunko@47: # This must work even if \$libdir does not exist. melunko@47: hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ melunko@47: melunko@47: # If ld is used when linking, flag to hardcode \$libdir into melunko@47: # a binary during linking. This must work even if \$libdir does melunko@47: # not exist. melunko@47: hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ melunko@47: melunko@47: # Whether we need a single -rpath flag with a separated argument. melunko@47: hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ melunko@47: melunko@47: # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the melunko@47: # resulting binary. melunko@47: hardcode_direct=$hardcode_direct_GCJ melunko@47: melunko@47: # Set to yes if using the -LDIR flag during linking hardcodes DIR into the melunko@47: # resulting binary. melunko@47: hardcode_minus_L=$hardcode_minus_L_GCJ melunko@47: melunko@47: # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into melunko@47: # the resulting binary. melunko@47: hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ melunko@47: melunko@47: # Set to yes if building a shared library automatically hardcodes DIR into the library melunko@47: # and all subsequent libraries and executables linked against it. melunko@47: hardcode_automatic=$hardcode_automatic_GCJ melunko@47: melunko@47: # Variables whose values should be saved in libtool wrapper scripts and melunko@47: # restored at relink time. melunko@47: variables_saved_for_relink="$variables_saved_for_relink" melunko@47: melunko@47: # Whether libtool must link a program against all its dependency libraries. melunko@47: link_all_deplibs=$link_all_deplibs_GCJ melunko@47: melunko@47: # Compile-time system search path for libraries melunko@47: sys_lib_search_path_spec=$lt_sys_lib_search_path_spec melunko@47: melunko@47: # Run-time system search path for libraries melunko@47: sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec melunko@47: melunko@47: # Fix the shell variable \$srcfile for the compiler. melunko@47: fix_srcfile_path="$fix_srcfile_path_GCJ" melunko@47: melunko@47: # Set to yes if exported symbols are required. melunko@47: always_export_symbols=$always_export_symbols_GCJ melunko@47: melunko@47: # The commands to list exported symbols. melunko@47: export_symbols_cmds=$lt_export_symbols_cmds_GCJ melunko@47: melunko@47: # The commands to extract the exported symbol list from a shared archive. melunko@47: extract_expsyms_cmds=$lt_extract_expsyms_cmds melunko@47: melunko@47: # Symbols that should not be listed in the preloaded symbols. melunko@47: exclude_expsyms=$lt_exclude_expsyms_GCJ melunko@47: melunko@47: # Symbols that must always be exported. melunko@47: include_expsyms=$lt_include_expsyms_GCJ melunko@47: melunko@47: # ### END LIBTOOL TAG CONFIG: $tagname melunko@47: melunko@47: __EOF__ melunko@47: melunko@47: melunko@47: else melunko@47: # If there is no Makefile yet, we rely on a make rule to execute melunko@47: # `config.status --recheck' to rerun these tests and create the melunko@47: # libtool script then. melunko@47: ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` melunko@47: if test -f "$ltmain_in"; then melunko@47: test -f Makefile && make "$ltmain" melunko@47: fi melunko@47: fi melunko@47: melunko@47: melunko@47: ac_ext=c melunko@47: ac_cpp='$CPP $CPPFLAGS' melunko@47: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' melunko@47: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' melunko@47: ac_compiler_gnu=$ac_cv_c_compiler_gnu melunko@47: melunko@47: CC="$lt_save_CC" melunko@47: melunko@47: else melunko@47: tagname="" melunko@47: fi melunko@47: ;; melunko@47: melunko@47: RC) melunko@47: melunko@47: melunko@47: melunko@47: # Source file extension for RC test sources. melunko@47: ac_ext=rc melunko@47: melunko@47: # Object file extension for compiled RC test sources. melunko@47: objext=o melunko@47: objext_RC=$objext melunko@47: melunko@47: # Code to be used in simple compile tests melunko@47: lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n' melunko@47: melunko@47: # Code to be used in simple link tests melunko@47: lt_simple_link_test_code="$lt_simple_compile_test_code" melunko@47: melunko@47: # ltmain only uses $CC for tagged configurations so make sure $CC is set. melunko@47: melunko@47: # If no C compiler was specified, use CC. melunko@47: LTCC=${LTCC-"$CC"} melunko@47: melunko@47: # Allow CC to be a program name with arguments. melunko@47: compiler=$CC melunko@47: melunko@47: melunko@47: # save warnings/boilerplate of simple test code melunko@47: ac_outfile=conftest.$ac_objext melunko@47: printf "$lt_simple_compile_test_code" >conftest.$ac_ext melunko@47: eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err melunko@47: _lt_compiler_boilerplate=`cat conftest.err` melunko@47: $rm conftest* melunko@47: melunko@47: ac_outfile=conftest.$ac_objext melunko@47: printf "$lt_simple_link_test_code" >conftest.$ac_ext melunko@47: eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err melunko@47: _lt_linker_boilerplate=`cat conftest.err` melunko@47: $rm conftest* melunko@47: melunko@47: melunko@47: # Allow CC to be a program name with arguments. melunko@47: lt_save_CC="$CC" melunko@47: CC=${RC-"windres"} melunko@47: compiler=$CC melunko@47: compiler_RC=$CC melunko@47: for cc_temp in $compiler""; do melunko@47: case $cc_temp in melunko@47: compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; melunko@47: distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; melunko@47: \-*) ;; melunko@47: *) break;; melunko@47: esac melunko@47: done melunko@47: cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` melunko@47: melunko@47: lt_cv_prog_compiler_c_o_RC=yes melunko@47: melunko@47: # The else clause should only fire when bootstrapping the melunko@47: # libtool distribution, otherwise you forgot to ship ltmain.sh melunko@47: # with your package, and you will get complaints that there are melunko@47: # no rules to generate ltmain.sh. melunko@47: if test -f "$ltmain"; then melunko@47: # See if we are running on zsh, and set the options which allow our commands through melunko@47: # without removal of \ escapes. melunko@47: if test -n "${ZSH_VERSION+set}" ; then melunko@47: setopt NO_GLOB_SUBST melunko@47: fi melunko@47: # Now quote all the things that may contain metacharacters while being melunko@47: # careful not to overquote the AC_SUBSTed values. We take copies of the melunko@47: # variables and quote the copies for generation of the libtool script. melunko@47: for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ melunko@47: SED SHELL STRIP \ melunko@47: libname_spec library_names_spec soname_spec extract_expsyms_cmds \ melunko@47: old_striplib striplib file_magic_cmd finish_cmds finish_eval \ melunko@47: deplibs_check_method reload_flag reload_cmds need_locks \ melunko@47: lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ melunko@47: lt_cv_sys_global_symbol_to_c_name_address \ melunko@47: sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ melunko@47: old_postinstall_cmds old_postuninstall_cmds \ melunko@47: compiler_RC \ melunko@47: CC_RC \ melunko@47: LD_RC \ melunko@47: lt_prog_compiler_wl_RC \ melunko@47: lt_prog_compiler_pic_RC \ melunko@47: lt_prog_compiler_static_RC \ melunko@47: lt_prog_compiler_no_builtin_flag_RC \ melunko@47: export_dynamic_flag_spec_RC \ melunko@47: thread_safe_flag_spec_RC \ melunko@47: whole_archive_flag_spec_RC \ melunko@47: enable_shared_with_static_runtimes_RC \ melunko@47: old_archive_cmds_RC \ melunko@47: old_archive_from_new_cmds_RC \ melunko@47: predep_objects_RC \ melunko@47: postdep_objects_RC \ melunko@47: predeps_RC \ melunko@47: postdeps_RC \ melunko@47: compiler_lib_search_path_RC \ melunko@47: archive_cmds_RC \ melunko@47: archive_expsym_cmds_RC \ melunko@47: postinstall_cmds_RC \ melunko@47: postuninstall_cmds_RC \ melunko@47: old_archive_from_expsyms_cmds_RC \ melunko@47: allow_undefined_flag_RC \ melunko@47: no_undefined_flag_RC \ melunko@47: export_symbols_cmds_RC \ melunko@47: hardcode_libdir_flag_spec_RC \ melunko@47: hardcode_libdir_flag_spec_ld_RC \ melunko@47: hardcode_libdir_separator_RC \ melunko@47: hardcode_automatic_RC \ melunko@47: module_cmds_RC \ melunko@47: module_expsym_cmds_RC \ melunko@47: lt_cv_prog_compiler_c_o_RC \ melunko@47: exclude_expsyms_RC \ melunko@47: include_expsyms_RC; do melunko@47: melunko@47: case $var in melunko@47: old_archive_cmds_RC | \ melunko@47: old_archive_from_new_cmds_RC | \ melunko@47: archive_cmds_RC | \ melunko@47: archive_expsym_cmds_RC | \ melunko@47: module_cmds_RC | \ melunko@47: module_expsym_cmds_RC | \ melunko@47: old_archive_from_expsyms_cmds_RC | \ melunko@47: export_symbols_cmds_RC | \ melunko@47: extract_expsyms_cmds | reload_cmds | finish_cmds | \ melunko@47: postinstall_cmds | postuninstall_cmds | \ melunko@47: old_postinstall_cmds | old_postuninstall_cmds | \ melunko@47: sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) melunko@47: # Double-quote double-evaled strings. melunko@47: eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" melunko@47: ;; melunko@47: *) melunko@47: eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" melunko@47: ;; melunko@47: esac melunko@47: done melunko@47: melunko@47: case $lt_echo in melunko@47: *'\$0 --fallback-echo"') melunko@47: lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` melunko@47: ;; melunko@47: esac melunko@47: melunko@47: cfgfile="$ofile" melunko@47: melunko@47: cat <<__EOF__ >> "$cfgfile" melunko@47: # ### BEGIN LIBTOOL TAG CONFIG: $tagname melunko@47: melunko@47: # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: melunko@47: melunko@47: # Shell to use when invoking shell scripts. melunko@47: SHELL=$lt_SHELL melunko@47: melunko@47: # Whether or not to build shared libraries. melunko@47: build_libtool_libs=$enable_shared melunko@47: melunko@47: # Whether or not to build static libraries. melunko@47: build_old_libs=$enable_static melunko@47: melunko@47: # Whether or not to add -lc for building shared libraries. melunko@47: build_libtool_need_lc=$archive_cmds_need_lc_RC melunko@47: melunko@47: # Whether or not to disallow shared libs when runtime libs are static melunko@47: allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC melunko@47: melunko@47: # Whether or not to optimize for fast installation. melunko@47: fast_install=$enable_fast_install melunko@47: melunko@47: # The host system. melunko@47: host_alias=$host_alias melunko@47: host=$host melunko@47: host_os=$host_os melunko@47: melunko@47: # The build system. melunko@47: build_alias=$build_alias melunko@47: build=$build melunko@47: build_os=$build_os melunko@47: melunko@47: # An echo program that does not interpret backslashes. melunko@47: echo=$lt_echo melunko@47: melunko@47: # The archiver. melunko@47: AR=$lt_AR melunko@47: AR_FLAGS=$lt_AR_FLAGS melunko@47: melunko@47: # A C compiler. melunko@47: LTCC=$lt_LTCC melunko@47: melunko@47: # A language-specific compiler. melunko@47: CC=$lt_compiler_RC melunko@47: melunko@47: # Is the compiler the GNU C compiler? melunko@47: with_gcc=$GCC_RC melunko@47: melunko@47: # An ERE matcher. melunko@47: EGREP=$lt_EGREP melunko@47: melunko@47: # The linker used to build libraries. melunko@47: LD=$lt_LD_RC melunko@47: melunko@47: # Whether we need hard or soft links. melunko@47: LN_S=$lt_LN_S melunko@47: melunko@47: # A BSD-compatible nm program. melunko@47: NM=$lt_NM melunko@47: melunko@47: # A symbol stripping program melunko@47: STRIP=$lt_STRIP melunko@47: melunko@47: # Used to examine libraries when file_magic_cmd begins "file" melunko@47: MAGIC_CMD=$MAGIC_CMD melunko@47: melunko@47: # Used on cygwin: DLL creation program. melunko@47: DLLTOOL="$DLLTOOL" melunko@47: melunko@47: # Used on cygwin: object dumper. melunko@47: OBJDUMP="$OBJDUMP" melunko@47: melunko@47: # Used on cygwin: assembler. melunko@47: AS="$AS" melunko@47: melunko@47: # The name of the directory that contains temporary libtool files. melunko@47: objdir=$objdir melunko@47: melunko@47: # How to create reloadable object files. melunko@47: reload_flag=$lt_reload_flag melunko@47: reload_cmds=$lt_reload_cmds melunko@47: melunko@47: # How to pass a linker flag through the compiler. melunko@47: wl=$lt_lt_prog_compiler_wl_RC melunko@47: melunko@47: # Object file suffix (normally "o"). melunko@47: objext="$ac_objext" melunko@47: melunko@47: # Old archive suffix (normally "a"). melunko@47: libext="$libext" melunko@47: melunko@47: # Shared library suffix (normally ".so"). melunko@47: shrext_cmds='$shrext_cmds' melunko@47: melunko@47: # Executable file suffix (normally ""). melunko@47: exeext="$exeext" melunko@47: melunko@47: # Additional compiler flags for building library objects. melunko@47: pic_flag=$lt_lt_prog_compiler_pic_RC melunko@47: pic_mode=$pic_mode melunko@47: melunko@47: # What is the maximum length of a command? melunko@47: max_cmd_len=$lt_cv_sys_max_cmd_len melunko@47: melunko@47: # Does compiler simultaneously support -c and -o options? melunko@47: compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC melunko@47: melunko@47: # Must we lock files when doing compilation? melunko@47: need_locks=$lt_need_locks melunko@47: melunko@47: # Do we need the lib prefix for modules? melunko@47: need_lib_prefix=$need_lib_prefix melunko@47: melunko@47: # Do we need a version for libraries? melunko@47: need_version=$need_version melunko@47: melunko@47: # Whether dlopen is supported. melunko@47: dlopen_support=$enable_dlopen melunko@47: melunko@47: # Whether dlopen of programs is supported. melunko@47: dlopen_self=$enable_dlopen_self melunko@47: melunko@47: # Whether dlopen of statically linked programs is supported. melunko@47: dlopen_self_static=$enable_dlopen_self_static melunko@47: melunko@47: # Compiler flag to prevent dynamic linking. melunko@47: link_static_flag=$lt_lt_prog_compiler_static_RC melunko@47: melunko@47: # Compiler flag to turn off builtin functions. melunko@47: no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC melunko@47: melunko@47: # Compiler flag to allow reflexive dlopens. melunko@47: export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC melunko@47: melunko@47: # Compiler flag to generate shared objects directly from archives. melunko@47: whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC melunko@47: melunko@47: # Compiler flag to generate thread-safe objects. melunko@47: thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC melunko@47: melunko@47: # Library versioning type. melunko@47: version_type=$version_type melunko@47: melunko@47: # Format of library name prefix. melunko@47: libname_spec=$lt_libname_spec melunko@47: melunko@47: # List of archive names. First name is the real one, the rest are links. melunko@47: # The last name is the one that the linker finds with -lNAME. melunko@47: library_names_spec=$lt_library_names_spec melunko@47: melunko@47: # The coded name of the library, if different from the real name. melunko@47: soname_spec=$lt_soname_spec melunko@47: melunko@47: # Commands used to build and install an old-style archive. melunko@47: RANLIB=$lt_RANLIB melunko@47: old_archive_cmds=$lt_old_archive_cmds_RC melunko@47: old_postinstall_cmds=$lt_old_postinstall_cmds melunko@47: old_postuninstall_cmds=$lt_old_postuninstall_cmds melunko@47: melunko@47: # Create an old-style archive from a shared archive. melunko@47: old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC melunko@47: melunko@47: # Create a temporary old-style archive to link instead of a shared archive. melunko@47: old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC melunko@47: melunko@47: # Commands used to build and install a shared archive. melunko@47: archive_cmds=$lt_archive_cmds_RC melunko@47: archive_expsym_cmds=$lt_archive_expsym_cmds_RC melunko@47: postinstall_cmds=$lt_postinstall_cmds melunko@47: postuninstall_cmds=$lt_postuninstall_cmds melunko@47: melunko@47: # Commands used to build a loadable module (assumed same as above if empty) melunko@47: module_cmds=$lt_module_cmds_RC melunko@47: module_expsym_cmds=$lt_module_expsym_cmds_RC melunko@47: melunko@47: # Commands to strip libraries. melunko@47: old_striplib=$lt_old_striplib melunko@47: striplib=$lt_striplib melunko@47: melunko@47: # Dependencies to place before the objects being linked to create a melunko@47: # shared library. melunko@47: predep_objects=$lt_predep_objects_RC melunko@47: melunko@47: # Dependencies to place after the objects being linked to create a melunko@47: # shared library. melunko@47: postdep_objects=$lt_postdep_objects_RC melunko@47: melunko@47: # Dependencies to place before the objects being linked to create a melunko@47: # shared library. melunko@47: predeps=$lt_predeps_RC melunko@47: melunko@47: # Dependencies to place after the objects being linked to create a melunko@47: # shared library. melunko@47: postdeps=$lt_postdeps_RC melunko@47: melunko@47: # The library search path used internally by the compiler when linking melunko@47: # a shared library. melunko@47: compiler_lib_search_path=$lt_compiler_lib_search_path_RC melunko@47: melunko@47: # Method to check whether dependent libraries are shared objects. melunko@47: deplibs_check_method=$lt_deplibs_check_method melunko@47: melunko@47: # Command to use when deplibs_check_method == file_magic. melunko@47: file_magic_cmd=$lt_file_magic_cmd melunko@47: melunko@47: # Flag that allows shared libraries with undefined symbols to be built. melunko@47: allow_undefined_flag=$lt_allow_undefined_flag_RC melunko@47: melunko@47: # Flag that forces no undefined symbols. melunko@47: no_undefined_flag=$lt_no_undefined_flag_RC melunko@47: melunko@47: # Commands used to finish a libtool library installation in a directory. melunko@47: finish_cmds=$lt_finish_cmds melunko@47: melunko@47: # Same as above, but a single script fragment to be evaled but not shown. melunko@47: finish_eval=$lt_finish_eval melunko@47: melunko@47: # Take the output of nm and produce a listing of raw symbols and C names. melunko@47: global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe melunko@47: melunko@47: # Transform the output of nm in a proper C declaration melunko@47: global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl melunko@47: melunko@47: # Transform the output of nm in a C name address pair melunko@47: global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address melunko@47: melunko@47: # This is the shared library runtime path variable. melunko@47: runpath_var=$runpath_var melunko@47: melunko@47: # This is the shared library path variable. melunko@47: shlibpath_var=$shlibpath_var melunko@47: melunko@47: # Is shlibpath searched before the hard-coded library search path? melunko@47: shlibpath_overrides_runpath=$shlibpath_overrides_runpath melunko@47: melunko@47: # How to hardcode a shared library path into an executable. melunko@47: hardcode_action=$hardcode_action_RC melunko@47: melunko@47: # Whether we should hardcode library paths into libraries. melunko@47: hardcode_into_libs=$hardcode_into_libs melunko@47: melunko@47: # Flag to hardcode \$libdir into a binary during linking. melunko@47: # This must work even if \$libdir does not exist. melunko@47: hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC melunko@47: melunko@47: # If ld is used when linking, flag to hardcode \$libdir into melunko@47: # a binary during linking. This must work even if \$libdir does melunko@47: # not exist. melunko@47: hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC melunko@47: melunko@47: # Whether we need a single -rpath flag with a separated argument. melunko@47: hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC melunko@47: melunko@47: # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the melunko@47: # resulting binary. melunko@47: hardcode_direct=$hardcode_direct_RC melunko@47: melunko@47: # Set to yes if using the -LDIR flag during linking hardcodes DIR into the melunko@47: # resulting binary. melunko@47: hardcode_minus_L=$hardcode_minus_L_RC melunko@47: melunko@47: # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into melunko@47: # the resulting binary. melunko@47: hardcode_shlibpath_var=$hardcode_shlibpath_var_RC melunko@47: melunko@47: # Set to yes if building a shared library automatically hardcodes DIR into the library melunko@47: # and all subsequent libraries and executables linked against it. melunko@47: hardcode_automatic=$hardcode_automatic_RC melunko@47: melunko@47: # Variables whose values should be saved in libtool wrapper scripts and melunko@47: # restored at relink time. melunko@47: variables_saved_for_relink="$variables_saved_for_relink" melunko@47: melunko@47: # Whether libtool must link a program against all its dependency libraries. melunko@47: link_all_deplibs=$link_all_deplibs_RC melunko@47: melunko@47: # Compile-time system search path for libraries melunko@47: sys_lib_search_path_spec=$lt_sys_lib_search_path_spec melunko@47: melunko@47: # Run-time system search path for libraries melunko@47: sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec melunko@47: melunko@47: # Fix the shell variable \$srcfile for the compiler. melunko@47: fix_srcfile_path="$fix_srcfile_path_RC" melunko@47: melunko@47: # Set to yes if exported symbols are required. melunko@47: always_export_symbols=$always_export_symbols_RC melunko@47: melunko@47: # The commands to list exported symbols. melunko@47: export_symbols_cmds=$lt_export_symbols_cmds_RC melunko@47: melunko@47: # The commands to extract the exported symbol list from a shared archive. melunko@47: extract_expsyms_cmds=$lt_extract_expsyms_cmds melunko@47: melunko@47: # Symbols that should not be listed in the preloaded symbols. melunko@47: exclude_expsyms=$lt_exclude_expsyms_RC melunko@47: melunko@47: # Symbols that must always be exported. melunko@47: include_expsyms=$lt_include_expsyms_RC melunko@47: melunko@47: # ### END LIBTOOL TAG CONFIG: $tagname melunko@47: melunko@47: __EOF__ melunko@47: melunko@47: melunko@47: else melunko@47: # If there is no Makefile yet, we rely on a make rule to execute melunko@47: # `config.status --recheck' to rerun these tests and create the melunko@47: # libtool script then. melunko@47: ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` melunko@47: if test -f "$ltmain_in"; then melunko@47: test -f Makefile && make "$ltmain" melunko@47: fi melunko@47: fi melunko@47: melunko@47: melunko@47: ac_ext=c melunko@47: ac_cpp='$CPP $CPPFLAGS' melunko@47: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' melunko@47: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' melunko@47: ac_compiler_gnu=$ac_cv_c_compiler_gnu melunko@47: melunko@47: CC="$lt_save_CC" melunko@47: melunko@47: ;; melunko@47: melunko@47: *) melunko@47: { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5 melunko@47: echo "$as_me: error: Unsupported tag name: $tagname" >&2;} melunko@47: { (exit 1); exit 1; }; } melunko@47: ;; melunko@47: esac melunko@47: melunko@47: # Append the new tag name to the list of available tags. melunko@47: if test -n "$tagname" ; then melunko@47: available_tags="$available_tags $tagname" melunko@47: fi melunko@47: fi melunko@47: done melunko@47: IFS="$lt_save_ifs" melunko@47: melunko@47: # Now substitute the updated list of available tags. melunko@47: if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then melunko@47: mv "${ofile}T" "$ofile" melunko@47: chmod +x "$ofile" melunko@47: else melunko@47: rm -f "${ofile}T" melunko@47: { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5 melunko@47: echo "$as_me: error: unable to update list of available tagged configurations." >&2;} melunko@47: { (exit 1); exit 1; }; } melunko@47: fi melunko@47: fi melunko@47: melunko@47: melunko@47: melunko@47: # This can be used to rebuild libtool when needed melunko@47: LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" melunko@47: melunko@47: # Always use our own libtool. melunko@47: LIBTOOL='$(SHELL) $(top_builddir)/libtool' melunko@47: melunko@47: # Prevent multiple expansion melunko@47: melunko@47: melunko@47: melunko@47: melunko@47: melunko@47: melunko@47: melunko@47: melunko@47: melunko@47: melunko@47: melunko@47: melunko@47: melunko@47: melunko@47: melunko@47: melunko@47: melunko@47: melunko@47: melunko@47: melunko@47: melunko@47: ac_config_headers="$ac_config_headers config.h" melunko@47: melunko@47: melunko@47: ACLOCAL_AMFLAGS="-I m4" melunko@47: melunko@47: melunko@47: ac_ext=c melunko@47: ac_cpp='$CPP $CPPFLAGS' melunko@47: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' melunko@47: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' melunko@47: ac_compiler_gnu=$ac_cv_c_compiler_gnu melunko@47: if test -n "$ac_tool_prefix"; then melunko@47: # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. melunko@47: set dummy ${ac_tool_prefix}gcc; ac_word=$2 melunko@47: echo "$as_me:$LINENO: checking for $ac_word" >&5 melunko@47: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 melunko@47: if test "${ac_cv_prog_CC+set}" = set; then melunko@47: echo $ECHO_N "(cached) $ECHO_C" >&6 melunko@47: else melunko@47: if test -n "$CC"; then melunko@47: ac_cv_prog_CC="$CC" # Let the user override the test. melunko@47: else melunko@47: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR melunko@47: for as_dir in $PATH melunko@47: do melunko@47: IFS=$as_save_IFS melunko@47: test -z "$as_dir" && as_dir=. melunko@47: for ac_exec_ext in '' $ac_executable_extensions; do melunko@47: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then melunko@47: ac_cv_prog_CC="${ac_tool_prefix}gcc" melunko@47: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 melunko@47: break 2 melunko@47: fi melunko@47: done melunko@47: done melunko@47: melunko@47: fi melunko@47: fi melunko@47: CC=$ac_cv_prog_CC melunko@47: if test -n "$CC"; then melunko@47: echo "$as_me:$LINENO: result: $CC" >&5 melunko@47: echo "${ECHO_T}$CC" >&6 melunko@47: else melunko@47: echo "$as_me:$LINENO: result: no" >&5 melunko@47: echo "${ECHO_T}no" >&6 melunko@47: fi melunko@47: melunko@47: fi melunko@47: if test -z "$ac_cv_prog_CC"; then melunko@47: ac_ct_CC=$CC melunko@47: # Extract the first word of "gcc", so it can be a program name with args. melunko@47: set dummy gcc; ac_word=$2 melunko@47: echo "$as_me:$LINENO: checking for $ac_word" >&5 melunko@47: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 melunko@47: if test "${ac_cv_prog_ac_ct_CC+set}" = set; then melunko@47: echo $ECHO_N "(cached) $ECHO_C" >&6 melunko@47: else melunko@47: if test -n "$ac_ct_CC"; then melunko@47: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. melunko@47: else melunko@47: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR melunko@47: for as_dir in $PATH melunko@47: do melunko@47: IFS=$as_save_IFS melunko@47: test -z "$as_dir" && as_dir=. melunko@47: for ac_exec_ext in '' $ac_executable_extensions; do melunko@47: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then melunko@47: ac_cv_prog_ac_ct_CC="gcc" melunko@47: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 melunko@47: break 2 melunko@47: fi melunko@47: done melunko@47: done melunko@47: melunko@47: fi melunko@47: fi melunko@47: ac_ct_CC=$ac_cv_prog_ac_ct_CC melunko@47: if test -n "$ac_ct_CC"; then melunko@47: echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 melunko@47: echo "${ECHO_T}$ac_ct_CC" >&6 melunko@47: else melunko@47: echo "$as_me:$LINENO: result: no" >&5 melunko@47: echo "${ECHO_T}no" >&6 melunko@47: fi melunko@47: melunko@47: CC=$ac_ct_CC melunko@47: else melunko@47: CC="$ac_cv_prog_CC" melunko@47: fi melunko@47: melunko@47: if test -z "$CC"; then melunko@47: if test -n "$ac_tool_prefix"; then melunko@47: # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. melunko@47: set dummy ${ac_tool_prefix}cc; ac_word=$2 melunko@47: echo "$as_me:$LINENO: checking for $ac_word" >&5 melunko@47: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 melunko@47: if test "${ac_cv_prog_CC+set}" = set; then melunko@47: echo $ECHO_N "(cached) $ECHO_C" >&6 melunko@47: else melunko@47: if test -n "$CC"; then melunko@47: ac_cv_prog_CC="$CC" # Let the user override the test. melunko@47: else melunko@47: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR melunko@47: for as_dir in $PATH melunko@47: do melunko@47: IFS=$as_save_IFS melunko@47: test -z "$as_dir" && as_dir=. melunko@47: for ac_exec_ext in '' $ac_executable_extensions; do melunko@47: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then melunko@47: ac_cv_prog_CC="${ac_tool_prefix}cc" melunko@47: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 melunko@47: break 2 melunko@47: fi melunko@47: done melunko@47: done melunko@47: melunko@47: fi melunko@47: fi melunko@47: CC=$ac_cv_prog_CC melunko@47: if test -n "$CC"; then melunko@47: echo "$as_me:$LINENO: result: $CC" >&5 melunko@47: echo "${ECHO_T}$CC" >&6 melunko@47: else melunko@47: echo "$as_me:$LINENO: result: no" >&5 melunko@47: echo "${ECHO_T}no" >&6 melunko@47: fi melunko@47: melunko@47: fi melunko@47: if test -z "$ac_cv_prog_CC"; then melunko@47: ac_ct_CC=$CC melunko@47: # Extract the first word of "cc", so it can be a program name with args. melunko@47: set dummy cc; ac_word=$2 melunko@47: echo "$as_me:$LINENO: checking for $ac_word" >&5 melunko@47: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 melunko@47: if test "${ac_cv_prog_ac_ct_CC+set}" = set; then melunko@47: echo $ECHO_N "(cached) $ECHO_C" >&6 melunko@47: else melunko@47: if test -n "$ac_ct_CC"; then melunko@47: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. melunko@47: else melunko@47: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR melunko@47: for as_dir in $PATH melunko@47: do melunko@47: IFS=$as_save_IFS melunko@47: test -z "$as_dir" && as_dir=. melunko@47: for ac_exec_ext in '' $ac_executable_extensions; do melunko@47: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then melunko@47: ac_cv_prog_ac_ct_CC="cc" melunko@47: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 melunko@47: break 2 melunko@47: fi melunko@47: done melunko@47: done melunko@47: melunko@47: fi melunko@47: fi melunko@47: ac_ct_CC=$ac_cv_prog_ac_ct_CC melunko@47: if test -n "$ac_ct_CC"; then melunko@47: echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 melunko@47: echo "${ECHO_T}$ac_ct_CC" >&6 melunko@47: else melunko@47: echo "$as_me:$LINENO: result: no" >&5 melunko@47: echo "${ECHO_T}no" >&6 melunko@47: fi melunko@47: melunko@47: CC=$ac_ct_CC melunko@47: else melunko@47: CC="$ac_cv_prog_CC" melunko@47: fi melunko@47: melunko@47: fi melunko@47: if test -z "$CC"; then melunko@47: # Extract the first word of "cc", so it can be a program name with args. melunko@47: set dummy cc; ac_word=$2 melunko@47: echo "$as_me:$LINENO: checking for $ac_word" >&5 melunko@47: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 melunko@47: if test "${ac_cv_prog_CC+set}" = set; then melunko@47: echo $ECHO_N "(cached) $ECHO_C" >&6 melunko@47: else melunko@47: if test -n "$CC"; then melunko@47: ac_cv_prog_CC="$CC" # Let the user override the test. melunko@47: else melunko@47: ac_prog_rejected=no melunko@47: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR melunko@47: for as_dir in $PATH melunko@47: do melunko@47: IFS=$as_save_IFS melunko@47: test -z "$as_dir" && as_dir=. melunko@47: for ac_exec_ext in '' $ac_executable_extensions; do melunko@47: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then melunko@47: if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then melunko@47: ac_prog_rejected=yes melunko@47: continue melunko@47: fi melunko@47: ac_cv_prog_CC="cc" melunko@47: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 melunko@47: break 2 melunko@47: fi melunko@47: done melunko@47: done melunko@47: melunko@47: if test $ac_prog_rejected = yes; then melunko@47: # We found a bogon in the path, so make sure we never use it. melunko@47: set dummy $ac_cv_prog_CC melunko@47: shift melunko@47: if test $# != 0; then melunko@47: # We chose a different compiler from the bogus one. melunko@47: # However, it has the same basename, so the bogon will be chosen melunko@47: # first if we set CC to just the basename; use the full file name. melunko@47: shift melunko@47: ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" melunko@47: fi melunko@47: fi melunko@47: fi melunko@47: fi melunko@47: CC=$ac_cv_prog_CC melunko@47: if test -n "$CC"; then melunko@47: echo "$as_me:$LINENO: result: $CC" >&5 melunko@47: echo "${ECHO_T}$CC" >&6 melunko@47: else melunko@47: echo "$as_me:$LINENO: result: no" >&5 melunko@47: echo "${ECHO_T}no" >&6 melunko@47: fi melunko@47: melunko@47: fi melunko@47: if test -z "$CC"; then melunko@47: if test -n "$ac_tool_prefix"; then melunko@47: for ac_prog in cl melunko@47: do melunko@47: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. melunko@47: set dummy $ac_tool_prefix$ac_prog; ac_word=$2 melunko@47: echo "$as_me:$LINENO: checking for $ac_word" >&5 melunko@47: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 melunko@47: if test "${ac_cv_prog_CC+set}" = set; then melunko@47: echo $ECHO_N "(cached) $ECHO_C" >&6 melunko@47: else melunko@47: if test -n "$CC"; then melunko@47: ac_cv_prog_CC="$CC" # Let the user override the test. melunko@47: else melunko@47: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR melunko@47: for as_dir in $PATH melunko@47: do melunko@47: IFS=$as_save_IFS melunko@47: test -z "$as_dir" && as_dir=. melunko@47: for ac_exec_ext in '' $ac_executable_extensions; do melunko@47: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then melunko@47: ac_cv_prog_CC="$ac_tool_prefix$ac_prog" melunko@47: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 melunko@47: break 2 melunko@47: fi melunko@47: done melunko@47: done melunko@47: melunko@47: fi melunko@47: fi melunko@47: CC=$ac_cv_prog_CC melunko@47: if test -n "$CC"; then melunko@47: echo "$as_me:$LINENO: result: $CC" >&5 melunko@47: echo "${ECHO_T}$CC" >&6 melunko@47: else melunko@47: echo "$as_me:$LINENO: result: no" >&5 melunko@47: echo "${ECHO_T}no" >&6 melunko@47: fi melunko@47: melunko@47: test -n "$CC" && break melunko@47: done melunko@47: fi melunko@47: if test -z "$CC"; then melunko@47: ac_ct_CC=$CC melunko@47: for ac_prog in cl melunko@47: do melunko@47: # Extract the first word of "$ac_prog", so it can be a program name with args. melunko@47: set dummy $ac_prog; ac_word=$2 melunko@47: echo "$as_me:$LINENO: checking for $ac_word" >&5 melunko@47: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 melunko@47: if test "${ac_cv_prog_ac_ct_CC+set}" = set; then melunko@47: echo $ECHO_N "(cached) $ECHO_C" >&6 melunko@47: else melunko@47: if test -n "$ac_ct_CC"; then melunko@47: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. melunko@47: else melunko@47: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR melunko@47: for as_dir in $PATH melunko@47: do melunko@47: IFS=$as_save_IFS melunko@47: test -z "$as_dir" && as_dir=. melunko@47: for ac_exec_ext in '' $ac_executable_extensions; do melunko@47: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then melunko@47: ac_cv_prog_ac_ct_CC="$ac_prog" melunko@47: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 melunko@47: break 2 melunko@47: fi melunko@47: done melunko@47: done melunko@47: melunko@47: fi melunko@47: fi melunko@47: ac_ct_CC=$ac_cv_prog_ac_ct_CC melunko@47: if test -n "$ac_ct_CC"; then melunko@47: echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 melunko@47: echo "${ECHO_T}$ac_ct_CC" >&6 melunko@47: else melunko@47: echo "$as_me:$LINENO: result: no" >&5 melunko@47: echo "${ECHO_T}no" >&6 melunko@47: fi melunko@47: melunko@47: test -n "$ac_ct_CC" && break melunko@47: done melunko@47: melunko@47: CC=$ac_ct_CC melunko@47: fi melunko@47: melunko@47: fi melunko@47: melunko@47: melunko@47: test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH melunko@47: See \`config.log' for more details." >&5 melunko@47: echo "$as_me: error: no acceptable C compiler found in \$PATH melunko@47: See \`config.log' for more details." >&2;} melunko@47: { (exit 1); exit 1; }; } melunko@47: melunko@47: # Provide some information about the compiler. melunko@47: echo "$as_me:$LINENO:" \ melunko@47: "checking for C compiler version" >&5 melunko@47: ac_compiler=`set X $ac_compile; echo $2` melunko@47: { (eval echo "$as_me:$LINENO: \"$ac_compiler --version &5\"") >&5 melunko@47: (eval $ac_compiler --version &5) 2>&5 melunko@47: ac_status=$? melunko@47: echo "$as_me:$LINENO: \$? = $ac_status" >&5 melunko@47: (exit $ac_status); } melunko@47: { (eval echo "$as_me:$LINENO: \"$ac_compiler -v &5\"") >&5 melunko@47: (eval $ac_compiler -v &5) 2>&5 melunko@47: ac_status=$? melunko@47: echo "$as_me:$LINENO: \$? = $ac_status" >&5 melunko@47: (exit $ac_status); } melunko@47: { (eval echo "$as_me:$LINENO: \"$ac_compiler -V &5\"") >&5 melunko@47: (eval $ac_compiler -V &5) 2>&5 melunko@47: ac_status=$? melunko@47: echo "$as_me:$LINENO: \$? = $ac_status" >&5 melunko@47: (exit $ac_status); } melunko@47: melunko@47: echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 melunko@47: echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 melunko@47: if test "${ac_cv_c_compiler_gnu+set}" = set; then melunko@47: echo $ECHO_N "(cached) $ECHO_C" >&6 melunko@47: else melunko@47: cat >conftest.$ac_ext <<_ACEOF melunko@47: /* confdefs.h. */ melunko@47: _ACEOF melunko@47: cat confdefs.h >>conftest.$ac_ext melunko@47: cat >>conftest.$ac_ext <<_ACEOF melunko@47: /* end confdefs.h. */ melunko@47: melunko@47: int melunko@47: main () melunko@47: { melunko@47: #ifndef __GNUC__ melunko@47: choke me melunko@47: #endif melunko@47: melunko@47: ; melunko@47: return 0; melunko@47: } melunko@47: _ACEOF melunko@47: rm -f conftest.$ac_objext melunko@47: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 melunko@47: (eval $ac_compile) 2>conftest.er1 melunko@47: ac_status=$? melunko@47: grep -v '^ *+' conftest.er1 >conftest.err melunko@47: rm -f conftest.er1 melunko@47: cat conftest.err >&5 melunko@47: echo "$as_me:$LINENO: \$? = $ac_status" >&5 melunko@47: (exit $ac_status); } && melunko@47: { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' melunko@47: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 melunko@47: (eval $ac_try) 2>&5 melunko@47: ac_status=$? melunko@47: echo "$as_me:$LINENO: \$? = $ac_status" >&5 melunko@47: (exit $ac_status); }; } && melunko@47: { ac_try='test -s conftest.$ac_objext' melunko@47: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 melunko@47: (eval $ac_try) 2>&5 melunko@47: ac_status=$? melunko@47: echo "$as_me:$LINENO: \$? = $ac_status" >&5 melunko@47: (exit $ac_status); }; }; then melunko@47: ac_compiler_gnu=yes melunko@47: else melunko@47: echo "$as_me: failed program was:" >&5 melunko@47: sed 's/^/| /' conftest.$ac_ext >&5 melunko@47: melunko@47: ac_compiler_gnu=no melunko@47: fi melunko@47: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext melunko@47: ac_cv_c_compiler_gnu=$ac_compiler_gnu melunko@47: melunko@47: fi melunko@47: echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 melunko@47: echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 melunko@47: GCC=`test $ac_compiler_gnu = yes && echo yes` melunko@47: ac_test_CFLAGS=${CFLAGS+set} melunko@47: ac_save_CFLAGS=$CFLAGS melunko@47: CFLAGS="-g" melunko@47: echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 melunko@47: echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 melunko@47: if test "${ac_cv_prog_cc_g+set}" = set; then melunko@47: echo $ECHO_N "(cached) $ECHO_C" >&6 melunko@47: else melunko@47: cat >conftest.$ac_ext <<_ACEOF melunko@47: /* confdefs.h. */ melunko@47: _ACEOF melunko@47: cat confdefs.h >>conftest.$ac_ext melunko@47: cat >>conftest.$ac_ext <<_ACEOF melunko@47: /* end confdefs.h. */ melunko@47: melunko@47: int melunko@47: main () melunko@47: { melunko@47: melunko@47: ; melunko@47: return 0; melunko@47: } melunko@47: _ACEOF melunko@47: rm -f conftest.$ac_objext melunko@47: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 melunko@47: (eval $ac_compile) 2>conftest.er1 melunko@47: ac_status=$? melunko@47: grep -v '^ *+' conftest.er1 >conftest.err melunko@47: rm -f conftest.er1 melunko@47: cat conftest.err >&5 melunko@47: echo "$as_me:$LINENO: \$? = $ac_status" >&5 melunko@47: (exit $ac_status); } && melunko@47: { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' melunko@47: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 melunko@47: (eval $ac_try) 2>&5 melunko@47: ac_status=$? melunko@47: echo "$as_me:$LINENO: \$? = $ac_status" >&5 melunko@47: (exit $ac_status); }; } && melunko@47: { ac_try='test -s conftest.$ac_objext' melunko@47: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 melunko@47: (eval $ac_try) 2>&5 melunko@47: ac_status=$? melunko@47: echo "$as_me:$LINENO: \$? = $ac_status" >&5 melunko@47: (exit $ac_status); }; }; then melunko@47: ac_cv_prog_cc_g=yes melunko@47: else melunko@47: echo "$as_me: failed program was:" >&5 melunko@47: sed 's/^/| /' conftest.$ac_ext >&5 melunko@47: melunko@47: ac_cv_prog_cc_g=no melunko@47: fi melunko@47: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext melunko@47: fi melunko@47: echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 melunko@47: echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 melunko@47: if test "$ac_test_CFLAGS" = set; then melunko@47: CFLAGS=$ac_save_CFLAGS melunko@47: elif test $ac_cv_prog_cc_g = yes; then melunko@47: if test "$GCC" = yes; then melunko@47: CFLAGS="-g -O2" melunko@47: else melunko@47: CFLAGS="-g" melunko@47: fi melunko@47: else melunko@47: if test "$GCC" = yes; then melunko@47: CFLAGS="-O2" melunko@47: else melunko@47: CFLAGS= melunko@47: fi melunko@47: fi melunko@47: echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 melunko@47: echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 melunko@47: if test "${ac_cv_prog_cc_stdc+set}" = set; then melunko@47: echo $ECHO_N "(cached) $ECHO_C" >&6 melunko@47: else melunko@47: ac_cv_prog_cc_stdc=no melunko@47: ac_save_CC=$CC melunko@47: cat >conftest.$ac_ext <<_ACEOF melunko@47: /* confdefs.h. */ melunko@47: _ACEOF melunko@47: cat confdefs.h >>conftest.$ac_ext melunko@47: cat >>conftest.$ac_ext <<_ACEOF melunko@47: /* end confdefs.h. */ melunko@47: #include melunko@47: #include melunko@47: #include melunko@47: #include melunko@47: /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ melunko@47: struct buf { int x; }; melunko@47: FILE * (*rcsopen) (struct buf *, struct stat *, int); melunko@47: static char *e (p, i) melunko@47: char **p; melunko@47: int i; melunko@47: { melunko@47: return p[i]; melunko@47: } melunko@47: static char *f (char * (*g) (char **, int), char **p, ...) melunko@47: { melunko@47: char *s; melunko@47: va_list v; melunko@47: va_start (v,p); melunko@47: s = g (p, va_arg (v,int)); melunko@47: va_end (v); melunko@47: return s; melunko@47: } melunko@47: melunko@47: /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has melunko@47: function prototypes and stuff, but not '\xHH' hex character constants. melunko@47: These don't provoke an error unfortunately, instead are silently treated melunko@47: as 'x'. The following induces an error, until -std1 is added to get melunko@47: proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an melunko@47: array size at least. It's necessary to write '\x00'==0 to get something melunko@47: that's true only with -std1. */ melunko@47: int osf4_cc_array ['\x00' == 0 ? 1 : -1]; melunko@47: melunko@47: int test (int i, double x); melunko@47: struct s1 {int (*f) (int a);}; melunko@47: struct s2 {int (*f) (double a);}; melunko@47: int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); melunko@47: int argc; melunko@47: char **argv; melunko@47: int melunko@47: main () melunko@47: { melunko@47: return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; melunko@47: ; melunko@47: return 0; melunko@47: } melunko@47: _ACEOF melunko@47: # Don't try gcc -ansi; that turns off useful extensions and melunko@47: # breaks some systems' header files. melunko@47: # AIX -qlanglvl=ansi melunko@47: # Ultrix and OSF/1 -std1 melunko@47: # HP-UX 10.20 and later -Ae melunko@47: # HP-UX older versions -Aa -D_HPUX_SOURCE melunko@47: # SVR4 -Xc -D__EXTENSIONS__ melunko@47: for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" melunko@47: do melunko@47: CC="$ac_save_CC $ac_arg" melunko@47: rm -f conftest.$ac_objext melunko@47: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 melunko@47: (eval $ac_compile) 2>conftest.er1 melunko@47: ac_status=$? melunko@47: grep -v '^ *+' conftest.er1 >conftest.err melunko@47: rm -f conftest.er1 melunko@47: cat conftest.err >&5 melunko@47: echo "$as_me:$LINENO: \$? = $ac_status" >&5 melunko@47: (exit $ac_status); } && melunko@47: { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' melunko@47: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 melunko@47: (eval $ac_try) 2>&5 melunko@47: ac_status=$? melunko@47: echo "$as_me:$LINENO: \$? = $ac_status" >&5 melunko@47: (exit $ac_status); }; } && melunko@47: { ac_try='test -s conftest.$ac_objext' melunko@47: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 melunko@47: (eval $ac_try) 2>&5 melunko@47: ac_status=$? melunko@47: echo "$as_me:$LINENO: \$? = $ac_status" >&5 melunko@47: (exit $ac_status); }; }; then melunko@47: ac_cv_prog_cc_stdc=$ac_arg melunko@47: break melunko@47: else melunko@47: echo "$as_me: failed program was:" >&5 melunko@47: sed 's/^/| /' conftest.$ac_ext >&5 melunko@47: melunko@47: fi melunko@47: rm -f conftest.err conftest.$ac_objext melunko@47: done melunko@47: rm -f conftest.$ac_ext conftest.$ac_objext melunko@47: CC=$ac_save_CC melunko@47: melunko@47: fi melunko@47: melunko@47: case "x$ac_cv_prog_cc_stdc" in melunko@47: x|xno) melunko@47: echo "$as_me:$LINENO: result: none needed" >&5 melunko@47: echo "${ECHO_T}none needed" >&6 ;; melunko@47: *) melunko@47: echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 melunko@47: echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 melunko@47: CC="$CC $ac_cv_prog_cc_stdc" ;; melunko@47: esac melunko@47: melunko@47: # Some people use a C++ compiler to compile C. Since we use `exit', melunko@47: # in C++ we need to declare it. In case someone uses the same compiler melunko@47: # for both compiling C and C++ we need to have the C++ compiler decide melunko@47: # the declaration of exit, since it's the most demanding environment. melunko@47: cat >conftest.$ac_ext <<_ACEOF melunko@47: #ifndef __cplusplus melunko@47: choke me melunko@47: #endif melunko@47: _ACEOF melunko@47: rm -f conftest.$ac_objext melunko@47: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 melunko@47: (eval $ac_compile) 2>conftest.er1 melunko@47: ac_status=$? melunko@47: grep -v '^ *+' conftest.er1 >conftest.err melunko@47: rm -f conftest.er1 melunko@47: cat conftest.err >&5 melunko@47: echo "$as_me:$LINENO: \$? = $ac_status" >&5 melunko@47: (exit $ac_status); } && melunko@47: { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' melunko@47: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 melunko@47: (eval $ac_try) 2>&5 melunko@47: ac_status=$? melunko@47: echo "$as_me:$LINENO: \$? = $ac_status" >&5 melunko@47: (exit $ac_status); }; } && melunko@47: { ac_try='test -s conftest.$ac_objext' melunko@47: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 melunko@47: (eval $ac_try) 2>&5 melunko@47: ac_status=$? melunko@47: echo "$as_me:$LINENO: \$? = $ac_status" >&5 melunko@47: (exit $ac_status); }; }; then melunko@47: for ac_declaration in \ melunko@47: '' \ melunko@47: 'extern "C" void std::exit (int) throw (); using std::exit;' \ melunko@47: 'extern "C" void std::exit (int); using std::exit;' \ melunko@47: 'extern "C" void exit (int) throw ();' \ melunko@47: 'extern "C" void exit (int);' \ melunko@47: 'void exit (int);' melunko@47: do melunko@47: cat >conftest.$ac_ext <<_ACEOF melunko@47: /* confdefs.h. */ melunko@47: _ACEOF melunko@47: cat confdefs.h >>conftest.$ac_ext melunko@47: cat >>conftest.$ac_ext <<_ACEOF melunko@47: /* end confdefs.h. */ melunko@47: $ac_declaration melunko@47: #include melunko@47: int melunko@47: main () melunko@47: { melunko@47: exit (42); melunko@47: ; melunko@47: return 0; melunko@47: } melunko@47: _ACEOF melunko@47: rm -f conftest.$ac_objext melunko@47: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 melunko@47: (eval $ac_compile) 2>conftest.er1 melunko@47: ac_status=$? melunko@47: grep -v '^ *+' conftest.er1 >conftest.err melunko@47: rm -f conftest.er1 melunko@47: cat conftest.err >&5 melunko@47: echo "$as_me:$LINENO: \$? = $ac_status" >&5 melunko@47: (exit $ac_status); } && melunko@47: { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' melunko@47: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 melunko@47: (eval $ac_try) 2>&5 melunko@47: ac_status=$? melunko@47: echo "$as_me:$LINENO: \$? = $ac_status" >&5 melunko@47: (exit $ac_status); }; } && melunko@47: { ac_try='test -s conftest.$ac_objext' melunko@47: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 melunko@47: (eval $ac_try) 2>&5 melunko@47: ac_status=$? melunko@47: echo "$as_me:$LINENO: \$? = $ac_status" >&5 melunko@47: (exit $ac_status); }; }; then melunko@47: : melunko@47: else melunko@47: echo "$as_me: failed program was:" >&5 melunko@47: sed 's/^/| /' conftest.$ac_ext >&5 melunko@47: melunko@47: continue melunko@47: fi melunko@47: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext melunko@47: cat >conftest.$ac_ext <<_ACEOF melunko@47: /* confdefs.h. */ melunko@47: _ACEOF melunko@47: cat confdefs.h >>conftest.$ac_ext melunko@47: cat >>conftest.$ac_ext <<_ACEOF melunko@47: /* end confdefs.h. */ melunko@47: $ac_declaration melunko@47: int melunko@47: main () melunko@47: { melunko@47: exit (42); melunko@47: ; melunko@47: return 0; melunko@47: } melunko@47: _ACEOF melunko@47: rm -f conftest.$ac_objext melunko@47: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 melunko@47: (eval $ac_compile) 2>conftest.er1 melunko@47: ac_status=$? melunko@47: grep -v '^ *+' conftest.er1 >conftest.err melunko@47: rm -f conftest.er1 melunko@47: cat conftest.err >&5 melunko@47: echo "$as_me:$LINENO: \$? = $ac_status" >&5 melunko@47: (exit $ac_status); } && melunko@47: { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' melunko@47: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 melunko@47: (eval $ac_try) 2>&5 melunko@47: ac_status=$? melunko@47: echo "$as_me:$LINENO: \$? = $ac_status" >&5 melunko@47: (exit $ac_status); }; } && melunko@47: { ac_try='test -s conftest.$ac_objext' melunko@47: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 melunko@47: (eval $ac_try) 2>&5 melunko@47: ac_status=$? melunko@47: echo "$as_me:$LINENO: \$? = $ac_status" >&5 melunko@47: (exit $ac_status); }; }; then melunko@47: break melunko@47: else melunko@47: echo "$as_me: failed program was:" >&5 melunko@47: sed 's/^/| /' conftest.$ac_ext >&5 melunko@47: melunko@47: fi melunko@47: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext melunko@47: done melunko@47: rm -f conftest* melunko@47: if test -n "$ac_declaration"; then melunko@47: echo '#ifdef __cplusplus' >>confdefs.h melunko@47: echo $ac_declaration >>confdefs.h melunko@47: echo '#endif' >>confdefs.h melunko@47: fi melunko@47: melunko@47: else melunko@47: echo "$as_me: failed program was:" >&5 melunko@47: sed 's/^/| /' conftest.$ac_ext >&5 melunko@47: melunko@47: fi melunko@47: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext melunko@47: ac_ext=c melunko@47: ac_cpp='$CPP $CPPFLAGS' melunko@47: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' melunko@47: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' melunko@47: ac_compiler_gnu=$ac_cv_c_compiler_gnu melunko@47: melunko@47: depcc="$CC" am_compiler_list= melunko@47: melunko@47: echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 melunko@47: echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 melunko@47: if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then melunko@47: echo $ECHO_N "(cached) $ECHO_C" >&6 melunko@47: else melunko@47: if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then melunko@47: # We make a subdir and do the tests there. Otherwise we can end up melunko@47: # making bogus files that we don't know about and never remove. For melunko@47: # instance it was reported that on HP-UX the gcc test will end up melunko@47: # making a dummy file named `D' -- because `-MD' means `put the output melunko@47: # in D'. melunko@47: mkdir conftest.dir melunko@47: # Copy depcomp to subdir because otherwise we won't find it if we're melunko@47: # using a relative directory. melunko@47: cp "$am_depcomp" conftest.dir melunko@47: cd conftest.dir melunko@47: # We will build objects and dependencies in a subdirectory because melunko@47: # it helps to detect inapplicable dependency modes. For instance melunko@47: # both Tru64's cc and ICC support -MD to output dependencies as a melunko@47: # side effect of compilation, but ICC will put the dependencies in melunko@47: # the current directory while Tru64 will put them in the object melunko@47: # directory. melunko@47: mkdir sub melunko@47: melunko@47: am_cv_CC_dependencies_compiler_type=none melunko@47: if test "$am_compiler_list" = ""; then melunko@47: am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` melunko@47: fi melunko@47: for depmode in $am_compiler_list; do melunko@47: # Setup a source with many dependencies, because some compilers melunko@47: # like to wrap large dependency lists on column 80 (with \), and melunko@47: # we should not choose a depcomp mode which is confused by this. melunko@47: # melunko@47: # We need to recreate these files for each test, as the compiler may melunko@47: # overwrite some of them when testing with obscure command lines. melunko@47: # This happens at least with the AIX C compiler. melunko@47: : > sub/conftest.c melunko@47: for i in 1 2 3 4 5 6; do melunko@47: echo '#include "conftst'$i'.h"' >> sub/conftest.c melunko@47: # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with melunko@47: # Solaris 8's {/usr,}/bin/sh. melunko@47: touch sub/conftst$i.h melunko@47: done melunko@47: echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf melunko@47: melunko@47: case $depmode in melunko@47: nosideeffect) melunko@47: # after this tag, mechanisms are not by side-effect, so they'll melunko@47: # only be used when explicitly requested melunko@47: if test "x$enable_dependency_tracking" = xyes; then melunko@47: continue melunko@47: else melunko@47: break melunko@47: fi melunko@47: ;; melunko@47: none) break ;; melunko@47: esac melunko@47: # We check with `-c' and `-o' for the sake of the "dashmstdout" melunko@47: # mode. It turns out that the SunPro C++ compiler does not properly melunko@47: # handle `-M -o', and we need to detect this. melunko@47: if depmode=$depmode \ melunko@47: source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ melunko@47: depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ melunko@47: $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ melunko@47: >/dev/null 2>conftest.err && melunko@47: grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && melunko@47: grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && melunko@47: ${MAKE-make} -s -f confmf > /dev/null 2>&1; then melunko@47: # icc doesn't choke on unknown options, it will just issue warnings melunko@47: # or remarks (even with -Werror). So we grep stderr for any message melunko@47: # that says an option was ignored or not supported. melunko@47: # When given -MP, icc 7.0 and 7.1 complain thusly: melunko@47: # icc: Command line warning: ignoring option '-M'; no argument required melunko@47: # The diagnosis changed in icc 8.0: melunko@47: # icc: Command line remark: option '-MP' not supported melunko@47: if (grep 'ignoring option' conftest.err || melunko@47: grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else melunko@47: am_cv_CC_dependencies_compiler_type=$depmode melunko@47: break melunko@47: fi melunko@47: fi melunko@47: done melunko@47: melunko@47: cd .. melunko@47: rm -rf conftest.dir melunko@47: else melunko@47: am_cv_CC_dependencies_compiler_type=none melunko@47: fi melunko@47: melunko@47: fi melunko@47: echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 melunko@47: echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6 melunko@47: CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type melunko@47: melunko@47: melunko@47: melunko@47: if melunko@47: test "x$enable_dependency_tracking" != xno \ melunko@47: && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then melunko@47: am__fastdepCC_TRUE= melunko@47: am__fastdepCC_FALSE='#' melunko@47: else melunko@47: am__fastdepCC_TRUE='#' melunko@47: am__fastdepCC_FALSE= melunko@47: fi melunko@47: melunko@47: melunko@47: melunko@47: # By default we simply use the C compiler to build assembly code. melunko@47: melunko@47: test "${CCAS+set}" = set || CCAS=$CC melunko@47: test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS melunko@47: melunko@47: melunko@47: melunko@47: melunko@47: melunko@47: echo "$as_me:$LINENO: checking to see if compiler understands -Wall" >&5 melunko@47: echo $ECHO_N "checking to see if compiler understands -Wall... $ECHO_C" >&6 melunko@47: melunko@47: save_CFLAGS="$CFLAGS" melunko@47: CFLAGS="$CFLAGS -Wall" melunko@47: melunko@47: cat >conftest.$ac_ext <<_ACEOF melunko@47: /* confdefs.h. */ melunko@47: _ACEOF melunko@47: cat confdefs.h >>conftest.$ac_ext melunko@47: cat >>conftest.$ac_ext <<_ACEOF melunko@47: /* end confdefs.h. */ melunko@47: melunko@47: int melunko@47: main () melunko@47: { melunko@47: melunko@47: ; melunko@47: return 0; melunko@47: } melunko@47: _ACEOF melunko@47: rm -f conftest.$ac_objext melunko@47: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 melunko@47: (eval $ac_compile) 2>conftest.er1 melunko@47: ac_status=$? melunko@47: grep -v '^ *+' conftest.er1 >conftest.err melunko@47: rm -f conftest.er1 melunko@47: cat conftest.err >&5 melunko@47: echo "$as_me:$LINENO: \$? = $ac_status" >&5 melunko@47: (exit $ac_status); } && melunko@47: { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' melunko@47: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 melunko@47: (eval $ac_try) 2>&5 melunko@47: ac_status=$? melunko@47: echo "$as_me:$LINENO: \$? = $ac_status" >&5 melunko@47: (exit $ac_status); }; } && melunko@47: { ac_try='test -s conftest.$ac_objext' melunko@47: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 melunko@47: (eval $ac_try) 2>&5 melunko@47: ac_status=$? melunko@47: echo "$as_me:$LINENO: \$? = $ac_status" >&5 melunko@47: (exit $ac_status); }; }; then melunko@47: flag_ok=yes melunko@47: else melunko@47: echo "$as_me: failed program was:" >&5 melunko@47: sed 's/^/| /' conftest.$ac_ext >&5 melunko@47: melunko@47: flag_ok=no melunko@47: fi melunko@47: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext melunko@47: CFLAGS="$save_CFLAGS" melunko@47: melunko@47: if test "X$flag_ok" = Xyes ; then melunko@47: GST_WALL="yes" melunko@47: true melunko@47: else melunko@47: GST_WALL="no" melunko@47: true melunko@47: fi melunko@47: echo "$as_me:$LINENO: result: $flag_ok" >&5 melunko@47: echo "${ECHO_T}$flag_ok" >&6 melunko@47: melunko@47: melunko@47: if test "x$GST_WALL" = "xyes"; then melunko@47: ERROR_CFLAGS="$GST_ERROR -Wall" melunko@47: melunko@47: if test "x$GST_CVS" = "xyes"; then melunko@47: melunko@47: echo "$as_me:$LINENO: checking to see if compiler understands -Werror" >&5 melunko@47: echo $ECHO_N "checking to see if compiler understands -Werror... $ECHO_C" >&6 melunko@47: melunko@47: save_CFLAGS="$CFLAGS" melunko@47: CFLAGS="$CFLAGS -Werror" melunko@47: melunko@47: cat >conftest.$ac_ext <<_ACEOF melunko@47: /* confdefs.h. */ melunko@47: _ACEOF melunko@47: cat confdefs.h >>conftest.$ac_ext melunko@47: cat >>conftest.$ac_ext <<_ACEOF melunko@47: /* end confdefs.h. */ melunko@47: melunko@47: int melunko@47: main () melunko@47: { melunko@47: melunko@47: ; melunko@47: return 0; melunko@47: } melunko@47: _ACEOF melunko@47: rm -f conftest.$ac_objext melunko@47: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 melunko@47: (eval $ac_compile) 2>conftest.er1 melunko@47: ac_status=$? melunko@47: grep -v '^ *+' conftest.er1 >conftest.err melunko@47: rm -f conftest.er1 melunko@47: cat conftest.err >&5 melunko@47: echo "$as_me:$LINENO: \$? = $ac_status" >&5 melunko@47: (exit $ac_status); } && melunko@47: { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' melunko@47: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 melunko@47: (eval $ac_try) 2>&5 melunko@47: ac_status=$? melunko@47: echo "$as_me:$LINENO: \$? = $ac_status" >&5 melunko@47: (exit $ac_status); }; } && melunko@47: { ac_try='test -s conftest.$ac_objext' melunko@47: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 melunko@47: (eval $ac_try) 2>&5 melunko@47: ac_status=$? melunko@47: echo "$as_me:$LINENO: \$? = $ac_status" >&5 melunko@47: (exit $ac_status); }; }; then melunko@47: flag_ok=yes melunko@47: else melunko@47: echo "$as_me: failed program was:" >&5 melunko@47: sed 's/^/| /' conftest.$ac_ext >&5 melunko@47: melunko@47: flag_ok=no melunko@47: fi melunko@47: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext melunko@47: CFLAGS="$save_CFLAGS" melunko@47: melunko@47: if test "X$flag_ok" = Xyes ; then melunko@47: ERROR_CFLAGS="$ERROR_CFLAGS -Werror" melunko@47: true melunko@47: else melunko@47: ERROR_CFLAGS="$ERROR_CFLAGS" melunko@47: true melunko@47: fi melunko@47: echo "$as_me:$LINENO: result: $flag_ok" >&5 melunko@47: echo "${ECHO_T}$flag_ok" >&6 melunko@47: melunko@47: fi melunko@47: fi melunko@47: melunko@47: melunko@47: melunko@47: ac_ext=cc melunko@47: ac_cpp='$CXXCPP $CPPFLAGS' melunko@47: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' melunko@47: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' melunko@47: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu melunko@47: if test -n "$ac_tool_prefix"; then melunko@47: for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC melunko@47: do melunko@47: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. melunko@47: set dummy $ac_tool_prefix$ac_prog; ac_word=$2 melunko@47: echo "$as_me:$LINENO: checking for $ac_word" >&5 melunko@47: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 melunko@47: if test "${ac_cv_prog_CXX+set}" = set; then melunko@47: echo $ECHO_N "(cached) $ECHO_C" >&6 melunko@47: else melunko@47: if test -n "$CXX"; then melunko@47: ac_cv_prog_CXX="$CXX" # Let the user override the test. melunko@47: else melunko@47: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR melunko@47: for as_dir in $PATH melunko@47: do melunko@47: IFS=$as_save_IFS melunko@47: test -z "$as_dir" && as_dir=. melunko@47: for ac_exec_ext in '' $ac_executable_extensions; do melunko@47: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then melunko@47: ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" melunko@47: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 melunko@47: break 2 melunko@47: fi melunko@47: done melunko@47: done melunko@47: melunko@47: fi melunko@47: fi melunko@47: CXX=$ac_cv_prog_CXX melunko@47: if test -n "$CXX"; then melunko@47: echo "$as_me:$LINENO: result: $CXX" >&5 melunko@47: echo "${ECHO_T}$CXX" >&6 melunko@47: else melunko@47: echo "$as_me:$LINENO: result: no" >&5 melunko@47: echo "${ECHO_T}no" >&6 melunko@47: fi melunko@47: melunko@47: test -n "$CXX" && break melunko@47: done melunko@47: fi melunko@47: if test -z "$CXX"; then melunko@47: ac_ct_CXX=$CXX melunko@47: for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC melunko@47: do melunko@47: # Extract the first word of "$ac_prog", so it can be a program name with args. melunko@47: set dummy $ac_prog; ac_word=$2 melunko@47: echo "$as_me:$LINENO: checking for $ac_word" >&5 melunko@47: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 melunko@47: if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then melunko@47: echo $ECHO_N "(cached) $ECHO_C" >&6 melunko@47: else melunko@47: if test -n "$ac_ct_CXX"; then melunko@47: ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. melunko@47: else melunko@47: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR melunko@47: for as_dir in $PATH melunko@47: do melunko@47: IFS=$as_save_IFS melunko@47: test -z "$as_dir" && as_dir=. melunko@47: for ac_exec_ext in '' $ac_executable_extensions; do melunko@47: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then melunko@47: ac_cv_prog_ac_ct_CXX="$ac_prog" melunko@47: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 melunko@47: break 2 melunko@47: fi melunko@47: done melunko@47: done melunko@47: melunko@47: fi melunko@47: fi melunko@47: ac_ct_CXX=$ac_cv_prog_ac_ct_CXX melunko@47: if test -n "$ac_ct_CXX"; then melunko@47: echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 melunko@47: echo "${ECHO_T}$ac_ct_CXX" >&6 melunko@47: else melunko@47: echo "$as_me:$LINENO: result: no" >&5 melunko@47: echo "${ECHO_T}no" >&6 melunko@47: fi melunko@47: melunko@47: test -n "$ac_ct_CXX" && break melunko@47: done melunko@47: test -n "$ac_ct_CXX" || ac_ct_CXX="g++" melunko@47: melunko@47: CXX=$ac_ct_CXX melunko@47: fi melunko@47: melunko@47: melunko@47: # Provide some information about the compiler. melunko@47: echo "$as_me:$LINENO:" \ melunko@47: "checking for C++ compiler version" >&5 melunko@47: ac_compiler=`set X $ac_compile; echo $2` melunko@47: { (eval echo "$as_me:$LINENO: \"$ac_compiler --version &5\"") >&5 melunko@47: (eval $ac_compiler --version &5) 2>&5 melunko@47: ac_status=$? melunko@47: echo "$as_me:$LINENO: \$? = $ac_status" >&5 melunko@47: (exit $ac_status); } melunko@47: { (eval echo "$as_me:$LINENO: \"$ac_compiler -v &5\"") >&5 melunko@47: (eval $ac_compiler -v &5) 2>&5 melunko@47: ac_status=$? melunko@47: echo "$as_me:$LINENO: \$? = $ac_status" >&5 melunko@47: (exit $ac_status); } melunko@47: { (eval echo "$as_me:$LINENO: \"$ac_compiler -V &5\"") >&5 melunko@47: (eval $ac_compiler -V &5) 2>&5 melunko@47: ac_status=$? melunko@47: echo "$as_me:$LINENO: \$? = $ac_status" >&5 melunko@47: (exit $ac_status); } melunko@47: melunko@47: echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 melunko@47: echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6 melunko@47: if test "${ac_cv_cxx_compiler_gnu+set}" = set; then melunko@47: echo $ECHO_N "(cached) $ECHO_C" >&6 melunko@47: else melunko@47: cat >conftest.$ac_ext <<_ACEOF melunko@47: /* confdefs.h. */ melunko@47: _ACEOF melunko@47: cat confdefs.h >>conftest.$ac_ext melunko@47: cat >>conftest.$ac_ext <<_ACEOF melunko@47: /* end confdefs.h. */ melunko@47: melunko@47: int melunko@47: main () melunko@47: { melunko@47: #ifndef __GNUC__ melunko@47: choke me melunko@47: #endif melunko@47: melunko@47: ; melunko@47: return 0; melunko@47: } melunko@47: _ACEOF melunko@47: rm -f conftest.$ac_objext melunko@47: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 melunko@47: (eval $ac_compile) 2>conftest.er1 melunko@47: ac_status=$? melunko@47: grep -v '^ *+' conftest.er1 >conftest.err melunko@47: rm -f conftest.er1 melunko@47: cat conftest.err >&5 melunko@47: echo "$as_me:$LINENO: \$? = $ac_status" >&5 melunko@47: (exit $ac_status); } && melunko@47: { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' melunko@47: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 melunko@47: (eval $ac_try) 2>&5 melunko@47: ac_status=$? melunko@47: echo "$as_me:$LINENO: \$? = $ac_status" >&5 melunko@47: (exit $ac_status); }; } && melunko@47: { ac_try='test -s conftest.$ac_objext' melunko@47: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 melunko@47: (eval $ac_try) 2>&5 melunko@47: ac_status=$? melunko@47: echo "$as_me:$LINENO: \$? = $ac_status" >&5 melunko@47: (exit $ac_status); }; }; then melunko@47: ac_compiler_gnu=yes melunko@47: else melunko@47: echo "$as_me: failed program was:" >&5 melunko@47: sed 's/^/| /' conftest.$ac_ext >&5 melunko@47: melunko@47: ac_compiler_gnu=no melunko@47: fi melunko@47: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext melunko@47: ac_cv_cxx_compiler_gnu=$ac_compiler_gnu melunko@47: melunko@47: fi melunko@47: echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 melunko@47: echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6 melunko@47: GXX=`test $ac_compiler_gnu = yes && echo yes` melunko@47: ac_test_CXXFLAGS=${CXXFLAGS+set} melunko@47: ac_save_CXXFLAGS=$CXXFLAGS melunko@47: CXXFLAGS="-g" melunko@47: echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 melunko@47: echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 melunko@47: if test "${ac_cv_prog_cxx_g+set}" = set; then melunko@47: echo $ECHO_N "(cached) $ECHO_C" >&6 melunko@47: else melunko@47: cat >conftest.$ac_ext <<_ACEOF melunko@47: /* confdefs.h. */ melunko@47: _ACEOF melunko@47: cat confdefs.h >>conftest.$ac_ext melunko@47: cat >>conftest.$ac_ext <<_ACEOF melunko@47: /* end confdefs.h. */ melunko@47: melunko@47: int melunko@47: main () melunko@47: { melunko@47: melunko@47: ; melunko@47: return 0; melunko@47: } melunko@47: _ACEOF melunko@47: rm -f conftest.$ac_objext melunko@47: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 melunko@47: (eval $ac_compile) 2>conftest.er1 melunko@47: ac_status=$? melunko@47: grep -v '^ *+' conftest.er1 >conftest.err melunko@47: rm -f conftest.er1 melunko@47: cat conftest.err >&5 melunko@47: echo "$as_me:$LINENO: \$? = $ac_status" >&5 melunko@47: (exit $ac_status); } && melunko@47: { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' melunko@47: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 melunko@47: (eval $ac_try) 2>&5 melunko@47: ac_status=$? melunko@47: echo "$as_me:$LINENO: \$? = $ac_status" >&5 melunko@47: (exit $ac_status); }; } && melunko@47: { ac_try='test -s conftest.$ac_objext' melunko@47: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 melunko@47: (eval $ac_try) 2>&5 melunko@47: ac_status=$? melunko@47: echo "$as_me:$LINENO: \$? = $ac_status" >&5 melunko@47: (exit $ac_status); }; }; then melunko@47: ac_cv_prog_cxx_g=yes melunko@47: else melunko@47: echo "$as_me: failed program was:" >&5 melunko@47: sed 's/^/| /' conftest.$ac_ext >&5 melunko@47: melunko@47: ac_cv_prog_cxx_g=no melunko@47: fi melunko@47: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext melunko@47: fi melunko@47: echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 melunko@47: echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 melunko@47: if test "$ac_test_CXXFLAGS" = set; then melunko@47: CXXFLAGS=$ac_save_CXXFLAGS melunko@47: elif test $ac_cv_prog_cxx_g = yes; then melunko@47: if test "$GXX" = yes; then melunko@47: CXXFLAGS="-g -O2" melunko@47: else melunko@47: CXXFLAGS="-g" melunko@47: fi melunko@47: else melunko@47: if test "$GXX" = yes; then melunko@47: CXXFLAGS="-O2" melunko@47: else melunko@47: CXXFLAGS= melunko@47: fi melunko@47: fi melunko@47: for ac_declaration in \ melunko@47: '' \ melunko@47: 'extern "C" void std::exit (int) throw (); using std::exit;' \ melunko@47: 'extern "C" void std::exit (int); using std::exit;' \ melunko@47: 'extern "C" void exit (int) throw ();' \ melunko@47: 'extern "C" void exit (int);' \ melunko@47: 'void exit (int);' melunko@47: do melunko@47: cat >conftest.$ac_ext <<_ACEOF melunko@47: /* confdefs.h. */ melunko@47: _ACEOF melunko@47: cat confdefs.h >>conftest.$ac_ext melunko@47: cat >>conftest.$ac_ext <<_ACEOF melunko@47: /* end confdefs.h. */ melunko@47: $ac_declaration melunko@47: #include melunko@47: int melunko@47: main () melunko@47: { melunko@47: exit (42); melunko@47: ; melunko@47: return 0; melunko@47: } melunko@47: _ACEOF melunko@47: rm -f conftest.$ac_objext melunko@47: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 melunko@47: (eval $ac_compile) 2>conftest.er1 melunko@47: ac_status=$? melunko@47: grep -v '^ *+' conftest.er1 >conftest.err melunko@47: rm -f conftest.er1 melunko@47: cat conftest.err >&5 melunko@47: echo "$as_me:$LINENO: \$? = $ac_status" >&5 melunko@47: (exit $ac_status); } && melunko@47: { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' melunko@47: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 melunko@47: (eval $ac_try) 2>&5 melunko@47: ac_status=$? melunko@47: echo "$as_me:$LINENO: \$? = $ac_status" >&5 melunko@47: (exit $ac_status); }; } && melunko@47: { ac_try='test -s conftest.$ac_objext' melunko@47: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 melunko@47: (eval $ac_try) 2>&5 melunko@47: ac_status=$? melunko@47: echo "$as_me:$LINENO: \$? = $ac_status" >&5 melunko@47: (exit $ac_status); }; }; then melunko@47: : melunko@47: else melunko@47: echo "$as_me: failed program was:" >&5 melunko@47: sed 's/^/| /' conftest.$ac_ext >&5 melunko@47: melunko@47: continue melunko@47: fi melunko@47: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext melunko@47: cat >conftest.$ac_ext <<_ACEOF melunko@47: /* confdefs.h. */ melunko@47: _ACEOF melunko@47: cat confdefs.h >>conftest.$ac_ext melunko@47: cat >>conftest.$ac_ext <<_ACEOF melunko@47: /* end confdefs.h. */ melunko@47: $ac_declaration melunko@47: int melunko@47: main () melunko@47: { melunko@47: exit (42); melunko@47: ; melunko@47: return 0; melunko@47: } melunko@47: _ACEOF melunko@47: rm -f conftest.$ac_objext melunko@47: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 melunko@47: (eval $ac_compile) 2>conftest.er1 melunko@47: ac_status=$? melunko@47: grep -v '^ *+' conftest.er1 >conftest.err melunko@47: rm -f conftest.er1 melunko@47: cat conftest.err >&5 melunko@47: echo "$as_me:$LINENO: \$? = $ac_status" >&5 melunko@47: (exit $ac_status); } && melunko@47: { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' melunko@47: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 melunko@47: (eval $ac_try) 2>&5 melunko@47: ac_status=$? melunko@47: echo "$as_me:$LINENO: \$? = $ac_status" >&5 melunko@47: (exit $ac_status); }; } && melunko@47: { ac_try='test -s conftest.$ac_objext' melunko@47: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 melunko@47: (eval $ac_try) 2>&5 melunko@47: ac_status=$? melunko@47: echo "$as_me:$LINENO: \$? = $ac_status" >&5 melunko@47: (exit $ac_status); }; }; then melunko@47: break melunko@47: else melunko@47: echo "$as_me: failed program was:" >&5 melunko@47: sed 's/^/| /' conftest.$ac_ext >&5 melunko@47: melunko@47: fi melunko@47: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext melunko@47: done melunko@47: rm -f conftest* melunko@47: if test -n "$ac_declaration"; then melunko@47: echo '#ifdef __cplusplus' >>confdefs.h melunko@47: echo $ac_declaration >>confdefs.h melunko@47: echo '#endif' >>confdefs.h melunko@47: fi melunko@47: melunko@47: ac_ext=c melunko@47: ac_cpp='$CPP $CPPFLAGS' melunko@47: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' melunko@47: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' melunko@47: ac_compiler_gnu=$ac_cv_c_compiler_gnu melunko@47: melunko@47: depcc="$CXX" am_compiler_list= melunko@47: melunko@47: echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 melunko@47: echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 melunko@47: if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then melunko@47: echo $ECHO_N "(cached) $ECHO_C" >&6 melunko@47: else melunko@47: if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then melunko@47: # We make a subdir and do the tests there. Otherwise we can end up melunko@47: # making bogus files that we don't know about and never remove. For melunko@47: # instance it was reported that on HP-UX the gcc test will end up melunko@47: # making a dummy file named `D' -- because `-MD' means `put the output melunko@47: # in D'. melunko@47: mkdir conftest.dir melunko@47: # Copy depcomp to subdir because otherwise we won't find it if we're melunko@47: # using a relative directory. melunko@47: cp "$am_depcomp" conftest.dir melunko@47: cd conftest.dir melunko@47: # We will build objects and dependencies in a subdirectory because melunko@47: # it helps to detect inapplicable dependency modes. For instance melunko@47: # both Tru64's cc and ICC support -MD to output dependencies as a melunko@47: # side effect of compilation, but ICC will put the dependencies in melunko@47: # the current directory while Tru64 will put them in the object melunko@47: # directory. melunko@47: mkdir sub melunko@47: melunko@47: am_cv_CXX_dependencies_compiler_type=none melunko@47: if test "$am_compiler_list" = ""; then melunko@47: am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` melunko@47: fi melunko@47: for depmode in $am_compiler_list; do melunko@47: # Setup a source with many dependencies, because some compilers melunko@47: # like to wrap large dependency lists on column 80 (with \), and melunko@47: # we should not choose a depcomp mode which is confused by this. melunko@47: # melunko@47: # We need to recreate these files for each test, as the compiler may melunko@47: # overwrite some of them when testing with obscure command lines. melunko@47: # This happens at least with the AIX C compiler. melunko@47: : > sub/conftest.c melunko@47: for i in 1 2 3 4 5 6; do melunko@47: echo '#include "conftst'$i'.h"' >> sub/conftest.c melunko@47: # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with melunko@47: # Solaris 8's {/usr,}/bin/sh. melunko@47: touch sub/conftst$i.h melunko@47: done melunko@47: echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf melunko@47: melunko@47: case $depmode in melunko@47: nosideeffect) melunko@47: # after this tag, mechanisms are not by side-effect, so they'll melunko@47: # only be used when explicitly requested melunko@47: if test "x$enable_dependency_tracking" = xyes; then melunko@47: continue melunko@47: else melunko@47: break melunko@47: fi melunko@47: ;; melunko@47: none) break ;; melunko@47: esac melunko@47: # We check with `-c' and `-o' for the sake of the "dashmstdout" melunko@47: # mode. It turns out that the SunPro C++ compiler does not properly melunko@47: # handle `-M -o', and we need to detect this. melunko@47: if depmode=$depmode \ melunko@47: source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ melunko@47: depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ melunko@47: $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ melunko@47: >/dev/null 2>conftest.err && melunko@47: grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && melunko@47: grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && melunko@47: ${MAKE-make} -s -f confmf > /dev/null 2>&1; then melunko@47: # icc doesn't choke on unknown options, it will just issue warnings melunko@47: # or remarks (even with -Werror). So we grep stderr for any message melunko@47: # that says an option was ignored or not supported. melunko@47: # When given -MP, icc 7.0 and 7.1 complain thusly: melunko@47: # icc: Command line warning: ignoring option '-M'; no argument required melunko@47: # The diagnosis changed in icc 8.0: melunko@47: # icc: Command line remark: option '-MP' not supported melunko@47: if (grep 'ignoring option' conftest.err || melunko@47: grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else melunko@47: am_cv_CXX_dependencies_compiler_type=$depmode melunko@47: break melunko@47: fi melunko@47: fi melunko@47: done melunko@47: melunko@47: cd .. melunko@47: rm -rf conftest.dir melunko@47: else melunko@47: am_cv_CXX_dependencies_compiler_type=none melunko@47: fi melunko@47: melunko@47: fi melunko@47: echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 melunko@47: echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6 melunko@47: CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type melunko@47: melunko@47: melunko@47: melunko@47: if melunko@47: test "x$enable_dependency_tracking" != xno \ melunko@47: && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then melunko@47: am__fastdepCXX_TRUE= melunko@47: am__fastdepCXX_FALSE='#' melunko@47: else melunko@47: am__fastdepCXX_TRUE='#' melunko@47: am__fastdepCXX_FALSE= melunko@47: fi melunko@47: melunko@47: melunko@47: # Extract the first word of "$CXX", so it can be a program name with args. melunko@47: set dummy $CXX; ac_word=$2 melunko@47: echo "$as_me:$LINENO: checking for $ac_word" >&5 melunko@47: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 melunko@47: if test "${ac_cv_prog_HAVE_CXX+set}" = set; then melunko@47: echo $ECHO_N "(cached) $ECHO_C" >&6 melunko@47: else melunko@47: if test -n "$HAVE_CXX"; then melunko@47: ac_cv_prog_HAVE_CXX="$HAVE_CXX" # Let the user override the test. melunko@47: else melunko@47: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR melunko@47: for as_dir in $PATH melunko@47: do melunko@47: IFS=$as_save_IFS melunko@47: test -z "$as_dir" && as_dir=. melunko@47: for ac_exec_ext in '' $ac_executable_extensions; do melunko@47: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then melunko@47: ac_cv_prog_HAVE_CXX="yes" melunko@47: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 melunko@47: break 2 melunko@47: fi melunko@47: done melunko@47: done melunko@47: melunko@47: test -z "$ac_cv_prog_HAVE_CXX" && ac_cv_prog_HAVE_CXX="no" melunko@47: fi melunko@47: fi melunko@47: HAVE_CXX=$ac_cv_prog_HAVE_CXX melunko@47: if test -n "$HAVE_CXX"; then melunko@47: echo "$as_me:$LINENO: result: $HAVE_CXX" >&5 melunko@47: echo "${ECHO_T}$HAVE_CXX" >&6 melunko@47: else melunko@47: echo "$as_me:$LINENO: result: no" >&5 melunko@47: echo "${ECHO_T}no" >&6 melunko@47: fi melunko@47: melunko@47: ac_ext=cc melunko@47: ac_cpp='$CXXCPP $CPPFLAGS' melunko@47: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' melunko@47: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' melunko@47: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu melunko@47: echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 melunko@47: echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6 melunko@47: if test -z "$CXXCPP"; then melunko@47: if test "${ac_cv_prog_CXXCPP+set}" = set; then melunko@47: echo $ECHO_N "(cached) $ECHO_C" >&6 melunko@47: else melunko@47: # Double quotes because CXXCPP needs to be expanded melunko@47: for CXXCPP in "$CXX -E" "/lib/cpp" melunko@47: do melunko@47: ac_preproc_ok=false melunko@47: for ac_cxx_preproc_warn_flag in '' yes melunko@47: do melunko@47: # Use a header file that comes with gcc, so configuring glibc melunko@47: # with a fresh cross-compiler works. melunko@47: # Prefer to if __STDC__ is defined, since melunko@47: # exists even on freestanding compilers. melunko@47: # On the NeXT, cc -E runs the code through the compiler's parser, melunko@47: # not just through cpp. "Syntax error" is here to catch this case. melunko@47: cat >conftest.$ac_ext <<_ACEOF melunko@47: /* confdefs.h. */ melunko@47: _ACEOF melunko@47: cat confdefs.h >>conftest.$ac_ext melunko@47: cat >>conftest.$ac_ext <<_ACEOF melunko@47: /* end confdefs.h. */ melunko@47: #ifdef __STDC__ melunko@47: # include melunko@47: #else melunko@47: # include melunko@47: #endif melunko@47: Syntax error melunko@47: _ACEOF melunko@47: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 melunko@47: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 melunko@47: ac_status=$? melunko@47: grep -v '^ *+' conftest.er1 >conftest.err melunko@47: rm -f conftest.er1 melunko@47: cat conftest.err >&5 melunko@47: echo "$as_me:$LINENO: \$? = $ac_status" >&5 melunko@47: (exit $ac_status); } >/dev/null; then melunko@47: if test -s conftest.err; then melunko@47: ac_cpp_err=$ac_cxx_preproc_warn_flag melunko@47: ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag melunko@47: else melunko@47: ac_cpp_err= melunko@47: fi melunko@47: else melunko@47: ac_cpp_err=yes melunko@47: fi melunko@47: if test -z "$ac_cpp_err"; then melunko@47: : melunko@47: else melunko@47: echo "$as_me: failed program was:" >&5 melunko@47: sed 's/^/| /' conftest.$ac_ext >&5 melunko@47: melunko@47: # Broken: fails on valid input. melunko@47: continue melunko@47: fi melunko@47: rm -f conftest.err conftest.$ac_ext melunko@47: melunko@47: # OK, works on sane cases. Now check whether non-existent headers melunko@47: # can be detected and how. melunko@47: cat >conftest.$ac_ext <<_ACEOF melunko@47: /* confdefs.h. */ melunko@47: _ACEOF melunko@47: cat confdefs.h >>conftest.$ac_ext melunko@47: cat >>conftest.$ac_ext <<_ACEOF melunko@47: /* end confdefs.h. */ melunko@47: #include melunko@47: _ACEOF melunko@47: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 melunko@47: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 melunko@47: ac_status=$? melunko@47: grep -v '^ *+' conftest.er1 >conftest.err melunko@47: rm -f conftest.er1 melunko@47: cat conftest.err >&5 melunko@47: echo "$as_me:$LINENO: \$? = $ac_status" >&5 melunko@47: (exit $ac_status); } >/dev/null; then melunko@47: if test -s conftest.err; then melunko@47: ac_cpp_err=$ac_cxx_preproc_warn_flag melunko@47: ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag melunko@47: else melunko@47: ac_cpp_err= melunko@47: fi melunko@47: else melunko@47: ac_cpp_err=yes melunko@47: fi melunko@47: if test -z "$ac_cpp_err"; then melunko@47: # Broken: success on invalid input. melunko@47: continue melunko@47: else melunko@47: echo "$as_me: failed program was:" >&5 melunko@47: sed 's/^/| /' conftest.$ac_ext >&5 melunko@47: melunko@47: # Passes both tests. melunko@47: ac_preproc_ok=: melunko@47: break melunko@47: fi melunko@47: rm -f conftest.err conftest.$ac_ext melunko@47: melunko@47: done melunko@47: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. melunko@47: rm -f conftest.err conftest.$ac_ext melunko@47: if $ac_preproc_ok; then melunko@47: break melunko@47: fi melunko@47: melunko@47: done melunko@47: ac_cv_prog_CXXCPP=$CXXCPP melunko@47: melunko@47: fi melunko@47: CXXCPP=$ac_cv_prog_CXXCPP melunko@47: else melunko@47: ac_cv_prog_CXXCPP=$CXXCPP melunko@47: fi melunko@47: echo "$as_me:$LINENO: result: $CXXCPP" >&5 melunko@47: echo "${ECHO_T}$CXXCPP" >&6 melunko@47: ac_preproc_ok=false melunko@47: for ac_cxx_preproc_warn_flag in '' yes melunko@47: do melunko@47: # Use a header file that comes with gcc, so configuring glibc melunko@47: # with a fresh cross-compiler works. melunko@47: # Prefer to if __STDC__ is defined, since melunko@47: # exists even on freestanding compilers. melunko@47: # On the NeXT, cc -E runs the code through the compiler's parser, melunko@47: # not just through cpp. "Syntax error" is here to catch this case. melunko@47: cat >conftest.$ac_ext <<_ACEOF melunko@47: /* confdefs.h. */ melunko@47: _ACEOF melunko@47: cat confdefs.h >>conftest.$ac_ext melunko@47: cat >>conftest.$ac_ext <<_ACEOF melunko@47: /* end confdefs.h. */ melunko@47: #ifdef __STDC__ melunko@47: # include melunko@47: #else melunko@47: # include melunko@47: #endif melunko@47: Syntax error melunko@47: _ACEOF melunko@47: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 melunko@47: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 melunko@47: ac_status=$? melunko@47: grep -v '^ *+' conftest.er1 >conftest.err melunko@47: rm -f conftest.er1 melunko@47: cat conftest.err >&5 melunko@47: echo "$as_me:$LINENO: \$? = $ac_status" >&5 melunko@47: (exit $ac_status); } >/dev/null; then melunko@47: if test -s conftest.err; then melunko@47: ac_cpp_err=$ac_cxx_preproc_warn_flag melunko@47: ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag melunko@47: else melunko@47: ac_cpp_err= melunko@47: fi melunko@47: else melunko@47: ac_cpp_err=yes melunko@47: fi melunko@47: if test -z "$ac_cpp_err"; then melunko@47: : melunko@47: else melunko@47: echo "$as_me: failed program was:" >&5 melunko@47: sed 's/^/| /' conftest.$ac_ext >&5 melunko@47: melunko@47: # Broken: fails on valid input. melunko@47: continue melunko@47: fi melunko@47: rm -f conftest.err conftest.$ac_ext melunko@47: melunko@47: # OK, works on sane cases. Now check whether non-existent headers melunko@47: # can be detected and how. melunko@47: cat >conftest.$ac_ext <<_ACEOF melunko@47: /* confdefs.h. */ melunko@47: _ACEOF melunko@47: cat confdefs.h >>conftest.$ac_ext melunko@47: cat >>conftest.$ac_ext <<_ACEOF melunko@47: /* end confdefs.h. */ melunko@47: #include melunko@47: _ACEOF melunko@47: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 melunko@47: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 melunko@47: ac_status=$? melunko@47: grep -v '^ *+' conftest.er1 >conftest.err melunko@47: rm -f conftest.er1 melunko@47: cat conftest.err >&5 melunko@47: echo "$as_me:$LINENO: \$? = $ac_status" >&5 melunko@47: (exit $ac_status); } >/dev/null; then melunko@47: if test -s conftest.err; then melunko@47: ac_cpp_err=$ac_cxx_preproc_warn_flag melunko@47: ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag melunko@47: else melunko@47: ac_cpp_err= melunko@47: fi melunko@47: else melunko@47: ac_cpp_err=yes melunko@47: fi melunko@47: if test -z "$ac_cpp_err"; then melunko@47: # Broken: success on invalid input. melunko@47: continue melunko@47: else melunko@47: echo "$as_me: failed program was:" >&5 melunko@47: sed 's/^/| /' conftest.$ac_ext >&5 melunko@47: melunko@47: # Passes both tests. melunko@47: ac_preproc_ok=: melunko@47: break melunko@47: fi melunko@47: rm -f conftest.err conftest.$ac_ext melunko@47: melunko@47: done melunko@47: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. melunko@47: rm -f conftest.err conftest.$ac_ext melunko@47: if $ac_preproc_ok; then melunko@47: : melunko@47: else melunko@47: { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check melunko@47: See \`config.log' for more details." >&5 melunko@47: echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check melunko@47: See \`config.log' for more details." >&2;} melunko@47: { (exit 1); exit 1; }; } melunko@47: fi melunko@47: melunko@47: ac_ext=c melunko@47: ac_cpp='$CPP $CPPFLAGS' melunko@47: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' melunko@47: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' melunko@47: ac_compiler_gnu=$ac_cv_c_compiler_gnu melunko@47: melunko@47: echo "$as_me:$LINENO: checking for library containing strerror" >&5 melunko@47: echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6 melunko@47: if test "${ac_cv_search_strerror+set}" = set; then melunko@47: echo $ECHO_N "(cached) $ECHO_C" >&6 melunko@47: else melunko@47: ac_func_search_save_LIBS=$LIBS melunko@47: ac_cv_search_strerror=no melunko@47: cat >conftest.$ac_ext <<_ACEOF melunko@47: /* confdefs.h. */ melunko@47: _ACEOF melunko@47: cat confdefs.h >>conftest.$ac_ext melunko@47: cat >>conftest.$ac_ext <<_ACEOF melunko@47: /* end confdefs.h. */ melunko@47: melunko@47: /* Override any gcc2 internal prototype to avoid an error. */ melunko@47: #ifdef __cplusplus melunko@47: extern "C" melunko@47: #endif melunko@47: /* We use char because int might match the return type of a gcc2 melunko@47: builtin and then its argument prototype would still apply. */ melunko@47: char strerror (); melunko@47: int melunko@47: main () melunko@47: { melunko@47: strerror (); melunko@47: ; melunko@47: return 0; melunko@47: } melunko@47: _ACEOF melunko@47: rm -f conftest.$ac_objext conftest$ac_exeext melunko@47: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 melunko@47: (eval $ac_link) 2>conftest.er1 melunko@47: ac_status=$? melunko@47: grep -v '^ *+' conftest.er1 >conftest.err melunko@47: rm -f conftest.er1 melunko@47: cat conftest.err >&5 melunko@47: echo "$as_me:$LINENO: \$? = $ac_status" >&5 melunko@47: (exit $ac_status); } && melunko@47: { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' melunko@47: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 melunko@47: (eval $ac_try) 2>&5 melunko@47: ac_status=$? melunko@47: echo "$as_me:$LINENO: \$? = $ac_status" >&5 melunko@47: (exit $ac_status); }; } && melunko@47: { ac_try='test -s conftest$ac_exeext' melunko@47: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 melunko@47: (eval $ac_try) 2>&5 melunko@47: ac_status=$? melunko@47: echo "$as_me:$LINENO: \$? = $ac_status" >&5 melunko@47: (exit $ac_status); }; }; then melunko@47: ac_cv_search_strerror="none required" melunko@47: else melunko@47: echo "$as_me: failed program was:" >&5 melunko@47: sed 's/^/| /' conftest.$ac_ext >&5 melunko@47: melunko@47: fi melunko@47: rm -f conftest.err conftest.$ac_objext \ melunko@47: conftest$ac_exeext conftest.$ac_ext melunko@47: if test "$ac_cv_search_strerror" = no; then melunko@47: for ac_lib in cposix; do melunko@47: LIBS="-l$ac_lib $ac_func_search_save_LIBS" melunko@47: cat >conftest.$ac_ext <<_ACEOF melunko@47: /* confdefs.h. */ melunko@47: _ACEOF melunko@47: cat confdefs.h >>conftest.$ac_ext melunko@47: cat >>conftest.$ac_ext <<_ACEOF melunko@47: /* end confdefs.h. */ melunko@47: melunko@47: /* Override any gcc2 internal prototype to avoid an error. */ melunko@47: #ifdef __cplusplus melunko@47: extern "C" melunko@47: #endif melunko@47: /* We use char because int might match the return type of a gcc2 melunko@47: builtin and then its argument prototype would still apply. */ melunko@47: char strerror (); melunko@47: int melunko@47: main () melunko@47: { melunko@47: strerror (); melunko@47: ; melunko@47: return 0; melunko@47: } melunko@47: _ACEOF melunko@47: rm -f conftest.$ac_objext conftest$ac_exeext melunko@47: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 melunko@47: (eval $ac_link) 2>conftest.er1 melunko@47: ac_status=$? melunko@47: grep -v '^ *+' conftest.er1 >conftest.err melunko@47: rm -f conftest.er1 melunko@47: cat conftest.err >&5 melunko@47: echo "$as_me:$LINENO: \$? = $ac_status" >&5 melunko@47: (exit $ac_status); } && melunko@47: { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' melunko@47: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 melunko@47: (eval $ac_try) 2>&5 melunko@47: ac_status=$? melunko@47: echo "$as_me:$LINENO: \$? = $ac_status" >&5 melunko@47: (exit $ac_status); }; } && melunko@47: { ac_try='test -s conftest$ac_exeext' melunko@47: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 melunko@47: (eval $ac_try) 2>&5 melunko@47: ac_status=$? melunko@47: echo "$as_me:$LINENO: \$? = $ac_status" >&5 melunko@47: (exit $ac_status); }; }; then melunko@47: ac_cv_search_strerror="-l$ac_lib" melunko@47: break melunko@47: else melunko@47: echo "$as_me: failed program was:" >&5 melunko@47: sed 's/^/| /' conftest.$ac_ext >&5 melunko@47: melunko@47: fi melunko@47: rm -f conftest.err conftest.$ac_objext \ melunko@47: conftest$ac_exeext conftest.$ac_ext melunko@47: done melunko@47: fi melunko@47: LIBS=$ac_func_search_save_LIBS melunko@47: fi melunko@47: echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5 melunko@47: echo "${ECHO_T}$ac_cv_search_strerror" >&6 melunko@47: if test "$ac_cv_search_strerror" != no; then melunko@47: test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS" melunko@47: melunko@47: fi melunko@47: melunko@47: melunko@47: echo "$as_me:$LINENO: checking for ANSI C header files" >&5 melunko@47: echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 melunko@47: if test "${ac_cv_header_stdc+set}" = set; then melunko@47: echo $ECHO_N "(cached) $ECHO_C" >&6 melunko@47: else melunko@47: cat >conftest.$ac_ext <<_ACEOF melunko@47: /* confdefs.h. */ melunko@47: _ACEOF melunko@47: cat confdefs.h >>conftest.$ac_ext melunko@47: cat >>conftest.$ac_ext <<_ACEOF melunko@47: /* end confdefs.h. */ melunko@47: #include melunko@47: #include melunko@47: #include melunko@47: #include melunko@47: melunko@47: int melunko@47: main () melunko@47: { melunko@47: melunko@47: ; melunko@47: return 0; melunko@47: } melunko@47: _ACEOF melunko@47: rm -f conftest.$ac_objext melunko@47: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 melunko@47: (eval $ac_compile) 2>conftest.er1 melunko@47: ac_status=$? melunko@47: grep -v '^ *+' conftest.er1 >conftest.err melunko@47: rm -f conftest.er1 melunko@47: cat conftest.err >&5 melunko@47: echo "$as_me:$LINENO: \$? = $ac_status" >&5 melunko@47: (exit $ac_status); } && melunko@47: { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' melunko@47: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 melunko@47: (eval $ac_try) 2>&5 melunko@47: ac_status=$? melunko@47: echo "$as_me:$LINENO: \$? = $ac_status" >&5 melunko@47: (exit $ac_status); }; } && melunko@47: { ac_try='test -s conftest.$ac_objext' melunko@47: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 melunko@47: (eval $ac_try) 2>&5 melunko@47: ac_status=$? melunko@47: echo "$as_me:$LINENO: \$? = $ac_status" >&5 melunko@47: (exit $ac_status); }; }; then melunko@47: ac_cv_header_stdc=yes melunko@47: else melunko@47: echo "$as_me: failed program was:" >&5 melunko@47: sed 's/^/| /' conftest.$ac_ext >&5 melunko@47: melunko@47: ac_cv_header_stdc=no melunko@47: fi melunko@47: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext melunko@47: melunko@47: if test $ac_cv_header_stdc = yes; then melunko@47: # SunOS 4.x string.h does not declare mem*, contrary to ANSI. melunko@47: cat >conftest.$ac_ext <<_ACEOF melunko@47: /* confdefs.h. */ melunko@47: _ACEOF melunko@47: cat confdefs.h >>conftest.$ac_ext melunko@47: cat >>conftest.$ac_ext <<_ACEOF melunko@47: /* end confdefs.h. */ melunko@47: #include melunko@47: melunko@47: _ACEOF melunko@47: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | melunko@47: $EGREP "memchr" >/dev/null 2>&1; then melunko@47: : melunko@47: else melunko@47: ac_cv_header_stdc=no melunko@47: fi melunko@47: rm -f conftest* melunko@47: melunko@47: fi melunko@47: melunko@47: if test $ac_cv_header_stdc = yes; then melunko@47: # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. melunko@47: cat >conftest.$ac_ext <<_ACEOF melunko@47: /* confdefs.h. */ melunko@47: _ACEOF melunko@47: cat confdefs.h >>conftest.$ac_ext melunko@47: cat >>conftest.$ac_ext <<_ACEOF melunko@47: /* end confdefs.h. */ melunko@47: #include melunko@47: melunko@47: _ACEOF melunko@47: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | melunko@47: $EGREP "free" >/dev/null 2>&1; then melunko@47: : melunko@47: else melunko@47: ac_cv_header_stdc=no melunko@47: fi melunko@47: rm -f conftest* melunko@47: melunko@47: fi melunko@47: melunko@47: if test $ac_cv_header_stdc = yes; then melunko@47: # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. melunko@47: if test "$cross_compiling" = yes; then melunko@47: : melunko@47: else melunko@47: cat >conftest.$ac_ext <<_ACEOF melunko@47: /* confdefs.h. */ melunko@47: _ACEOF melunko@47: cat confdefs.h >>conftest.$ac_ext melunko@47: cat >>conftest.$ac_ext <<_ACEOF melunko@47: /* end confdefs.h. */ melunko@47: #include melunko@47: #if ((' ' & 0x0FF) == 0x020) melunko@47: # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') melunko@47: # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) melunko@47: #else melunko@47: # define ISLOWER(c) \ melunko@47: (('a' <= (c) && (c) <= 'i') \ melunko@47: || ('j' <= (c) && (c) <= 'r') \ melunko@47: || ('s' <= (c) && (c) <= 'z')) melunko@47: # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) melunko@47: #endif melunko@47: melunko@47: #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) melunko@47: int melunko@47: main () melunko@47: { melunko@47: int i; melunko@47: for (i = 0; i < 256; i++) melunko@47: if (XOR (islower (i), ISLOWER (i)) melunko@47: || toupper (i) != TOUPPER (i)) melunko@47: exit(2); melunko@47: exit (0); melunko@47: } melunko@47: _ACEOF melunko@47: rm -f conftest$ac_exeext melunko@47: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 melunko@47: (eval $ac_link) 2>&5 melunko@47: ac_status=$? melunko@47: echo "$as_me:$LINENO: \$? = $ac_status" >&5 melunko@47: (exit $ac_status); } && { ac_try='./conftest$ac_exeext' melunko@47: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 melunko@47: (eval $ac_try) 2>&5 melunko@47: ac_status=$? melunko@47: echo "$as_me:$LINENO: \$? = $ac_status" >&5 melunko@47: (exit $ac_status); }; }; then melunko@47: : melunko@47: else melunko@47: echo "$as_me: program exited with status $ac_status" >&5 melunko@47: echo "$as_me: failed program was:" >&5 melunko@47: sed 's/^/| /' conftest.$ac_ext >&5 melunko@47: melunko@47: ( exit $ac_status ) melunko@47: ac_cv_header_stdc=no melunko@47: fi melunko@47: rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext melunko@47: fi melunko@47: fi melunko@47: fi melunko@47: echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 melunko@47: echo "${ECHO_T}$ac_cv_header_stdc" >&6 melunko@47: if test $ac_cv_header_stdc = yes; then melunko@47: melunko@47: cat >>confdefs.h <<\_ACEOF melunko@47: #define STDC_HEADERS 1 melunko@47: _ACEOF melunko@47: melunko@47: fi melunko@47: melunko@47: echo "$as_me:$LINENO: checking for inline" >&5 melunko@47: echo $ECHO_N "checking for inline... $ECHO_C" >&6 melunko@47: if test "${ac_cv_c_inline+set}" = set; then melunko@47: echo $ECHO_N "(cached) $ECHO_C" >&6 melunko@47: else melunko@47: ac_cv_c_inline=no melunko@47: for ac_kw in inline __inline__ __inline; do melunko@47: cat >conftest.$ac_ext <<_ACEOF melunko@47: /* confdefs.h. */ melunko@47: _ACEOF melunko@47: cat confdefs.h >>conftest.$ac_ext melunko@47: cat >>conftest.$ac_ext <<_ACEOF melunko@47: /* end confdefs.h. */ melunko@47: #ifndef __cplusplus melunko@47: typedef int foo_t; melunko@47: static $ac_kw foo_t static_foo () {return 0; } melunko@47: $ac_kw foo_t foo () {return 0; } melunko@47: #endif melunko@47: melunko@47: _ACEOF melunko@47: rm -f conftest.$ac_objext melunko@47: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 melunko@47: (eval $ac_compile) 2>conftest.er1 melunko@47: ac_status=$? melunko@47: grep -v '^ *+' conftest.er1 >conftest.err melunko@47: rm -f conftest.er1 melunko@47: cat conftest.err >&5 melunko@47: echo "$as_me:$LINENO: \$? = $ac_status" >&5 melunko@47: (exit $ac_status); } && melunko@47: { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' melunko@47: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 melunko@47: (eval $ac_try) 2>&5 melunko@47: ac_status=$? melunko@47: echo "$as_me:$LINENO: \$? = $ac_status" >&5 melunko@47: (exit $ac_status); }; } && melunko@47: { ac_try='test -s conftest.$ac_objext' melunko@47: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 melunko@47: (eval $ac_try) 2>&5 melunko@47: ac_status=$? melunko@47: echo "$as_me:$LINENO: \$? = $ac_status" >&5 melunko@47: (exit $ac_status); }; }; then melunko@47: ac_cv_c_inline=$ac_kw; break melunko@47: else melunko@47: echo "$as_me: failed program was:" >&5 melunko@47: sed 's/^/| /' conftest.$ac_ext >&5 melunko@47: melunko@47: fi melunko@47: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext melunko@47: done melunko@47: melunko@47: fi melunko@47: echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 melunko@47: echo "${ECHO_T}$ac_cv_c_inline" >&6 melunko@47: melunko@47: melunko@47: case $ac_cv_c_inline in melunko@47: inline | yes) ;; melunko@47: *) melunko@47: case $ac_cv_c_inline in melunko@47: no) ac_val=;; melunko@47: *) ac_val=$ac_cv_c_inline;; melunko@47: esac melunko@47: cat >>confdefs.h <<_ACEOF melunko@47: #ifndef __cplusplus melunko@47: #define inline $ac_val melunko@47: #endif melunko@47: _ACEOF melunko@47: ;; melunko@47: esac melunko@47: melunko@47: melunko@47: # Extract the first word of "pkg-config", so it can be a program name with args. melunko@47: set dummy pkg-config; ac_word=$2 melunko@47: echo "$as_me:$LINENO: checking for $ac_word" >&5 melunko@47: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 melunko@47: if test "${ac_cv_prog_HAVE_PKGCONFIG+set}" = set; then melunko@47: echo $ECHO_N "(cached) $ECHO_C" >&6 melunko@47: else melunko@47: if test -n "$HAVE_PKGCONFIG"; then melunko@47: ac_cv_prog_HAVE_PKGCONFIG="$HAVE_PKGCONFIG" # Let the user override the test. melunko@47: else melunko@47: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR melunko@47: for as_dir in $PATH melunko@47: do melunko@47: IFS=$as_save_IFS melunko@47: test -z "$as_dir" && as_dir=. melunko@47: for ac_exec_ext in '' $ac_executable_extensions; do melunko@47: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then melunko@47: ac_cv_prog_HAVE_PKGCONFIG="yes" melunko@47: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 melunko@47: break 2 melunko@47: fi melunko@47: done melunko@47: done melunko@47: melunko@47: test -z "$ac_cv_prog_HAVE_PKGCONFIG" && ac_cv_prog_HAVE_PKGCONFIG="no" melunko@47: fi melunko@47: fi melunko@47: HAVE_PKGCONFIG=$ac_cv_prog_HAVE_PKGCONFIG melunko@47: if test -n "$HAVE_PKGCONFIG"; then melunko@47: echo "$as_me:$LINENO: result: $HAVE_PKGCONFIG" >&5 melunko@47: echo "${ECHO_T}$HAVE_PKGCONFIG" >&6 melunko@47: else melunko@47: echo "$as_me:$LINENO: result: no" >&5 melunko@47: echo "${ECHO_T}no" >&6 melunko@47: fi melunko@47: melunko@47: melunko@47: if test "x$HAVE_PKGCONFIG" = "xno"; then melunko@47: { { echo "$as_me:$LINENO: error: you need to have pkgconfig installed !" >&5 melunko@47: echo "$as_me: error: you need to have pkgconfig installed !" >&2;} melunko@47: { (exit 1); exit 1; }; } melunko@47: fi melunko@47: melunko@47: melunko@47: GST_REQUIRED=0.10.3 melunko@47: GST_MAJORMINOR=0.10 melunko@47: melunko@47: melunko@47: succeeded=no melunko@47: melunko@47: if test -z "$PKG_CONFIG"; then melunko@47: # Extract the first word of "pkg-config", so it can be a program name with args. melunko@47: set dummy pkg-config; ac_word=$2 melunko@47: echo "$as_me:$LINENO: checking for $ac_word" >&5 melunko@47: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 melunko@47: if test "${ac_cv_path_PKG_CONFIG+set}" = set; then melunko@47: echo $ECHO_N "(cached) $ECHO_C" >&6 melunko@47: else melunko@47: case $PKG_CONFIG in melunko@47: [\\/]* | ?:[\\/]*) melunko@47: ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. melunko@47: ;; melunko@47: *) melunko@47: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR melunko@47: for as_dir in $PATH melunko@47: do melunko@47: IFS=$as_save_IFS melunko@47: test -z "$as_dir" && as_dir=. melunko@47: for ac_exec_ext in '' $ac_executable_extensions; do melunko@47: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then melunko@47: ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" melunko@47: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 melunko@47: break 2 melunko@47: fi melunko@47: done melunko@47: done melunko@47: melunko@47: test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" melunko@47: ;; melunko@47: esac melunko@47: fi melunko@47: PKG_CONFIG=$ac_cv_path_PKG_CONFIG melunko@47: melunko@47: if test -n "$PKG_CONFIG"; then melunko@47: echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 melunko@47: echo "${ECHO_T}$PKG_CONFIG" >&6 melunko@47: else melunko@47: echo "$as_me:$LINENO: result: no" >&5 melunko@47: echo "${ECHO_T}no" >&6 melunko@47: fi melunko@47: melunko@47: fi melunko@47: melunko@47: if test "$PKG_CONFIG" = "no" ; then melunko@47: echo "*** The pkg-config script could not be found. Make sure it is" melunko@47: echo "*** in your path, or set the PKG_CONFIG environment variable" melunko@47: echo "*** to the full path to pkg-config." melunko@47: echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." melunko@47: else melunko@47: PKG_CONFIG_MIN_VERSION=0.9.0 melunko@47: if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then melunko@47: echo "$as_me:$LINENO: checking for \ melunko@47: gstreamer-$GST_MAJORMINOR >= $GST_REQUIRED" >&5 melunko@47: echo $ECHO_N "checking for \ melunko@47: gstreamer-$GST_MAJORMINOR >= $GST_REQUIRED... $ECHO_C" >&6 melunko@47: melunko@47: if $PKG_CONFIG --exists "\ melunko@47: gstreamer-$GST_MAJORMINOR >= $GST_REQUIRED" ; then melunko@47: echo "$as_me:$LINENO: result: yes" >&5 melunko@47: echo "${ECHO_T}yes" >&6 melunko@47: succeeded=yes melunko@47: melunko@47: echo "$as_me:$LINENO: checking GST_CFLAGS" >&5 melunko@47: echo $ECHO_N "checking GST_CFLAGS... $ECHO_C" >&6 melunko@47: GST_CFLAGS=`$PKG_CONFIG --cflags "\ melunko@47: gstreamer-$GST_MAJORMINOR >= $GST_REQUIRED"` melunko@47: echo "$as_me:$LINENO: result: $GST_CFLAGS" >&5 melunko@47: echo "${ECHO_T}$GST_CFLAGS" >&6 melunko@47: melunko@47: echo "$as_me:$LINENO: checking GST_LIBS" >&5 melunko@47: echo $ECHO_N "checking GST_LIBS... $ECHO_C" >&6 melunko@47: GST_LIBS=`$PKG_CONFIG --libs "\ melunko@47: gstreamer-$GST_MAJORMINOR >= $GST_REQUIRED"` melunko@47: echo "$as_me:$LINENO: result: $GST_LIBS" >&5 melunko@47: echo "${ECHO_T}$GST_LIBS" >&6 melunko@47: else melunko@47: GST_CFLAGS="" melunko@47: GST_LIBS="" melunko@47: ## If we have a custom action on failure, don't print errors, but melunko@47: ## do set a variable so people can do so. melunko@47: GST_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "\ melunko@47: gstreamer-$GST_MAJORMINOR >= $GST_REQUIRED"` melunko@47: melunko@47: fi melunko@47: melunko@47: melunko@47: melunko@47: else melunko@47: echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." melunko@47: echo "*** See http://www.freedesktop.org/software/pkgconfig" melunko@47: fi melunko@47: fi melunko@47: melunko@47: if test $succeeded = yes; then melunko@47: HAVE_GST=yes melunko@47: else melunko@47: HAVE_GST=no melunko@47: fi melunko@47: melunko@47: melunko@47: if test "x$HAVE_GST" = "xno"; then melunko@47: { { echo "$as_me:$LINENO: error: you need gstreamer development packages installed !" >&5 melunko@47: echo "$as_me: error: you need gstreamer development packages installed !" >&2;} melunko@47: { (exit 1); exit 1; }; } melunko@47: fi melunko@47: melunko@47: if test "x$USE_DEBUG" = xyes; then melunko@47: GST_CFLAGS="$GST_CFLAGS -g" melunko@47: fi melunko@47: melunko@47: melunko@47: melunko@47: melunko@47: melunko@47: melunko@47: melunko@47: succeeded=no melunko@47: melunko@47: if test -z "$PKG_CONFIG"; then melunko@47: # Extract the first word of "pkg-config", so it can be a program name with args. melunko@47: set dummy pkg-config; ac_word=$2 melunko@47: echo "$as_me:$LINENO: checking for $ac_word" >&5 melunko@47: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 melunko@47: if test "${ac_cv_path_PKG_CONFIG+set}" = set; then melunko@47: echo $ECHO_N "(cached) $ECHO_C" >&6 melunko@47: else melunko@47: case $PKG_CONFIG in melunko@47: [\\/]* | ?:[\\/]*) melunko@47: ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. melunko@47: ;; melunko@47: *) melunko@47: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR melunko@47: for as_dir in $PATH melunko@47: do melunko@47: IFS=$as_save_IFS melunko@47: test -z "$as_dir" && as_dir=. melunko@47: for ac_exec_ext in '' $ac_executable_extensions; do melunko@47: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then melunko@47: ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" melunko@47: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 melunko@47: break 2 melunko@47: fi melunko@47: done melunko@47: done melunko@47: melunko@47: test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" melunko@47: ;; melunko@47: esac melunko@47: fi melunko@47: PKG_CONFIG=$ac_cv_path_PKG_CONFIG melunko@47: melunko@47: if test -n "$PKG_CONFIG"; then melunko@47: echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 melunko@47: echo "${ECHO_T}$PKG_CONFIG" >&6 melunko@47: else melunko@47: echo "$as_me:$LINENO: result: no" >&5 melunko@47: echo "${ECHO_T}no" >&6 melunko@47: fi melunko@47: melunko@47: fi melunko@47: melunko@47: if test "$PKG_CONFIG" = "no" ; then melunko@47: echo "*** The pkg-config script could not be found. Make sure it is" melunko@47: echo "*** in your path, or set the PKG_CONFIG environment variable" melunko@47: echo "*** to the full path to pkg-config." melunko@47: echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." melunko@47: else melunko@47: PKG_CONFIG_MIN_VERSION=0.9.0 melunko@47: if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then melunko@47: echo "$as_me:$LINENO: checking for gstreamer-base-$GST_MAJORMINOR >= $GST_REQUIRED" >&5 melunko@47: echo $ECHO_N "checking for gstreamer-base-$GST_MAJORMINOR >= $GST_REQUIRED... $ECHO_C" >&6 melunko@47: melunko@47: if $PKG_CONFIG --exists "gstreamer-base-$GST_MAJORMINOR >= $GST_REQUIRED" ; then melunko@47: echo "$as_me:$LINENO: result: yes" >&5 melunko@47: echo "${ECHO_T}yes" >&6 melunko@47: succeeded=yes melunko@47: melunko@47: echo "$as_me:$LINENO: checking GST_BASE_CFLAGS" >&5 melunko@47: echo $ECHO_N "checking GST_BASE_CFLAGS... $ECHO_C" >&6 melunko@47: GST_BASE_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-base-$GST_MAJORMINOR >= $GST_REQUIRED"` melunko@47: echo "$as_me:$LINENO: result: $GST_BASE_CFLAGS" >&5 melunko@47: echo "${ECHO_T}$GST_BASE_CFLAGS" >&6 melunko@47: melunko@47: echo "$as_me:$LINENO: checking GST_BASE_LIBS" >&5 melunko@47: echo $ECHO_N "checking GST_BASE_LIBS... $ECHO_C" >&6 melunko@47: GST_BASE_LIBS=`$PKG_CONFIG --libs "gstreamer-base-$GST_MAJORMINOR >= $GST_REQUIRED"` melunko@47: echo "$as_me:$LINENO: result: $GST_BASE_LIBS" >&5 melunko@47: echo "${ECHO_T}$GST_BASE_LIBS" >&6 melunko@47: else melunko@47: GST_BASE_CFLAGS="" melunko@47: GST_BASE_LIBS="" melunko@47: ## If we have a custom action on failure, don't print errors, but melunko@47: ## do set a variable so people can do so. melunko@47: GST_BASE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-base-$GST_MAJORMINOR >= $GST_REQUIRED"` melunko@47: melunko@47: fi melunko@47: melunko@47: melunko@47: melunko@47: else melunko@47: echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." melunko@47: echo "*** See http://www.freedesktop.org/software/pkgconfig" melunko@47: fi melunko@47: fi melunko@47: melunko@47: if test $succeeded = yes; then melunko@47: HAVE_GST_BASE="yes" melunko@47: else melunko@47: HAVE_GST_BASE="no" melunko@47: fi melunko@47: melunko@47: melunko@47: if test "x$HAVE_GST_BASE" = "xno"; then melunko@47: { { echo "$as_me:$LINENO: error: no GStreamer Base Libs found" >&5 melunko@47: echo "$as_me: error: no GStreamer Base Libs found" >&2;} melunko@47: { (exit 1); exit 1; }; } melunko@47: fi melunko@47: melunko@47: melunko@47: melunko@47: melunko@47: melunko@47: succeeded=no melunko@47: melunko@47: if test -z "$PKG_CONFIG"; then melunko@47: # Extract the first word of "pkg-config", so it can be a program name with args. melunko@47: set dummy pkg-config; ac_word=$2 melunko@47: echo "$as_me:$LINENO: checking for $ac_word" >&5 melunko@47: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 melunko@47: if test "${ac_cv_path_PKG_CONFIG+set}" = set; then melunko@47: echo $ECHO_N "(cached) $ECHO_C" >&6 melunko@47: else melunko@47: case $PKG_CONFIG in melunko@47: [\\/]* | ?:[\\/]*) melunko@47: ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. melunko@47: ;; melunko@47: *) melunko@47: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR melunko@47: for as_dir in $PATH melunko@47: do melunko@47: IFS=$as_save_IFS melunko@47: test -z "$as_dir" && as_dir=. melunko@47: for ac_exec_ext in '' $ac_executable_extensions; do melunko@47: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then melunko@47: ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" melunko@47: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 melunko@47: break 2 melunko@47: fi melunko@47: done melunko@47: done melunko@47: melunko@47: test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" melunko@47: ;; melunko@47: esac melunko@47: fi melunko@47: PKG_CONFIG=$ac_cv_path_PKG_CONFIG melunko@47: melunko@47: if test -n "$PKG_CONFIG"; then melunko@47: echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 melunko@47: echo "${ECHO_T}$PKG_CONFIG" >&6 melunko@47: else melunko@47: echo "$as_me:$LINENO: result: no" >&5 melunko@47: echo "${ECHO_T}no" >&6 melunko@47: fi melunko@47: melunko@47: fi melunko@47: melunko@47: if test "$PKG_CONFIG" = "no" ; then melunko@47: echo "*** The pkg-config script could not be found. Make sure it is" melunko@47: echo "*** in your path, or set the PKG_CONFIG environment variable" melunko@47: echo "*** to the full path to pkg-config." melunko@47: echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." melunko@47: else melunko@47: PKG_CONFIG_MIN_VERSION=0.9.0 melunko@47: if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then melunko@47: echo "$as_me:$LINENO: checking for gstreamer-plugins-base-$GST_MAJORMINOR >= $GST_REQUIRED" >&5 melunko@47: echo $ECHO_N "checking for gstreamer-plugins-base-$GST_MAJORMINOR >= $GST_REQUIRED... $ECHO_C" >&6 melunko@47: melunko@47: if $PKG_CONFIG --exists "gstreamer-plugins-base-$GST_MAJORMINOR >= $GST_REQUIRED" ; then melunko@47: echo "$as_me:$LINENO: result: yes" >&5 melunko@47: echo "${ECHO_T}yes" >&6 melunko@47: succeeded=yes melunko@47: melunko@47: echo "$as_me:$LINENO: checking GST_PLUGINS_BASE_CFLAGS" >&5 melunko@47: echo $ECHO_N "checking GST_PLUGINS_BASE_CFLAGS... $ECHO_C" >&6 melunko@47: GST_PLUGINS_BASE_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-plugins-base-$GST_MAJORMINOR >= $GST_REQUIRED"` melunko@47: echo "$as_me:$LINENO: result: $GST_PLUGINS_BASE_CFLAGS" >&5 melunko@47: echo "${ECHO_T}$GST_PLUGINS_BASE_CFLAGS" >&6 melunko@47: melunko@47: echo "$as_me:$LINENO: checking GST_PLUGINS_BASE_LIBS" >&5 melunko@47: echo $ECHO_N "checking GST_PLUGINS_BASE_LIBS... $ECHO_C" >&6 melunko@47: GST_PLUGINS_BASE_LIBS=`$PKG_CONFIG --libs "gstreamer-plugins-base-$GST_MAJORMINOR >= $GST_REQUIRED"` melunko@47: echo "$as_me:$LINENO: result: $GST_PLUGINS_BASE_LIBS" >&5 melunko@47: echo "${ECHO_T}$GST_PLUGINS_BASE_LIBS" >&6 melunko@47: else melunko@47: GST_PLUGINS_BASE_CFLAGS="" melunko@47: GST_PLUGINS_BASE_LIBS="" melunko@47: ## If we have a custom action on failure, don't print errors, but melunko@47: ## do set a variable so people can do so. melunko@47: GST_PLUGINS_BASE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-plugins-base-$GST_MAJORMINOR >= $GST_REQUIRED"` melunko@47: melunko@47: fi melunko@47: melunko@47: melunko@47: melunko@47: else melunko@47: echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." melunko@47: echo "*** See http://www.freedesktop.org/software/pkgconfig" melunko@47: fi melunko@47: fi melunko@47: melunko@47: if test $succeeded = yes; then melunko@47: HAVE_GST_PLUGINS="yes" melunko@47: else melunko@47: HAVE_GST_PLUGINS="no" melunko@47: fi melunko@47: melunko@47: melunko@47: if test "x$HAVE_GST_PLUGINS" = "xno"; then melunko@47: { { echo "$as_me:$LINENO: error: no GStreamer Plugins Libs found" >&5 melunko@47: echo "$as_me: error: no GStreamer Plugins Libs found" >&2;} melunko@47: { (exit 1); exit 1; }; } melunko@47: fi melunko@47: melunko@47: melunko@47: melunko@47: melunko@47: plugindir="\$(libdir)/gstreamer-$GST_MAJORMINOR" melunko@47: melunko@47: melunko@47: GST_PLUGIN_LDFLAGS='-module -avoid-version -export-symbols-regex _*\(gst_\|Gst\|GST_\).*' melunko@47: melunko@47: melunko@47: ac_config_files="$ac_config_files Makefile src/Makefile m4/Makefile" melunko@47: cat >confcache <<\_ACEOF melunko@47: # This file is a shell script that caches the results of configure melunko@47: # tests run on this system so they can be shared between configure melunko@47: # scripts and configure runs, see configure's option --config-cache. melunko@47: # It is not useful on other systems. If it contains results you don't melunko@47: # want to keep, you may remove or edit it. melunko@47: # melunko@47: # config.status only pays attention to the cache file if you give it melunko@47: # the --recheck option to rerun configure. melunko@47: # melunko@47: # `ac_cv_env_foo' variables (set or unset) will be overridden when melunko@47: # loading this file, other *unset* `ac_cv_foo' will be assigned the melunko@47: # following values. melunko@47: melunko@47: _ACEOF melunko@47: melunko@47: # The following way of writing the cache mishandles newlines in values, melunko@47: # but we know of no workaround that is simple, portable, and efficient. melunko@47: # So, don't put newlines in cache variables' values. melunko@47: # Ultrix sh set writes to stderr and can't be redirected directly, melunko@47: # and sets the high bit in the cache file unless we assign to the vars. melunko@47: { melunko@47: (set) 2>&1 | melunko@47: case `(ac_space=' '; set | grep ac_space) 2>&1` in melunko@47: *ac_space=\ *) melunko@47: # `set' does not quote correctly, so add quotes (double-quote melunko@47: # substitution turns \\\\ into \\, and sed turns \\ into \). melunko@47: sed -n \ melunko@47: "s/'/'\\\\''/g; melunko@47: s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" melunko@47: ;; melunko@47: *) melunko@47: # `set' quotes correctly as required by POSIX, so do not add quotes. melunko@47: sed -n \ melunko@47: "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" melunko@47: ;; melunko@47: esac; melunko@47: } | melunko@47: sed ' melunko@47: t clear melunko@47: : clear melunko@47: s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ melunko@47: t end melunko@47: /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ melunko@47: : end' >>confcache melunko@47: if diff $cache_file confcache >/dev/null 2>&1; then :; else melunko@47: if test -w $cache_file; then melunko@47: test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" melunko@47: cat confcache >$cache_file melunko@47: else melunko@47: echo "not updating unwritable cache $cache_file" melunko@47: fi melunko@47: fi melunko@47: rm -f confcache melunko@47: melunko@47: test "x$prefix" = xNONE && prefix=$ac_default_prefix melunko@47: # Let make expand exec_prefix. melunko@47: test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' melunko@47: melunko@47: # VPATH may cause trouble with some makes, so we remove $(srcdir), melunko@47: # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and melunko@47: # trailing colons and then remove the whole line if VPATH becomes empty melunko@47: # (actually we leave an empty line to preserve line numbers). melunko@47: if test "x$srcdir" = x.; then melunko@47: ac_vpsub='/^[ ]*VPATH[ ]*=/{ melunko@47: s/:*\$(srcdir):*/:/; melunko@47: s/:*\${srcdir}:*/:/; melunko@47: s/:*@srcdir@:*/:/; melunko@47: s/^\([^=]*=[ ]*\):*/\1/; melunko@47: s/:*$//; melunko@47: s/^[^=]*=[ ]*$//; melunko@47: }' melunko@47: fi melunko@47: melunko@47: DEFS=-DHAVE_CONFIG_H melunko@47: melunko@47: ac_libobjs= melunko@47: ac_ltlibobjs= melunko@47: for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue melunko@47: # 1. Remove the extension, and $U if already installed. melunko@47: ac_i=`echo "$ac_i" | melunko@47: sed 's/\$U\././;s/\.o$//;s/\.obj$//'` melunko@47: # 2. Add them. melunko@47: ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" melunko@47: ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' melunko@47: done melunko@47: LIBOBJS=$ac_libobjs melunko@47: melunko@47: LTLIBOBJS=$ac_ltlibobjs melunko@47: melunko@47: melunko@47: if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then melunko@47: { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined. melunko@47: Usually this means the macro was only invoked conditionally." >&5 melunko@47: echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined. melunko@47: Usually this means the macro was only invoked conditionally." >&2;} melunko@47: { (exit 1); exit 1; }; } melunko@47: fi melunko@47: if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then melunko@47: { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. melunko@47: Usually this means the macro was only invoked conditionally." >&5 melunko@47: echo "$as_me: error: conditional \"AMDEP\" was never defined. melunko@47: Usually this means the macro was only invoked conditionally." >&2;} melunko@47: { (exit 1); exit 1; }; } melunko@47: fi melunko@47: if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then melunko@47: { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. melunko@47: Usually this means the macro was only invoked conditionally." >&5 melunko@47: echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. melunko@47: Usually this means the macro was only invoked conditionally." >&2;} melunko@47: { (exit 1); exit 1; }; } melunko@47: fi melunko@47: if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then melunko@47: { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined. melunko@47: Usually this means the macro was only invoked conditionally." >&5 melunko@47: echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined. melunko@47: Usually this means the macro was only invoked conditionally." >&2;} melunko@47: { (exit 1); exit 1; }; } melunko@47: fi melunko@47: if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then melunko@47: { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. melunko@47: Usually this means the macro was only invoked conditionally." >&5 melunko@47: echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. melunko@47: Usually this means the macro was only invoked conditionally." >&2;} melunko@47: { (exit 1); exit 1; }; } melunko@47: fi melunko@47: if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then melunko@47: { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined. melunko@47: Usually this means the macro was only invoked conditionally." >&5 melunko@47: echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined. melunko@47: Usually this means the macro was only invoked conditionally." >&2;} melunko@47: { (exit 1); exit 1; }; } melunko@47: fi melunko@47: melunko@47: : ${CONFIG_STATUS=./config.status} melunko@47: ac_clean_files_save=$ac_clean_files melunko@47: ac_clean_files="$ac_clean_files $CONFIG_STATUS" melunko@47: { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 melunko@47: echo "$as_me: creating $CONFIG_STATUS" >&6;} melunko@47: cat >$CONFIG_STATUS <<_ACEOF melunko@47: #! $SHELL melunko@47: # Generated by $as_me. melunko@47: # Run this file to recreate the current configuration. melunko@47: # Compiler output produced by configure, useful for debugging melunko@47: # configure, is in config.log if it exists. melunko@47: melunko@47: debug=false melunko@47: ac_cs_recheck=false melunko@47: ac_cs_silent=false melunko@47: SHELL=\${CONFIG_SHELL-$SHELL} melunko@47: _ACEOF melunko@47: melunko@47: cat >>$CONFIG_STATUS <<\_ACEOF melunko@47: ## --------------------- ## melunko@47: ## M4sh Initialization. ## melunko@47: ## --------------------- ## melunko@47: melunko@47: # Be Bourne compatible melunko@47: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then melunko@47: emulate sh melunko@47: NULLCMD=: melunko@47: # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which melunko@47: # is contrary to our usage. Disable this feature. melunko@47: alias -g '${1+"$@"}'='"$@"' melunko@47: elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then melunko@47: set -o posix melunko@47: fi melunko@47: DUALCASE=1; export DUALCASE # for MKS sh melunko@47: melunko@47: # Support unset when possible. melunko@47: if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then melunko@47: as_unset=unset melunko@47: else melunko@47: as_unset=false melunko@47: fi melunko@47: melunko@47: melunko@47: # Work around bugs in pre-3.0 UWIN ksh. melunko@47: $as_unset ENV MAIL MAILPATH melunko@47: PS1='$ ' melunko@47: PS2='> ' melunko@47: PS4='+ ' melunko@47: melunko@47: # NLS nuisances. melunko@47: for as_var in \ melunko@47: LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ melunko@47: LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ melunko@47: LC_TELEPHONE LC_TIME melunko@47: do melunko@47: if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then melunko@47: eval $as_var=C; export $as_var melunko@47: else melunko@47: $as_unset $as_var melunko@47: fi melunko@47: done melunko@47: melunko@47: # Required to use basename. melunko@47: if expr a : '\(a\)' >/dev/null 2>&1; then melunko@47: as_expr=expr melunko@47: else melunko@47: as_expr=false melunko@47: fi melunko@47: melunko@47: if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then melunko@47: as_basename=basename melunko@47: else melunko@47: as_basename=false melunko@47: fi melunko@47: melunko@47: melunko@47: # Name of the executable. melunko@47: as_me=`$as_basename "$0" || melunko@47: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ melunko@47: X"$0" : 'X\(//\)$' \| \ melunko@47: X"$0" : 'X\(/\)$' \| \ melunko@47: . : '\(.\)' 2>/dev/null || melunko@47: echo X/"$0" | melunko@47: sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } melunko@47: /^X\/\(\/\/\)$/{ s//\1/; q; } melunko@47: /^X\/\(\/\).*/{ s//\1/; q; } melunko@47: s/.*/./; q'` melunko@47: melunko@47: melunko@47: # PATH needs CR, and LINENO needs CR and PATH. melunko@47: # Avoid depending upon Character Ranges. melunko@47: as_cr_letters='abcdefghijklmnopqrstuvwxyz' melunko@47: as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' melunko@47: as_cr_Letters=$as_cr_letters$as_cr_LETTERS melunko@47: as_cr_digits='0123456789' melunko@47: as_cr_alnum=$as_cr_Letters$as_cr_digits melunko@47: melunko@47: # The user is always right. melunko@47: if test "${PATH_SEPARATOR+set}" != set; then melunko@47: echo "#! /bin/sh" >conf$$.sh melunko@47: echo "exit 0" >>conf$$.sh melunko@47: chmod +x conf$$.sh melunko@47: if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then melunko@47: PATH_SEPARATOR=';' melunko@47: else melunko@47: PATH_SEPARATOR=: melunko@47: fi melunko@47: rm -f conf$$.sh melunko@47: fi melunko@47: melunko@47: melunko@47: as_lineno_1=$LINENO melunko@47: as_lineno_2=$LINENO melunko@47: as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` melunko@47: test "x$as_lineno_1" != "x$as_lineno_2" && melunko@47: test "x$as_lineno_3" = "x$as_lineno_2" || { melunko@47: # Find who we are. Look in the path if we contain no path at all melunko@47: # relative or not. melunko@47: case $0 in melunko@47: *[\\/]* ) as_myself=$0 ;; melunko@47: *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR melunko@47: for as_dir in $PATH melunko@47: do melunko@47: IFS=$as_save_IFS melunko@47: test -z "$as_dir" && as_dir=. melunko@47: test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break melunko@47: done melunko@47: melunko@47: ;; melunko@47: esac melunko@47: # We did not find ourselves, most probably we were run as `sh COMMAND' melunko@47: # in which case we are not to be found in the path. melunko@47: if test "x$as_myself" = x; then melunko@47: as_myself=$0 melunko@47: fi melunko@47: if test ! -f "$as_myself"; then melunko@47: { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 melunko@47: echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} melunko@47: { (exit 1); exit 1; }; } melunko@47: fi melunko@47: case $CONFIG_SHELL in melunko@47: '') melunko@47: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR melunko@47: for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH melunko@47: do melunko@47: IFS=$as_save_IFS melunko@47: test -z "$as_dir" && as_dir=. melunko@47: for as_base in sh bash ksh sh5; do melunko@47: case $as_dir in melunko@47: /*) melunko@47: if ("$as_dir/$as_base" -c ' melunko@47: as_lineno_1=$LINENO melunko@47: as_lineno_2=$LINENO melunko@47: as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` melunko@47: test "x$as_lineno_1" != "x$as_lineno_2" && melunko@47: test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then melunko@47: $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } melunko@47: $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } melunko@47: CONFIG_SHELL=$as_dir/$as_base melunko@47: export CONFIG_SHELL melunko@47: exec "$CONFIG_SHELL" "$0" ${1+"$@"} melunko@47: fi;; melunko@47: esac melunko@47: done melunko@47: done melunko@47: ;; melunko@47: esac melunko@47: melunko@47: # Create $as_me.lineno as a copy of $as_myself, but with $LINENO melunko@47: # uniformly replaced by the line number. The first 'sed' inserts a melunko@47: # line-number line before each line; the second 'sed' does the real melunko@47: # work. The second script uses 'N' to pair each line-number line melunko@47: # with the numbered line, and appends trailing '-' during melunko@47: # substitution so that $LINENO is not a special case at line end. melunko@47: # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the melunko@47: # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) melunko@47: sed '=' <$as_myself | melunko@47: sed ' melunko@47: N melunko@47: s,$,-, melunko@47: : loop melunko@47: s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, melunko@47: t loop melunko@47: s,-$,, melunko@47: s,^['$as_cr_digits']*\n,, melunko@47: ' >$as_me.lineno && melunko@47: chmod +x $as_me.lineno || melunko@47: { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 melunko@47: echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} melunko@47: { (exit 1); exit 1; }; } melunko@47: melunko@47: # Don't try to exec as it changes $[0], causing all sort of problems melunko@47: # (the dirname of $[0] is not the place where we might find the melunko@47: # original and so on. Autoconf is especially sensible to this). melunko@47: . ./$as_me.lineno melunko@47: # Exit status is that of the last command. melunko@47: exit melunko@47: } melunko@47: melunko@47: melunko@47: case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in melunko@47: *c*,-n*) ECHO_N= ECHO_C=' melunko@47: ' ECHO_T=' ' ;; melunko@47: *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; melunko@47: *) ECHO_N= ECHO_C='\c' ECHO_T= ;; melunko@47: esac melunko@47: melunko@47: if expr a : '\(a\)' >/dev/null 2>&1; then melunko@47: as_expr=expr melunko@47: else melunko@47: as_expr=false melunko@47: fi melunko@47: melunko@47: rm -f conf$$ conf$$.exe conf$$.file melunko@47: echo >conf$$.file melunko@47: if ln -s conf$$.file conf$$ 2>/dev/null; then melunko@47: # We could just check for DJGPP; but this test a) works b) is more generic melunko@47: # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). melunko@47: if test -f conf$$.exe; then melunko@47: # Don't use ln at all; we don't have any links melunko@47: as_ln_s='cp -p' melunko@47: else melunko@47: as_ln_s='ln -s' melunko@47: fi melunko@47: elif ln conf$$.file conf$$ 2>/dev/null; then melunko@47: as_ln_s=ln melunko@47: else melunko@47: as_ln_s='cp -p' melunko@47: fi melunko@47: rm -f conf$$ conf$$.exe conf$$.file melunko@47: melunko@47: if mkdir -p . 2>/dev/null; then melunko@47: as_mkdir_p=: melunko@47: else melunko@47: test -d ./-p && rmdir ./-p melunko@47: as_mkdir_p=false melunko@47: fi melunko@47: melunko@47: as_executable_p="test -f" melunko@47: melunko@47: # Sed expression to map a string onto a valid CPP name. melunko@47: as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" melunko@47: melunko@47: # Sed expression to map a string onto a valid variable name. melunko@47: as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" melunko@47: melunko@47: melunko@47: # IFS melunko@47: # We need space, tab and new line, in precisely that order. melunko@47: as_nl=' melunko@47: ' melunko@47: IFS=" $as_nl" melunko@47: melunko@47: # CDPATH. melunko@47: $as_unset CDPATH melunko@47: melunko@47: exec 6>&1 melunko@47: melunko@47: # Open the log real soon, to keep \$[0] and so on meaningful, and to melunko@47: # report actual input values of CONFIG_FILES etc. instead of their melunko@47: # values after options handling. Logging --version etc. is OK. melunko@47: exec 5>>config.log melunko@47: { melunko@47: echo melunko@47: sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX melunko@47: ## Running $as_me. ## melunko@47: _ASBOX melunko@47: } >&5 melunko@47: cat >&5 <<_CSEOF melunko@47: melunko@47: This file was extended by $as_me, which was melunko@47: generated by GNU Autoconf 2.59. Invocation command line was melunko@47: melunko@47: CONFIG_FILES = $CONFIG_FILES melunko@47: CONFIG_HEADERS = $CONFIG_HEADERS melunko@47: CONFIG_LINKS = $CONFIG_LINKS melunko@47: CONFIG_COMMANDS = $CONFIG_COMMANDS melunko@47: $ $0 $@ melunko@47: melunko@47: _CSEOF melunko@47: echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 melunko@47: echo >&5 melunko@47: _ACEOF melunko@47: melunko@47: # Files that config.status was made for. melunko@47: if test -n "$ac_config_files"; then melunko@47: echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS melunko@47: fi melunko@47: melunko@47: if test -n "$ac_config_headers"; then melunko@47: echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS melunko@47: fi melunko@47: melunko@47: if test -n "$ac_config_links"; then melunko@47: echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS melunko@47: fi melunko@47: melunko@47: if test -n "$ac_config_commands"; then melunko@47: echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS melunko@47: fi melunko@47: melunko@47: cat >>$CONFIG_STATUS <<\_ACEOF melunko@47: melunko@47: ac_cs_usage="\ melunko@47: \`$as_me' instantiates files from templates according to the melunko@47: current configuration. melunko@47: melunko@47: Usage: $0 [OPTIONS] [FILE]... melunko@47: melunko@47: -h, --help print this help, then exit melunko@47: -V, --version print version number, then exit melunko@47: -q, --quiet do not print progress messages melunko@47: -d, --debug don't remove temporary files melunko@47: --recheck update $as_me by reconfiguring in the same conditions melunko@47: --file=FILE[:TEMPLATE] melunko@47: instantiate the configuration file FILE melunko@47: --header=FILE[:TEMPLATE] melunko@47: instantiate the configuration header FILE melunko@47: melunko@47: Configuration files: melunko@47: $config_files melunko@47: melunko@47: Configuration headers: melunko@47: $config_headers melunko@47: melunko@47: Configuration commands: melunko@47: $config_commands melunko@47: melunko@47: Report bugs to ." melunko@47: _ACEOF melunko@47: melunko@47: cat >>$CONFIG_STATUS <<_ACEOF melunko@47: ac_cs_version="\\ melunko@47: config.status melunko@47: configured by $0, generated by GNU Autoconf 2.59, melunko@47: with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" melunko@47: melunko@47: Copyright (C) 2003 Free Software Foundation, Inc. melunko@47: This config.status script is free software; the Free Software Foundation melunko@47: gives unlimited permission to copy, distribute and modify it." melunko@47: srcdir=$srcdir melunko@47: INSTALL="$INSTALL" melunko@47: _ACEOF melunko@47: melunko@47: cat >>$CONFIG_STATUS <<\_ACEOF melunko@47: # If no file are specified by the user, then we need to provide default melunko@47: # value. By we need to know if files were specified by the user. melunko@47: ac_need_defaults=: melunko@47: while test $# != 0 melunko@47: do melunko@47: case $1 in melunko@47: --*=*) melunko@47: ac_option=`expr "x$1" : 'x\([^=]*\)='` melunko@47: ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` melunko@47: ac_shift=: melunko@47: ;; melunko@47: -*) melunko@47: ac_option=$1 melunko@47: ac_optarg=$2 melunko@47: ac_shift=shift melunko@47: ;; melunko@47: *) # This is not an option, so the user has probably given explicit melunko@47: # arguments. melunko@47: ac_option=$1 melunko@47: ac_need_defaults=false;; melunko@47: esac melunko@47: melunko@47: case $ac_option in melunko@47: # Handling of the options. melunko@47: _ACEOF melunko@47: cat >>$CONFIG_STATUS <<\_ACEOF melunko@47: -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) melunko@47: ac_cs_recheck=: ;; melunko@47: --version | --vers* | -V ) melunko@47: echo "$ac_cs_version"; exit 0 ;; melunko@47: --he | --h) melunko@47: # Conflict between --help and --header melunko@47: { { echo "$as_me:$LINENO: error: ambiguous option: $1 melunko@47: Try \`$0 --help' for more information." >&5 melunko@47: echo "$as_me: error: ambiguous option: $1 melunko@47: Try \`$0 --help' for more information." >&2;} melunko@47: { (exit 1); exit 1; }; };; melunko@47: --help | --hel | -h ) melunko@47: echo "$ac_cs_usage"; exit 0 ;; melunko@47: --debug | --d* | -d ) melunko@47: debug=: ;; melunko@47: --file | --fil | --fi | --f ) melunko@47: $ac_shift melunko@47: CONFIG_FILES="$CONFIG_FILES $ac_optarg" melunko@47: ac_need_defaults=false;; melunko@47: --header | --heade | --head | --hea ) melunko@47: $ac_shift melunko@47: CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" melunko@47: ac_need_defaults=false;; melunko@47: -q | -quiet | --quiet | --quie | --qui | --qu | --q \ melunko@47: | -silent | --silent | --silen | --sile | --sil | --si | --s) melunko@47: ac_cs_silent=: ;; melunko@47: melunko@47: # This is an error. melunko@47: -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 melunko@47: Try \`$0 --help' for more information." >&5 melunko@47: echo "$as_me: error: unrecognized option: $1 melunko@47: Try \`$0 --help' for more information." >&2;} melunko@47: { (exit 1); exit 1; }; } ;; melunko@47: melunko@47: *) ac_config_targets="$ac_config_targets $1" ;; melunko@47: melunko@47: esac melunko@47: shift melunko@47: done melunko@47: melunko@47: ac_configure_extra_args= melunko@47: melunko@47: if $ac_cs_silent; then melunko@47: exec 6>/dev/null melunko@47: ac_configure_extra_args="$ac_configure_extra_args --silent" melunko@47: fi melunko@47: melunko@47: _ACEOF melunko@47: cat >>$CONFIG_STATUS <<_ACEOF melunko@47: if \$ac_cs_recheck; then melunko@47: echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 melunko@47: exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion melunko@47: fi melunko@47: melunko@47: _ACEOF melunko@47: melunko@47: cat >>$CONFIG_STATUS <<_ACEOF melunko@47: # melunko@47: # INIT-COMMANDS section. melunko@47: # melunko@47: melunko@47: AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" melunko@47: melunko@47: _ACEOF melunko@47: melunko@47: melunko@47: melunko@47: cat >>$CONFIG_STATUS <<\_ACEOF melunko@47: for ac_config_target in $ac_config_targets melunko@47: do melunko@47: case "$ac_config_target" in melunko@47: # Handling of arguments. melunko@47: "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; melunko@47: "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; melunko@47: "m4/Makefile" ) CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;; melunko@47: "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; melunko@47: "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; melunko@47: *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 melunko@47: echo "$as_me: error: invalid argument: $ac_config_target" >&2;} melunko@47: { (exit 1); exit 1; }; };; melunko@47: esac melunko@47: done melunko@47: melunko@47: # If the user did not use the arguments to specify the items to instantiate, melunko@47: # then the envvar interface is used. Set only those that are not. melunko@47: # We use the long form for the default assignment because of an extremely melunko@47: # bizarre bug on SunOS 4.1.3. melunko@47: if $ac_need_defaults; then melunko@47: test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files melunko@47: test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers melunko@47: test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands melunko@47: fi melunko@47: melunko@47: # Have a temporary directory for convenience. Make it in the build tree melunko@47: # simply because there is no reason to put it here, and in addition, melunko@47: # creating and moving files from /tmp can sometimes cause problems. melunko@47: # Create a temporary directory, and hook for its removal unless debugging. melunko@47: $debug || melunko@47: { melunko@47: trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 melunko@47: trap '{ (exit 1); exit 1; }' 1 2 13 15 melunko@47: } melunko@47: melunko@47: # Create a (secure) tmp directory for tmp files. melunko@47: melunko@47: { melunko@47: tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && melunko@47: test -n "$tmp" && test -d "$tmp" melunko@47: } || melunko@47: { melunko@47: tmp=./confstat$$-$RANDOM melunko@47: (umask 077 && mkdir $tmp) melunko@47: } || melunko@47: { melunko@47: echo "$me: cannot create a temporary directory in ." >&2 melunko@47: { (exit 1); exit 1; } melunko@47: } melunko@47: melunko@47: _ACEOF melunko@47: melunko@47: cat >>$CONFIG_STATUS <<_ACEOF melunko@47: melunko@47: # melunko@47: # CONFIG_FILES section. melunko@47: # melunko@47: melunko@47: # No need to generate the scripts if there are no CONFIG_FILES. melunko@47: # This happens for instance when ./config.status config.h melunko@47: if test -n "\$CONFIG_FILES"; then melunko@47: # Protect against being on the right side of a sed subst in config.status. melunko@47: sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; melunko@47: s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF melunko@47: s,@SHELL@,$SHELL,;t t melunko@47: s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t melunko@47: s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t melunko@47: s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t melunko@47: s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t melunko@47: s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t melunko@47: s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t melunko@47: s,@exec_prefix@,$exec_prefix,;t t melunko@47: s,@prefix@,$prefix,;t t melunko@47: s,@program_transform_name@,$program_transform_name,;t t melunko@47: s,@bindir@,$bindir,;t t melunko@47: s,@sbindir@,$sbindir,;t t melunko@47: s,@libexecdir@,$libexecdir,;t t melunko@47: s,@datadir@,$datadir,;t t melunko@47: s,@sysconfdir@,$sysconfdir,;t t melunko@47: s,@sharedstatedir@,$sharedstatedir,;t t melunko@47: s,@localstatedir@,$localstatedir,;t t melunko@47: s,@libdir@,$libdir,;t t melunko@47: s,@includedir@,$includedir,;t t melunko@47: s,@oldincludedir@,$oldincludedir,;t t melunko@47: s,@infodir@,$infodir,;t t melunko@47: s,@mandir@,$mandir,;t t melunko@47: s,@build_alias@,$build_alias,;t t melunko@47: s,@host_alias@,$host_alias,;t t melunko@47: s,@target_alias@,$target_alias,;t t melunko@47: s,@DEFS@,$DEFS,;t t melunko@47: s,@ECHO_C@,$ECHO_C,;t t melunko@47: s,@ECHO_N@,$ECHO_N,;t t melunko@47: s,@ECHO_T@,$ECHO_T,;t t melunko@47: s,@LIBS@,$LIBS,;t t melunko@47: s,@build@,$build,;t t melunko@47: s,@build_cpu@,$build_cpu,;t t melunko@47: s,@build_vendor@,$build_vendor,;t t melunko@47: s,@build_os@,$build_os,;t t melunko@47: s,@host@,$host,;t t melunko@47: s,@host_cpu@,$host_cpu,;t t melunko@47: s,@host_vendor@,$host_vendor,;t t melunko@47: s,@host_os@,$host_os,;t t melunko@47: s,@target@,$target,;t t melunko@47: s,@target_cpu@,$target_cpu,;t t melunko@47: s,@target_vendor@,$target_vendor,;t t melunko@47: s,@target_os@,$target_os,;t t melunko@47: s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t melunko@47: s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t melunko@47: s,@MAINT@,$MAINT,;t t melunko@47: s,@GST_PLUGINS_VERSION@,$GST_PLUGINS_VERSION,;t t melunko@47: s,@GST_PLUGINS_VERSION_RELEASE@,$GST_PLUGINS_VERSION_RELEASE,;t t melunko@47: s,@GST_PLUGINS_VERSION_MAJOR@,$GST_PLUGINS_VERSION_MAJOR,;t t melunko@47: s,@GST_PLUGINS_VERSION_MINOR@,$GST_PLUGINS_VERSION_MINOR,;t t melunko@47: s,@GST_PLUGINS_VERSION_MICRO@,$GST_PLUGINS_VERSION_MICRO,;t t melunko@47: s,@GST_PLUGINS_VERSION_NANO@,$GST_PLUGINS_VERSION_NANO,;t t melunko@47: s,@PACKAGE@,$PACKAGE,;t t melunko@47: s,@VERSION@,$VERSION,;t t melunko@47: s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t melunko@47: s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t melunko@47: s,@INSTALL_DATA@,$INSTALL_DATA,;t t melunko@47: s,@CYGPATH_W@,$CYGPATH_W,;t t melunko@47: s,@ACLOCAL@,$ACLOCAL,;t t melunko@47: s,@AUTOCONF@,$AUTOCONF,;t t melunko@47: s,@AUTOMAKE@,$AUTOMAKE,;t t melunko@47: s,@AUTOHEADER@,$AUTOHEADER,;t t melunko@47: s,@MAKEINFO@,$MAKEINFO,;t t melunko@47: s,@AMTAR@,$AMTAR,;t t melunko@47: s,@install_sh@,$install_sh,;t t melunko@47: s,@STRIP@,$STRIP,;t t melunko@47: s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t melunko@47: s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t melunko@47: s,@mkdir_p@,$mkdir_p,;t t melunko@47: s,@AWK@,$AWK,;t t melunko@47: s,@SET_MAKE@,$SET_MAKE,;t t melunko@47: s,@am__leading_dot@,$am__leading_dot,;t t melunko@47: s,@CC@,$CC,;t t melunko@47: s,@CFLAGS@,$CFLAGS,;t t melunko@47: s,@LDFLAGS@,$LDFLAGS,;t t melunko@47: s,@CPPFLAGS@,$CPPFLAGS,;t t melunko@47: s,@ac_ct_CC@,$ac_ct_CC,;t t melunko@47: s,@EXEEXT@,$EXEEXT,;t t melunko@47: s,@OBJEXT@,$OBJEXT,;t t melunko@47: s,@DEPDIR@,$DEPDIR,;t t melunko@47: s,@am__include@,$am__include,;t t melunko@47: s,@am__quote@,$am__quote,;t t melunko@47: s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t melunko@47: s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t melunko@47: s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t melunko@47: s,@CCDEPMODE@,$CCDEPMODE,;t t melunko@47: s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t melunko@47: s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t melunko@47: s,@EGREP@,$EGREP,;t t melunko@47: s,@LN_S@,$LN_S,;t t melunko@47: s,@ECHO@,$ECHO,;t t melunko@47: s,@AR@,$AR,;t t melunko@47: s,@ac_ct_AR@,$ac_ct_AR,;t t melunko@47: s,@RANLIB@,$RANLIB,;t t melunko@47: s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t melunko@47: s,@CPP@,$CPP,;t t melunko@47: s,@CXX@,$CXX,;t t melunko@47: s,@CXXFLAGS@,$CXXFLAGS,;t t melunko@47: s,@ac_ct_CXX@,$ac_ct_CXX,;t t melunko@47: s,@CXXDEPMODE@,$CXXDEPMODE,;t t melunko@47: s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t melunko@47: s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t melunko@47: s,@CXXCPP@,$CXXCPP,;t t melunko@47: s,@F77@,$F77,;t t melunko@47: s,@FFLAGS@,$FFLAGS,;t t melunko@47: s,@ac_ct_F77@,$ac_ct_F77,;t t melunko@47: s,@LIBTOOL@,$LIBTOOL,;t t melunko@47: s,@ACLOCAL_AMFLAGS@,$ACLOCAL_AMFLAGS,;t t melunko@47: s,@CCAS@,$CCAS,;t t melunko@47: s,@CCASFLAGS@,$CCASFLAGS,;t t melunko@47: s,@ERROR_CFLAGS@,$ERROR_CFLAGS,;t t melunko@47: s,@HAVE_CXX@,$HAVE_CXX,;t t melunko@47: s,@HAVE_PKGCONFIG@,$HAVE_PKGCONFIG,;t t melunko@47: s,@PKG_CONFIG@,$PKG_CONFIG,;t t melunko@47: s,@GST_CFLAGS@,$GST_CFLAGS,;t t melunko@47: s,@GST_LIBS@,$GST_LIBS,;t t melunko@47: s,@GST_MAJORMINOR@,$GST_MAJORMINOR,;t t melunko@47: s,@GST_BASE_CFLAGS@,$GST_BASE_CFLAGS,;t t melunko@47: s,@GST_BASE_LIBS@,$GST_BASE_LIBS,;t t melunko@47: s,@GST_PLUGINS_BASE_CFLAGS@,$GST_PLUGINS_BASE_CFLAGS,;t t melunko@47: s,@GST_PLUGINS_BASE_LIBS@,$GST_PLUGINS_BASE_LIBS,;t t melunko@47: s,@plugindir@,$plugindir,;t t melunko@47: s,@GST_PLUGIN_LDFLAGS@,$GST_PLUGIN_LDFLAGS,;t t melunko@47: s,@LIBOBJS@,$LIBOBJS,;t t melunko@47: s,@LTLIBOBJS@,$LTLIBOBJS,;t t melunko@47: CEOF melunko@47: melunko@47: _ACEOF melunko@47: melunko@47: cat >>$CONFIG_STATUS <<\_ACEOF melunko@47: # Split the substitutions into bite-sized pieces for seds with melunko@47: # small command number limits, like on Digital OSF/1 and HP-UX. melunko@47: ac_max_sed_lines=48 melunko@47: ac_sed_frag=1 # Number of current file. melunko@47: ac_beg=1 # First line for current file. melunko@47: ac_end=$ac_max_sed_lines # Line after last line for current file. melunko@47: ac_more_lines=: melunko@47: ac_sed_cmds= melunko@47: while $ac_more_lines; do melunko@47: if test $ac_beg -gt 1; then melunko@47: sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag melunko@47: else melunko@47: sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag melunko@47: fi melunko@47: if test ! -s $tmp/subs.frag; then melunko@47: ac_more_lines=false melunko@47: else melunko@47: # The purpose of the label and of the branching condition is to melunko@47: # speed up the sed processing (if there are no `@' at all, there melunko@47: # is no need to browse any of the substitutions). melunko@47: # These are the two extra sed commands mentioned above. melunko@47: (echo ':t melunko@47: /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed melunko@47: if test -z "$ac_sed_cmds"; then melunko@47: ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" melunko@47: else melunko@47: ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" melunko@47: fi melunko@47: ac_sed_frag=`expr $ac_sed_frag + 1` melunko@47: ac_beg=$ac_end melunko@47: ac_end=`expr $ac_end + $ac_max_sed_lines` melunko@47: fi melunko@47: done melunko@47: if test -z "$ac_sed_cmds"; then melunko@47: ac_sed_cmds=cat melunko@47: fi melunko@47: fi # test -n "$CONFIG_FILES" melunko@47: melunko@47: _ACEOF melunko@47: cat >>$CONFIG_STATUS <<\_ACEOF melunko@47: for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue melunko@47: # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". melunko@47: case $ac_file in melunko@47: - | *:- | *:-:* ) # input from stdin melunko@47: cat >$tmp/stdin melunko@47: ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` melunko@47: ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; melunko@47: *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` melunko@47: ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; melunko@47: * ) ac_file_in=$ac_file.in ;; melunko@47: esac melunko@47: melunko@47: # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. melunko@47: ac_dir=`(dirname "$ac_file") 2>/dev/null || melunko@47: $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ melunko@47: X"$ac_file" : 'X\(//\)[^/]' \| \ melunko@47: X"$ac_file" : 'X\(//\)$' \| \ melunko@47: X"$ac_file" : 'X\(/\)' \| \ melunko@47: . : '\(.\)' 2>/dev/null || melunko@47: echo X"$ac_file" | melunko@47: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } melunko@47: /^X\(\/\/\)[^/].*/{ s//\1/; q; } melunko@47: /^X\(\/\/\)$/{ s//\1/; q; } melunko@47: /^X\(\/\).*/{ s//\1/; q; } melunko@47: s/.*/./; q'` melunko@47: { if $as_mkdir_p; then melunko@47: mkdir -p "$ac_dir" melunko@47: else melunko@47: as_dir="$ac_dir" melunko@47: as_dirs= melunko@47: while test ! -d "$as_dir"; do melunko@47: as_dirs="$as_dir $as_dirs" melunko@47: as_dir=`(dirname "$as_dir") 2>/dev/null || melunko@47: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ melunko@47: X"$as_dir" : 'X\(//\)[^/]' \| \ melunko@47: X"$as_dir" : 'X\(//\)$' \| \ melunko@47: X"$as_dir" : 'X\(/\)' \| \ melunko@47: . : '\(.\)' 2>/dev/null || melunko@47: echo X"$as_dir" | melunko@47: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } melunko@47: /^X\(\/\/\)[^/].*/{ s//\1/; q; } melunko@47: /^X\(\/\/\)$/{ s//\1/; q; } melunko@47: /^X\(\/\).*/{ s//\1/; q; } melunko@47: s/.*/./; q'` melunko@47: done melunko@47: test ! -n "$as_dirs" || mkdir $as_dirs melunko@47: fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 melunko@47: echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} melunko@47: { (exit 1); exit 1; }; }; } melunko@47: melunko@47: ac_builddir=. melunko@47: melunko@47: if test "$ac_dir" != .; then melunko@47: ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` melunko@47: # A "../" for each directory in $ac_dir_suffix. melunko@47: ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` melunko@47: else melunko@47: ac_dir_suffix= ac_top_builddir= melunko@47: fi melunko@47: melunko@47: case $srcdir in melunko@47: .) # No --srcdir option. We are building in place. melunko@47: ac_srcdir=. melunko@47: if test -z "$ac_top_builddir"; then melunko@47: ac_top_srcdir=. melunko@47: else melunko@47: ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` melunko@47: fi ;; melunko@47: [\\/]* | ?:[\\/]* ) # Absolute path. melunko@47: ac_srcdir=$srcdir$ac_dir_suffix; melunko@47: ac_top_srcdir=$srcdir ;; melunko@47: *) # Relative path. melunko@47: ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix melunko@47: ac_top_srcdir=$ac_top_builddir$srcdir ;; melunko@47: esac melunko@47: melunko@47: # Do not use `cd foo && pwd` to compute absolute paths, because melunko@47: # the directories may not exist. melunko@47: case `pwd` in melunko@47: .) ac_abs_builddir="$ac_dir";; melunko@47: *) melunko@47: case "$ac_dir" in melunko@47: .) ac_abs_builddir=`pwd`;; melunko@47: [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; melunko@47: *) ac_abs_builddir=`pwd`/"$ac_dir";; melunko@47: esac;; melunko@47: esac melunko@47: case $ac_abs_builddir in melunko@47: .) ac_abs_top_builddir=${ac_top_builddir}.;; melunko@47: *) melunko@47: case ${ac_top_builddir}. in melunko@47: .) ac_abs_top_builddir=$ac_abs_builddir;; melunko@47: [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; melunko@47: *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; melunko@47: esac;; melunko@47: esac melunko@47: case $ac_abs_builddir in melunko@47: .) ac_abs_srcdir=$ac_srcdir;; melunko@47: *) melunko@47: case $ac_srcdir in melunko@47: .) ac_abs_srcdir=$ac_abs_builddir;; melunko@47: [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; melunko@47: *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; melunko@47: esac;; melunko@47: esac melunko@47: case $ac_abs_builddir in melunko@47: .) ac_abs_top_srcdir=$ac_top_srcdir;; melunko@47: *) melunko@47: case $ac_top_srcdir in melunko@47: .) ac_abs_top_srcdir=$ac_abs_builddir;; melunko@47: [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; melunko@47: *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; melunko@47: esac;; melunko@47: esac melunko@47: melunko@47: melunko@47: case $INSTALL in melunko@47: [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; melunko@47: *) ac_INSTALL=$ac_top_builddir$INSTALL ;; melunko@47: esac melunko@47: melunko@47: # Let's still pretend it is `configure' which instantiates (i.e., don't melunko@47: # use $as_me), people would be surprised to read: melunko@47: # /* config.h. Generated by config.status. */ melunko@47: if test x"$ac_file" = x-; then melunko@47: configure_input= melunko@47: else melunko@47: configure_input="$ac_file. " melunko@47: fi melunko@47: configure_input=$configure_input"Generated from `echo $ac_file_in | melunko@47: sed 's,.*/,,'` by configure." melunko@47: melunko@47: # First look for the input files in the build tree, otherwise in the melunko@47: # src tree. melunko@47: ac_file_inputs=`IFS=: melunko@47: for f in $ac_file_in; do melunko@47: case $f in melunko@47: -) echo $tmp/stdin ;; melunko@47: [\\/$]*) melunko@47: # Absolute (can't be DOS-style, as IFS=:) melunko@47: test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 melunko@47: echo "$as_me: error: cannot find input file: $f" >&2;} melunko@47: { (exit 1); exit 1; }; } melunko@47: echo "$f";; melunko@47: *) # Relative melunko@47: if test -f "$f"; then melunko@47: # Build tree melunko@47: echo "$f" melunko@47: elif test -f "$srcdir/$f"; then melunko@47: # Source tree melunko@47: echo "$srcdir/$f" melunko@47: else melunko@47: # /dev/null tree melunko@47: { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 melunko@47: echo "$as_me: error: cannot find input file: $f" >&2;} melunko@47: { (exit 1); exit 1; }; } melunko@47: fi;; melunko@47: esac melunko@47: done` || { (exit 1); exit 1; } melunko@47: melunko@47: if test x"$ac_file" != x-; then melunko@47: { echo "$as_me:$LINENO: creating $ac_file" >&5 melunko@47: echo "$as_me: creating $ac_file" >&6;} melunko@47: rm -f "$ac_file" melunko@47: fi melunko@47: _ACEOF melunko@47: cat >>$CONFIG_STATUS <<_ACEOF melunko@47: sed "$ac_vpsub melunko@47: $extrasub melunko@47: _ACEOF melunko@47: cat >>$CONFIG_STATUS <<\_ACEOF melunko@47: :t melunko@47: /@[a-zA-Z_][a-zA-Z_0-9]*@/!b melunko@47: s,@configure_input@,$configure_input,;t t melunko@47: s,@srcdir@,$ac_srcdir,;t t melunko@47: s,@abs_srcdir@,$ac_abs_srcdir,;t t melunko@47: s,@top_srcdir@,$ac_top_srcdir,;t t melunko@47: s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t melunko@47: s,@builddir@,$ac_builddir,;t t melunko@47: s,@abs_builddir@,$ac_abs_builddir,;t t melunko@47: s,@top_builddir@,$ac_top_builddir,;t t melunko@47: s,@abs_top_builddir@,$ac_abs_top_builddir,;t t melunko@47: s,@INSTALL@,$ac_INSTALL,;t t melunko@47: " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out melunko@47: rm -f $tmp/stdin melunko@47: if test x"$ac_file" != x-; then melunko@47: mv $tmp/out $ac_file melunko@47: else melunko@47: cat $tmp/out melunko@47: rm -f $tmp/out melunko@47: fi melunko@47: melunko@47: done melunko@47: _ACEOF melunko@47: cat >>$CONFIG_STATUS <<\_ACEOF melunko@47: melunko@47: # melunko@47: # CONFIG_HEADER section. melunko@47: # melunko@47: melunko@47: # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where melunko@47: # NAME is the cpp macro being defined and VALUE is the value it is being given. melunko@47: # melunko@47: # ac_d sets the value in "#define NAME VALUE" lines. melunko@47: ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' melunko@47: ac_dB='[ ].*$,\1#\2' melunko@47: ac_dC=' ' melunko@47: ac_dD=',;t' melunko@47: # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". melunko@47: ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' melunko@47: ac_uB='$,\1#\2define\3' melunko@47: ac_uC=' ' melunko@47: ac_uD=',;t' melunko@47: melunko@47: for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue melunko@47: # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". melunko@47: case $ac_file in melunko@47: - | *:- | *:-:* ) # input from stdin melunko@47: cat >$tmp/stdin melunko@47: ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` melunko@47: ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; melunko@47: *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` melunko@47: ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; melunko@47: * ) ac_file_in=$ac_file.in ;; melunko@47: esac melunko@47: melunko@47: test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 melunko@47: echo "$as_me: creating $ac_file" >&6;} melunko@47: melunko@47: # First look for the input files in the build tree, otherwise in the melunko@47: # src tree. melunko@47: ac_file_inputs=`IFS=: melunko@47: for f in $ac_file_in; do melunko@47: case $f in melunko@47: -) echo $tmp/stdin ;; melunko@47: [\\/$]*) melunko@47: # Absolute (can't be DOS-style, as IFS=:) melunko@47: test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 melunko@47: echo "$as_me: error: cannot find input file: $f" >&2;} melunko@47: { (exit 1); exit 1; }; } melunko@47: # Do quote $f, to prevent DOS paths from being IFS'd. melunko@47: echo "$f";; melunko@47: *) # Relative melunko@47: if test -f "$f"; then melunko@47: # Build tree melunko@47: echo "$f" melunko@47: elif test -f "$srcdir/$f"; then melunko@47: # Source tree melunko@47: echo "$srcdir/$f" melunko@47: else melunko@47: # /dev/null tree melunko@47: { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 melunko@47: echo "$as_me: error: cannot find input file: $f" >&2;} melunko@47: { (exit 1); exit 1; }; } melunko@47: fi;; melunko@47: esac melunko@47: done` || { (exit 1); exit 1; } melunko@47: # Remove the trailing spaces. melunko@47: sed 's/[ ]*$//' $ac_file_inputs >$tmp/in melunko@47: melunko@47: _ACEOF melunko@47: melunko@47: # Transform confdefs.h into two sed scripts, `conftest.defines' and melunko@47: # `conftest.undefs', that substitutes the proper values into melunko@47: # config.h.in to produce config.h. The first handles `#define' melunko@47: # templates, and the second `#undef' templates. melunko@47: # And first: Protect against being on the right side of a sed subst in melunko@47: # config.status. Protect against being in an unquoted here document melunko@47: # in config.status. melunko@47: rm -f conftest.defines conftest.undefs melunko@47: # Using a here document instead of a string reduces the quoting nightmare. melunko@47: # Putting comments in sed scripts is not portable. melunko@47: # melunko@47: # `end' is used to avoid that the second main sed command (meant for melunko@47: # 0-ary CPP macros) applies to n-ary macro definitions. melunko@47: # See the Autoconf documentation for `clear'. melunko@47: cat >confdef2sed.sed <<\_ACEOF melunko@47: s/[\\&,]/\\&/g melunko@47: s,[\\$`],\\&,g melunko@47: t clear melunko@47: : clear melunko@47: s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp melunko@47: t end melunko@47: s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp melunko@47: : end melunko@47: _ACEOF melunko@47: # If some macros were called several times there might be several times melunko@47: # the same #defines, which is useless. Nevertheless, we may not want to melunko@47: # sort them, since we want the *last* AC-DEFINE to be honored. melunko@47: uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines melunko@47: sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs melunko@47: rm -f confdef2sed.sed melunko@47: melunko@47: # This sed command replaces #undef with comments. This is necessary, for melunko@47: # example, in the case of _POSIX_SOURCE, which is predefined and required melunko@47: # on some systems where configure will not decide to define it. melunko@47: cat >>conftest.undefs <<\_ACEOF melunko@47: s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, melunko@47: _ACEOF melunko@47: melunko@47: # Break up conftest.defines because some shells have a limit on the size melunko@47: # of here documents, and old seds have small limits too (100 cmds). melunko@47: echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS melunko@47: echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS melunko@47: echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS melunko@47: echo ' :' >>$CONFIG_STATUS melunko@47: rm -f conftest.tail melunko@47: while grep . conftest.defines >/dev/null melunko@47: do melunko@47: # Write a limited-size here document to $tmp/defines.sed. melunko@47: echo ' cat >$tmp/defines.sed <>$CONFIG_STATUS melunko@47: # Speed up: don't consider the non `#define' lines. melunko@47: echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS melunko@47: # Work around the forget-to-reset-the-flag bug. melunko@47: echo 't clr' >>$CONFIG_STATUS melunko@47: echo ': clr' >>$CONFIG_STATUS melunko@47: sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS melunko@47: echo 'CEOF melunko@47: sed -f $tmp/defines.sed $tmp/in >$tmp/out melunko@47: rm -f $tmp/in melunko@47: mv $tmp/out $tmp/in melunko@47: ' >>$CONFIG_STATUS melunko@47: sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail melunko@47: rm -f conftest.defines melunko@47: mv conftest.tail conftest.defines melunko@47: done melunko@47: rm -f conftest.defines melunko@47: echo ' fi # grep' >>$CONFIG_STATUS melunko@47: echo >>$CONFIG_STATUS melunko@47: melunko@47: # Break up conftest.undefs because some shells have a limit on the size melunko@47: # of here documents, and old seds have small limits too (100 cmds). melunko@47: echo ' # Handle all the #undef templates' >>$CONFIG_STATUS melunko@47: rm -f conftest.tail melunko@47: while grep . conftest.undefs >/dev/null melunko@47: do melunko@47: # Write a limited-size here document to $tmp/undefs.sed. melunko@47: echo ' cat >$tmp/undefs.sed <>$CONFIG_STATUS melunko@47: # Speed up: don't consider the non `#undef' melunko@47: echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS melunko@47: # Work around the forget-to-reset-the-flag bug. melunko@47: echo 't clr' >>$CONFIG_STATUS melunko@47: echo ': clr' >>$CONFIG_STATUS melunko@47: sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS melunko@47: echo 'CEOF melunko@47: sed -f $tmp/undefs.sed $tmp/in >$tmp/out melunko@47: rm -f $tmp/in melunko@47: mv $tmp/out $tmp/in melunko@47: ' >>$CONFIG_STATUS melunko@47: sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail melunko@47: rm -f conftest.undefs melunko@47: mv conftest.tail conftest.undefs melunko@47: done melunko@47: rm -f conftest.undefs melunko@47: melunko@47: cat >>$CONFIG_STATUS <<\_ACEOF melunko@47: # Let's still pretend it is `configure' which instantiates (i.e., don't melunko@47: # use $as_me), people would be surprised to read: melunko@47: # /* config.h. Generated by config.status. */ melunko@47: if test x"$ac_file" = x-; then melunko@47: echo "/* Generated by configure. */" >$tmp/config.h melunko@47: else melunko@47: echo "/* $ac_file. Generated by configure. */" >$tmp/config.h melunko@47: fi melunko@47: cat $tmp/in >>$tmp/config.h melunko@47: rm -f $tmp/in melunko@47: if test x"$ac_file" != x-; then melunko@47: if diff $ac_file $tmp/config.h >/dev/null 2>&1; then melunko@47: { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 melunko@47: echo "$as_me: $ac_file is unchanged" >&6;} melunko@47: else melunko@47: ac_dir=`(dirname "$ac_file") 2>/dev/null || melunko@47: $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ melunko@47: X"$ac_file" : 'X\(//\)[^/]' \| \ melunko@47: X"$ac_file" : 'X\(//\)$' \| \ melunko@47: X"$ac_file" : 'X\(/\)' \| \ melunko@47: . : '\(.\)' 2>/dev/null || melunko@47: echo X"$ac_file" | melunko@47: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } melunko@47: /^X\(\/\/\)[^/].*/{ s//\1/; q; } melunko@47: /^X\(\/\/\)$/{ s//\1/; q; } melunko@47: /^X\(\/\).*/{ s//\1/; q; } melunko@47: s/.*/./; q'` melunko@47: { if $as_mkdir_p; then melunko@47: mkdir -p "$ac_dir" melunko@47: else melunko@47: as_dir="$ac_dir" melunko@47: as_dirs= melunko@47: while test ! -d "$as_dir"; do melunko@47: as_dirs="$as_dir $as_dirs" melunko@47: as_dir=`(dirname "$as_dir") 2>/dev/null || melunko@47: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ melunko@47: X"$as_dir" : 'X\(//\)[^/]' \| \ melunko@47: X"$as_dir" : 'X\(//\)$' \| \ melunko@47: X"$as_dir" : 'X\(/\)' \| \ melunko@47: . : '\(.\)' 2>/dev/null || melunko@47: echo X"$as_dir" | melunko@47: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } melunko@47: /^X\(\/\/\)[^/].*/{ s//\1/; q; } melunko@47: /^X\(\/\/\)$/{ s//\1/; q; } melunko@47: /^X\(\/\).*/{ s//\1/; q; } melunko@47: s/.*/./; q'` melunko@47: done melunko@47: test ! -n "$as_dirs" || mkdir $as_dirs melunko@47: fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 melunko@47: echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} melunko@47: { (exit 1); exit 1; }; }; } melunko@47: melunko@47: rm -f $ac_file melunko@47: mv $tmp/config.h $ac_file melunko@47: fi melunko@47: else melunko@47: cat $tmp/config.h melunko@47: rm -f $tmp/config.h melunko@47: fi melunko@47: # Compute $ac_file's index in $config_headers. melunko@47: _am_stamp_count=1 melunko@47: for _am_header in $config_headers :; do melunko@47: case $_am_header in melunko@47: $ac_file | $ac_file:* ) melunko@47: break ;; melunko@47: * ) melunko@47: _am_stamp_count=`expr $_am_stamp_count + 1` ;; melunko@47: esac melunko@47: done melunko@47: echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null || melunko@47: $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ melunko@47: X$ac_file : 'X\(//\)[^/]' \| \ melunko@47: X$ac_file : 'X\(//\)$' \| \ melunko@47: X$ac_file : 'X\(/\)' \| \ melunko@47: . : '\(.\)' 2>/dev/null || melunko@47: echo X$ac_file | melunko@47: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } melunko@47: /^X\(\/\/\)[^/].*/{ s//\1/; q; } melunko@47: /^X\(\/\/\)$/{ s//\1/; q; } melunko@47: /^X\(\/\).*/{ s//\1/; q; } melunko@47: s/.*/./; q'`/stamp-h$_am_stamp_count melunko@47: done melunko@47: _ACEOF melunko@47: cat >>$CONFIG_STATUS <<\_ACEOF melunko@47: melunko@47: # melunko@47: # CONFIG_COMMANDS section. melunko@47: # melunko@47: for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue melunko@47: ac_dest=`echo "$ac_file" | sed 's,:.*,,'` melunko@47: ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` melunko@47: ac_dir=`(dirname "$ac_dest") 2>/dev/null || melunko@47: $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ melunko@47: X"$ac_dest" : 'X\(//\)[^/]' \| \ melunko@47: X"$ac_dest" : 'X\(//\)$' \| \ melunko@47: X"$ac_dest" : 'X\(/\)' \| \ melunko@47: . : '\(.\)' 2>/dev/null || melunko@47: echo X"$ac_dest" | melunko@47: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } melunko@47: /^X\(\/\/\)[^/].*/{ s//\1/; q; } melunko@47: /^X\(\/\/\)$/{ s//\1/; q; } melunko@47: /^X\(\/\).*/{ s//\1/; q; } melunko@47: s/.*/./; q'` melunko@47: { if $as_mkdir_p; then melunko@47: mkdir -p "$ac_dir" melunko@47: else melunko@47: as_dir="$ac_dir" melunko@47: as_dirs= melunko@47: while test ! -d "$as_dir"; do melunko@47: as_dirs="$as_dir $as_dirs" melunko@47: as_dir=`(dirname "$as_dir") 2>/dev/null || melunko@47: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ melunko@47: X"$as_dir" : 'X\(//\)[^/]' \| \ melunko@47: X"$as_dir" : 'X\(//\)$' \| \ melunko@47: X"$as_dir" : 'X\(/\)' \| \ melunko@47: . : '\(.\)' 2>/dev/null || melunko@47: echo X"$as_dir" | melunko@47: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } melunko@47: /^X\(\/\/\)[^/].*/{ s//\1/; q; } melunko@47: /^X\(\/\/\)$/{ s//\1/; q; } melunko@47: /^X\(\/\).*/{ s//\1/; q; } melunko@47: s/.*/./; q'` melunko@47: done melunko@47: test ! -n "$as_dirs" || mkdir $as_dirs melunko@47: fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 melunko@47: echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} melunko@47: { (exit 1); exit 1; }; }; } melunko@47: melunko@47: ac_builddir=. melunko@47: melunko@47: if test "$ac_dir" != .; then melunko@47: ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` melunko@47: # A "../" for each directory in $ac_dir_suffix. melunko@47: ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` melunko@47: else melunko@47: ac_dir_suffix= ac_top_builddir= melunko@47: fi melunko@47: melunko@47: case $srcdir in melunko@47: .) # No --srcdir option. We are building in place. melunko@47: ac_srcdir=. melunko@47: if test -z "$ac_top_builddir"; then melunko@47: ac_top_srcdir=. melunko@47: else melunko@47: ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` melunko@47: fi ;; melunko@47: [\\/]* | ?:[\\/]* ) # Absolute path. melunko@47: ac_srcdir=$srcdir$ac_dir_suffix; melunko@47: ac_top_srcdir=$srcdir ;; melunko@47: *) # Relative path. melunko@47: ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix melunko@47: ac_top_srcdir=$ac_top_builddir$srcdir ;; melunko@47: esac melunko@47: melunko@47: # Do not use `cd foo && pwd` to compute absolute paths, because melunko@47: # the directories may not exist. melunko@47: case `pwd` in melunko@47: .) ac_abs_builddir="$ac_dir";; melunko@47: *) melunko@47: case "$ac_dir" in melunko@47: .) ac_abs_builddir=`pwd`;; melunko@47: [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; melunko@47: *) ac_abs_builddir=`pwd`/"$ac_dir";; melunko@47: esac;; melunko@47: esac melunko@47: case $ac_abs_builddir in melunko@47: .) ac_abs_top_builddir=${ac_top_builddir}.;; melunko@47: *) melunko@47: case ${ac_top_builddir}. in melunko@47: .) ac_abs_top_builddir=$ac_abs_builddir;; melunko@47: [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; melunko@47: *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; melunko@47: esac;; melunko@47: esac melunko@47: case $ac_abs_builddir in melunko@47: .) ac_abs_srcdir=$ac_srcdir;; melunko@47: *) melunko@47: case $ac_srcdir in melunko@47: .) ac_abs_srcdir=$ac_abs_builddir;; melunko@47: [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; melunko@47: *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; melunko@47: esac;; melunko@47: esac melunko@47: case $ac_abs_builddir in melunko@47: .) ac_abs_top_srcdir=$ac_top_srcdir;; melunko@47: *) melunko@47: case $ac_top_srcdir in melunko@47: .) ac_abs_top_srcdir=$ac_abs_builddir;; melunko@47: [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; melunko@47: *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; melunko@47: esac;; melunko@47: esac melunko@47: melunko@47: melunko@47: { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 melunko@47: echo "$as_me: executing $ac_dest commands" >&6;} melunko@47: case $ac_dest in melunko@47: depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do melunko@47: # Strip MF so we end up with the name of the file. melunko@47: mf=`echo "$mf" | sed -e 's/:.*$//'` melunko@47: # Check whether this is an Automake generated Makefile or not. melunko@47: # We used to match only the files named `Makefile.in', but melunko@47: # some people rename them; so instead we look at the file content. melunko@47: # Grep'ing the first line is not enough: some people post-process melunko@47: # each Makefile.in and add a new line on top of each file to say so. melunko@47: # So let's grep whole file. melunko@47: if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then melunko@47: dirpart=`(dirname "$mf") 2>/dev/null || melunko@47: $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ melunko@47: X"$mf" : 'X\(//\)[^/]' \| \ melunko@47: X"$mf" : 'X\(//\)$' \| \ melunko@47: X"$mf" : 'X\(/\)' \| \ melunko@47: . : '\(.\)' 2>/dev/null || melunko@47: echo X"$mf" | melunko@47: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } melunko@47: /^X\(\/\/\)[^/].*/{ s//\1/; q; } melunko@47: /^X\(\/\/\)$/{ s//\1/; q; } melunko@47: /^X\(\/\).*/{ s//\1/; q; } melunko@47: s/.*/./; q'` melunko@47: else melunko@47: continue melunko@47: fi melunko@47: grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue melunko@47: # Extract the definition of DEP_FILES from the Makefile without melunko@47: # running `make'. melunko@47: DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` melunko@47: test -z "$DEPDIR" && continue melunko@47: # When using ansi2knr, U may be empty or an underscore; expand it melunko@47: U=`sed -n 's/^U = //p' < "$mf"` melunko@47: test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR" melunko@47: # We invoke sed twice because it is the simplest approach to melunko@47: # changing $(DEPDIR) to its actual value in the expansion. melunko@47: for file in `sed -n ' melunko@47: /^DEP_FILES = .*\\\\$/ { melunko@47: s/^DEP_FILES = // melunko@47: :loop melunko@47: s/\\\\$// melunko@47: p melunko@47: n melunko@47: /\\\\$/ b loop melunko@47: p melunko@47: } melunko@47: /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \ melunko@47: sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do melunko@47: # Make sure the directory exists. melunko@47: test -f "$dirpart/$file" && continue melunko@47: fdir=`(dirname "$file") 2>/dev/null || melunko@47: $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ melunko@47: X"$file" : 'X\(//\)[^/]' \| \ melunko@47: X"$file" : 'X\(//\)$' \| \ melunko@47: X"$file" : 'X\(/\)' \| \ melunko@47: . : '\(.\)' 2>/dev/null || melunko@47: echo X"$file" | melunko@47: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } melunko@47: /^X\(\/\/\)[^/].*/{ s//\1/; q; } melunko@47: /^X\(\/\/\)$/{ s//\1/; q; } melunko@47: /^X\(\/\).*/{ s//\1/; q; } melunko@47: s/.*/./; q'` melunko@47: { if $as_mkdir_p; then melunko@47: mkdir -p $dirpart/$fdir melunko@47: else melunko@47: as_dir=$dirpart/$fdir melunko@47: as_dirs= melunko@47: while test ! -d "$as_dir"; do melunko@47: as_dirs="$as_dir $as_dirs" melunko@47: as_dir=`(dirname "$as_dir") 2>/dev/null || melunko@47: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ melunko@47: X"$as_dir" : 'X\(//\)[^/]' \| \ melunko@47: X"$as_dir" : 'X\(//\)$' \| \ melunko@47: X"$as_dir" : 'X\(/\)' \| \ melunko@47: . : '\(.\)' 2>/dev/null || melunko@47: echo X"$as_dir" | melunko@47: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } melunko@47: /^X\(\/\/\)[^/].*/{ s//\1/; q; } melunko@47: /^X\(\/\/\)$/{ s//\1/; q; } melunko@47: /^X\(\/\).*/{ s//\1/; q; } melunko@47: s/.*/./; q'` melunko@47: done melunko@47: test ! -n "$as_dirs" || mkdir $as_dirs melunko@47: fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5 melunko@47: echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;} melunko@47: { (exit 1); exit 1; }; }; } melunko@47: melunko@47: # echo "creating $dirpart/$file" melunko@47: echo '# dummy' > "$dirpart/$file" melunko@47: done melunko@47: done melunko@47: ;; melunko@47: esac melunko@47: done melunko@47: _ACEOF melunko@47: melunko@47: cat >>$CONFIG_STATUS <<\_ACEOF melunko@47: melunko@47: { (exit 0); exit 0; } melunko@47: _ACEOF melunko@47: chmod +x $CONFIG_STATUS melunko@47: ac_clean_files=$ac_clean_files_save melunko@47: melunko@47: melunko@47: # configure is writing to config.log, and then calls config.status. melunko@47: # config.status does its own redirection, appending to config.log. melunko@47: # Unfortunately, on DOS this fails, as config.log is still kept open melunko@47: # by configure, so config.status won't be able to write to it; its melunko@47: # output is simply discarded. So we exec the FD to /dev/null, melunko@47: # effectively closing config.log, so it can be properly (re)opened and melunko@47: # appended to by config.status. When coming back to configure, we melunko@47: # need to make the FD available again. melunko@47: if test "$no_create" != yes; then melunko@47: ac_cs_success=: melunko@47: ac_config_status_args= melunko@47: test "$silent" = yes && melunko@47: ac_config_status_args="$ac_config_status_args --quiet" melunko@47: exec 5>/dev/null melunko@47: $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false melunko@47: exec 5>>config.log melunko@47: # Use ||, not &&, to avoid exiting from the if with $? = 1, which melunko@47: # would make configure fail if this is the last instruction. melunko@47: $ac_cs_success || { (exit 1); exit 1; } melunko@47: fi melunko@47: melunko@47: